/* Autohaus Erbach / Toyota Team Erbach — Frontend.
   Gestaltung 2026-11-12: Referenz auto-dieburg.de (dunkel, große Karten, kräftige Headlines),
   aber breiter: Inhalt bis 1760 px, damit große Monitore nicht mit schmaler Spalte enden.
   Farben aus dem TTE-Logo (Rot/Schwarz/Weiß). Rot = Handlungsfarbe (Buttons, Akzente),
   nie für Preise.
   Schrift seit 2026-11-13: Toyota Type (Händlerpaket aus dem Toyota-Marketingportal, WOFF2).
   CI: Headlines in Light/Book/Regular, versal ODER Satzschreibung, keine Kursiv-Headlines.
   Book und Regular haben in der Datei beide usWeightClass 400 → Regular hier als 500 geführt. */

/* ─── Schriften (lokal, DSGVO) ─────────────────────────────── */
@font-face { font-family: "Toyota Type"; src: url("/fonts/toyotatype-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Toyota Type"; src: url("/fonts/toyotatype-book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Toyota Type"; src: url("/fonts/toyotatype-book-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Toyota Type"; src: url("/fonts/toyotatype-regular.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Toyota Type"; src: url("/fonts/toyotatype-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Toyota Type"; src: url("/fonts/toyotatype-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }   /* nur Startseiten-H1 (Wunsch Frank, weicht von CI S. 14 ab) */

/* ─── Tokens ───────────────────────────────────────────────── */
:root {
  --bg:        #111214;   /* warmes Schwarz */
  --surface:   #1a1c1f;
  --surface-2: #23262a;
  --line:      rgb(255 255 255 / .09);
  --text:      #f3f2ef;
  --muted:     #a7a9ad;
  --red:       #e30613;   /* TTE-Rot */
  --red-hell:  #ff2b37;
  --red-tief:  #9e0510;
  --white:     #ffffff;

  --font-text: "Toyota Type", system-ui, sans-serif;
  --font-head: "Toyota Type", system-ui, sans-serif;
  --w-head:    400;   /* Book — kurze große Headlines, große Zahlen, Preise (VI 2026 S. 14) */
  --w-label:   600;   /* Semibold — kurze Zwischentitel in Karten, Legenden, Footer-Titel */

  --wrap:      1760px;
  --gutter:    clamp(16px, 4vw, 72px);
  --rail:      0px;          /* Platz für die Aktionsleiste rechts (ab 1100 px) */
  --radius:    22px;
  --radius-s:  12px;
  --shadow-rot: 0 14px 34px -12px rgb(227 6 19 / .55);
}

/* ─── Basis ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; font-family: var(--font-text); font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6; color: var(--text); background: var(--bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));     /* mobile Aktionsleiste */
}
/* Filmkorn als Textur */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red-hell); }
:focus-visible { outline: 3px solid var(--red-hell); outline-offset: 3px; border-radius: 4px; }
/* VI-Guideline 2026 S. 14: kurze große Headlines Book, Laufweite +10 (= .01em);
   längere, satzartige Headlines Regular, Zeilenabstand 120 % → h3 */
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--w-head); line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
h3 { font-weight: 500; line-height: 1.2; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; color: var(--red-hell); }   /* CI: keine Kursiv-Headlines, Akzent nur über Farbe */
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: var(--white); padding: .75rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; }

.wrap, .container {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter) + var(--rail)); margin-inline: auto;
  padding-inline: var(--gutter) calc(var(--gutter) + var(--rail));
}
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--intro { padding-top: clamp(2rem, 4vw, 3.5rem); }
.section--flaeche { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.kicker::before { content: ""; display: inline-block; width: 1.6em; height: 3px; margin-right: .6em; vertical-align: middle; background: var(--red); transform: skewX(-20deg); }
.section-h { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 4.2rem); }
.section-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-kopf .section-h { margin: 0; }
.page-title { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.8rem); margin: 0 0 1.5rem; }
.hinweis { color: var(--muted); font-size: .9rem; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn, .cms-contact-submit {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .7rem 1.5rem;
  border: 0; border-radius: 999px; font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { color: var(--white); transform: translateY(-2px); }
.btn--rot, .cms-contact-submit { background: linear-gradient(135deg, var(--red-hell), var(--red) 55%, var(--red-tief)); color: var(--white); box-shadow: var(--shadow-rot); }
.btn--rot:hover, .cms-contact-submit:hover { box-shadow: 0 18px 40px -12px rgb(227 6 19 / .75); }
.btn--rahmen, .btn--sekundaer { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .28); }
.btn--rahmen:hover, .btn--sekundaer:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-reihe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ─── Topbar + Header ──────────────────────────────────────── */
.topbar { display: none; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.topbar-kontakt { display: flex; align-items: center; gap: .4rem 1.5rem; }
.topbar-kontakt .icon { margin-right: .35rem; vertical-align: -.2em; color: var(--red-hell); }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; color: var(--text); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(17 18 20 / .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 1rem 2rem; min-height: 72px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: clamp(.75rem, 1.2vw, 1.25rem); margin-right: auto; padding-block: .6rem; text-decoration: none; }
.site-brand img { width: clamp(140px, 12vw, 200px); height: auto; }
/* Toyota-Ellipse: nur White auf Dunkel (CI: nie Grau auf Dunkel, nie Rot), links außen,
   durch Trennstrich vom Händlerlogo abgesetzt — wie Toyota es bei Ellipse | Untertitel macht. */
.site-brand .site-ellipse { width: clamp(46px, 3.6vw, 62px); }
.site-brand-trenner { width: 1.5px; align-self: stretch; margin-block: .35rem; background: rgb(255 255 255 / .55); }
.site-header-cta { display: none; }
.site-nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
  background: var(--surface-2); color: var(--text); border: 0; border-radius: 999px; font: 600 .95rem var(--font-text); cursor: pointer;
}
.site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 1rem; }
.site-nav.is-open { display: flex; }
.site-nav-link { padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.site-nav-link.is-active { color: var(--red-hell); }
/* Untermenü — mobil eingerückt sichtbar */
.site-nav-gruppe { display: flex; flex-direction: column; }
.site-nav-unter { display: flex; flex-direction: column; padding-left: 1rem; border-bottom: 1px solid var(--line); }
.site-nav-unterlink { padding: .6rem 0; text-decoration: none; color: var(--muted); font-weight: 600; }
.site-nav-unterlink.is-active, .site-nav-unterlink:hover { color: var(--text); }
/* Öffner fürs Barrierefreiheits-Panel (data-sl-a11y-open): ohne JS bleibt „hidden" stehen —
   gegen .btn { display: inline-flex } absichern */
[data-sl-a11y-open][hidden] { display: none !important; }
.site-nav-a11y { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.site-nav-a11y:hover { color: var(--text); }
.site-footer-a11y { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.site-footer-a11y:hover { color: var(--white); }
.app-hinweis { padding-block: 0 1.25rem; font-size: .9rem; color: var(--text); }
.app-hinweis[hidden] { display: none; }

/* ─── Aktionsleiste: mobil unten, Desktop rechts ───────────── */
.aktionen {
  position: fixed; z-index: 60; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgb(26 28 31 / .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);   /* iPhone-Home-Balken (viewport-fit=cover) */
}
.aktion {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-height: 64px; padding: .4rem .25rem; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--text); text-align: center;
  line-height: 1.15; hyphens: manual;
}
.aktion .icon { width: 22px; height: 22px; color: var(--red-hell); }
.aktion--tel { background: var(--red); color: var(--white); }
.aktion--tel .icon { color: var(--white); }
/* Kontakt: mobil ganz rechts (Daumen-Zone, ersetzt die Chat-Bubble). Sprechblasen-Icon nur, wenn der Chat übernommen hat. */
.aktion--kontakt { order: 1; position: relative; }
.aktion .icon--chat { display: none; }
.chat-in-leiste .aktion--kontakt .icon { display: none; }
.chat-in-leiste .aktion--kontakt .icon--chat { display: block; }
.aktion--kontakt[aria-expanded="true"] { background: var(--surface-2); }
.aktion--kontakt.hat-neues::after { /* ungelesene Chat-Antwort (spiegelt .cms-chat__dot) */
  content: ""; position: absolute; top: 9px; left: calc(50% + 7px); width: 10px; height: 10px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgb(26 28 31);
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { padding-top: clamp(1.5rem, 3vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-h { font-size: clamp(3rem, 1.6rem + 5.4vw, 7.4rem); font-weight: 700; line-height: .95; margin-bottom: .35em; }
.hero-h em { display: block; margin-top: .45em; font-size: clamp(1.15rem, .9rem + .9vw, 1.9rem); font-weight: 400; line-height: 1.2; letter-spacing: .01em; }
.hero-intro { max-width: 40ch; color: #d9d8d4; font-size: clamp(1.05rem, 1rem + .3vw, 1.3rem); }
.hero-intro .cms-textblock-body p:last-child { margin-bottom: 0; }
.hero-bild { position: relative; margin: 0; }
.hero-bild::before { /* versetzte rote Fläche hinter dem Bild — schräg wie das Logo */
  content: ""; position: absolute; inset: 8% -3% -4% 10%; background: var(--red); border-radius: var(--radius);
  transform: skewX(-8deg); z-index: -1; opacity: .9;
}
.hero-bild img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 9 / 10; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.hero-bild figcaption {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 999px; background: rgb(17 18 20 / .78); backdrop-filter: blur(6px); font-size: .85rem; font-weight: 600;
}
.hero-bild figcaption .icon { color: var(--red-hell); }
/* Aktionsmotiv (quadratisch, Text im Bild): nie beschneiden, Höhe begrenzen, rechtsbündig.
   .hero-aktion = Grid-Spalte (Slider + Pflichtangaben). Test 2026-11-13 (Black Weeks). */
.hero-aktion { width: min(100%, 72vh); justify-self: end; min-width: 0; }
.hero-bild--aktion a { display: block; }
.hero-bild--aktion img, .hero-bild--aktion img[src] { aspect-ratio: 1 / 1 !important; object-fit: contain; }

/* Aktions-Slider als Überblendung (Fade, 2026-11-13 statt Slide): alle Folien liegen in derselben Grid-Zelle,
   die aktive wird eingeblendet. Ohne JS steht nur die erste Folie. */
.aktion-slider-bahn {
  display: grid; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8);
  touch-action: pan-y;   /* senkrechtes Scrollen der Seite bleibt, waagerechtes Wischen wertet JS aus */
}
.aktion-slider-bahn:focus-visible { outline-offset: 4px; }
.aktion-slide { grid-area: 1 / 1; }
.aktion-slider:not(.js-fade) .aktion-slide + .aktion-slide { display: none; }
.aktion-slider.js-fade .aktion-slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.aktion-slider.js-fade .aktion-slide.ist-aktiv { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s ease, visibility 0s; }
.aktion-slider .aktion-slider-bahn img { box-shadow: none; border-radius: 0; }
/* Punkte unten rechts im Bild: die Ecke ist bei allen Toyota-Motiven frei (Text endet bei ~94 % Höhe / ~90 % Breite).
   Mitte wäre mobil im Motivtext. Klickfläche 24 px (WCAG 2.5.8), sichtbarer Punkt 8 px. */
.aktion-slider-punkte {
  position: absolute; right: 3%; bottom: 1.2%; z-index: 2; display: flex; padding: 0 .3rem;
  border-radius: 999px; background: rgb(0 0 0 / .45); backdrop-filter: blur(4px);
}
.aktion-slider-punkt { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.aktion-slider-punkt::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: rgb(255 255 255 / .5); transition: background .2s, transform .2s; }
.aktion-slider-punkt[aria-current="true"]::before { background: var(--white); transform: scale(1.35); }
.aktion-slider-punkt:focus-visible, .aktion-slider-pause:focus-visible { outline-offset: -2px; }
.aktion-slider-pause {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: .15rem; padding: 0;
  border: 0; border-left: 1px solid rgb(255 255 255 / .3); border-radius: 0; background: none; color: var(--white); cursor: pointer;
}
.aktion-slider-pause svg { width: 12px; height: 12px; }
.aktion-slider-pause:hover { color: var(--red-hell); }
@media (prefers-reduced-motion: reduce) { .aktion-slider.js-fade .aktion-slide, .aktion-slider.js-fade .aktion-slide.ist-aktiv { transition: none; } }

/* Pflichtangaben zum aktiven Motiv (Fußnoten, Pkw-EnVKV) — CI Rechtstext: Book, klein, Grau */
.aktion-hinweise { grid-column: 1 / -1; max-width: 120ch; margin-top: clamp(2.5rem, 4vw, 3.75rem);   /* unter der roten Fläche (.hero-bild::before ragt 4 % der Bildhöhe heraus) */ font-size: .78rem; line-height: 1.4; color: var(--muted); }   /* unter den Kacheln, volle Breite */
.aktion-hinweis + .aktion-hinweis { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }   /* ohne JS */
.aktion-hinweise.js-aktiv .aktion-hinweis { border: 0; margin: 0; padding: 0; }
.aktion-hinweise.js-aktiv .aktion-hinweis:not(.ist-aktiv) { display: none; }
.aktion-hinweis p { margin: 0 0 .35em; }
.aktion-hinweis sup { font-size: .85em; color: var(--text); }

/* ─── Split (Bild + Text) ──────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.split > * { min-width: 0; }
.split-bild img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split-text .cms-textblock-body { color: #d9d8d4; max-width: 52ch; }

/* ─── Band (Vollbild mit diagonalem Schnitt) ───────────────── */
.band { position: relative; isolation: isolate; padding-block: clamp(5rem, 12vw, 11rem); clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.band-bild { position: absolute; inset: 0; z-index: -2; }
.band-bild img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(17 18 20 / .92) 0%, rgb(17 18 20 / .6) 55%, rgb(17 18 20 / .15) 100%); }
.band-inhalt { max-width: none; }
.band-inhalt > * { max-width: 34rem; }
.band-inhalt p:not(.kicker) { color: #e4e3df; font-size: 1.15rem; }

/* ─── Social Media ─────────────────────────────────────────── */
.social-kanaele { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.social-kanal {
  position: relative; overflow: hidden; display: grid; gap: .3rem; align-content: end; min-height: 230px;
  padding: 1.75rem; border-radius: var(--radius); text-decoration: none; color: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.social-kanal--instagram { background: linear-gradient(140deg, var(--red-hell) 0%, var(--red) 45%, #5b0610 100%); box-shadow: var(--shadow-rot); }
.social-kanal--facebook  { background: var(--surface); border: 1px solid var(--line); }
.social-kanal:hover { color: var(--white); transform: translateY(-4px); }
.social-kanal-icon { position: absolute; right: -1.5rem; top: -1.5rem; width: 9rem; height: 9rem; opacity: .18; stroke-width: 1.2; }
.social-kanal-name { font: var(--w-head) 2rem/1 var(--font-head); }
.social-kanal-handle { opacity: .85; }
.social-kanal-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 600; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.social-links a:hover { background: var(--red); color: var(--white); }
.topbar-social { padding: .15rem; }
.topbar-social .icon { margin: 0 !important; color: var(--text) !important; }
.topbar-social:hover .icon { color: var(--red-hell) !important; }

/* ─── Standort ─────────────────────────────────────────────── */
.standort { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.standort-karte {
  font-style: normal; display: grid; gap: .8rem; justify-items: start; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--red);
}
.standort-karte strong { font: var(--w-label) 1.6rem/1.1 var(--font-head); }
.standort-karte a:not(.btn) { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.standort-karte a .icon { color: var(--red-hell); }
.standort-karte .btn { margin-top: .5rem; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer { margin-top: clamp(3rem, 6vw, 6rem); background: #0b0c0d; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
.site-footer-marke img { width: 180px; margin-bottom: 1rem; }
.site-footer-h { font: var(--w-label) 1rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }
.site-footer-recht { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ─── Fahrzeuge: Filter, Karten, Detail ────────────────────── */
.fz-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 1rem; background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; border-radius: var(--radius-s); }
.fz-filter-feld { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
.fz-filter-aktionen { display: flex; align-items: center; gap: 1rem; align-self: end; }
.fz-filter-reset { white-space: nowrap; color: var(--muted); }
.fz-anzahl { margin: 1.5rem 0 1rem; color: var(--muted); }
.fz-leer { padding: 2rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-s); color: var(--muted); }

.fz-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.fz-karte-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; transition: transform .2s, border-color .2s; }
.fz-karte-link:hover { color: var(--text); transform: translateY(-4px); border-color: rgb(255 255 255 / .22); }
.fz-karte-bild img, .fz-karte-bild--leer { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.fz-karte-bild--leer { display: block; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.fz-karte-text { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.fz-karte-titel { margin: 0; font-size: 1.5rem; }
.fz-karte-variante { margin: .15rem 0 .8rem; color: var(--muted); font-size: .95rem; }
.fz-karte-daten { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; }
.fz-karte-daten li { padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); }
.fz-karte-preis { margin: auto 0 0; font: var(--w-head) 1.8rem/1 var(--font-head); }   /* Preis nie rot */
.fz-seiten { display: flex; flex-wrap: wrap; gap: .5rem; }
.fz-seiten a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.fz-seiten a[aria-current] { background: var(--red); border-color: var(--red); color: var(--white); }

.fz-detail-titel { margin: 0; font-size: clamp(2.2rem, 1.5rem + 2.5vw, 4rem); }
.fz-detail-variante { margin-top: .25rem; color: var(--muted); }
.fz-detail-oben { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); margin: 1.5rem 0 2.5rem; }
.fz-galerie { display: grid; gap: .5rem; }
.fz-galerie img { border-radius: var(--radius-s); }
.fz-detail-preisbox { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 1.5rem; border-radius: var(--radius-s); align-self: start; display: grid; gap: .75rem; position: sticky; top: 100px; }
.fz-detail-preis { margin: 0; font: var(--w-head) 2.6rem/1 var(--font-head); }
.fz-detail-mwst { margin: 0; color: var(--muted); font-size: .9rem; }
.fz-detail-daten dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .25rem 2.5rem; }
.fz-detail-daten dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .55rem 0; }
.fz-detail-daten dt { color: var(--muted); }
.fz-detail-daten dd { margin: 0; font-weight: 600; text-align: right; }
.fz-detail-ausstattung ul { columns: 3 240px; padding-left: 1.1rem; }

/* ─── Formulare (Filter + Core-Kontaktformular) ────────────── */
main input:not([type="checkbox"]):not([type="radio"]), main select, main textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius-s);
}
main input:focus, main select:focus, main textarea:focus { border-color: var(--red-hell); outline: none; box-shadow: 0 0 0 3px rgb(255 43 55 / .25); }
.cms-contact-form { display: grid; gap: 1rem; }
.cms-contact-field { display: grid; gap: .35rem; }
.cms-contact-field label { font-size: .9rem; color: var(--muted); }
.cms-contact-field--check label { display: flex; gap: .6rem; align-items: start; }
.cms-contact-alert { padding: 1rem 1.25rem; border-radius: var(--radius-s); margin-bottom: 1rem; }
.cms-contact-alert--success { background: rgb(34 160 90 / .15); border: 1px solid rgb(34 160 90 / .5); }
.cms-contact-alert--error { background: rgb(227 6 19 / .12); border: 1px solid rgb(227 6 19 / .5); }

/* ─── CMS-Textblöcke + FAQ ─────────────────────────────────── */
.cms-textblock-heading { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); }
.cms-textblock-cta { display: inline-flex; margin-top: .5rem; font-weight: 600; color: var(--red-hell); }
.faq-gruppe { margin-bottom: 2.5rem; }
.faq-gruppe-titel { font-size: 1.6rem; margin: 0 0 .75rem; }
.faq-eintrag { border-bottom: 1px solid var(--line); }
.faq-eintrag summary { cursor: pointer; padding: 1.05rem 2.5rem 1.05rem 0; font-weight: 600; list-style: none; position: relative; }
.faq-eintrag summary::-webkit-details-marker { display: none; }
.faq-eintrag summary::after { content: "+"; position: absolute; right: .25rem; top: .75rem; font-size: 1.5rem; color: var(--red-hell); }
.faq-eintrag[open] summary::after { content: "–"; }
.faq-antwort { padding: 0 0 1.2rem; color: #d9d8d4; }

/* ─── Seitenkopf der Unterseiten ───────────────────────────── */
.seitenkopf { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.seitenkopf::after { /* Logo-Streifen als Wasserzeichen rechts */
  content: ""; position: absolute; right: 6%; top: -20%; width: clamp(60px, 9vw, 150px); height: 140%;
  background: var(--red); transform: skewX(-20deg); opacity: .14; pointer-events: none;
}
.seitenkopf .page-title { margin-bottom: .4em; }
.seitenkopf-intro { max-width: 60ch; color: #d9d8d4; font-size: clamp(1.05rem, 1rem + .3vw, 1.3rem); margin: 0; }
.section--eng { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 6rem); }

.seitenkopf .kicker a { text-decoration: none; }
.seitenkopf .kicker a:hover { color: var(--text); }

/* ─── Werkstatt: Leistungen + Ablauf ───────────────────────── */
.leistungen { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.leistung { position: relative; overflow: hidden; padding: clamp(1.25rem, 2vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.leistung h3 { font-size: 1.6rem; margin: .4rem 0 .5rem; }
.leistung p { color: var(--muted); margin: 0; }
.leistung--frage { display: grid; gap: .75rem; align-content: start; justify-items: start; background: linear-gradient(150deg, rgb(227 6 19 / .22), var(--surface) 70%); border-color: rgb(227 6 19 / .35); }
.leistung--frage h3 { margin-top: 0; }
.ablauf { list-style: none; counter-reset: schritt; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: baseline; }
.ablauf li::before { content: counter(schritt); grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--red); color: var(--white); font: var(--w-head) 1.4rem/1 var(--font-head); }
.ablauf strong { font: var(--w-label) 1.4rem/1.2 var(--font-head); }
.ablauf span { color: var(--muted); }
.werkstatt-zeiten { border-top: 4px solid var(--red); }
.seitenkopf-fuss { margin: 1rem 0 0; max-width: 60ch; }

/* Programme (Toyota Relax, VIP Team Card, Eurocare) */
.programme { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.programm { position: relative; overflow: hidden; display: grid; align-content: start; justify-items: start; gap: .2rem; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.programm > p:not(.kicker) { color: #d9d8d4; max-width: 60ch; }
.programm .hinweis { color: var(--muted); }
.programm-h { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem); }
.programm--relax { background: linear-gradient(150deg, rgb(227 6 19 / .2), var(--surface) 60%); border-color: rgb(227 6 19 / .3); }
.programm--vip::after { /* Karte als Motiv */
  content: "VIP"; position: absolute; right: -1rem; bottom: -2.5rem; font: var(--w-head) clamp(7rem, 12vw, 11rem)/1 var(--font-head);
  color: rgb(255 255 255 / .05); pointer-events: none;
}
.haken { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.haken li { position: relative; padding-left: 2rem; }
.haken li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: .6rem; border-left: 3px solid var(--red-hell); border-bottom: 3px solid var(--red-hell); transform: rotate(-45deg); }

/* Werkstatt-Terminanfrage (Modul D) */
.termin-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.termin-grid > * { min-width: 0; }
.termin-alternativen { display: grid; gap: 1rem; }
.termin-form { display: grid; gap: 1.5rem; }
.termin-form fieldset { margin: 0; padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid var(--line); display: grid; gap: 1rem; min-width: 0; }
.termin-form legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: 1rem; font: var(--w-label) 1.5rem/1.1 var(--font-head); }
.termin-form legend span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); color: var(--white); font-size: 1.1rem; }
.termin-form .hinweis { margin: 0; }
.cms-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wahl-liste { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.wahl { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .7rem 1rem; background: var(--bg); border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius-s); cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.wahl input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); flex: none; }
.wahl:hover { border-color: rgb(255 255 255 / .4); }
.wahl:has(input:checked) { border-color: var(--red-hell); background: rgb(227 6 19 / .12); }
.wahl:has(input:focus-visible) { outline: 3px solid var(--red-hell); outline-offset: 2px; }
.wahl--zusatz { background: transparent; border-style: dashed; font-weight: 400; }
.feld-reihe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.feld-reihe--termin { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
main input[type="date"] { color-scheme: dark; }
.termin-danke { display: grid; gap: 1rem; justify-items: start; }

/* Termin-Wege */
.termin-wege { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.info-karte.info-karte--rot { border-top: 4px solid var(--red); background: linear-gradient(160deg, rgb(227 6 19 / .18), var(--surface) 65%); }

/* ─── Seitenkopf mit Bild (Carsharing) ─────────────────────── */
.seitenkopf--bild { isolation: isolate; padding-block: clamp(4rem, 10vw, 9rem) clamp(3rem, 6vw, 5rem); border: 0; }
.seitenkopf--bild::after { display: none; }
.seitenkopf-bild { position: absolute; inset: 0; z-index: -2; }
.seitenkopf-bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenkopf--bild::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(17 18 20 / .95) 0%, rgb(17 18 20 / .7) 50%, rgb(17 18 20 / .25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.vorteile { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-weight: 600; }
.vorteile li::before { content: ""; display: inline-block; width: .55em; height: .9em; margin-right: .55em; background: var(--red); transform: skewX(-20deg); vertical-align: -.05em; }

/* ─── Carsharing: Tarife, Fahrzeuge, Schritte ──────────────── */
.tarife-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.tarif { display: grid; align-content: center; gap: .3rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--red); }
.tarif-name { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tarif-preis { font: var(--w-head) clamp(3rem, 2rem + 3vw, 5rem)/1 var(--font-head); }
.tarif-inkl { color: var(--muted); }
.cs-fahrzeuge { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 1rem; }
.cs-fahrzeug { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cs-fahrzeug img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cs-fahrzeug-text { padding: 1.25rem 1.5rem 1.5rem; }
.cs-fahrzeug-text h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.cs-fahrzeug-text p { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 600; }
.cs-fahrzeug-text .icon { color: var(--red-hell); }
.schritte { list-style: none; counter-reset: schritt; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.schritte li { counter-increment: schritt; display: grid; gap: .4rem; align-content: start; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.schritte strong { font: var(--w-label) 1.45rem/1.15 var(--font-head); }
.schritte span { color: var(--muted); }
.faq-wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-box > div { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.cta-box .section-h { margin-bottom: .3em; }

/* ─── Team (Core-Modul team) ───────────────────────────────── */
/* Feste Spaltenzahl (--tc), damit Abteilungen mit nur einer Person nebeneinander
   stehen können und trotzdem genau im Raster der großen Abteilungen fluchten
   (z. B. Verwaltung neben Verkauf). */
.cms-team { --tc: 2; --tg: 1.25rem; display: flex; flex-wrap: wrap; column-gap: var(--tg); }
.cms-team-group { flex: 1 1 100%; min-width: 0; margin-bottom: 2.5rem; }
.cms-team-group:has(.cms-team-grid > li:only-child) { flex: 0 0 calc((100% - (var(--tc) - 1) * var(--tg)) / var(--tc)); }
.cms-team-group:has(.cms-team-grid > li:only-child) .cms-team-grid { grid-template-columns: minmax(0, 1fr); }
.cms-team-group-title { font-size: 1.6rem; margin-bottom: 1rem; }
.cms-team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tg); grid-template-columns: repeat(var(--tc), minmax(0, 1fr)); }
@media (min-width: 768px)  { .cms-team { --tc: 3; } }
@media (min-width: 1100px) { .cms-team { --tc: 4; } }
@media (min-width: 1600px) { .cms-team { --tc: 6; } }
.cms-team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.cms-team-photo img, .cms-team-photo--placeholder { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); }
.cms-team-card > :not(.cms-team-photo) { margin-inline: 1.25rem; }
.cms-team-name { font: var(--w-label) 1.45rem/1.15 var(--font-head); margin-top: 1rem; }
.cms-team-role { color: var(--red-hell); font-weight: 600; font-size: .9rem; }
.cms-team-bio, .cms-team-location { color: var(--muted); font-size: .95rem; }
.cms-team-contact { list-style: none; padding: 0; margin-bottom: 1.25rem; font-size: .9rem; display: grid; gap: .25rem; }
.cms-team-contact-label { color: var(--muted); }
.cms-team-contact-icon { display: none; }

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

/* ─── E-Mobilität: Antriebe ────────────────────────────────── */
.antriebe { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 1rem; }
.antrieb { padding: clamp(1.5rem, 2.5vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.antrieb h3 { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); margin: .4rem 0 .2rem; }
.antrieb p { color: var(--muted); margin: 0; }
.antrieb-kurz { color: var(--red-hell) !important; font-weight: 600; font-size: .9rem; letter-spacing: .04em; margin: 0 0 .8rem !important; }

/* ─── Themen-Kacheln (Neuwagen → Unterseiten) ──────────────── */
.themen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.thema { position: relative; display: grid; gap: .3rem; padding: 1.5rem 3.5rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; transition: transform .2s, border-color .2s; }
.thema:hover { color: var(--text); transform: translateY(-3px); border-color: rgb(227 6 19 / .5); }
.thema .kicker { margin: 0; }
.thema strong { font: var(--w-label) 1.6rem/1.15 var(--font-head); }
.thema span:not(.kicker) { color: var(--muted); }
.thema-pfeil { position: absolute; right: 1.25rem; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -.75rem; color: var(--red-hell); transition: right .2s; }
.thema:hover .thema-pfeil { right: .9rem; }

/* ─── Rechtstexte ──────────────────────────────────────────── */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); margin: 2.2rem 0 .6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #d9d8d4; }
.legal ul { padding-left: 1.2rem; }

/* ─── Smartline Credit-Box (nur Impressum) ─────────────────── */
.sl-credit-box-heading { margin-top: 2.5rem !important; }
.sl-credit-box {
  --slcb-text: #ffffff; --slcb-mute: #b9bcc0;
  background: linear-gradient(150deg, #1e2124 0%, #2a2e33 100%); color: var(--slcb-text);
  font-size: 14px; line-height: 1.5; padding: 24px 22px; border-radius: var(--radius-s);
  border: 1px solid var(--line); max-width: 300px;
}
.sl-credit-box p, .sl-credit-box address, .sl-credit-box strong, .sl-credit-box span, .sl-credit-box div { margin: 0; padding: 0; }
.sl-credit-box__logo { display: block; color: var(--slcb-text); width: 160px; margin: 0 0 16px; line-height: 0; text-decoration: none; }
.sl-credit-box__logo svg { width: 100%; height: auto; display: block; }
.sl-credit-box__addr { font-style: normal; color: var(--slcb-text); margin: 0 0 18px; display: block; line-height: 1.5; }
.sl-credit-box__addr strong { display: block; font-weight: 600; margin-bottom: 2px; }
.sl-credit-box__addr-mute { color: var(--slcb-mute); display: block; }
.sl-credit-box__card { display: inline-flex; align-items: center; gap: 6px; color: var(--slcb-text); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgb(255 255 255 / .4); padding-bottom: 2px; }
.sl-credit-box__card:hover { color: var(--white); border-bottom-color: var(--white); }

/* ─── Öffnungszeiten ───────────────────────────────────────── */
.zeiten { margin: 0; display: grid; gap: .1rem; width: 100%; max-width: 22rem; }
.zeiten div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .3rem .5rem; margin-inline: -.5rem; border-radius: 6px; }
.zeiten dt { color: var(--muted); }
.zeiten dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.zeiten .is-heute { background: rgb(227 6 19 / .14); }
.zeiten .is-heute dt { color: var(--text); }
.zeiten .is-heute dt::after { content: " · heute"; color: var(--red-hell); font-weight: 600; }
.site-footer .zeiten div { padding-block: .15rem; }

/* ─── Kontakt ──────────────────────────────────────────────── */
.kontakt-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.kontakt-grid > * { min-width: 0; }
.kontakt-infos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.info-karte, .formular-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 2rem); }
.info-karte { display: grid; gap: .8rem; justify-items: start; align-content: start; }
.info-karte address { margin: 0; line-height: 1.7; }
.info-karte .cms-textblock { color: var(--muted); font-size: .95rem; }
.info-karte-h { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; margin: 0 0 .2rem; }
.info-karte-h .icon { color: var(--red-hell); width: 1.1em; height: 1.1em; }
.info-gross { font: var(--w-head) clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--font-head); text-decoration: none; }
.formular-karte { border-top: 4px solid var(--red); }
.formular-karte-h { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); margin-bottom: .3rem; }
address { font-style: normal; margin-bottom: 1.5rem; line-height: 1.8; }

/* Startseiten-Highlights: immer volle Reihen (mobil 4, 2–3 Spalten 6, ab 1600 px 8) */
.fz-grid--highlights > li:nth-child(n+5) { display: none; }

/* ═══ Breakpoints ═════════════════════════════════════════════ */
@media (min-width: 768px) {
  .fz-grid--highlights > li:nth-child(-n+6) { display: block; }
  .hero-bild img { aspect-ratio: 16 / 10; }
  .split { grid-template-columns: 1.15fr 1fr; }
  .standort { grid-template-columns: 1.3fr 1fr; }
  .kontakt-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-infos { grid-template-columns: minmax(0, 1fr); }
  .tarife-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .programme { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr 2fr; }
  .fz-detail-oben { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 1100px) {
  :root { --rail: 84px; }
  body { padding-bottom: 0; }
  .topbar { display: block; }
  .site-nav-toggle { display: none; }
  .site-nav { display: flex !important; width: auto; flex-direction: row; gap: .25rem 1.75rem; padding: 0; }
  .site-nav-link { border: 0; padding: .4rem 0; position: relative; font-size: 1rem; }
  .site-nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; background: var(--red); transform: skewX(-20deg); transition: right .2s; }
  .site-nav-link:hover::after, .site-nav-link.is-active::after { right: 0; }
  .site-nav-link.is-active { color: var(--text); }
  .site-header-cta { display: inline-flex; }
  .site-nav-a11y { display: none; }   /* Desktop: schwebender Button unten links */
  /* Untermenü als Ausklapper (Hover + Tastatur über :focus-within) */
  .site-nav-gruppe { position: relative; }
  .site-nav-link--eltern { padding-right: 1rem; }
  .site-nav-link--eltern::before { content: ""; position: absolute; right: 0; top: 50%; width: .4rem; height: .4rem; margin-top: -.3rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
  .site-nav-unter {
    position: absolute; top: 100%; left: -1rem; min-width: 260px; padding: .6rem; margin-top: .6rem;
    background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius-s);
    box-shadow: 0 24px 50px -20px rgb(0 0 0 / .9); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .site-nav-unter::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; } /* Hover-Brücke */
  .site-nav-gruppe:hover .site-nav-unter, .site-nav-gruppe:focus-within .site-nav-unter { opacity: 1; visibility: visible; transform: none; }
  .site-nav-unterlink { padding: .55rem .75rem; border-radius: 8px; color: var(--text); white-space: nowrap; }
  .site-nav-unterlink:hover { background: var(--surface-2); }
  .site-nav-unterlink.is-active { color: var(--red-hell); }

  /* Aktionsleiste rechts, vertikal mittig */
  .aktionen {
    padding-bottom: 0;
    inset: 50% 0 auto auto; transform: translateY(-50%); grid-template-columns: 1fr; width: 76px;
    border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); overflow: hidden;
    box-shadow: -12px 0 40px -20px rgb(0 0 0 / .8);
  }
  .aktion { min-height: 84px; font-size: .7rem; border-bottom: 1px solid var(--line); transition: background .15s; }
  .aktion:hover { background: var(--surface-2); color: var(--white); }
  .aktion--kontakt { order: 0; }   /* Desktop: Reihenfolge wie im Markup, Chat behält seine Bubble */
  .chat-in-leiste .aktion--kontakt .icon { display: block; }
  .chat-in-leiste .aktion--kontakt .icon--chat { display: none; }
  .aktion--tel { border-bottom: 0; }
  .aktion--tel:hover { background: var(--red-hell); }

  .hero-grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 5rem); }
  .hero-bild img { aspect-ratio: 2.2 / 1.35; }
}

/* Ab 1800 px: Adress-Plakette oben im Hero-Foto (nur Original-Hero) */
@media (min-width: 1800px) {
  .hero-bild figcaption { bottom: auto; top: 1rem; }
}

/* Breite Monitore: Infokarten 2-spaltig neben dem Formular */
@media (min-width: 1400px) {
  .leistungen { grid-template-columns: repeat(4, 1fr); }
  .termin-grid { grid-template-columns: 2fr 1fr; }
  .termin-alternativen { position: sticky; top: 110px; }
  .kontakt-grid { grid-template-columns: 7fr 5fr; }
  .kontakt-infos { grid-template-columns: 1fr 1fr; }
  .kontakt-infos .info-karte:first-child { grid-column: 1 / -1; }
}

@media (min-width: 1100px) and (max-width: 1599px) {
  .fz-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1600px) {
  .fz-grid { grid-template-columns: repeat(4, 1fr); }
  .fz-grid--highlights > li { display: block; }
}

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

/* Mobilmenü offen: A11y-Widget ausblenden (überdeckt sonst die unteren Menüpunkte) */
.nav-offen .sl-a11y-widget { display: none; }

/* ─── Übergaben: Polaroid-Reihe ────────────────────────────────
   Leicht überlappend, abwechselnd gedreht; Hover/Fokus richtet das Foto auf.
   Volle Breite mit weichem Rand (mask) und horizontalem Wischen. */
.polaroid-buehne {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 2.5rem var(--gutter) 3.5rem; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.polaroids { display: flex; width: max-content; margin: 0; padding: 0 1rem; list-style: none; }
.polaroid {
  --r: -3deg; --y: 0px;
  position: relative; flex: 0 0 clamp(210px, 21vw, 320px); margin-left: clamp(-64px, -3.2vw, -28px);
  scroll-snap-align: center; transform: rotate(var(--r)) translateY(var(--y));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), z-index 0s .1s;
}
.polaroid:first-child { margin-left: 0; }
.polaroid:nth-child(4n+2) { --r: 2.5deg;  --y: 14px; }
.polaroid:nth-child(4n+3) { --r: -1.5deg; --y: -8px; }
.polaroid:nth-child(4n+4) { --r: 3.5deg;  --y: 6px; }
.polaroid figure {
  margin: 0; padding: 10px 10px 14px; background: #fbfaf6; border-radius: 3px;
  box-shadow: 0 2px 0 rgb(0 0 0 / .08), 0 22px 34px -14px rgb(0 0 0 / .85);
}
.polaroid img { width: 100%; height: auto; border-radius: 1px; }
.polaroid figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .2rem 0; color: #2a2a2a; font: italic 400 .95rem/1.2 var(--font-text); }   /* echte Book Italic statt künstlich geneigter Semibold */
.polaroid figcaption time { color: #777; font-style: normal; font-weight: 400; }
.polaroid:hover, .polaroid:focus-within { z-index: 5; transform: rotate(0deg) translateY(-10px) scale(1.06); transition-delay: 0s; }

/* Pfeil-Buttons + Ziehen für die Polaroid-Reihe (js/site.js → initPolaroids) */
.polaroid-rahmen { position: relative; }
.polaroid-buehne { cursor: grab; }
.polaroid-buehne.zieht { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.polaroid-buehne.zieht .polaroid { transition: none; }
.polaroid-buehne:focus-visible { outline: 3px solid var(--red-hell); outline-offset: -3px; }
.polaroid-pfeil {
  position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px;
  border: 0; border-radius: 50%; background: var(--red); color: var(--white); cursor: pointer;
  box-shadow: var(--shadow-rot); transition: opacity .2s, transform .2s, background .2s;
}
.polaroid-pfeil svg { width: 24px; height: 24px; }
.polaroid-pfeil--zurueck { left: max(8px, calc(var(--gutter) - 26px)); }
.polaroid-pfeil--zurueck svg { transform: rotate(180deg); }
.polaroid-pfeil--vor { right: max(8px, calc(var(--gutter) + var(--rail) - 26px)); }
.polaroid-pfeil:hover { background: var(--red-hell); transform: scale(1.08); }
.polaroid-pfeil:disabled { opacity: 0; pointer-events: none; }
.ohne-ueberlauf .polaroid-pfeil { display: none; }
@media (hover: none) { .polaroid-pfeil { display: none; } } /* Touch: wischen genügt */

/* Ab 1600 px passen die 9 Polaroids ohne Scrollen in die Breite (Pfeile blenden sich dann aus). */
@media (min-width: 1600px) {
  .polaroids { width: 100%; }
  .polaroid { flex: 1 1 0; min-width: 0; }
}

/* ─── Chat (Core-Modul) ───────────────────────────────────────
   Desktop: Bubble unten rechts unterhalb der vertikal mittigen Aktionsleiste.
   Mobil (< 1100 px): keine Bubble, der Button „Kontakt" in der Leiste öffnet den Chat
   (.chat-in-leiste setzt js/site.js, sobald das Widget da ist). Barrierefreiheits-Widget sitzt links. */
:root { --cms-chat-color: #e30613; --cms-chat-offset-bottom: 81px; --cms-chat-offset-right: 16px; } /* Mitte auf Höhe A11y-Widget (84 px, 52 px groß) */
@media (min-width: 1100px) { :root { --cms-chat-offset-right: 24px; } }
.nav-offen .cms-chat { visibility: hidden; } /* Mobilmenü offen: Chat-Bubble verdeckt sonst Menüpunkte */
@media (max-width: 1099.98px) {
  .chat-in-leiste { --cms-chat-offset-bottom: 72px; }   /* Panel endet knapp über der Leiste (64 px) */
  .chat-in-leiste .cms-chat .cms-chat__bubble,
  .chat-in-leiste .cms-chat .cms-chat__teaser { display: none; }
}
