/* =========================================================
   Räum- und Umzugsservice — Design-System
   Farben: Navy & Amber-Gold | Schrift: Outfit (Display) + Inter (Text)
   Signature-Element: Kisten-Lasche als Section-Divider & Karten-Ecke
   ========================================================= */

:root {
  --navy-950: #0B1F3A;
  --navy-800: #14304F;
  --navy-700: #1c3d63;
  --gold-500: #D8A24A;
  --gold-300: #E8C481;
  --cream-50: #F7F4EE;
  --cream-100: #EFEAE0;
  --ink-900: #1B1F27;
  --ink-600: #545b68;
  --white: #ffffff;
  --success: #2e7d4f;
  --danger: #b3402b;

  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 32px rgba(11, 31, 58, 0.10);
  --shadow-card: 0 6px 18px rgba(11, 31, 58, 0.08);

  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-300); }
.btn-navy { background: var(--navy-950); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy-950); border-color: var(--navy-950); }
.btn-ghost:hover { background: var(--navy-950); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(232, 196, 129, 0.15);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white); display: flex; align-items: center; gap: 10px; }
.logo .crate { width: 30px; height: 26px; position: relative; flex-shrink: 0; }
.logo .crate::before, .logo .crate::after {
  content: ""; position: absolute; background: var(--gold-500);
}
.logo .crate::before { inset: 0; border-radius: 3px; opacity: 0.9; }
.logo .crate::after { left: 0; right: 0; top: 45%; height: 3px; background: var(--navy-950); }
.logo span.brand-sub { color: var(--gold-300); font-weight: 400; font-size: 0.72rem; display: block; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-300); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-badge { position: relative; color: var(--white); font-size: 1.3rem; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--gold-500); color: var(--navy-950);
  font-size: 0.68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---------- Kisten-Lasche Divider (Signature-Element) ---------- */
.crate-divider {
  height: 26px;
  width: 100%;
  background: var(--cream-50);
  position: relative;
  overflow: hidden;
}
.crate-divider svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.12rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-300); display: block; }
.hero-stats .stat span { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* Kisten-Illustration im Hero */
.crate-stack { position: relative; height: 340px; }
.crate-box {
  position: absolute; border-radius: 8px; background: linear-gradient(155deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 18px 30px rgba(0,0,0,0.25);
}
.crate-box::before {
  content: ""; position: absolute; left: 0; right: 0; top: 42%; height: 8px; background: rgba(11,31,58,0.35);
}
.crate-box::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 8px; height: 100%; background: rgba(11,31,58,0.35); transform: translateX(-50%);
}
.crate-box.b1 { width: 190px; height: 130px; left: 10%; bottom: 0; transform: rotate(-4deg); }
.crate-box.b2 { width: 150px; height: 110px; left: 42%; bottom: 30px; transform: rotate(5deg); background: linear-gradient(155deg,#fff,var(--gold-300)); }
.crate-box.b3 { width: 130px; height: 100px; right: 6%; bottom: 10px; transform: rotate(-8deg); }
.crate-box.b4 { width: 100px; height: 80px; left: 20%; bottom: 155px; transform: rotate(9deg); background: linear-gradient(155deg,#fff,var(--gold-300)); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .crate-stack { height: 220px; margin-top: 10px; }
}

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-alt { background: var(--white); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  border: 1px solid rgba(11,31,58,0.05);
}
.card .icon-tab {
  width: 46px; height: 38px; border-radius: 8px; background: var(--navy-950); color: var(--gold-300);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; position: relative;
}
.card .icon-tab::after { content: ""; position: absolute; top: -6px; left: 50%; width: 20px; height: 6px; background: var(--gold-500); border-radius: 3px 3px 0 0; transform: translateX(-50%); }

.cta-band {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }

/* ---------- Shop ---------- */
.produkt-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; border: 1px solid rgba(11,31,58,0.05); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.produkt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.produkt-bild { aspect-ratio: 4/3; background: var(--cream-100); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.produkt-bild img { width: 100%; height: 100%; object-fit: cover; }
.produkt-bild .platzhalter { color: var(--navy-800); opacity: 0.3; font-size: 2.4rem; }
.badge-typ {
  position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; background: var(--navy-950); color: var(--gold-300);
}
.badge-typ.miete { background: var(--gold-500); color: var(--navy-950); }
.produkt-info { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.produkt-info h3 { margin-bottom: 2px; }
.produkt-info .beschreibung { font-size: 0.88rem; flex: 1; }
.produkt-preis { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-950); font-weight: 700; }
.produkt-kaution { font-size: 0.78rem; color: var(--ink-600); }
.produkt-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card);
  max-width: 560px; margin: 0 auto; border: 1px solid rgba(11,31,58,0.05);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-950); }
.form-row .hinweis { font-size: 0.78rem; color: var(--ink-600); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-100); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.96rem; background: var(--cream-50); color: var(--ink-900);
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold-500); background: var(--white);
}
textarea { resize: vertical; min-height: 110px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-erfolg { background: #e6f4ea; color: var(--success); border: 1px solid #b9dfc5; }
.alert-fehler { background: #fbe9e5; color: var(--danger); border: 1px solid #f0c4b9; }
.alert-info { background: #eaf1fb; color: var(--navy-800); border: 1px solid #c7d9f0; }

/* ---------- Tabellen (Admin & Konto) ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--cream-100); }
th { background: var(--cream-50); color: var(--navy-950); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.status-eingegangen { background: #fdf1e0; color: #a3690f; }
.status-rechnung_versendet { background: #e6f0fd; color: #1c4f9c; }
.status-abgeschlossen { background: #e6f4ea; color: var(--success); }

/* ---------- Warenkorb ---------- */
.wk-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--cream-100); }
.wk-item img, .wk-item .platzhalter-klein { width: 78px; height: 78px; border-radius: 8px; object-fit: cover; background: var(--cream-100); flex-shrink: 0; }
.wk-item .titel { font-weight: 600; color: var(--navy-950); }
.wk-summary { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card); }
.wk-summary .zeile { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.94rem; }
.wk-summary .gesamt { font-weight: 700; font-size: 1.15rem; color: var(--navy-950); border-top: 1px solid var(--cream-100); margin-top: 8px; padding-top: 14px; }
.qty-input { width: 64px; text-align: center; padding: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 60px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.65); display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Sonstiges ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-600); }
.empty-state .icon-tab { margin: 0 auto 18px; }
.pill-link { display: inline-block; background: var(--cream-100); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; margin-right: 8px; margin-bottom: 8px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.dashboard-stats .card b { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-950); display: block; }
@media (max-width: 900px) { .dashboard-stats { grid-template-columns: repeat(2,1fr); } }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 0px); }
.admin-sidebar { background: var(--navy-950); color: rgba(255,255,255,0.85); padding: 28px 18px; }
.admin-sidebar a { display: block; padding: 11px 14px; border-radius: 8px; margin-bottom: 4px; font-size: 0.92rem; font-weight: 500; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(232,196,129,0.14); color: var(--gold-300); }
.admin-main { padding: 34px 40px; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 14px; } .admin-sidebar a { white-space: nowrap; margin-bottom: 0; } .admin-main { padding: 24px 18px; } }
