/* ==========================================================================
   Fahrschule Kergl - Stylesheet

   Inhalt
     Design-Tokens
     Bewegung (Seitenwechsel, Keyframes, Einblenden)
     Basis
     Buttons & Links
     Kopfzeile & Navigation
     Typo-Bausteine
     Hero (Startseite)
     Verkehr & Ampel (Startseite, Fehlerseite)
     Status-Anzeige (geöffnet / geschlossen)
     Seitenkopf (Unterseiten)
     Sektionen & Raster
     Karten, Chips & Listen
     Bild-Platzhalter
     Ablauf / Schritte
     Öffnungszeiten & Tabellen
     Theorieplan
     Info-Karte
     CTA-Band
     Hinweisbox
     Angebot
     Preise & Kostenrechner
     Formulare
     Fahrzeuge
     Team
     FAQ
     Google-Bewertungen
     Bestanden! (Startseite)
     Gutscheine
     Checkliste
     Schwebende Buttons
     Fehlerseite 404
     Rechtstexte
     Fußzeile
     Druck
     Reduzierte Bewegung
   ========================================================================== */

/* ---------- Design-Tokens ---------- */

:root {
  /* Markenblau aus dem Styleguide (CMYK 100/91/9/1 = #093581) - Grundton aller dunklen Flächen */
  --blue-950: #062458;
  --blue-900: #093581;
  --blue-800: #0d3e93;
  --blue-700: #1d4c9e;
  --blue-600: #3b66ae;
  --blue-50: #e9eff9;

  /* Navy nur für Kopfzeile und Hingucker (Google-Bewertung, Aufruf-Kasten) */
  --navy: #0f1c2e;
  --navy-light: #15263d;

  --orange: #f0b03e;
  --orange-soft: #f7c66a;
  --orange-ink: #8f5b0a;
  --orange-tint: #fcf2de;
  --orange-line: #f1dcae;

  --bg: #f7f5f1;
  --surface: #fff;
  --surface-2: #f0ece5;
  --paper: #fffdf8; /* Gutschein und Führerschein-Karten */
  --text: #15223a;
  --text-muted: #56637a;
  --text-on-dark: #e8edf4;
  --link-on-dark: #cfd8e5; /* Navigation und ruhige Texte auf dunklen Flächen */
  --muted-on-dark: #c3cfe3;
  --muted-on-darkest: #9fb1cf;
  --line: #e2ddd4;
  --line-strong: #d6cfc3; /* Rahmen beim Drüberfahren bzw. im geöffneten Zustand */
  --line-dark: rgba(255, 255, 255, 0.1);
  --field-border: #d5cfc5;
  --field-ring: 0 0 0 4px rgba(9, 53, 129, 0.16);
  --success: #2f8a5b;
  --error: #b3261e;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.06);
  --shadow: 0 1px 2px rgba(15, 28, 46, 0.05), 0 12px 32px -14px rgba(15, 28, 46, 0.22);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --dash: repeating-linear-gradient(90deg, var(--orange) 0 40px, transparent 40px 70px);
  /* halbtransparentes Gold wirkt auf Blau grau - daher hellblauer Schein und helle Symbolflächen */
  --glow-rgb: 110, 160, 245; /* Lichtschein in dunklen Flächen */
  --icon-tint: rgba(255, 255, 255, 0.1); /* Symbol-Hintergrund auf dunklen Flächen */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  interpolate-size: allow-keywords;
}

/* ---------- Bewegung (Seitenwechsel, Keyframes, Einblenden) ---------- */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 220ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 420ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-scale-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes pulse-open {
  0% { box-shadow: 0 0 0 0 rgba(47, 138, 91, 0.45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(47, 138, 91, 0); }
}

/* Einblenden beim Scrollen - wird nur per JavaScript aktiviert */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Basis ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  overflow-wrap: break-word; /* lange Wörter sprengen bei starkem Zoom sonst die Seite */
}

p { margin: 0 0 1em; }

a { color: var(--blue-900); text-underline-offset: 3px; }

/* Fokusrahmen für die Tastatur: Markenblau auf hellen Flächen, helles Gold auf dunklen - jeweils mind. 3:1 */
:focus-visible {
  outline: 3px solid var(--focus-ring, var(--blue-900));
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header, .hero, .page-hero, .section-dark, .info-card, .cta-band, .score-card,
.checklist-progress, .site-footer { --focus-ring: var(--orange); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  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: -999px;
  top: 12px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--orange);
  color: var(--blue-950);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] { display: none !important; }

/* ---------- Buttons & Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 90ms; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon:has(use[href="#i-arrow"]) { transform: translateX(3px); }

.btn-primary { background: var(--orange); color: var(--blue-950); }
.btn-primary:hover { background: var(--orange-soft); box-shadow: 0 12px 24px -12px rgba(240, 176, 62, 0.75); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }

.btn-outline { border-color: var(--blue-700); color: var(--blue-900); }
.btn-outline:hover { background: var(--blue-900); color: #fff; }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.93rem; }

.btn-quiet { color: var(--text-muted); }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--blue-900);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* Vorwarnung für Links in einen neuen Tab (Symbol setzt main.js › initExternalLinks) */
.icon-external {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.3em;
  vertical-align: -0.08em;
  stroke-width: 2;
  transition: transform var(--dur) var(--ease-out);
}
:is(.btn, .text-link, .nav-extra a) .icon-external { margin-left: 0; }

a:hover .icon-external,
.btn:hover .icon-external,
.text-link:hover .icon-external { transform: translate(2px, -2px); }

/* ---------- Kopfzeile & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy); /* für ältere Browser ohne color-mix */
  background: color-mix(in srgb, var(--navy) 95%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  view-transition-name: site-header;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { display: block; width: auto; height: 46px; }
.brand-footer img { height: auto; width: 210px; max-width: 100%; }

.site-nav { display: flex; align-items: center; gap: 1rem; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  position: relative;
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--link-on-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav ul a[aria-current="page"] { color: #fff; }
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* Handy-Menü mit Zusatzlinks (Gutscheine, Checkliste, Instagram) */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--line-dark);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; animation: rise-in var(--dur) var(--ease-out) both; }
  .site-nav.is-open li { animation: rise-in 420ms var(--ease-out) both; }
  .site-nav.is-open li:nth-child(2) { animation-delay: 30ms; }
  .site-nav.is-open li:nth-child(3) { animation-delay: 60ms; }
  .site-nav.is-open li:nth-child(4) { animation-delay: 90ms; }
  .site-nav.is-open li:nth-child(5) { animation-delay: 120ms; }
  .site-nav.is-open li:nth-child(6) { animation-delay: 150ms; }
  .site-nav.is-open li:nth-child(7) { animation-delay: 180ms; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
  .site-nav ul a::after {
    inset: 0.7rem auto 0.7rem 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center;
  }
  .site-nav .btn { align-self: flex-start; }
  .site-nav .nav-extra {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-dark);
  }
  .site-nav .nav-extra a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: 0.95rem;
  }
  .site-nav .nav-extra a::after { display: none; }
  .site-nav .nav-extra a[aria-current="page"] { border-color: var(--orange); color: #fff; }
}

@media (min-width: 981px) { .site-nav .nav-extra { display: none; } }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-900);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 9px, transparent 9px 14px);
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow { color: var(--orange-soft); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.small { font-size: 0.87rem; color: var(--text-muted); }

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 8rem);
  color: var(--text-on-dark);
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(var(--glow-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, var(--blue-900), var(--blue-800));
}
.hero:has(.traffic-light) { padding-bottom: 9.5rem; }

.hero-road {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(120px, 18vw, 220px);
  pointer-events: none;
  z-index: 0;
}
.road-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 90;
  vector-effect: non-scaling-stroke;
}
.road-line {
  fill: none;
  stroke: var(--orange);
  stroke-opacity: 0.75;
  stroke-width: 3;
  stroke-dasharray: 28 24;
  vector-effect: non-scaling-stroke;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero h1 em { display: block; font-style: normal; color: var(--orange-soft); }
.hero .lead { color: var(--muted-on-dark); max-width: 36rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 2.25rem;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--link-on-dark);
  font-size: 0.95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts .icon { color: var(--orange-soft); }

.hero-visual { position: relative; animation: fade-scale-in 900ms var(--ease-out) 200ms both; }
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Text und Foto gleiten beim Laden nacheinander herein */
.hero-copy > * { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.hero-visual .status-chip { animation: rise-in var(--dur-slow) var(--ease-out) 650ms both; }

@media (max-width: 860px) {
  .hero { padding-bottom: 10rem; }
  .hero:has(.traffic-light) { padding-bottom: 11.5rem; }
  .hero-road { height: 200px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Verkehr & Ampel (Startseite, Fehlerseite) ---------- */

/* Fahrzeuge erzeugt main.js › initTraffic */
.hero-traffic { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vehicle {
  position: absolute;
  top: 0;
  left: 0;
  offset-path: var(--road-path);
  offset-rotate: auto;
  offset-anchor: 50% 50%;
  offset-distance: 0%;
}
.vehicle-body {
  position: relative;
  translate: 0 var(--lane, 0);
  transform: rotate(var(--turn, 0deg)) scale(var(--vehicle-scale, 1));
}
.vehicle svg { display: block; max-width: none; overflow: visible; }
.vehicle-beam {
  position: absolute;
  left: calc(100% - 3px);
  top: 50%;
  width: 88px;
  height: 66px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 238, 196, 0.3), rgba(255, 238, 196, 0) 88%);
  clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 68%);
}
.vehicle--bike .vehicle-beam {
  width: 66px;
  height: 44px;
  clip-path: polygon(0 43%, 100% 0, 100% 100%, 0 57%);
}
.hero-traffic.is-stopped .tail { fill: #ff5a4f; filter: drop-shadow(0 0 2px #ff3b30); }
@media (max-width: 600px) { .hero-traffic { --vehicle-scale: 0.82; } }

/* Ampel als Pause-Schalter - Position setzt main.js an den Straßenrand */
.traffic-light {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px 0;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  cursor: pointer;
  translate: -50% -100%;
  -webkit-tap-highlight-color: transparent;
  animation: rise-in var(--dur-slow) var(--ease-out) 900ms both;
}
.tl-housing {
  display: grid;
  gap: 3px;
  padding: 4px;
  border-radius: 7px;
  background: #1f2226;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 18px -8px rgba(0, 0, 0, 0.75);
  transition: box-shadow var(--dur-fast) ease;
}
.tl-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.tl-red { background: #4a2328; }
.tl-yellow { background: #4a3a1d; }
.tl-green { background: #1e3b2b; }
.traffic-light:is([data-phase="red"], [data-phase="red-yellow"]) .tl-red { background: #ff5147; box-shadow: 0 0 9px 1px rgba(255, 81, 71, 0.75); }
.traffic-light:is([data-phase="yellow"], [data-phase="red-yellow"]) .tl-yellow { background: #ffc233; box-shadow: 0 0 9px 1px rgba(255, 194, 51, 0.7); }
.traffic-light[data-phase="green"] .tl-green { background: #3ee07f; box-shadow: 0 0 9px 1px rgba(62, 224, 127, 0.7); }
.tl-pole { width: 3px; height: 16px; background: linear-gradient(#8a939e, #5d6671); }
.tl-label {
  position: absolute;
  left: calc(100% - 4px);
  top: 8px;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #fff;
  color: var(--blue-900);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  translate: -4px 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease, translate var(--dur) var(--ease-out);
}
.traffic-light:hover .tl-housing { box-shadow: inset 0 0 0 1px rgba(247, 198, 106, 0.65), 0 10px 18px -8px rgba(0, 0, 0, 0.75); }
.traffic-light:hover .tl-label,
.traffic-light:focus-visible .tl-label { opacity: 1; translate: 0 0; }
@media (max-width: 600px) {
  .tl-housing { gap: 2px; padding: 3px; }
  .tl-lamp { width: 8px; height: 8px; }
  .tl-pole { height: 12px; }
}

/* ---------- Status-Anzeige (geöffnet / geschlossen) ---------- */

.status-chip {
  position: absolute;
  left: -1.25rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  line-height: 1.35;
}
.status-chip strong,
.status-panel strong { display: block; }
.status-chip span:not(.status-dot),
.status-panel span:not(.status-dot) { color: var(--text-muted); }
@media (max-width: 860px) { .status-chip { left: 1rem; } }
@media (max-width: 520px) { .status-chip { right: 1rem; } }

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9aa6b8;
  box-shadow: 0 0 0 4px rgba(154, 166, 184, 0.2);
}
.is-open .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(47, 138, 91, 0.2);
  animation: pulse-open 2.4s var(--ease-out) infinite;
}
.motion-paused .is-open .status-dot { animation: none; }

.status-panel {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.status-panel strong { font-size: 1.2rem; font-family: var(--font-display); }
.status-panel .status-dot { width: 14px; height: 14px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.75rem, 6vw, 4.25rem);
  color: var(--text-on-dark);
  background:
    radial-gradient(800px 320px at 92% 0%, rgba(var(--glow-rgb), 0.15), transparent 60%),
    var(--blue-900);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--dash);
  opacity: 0.85;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-hero p:not(.eyebrow) { color: var(--muted-on-dark); max-width: 42rem; font-size: 1.1rem; margin: 0; }

.page-hero .container > * { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.page-hero .container > :nth-child(2) { animation-delay: 70ms; }
.page-hero .container > :nth-child(3) { animation-delay: 140ms; }
.page-hero .container > :nth-child(4) { animation-delay: 210ms; }

.page-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}
.page-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: #fff;
}
.page-stats span { color: var(--muted-on-dark); font-size: 0.92rem; }

/* ---------- Sektionen & Raster ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-flush-top { padding-top: 0; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.muted-lead { color: var(--text-muted); font-size: 1.075rem; margin-bottom: 1.6rem; }
.card-foot { margin: 1.25rem 0 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--blue-900); color: var(--text-on-dark); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.075rem; margin: 0; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p:not(.eyebrow) { color: var(--muted-on-dark); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}
.section-head-row .section-head { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
}

/* ---------- Karten, Chips & Listen ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
a.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast) ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); }
.card .text-link { margin-top: auto; }

/* Karte mit Foto oben */
.card-media { padding: 0; overflow: hidden; }
.card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
a.card-media:hover .card-img { transform: scale(1.05); }
.card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 1.5rem 1.6rem; background: var(--surface); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--blue-50);
  color: var(--blue-900);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-media .card-icon { margin: -24px 0 0.9rem; border: 3px solid var(--surface); box-sizing: content-box; }
a.card .card-icon { transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
a.card:hover .card-icon { background: var(--blue-900); color: #fff; transform: rotate(-4deg) scale(1.05); }

.card-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.card-title .card-icon { margin: 0; }
.card-title h2,
.card-title h3 { margin: 0; font-size: 1.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.9rem; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid #d9e0ea;
  white-space: nowrap;
}

.feature {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--blue-800);
  border: 1px solid var(--line-dark);
}
.feature h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted-on-dark); margin: 0; font-size: 0.98rem; }
.feature .card-icon { background: var(--icon-tint); color: var(--orange-soft); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list .icon { color: var(--blue-900); margin-top: 0.2rem; }

/* ---------- Bild-Platzhalter („Foto folgt“) ---------- */

.ph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, rgba(21, 34, 58, 0.035) 0 12px, transparent 12px 24px);
  border: 1.5px dashed #cfc8bc;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.88rem;
  overflow: hidden;
}
.ph > span { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1rem; }
.ph .icon { width: 40px; height: 40px; opacity: 0.5; margin-bottom: 0.25rem; stroke-width: 1.4; }

/* ---------- Ablauf / Schritte ---------- */

.steps {
  --ring: var(--bg);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}
.section-alt .steps { --ring: var(--surface); }
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 24px);
  opacity: 0.6;
}
.step { position: relative; text-align: center; padding: 0 0.4rem; }
.step-num {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-900);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border: 4px solid var(--ring);
  box-shadow: 0 0 0 1.5px var(--orange);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 26px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-900);
  text-decoration: none;
}
.step-link:hover { text-decoration: underline; }
.step-link .icon { width: 1em; height: 1em; }
.step p { font-size: 0.94rem; color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .steps::before { display: none; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: calc(-1.75rem + 4px);
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--orange) 0 10px, transparent 10px 17px);
    opacity: 0.6;
  }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 0 1.1rem; text-align: left; padding: 0; }
  .step-num { margin: 0; grid-row: span 2; }
  .step-link { grid-column: 2; justify-self: start; }
  .step h3 { align-self: end; margin-top: 0.25rem; }
}

/* ---------- Öffnungszeiten & Tabellen ---------- */

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--line);
}
.hours-list li:first-child { padding-top: 0; }
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list span { color: var(--text-muted); }
.hours-list strong { font-weight: 600; font-variant-numeric: tabular-nums; }
/* in schmalen Karten Bezeichnung und Zeit immer untereinander - sonst springt es je nach Textlänge */
.hours-list-stacked li { flex-direction: column; justify-content: flex-start; gap: 0.1rem; }

.week-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week-table th,
.week-table td { padding: 0.95rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.week-table thead th {
  background: var(--blue-900);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.week-table tbody tr:last-child > * { border-bottom: 0; }
.week-table tbody th { font-weight: 600; white-space: nowrap; }
.week-table .closed { color: var(--text-muted); }
.week-table .is-today > * { background: var(--blue-50); }
.today-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--blue-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ---------- Theorieplan (main.js › initTheory) ---------- */

.lesson-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-900);
  color: var(--orange-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

/* Hinweis „Nächste Theorie“ in den Zeiten-Karten */
.next-lesson {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}
.next-lesson:hover { background: #dde6f5; }
.next-lesson .lesson-badge { width: 38px; height: 38px; border-radius: 10px; font-size: 1rem; }
.next-lesson-text { flex: 1; min-width: 0; line-height: 1.3; }
.next-lesson small {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-900);
}
.next-lesson small span { white-space: nowrap; }
.next-lesson strong { display: block; font-size: 0.97rem; }
.next-lesson > .icon { width: 1.1em; height: 1.1em; color: var(--blue-900); transition: transform var(--dur) var(--ease-out); }
.next-lesson:hover > .icon { transform: translateX(3px); }

/* Nächste Stunde als Banner, die folgenden Termine als Kartenreihe darunter */
.theory-next { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
.theory-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.5rem, 3vw, 2.1rem) clamp(1.75rem, 3vw, 2.3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(var(--glow-rgb), 0.16), transparent 70%),
    var(--blue-900);
  color: var(--text-on-dark);
}
.theory-spotlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--dash);
  opacity: 0.85;
}
.theory-spotlight .eyebrow { color: var(--orange-soft); }
.theory-when {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.theory-time { margin: 0.35rem 0 0; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.theory-skip { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--muted-on-dark); }
.theory-topic { display: flex; align-items: center; gap: 1rem; padding-left: 2.5rem; border-left: 1px solid var(--line-dark); }
.theory-topic strong { display: block; color: #fff; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.25; }
.theory-topic span:not(.lesson-badge) { color: var(--muted-on-dark); font-size: 0.9rem; }
.theory-spotlight .lesson-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--icon-tint); font-size: 1.3rem; }

/* Kreislauf als Straßenmarkierung, darunter die Themennummern in ihrer Reihenfolge */
.theory-cycle { grid-column: 1 / -1; }
.theory-cycle-bar { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.theory-cycle-bar li {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  color: var(--muted-on-darkest);
  font-variant-numeric: tabular-nums;
}
.theory-cycle-bar li::before {
  content: "";
  display: block;
  height: 5px;
  margin-bottom: 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}
.theory-cycle-bar .is-done::before { background: rgba(255, 255, 255, 0.5); }
.theory-cycle-bar .is-current { color: var(--orange-soft); font-weight: 800; }
.theory-cycle-bar .is-current::before { background: var(--orange); box-shadow: 0 0 10px rgba(240, 176, 62, 0.6); }
.theory-cycle p { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted-on-dark); }

.theory-list-title { margin-bottom: 0.9rem; font-size: 1.15rem; }
.theory-upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 0.75rem;
}
.theory-upcoming li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.theory-upcoming strong { display: block; line-height: 1.3; }
.theory-upcoming div > span:not(.sr-only) { display: block; margin-top: 0.15rem; font-size: 0.87rem; line-height: 1.4; color: var(--text-muted); }
.theory-upcoming .is-cancelled { background: transparent; border-style: dashed; }
.theory-upcoming .is-cancelled strong { color: var(--text-muted); }

.date-tile {
  display: grid;
  justify-items: center;
  flex-shrink: 0;
  width: 52px;
  padding: 0.3rem 0 0.35rem;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-900);
  line-height: 1.15;
}
.date-tile span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.date-tile strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.is-cancelled .date-tile { background: var(--surface-2); color: var(--text-muted); }

/* Alle Lektionen mit ihren nächsten Terminen */
.theory-subtitle { margin: clamp(2.75rem, 6vw, 4rem) 0 0.4rem; font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
.theory-intro { max-width: 40rem; color: var(--text-muted); }
.lesson-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 1.75rem 0 0.7rem;
  font-size: 1.05rem;
}
.lesson-group-title span { font-family: var(--font); font-size: 0.88rem; font-weight: 400; letter-spacing: 0; color: var(--text-muted); }
.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.lesson-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem 0.8rem 0.9rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.lesson-row + .lesson-row { border-top: 1px solid var(--line); }
.lesson-row.is-next { background: var(--blue-50); }
.lesson-row .lesson-badge { width: 40px; height: 40px; font-size: 1rem; }
.lesson-info strong { font-weight: 600; line-height: 1.35; }
.lesson-info .today-badge { margin-left: 0.35rem; }
.lesson-dates { text-align: right; line-height: 1.35; font-variant-numeric: tabular-nums; }
.lesson-dates strong { display: block; color: var(--blue-900); white-space: nowrap; }
.lesson-dates span { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 760px) {
  .theory-spotlight { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .theory-topic { padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .theory-upcoming li { flex-direction: row; align-items: center; gap: 1rem; padding: 0.7rem 1rem 0.7rem 0.7rem; }
  .lesson-row { grid-template-columns: 40px minmax(0, 1fr); gap: 0.2rem 0.9rem; }
  .lesson-row .lesson-badge { grid-row: span 2; }
  .lesson-dates { display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; text-align: left; }
}

/* ---------- Info-Karte (Adresse, Kontaktwege) ---------- */

.info-card {
  background: var(--blue-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.info-card h2,
.info-card h3 { color: #fff; font-size: 1.25rem; }
.info-card .muted-lead { color: var(--muted-on-dark); }
.notice + .info-card { margin-top: 1.25rem; }

.info-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; }
.info-list strong { display: block; color: #fff; font-weight: 600; }
.info-list span { color: var(--muted-on-dark); font-size: 0.95rem; }
.info-list a { color: #fff; text-decoration: none; }
.info-list a:hover { color: var(--orange-soft); text-decoration: underline; }
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--icon-tint);
  color: var(--orange-soft);
}

/* ---------- CTA-Band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  color: #fff;
  /* Hingucker in Navy - hier darf der Schein golden sein */
  --glow-rgb: 240, 176, 62;
  background:
    radial-gradient(600px 260px at 100% 100%, rgba(var(--glow-rgb), 0.2), transparent 70%),
    linear-gradient(135deg, var(--navy-light), var(--navy));
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--dash);
  opacity: 0.85;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.cta-band p { color: var(--muted-on-dark); margin: 0; max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hinweisbox ---------- */

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  border: 1px solid var(--orange-line);
  color: #5e420d;
  font-size: 0.95rem;
}
.notice .icon { color: var(--orange-ink); margin-top: 0.15rem; }
.notice p { margin: 0; }

/* ---------- Angebot (Unter-Navigation, Klassen, Vergleich) ---------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav a {
  display: block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.subnav a:hover { border-color: var(--blue-700); color: var(--blue-900); }

.anchor-target { scroll-margin-top: calc(var(--header-h) + 80px); }

.class-group + .class-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.class-group > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.class-group > p { color: var(--text-muted); max-width: 44rem; margin-bottom: 1.75rem; }

.class-list { display: grid; gap: 1.25rem; }

.class-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.class-card-head { display: flex; gap: 1rem; align-items: flex-start; }
.class-card-head h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.class-card-head p { color: var(--text-muted); margin: 0; }
.class-badge {
  min-width: 60px;
  height: 60px;
  padding: 0 0.7rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue-900);
  color: var(--orange-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.class-badge .icon { width: 26px; height: 26px; }
.class-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }

.facts { margin: 0; display: grid; gap: 0.9rem; }
.facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line);
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); padding-top: 0.1rem; }
.facts dd { margin: 0; }

.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th,
.compare-table td { padding: 0.9rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th {
  background: var(--blue-900);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table th[scope="row"] a { display: inline-block; min-width: 26px; padding-block: 3px; }
.compare-table tbody th a { font-weight: 700; color: var(--blue-900); text-decoration: none; }
.compare-table tbody th a:hover { color: var(--blue-700); text-decoration: underline; }

@media (max-width: 860px) {
  .class-card { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* ---------- Preise & Kostenrechner ---------- */

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.tablist {
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tablist [role="tab"] {
  flex: 1 0 auto;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.tablist [role="tab"]:hover { color: var(--text); }
.tablist [role="tab"][aria-selected="true"] { background: var(--blue-900); color: #fff; box-shadow: 0 6px 16px -8px rgba(9, 53, 129, 0.5); }
.tabs [role="tabpanel"]:not([hidden]) { animation: rise-in 450ms var(--ease-out) both; }

.price-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-card:not([hidden]) ~ .price-card:not([hidden]) { margin-top: 1.25rem; }
.price-card-head { padding: 1.4rem 1.5rem 1.1rem; }
.price-card-head h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.price-card-head p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.price-card-sub { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.price-card-sub + .price-table tr:first-child > * { border-top: 0; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 1rem 1.5rem; border-top: 1px solid var(--line); vertical-align: top; }
.price-table th { text-align: left; font-weight: 600; }
.price-table th span { display: block; margin-top: 0.15rem; font-size: 0.87rem; font-weight: 400; color: var(--text-muted); }
.price-table td {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-900);
}
/* Gruppe „Besondere Ausbildungsfahrten“: gemeinsame Überschrift, eingerückte Zeilen */
.price-table .price-group th { padding-block: 0.8rem 0.7rem; background: var(--blue-50); font-size: 0.97rem; }
.price-table .price-group th span { display: inline; margin-left: 0.35rem; }
.price-table .price-group th span::before { content: "· "; }
.price-table .price-sub th { position: relative; padding-left: 2.6rem; font-weight: 500; }
.price-table .price-sub th::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: calc(1rem + 0.7em);
  width: 0.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.price-table .price-sub + .price-sub > * { border-top-style: dashed; }
.price-foot { padding: 1rem 1.5rem; background: var(--surface-2); font-size: 0.88rem; color: var(--text-muted); }

/* Kostenrechner (main.js › initCalculator) */
.calc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.calc h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.calc > p { color: var(--text-muted); font-size: 0.95rem; }
.calc-breakdown { margin: 1.4rem 0 0; display: grid; gap: 0.55rem; font-size: 0.93rem; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.calc-breakdown dt { color: var(--text-muted); }
.calc-breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--blue-900);
}
.calc-total span { font-weight: 600; }
.calc-total strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--blue-900);
  font-variant-numeric: tabular-nums;
}

.calc-note {
  padding: 0.9rem 1rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(240, 176, 62, 0.28);
  color: var(--text);
  font-size: 0.87rem;
  line-height: 1.5;
}
.calc-note-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-weight: 700;
}
.calc .calc-note-title { color: var(--text); }
.calc-note-title .icon { color: var(--orange-ink); }
.calc-note ul { margin: 0; padding: 0; list-style: none; }
.calc-note li {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    margin-top var(--dur) var(--ease-out);
}
.calc-note li + li { margin-top: 0.3rem; }
.calc-note li > span { position: relative; min-height: 0; overflow: hidden; padding-left: 1rem; }
.calc-note li > span::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-ink);
}
.calc-note li.is-collapsed { grid-template-rows: 0fr; opacity: 0; margin-top: 0; }

@media (max-width: 960px) {
  .price-layout { grid-template-columns: minmax(0, 1fr); }
  .calc { position: static; }
}

/* ---------- Formulare ---------- */

.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.field label,
.field-label { font-weight: 600; font-size: 0.93rem; }
.req { color: var(--blue-900); }

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur) var(--ease-out);
}
textarea { min-height: 150px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-900);
  box-shadow: var(--field-ring);
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--error); }

.field-error { color: var(--error); font-size: 0.86rem; font-weight: 500; }
.field-error:empty { display: none; }

.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.93rem; font-weight: 400; }
.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue-900);
}

/* Auswahlfelder: eigene Liste statt Browser-Dropdown (main.js › initSelects) */
.pick { position: relative; }
.pick.is-open { z-index: 20; }
.pick-button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 50px;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur) var(--ease-out);
}
.pick-button:hover { border-color: #bfb7aa; }
.pick-button:focus-visible,
.pick.is-open .pick-button { outline: none; border-color: var(--blue-900); box-shadow: var(--field-ring); }
.pick-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-900);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.pick-icon .icon { width: 20px; height: 20px; }
.pick-value { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-chevron { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--dur) var(--ease-out); }
.pick.is-open .pick-chevron { transform: rotate(180deg); }

.pick-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(340px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(15, 28, 46, 0.45), 0 2px 6px rgba(15, 28, 46, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 160ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.pick.pick-up .pick-list { top: auto; bottom: calc(100% + 6px); transform: translateY(6px) scale(0.98); transform-origin: bottom center; }
.pick.is-open .pick-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pick-list:focus-visible { outline: none; } /* die hervorgehobene Option zeigt den Fokus */

.pick-group + .pick-group,
.pick-group + .pick-option,
.pick-option + .pick-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.pick-group-label {
  padding: 0.5rem 0.6rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pick-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}
.pick-option.is-active { background: var(--blue-50); }
.pick-title { display: block; font-weight: 600; line-height: 1.3; }
.pick-desc { display: block; font-size: 0.84rem; line-height: 1.3; color: var(--text-muted); }
.pick-check {
  width: 18px;
  height: 18px;
  color: var(--blue-900);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}
.pick-option[aria-selected="true"] .pick-check { opacity: 1; transform: none; }
.pick-option[aria-selected="true"] .pick-icon { background: var(--blue-900); color: #fff; }
/* beim Öffnen gleiten die Optionen nacheinander herein */
.pick.is-open .pick-option { animation: pick-in 260ms var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px); } }

/* Schieberegler mit Plus/Minus (Kostenrechner) */
.range-label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.range-label output {
  min-width: 2.6rem;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--blue-950);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.range-control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 0.35rem;
}

.range {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.range:focus { box-shadow: none; outline: none; }

.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--orange) 0 var(--fill), #e6e0d7 var(--fill) 100%);
}
.range::-moz-range-track { height: 8px; border-radius: 999px; background: #e6e0d7; }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--orange); }

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 28, 46, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 28, 46, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.range:hover::-moz-range-thumb { transform: scale(1.1); }
.range:active::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 8px rgba(240, 176, 62, 0.22), 0 2px 8px rgba(15, 28, 46, 0.28);
}
.range:active::-moz-range-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 8px rgba(240, 176, 62, 0.22), 0 2px 8px rgba(15, 28, 46, 0.28);
}
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--blue-900), 0 2px 8px rgba(15, 28, 46, 0.28); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--blue-900), 0 2px 8px rgba(15, 28, 46, 0.28); }

.step-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--blue-900);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform 90ms ease;
}
.step-btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.step-btn:hover:not(:disabled) { border-color: var(--orange); background: var(--orange); color: var(--blue-950); }
.step-btn:active:not(:disabled) { transform: scale(0.92); }
.step-btn:disabled { opacity: 0.35; cursor: default; }

.range-scale {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding-inline: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Kontaktformular */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card {
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.form-card form > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.form-card .notice { margin-bottom: 1.25rem; }
.form-card .btn:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

/* Spamschutz-Feld: für Menschen unsichtbar, Bots füllen es trotzdem aus (kontakt.php) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #eef7f1;
  border: 1px solid #cfe6d8;
}
.form-success:focus { outline: none; }
.form-success:not([hidden]) { animation: rise-in 500ms var(--ease-out) both; }
.form-success h3 { display: flex; align-items: center; gap: 0.6rem; color: var(--success); font-size: 1.2rem; }
.form-success p:last-child { margin: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fahrzeuge ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur-fast) ease, color var(--dur) var(--ease-out), transform 90ms ease;
}
.filter-btn:hover { border-color: var(--blue-700); }
.filter-btn:active { transform: scale(0.97); }
.filter-btn[aria-pressed="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

.fleet-group + .fleet-group { margin-top: clamp(3rem, 6vw, 4rem); }
.fleet-group > h2 { display: flex; align-items: center; gap: 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.fleet-group > h2 .count {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-900);
  letter-spacing: 0;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}
.vehicle-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vehicle-card .ph { aspect-ratio: 4 / 3; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.vehicle-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.vehicle-card-body { padding: 1.25rem 1.35rem 1.45rem; }
.vehicle-card-body p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.vehicle-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.vehicle-top h3 { font-size: 1.2rem; margin: 0; }
.vehicle-top .chips { margin: 0; justify-content: flex-end; }
.spec-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.spec-list li { display: inline-flex; align-items: center; gap: 0.45rem; }
.spec-list .icon { width: 1.05em; height: 1.05em; color: var(--blue-900); }
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* ---------- Team ---------- */

/* Teamseite */
.team-photo { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.team-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.team-lead h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 0.75rem; }
@media (max-width: 760px) { .team-lead { grid-template-columns: minmax(0, 1fr); } }

.role {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-900);
}

.team-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}
.team-lead .team-img { border-radius: var(--radius); }
.team-card .team-img { border-bottom: 1px solid var(--line); }

.team-grid-title {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
}
.team-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.team-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.team-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* „Bildet aus in“ - Ausbildungsklassen je Fahrlehrer */
.teaches { margin: 0.2rem 0 1.4rem; }
.team-card .teaches { margin-bottom: 0; }
.teaches-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.teaches .chips { margin: 0; }
.teaches-list { display: grid; gap: 0.5rem; margin: 0; }
.teaches-list > div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.teaches-list dt { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.teaches-list dd { margin: 0; }

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.aside-title { font-size: 1.1rem; margin-bottom: 0.35rem; }

.search-field { position: relative; }
.search-field .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-field input { padding-left: 2.6rem; }

.faq-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.faq-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.faq-nav a:hover { background: var(--surface); color: var(--blue-900); }

.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group > h2 { font-size: 1.35rem; margin-bottom: 1rem; }

.faq-item {
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast) ease;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--line-strong); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-right: 0.25rem;
  border-right: 2px solid var(--blue-900);
  border-bottom: 2px solid var(--blue-900);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-item summary:hover { color: var(--blue-900); }

/* Antwort klappt weich auf */
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size var(--dur) var(--ease-out), content-visibility var(--dur) allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-answer {
  padding: 0 1.3rem 1.3rem;
  color: var(--text-muted);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.faq-item:not([open]) .faq-answer { opacity: 0; transform: translateY(-6px); }
.faq-answer p:last-child,
.faq-answer ul:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.2rem; margin: 0 0 1em; }

.faq-empty { padding: 2rem; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--text-muted); }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { position: static; }
  .faq-aside .faq-nav,
  .faq-aside .card { display: none; }
}

/* ---------- Google-Bewertungen ---------- */

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.score-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  /* Hingucker in Navy - hier darf der Schein golden sein */
  --glow-rgb: 240, 176, 62;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(var(--glow-rgb), 0.18), transparent 70%),
    var(--navy);
  color: var(--text-on-dark);
  text-align: center;
}
.score-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--dash);
  opacity: 0.85;
}
.score-card .eyebrow { justify-content: center; color: var(--orange-soft); }
.score-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.stars { display: flex; justify-content: center; gap: 0.2rem; margin: 0.7rem 0 0.9rem; color: var(--orange); }
.stars .icon { width: 26px; height: 26px; }
.score-card p { color: var(--muted-on-dark); margin-bottom: 1.4rem; }
.score-card p strong { color: #fff; }
.score-meta { font-size: 0.8rem; margin: 1rem 0 0 !important; }

.quote-card {
  position: relative;
  margin: 0 0 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--blue-900);
}
.quote-card blockquote::before {
  content: "„";
  display: block;
  height: 0.55em;
  margin-bottom: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 0.35;
  color: var(--orange);
}
.quote-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: 0.88rem; color: var(--text-muted); }
.quote-card figcaption .stars { margin: 0; justify-content: flex-start; }
.quote-card figcaption .stars .icon { width: 15px; height: 15px; }

.mentions-title { margin: 0 0 0.6rem; font-weight: 600; font-size: 0.93rem; }
.mentions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.mention {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}
.mention b { color: var(--blue-900); font-variant-numeric: tabular-nums; }
.reviews-note { margin: 0; font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 860px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bestanden! (Startseite) ---------- */

.pass-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 340px at 72% 50%, rgba(var(--glow-rgb), 0.11), transparent 65%),
    var(--blue-900);
}
.pass-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
.pass-copy h2 { color: #fff; }
.pass-copy p:not(.eyebrow) { max-width: 34rem; margin-bottom: 1.75rem; color: var(--muted-on-dark); font-size: 1.075rem; }

/* Führerschein-Karten im Scheckkartenformat */
.pass-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
}
.pass-card {
  --tilt: -3deg;
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 8%;
  aspect-ratio: 85.6 / 54;
  padding: 8%;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper) 30%, var(--orange-tint));
  color: var(--blue-900);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  rotate: var(--tilt);
  transition: rotate var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.pass-card:nth-child(2) { --tilt: 2deg; }
.pass-card:nth-child(3) { --tilt: -1deg; }
.pass-card:nth-child(4) { --tilt: 2.5deg; }
.pass-card:nth-child(5) { --tilt: -2deg; }
.pass-card:nth-child(6) { --tilt: 1.5deg; }
.pass-card:hover { rotate: 0deg; transform: translateY(-4px) scale(1.04); }

.pass-photo {
  grid-row: 1 / -1;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--blue-50);
  color: #a3b2c6;
}
.pass-photo .icon { width: 62%; height: auto; aspect-ratio: 1; stroke-width: 1.5; }
.pass-label {
  font-size: 5.4cqw;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.pass-class {
  align-self: center;
  font-family: var(--font-display);
  font-size: 21cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pass-stamp {
  position: absolute;
  right: 6%;
  bottom: 9%;
  padding: 1.5cqw 3cqw;
  border: 0.9cqw solid currentColor;
  border-radius: 2cqw;
  font-size: 5.6cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  opacity: 0.88;
  rotate: -11deg;
}

@media (max-width: 860px) {
  .pass-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pass-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass-card:nth-child(n + 5) { display: none; }
}

/* ---------- Gutscheine ---------- */

/* Gutschein im Format 210 × 99 mm - skaliert über Container-Einheiten mit */
.voucher {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 37% 1fr;
  width: 100%;
  aspect-ratio: 210 / 99;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  color: var(--blue-900);
  box-shadow: 0 30px 60px -28px rgba(15, 28, 46, 0.55), 0 0 0 1px rgba(15, 28, 46, 0.08);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.voucher-side {
  position: relative;
  overflow: hidden;
  padding: 6cqw 4cqw;
  background: var(--blue-900);
}
.voucher-side img { position: relative; z-index: 1; width: 100%; height: auto; }
.voucher-splash { position: absolute; right: -16%; bottom: -12%; width: 82%; color: var(--orange); opacity: 0.95; }
.voucher-side::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.2cqw;
  height: 0.55cqw;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 3cqw, transparent 3cqw 5cqw);
}
/* QR-Code zur Website - nur auf der Druckvorlage */
.voucher-qr {
  position: absolute;
  z-index: 1;
  left: 4cqw;
  bottom: 8.5cqw;
  display: grid;
  gap: 0.9cqw;
  justify-items: start;
  margin: 0;
}
.voucher-qr figcaption {
  font-size: 1.25cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-soft);
}
.voucher-side .voucher-qr img { width: 10.5cqw; border-radius: 0.8cqw; }
.voucher-main { display: flex; flex-direction: column; padding: 4cqw 4.6cqw 3.2cqw; line-height: 1.3; }
.voucher-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 7.4cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-900);
}
.voucher-sub {
  margin: 1cqw 0 2.6cqw;
  font-size: 2cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.voucher-field { display: flex; align-items: flex-end; gap: 1.4cqw; margin-bottom: 1.8cqw; font-size: 2.1cqw; color: var(--text-muted); }
.voucher-field > span:first-child { flex-shrink: 0; min-width: 11cqw; }
.voucher-line {
  flex: 1;
  min-height: 3.1cqw;
  padding-bottom: 0.3cqw;
  border-bottom: 0.25cqw solid rgba(15, 28, 46, 0.3);
  font-family: var(--font-display);
  font-size: 2.6cqw;
  font-weight: 700;
  color: var(--blue-900);
}
.voucher-value .voucher-line { font-size: 3.4cqw; min-height: 4.2cqw; }
.voucher-value .voucher-euro { font-family: var(--font-display); font-size: 3.4cqw; font-weight: 800; color: var(--blue-900); }
.voucher-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4cqw; }
.voucher-meta .voucher-field { font-size: 1.6cqw; }
.voucher-meta .voucher-field > span:first-child { min-width: 0; }
.voucher-meta .voucher-line { font-size: 2cqw; min-height: 2.6cqw; }
.voucher-foot {
  display: flex;
  justify-content: space-between;
  gap: 2.5cqw;
  margin-top: auto;
  font-size: 1.3cqw;
  line-height: 1.45;
  color: var(--text-muted);
}
.voucher-foot strong { color: var(--blue-900); }
.voucher-terms { max-width: 52%; text-align: right; }

@container (max-width: 440px) {
  .voucher-foot { display: none; }
  .voucher-sub { font-size: 2.6cqw; }
  .voucher-field { font-size: 2.8cqw; margin-bottom: 3cqw; }
  .voucher-line { font-size: 3.4cqw; }
}

.voucher-stage { padding: clamp(0.5rem, 2vw, 1.5rem); }
.voucher-stage .voucher { transform: rotate(-2.5deg); transition: transform 600ms var(--ease-out); }
.voucher-stage:hover .voucher { transform: rotate(0deg) scale(1.02); }

.gift-steps { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.1rem; counter-reset: gift; }
.gift-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; }
.gift-steps li::before {
  counter-increment: gift;
  content: counter(gift);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-900);
  color: var(--orange-soft);
  font-weight: 700;
}
.gift-steps strong { display: block; }
.gift-steps span { color: var(--text-muted); font-size: 0.97rem; }

.gift-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gift-teaser h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.gift-teaser > div:last-child p:not(.eyebrow) { color: var(--text-muted); }
@media (max-width: 860px) {
  .gift-teaser { grid-template-columns: minmax(0, 1fr); }
}

.card .price-idea { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--blue-900); margin: 0 0 0.35rem; }

/* ---------- Checkliste ---------- */

.checklist-progress {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  background: var(--blue-900);
  color: #fff;
  box-shadow: var(--shadow);
}
.checklist-progress strong { font-variant-numeric: tabular-nums; }
.checklist-progress .icon { color: var(--orange-soft); }
.progress-bar {
  --done: 0%;
  flex: 1 1 180px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.progress-bar::before {
  content: "";
  display: block;
  width: var(--done);
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width var(--dur) var(--ease-out);
}
.checklist-progress.is-complete .progress-bar::before { background: #4cc38a; }

.checklist-group + .checklist-group { margin-top: 2.25rem; }
.checklist-group > h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; margin-bottom: 0.9rem; }
.checklist-group > h2 .chip { font-family: var(--font); letter-spacing: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur) var(--ease-out);
}
.check-item:hover { border-color: var(--line-strong); }
.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 2px solid #cfc8bc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.check-item input::after {
  content: "";
  width: 8px;
  height: 14px;
  margin-top: -3px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform var(--dur) var(--ease-out);
}
.check-item input:checked { background: var(--blue-900); border-color: var(--blue-900); }
.check-item input:checked::after { transform: rotate(45deg) scale(1); }
.check-item input:focus-visible { outline: 3px solid var(--blue-900); outline-offset: 2px; box-shadow: none; }
.check-item strong { display: block; line-height: 1.35; margin-top: 0.1rem; transition: color var(--dur-fast) ease; }
.check-item small { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.9rem; }
.check-item:has(input:checked) { background: var(--blue-50); border-color: #c9d6ee; }
.check-item:has(input:checked) strong { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(86, 99, 122, 0.5); }

/* ---------- Schwebende Buttons: Instagram über WhatsApp (main.js › initFloatingButtons) ---------- */

.fab-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab {
  display: flex;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  animation: fab-in 600ms var(--ease-out) 1.2s both;
  transition: background-color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}
.fab:hover { transform: translateY(-2px); }
/* schwebt über hellen und dunklen Flächen - daher zweifarbiger Fokusrahmen */
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px var(--blue-950), 0 14px 30px -10px rgba(10, 20, 34, 0.55); }
.fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), margin var(--dur) var(--ease-out);
}
.fab:is(:hover, :focus-visible) .fab-label { max-width: 130px; opacity: 1; margin: 0 4px 0 10px; }
.fab .fab-label .icon-external { width: 0.85em; height: 0.85em; margin-left: 0.35em; stroke-width: 2; }
@keyframes fab-in { from { opacity: 0; transform: translateY(20px) scale(0.8); } }

.wa-fab {
  height: 58px;
  padding: 0 15px;
  background: #138443;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(10, 20, 34, 0.55);
}
.wa-fab .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.wa-fab:hover { background: #0e7a3c; }

/* Instagram kleiner und ruhiger als WhatsApp, mittig über dessen Symbol */
.ig-fab {
  height: 46px;
  margin-right: 6px;
  padding: 0 11px;
  background: #fff;
  color: var(--blue-900);
  box-shadow: 0 10px 24px -10px rgba(10, 20, 34, 0.5), 0 0 0 1px rgba(9, 53, 129, 0.12);
  animation-delay: 1.35s;
}
.ig-fab .icon { width: 24px; height: 24px; }
.ig-fab:hover { background: var(--blue-50); }

/* ---------- Fehlerseite 404 ---------- */

.error-hero .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.error-visual { display: flex; justify-content: center; }
.error-sign {
  width: clamp(150px, 20vw, 230px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 100%;
  animation: sign-wobble 1.8s var(--ease-out) 900ms both;
}
@keyframes sign-wobble {
  0%, 100% { rotate: 0deg; }
  18% { rotate: -3.5deg; }
  42% { rotate: 2.2deg; }
  66% { rotate: -1deg; }
  84% { rotate: 0.4deg; }
}

.error-links p { margin: 0 0 0.6rem; color: var(--muted-on-dark); font-size: 0.92rem; }
.error-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.error-links a {
  display: inline-flex;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--link-on-dark);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.error-links a:hover { color: #fff; border-color: rgba(247, 198, 106, 0.6); background: rgba(255, 255, 255, 0.05); }

@media (max-width: 860px) {
  .error-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .error-sign { width: 150px; }
}

/* ---------- Rechtstexte ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose a { overflow-wrap: anywhere; } /* lange Adressen dürfen auf schmalen Handys umbrechen */

/* ---------- Fußzeile ---------- */

.site-footer {
  position: relative;
  padding-top: 4rem;
  background: var(--blue-950);
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--dash);
  opacity: 0.85;
}
.site-footer a { color: #d9e1ec; text-decoration: none; }
.site-footer a:hover { color: var(--orange-soft); text-decoration: underline; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer address { font-style: normal; margin-bottom: 0.75rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
}
.footer-title {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list span { display: block; font-size: 0.8rem; color: var(--muted-on-darkest); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Druck (Checkliste, Gutschein-Druckvorlage) ---------- */

.print-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2rem; }
[data-checklist] + .print-toolbar { margin-top: 1.75rem; }
.print-sheet { display: grid; gap: 2.5rem; max-width: 760px; }
.cut-line { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.8rem; }
.cut-line::before,
.cut-line::after { content: ""; flex: 1; border-top: 1.5px dashed #b9b2a5; }

@media print {
  .site-header, .site-footer, .fab-stack, .hero-traffic, .traffic-light, .page-hero::after, .print-toolbar, .no-print { display: none !important; }
  body { background: #fff; }
  .has-reveal .reveal,
  .hero-copy > *,
  .hero-visual,
  .page-hero .container > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .page-hero { background: none; color: var(--text); padding: 0 0 1rem; }
  .page-hero h1, .page-hero p:not(.eyebrow) { color: var(--text); }
  .section { padding: 0; }
  .checklist-progress { position: static; box-shadow: none; }
  .check-item { break-inside: avoid; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
