/* ═══════════════════════════════════════════════════════════════════════════
   JAKASA Fahrdienst – main.css
   Design-System: hell mit Marken-Lila (#7E438C) Akzent.
   Gliederung:
     1. CUSTOM PROPERTIES   2. RESET & BASE      3. TYPOGRAPHY
     4. LAYOUT UTILITIES    5. KOMPONENTEN       6. SEKTIONEN
     7. ANIMATIONEN         8. REGIONEN          9. HELFER-SEITEN
    10. MEDIA QUERIES      11. REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  /* Hauptflächen */
  --bg:           #FFFFFF;
  --bg-2:         #F8F4FA;
  --bg-3:         #F0E8F4;
  --bg-glass:     rgba(255, 255, 255, 0.80);

  /* Akzentfarben */
  --primary:      #7E438C;
  --primary-glow: rgba(126, 67, 140, 0.20);
  --primary-deep: #5C2E68;
  --primary-light:#A86BB8;
  --primary-pale: #F3EBF6;
  --warm:         #F5A623;
  --warm-light:   #FFD080;
  --warm-deep:    #C8841A;

  /* Text */
  --text:         #1E0F24;
  --text-muted:   #7A5E84;
  --text-bright:  #FFFFFF;
  --text-dim:     #5C4A66;

  /* Struktur */
  --border:       rgba(126, 67, 140, 0.18);
  --border-subtle:rgba(126, 67, 140, 0.08);
  --line:         rgba(126, 67, 140, 0.10);

  /* Schatten */
  --shadow-sm:    0 2px 8px rgba(126, 67, 140, 0.10);
  --shadow-md:    0 8px 32px rgba(126, 67, 140, 0.14);
  --shadow-lg:    0 24px 64px rgba(126, 67, 140, 0.18);
  --glow-primary: 0 0 40px rgba(126, 67, 140, 0.22);
  --glow-warm:    0 0 40px rgba(245, 166, 35, 0.38);

  /* Radii */
  --r:            8px;
  --r-md:         14px;
  --r-lg:         20px;
  --r-xl:         32px;
  --r-full:       9999px;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  8rem;
  --sp-2xl: 12rem;

  /* Typografie */
  --font-head:    'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.75rem;
  --fs-5xl:  3.75rem;
  --fs-6xl:  5rem;
  --fs-hero: clamp(3rem, 8vw, 6.5rem);

  /* Transitions */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   600ms;
  --dur-xslow:  1000ms;

  /* Layout */
  --wrap:       1200px;
  --wrap-wide:  1440px;
  --nav-h:      76px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: clamp(2rem, 5vw, var(--fs-5xl)); }
h3 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; }
p  { max-width: 68ch; }

/* Abstand zwischen Überschrift und direkt folgendem Text */
h1 + p, h2 + p, h3 + p, h4 + p,
h1 + .lead, h2 + .lead, h3 + .lead { margin-top: var(--sp-sm); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-sm);
}
.lead { font-size: var(--fs-xl); color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────────────────────── */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--wrap-wide)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 10vw, var(--sp-xl)); }
.section--alt { background: var(--bg-2); }
.section--pale { background: var(--primary-pale); }
.section__head { max-width: 760px; margin-bottom: var(--sp-lg); }
.section__head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--sp-md); }
.flow { max-width: none; }
.flow > * + * { margin-top: var(--sp-sm); }
.flow p { max-width: none; line-height: 1.85; }
.flow > p:first-child { font-size: var(--fs-lg); color: var(--text-dim); }
.flow > * + h2 { margin-top: var(--sp-lg); }
.flow h2 {
  font-size: clamp(1.2rem, 2vw, var(--fs-2xl));
  color: var(--primary-deep);
  padding-left: 1rem;
  border-left: 4px solid var(--warm);
}

/* ── 5. KOMPONENTEN ───────────────────────────────────────────────────────── */

/* 5.1 Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: var(--glow-primary); }
.btn--ghost { border: 1px solid var(--border); color: var(--primary); background: var(--bg-glass); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-pale); }
.btn--phone { background: var(--warm); color: #1E0F24; box-shadow: var(--shadow-sm); }
.btn--phone:hover { background: var(--warm-light); box-shadow: var(--glow-warm); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--fs-lg); }

/* 5.2 Navigation */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
#nav .nav__inner {
  width: min(100% - 2.5rem, var(--wrap-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav--scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xl); color: var(--primary); letter-spacing: -0.02em; }
.nav__logo img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__link { position: relative; font-weight: 600; font-size: var(--fs-base); padding: 0.25rem 0; color: var(--text); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__burger span { display: block; height: 2px; width: 24px; margin-inline: auto; background: var(--text); transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }

/* Mobile Overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(160deg, var(--primary), var(--primary-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease);
}
.nav__overlay.is-open { transform: translateY(0); }
.nav__overlay a { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-3xl); }

body.nav-open { overflow: hidden; }
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5.3 Scroll-Progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--primary), var(--warm));
  z-index: 101;
}

/* 5.5 Cards */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow-primary); border-color: var(--primary-light); }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--primary-pale); color: var(--primary); margin-bottom: var(--sp-sm); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; hyphens: auto; }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--sp-sm); font-weight: 700; color: var(--primary); }

/* 5.6 Footer */
#footer {
  background: var(--primary);
  color: var(--text-bright);
  border-top: 4px solid var(--primary-deep);
  padding-block: var(--sp-lg) var(--sp-md);
}
#footer .footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
#footer h4 { color: #fff; margin-bottom: var(--sp-sm); }
#footer a { color: rgba(255,255,255,0.88); transition: color var(--dur-fast) var(--ease); }
#footer a:hover { color: #fff; }
#footer .footer__links li + li { margin-top: 0.5rem; }
#footer .footer__bottom { margin-top: var(--sp-lg); padding-top: var(--sp-md); border-top: 1px solid rgba(255,255,255,0.18); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-sm); color: rgba(255,255,255,0.75); }
#footer .footer__credit { margin-inline: auto; text-align: center; }

/* ── 6. SEKTIONEN ─────────────────────────────────────────────────────────── */

/* 6.1 Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--primary-deep);
}
.hero__bg picture { width: 100%; height: 100%; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1.04) contrast(1.03);
}
/* Overlay: direkt ÜBER dem Bild, unter dem Text */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.84) 0%,
    rgba(255,255,255,0.76) 50%,
    rgba(255,255,255,0.52) 100%
  );
  pointer-events: none;
}
.hero__mesh {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 15% 20%, var(--primary-glow), transparent 60%),
    radial-gradient(50% 50% at 85% 30%, rgba(245,166,35,0.10), transparent 60%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: url('/assets/img/noise.svg');
  opacity: 0.04;
  pointer-events: none;
}
.hero__inner { max-width: 760px; position: relative; z-index: 1; }
.hero__title {
  margin-bottom: var(--sp-md);
  font-size: clamp(2.35rem, 6.8vw, 5.6rem);
}
.hero__sub {
  font-size: var(--fs-xl);
  color: #2A1533;
  max-width: 60ch;
  margin-bottom: var(--sp-md);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

/* 6.2 Stats */
.stats { position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.5rem, 6vw, var(--fs-6xl)); color: var(--primary); line-height: 1; letter-spacing: -0.04em; }
.stat__num .suffix { color: var(--warm-deep); }
.stat__label { margin-top: 0.5rem; color: var(--text-muted); font-weight: 500; }

/* 6.3 Leistungen (Horizontal-Pin) */
.hpin { position: relative; }
.hpin__track { display: flex; gap: var(--sp-md); will-change: transform; }
.hpin__card { flex: 0 0 min(85vw, 380px); }
.leistungen__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-md); }

/* 6.4 Warum-JAKASA */
.usp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.usp { padding: var(--sp-md); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.usp:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.usp h3 { hyphens: auto; }
.usp__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--primary-pale); color: var(--primary); margin-bottom: var(--sp-sm); }
.usp__icon svg { width: 26px; height: 26px; }

/* 6.5 Einzugsgebiet */
.einzug__top {
  margin-bottom: var(--sp-md);
}
.einzug__top h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: pretty;
}
.einzug__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: start;
}
.einzug__card {
  background: linear-gradient(160deg, var(--primary-pale), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
}
.einzug__badge { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.einzug__badge-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 9vw, 5rem); line-height: 1; color: var(--primary); letter-spacing: -0.03em; }
.einzug__badge-unit { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); color: var(--primary); }
.einzug__from { margin-top: 0.35rem; color: var(--text-dim); font-size: var(--fs-lg); }
.einzug__from strong { color: var(--text); font-weight: 700; }
.einzug__points { margin-top: var(--sp-md); display: grid; gap: 0.85rem; }
.einzug__points li { position: relative; padding-left: 2rem; color: var(--text-dim); font-weight: 500; }
.einzug__points li::before {
  content: ''; position: absolute; left: 0; top: 0.15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-md); }
.tag-cloud a { padding: 0.4rem 0.9rem; border-radius: var(--r-full); background: var(--primary-pale); color: var(--primary); font-weight: 600; font-size: var(--fs-sm); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.tag-cloud a:hover { background: var(--primary); color: #fff; }

/* 6.6 Ablauf */
.ablauf__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); counter-reset: step; }
.ablauf__step { position: relative; padding: var(--sp-md); }
.ablauf__step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xl);
  margin-bottom: var(--sp-sm);
}

/* 6.7 Fahrzeuge */
.fahrzeuge { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); align-items: center; }
.leistungen__intro {
  max-width: 980px;
  margin-bottom: var(--sp-lg);
}
.fahrzeuge__features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: var(--sp-md); }
.fahrzeuge__features li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.fahrzeuge__features svg { width: 20px; height: 20px; color: var(--primary); flex: 0 0 auto; }
.fahrzeuge__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* 6.8 Kontakt-CTA */
.kontakt-cta { position: relative; text-align: center; background: linear-gradient(160deg, var(--primary-pale), var(--bg)); overflow: hidden; }
.kontakt-cta__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.kontakt-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; mix-blend-mode: multiply; }
.kontakt-cta .wrap { position: relative; z-index: 1; }
.kontakt-cta__phone { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.5rem, 7vw, var(--fs-6xl)); color: var(--primary); letter-spacing: -0.03em; margin-block: var(--sp-sm); transition: transform var(--dur-base) var(--ease); }
.kontakt-cta__phone:hover { transform: translateY(-4px); }

/* ── 7. ANIMATIONEN ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.clip-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 0.9s var(--ease); }
.clip-reveal.is-visible { clip-path: inset(0% 0 0 0); }

.split-word { overflow: hidden; display: inline-block; vertical-align: top; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 0.045s); }
.split-in .split-word > span { transform: none; }


/* ── 8. REGIONEN (Landingpages) ───────────────────────────────────────────── */
.region-hero { position: relative; padding-top: calc(var(--nav-h) + var(--sp-lg)); padding-bottom: var(--sp-lg); background: var(--primary-pale); overflow: hidden; }
.region-hero h1 { font-size: clamp(1.6rem, 3.5vw, var(--fs-4xl)); }
.region-hero__bg { position: absolute; inset: 0; z-index: 0; }
.region-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.14; }
.region-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-sm); }
.breadcrumb a:hover { color: var(--primary); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); }
.faq__q::after { content: '+'; color: var(--primary); font-size: var(--fs-2xl); transition: transform var(--dur-base) var(--ease); }
.faq[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 1.1rem; color: var(--text-dim); }

.zweigstelle-highlight {
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(245,166,35,0.16), transparent 60%),
    linear-gradient(160deg, var(--primary-pale), var(--bg));
}
.zweigstelle-highlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}
.zweigstelle-highlight__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.zweigstelle-highlight__content .lead {
  margin-top: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

/* ── 9. HELFER-SEITEN (404 / danke) ───────────────────────────────────────── */
.error-page, .thanks-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--sp-lg) 1.25rem; background: radial-gradient(60% 60% at 50% 30%, var(--primary-pale), var(--bg)); }
.error-page__inner, .thanks-page__inner { max-width: 640px; }
.error-page__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 20vw, 12rem); color: var(--primary); line-height: 1; letter-spacing: -0.05em; }
.error-page__title, .thanks-page__title { margin-block: var(--sp-sm); }
.error-page__actions, .thanks-page__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; margin-top: var(--sp-md); }
.thanks-page__note { margin-top: var(--sp-md); font-size: var(--fs-sm); color: var(--text-muted); }

/* ── 9b. KONTAKTSEITE / FORMULAR ──────────────────────────────────────────── */
.kontakt-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-lg); align-items: start; }
.kontakt-info { background: var(--primary-pale); border-radius: var(--r-lg); padding: var(--sp-md); }
.contact-phone { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; margin-bottom: var(--sp-sm); }
.contact-phone .phone-label { font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.contact-phone .phone-number { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xl); color: var(--text); line-height: 1.1; }
.contact-phone:hover .phone-number { color: var(--primary); }
.kontakt-info address { font-style: normal; color: var(--text-dim); line-height: 1.7; margin: 0.5rem 0 var(--sp-md); }
.ablauf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.ablauf-steps li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-dim); }
.ablauf-steps__num { flex: 0 0 auto; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: var(--fs-sm); }

.kontakt-form-wrap { min-width: 0; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--sp-sm); }
.form-row label, .checkbox-label { font-weight: 600; color: var(--text); }
.form-row input, .form-row textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 0.7rem 0.9rem; width: 100%; transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-pale); }
.form-row textarea { resize: vertical; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: var(--text-dim); margin: var(--sp-sm) 0; }
.checkbox-label input { margin-top: 0.25rem; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.form-hint { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-sm); }
.form-error { background: #FDECEC; color: #A32020; border: 1.5px solid #E9A6A6; border-radius: var(--r); padding: 0.8rem 1rem; margin-bottom: var(--sp-sm); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ── 10. MEDIA QUERIES ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .usp__grid { grid-template-columns: 1fr; }
  .ablauf__grid { grid-template-columns: 1fr; }
  .einzug__cols, .fahrzeuge { grid-template-columns: 1fr; }
  .zweigstelle-highlight__grid { grid-template-columns: 1fr; }
  #footer .footer__grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  #nav .nav__inner {
    width: min(100% - 1.4rem, var(--wrap-wide));
  }
  .nav__links {
    gap: 1.1rem;
  }
  .nav__link {
    font-size: 0.96rem;
  }
  .nav__cta {
    gap: 0.5rem;
  }
  .nav__cta .btn {
    padding: 0.74rem 1.05rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 1020px) {
  .nav__links {
    gap: 0.85rem;
  }
  .nav__cta .btn--ghost {
    display: none;
  }
  .nav__cta .btn--phone {
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 980px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__cta {
    gap: 0.45rem;
  }
  .nav__cta .btn--phone {
    min-height: 44px;
    padding: 0.64rem 0.9rem;
  }
}

@media (max-width: 720px) {
  .nav__cta .btn--phone {
    display: none;
  }
  .hero__bg {
    background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.90) 45%, rgba(255,255,255,0.82) 100%);
  }
  .hero__bg img {
    opacity: 0.62;
    filter: saturate(1.02) contrast(1.08) brightness(0.92);
  }
  .hero::before {
    background: linear-gradient(
      160deg,
      rgba(255,255,255,0.94) 0%,
      rgba(255,255,255,0.90) 55%,
      rgba(255,255,255,0.80) 100%
    );
  }
  .hero__title {
    font-size: clamp(2.2rem, 8.8vw, 3rem);
  }
  .hero__sub {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .fahrzeuge__features { grid-template-columns: 1fr; }
}

/* ── 11. REDUCED MOTION (überschreibt alles) ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .clip-reveal { clip-path: none; }
  .split-word > span { transform: none; }
}
