/* fahrzeuge.css — Fahrzeugverzeichnis Motorsporthaus Arnold (HTML-Frontend ohne Elementor Pro).
   Gilt NUR auf den zwei Seiten (assets.php reiht es nur dort ein) und stylt NUR die Wurzeln
   #fz-bestand, #fz-detail, #fz-filter, #fz-lightbox (+ body.fz-gesperrt für die Scroll-Sperre) — ein Lint
   in tests/test-assets.php prüft das. Werte spiegeln lib.mjs (Farben, Typo, Abstände). Schriftgrößen in px,
   nie rem/em an der Wurzel: das Kunden-Theme wp-uzn skaliert html auf 86–95 %.
   Reihenfolge: Schrift · Tokens · Reset je Eigenschaftsgruppe (mit Quelle) · Fokus · Knöpfe · Formularfelder ·
   Handy-Leiste · Filterpanel · Schublade · Ergebnisse · CTA · Breakpoints 576/768/992/1200 · reduced-motion.
   Detailseite (#fz-detail, #fz-lightbox): Task 4/5. */

/* ── Schrift: Inter, selbst gehostet (Variable, opsz auf 14 gepinnt, wght 400–700, Latin + Latin-Ext-A, tnum).
   Eigener Familienname, damit das Staging-Kit-Inter (Google Fonts) nie hineinmischt. ── */
@font-face {
  font-family: 'Inter FZ';
  src: url('inter/InterVariable-fz.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens (kein :root — nur auf den vier Wurzeln) ── */
#fz-bestand, #fz-detail, #fz-filter, #fz-lightbox {
  --fz-rot: #E0222F; --fz-rot-dunkel: #B3161F; --fz-rot-hell: rgba(224, 34, 47, .08);
  --fz-anthrazit: #1F1F1F; --fz-text: #333333; --fz-grau: #6E6E6E; --fz-linie: #DDDDDD;
  --fz-bg-hell: #F2F2F2; --fz-bg-weich: #FAFAFA; --fz-weiss: #FFFFFF; --fz-radius: 2px;
  --fz-schrift: 'Inter FZ', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fz-rahmen: 100%;
}

/* ── Reset 1: box-sizing — Bootstrap-Reboot setzt es, Hello nicht überall; jede Breitenrechnung hier setzt es voraus ── */
#fz-bestand, #fz-bestand *, #fz-bestand *::before, #fz-bestand *::after,
#fz-detail, #fz-detail *, #fz-detail *::before, #fz-detail *::after,
#fz-filter, #fz-filter *, #fz-filter *::before, #fz-filter *::after,
#fz-lightbox, #fz-lightbox *, #fz-lightbox *::before, #fz-lightbox *::after { box-sizing: border-box; }

/* ── Reset 2: [hidden] (Bootstrap-Reboot: display:none !important — hier dasselbe, damit es in jedem Theme gilt) ── */
#fz-bestand [hidden], #fz-detail [hidden], #fz-filter [hidden], #fz-lightbox [hidden] { display: none !important; }

/* ── Reset 3: Abstände + Silbentrennung (Bootstrap-Reboot h/p/ul/dl-Margins, Hello reset.css, wp-uzn `* { hyphens: auto }`) ── */
#fz-bestand, #fz-bestand *, #fz-detail, #fz-detail *, #fz-filter, #fz-filter *, #fz-lightbox, #fz-lightbox * {
  margin: 0; padding: 0; -webkit-hyphens: manual; hyphens: manual;
}

/* ── Reset 4: Typografie der Wurzel (wp-uzn/Bootstrap: Systemstapel 1rem auf html 86–95 %) ── */
#fz-bestand, #fz-detail, #fz-filter, #fz-lightbox {
  font-family: var(--fz-schrift); font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--fz-text);
  text-align: left; letter-spacing: normal; text-transform: none; word-break: normal; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* ── Reset 5: Listen (wp-uzn `ul { list-style:none; padding-left:0 }`, Bootstrap-Margins) ── */
#fz-bestand ul, #fz-bestand ol, #fz-filter ul, #fz-detail ul, #fz-detail ol, #fz-lightbox ul { list-style: none; }

/* ── Reset 6: Links (wp-uzn `a { color:#E0222F; outline:0 } a:hover { color:#333 }`, Hello `.page-content a { underline }`) ── */
#fz-bestand a, #fz-filter a, #fz-detail a, #fz-lightbox a { color: inherit; text-decoration: none; background: transparent; }

/* ── Reset 7: Überschriften (wp-uzn h1 1.8rem/uppercase/rot, h2 1.6rem/rot, h3/h4 300; Bootstrap-Margins) ── */
#fz-bestand h1, #fz-bestand h2, #fz-bestand h3, #fz-bestand h4, #fz-filter h2, #fz-filter h3,
#fz-detail h1, #fz-detail h2, #fz-detail h3, #fz-detail h4 {
  font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; text-transform: none; letter-spacing: normal;
}

/* ── Reset 8: Bilder (wp-uzn `img { max-width:100% }`, ≤ 920 px `.entry-content img { width:100%; margin-bottom:15px }`) ── */
#fz-bestand img, #fz-detail img, #fz-lightbox img { max-width: 100%; width: auto; height: auto; margin: 0; border: 0; vertical-align: middle; }

/* ── Reset 9: summary (Bootstrap-Reboot `summary { display: list-item }`) ── */
#fz-filter summary, #fz-detail summary { display: flex; list-style: none; }
#fz-filter summary::-webkit-details-marker, #fz-detail summary::-webkit-details-marker { display: none; }

/* ── Reset 10: Formularelemente komplett (Hello reset.css `button { border:1px solid #c36 }`, `input { border:1px solid #666; width:100% }`;
   Bootstrap `button,input { font:inherit }`, `button { border-radius:0 }`, `[type=search] { -webkit-appearance:none }`) ── */
#fz-bestand button, #fz-bestand input, #fz-bestand select, #fz-filter button, #fz-filter input, #fz-filter select,
#fz-detail button, #fz-lightbox button {
  -webkit-appearance: none; appearance: none; background: none; border: 0; border-radius: 0; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: none; padding: 0; margin: 0; line-height: inherit;
  width: auto; max-width: none; min-height: 0; cursor: pointer; box-shadow: none; text-align: inherit;
}
#fz-bestand input, #fz-filter input { cursor: text; }
#fz-filter input::-webkit-search-decoration, #fz-filter input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── Reset 11: Fokus — sichtbar für Tastatur (Kunde: `a { outline:0 }`, Bootstrap `button:focus { outline }`) ── */
#fz-bestand :focus-visible, #fz-filter :focus-visible, #fz-detail :focus-visible, #fz-lightbox :focus-visible { outline: 2px solid var(--fz-rot); outline-offset: 2px; }
#fz-bestand :focus:not(:focus-visible), #fz-filter :focus:not(:focus-visible), #fz-detail :focus:not(:focus-visible), #fz-lightbox :focus:not(:focus-visible) { outline: 0; }

/* ── Reset 12: Dialoge — geschlossen unsichtbar (UA-Stylesheet ja, Bootstrap-Reboot `dialog { display:block }` nein) ── */
#fz-lightbox:not([open]) { display: none; }
#fz-filter {
  display: block; position: static; width: auto; height: auto; max-width: none; max-height: none; margin: 0; border: 0; padding: 0;
  background: var(--fz-weiss); color: var(--fz-text);
}

/* ── Unsichtbar, aber vorlesbar ── */
#fz-bestand .fz-sr, #fz-detail .fz-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Symbole ── */
#fz-bestand .fz-icon, #fz-filter .fz-icon, #fz-detail .fz-icon, #fz-lightbox .fz-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }

/* ── Knöpfe ── */
#fz-bestand .fz-knopf, #fz-detail .fz-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 15px 30px;
  border: 1px solid var(--fz-rot); border-radius: var(--fz-radius); background: var(--fz-rot); color: var(--fz-weiss);
  font-size: 14px; font-weight: 600; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
#fz-bestand .fz-knopf:hover, #fz-detail .fz-knopf:hover { background: var(--fz-rot-dunkel); border-color: var(--fz-rot-dunkel); color: var(--fz-weiss); }
#fz-bestand .fz-knopf--rahmen, #fz-detail .fz-knopf--rahmen { padding: 14px 28px; background: transparent; border-color: var(--fz-linie); color: var(--fz-anthrazit); }
#fz-bestand .fz-knopf--rahmen:hover, #fz-detail .fz-knopf--rahmen:hover { background: var(--fz-bg-weich); border-color: var(--fz-anthrazit); color: var(--fz-anthrazit); }
#fz-bestand .fz-knopf--hell, #fz-detail .fz-knopf--hell { background: transparent; border-color: rgba(255, 255, 255, .6); color: var(--fz-weiss); }
#fz-bestand .fz-knopf--hell:hover, #fz-detail .fz-knopf--hell:hover { background: var(--fz-weiss); border-color: var(--fz-weiss); color: var(--fz-anthrazit); }
#fz-bestand .fz-knopf--voll, #fz-detail .fz-knopf--voll { width: 100%; }
#fz-bestand .fz-knopf--klein { min-height: 40px; padding: 10px 14px; }
#fz-bestand .fz-knopf .fz-icon, #fz-detail .fz-knopf .fz-icon { width: 18px; height: 18px; }

/* ── Formularfelder: EIN Rahmenkasten, innen Felder und Knopf (rotes 44-px-Segment) ── */
#fz-filter .fz-feldgruppe { display: flex; align-items: stretch; background: var(--fz-weiss); border: 1px solid var(--fz-linie); border-radius: var(--fz-radius); overflow: hidden; }
#fz-filter .fz-feld { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 12px; background: transparent; color: var(--fz-text); font-size: 16px; line-height: 1.3; }
#fz-filter .fz-feld + .fz-feld { border-left: 1px solid var(--fz-linie); }
#fz-filter .fz-feld::placeholder { color: #9B9B9B; opacity: 1; }
#fz-filter .fz-feld:focus-visible { outline-offset: -2px; }
#fz-filter .fz-feldgruppe__knopf { flex: 0 0 44px; width: 44px; display: flex; align-items: center; justify-content: center; background: var(--fz-rot); color: var(--fz-weiss); transition: background-color .18s; }
#fz-filter .fz-feldgruppe__knopf:hover { background: var(--fz-rot-dunkel); }
#fz-filter .fz-feldgruppe__knopf:focus-visible { outline-color: var(--fz-weiss); outline-offset: -3px; }
#fz-filter .fz-feldgruppe__knopf .fz-icon { width: 18px; height: 18px; }

/* ── Handy-Leiste [Filter (n)] [Sortierung ▾] — klebt unter einem fixierten Kopf (--fz-kopf setzt JS) ── */
#fz-bestand .fz-leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: var(--fz-kopf, 0px); z-index: 20;
  padding: 12px 16px; background: var(--fz-weiss); border-bottom: 1px solid var(--fz-linie);
}
#fz-bestand .fz-leiste .fz-knopf { flex: 0 0 auto; }
#fz-bestand .fz-sortierform { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
#fz-bestand .fz-sortierform select {
  height: 44px; max-width: 190px; padding: 0 34px 0 12px; border: 1px solid var(--fz-linie); border-radius: var(--fz-radius);
  background: var(--fz-weiss) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%236E6E6E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 14px 14px;
  color: var(--fz-text); font-size: 16px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
html.fz-js #fz-bestand .fz-nurohnejs { display: none; }

/* ── Filterpanel: Kopf, Zurücksetzen, Chips, Suche, Gruppen (details/summary), Fuß ── */
#fz-filter .fz-filter__kopf { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; border-bottom: 1px solid var(--fz-linie); }
#fz-filter .fz-filter__titel { flex: 1 1 auto; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; text-transform: uppercase; color: var(--fz-anthrazit); }
#fz-filter .fz-filter__reset { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -12px -4px -12px 0; font-size: 15px; line-height: 1.4; color: var(--fz-rot); transition: color .15s; }
#fz-filter .fz-filter__reset:hover { color: var(--fz-rot-dunkel); }
#fz-filter .fz-filter__reset[aria-disabled="true"] { color: #BBBBBB; pointer-events: none; cursor: default; }
#fz-filter .fz-filter__zu { display: none; width: 44px; height: 44px; margin: -10px -12px -10px 0; align-items: center; justify-content: center; color: var(--fz-anthrazit); }
#fz-filter .fz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
#fz-filter .fz-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; border-radius: var(--fz-radius);
  background: var(--fz-rot-hell); color: var(--fz-rot); font-size: 13px; font-weight: 600; line-height: 1.2; transition: background-color .15s;
}
#fz-filter .fz-chip:hover { background: rgba(224, 34, 47, .15); color: var(--fz-rot-dunkel); }
#fz-filter .fz-chip span { font-size: 15px; line-height: 1; }
#fz-filter .fz-filter__gruppe { border-bottom: 1px solid var(--fz-linie); }
#fz-filter .fz-filter__gruppe--suche { padding: 0 0 20px; border-bottom: 0; }
#fz-filter .fz-filter__gruppe--suche .fz-feldgruppe { margin-top: 6px; }
#fz-filter .fz-filter__gruppentitel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0;
  font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--fz-anthrazit); cursor: pointer;
}
#fz-filter label.fz-filter__gruppentitel { display: block; padding: 18px 0; border-bottom: 1px solid var(--fz-linie); cursor: default; }
#fz-filter .fz-icon--chevron { color: var(--fz-grau); transition: transform .28s cubic-bezier(.2, 0, 0, 1), color .15s; }
#fz-filter summary.fz-filter__gruppentitel:hover .fz-icon--chevron { color: var(--fz-rot); }
#fz-filter details[open] > summary .fz-icon--chevron { transform: rotate(180deg); }
#fz-filter details.fz-schliesst > summary .fz-icon--chevron { transform: none; }   /* zu: Pfeil dreht sofort zurück, open fällt erst nach der Höhe (JS) */
#fz-filter .fz-filter__liste { padding: 0 0 12px; }
#fz-filter .fz-filter__eintrag {
  display: block; padding: 7px 12px; margin: 0 -12px; border-radius: var(--fz-radius); font-size: 15px; line-height: 1.4; color: var(--fz-text);
  transition: background-color .15s, color .15s;
}
#fz-filter .fz-filter__eintrag:hover { background: var(--fz-bg-weich); color: var(--fz-anthrazit); }
#fz-filter .fz-filter__eintrag[aria-current="true"] { background: var(--fz-rot-hell); color: var(--fz-rot); font-weight: 600; }
#fz-filter details .fz-feldgruppe { margin: 0 0 18px; }
#fz-filter .fz-filter__fuss { padding: 20px 0 0; }
html:not(.fz-js) #fz-filter .fz-filter__zu { display: none; }

/* ── Ergebnisse: Fahrzeugart (nur ≥ 992), Trefferzeile, Raster, Karte, Leerfall, Seitenzahlen ── */
/* Volle Fensterbreite (Vorgabe 21.10.2026, wie der Elementor-Stand): die Übersicht bricht aus dem Inhaltsrahmen des Themes
   aus (Kunde: Bootstrap-.container, Staging: .site-main). 100vw schließt eine klassische Scrollleiste (Windows) ein —
   --fz-sb zieht sie ab (setzt fahrzeuge.js), sonst entstünde Querscrollen. Ohne JS bleibt der Wert 0. */
#fz-bestand {
  display: block; background: var(--fz-bg-hell);
  width: calc(100vw - var(--fz-sb, 0px)); max-width: none;
  margin-left: calc(50% - (100vw - var(--fz-sb, 0px)) / 2);
}
#fz-bestand .fz-ergebnisse { padding: 0 16px 32px; min-width: 0; }
#fz-bestand .fz-arten { display: none; }
#fz-bestand .fz-trefferzeile {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px;
  margin: 20px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--fz-linie); font-size: 16px; line-height: 1.65; color: var(--fz-text);
}
#fz-bestand .fz-sortierung { display: none; }
#fz-bestand .fz-sortierung strong { font-weight: 600; color: var(--fz-anthrazit); }
#fz-bestand .fz-sortierung a { color: var(--fz-rot); }
#fz-bestand .fz-sortierung a:hover { color: var(--fz-rot-dunkel); }
#fz-bestand .fz-sep { margin: 0 .3em; color: var(--fz-grau); }
#fz-bestand .fz-sortierung .fz-sep { margin: 0 .55em; }   /* wie alt: „ · " mit geschützten Leerzeichen */
#fz-bestand .fz-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#fz-bestand .fz-karte { background: var(--fz-weiss); border: 1px solid var(--fz-linie); border-radius: var(--fz-radius); overflow: hidden; transition: translate .3s, box-shadow .3s; }
/* Anheben über die eigene Eigenschaft translate, nicht transform: das Einrollen (fz-einrollen) animiert transform — eine
   laufende Animation hätte den Hover-Übergang geschluckt (kein weiches Anheben während des Einrollens, Sprung am Ende) */
#fz-bestand .fz-karte:hover { translate: 0 -5px; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
#fz-bestand .fz-karte__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
#fz-bestand .fz-karte__bild { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
#fz-bestand .fz-karte__inhalt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; flex: 1 1 auto; padding: 14px 18px 18px; }
#fz-bestand .fz-karte__daten { grid-column: 1 / -1; grid-row: 1; margin-bottom: 9px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--fz-grau); }
#fz-bestand .fz-karte__daten span { white-space: nowrap; }
#fz-bestand .fz-karte__zeile { display: contents; }
#fz-bestand .fz-karte__marke { grid-column: 1; grid-row: 2; align-self: center; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--fz-anthrazit); }
#fz-bestand .fz-karte__preis { grid-column: 2; grid-row: 2; align-self: center; padding-left: 10px; font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--fz-rot); white-space: nowrap; }
#fz-bestand .fz-karte__modell { grid-column: 1; grid-row: 3; margin-top: 2px; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--fz-anthrazit); }
#fz-bestand .fz-karte__schlagworte { grid-column: 1 / -1; grid-row: 4; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--fz-grau); }   /* dezenter (Runde 3); heller als --fz-grau risse WCAG AA */
#fz-bestand .fz-leer { padding: 32px 0; font-size: 16px; color: var(--fz-grau); }
#fz-bestand .fz-seiten { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 28px; }
#fz-bestand .fz-seiten__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--fz-linie); border-radius: var(--fz-radius); background: var(--fz-weiss); color: var(--fz-anthrazit);
  font-size: 15px; font-weight: 600; line-height: 1; transition: border-color .15s, background-color .15s, color .15s;
}
#fz-bestand a.fz-seiten__link:hover { border-color: var(--fz-anthrazit); }
#fz-bestand .fz-seiten__link--aktiv { background: var(--fz-rot); border-color: var(--fz-rot); color: var(--fz-weiss); }
#fz-bestand .fz-seiten__link--aus { background: transparent; color: #BBBBBB; }
#fz-bestand .fz-seiten__punkte { padding: 0 4px; color: var(--fz-grau); }

/* ── Abschlussband „Nicht das Passende dabei?" ── */
#fz-bestand .fz-cta { padding: 40px 16px; background: var(--fz-anthrazit); color: var(--fz-weiss); text-align: center; }
#fz-bestand .fz-cta__inhalt { max-width: 720px; margin: 0 auto; }
#fz-bestand .fz-cta__titel { font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--fz-weiss); }
#fz-bestand .fz-cta__text { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--fz-linie); }
#fz-bestand .fz-cta__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ── Schublade (< 992 px mit JS) · Inline-Panel ohne JS ── */
@keyframes fz-einschieben { from { transform: translateX(-100%); } to { transform: translateX(0); } }
body.fz-gesperrt { position: fixed; width: 100%; overflow: hidden; }
@media (max-width: 991px) {
  html.fz-js #fz-filter:not([open]) { display: none; }
  html.fz-js #fz-filter[open] {
    display: block; position: fixed; inset: 0 auto 0 0; width: min(88vw, 360px); height: 100vh; height: 100dvh; max-height: 100dvh;
    padding: 20px 16px 28px; overflow: auto; overscroll-behavior: contain; z-index: 1300; background: var(--fz-weiss);
    box-shadow: 0 0 40px rgba(0, 0, 0, .25);
  }
  html.fz-js #fz-filter[open]::backdrop { background: rgba(0, 0, 0, .45); }
  html.fz-js #fz-filter[open] .fz-filter__zu { display: inline-flex; }
  html:not(.fz-js) #fz-filter { padding: 20px 16px 8px; border-bottom: 1px solid var(--fz-linie); }
  #fz-filter .fz-filter__eintrag { padding: 12px 12px; }
  #fz-filter .fz-chip { min-height: 44px; }
}

/* ── Breakpoints ── */
@media (max-width: 575px) {
  #fz-bestand .fz-leiste { gap: 10px; padding: 12px 12px; }
  #fz-bestand .fz-leiste .fz-knopf { padding: 12px 14px; }
  #fz-bestand .fz-sortierform select { padding: 0 30px 0 10px; }
}
@media (min-width: 576px) {
  #fz-bestand, #fz-detail, #fz-filter, #fz-lightbox { --fz-rahmen: 510px; }
}
@media (min-width: 768px) {
  #fz-bestand, #fz-detail, #fz-filter, #fz-lightbox { --fz-rahmen: 690px; }
  #fz-bestand .fz-ergebnisse { padding: 0 24px 32px; }
  #fz-bestand .fz-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #fz-bestand .fz-karte__marke { font-size: 12px; }
  #fz-bestand .fz-karte__preis { font-size: 18px; }
  #fz-bestand .fz-cta { padding: 52px 28px; }
  #fz-bestand .fz-cta__titel { font-size: 27px; }
  #fz-bestand .fz-cta__text { font-size: 17px; }
}
@media (min-width: 992px) {
  #fz-bestand, #fz-detail, #fz-filter, #fz-lightbox { --fz-rahmen: 930px; }
  /* wie der Elementor-Stand: Filterspalte 20 % (mind. 250 px), Zeile mit Filter + Ergebnissen mindestens eine Fensterhöhe */
  #fz-bestand { display: grid; grid-template-columns: minmax(250px, 20%) minmax(0, 1fr); grid-template-rows: minmax(100vh, auto) auto; align-items: stretch; }
  #fz-bestand .fz-leiste { display: none; }
  #fz-filter { padding: 26px 26px 34px 30px; border-right: 1px solid var(--fz-linie); }
  #fz-bestand .fz-ergebnisse { padding: 0 30px 40px; }
  #fz-bestand .fz-arten { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 -30px; padding: 14px 30px; background: var(--fz-weiss); border-bottom: 1px solid var(--fz-linie); }
  /* höchstens 4 Spalten (je ≥ 25 % abzüglich Abstand), mindestens 250 px breit: 1920 → 4 × 354, 1440 → 4 × 258, 1200 → 3, 992 → 2 */
  #fz-bestand .fz-raster { grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 60px) / 4)), 1fr)); }
  #fz-bestand .fz-karte__bild { height: 210px; aspect-ratio: auto; }   /* fest 210 px wie der Elementor-Stand (darunter 3:2) */
  #fz-bestand .fz-arten__eintrag { padding: 9px 16px; font-size: 15px; line-height: 1.4; letter-spacing: .06em; color: var(--fz-anthrazit); transition: color .15s; }
  #fz-bestand .fz-arten__eintrag:hover { color: var(--fz-rot); }
  #fz-bestand .fz-arten__eintrag[aria-current="true"] { color: var(--fz-rot); }
  #fz-bestand .fz-trefferzeile { margin: 24px 0 18px; }
  #fz-bestand .fz-sortierung { display: block; }
  #fz-bestand .fz-karte__marke { font-size: 14px; }
  #fz-bestand .fz-karte__preis { font-size: 22px; }
  #fz-bestand .fz-cta { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  #fz-bestand, #fz-detail, #fz-filter, #fz-lightbox { --fz-rahmen: 1110px; }
}

/* ── Detailseite: Grid-Gerüst (Task 3) — Spalten ≤ 1024 px: Rahmen in der Mitte, jedes Kind mit explizitem grid-row
   (der Kopf-Hintergrund belegt als Grid-Item die Reihen 1–5 und würde auto-platzierte Kinder hinter sich schieben);
   kein row-gap, fehlende Kinder lassen ihre Reihe 0 px hoch. Gestaltung: Task 4 (Desktop) und 5 (Handy/Tablet). ── */
#fz-detail { display: grid; grid-template-columns: minmax(15px, 1fr) minmax(0, var(--fz-rahmen)) minmax(15px, 1fr); isolation: isolate; background: var(--fz-weiss); }
#fz-detail > * { grid-column: 2; min-width: 0; }
#fz-detail .fz-kopf-bg { grid-column: 1 / -1; grid-row: 1 / 6; z-index: -1; background: var(--fz-bg-hell); }
#fz-detail .fz-zurueck { grid-row: 1; justify-self: start; margin-top: 20px; }
#fz-detail .fz-galerie { grid-row: 2; }
#fz-detail .fz-titel { grid-row: 3; }
#fz-detail .fz-kurzinfo { grid-row: 4; }
#fz-detail .fz-merkmale { grid-row: 5; display: flex; flex-wrap: wrap; gap: 8px; }
#fz-detail .fz-kauf { grid-row: 6; }
#fz-detail .fz-abschnitt { margin-top: 36px; }
#fz-detail #fz-technik { grid-row: 7; }
#fz-detail #fz-ausstattung { grid-row: 8; }
#fz-detail #fz-text { grid-row: 9; }
#fz-detail .fz-cta-leiste { grid-column: 1 / -1; grid-row: 10; position: sticky; bottom: 0; }
#fz-detail .fz-haendler { grid-column: 1 / -1; grid-row: 11; }
#fz-detail .fz-streifen { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#fz-detail .fz-streifen::-webkit-scrollbar { display: none; }
#fz-detail .fz-streifen__bild { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 3 / 2; }
#fz-detail .fz-streifen__img { display: block; width: 100%; height: 100%; object-fit: cover; }
#fz-detail .fz-galerie__buehne { position: relative; }
#fz-detail .fz-galerie__minis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
#fz-detail .fz-galerie__mini { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 768px) {
  #fz-detail .fz-cta-leiste { display: none; }
}
@media (min-width: 1025px) {
  #fz-detail { grid-template-columns: minmax(15px, 1fr) minmax(0, calc(var(--fz-rahmen) * 0.58 - 22px)) 44px minmax(0, calc(var(--fz-rahmen) * 0.42 - 22px)) minmax(15px, 1fr); }
  #fz-detail .fz-kopf-bg { grid-row: 1 / 4; }
  #fz-detail .fz-zurueck { grid-column: 2 / 5; grid-row: 1; align-self: center; margin-top: 0; }
  #fz-detail .fz-titel { grid-column: 2 / 5; grid-row: 1; align-self: center; text-align: center; padding: 0 25%; }
  #fz-detail .fz-kurzinfo { grid-column: 2 / 5; grid-row: 2; text-align: center; }
  #fz-detail .fz-merkmale { grid-column: 2 / 5; grid-row: 3; justify-content: center; }
  #fz-detail .fz-galerie { grid-column: 2; grid-row: 4; }
  #fz-detail .fz-kauf { grid-column: 4; grid-row: 4 / 8; align-self: start; position: sticky; top: calc(24px + var(--fz-kopf, 0px)); }
  #fz-detail #fz-technik { grid-column: 2; grid-row: 5; }
  #fz-detail #fz-ausstattung { grid-column: 2; grid-row: 6; }
  #fz-detail #fz-text { grid-column: 2; grid-row: 7; }
  #fz-detail .fz-haendler { grid-column: 1 / -1; grid-row: 8; }
}

/* ── Detailseite: Gestaltung (Task 4) — Kopfband, Galerie, Abschnitte, Datenlisten, Kaufspalte, Händlerband, Lightbox ── */
#fz-detail .fz-zurueck { margin: 20px 0 16px; }
#fz-detail .fz-titel { margin-top: 20px; font-size: 25px; font-weight: 700; line-height: 1.16; letter-spacing: -.01em; text-transform: uppercase; color: var(--fz-anthrazit); }
#fz-detail .fz-kurzinfo { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--fz-grau); }
#fz-detail .fz-merkmale { padding: 14px 0 24px; }
#fz-detail .fz-merkmal { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; background: var(--fz-weiss); border: 1px solid var(--fz-linie); border-radius: var(--fz-radius); font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--fz-anthrazit); }
#fz-detail .fz-galerie { margin-top: 0; }
#fz-detail .fz-galerie__buehne { overflow: hidden; border-radius: var(--fz-radius); background: var(--fz-bg-hell); }
#fz-detail .fz-galerie__pfeil { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(31, 31, 31, .7); color: var(--fz-weiss); transition: background-color .18s; }
#fz-detail .fz-galerie__pfeil:hover { background: rgba(31, 31, 31, .92); }
#fz-detail .fz-galerie__pfeil--zurueck { left: 12px; }
#fz-detail .fz-galerie__pfeil--weiter { right: 12px; }
#fz-detail .fz-galerie__zaehler { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(31, 31, 31, .75); color: var(--fz-weiss); font-size: 13px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
#fz-detail .fz-galerie__minis a { display: block; border-radius: var(--fz-radius); overflow: hidden; }
#fz-detail .fz-galerie__minis a:hover .fz-galerie__mini { opacity: .85; }
#fz-detail .fz-galerie__mini { transition: opacity .18s; }
html:not(.fz-js) #fz-detail .fz-galerie__pfeil, html:not(.fz-js) #fz-detail .fz-galerie__zaehler { display: none; }   /* der Weiterlesen-Link bleibt ohne JS sichtbar: href="#fz-text" klappt per :target auf */
#fz-detail .fz-abschnitt { margin-top: 40px; }
#fz-detail .fz-abschnitt__titel { margin-bottom: 16px; font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--fz-anthrazit); }
#fz-detail .fz-daten div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--fz-linie); }
#fz-detail .fz-daten dt { font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--fz-grau); }   /* Bootstrap-Reboot: dt { font-weight: 700 } */
#fz-detail .fz-daten dd { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--fz-anthrazit); text-align: right; font-variant-numeric: tabular-nums; }
#fz-detail #fz-ausstattung ul { list-style: disc; padding-left: 20px; }
#fz-detail #fz-ausstattung li { font-size: 16px; line-height: 1.7; color: var(--fz-text); }
#fz-detail .fz-text__inhalt { font-size: 16px; line-height: 1.7; color: var(--fz-text); }
#fz-detail .fz-text__inhalt p { margin: 0 0 18px; }
#fz-detail .fz-text__inhalt p:last-child { margin-bottom: 0; }
#fz-detail .fz-text__inhalt ul, #fz-detail .fz-text__inhalt ol { list-style: disc; padding-left: 20px; margin: 0 0 18px; }
#fz-detail .fz-text__inhalt a { color: var(--fz-rot); }
#fz-detail .fz-text__inhalt a:hover { color: var(--fz-rot-dunkel); text-decoration: underline; }
#fz-detail .fz-text__inhalt strong { font-weight: 600; color: var(--fz-anthrazit); }
#fz-detail .fz-text__inhalt small { font-size: 13px; line-height: 1.5; color: var(--fz-grau); }
#fz-detail .fz-text__mehr { margin-top: 12px; }
#fz-detail .fz-kauf { margin-top: 28px; }
#fz-detail .fz-blick { padding: 24px; background: var(--fz-bg-hell); border-radius: var(--fz-radius); }
#fz-detail .fz-blick__titel { margin-bottom: 14px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--fz-grau); }
#fz-detail .fz-eck { display: grid; grid-template-columns: 1fr 1fr; }
#fz-detail .fz-eck__feld { display: flex; flex-direction: column-reverse; gap: 4px; padding: 10px 12px 12px 0; }
#fz-detail .fz-eck__feld:nth-child(even) { padding-left: 16px; padding-right: 0; }
#fz-detail .fz-eck__feld:nth-child(odd) { border-right: 1px solid var(--fz-linie); }
#fz-detail .fz-eck__feld:nth-child(-n+2) { border-bottom: 1px solid var(--fz-linie); }
#fz-detail .fz-eck dd { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--fz-anthrazit); font-variant-numeric: tabular-nums; }
#fz-detail .fz-eck dt { font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--fz-grau); }
#fz-detail .fz-daten--kompakt { margin-top: 14px; }
#fz-detail .fz-daten--kompakt div { padding: 8px 0; }
#fz-detail .fz-daten--kompakt div:last-child { border-bottom: 0; }
#fz-detail .fz-preis { padding-top: 20px; }
#fz-detail .fz-preis__netto, #fz-detail .fz-preis__steuer, #fz-detail .fz-preis__hinweis { font-size: 15px; line-height: 1.4; color: var(--fz-grau); }
#fz-detail .fz-preis__brutto { margin-top: 4px; font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--fz-rot); }
#fz-detail .fz-preis__hinweis { margin-top: 4px; }
#fz-detail .fz-kauf > .fz-knopf { margin-top: 12px; }
#fz-detail .fz-kauf > .fz-knopf + .fz-knopf { margin-top: 8px; }
#fz-detail .fz-haendler { margin-top: 48px; padding: 48px 0; background: var(--fz-anthrazit); color: var(--fz-weiss); }
#fz-detail .fz-haendler__inhalt { width: var(--fz-rahmen); max-width: calc(100% - 30px); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
#fz-detail .fz-haendler__eyebrow { font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--fz-rot); }
#fz-detail .fz-haendler__titel { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--fz-weiss); }
#fz-detail .fz-haendler__text { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--fz-linie); }
#fz-detail .fz-haendler__knoepfe { display: flex; flex-direction: column; gap: 8px; }
#fz-detail [id] { scroll-margin-top: calc(var(--fz-kopf, 0px) + 16px); }
/* Lightbox: [open]-Regeln außerhalb jeder Media-Query (E4) — UA-Reset für dialog, Vollbild, Streifen mit contain-Bildern */
#fz-lightbox[open] { display: block; position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #000; color: #fff; z-index: 1400; }
#fz-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
#fz-lightbox .fz-lightbox__streifen { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
#fz-lightbox .fz-lightbox__streifen::-webkit-scrollbar { display: none; }
/* festes Raster (Runde 3): ohne Zeilenmaß wuchs die Zeile mit dem Bild, max-height: 100% bezog sich auf sich selbst */
#fz-lightbox .fz-streifen__bild { flex: 0 0 100%; height: 100%; aspect-ratio: auto; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
#fz-lightbox .fz-streifen__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
#fz-lightbox .fz-lightbox__zu, #fz-lightbox .fz-lightbox__pfeil { position: absolute; z-index: 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .18s; }
#fz-lightbox .fz-lightbox__zu:hover, #fz-lightbox .fz-lightbox__pfeil:hover { background: rgba(255, 255, 255, .3); }
#fz-lightbox .fz-lightbox__zu { top: 12px; right: 12px; }
#fz-lightbox .fz-lightbox__pfeil { top: 50%; margin-top: -24px; }
#fz-lightbox .fz-lightbox__pfeil--zurueck { left: 16px; }
#fz-lightbox .fz-lightbox__pfeil--weiter { right: 16px; }
#fz-lightbox .fz-lightbox__zaehler { position: absolute; z-index: 2; top: 20px; left: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
#fz-lightbox :focus-visible { outline-color: #fff; }
@media (min-width: 768px) {
  #fz-detail .fz-text__mehr { display: none; }
  #fz-detail .fz-abschnitt__titel { font-size: 27px; }
  #fz-detail .fz-titel { font-size: 31px; }
  #fz-detail .fz-kurzinfo { font-size: 15px; }
  #fz-detail .fz-eck dd { font-size: 24px; }
  #fz-detail .fz-preis__brutto { font-size: 32px; }
  #fz-detail .fz-haendler__titel { font-size: 27px; }
}
/* Vollbild (E1, Runde 3): 64 px oben/unten für Zähler + Schließen, 80 px links/rechts für die Pfeile, Bild ≤ 1600 px.
   Erst ab 500 px Höhe: quer gehaltene Handys (812×375) füllen ohne Rand die Höhe, Pfeile liegen trotzdem daneben */
@media (min-width: 768px) and (min-height: 500px) {
  #fz-lightbox .fz-streifen__bild { padding: 64px 80px; }
  #fz-lightbox .fz-streifen__img { max-width: min(100%, 1600px); }
}
@media (min-width: 1025px) {
  #fz-detail .fz-zurueck { margin: 0; position: relative; z-index: 1; }   /* über der H1: beide teilen Reihe 1, die H1 (25 % Innenabstand) läge sonst auf dem Knopf */
  #fz-detail .fz-titel { margin: 0; padding: 28px 25%; font-size: 38px; }
  #fz-detail .fz-kurzinfo { margin-top: -10px; }
  #fz-detail .fz-merkmale { padding: 14px 0 28px; }
  #fz-detail .fz-galerie { margin-top: 32px; }
  #fz-detail .fz-kauf { margin-top: 32px; }
  #fz-detail .fz-haendler__inhalt { grid-template-columns: 56fr 38fr; gap: 0 44px; }
  #fz-detail .fz-haendler__eyebrow, #fz-detail .fz-haendler__titel, #fz-detail .fz-haendler__text { grid-column: 1; }
  #fz-detail .fz-haendler__knoepfe { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}
/* ── Handy und Tablet (Task 5): Miniaturen weg, Abschnitte enger; < 768 px untere Leiste „Preis | Anfragen | Anrufen" und Weiterlesen ── */
@media (max-width: 1024px) {
  #fz-detail .fz-galerie__minis { display: none; }
  #fz-detail .fz-abschnitt { margin-top: 36px; }
}
@media (max-width: 767px) {
  /* links 80 px frei für den Usercentrics-Privacy-Knopf des Kunden (unten links), rechts bleibt back-to-top oberhalb;
     kein env(safe-area-inset-bottom): beide Themes setzen die Viewport-Meta ohne viewport-fit=cover (Wert wäre 0) */
  /* Runde 3: die Leiste steht vor dem Händlerband und übernimmt dessen 48-px-Abstand — angedockt sitzt sie bündig auf dem Band */
  #fz-detail .fz-haendler { margin-top: 0; }
  #fz-detail .fz-cta-leiste { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 48px; padding: 10px 16px 10px 80px; min-height: 56px; max-height: 64px; background: var(--fz-weiss); border-top: 1px solid var(--fz-linie); z-index: 1200; }
  #fz-detail .fz-cta-leiste__preis { font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--fz-rot); white-space: nowrap; }
  #fz-detail .fz-cta-leiste .fz-knopf { padding: 12px 18px; }
  #fz-detail .fz-cta-leiste .fz-knopf--rahmen { width: 44px; height: 44px; padding: 0; }
  /* „Zum Fahrzeug" eingeklappt (420 px, weicher Auslauf); aufgeklappt per JS-Klasse oder :target (ohne JS) */
  #fz-detail #fz-text:not(:target):not(.fz-text--offen) .fz-text__inhalt { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  #fz-detail #fz-text:target .fz-text__mehr, #fz-detail #fz-text.fz-text--offen .fz-text__mehr { display: none; }
}

/* ── Bewegung (PLAN-ANIMATION.md): EIN Auftakt je Sitzung und Seitenart (html.fz-auftakt, setzt der Kopf-Einzeiler aus
   assets.php); Folgeseiten (Filter, Sortierung, Seitenzahlen, Neuladen) stehen still. Regel: Was fährt
   (Karten, Kaufspalte, Fahrzeugart), rollt in Leserichtung ein; was steht (Text, Filter, Fotos), blendet auf; was am
   Rand wohnt (Schublade, Handy-Leiste), kommt von seinem Rand. Nur transform/opacity, fill backwards: der Endzustand ist
   der Ruhezustand. Blenden starten bei 1 % statt 0: Chrome zählt Deckkraft 0 nicht als LCP (gemessen
   +0,7 s). Akkordeon und Weiterlesen animieren die Höhe per Web Animations API (fahrzeuge.js). ── */
@keyframes fz-einrollen { from { opacity: .01; transform: translateX(var(--fz-weg, -24px)); } }
@keyframes fz-aufblenden { from { opacity: .01; } }
@keyframes fz-ausblenden { to { opacity: 0; } }
@keyframes fz-auftauchen { from { transform: translateY(100%); } }
@keyframes fz-ausschieben { to { transform: translateX(-100%); } }
@keyframes fz-heranzoomen { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: no-preference) {
  #fz-bestand, #fz-detail, #fz-filter, #fz-lightbox { --fz-ein: cubic-bezier(.16, 1, .3, 1); }
  /* Staffelindex über die Position (keine Inline-Stile) */
  #fz-bestand .fz-karte:nth-child(2), #fz-bestand .fz-arten__eintrag:nth-child(2), #fz-detail .fz-merkmal:nth-child(2) { --fz-i: 1; }
  #fz-bestand .fz-karte:nth-child(3), #fz-bestand .fz-arten__eintrag:nth-child(3), #fz-detail .fz-merkmal:nth-child(3) { --fz-i: 2; }
  #fz-bestand .fz-karte:nth-child(4), #fz-bestand .fz-arten__eintrag:nth-child(4), #fz-detail .fz-merkmal:nth-child(4) { --fz-i: 3; }
  #fz-bestand .fz-karte:nth-child(5), #fz-bestand .fz-arten__eintrag:nth-child(5), #fz-detail .fz-merkmal:nth-child(5) { --fz-i: 4; }
  #fz-bestand .fz-karte:nth-child(6), #fz-bestand .fz-arten__eintrag:nth-child(6) { --fz-i: 5; }
  #fz-bestand .fz-karte:nth-child(7), #fz-bestand .fz-arten__eintrag:nth-child(7) { --fz-i: 6; }
  #fz-bestand .fz-karte:nth-child(8), #fz-bestand .fz-arten__eintrag:nth-child(n+8) { --fz-i: 7; }
  /* Übersicht: Filterspalte (ein Block) → Fahrzeugart → Trefferzeile → Karten 1–8 in Leserichtung (≈ 1 s); die Handy-Leiste
     mit dem Filter-Knopf steht sofort (wichtigstes Bedienelement) */
  html.fz-auftakt #fz-bestand .fz-trefferzeile { animation: fz-aufblenden .4s ease-out .12s backwards; }
  html.fz-auftakt #fz-bestand .fz-arten__eintrag { --fz-weg: -12px; animation: fz-einrollen .44s var(--fz-ein) backwards; animation-delay: calc(80ms + var(--fz-i, 0) * 40ms); }
  html.fz-auftakt #fz-bestand .fz-karte:nth-child(-n+8) { animation: fz-einrollen .52s var(--fz-ein) backwards; animation-delay: calc(180ms + var(--fz-i, 0) * 50ms); }
  /* Filterwechsel, Suche, Sortierung, Seitenzahlen (html.fz-wechsel): nur die Karten rollen erneut ein, sofort — Filterspalte,
     Fahrzeugart und Trefferzeile stehen, damit unter der Hand nichts wackelt */
  html.fz-wechsel #fz-bestand .fz-karte:nth-child(-n+8) { animation: fz-einrollen .52s var(--fz-ein) backwards; animation-delay: calc(var(--fz-i, 0) * 50ms); }
  /* Detailseite: Kopfband blendet auf, Foto blendet weich auf, Kaufspalte rollt ein, Handy-Leiste taucht zuletzt auf */
  html.fz-auftakt #fz-detail .fz-zurueck, html.fz-auftakt #fz-detail .fz-titel, html.fz-auftakt #fz-detail .fz-kurzinfo, html.fz-auftakt #fz-detail .fz-merkmal { animation: fz-aufblenden .44s ease-out backwards; }
  html.fz-auftakt #fz-detail .fz-titel { animation-delay: 60ms; }
  html.fz-auftakt #fz-detail .fz-kurzinfo { animation-delay: 120ms; }
  html.fz-auftakt #fz-detail .fz-merkmal { animation-delay: calc(160ms + var(--fz-i, 0) * 40ms); }
  html.fz-auftakt #fz-detail .fz-galerie { animation: fz-aufblenden .64s ease-out backwards; }
  html.fz-auftakt #fz-detail .fz-kauf { --fz-weg: -16px; animation: fz-einrollen .56s var(--fz-ein) .2s backwards; }
  html.fz-auftakt #fz-detail .fz-cta-leiste { animation: fz-auftauchen .48s var(--fz-ein) .5s backwards; }
  /* Schublade: schiebt von links ein, Hintergrund blendet mit; zu (Knopf, Rand-Klick) schiebt sie zurück — Escape schließt sofort */
  html.fz-js #fz-filter[open] { animation: fz-einschieben .3s cubic-bezier(.32, .72, 0, 1); }
  html.fz-js #fz-filter[open]::backdrop { animation: fz-aufblenden .3s ease-out; }
  html.fz-js #fz-filter[open].fz-schliesst { animation: fz-ausschieben .2s cubic-bezier(.4, 0, 1, 1) forwards; }
  html.fz-js #fz-filter[open].fz-schliesst::backdrop { animation: fz-ausblenden .2s forwards; }
  /* Lightbox: auf mit Blende + leichtem Heranzoomen, zu mit Blende — der 90-%-Hintergrund blendet mit (sonst: Bild → Schwarz → harter Schnitt) */
  html.fz-js #fz-lightbox[open] { animation: fz-aufblenden .2s ease-out; }
  html.fz-js #fz-lightbox[open]::backdrop { animation: fz-aufblenden .2s ease-out; }
  html.fz-js #fz-lightbox[open] .fz-lightbox__streifen { animation: fz-heranzoomen .32s var(--fz-ein); }
  html.fz-js #fz-lightbox[open].fz-schliesst { animation: fz-ausblenden .16s ease-in forwards; }
  html.fz-js #fz-lightbox[open].fz-schliesst::backdrop { animation: fz-ausblenden .16s ease-in forwards; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 991px) {
  html.fz-auftakt #fz-bestand .fz-karte:nth-child(n+5), html.fz-wechsel #fz-bestand .fz-karte:nth-child(n+5) { animation: none; }   /* Handy/Tablet: nur die ersten vier (schwache Geräte, der Rest liegt unter dem Falz) */
}
@media (prefers-reduced-motion: no-preference) and (min-width: 992px) {
  html.fz-auftakt #fz-filter .fz-filter__form { animation: fz-aufblenden .4s ease-out backwards; }   /* Seitenleiste als EIN Block; in der Schublade (< 992) liefe es sonst bei jedem Öffnen */
}

/* ── Bewegung nur, wenn gewünscht ── */
@media (prefers-reduced-motion: reduce) {
  #fz-bestand .fz-karte, #fz-bestand .fz-knopf, #fz-bestand .fz-seiten__link, #fz-bestand .fz-arten__eintrag,
  #fz-filter .fz-icon--chevron, #fz-filter .fz-filter__eintrag, #fz-filter .fz-feldgruppe__knopf, #fz-filter .fz-chip, #fz-filter .fz-filter__reset { transition: none; }
  #fz-bestand .fz-karte:hover { translate: none; }
  #fz-detail .fz-streifen, #fz-lightbox .fz-streifen { scroll-behavior: auto; }
  #fz-detail .fz-galerie__pfeil, #fz-detail .fz-galerie__mini, #fz-lightbox .fz-lightbox__zu, #fz-lightbox .fz-lightbox__pfeil { transition: none; }
}
