/* ==========================================================================
   Autoankauf Bielefeld - main.css
   Umsetzung von DESIGN.md. Token-Namen sind identisch zur Dokumentation.
   ========================================================================== */

/* --- Fonts (selbst gehostet, DSGVO) ------------------------------------- */
@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --c-navy-900: #071a2f;
  --c-navy-800: #0a2540;
  --c-navy-700: #103a63;
  --c-blue-600: #1668d6;
  --c-blue-50: #eef5ff;
  --c-green-700: #047857;
  --c-green-600: #059669;
  --c-green-500: #10b981;
  --c-green-50: #ecfdf5;
  --c-ink: #0b1b2b;
  --c-muted: #52657a;
  --c-line: #dde5ee;
  --c-surface: #ffffff;
  --c-bg: #f6f9fc;

  --r-nav: 0;
  --r-card: 14px;
  --r-input: 10px;
  --r-btn: 999px;
  --r-img: 0;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --sh-sm: 0 1px 2px rgba(7, 26, 47, 0.06);
  --sh-md: 0 8px 24px -8px rgba(7, 26, 47, 0.14);
  --sh-lg: 0 24px 56px -20px rgba(7, 26, 47, 0.24);

  --container: 1536px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 112px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-nav: 50;
  --z-menu: 60;
  --z-callbar: 40;
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  /* Natives Smooth-Scrolling wie auf der Referenzseite des Kunden. Der Browser
     macht das ausserhalb des JS-Threads und damit fluessiger als jede eigene
     Animation. */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* clip statt hidden: hidden macht den Body zum Scrollcontainer und bricht
     position: sticky bei den gestapelten Karten. hidden bleibt als Fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg,
video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: "Lexend", system-ui, sans-serif;
  color: var(--c-ink);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

/* Groessen und Gewichte an die vom Kunden benannte Referenzseite angeglichen.
   Gemessen dort: h1 78px Desktop und 31px mobil, h2 46 und 26, h3 23 und 20,
   Zeilenhoehe rund 1.12, Laufweite -0.035em, sehr fette Schnitte. */
h1 { font-size: clamp(1.95rem, 5.42vw, 4.875rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 3.19vw, 2.875rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.4375rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-navy-800); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: 100; background: #fff; color: var(--c-navy-800);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-btn);
  font-weight: 600; box-shadow: var(--sh-md);
}
.skip-link:focus { top: var(--s-3); }

/* --- Layout-Bausteine --------------------------------------------------- */
.container {
  width: min(100%, 94vw);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--dark { background: var(--c-navy-800); color: #fff; }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--surface { background: var(--c-surface); }

.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-green-700);
  margin: 0 0 var(--s-3);
}
.section--dark .kicker { color: var(--c-green-500); }
.kicker::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}

.lead {
  /* Referenz: 19px am Desktop, 16px mobil */
  font-size: clamp(1rem, 1.32vw, 1.1875rem);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 62ch;
}
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }

.prose { max-width: 68ch; }
.prose h3 { margin-top: var(--s-6); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: "Lexend", sans-serif;
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--c-green-700);
  color: #fff;
  box-shadow: var(--sh-md);
}
.btn-primary:hover { background: var(--c-green-600); color: #fff; box-shadow: var(--sh-lg); }

.btn-secondary {
  background: #fff;
  color: var(--c-navy-800);
  border-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.btn-secondary:hover { background: var(--c-blue-50); color: var(--c-navy-800); border-color: #c7d8ec; }

/* ohne blur, dafuer etwas kraeftigere Fuellung: gleicher Kontrast, aber
   Safari muss beim Scrollen nichts neu weichzeichnen */
.btn-ghost {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; border-color: #fff; }

.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 1.0625rem; }

/* --- Header / Navbar ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--c-navy-800);
  border-radius: var(--r-nav);       /* Vorgabe: kantig, keine Ausnahme */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* Kein backdrop-filter: der Header liegt beim Scrollen dauerhaft im Bild und
   Safari muesste den durchlaufenden Inhalt dahinter in jedem Frame neu
   weichzeichnen. Bei 96 % Deckkraft war davon ohnehin nichts zu sehen. */
.site-header.is-scrolled {
  background: var(--c-navy-800);
  box-shadow: 0 8px 24px -12px rgba(7, 26, 47, 0.6);
}

.nav {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6ch;
  font-family: "Lexend", sans-serif; font-weight: 700;
  font-size: 1.25rem; letter-spacing: -0.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.brand-text { display: inline-flex; align-items: baseline; gap: 0.4ch; color: #fff; }
.brand-signet { flex: none; display: block; }
/* nur der Ortsname ist gruen, nicht der ganze Schriftzug */
.brand-text span { color: var(--c-green-500); }
/* mobil nur das Signet vergroessern, der Schriftzug wird ohnehin knapp */
@media (max-width: 420px) {
  .brand { font-size: 1.1rem; gap: 0.45ch; }
}
.brand:hover { color: #fff; }

.nav-links {
  display: flex; align-items: center; gap: var(--s-5);
  margin: 0 auto; padding: 0; list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover { color: #fff; border-bottom-color: var(--c-green-500); }

.nav-actions { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }

.nav-phone {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  color: #fff; text-decoration: none; line-height: 1.15;
}
.nav-phone strong { font-family: "Lexend", sans-serif; font-size: 1.0625rem; font-weight: 600; }
.nav-phone small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.nav-phone:hover { color: #fff; }
.nav-phone:hover strong { color: var(--c-green-500); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px; color: #fff;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 1020px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { gap: var(--s-3); }
}
@media (max-width: 560px) {
  .nav-phone { display: none; }
}

/* Mobile-Menü */
.nav-drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  z-index: var(--z-menu);
  background: var(--c-navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--s-5) var(--gutter) var(--s-7);
  display: none;
}
.nav-drawer[data-open="true"] { display: block; }
.nav-drawer ul { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.nav-drawer li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
/* Nur die Links in der Liste, NICHT die beiden Buttons darunter. Ohne das
   ul erbten die Buttons display:block (Text linksbuendig statt mittig),
   padding var(--s-4) 0 und color #fff. Der weisse Telefonbutton war dadurch
   weisser Text auf weissem Grund, also ein leerer Balken. */
.nav-drawer ul a {
  display: block; padding: var(--s-4) 0;
  color: #fff; font-family: "Lexend", sans-serif; font-weight: 600;
  font-size: 1.0625rem; text-decoration: none;
}
.nav-drawer .btn { width: 100%; }
.nav-drawer .drawer-phone { margin-top: var(--s-3); }

/* --- Klarer Ankauf-Einstieg; Bild und Kontakt konkurrieren nicht. -------- */
.hero { background: var(--c-navy-900); color: #fff; }
.hero-layout {
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr);
  align-items: center; gap: clamp(28px,4vw,64px);
  padding-block: clamp(28px,2.6vw,36px);
}
.hero-copy { min-width: 0; }
.hero-location {
  margin-bottom: 12px; color: #a7f3d0;
  font-size: .95rem; font-weight: 600;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem,3.05vw,3rem);
  line-height: 1.1; margin-bottom: 16px;
}
.hero h1 span { color: #a7f3d0; }
.hero-lead {
  color: #e1e9f0; max-width: 54ch;
  font-size: clamp(1.0625rem,1.3vw,1.1875rem); line-height: 1.5;
  margin-bottom: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions .btn { padding-inline: 22px; font-size: .95rem; }
.hero-reassurance { color: #c2d0dc; font-size: .875rem; line-height: 1.45; margin: 12px 0 10px; }
.hero-phone { margin: 0; font-size: .95rem; color: #d9e4ed; }
.hero-phone a { color: #fff; font-weight: 700; text-decoration-thickness: 1px; }
.hero-phone a:hover { color: #a7f3d0; }
.hero-visual { margin: 0; min-width: 0; max-width: 520px; justify-self: end; }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-card); }
.hero-visual figcaption { margin-top: 10px; color: #e1e9f0; font-size: .875rem; line-height: 1.4; }
.hero-visual figcaption span { color: #b7c6d4; }

/* Vier kurze Zusagen stehen genau einmal, direkt bei der Anfrage. */
.trustbar { background: var(--c-navy-900); color: #fff; }
.benefit-line { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 8px 20px; list-style: none; margin: 0; padding: 16px 0; max-width: 500px; }
.benefit-line li { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.benefit-line li::before { content: "✓"; flex: none; color: #6ee7b7; font-weight: 700; }
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; padding-block: 28px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(2rem,5.5vw,3rem); }
}
@media (max-width: 560px) {
  .hero-layout { padding-block: 24px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { min-height: 50px; }
  .benefit-line { gap: 10px 12px; padding-block: 18px; }
  .benefit-line li { font-size: .875rem; gap: 7px; }
}

/* --- Formular ----------------------------------------------------------- */
.form-section { background: var(--c-bg); padding-block: clamp(32px, 4vw, 56px) var(--section-y); }
.form-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  position: relative; z-index: 3;
}
@media (max-width: 980px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-aside { order: 2; padding-top: var(--s-7); }
}

.lead-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  padding: clamp(20px, 3vw, 36px);
}
.lead-card-head { margin-bottom: var(--s-5); }
.lead-card-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); margin-bottom: var(--s-2); }
.lead-card-head p { color: var(--c-muted); margin: 0; }

/* Schrittanzeige und Fortschritt */
.form-steps { margin-bottom: var(--s-5); }
.form-steps-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-3); margin-bottom: var(--s-2);
  font-size: 0.875rem; color: var(--c-muted);
}
.form-steps-head strong { color: var(--c-green-700); }
.form-steps-head span:last-child {
  font-family: "Lexend", sans-serif; font-weight: 600; color: var(--c-ink);
}
.form-progress {
  height: 4px; border-radius: 999px;
  background: var(--c-line); overflow: hidden;
}
.form-progress > span {
  display: block; height: 100%; width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-green-700), var(--c-green-500));
  transition: width 0.4s var(--ease);
}

/* Zusammenfassung aus Schritt 1, oben in Schritt 2 */
.form-summary {
  background: var(--c-blue-50);
  border: 1px solid #cfe0f6;
  border-radius: var(--r-input);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-5);
  font-size: 0.9rem; font-weight: 600; color: var(--c-navy-800);
}
.form-summary:empty { display: none; }

.btn-back {
  display: inline-flex; align-items: center; gap: var(--s-2);
  width: 100%; justify-content: center;
  min-height: 44px; margin-top: var(--s-3);
  background: none; border: 0;
  color: var(--c-muted); font-size: 0.9rem; font-weight: 600;
  transition: color 0.2s var(--ease);
}
.btn-back:hover { color: var(--c-navy-800); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
.form-row-1 { grid-template-columns: 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-more { margin: 0 0 20px; border-block: 1px solid var(--c-line); }
.form-more summary { padding: 12px 2px; color: var(--c-navy-800); font-weight: 600; cursor: pointer; }
.form-more summary span { color: var(--c-muted); font-weight: 400; }
.form-more[open] summary { margin-bottom: 4px; }
.form-field label {
  font-size: 0.875rem; font-weight: 600; color: var(--c-ink); letter-spacing: 0.01em;
}
.field-optional { color: var(--c-muted); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-input);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352657a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-blue-600);
  box-shadow: 0 0 0 3px rgba(22, 104, 214, 0.18);
}
.form-field input:user-invalid,
.form-field select:user-invalid { border-color: #dc2626; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #93a3b5; }

.form-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Foto-Upload */
.upload-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  width: 100%; min-height: 52px;
  padding: 12px 14px;
  background: var(--c-blue-50);
  border: 1.5px dashed #b7cdea;
  border-radius: var(--r-input);
  color: var(--c-navy-800);
  font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.upload-btn:hover:not(:disabled) { border-color: var(--c-blue-600); background: #e2eefc; }
.upload-btn:disabled { opacity: 0.55; cursor: default; }
.upload-btn svg { color: var(--c-green-700); }

.upload-previews { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.upload-previews:empty { display: none; }
.upload-thumb {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--c-line);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7, 26, 47, 0.78);
  color: #fff; border: 0; border-radius: 50%;
  font-size: 15px; line-height: 1;
}
.upload-remove:hover { background: var(--c-navy-800); }

.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--r-input); padding: var(--s-3) var(--s-4);
  font-size: 0.9rem; margin: 0 0 var(--s-4);
}
.form-note { font-size: 0.85rem; color: var(--c-muted); margin: var(--s-3) 0 0; text-align: center; }

.lead-success {
  text-align: center;
  background: var(--c-green-50);
  border: 1px solid #a7f3d0;
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 44px);
}
.lead-success svg { margin: 0 auto var(--s-4); color: var(--c-green-700); }
.lead-success h3 { margin-bottom: var(--s-2); }
.lead-success p { color: #065f46; }

/* Formular-Nebenspalte */
.form-aside { padding-top: var(--s-6); }
.aside-list { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4); }
.aside-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.aside-list svg { flex: none; margin-top: 3px; color: var(--c-green-700); }
.aside-list strong { display: block; font-family: "Lexend", sans-serif; font-weight: 600; }
.aside-list span { color: var(--c-muted); font-size: 0.95rem; }

.contact-card {
  background: var(--c-navy-800); color: #fff;
  border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--sh-md);
}
.contact-card h3 { color: #fff; font-size: 1.25rem; }
.contact-card p { color: rgba(255, 255, 255, 0.76); font-size: 0.95rem; }
.contact-card .contact-row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-card .contact-row svg { color: var(--c-green-500); flex: none; }
.contact-card a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--c-green-500); }
.form-help { margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--c-green-700); }
.form-help h3 { font-size: 1.125rem; margin-bottom: 8px; }
.form-help p { max-width: 58ch; color: var(--c-muted); }
.contact-phone { display: inline-block; font-family: "Lexend",sans-serif; font-size: clamp(1.3rem,2vw,1.75rem); line-height: 1.5; }
.contact-card .contact-hours { margin: 2px 0 0; font-size: .875rem; }
.contact-email { display: block; margin-top: 16px; overflow-wrap: anywhere; font-size: .9rem; }

/* --- Karten-Raster ------------------------------------------------------ */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Das Abholgebiet bekommt auf schmalen Ansichten eine klare Leserichtung. */
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--r-card) - 1px);
  pointer-events: none;
}
.card:hover { box-shadow: var(--sh-md); border-color: #c7d8ec; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--c-muted); font-size: 0.97rem; margin: 0; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--s-4);
  background: var(--c-green-50); color: var(--c-green-700);
  border-radius: 12px;
}

/* Ablauf-Schritte mit mitwachsender Linie */
.steps {
  position: relative;
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(4, 1fr);
  --steps-progress: 0;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.steps-line { display: none; }
@media (min-width: 981px) {
  /* Die Linie laeuft von Ziffernmitte zu Ziffernmitte, nicht bis zum Rand.
     Bei 4 Spalten ist eine Spalte (100% - 3 Luecken) / 4 breit, die Ziffer
     ist 44px breit und sitzt am Spaltenanfang. */
  .steps::before,
  .steps-line {
    position: absolute;
    top: 21px;
    left: 22px;
    right: calc((100% - 3 * var(--s-5)) / 4 - 22px);
    height: 2px;
  }
  .steps::before { content: ""; background: var(--c-line); }
  .steps-line {
    display: block;
    background: linear-gradient(90deg, var(--c-green-700), var(--c-green-500));
    transform-origin: left center;
    transform: scaleX(var(--steps-progress));
  }
}

.step { position: relative; padding-top: var(--s-6); }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--c-muted);
  border: 2px solid var(--c-line);
  font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.05rem;
  border-radius: var(--r-btn);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step.is-reached .step-num {
  background: var(--c-green-700);
  border-color: var(--c-green-700);
  color: #fff;
  box-shadow: 0 0 0 6px var(--c-green-50);
}
.step h3 { margin-top: var(--s-5); }
.step p { color: var(--c-muted); font-size: 0.97rem; margin: 0; }

/* Ohne JS oder bei reduzierter Bewegung sind alle Schritte aktiv */
.no-js .step .step-num,
.steps--static .step .step-num {
  background: var(--c-green-700); border-color: var(--c-green-700); color: #fff;
  box-shadow: 0 0 0 6px var(--c-green-50);
}
.steps--static .steps-line { transform: scaleX(1); }

/* Zustände und Fahrzeugarten: kompakte, lesbare Leistungsübersicht. */
.stack { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.stack-item { min-width: 0; }
.stack-card { height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); }
.stack-card-body { height: 100%; padding: clamp(20px,2vw,28px); display: flex; flex-direction: column; }
.stack-card-body h3 { margin-bottom: 12px; font-size: 1.25rem; }
.stack-card-body p { color: var(--c-muted); margin: 0 0 16px; max-width: 52ch; }
.stack-card-body .text-cta { margin-top: auto; font-size: .95rem; }
@media (max-width: 1100px) { .stack { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .stack { grid-template-columns: 1fr; } }

.local-contact { align-self: start; padding: clamp(22px,3vw,36px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-card); background: rgba(255,255,255,.04); }
.local-contact .local-label { margin-bottom: 12px; font-size: .875rem; color: #a7f3d0; font-weight: 600; }
.local-contact h3 { max-width: 26ch; }
.local-contact p { color: #d1dde8; }
.local-contact .local-phone { display: inline-block; margin: 4px 0 6px; font-family: "Lexend",sans-serif; font-size: clamp(1.25rem,2vw,1.75rem); color: #fff; text-decoration: none; font-weight: 600; }
.local-contact .local-phone:hover { color: #a7f3d0; }
.local-contact .local-hours { font-size: .875rem; margin-bottom: 22px; }

/* Abholgebiet-Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); padding: 0; list-style: none; }
.chips li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-btn);
  padding: 8px 16px; font-size: 0.92rem; color: #fff;
}

/* --- Kompakte, fortlaufende und ziehbare Marken-/Fahrzeugbänder ------------ */
.logos { background: var(--c-bg); padding-block: 24px; }
.logos-title { font-size: .95rem; color: var(--c-muted); margin: 0; }
.logo-slider, .vehicle-slider { --slider-gap: 12px; min-width: 0; }
.slider-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.slider-toggle { flex: none; border: 0; background: transparent; color: var(--c-muted); padding: 7px 4px; min-height: 32px; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.slider-toggle:hover { color: var(--c-green-700); }
.slider-viewport { width: 100%; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y pinch-zoom; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent); mask-image: linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent); }
[data-dragging="true"] .slider-viewport { cursor: grabbing; }
.slider-track { display: flex; width: max-content; gap: var(--slider-gap); transform: translate3d(0,0,0); }
.slider-group { display: flex; align-items: center; flex: none; gap: var(--slider-gap); width: max-content; margin: 0; padding: 0; list-style: none; }
.logo-slider .logo-item { display: flex; flex: 0 0 52px; align-items: center; justify-content: center; width: 52px; height: 34px; }
.logo-slider .logo-item img { display: block; width: auto; height: auto; max-width: 44px; max-height: 28px; opacity: .85; pointer-events: none; }
.vehicle-slider .vehicle-types { display: flex; }
.vehicle-slider .vehicle-types li { flex: 0 0 auto; width: clamp(96px,8.5vw,126px); text-align: center; font-size: .78rem; font-weight: 600; color: var(--c-navy-700); }
.vehicle-slider .vehicle-types img { display: block; width: 100%; height: auto; margin-bottom: 4px; pointer-events: none; }
@media (pointer: coarse) { .slider-toggle { min-height: 44px; padding-inline: 8px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.0625rem;
  cursor: pointer; list-style: none;
  transition: background-color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--c-blue-50); }
.faq-item summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.24s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--c-muted); }
.faq-item .faq-body p { margin: 0; }

/* Abschluss-CTA */
.cta-final { text-align: center; }
.cta-final .btn { min-width: 220px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }
.cta-phone {
  display: inline-block;
  font-family: "Lexend", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700; color: #fff; text-decoration: none;
  letter-spacing: -0.01em;
}
.cta-phone:hover { color: var(--c-green-500); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-navy-900); color: rgba(255, 255, 255, 0.72); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7); padding-block: var(--s-8) var(--s-6);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.site-footer h3 {
  color: #fff; font-family: "Lexend", sans-serif; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-4);
}
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--c-green-500); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-brand { font-size: 1.3rem; margin-bottom: var(--s-3); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--s-5);
  font-size: 0.875rem;
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
}

/* --- Sticky Call-Bar (mobil) -------------------------------------------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-callbar);
  display: none; gap: var(--s-2);
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  /* deckend statt blur: liegt mobil dauerhaft ueber dem scrollenden Inhalt */
  background: #fff;
  border-top: 1px solid var(--c-line);
}
.callbar .btn { flex: 1; min-height: 46px; padding: 10px 16px; font-size: 0.95rem; }
@media (max-width: 767px) {
  .callbar { display: flex; }
  body { padding-bottom: 74px; }
}

/* --- Rechtsseiten ------------------------------------------------------- */
.page-head { background: var(--c-navy-800); color: #fff; padding-block: clamp(40px, 6vw, 80px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.legal { background: var(--c-surface); }
.legal .prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: var(--s-7); }
.legal .prose h3 { font-size: 1.1rem; margin-top: var(--s-5); }
.legal .prose p, .legal .prose li { color: var(--c-muted); }

/* Scroll-Reveal auf Kundenwunsch entfernt (01.08.): Sektionen stehen sofort,
   die data-reveal-Attribute im Markup sind bewusst wirkungslos. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layoutpflege: größere Arbeitsfläche, kurze Textzeilen und ruhige Raster. */
.anchor-alias { display: block; scroll-margin-top: calc(var(--nav-h) + 24px); }
.form-aside { min-width: 0; }
.form-aside > .lead { max-width: 58ch; }
.contact-card .btn { margin-top: 20px; }
.contact-card a.btn-secondary { color: var(--c-navy-800); }
.contact-card a.btn-secondary:hover { color: var(--c-navy-800); }
.contact-row a { overflow-wrap: anywhere; }
.form-required-note { text-align: left; margin-bottom: 20px; }
.form-field [aria-invalid="true"] { border-color: #b42318; }
.upload-remove { min-width: 32px; min-height: 32px; }
.text-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { min-width: 0; background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-green-700); padding: clamp(20px, 2vw, 32px); border-radius: var(--r-card); }
.guide-card p, .guide-card li { color: var(--c-muted); }
.vehicle-strip { background: #fff; padding-block: 24px; border-block: 1px solid var(--c-line); }
.vehicle-strip h2 { font-size: clamp(1.125rem, 2vw, 1.4rem); margin: 0; }
.breadcrumbs { margin-bottom: 24px; font-size: .95rem; color: #dbe9ee; }
.breadcrumbs a { color: #fff; }
.site-footer address { font-style: normal; }
.legal .prose { max-width: 82ch; }
.legal .prose > h2:first-child { margin-top: 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

@media (min-width: 981px) {
  .form-shell { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .section-head { max-width: 80ch; }
  .section-head .lead { max-width: 66ch; }
}
@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { max-width: none; }
}
@media (max-width: 1199px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { gap: var(--s-3); }
  .nav-drawer { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
}
@media (max-width: 800px) {
  .container { width: 100%; }
}
@media (max-width: 360px) {
  .brand { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .steps { scroll-behavior: auto; }
}

/* Menüs schließen über Schaltfläche, Hintergrund, Escape und Wischgeste. */
.nav-drawer { position: absolute; inset: 100% 0 auto 0; max-height: var(--drawer-space,calc(100dvh - var(--nav-h))); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-block: 12px 18px; }
.nav-drawer ul a { padding-block: 10px; min-height: 44px; }
.nav-backdrop { position: fixed; inset: 0; z-index: 49; display: block; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0; background: rgba(7,26,47,.42); touch-action: none; cursor: pointer; }
.nav-grip { display: block; width: 36px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.4); margin: 18px auto 0; }
.nav-toggle [data-menu-close] { display: none; }
.nav-toggle[aria-expanded="true"] [data-menu-bars] { display: none; }
.nav-toggle[aria-expanded="true"] [data-menu-close] { display: block; }
