/* =====================================================================
   detail.css — Fahrzeug-Detailseite · Autohof Wentorf (Autohaus 18)
   Herkunft: ~/.claude/vorlagen/fahrzeug-detail (Back & Boldt, GESETZ Kap. 10) —
   Aufbau unverändert, Haut neu: Haut B „Die Visitenkarte“ (bau-brief §4/§5/§11).
   Generator: tools/generate-fahrzeugseiten.mjs. Die Detailseiten laden NUR
   diese Datei + plakette.css (eigenständig, keine Abhängigkeit von site.css).
   Farben AUSSCHLIESSLICH über Tokens — ein Haut-Wechsel tauscht nur :root.
   Thema: Attribut data-thema="hell|dunkel" an <html> (Start IMMER hell,
   prefers-color-scheme wird bewusst NICHT ausgewertet — GESETZ Kap. 1).
   ===================================================================== */

/* ---------- Schriften (lokal, kein CDN) ---------- */
@font-face {
  font-family: "Kanit";
  src: url("../fonts/kanit-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/kanit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/kanit-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-latin-wght.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-arabic-wght.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- Tokens Haut B — hell (Start) ---------- */
:root {
  --grund: #f7f5f6;
  --flaeche: #ece9eb;
  --kante: #d3d0d3;
  --tinte: #16161a;
  --meta: #5a5a51;
  --magenta: #c41f42; /* Knopf-Fläche */
  --magenta-hover: #a31937;
  --magenta-text: #c41f42; /* Akzentwort / Link auf Grund */
  --leit: #e1254c; /* Linie, Sterne, Fokus — nie Schrift */
  --stahl: #a7adb1; /* Material Kartenhalter: nur Kante/Fläche */
  --tafel: #16161a;
  /* themenfest (Kap. 11) — kein Thema überschreibt diese */
  --dunkel-fest: #14181b;
  --kalk-fest: #f8fafa;
  --meta-fest: #c9d1d4;
  --schleier-fest: rgba(20, 24, 27, 0.62); /* Pfeile/Zähler über Fotos */
  --vollbild-fest: rgba(11, 12, 14, 0.96);
  /* Rollen */
  --knopf-text: var(--kalk-fest);
  --radius: 4px;
  --display: "Kanit", "Segoe UI", system-ui, sans-serif;
  --text: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --leiste: 80px;
  --rand: clamp(1.1rem, 4vw, 3rem);
  color-scheme: light;
}
/* ---------- Tokens Haut B — dunkel (nur per Schalter) ---------- */
[data-thema="dunkel"] {
  --grund: #141316;
  --flaeche: #1e1c20;
  --kante: #2e2b31;
  --tinte: #efedee;
  --meta: #aba6ad;
  --magenta-text: #ff7d93;
  --stahl: #5e6468;
  --tafel: #0b0b0d;
  color-scheme: dark;
}

/* ---------- Grundlage ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--magenta-text);
}
button {
  font: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--tinte);
  margin: 0;
}
.h-2 {
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 2.3vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.06;
}
.h-3 {
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.2;
}
.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}
.sr-only,
.nurSR {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  font-size: 0;
}
.sr-only:focus {
  position: fixed !important;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  z-index: 200;
  background: var(--tinte);
  color: var(--grund);
}
.bahn {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--rand);
}
:focus-visible {
  outline: 2px solid var(--leit);
  outline-offset: 2px;
}

/* ---------- Knöpfe (Karte & Stahl: Radius 4, keine Schatten) ---------- */
.knopf {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--magenta);
  border-radius: var(--radius);
  background: var(--magenta);
  color: var(--knopf-text);
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 150ms var(--ease),
    border-color 150ms var(--ease),
    color 150ms var(--ease);
}
.knopf:hover {
  background: var(--magenta-hover);
  border-color: var(--magenta-hover);
}
.knopf--rand {
  background: transparent;
  color: var(--tinte);
  border-color: var(--stahl);
}
.knopf--rand:hover {
  background: var(--flaeche);
  border-color: var(--tinte);
  color: var(--tinte);
}
.knopf--voll {
  width: 100%;
}
.knopf svg {
  flex: 0 0 auto;
}
.knopf--wa svg {
  color: var(--tinte);
}

/* ---------- Kopfleiste (themenfest deckend 80 px, bau-brief §1) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--grund);
  border-bottom: 1px solid var(--kante);
}
.nav__inner {
  height: var(--leiste);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.nav__marke {
  flex: 0 0 auto;
  display: block;
}
.nav__logo {
  height: 60px;
  width: auto;
}
.nav__logo--dunkel {
  display: none;
}
[data-thema="dunkel"] .nav__logo--hell {
  display: none;
}
[data-thema="dunkel"] .nav__logo--dunkel {
  display: block;
}
.nav__liste {
  list-style: none;
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.7rem);
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__liste a {
  color: var(--tinte);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  white-space: nowrap;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav__liste a:hover,
.nav__liste a[aria-current="page"] {
  border-bottom-color: var(--leit);
}
.nav__rechts {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.rund {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stahl);
  border-radius: var(--radius);
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.rund:hover {
  background: var(--flaeche);
}
.rund svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.nav__merkzahl {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--magenta);
  color: var(--knopf-text);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.nav__merkzahl[hidden] {
  display: none;
}
.thema-mond {
  display: block;
}
.thema-sonne {
  display: none !important;
}
[data-thema="dunkel"] .thema-mond {
  display: none !important;
}
[data-thema="dunkel"] .thema-sonne {
  display: block !important;
}
.nav__burger {
  display: none;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 2px 0;
}
.nav__burger {
  flex-direction: column;
}
.nav__mobil {
  display: none;
  background: var(--grund);
  border-top: 1px solid var(--kante);
}
.nav__mobil ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--rand) 1rem;
}
.nav__mobil a {
  display: block;
  padding: 0.8rem 0;
  color: var(--tinte);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--kante);
}
.nav[data-offen="ja"] .nav__mobil {
  display: block;
}
@media (max-width: 1100px) {
  .nav__liste {
    display: none;
  }
  .nav__rechts {
    margin-left: auto;
  }
  .nav__burger {
    display: flex;
  }
}
@media (max-width: 420px) {
  .nav__logo {
    height: 48px;
  }
  .nav__inner {
    gap: 0.6rem;
  }
  .nav__rechts {
    gap: 0.3rem;
  }
  .rund {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Detailseite (Aufbau B&B, unverändert) ---------- */
main {
  padding-top: var(--leiste);
}
.det {
  padding-block: 1.75rem 4.5rem;
}
.det-pfad {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--meta);
  margin: 0 0 1.4rem;
}
.det-pfad a {
  color: var(--magenta-text);
  text-decoration: none;
}
.det-pfad a:hover {
  text-decoration: underline;
}

.det-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.det-kopf__text {
  min-width: 0;
}
.det-kopf .h-2 {
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}
.det-kopf__unter {
  color: var(--meta);
  margin: 0.5rem 0 0;
  max-width: 42rem;
}
.det-kopf__preis {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin: 1rem 0 0;
  flex-wrap: wrap;
}
.det-kopf__betrag {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.det-kopf__betrag b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--tinte);
  line-height: 1;
}
.det-kopf__betrag span {
  color: var(--meta);
  font-size: 0.84rem;
}
.det-kopf__eck {
  margin: 0.55rem 0 0;
  color: var(--meta);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.det-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
}
.det-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--stahl);
  background: var(--flaeche);
  color: var(--tinte);
}
.det-kopf__knoepfe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.det-kopf__knoepfe .knopf,
.det-kopf__knoepfe .merk--text {
  min-width: 0;
  white-space: normal;
  text-align: center;
}
.det-expose {
  order: -1;
}
.merk--text {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border: 1px solid var(--stahl);
  border-radius: var(--radius);
  background: transparent;
  color: var(--tinte);
  font-weight: 600;
  font-size: 0.95rem;
}
.merk--text svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.merk--text:hover {
  background: var(--flaeche);
}
.merk--text[aria-pressed="true"] {
  border-color: var(--magenta);
  color: var(--magenta-text);
}
.merk--text[aria-pressed="true"] svg {
  fill: currentColor;
}

/* Galerie */
.gal {
  margin: 0 0 2.5rem;
}
.gal__buehne {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--flaeche);
  border: 1px solid var(--kante);
}
.gal__buehne img[data-gal-haupt] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 180ms var(--ease);
}
.gal__buehne img.ist-wechsel {
  opacity: 0.85;
}
.gal__pfeil {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--stahl);
  background: var(--schleier-fest);
  color: var(--kalk-fest);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: background 150ms var(--ease);
}
.gal__pfeil:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}
.gal__pfeil--l {
  left: 1rem;
}
.gal__pfeil--r {
  right: 1rem;
}
.gal__zaehler {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  background: var(--schleier-fest);
  color: var(--kalk-fest);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  z-index: 2;
}
.gal__voll-knopf {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--stahl);
  border-radius: var(--radius);
  background: var(--schleier-fest);
  color: var(--kalk-fest);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.gal__voll-knopf:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}
.gal__thumbs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.gal__thumb {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--flaeche);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  opacity: 0.82;
  transition:
    border-color 150ms var(--ease),
    opacity 150ms var(--ease);
}
.gal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal__thumb:hover,
.gal__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--magenta);
}
.gal__voll {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--vollbild-fest);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}
.gal__voll[hidden] {
  display: none;
}
.gal__voll img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.gal__voll .gal__pfeil--l {
  left: 1.2rem;
}
.gal__voll .gal__pfeil--r {
  right: 1.2rem;
}
.gal__voll .gal__zaehler {
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.2rem;
}
.gal__zu {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--stahl);
  background: var(--schleier-fest);
  color: var(--kalk-fest);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  padding: 0;
}
.gal__zu:hover {
  background: var(--magenta);
}

/* Tafel „Fotos folgen“ (GESETZ Kap. 10: ohne Foto Rang behalten + gestaltete Tafel) */
.fzg-tafel {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: var(--tafel);
  border: 1px solid var(--stahl);
  color: var(--kalk-fest);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 2rem;
  text-align: center;
  overflow: clip;
}
.fzg-tafel__logo {
  width: min(15rem, 55%);
  height: auto;
}
.fzg-tafel__zeile {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--kalk-fest);
}
.fzg-tafel__strich {
  width: 5.5rem;
  height: 3px;
  background: var(--leit);
}
.fzg-tafel__text {
  margin: 0;
  max-width: 34rem;
  color: var(--meta-fest);
  font-size: 1rem;
}
.fzg-tafel__text a {
  color: var(--kalk-fest);
  font-weight: 600;
}

/* Raster: Inhalt links, Anfrage rechts sticky */
.det-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 1fr);
  gap: 3rem;
  align-items: start;
}
.det-haupt {
  min-width: 0;
}
.det-block {
  margin-top: 2.75rem;
}
.det-block:first-child {
  margin-top: 0;
}
.kapitel {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--stahl);
}
.kapitel__nr {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--knopf-text);
  background: var(--tafel);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius);
}
[data-thema="dunkel"] .kapitel__nr {
  border: 1px solid var(--stahl);
}
.kapitel small {
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--meta);
  margin-left: 0.5rem;
}

.det-daten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin: 0;
}
.det-daten__zeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--kante);
  font-size: 0.94rem;
  min-width: 0;
}
.det-daten__zeile dt {
  color: var(--meta);
}
.det-daten__zeile dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.det-verbrauch {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--flaeche);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--meta);
  line-height: 1.55;
}
.det-verbrauch b {
  color: var(--tinte);
  display: block;
  margin-bottom: 0.35rem;
}
.det-verbrauch dl {
  margin: 0 0 0.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
}
.det-verbrauch dt {
  color: var(--meta);
}
.det-verbrauch dd {
  margin: 0;
  color: var(--tinte);
  font-weight: 600;
}
.det-hinweis {
  margin: 1rem 0 0;
  color: var(--meta);
  font-size: 0.88rem;
}
.det-hinweis--rot {
  color: var(--magenta-text);
  font-weight: 600;
}
.det-hl {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 1.2rem;
}
.det-hl li {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--kante);
  border-left: 3px solid var(--leit);
  background: var(--flaeche);
  border-radius: var(--radius);
}
.det-aus {
  columns: 2;
  column-gap: 2rem;
}
.det-aus__gruppe {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
.det-aus__gruppe h3 {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0 0 0.4rem;
}
.det-aus__gruppe ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.det-aus__gruppe li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.det-aus__gruppe li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 1px;
  background: var(--leit);
}
.det-text p {
  margin: 0 0 0.8rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.det-text ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.det-fuss {
  margin-top: 2.5rem;
  color: var(--meta);
  font-size: 0.78rem;
  line-height: 1.5;
}
.det-fuss a {
  color: var(--magenta-text);
}

/* Sticky-Anfrage */
.det-aside {
  position: sticky;
  top: calc(var(--leiste) + 1.25rem);
  min-width: 0;
  background: var(--flaeche);
  border: 1px solid var(--stahl);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.det-aside__preis {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}
.det-aside__meta {
  color: var(--meta);
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}
.det-aside__expose {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  color: var(--magenta-text);
  font-size: 0.9rem;
  font-weight: 600;
}
.det-aside .knopf + .knopf {
  margin-top: 0.6rem;
}

/* Formulare */
.form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.form__zwei {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  min-width: 0;
}
.feld {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.feld label,
.feld legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tinte);
}
.feld input,
.feld select,
.feld textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--tinte);
  background: var(--grund);
  border: 1px solid var(--stahl);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  min-height: 46px;
}
.feld select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--meta) 50%),
    linear-gradient(135deg, var(--meta) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.feld textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: 2px solid var(--leit);
  outline-offset: 1px;
  border-color: var(--tinte);
}
.feld--radio {
  border: 0;
  padding: 0;
  margin: 0;
}
.feld--radio div {
  display: flex;
  gap: 1.2rem;
}
.feld--radio label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.feld--radio input {
  width: auto;
  min-height: 0;
  accent-color: var(--magenta);
  -webkit-appearance: auto;
  appearance: auto;
}
.einwilligung {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--meta);
  line-height: 1.45;
}
.einwilligung input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--magenta);
}
.form__meldung {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.form__meldung[data-art="gut"] {
  color: var(--tinte);
}
.form__meldung[data-art="schlecht"] {
  color: var(--magenta-text);
}
.form__zusage {
  margin: 0;
  font-size: 0.82rem;
  color: var(--meta);
}

/* Fingerabdruck 2 „In Zahlung geben — gegen genau dieses Auto“ */
.tausch {
  border: 1px solid var(--stahl);
  border-radius: var(--radius);
  background: var(--flaeche);
  overflow: clip;
}
.tausch__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--tafel);
  color: var(--kalk-fest);
}
.tausch__kopf h2 {
  color: var(--kalk-fest);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  text-transform: none;
}
.tausch__kopf p {
  margin: 0.25rem 0 0;
  color: var(--meta-fest);
  font-size: 0.9rem;
}
.tausch__strich {
  width: 4.5rem;
  height: 3px;
  background: var(--leit);
  margin-top: 0.55rem;
}
.tausch__koerper {
  padding: 1.3rem 1.4rem 1.4rem;
}
.tausch__koerper[hidden] {
  display: none;
}
.tausch__hu {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: end;
}
.tausch__hu-plakette {
  width: 72px;
  height: 72px;
}
.tausch__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--tinte);
}
.tausch__wa svg {
  width: 18px;
  height: 18px;
}

/* ---------- Fuß (hell, 4 Blöcke) ---------- */
.fuss {
  background: var(--flaeche);
  border-top: 1px solid var(--stahl);
  padding-block: 3rem 1.5rem;
  color: var(--tinte);
}
.fuss__kopf {
  margin-bottom: 2rem;
  max-width: 40rem;
}
.fuss__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}
.fuss__block {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  font-size: 0.93rem;
  min-width: 0;
}
.fuss__block h3 {
  font-family: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 0.3rem;
}
.fuss__block a {
  color: var(--tinte);
  text-decoration: none;
}
.fuss__block a:hover {
  text-decoration: underline;
  color: var(--magenta-text);
}
.fuss__block p {
  margin: 0;
  color: var(--meta);
}
.fuss__logo {
  height: 60px;
  width: auto;
  margin-bottom: 0.4rem;
}
.fuss__logo--dunkel {
  display: none;
}
[data-thema="dunkel"] .fuss__logo--hell {
  display: none;
}
[data-thema="dunkel"] .fuss__logo--dunkel {
  display: block;
}
.fuss__siegel {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--meta);
}
.fuss__siegel::before {
  content: "";
  width: 3px;
  align-self: stretch;
  background: var(--leit);
}
.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--kante);
  font-size: 0.82rem;
  color: var(--meta);
  padding-right: 15rem;
}
.fuss__unten a {
  color: var(--meta);
}

/* ---------- Feste Knöpfe „Anrufen“ + „WhatsApp“ (GESETZ Kap. 10) ---------- */
.fix-kontakt {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
}
.fix-kontakt a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--stahl);
}
.fix-kontakt svg {
  width: 18px;
  height: 18px;
}
.fix-kontakt__ruf {
  background: var(--magenta);
  color: var(--knopf-text);
  border-color: var(--magenta) !important;
}
.fix-kontakt__ruf:hover {
  background: var(--magenta-hover);
}
.fix-kontakt__wa {
  background: var(--tafel);
  color: var(--kalk-fest);
}
/* Ruhe-Zustand (fahrzeug.js Abschnitt 4, wie site.js 5 auf den Hauptseiten) */
.fix-kontakt {
  transition:
    opacity 200ms ease,
    visibility 0s linear 0s;
}
.fix-kontakt[data-verborgen="ja"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fix-kontakt a:active {
  transform: scale(0.97);
}
/* GESETZ Kap. 10 (Schritt 6, 04.10.2026): Anrufen + WhatsApp stehen auf JEDER Seite UNTEN RECHTS —
   die frühere Vorlage-F6-Regel (Detailseiten unten links) ist aufgehoben. Platz neben dem Fuß bleibt
   über .fuss__unten { padding-right } frei. Rechts steht die Anfrage sticky → ab 1101 px zwei schmale
   Kacheln übereinander (Symbol + Verb) im Randstreifen neben der Anfrage-Karte. */
@media (min-width: 1101px) {
  .fix-kontakt {
    right: 0.75rem;
    left: auto;
    flex-direction: column;
  }
  .fix-kontakt a {
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    width: 64px;
    min-height: 58px;
    padding: 0.4rem 0.2rem;
    font-size: 0.68rem;
    line-height: 1.1;
  }
}

/* Schritt 6 Integrator (gemessen 1101–1400 px): Der Randstreifen rechts neben Galerie und
   Anfrage-Karte ist unter ~1450 px schmaler als die Knopf-Säule (64 px + 2 × 12 px). Die Fläche
   wird angepasst, nicht der Knopf verkleinert: der Inhalt rückt so weit ein, dass rechts immer
   88 px frei bleiben — die festen Knöpfe überdecken nie Galerie-Pfeil, Vorschaubild oder Anfrage. */
@media (min-width: 1101px) {
  .det > .bahn,
  .fuss > .bahn {
    padding-right: max(var(--rand), calc(88px - max(0px, (100vw - 1360px) / 2)));
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .gal__thumbs {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .det-raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .det-aside {
    position: static;
  }
  .det-kopf {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .fuss__grid {
    grid-template-columns: 1fr 1fr;
  }
  main {
    padding-bottom: 4.5rem;
  }
}
@media (max-width: 760px) {
  .det-kopf__knoepfe {
    grid-template-columns: 1fr 1fr;
  }
  .gal__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .gal__pfeil {
    width: 42px;
    height: 42px;
  }
  .det-daten {
    grid-template-columns: minmax(0, 1fr);
  }
  .det-hl {
    grid-template-columns: 1fr 1fr;
  }
  .det-aus {
    columns: 1;
  }
  .form__zwei,
  .tausch__hu {
    grid-template-columns: minmax(0, 1fr);
  }
  .tausch__hu {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .tausch__hu .feld:last-child {
    grid-column: 1 / -1;
  }
  .fuss__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fuss__unten {
    padding-right: 0;
  }
  /* Fix R1 Punkt 3: Anruf-Leiste wie auf den Hauptseiten (site.css ≤ 760 px) — ruhige Leiste über die
     volle Breite; der Fuß hält unten ihre Höhe + Safe-Area frei, damit „© …“ und „ohne Gewähr“ am
     Seitenende nie darunter liegen. Beim Laden ruht sie (fahrzeug.js Abschnitt 4), bis 40 % des
     ersten Bildschirms gescrollt sind — sonst lag sie über den Chips. */
  .fix-kontakt {
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--grund);
    border-top: 1px solid var(--kante);
  }
  .fix-kontakt a {
    flex: 1 1 0;
    justify-content: center;
    min-height: 46px;
  }
  .fuss {
    padding-bottom: calc(1.5rem + 64px + env(safe-area-inset-bottom, 0px));
  }
  main {
    padding-bottom: 0;
  }
  .tausch__kopf {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .det-hl {
    grid-template-columns: minmax(0, 1fr);
  }
  .gal__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gal__voll-knopf {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* Nachschliff Sehen-Loop 1 (04.10.2026): Icon-Größe in Knöpfen fest, Navigation rechtsbündig */
.knopf svg,
.tausch__wa svg {
  width: 18px;
  height: 18px;
}
.nav__inner > nav {
  margin-left: auto;
}
.nav__liste {
  margin-left: 0;
}
@media (max-width: 1100px) {
  .nav__inner > nav {
    display: none;
  }
}
.det-aside #anfrage-h {
  margin: 1.2rem 0 0.9rem;
}
.det-aside form + .knopf {
  margin-top: 1.1rem;
}
/* Nachschliff Sehen-Loop 2: Zähler oben links (unten links stehen auf breiten Schirmen die festen
   Knöpfe), Anfrage-Karte kompakter, damit sie bei 1440 × 900 als Ganzes sticky im Bild bleibt. */
.gal__buehne > .gal__zaehler {
  top: 1rem;
  bottom: auto;
}
.det-aside {
  padding: 1.25rem 1.35rem;
}
.det-aside .form {
  gap: 0.7rem;
}
.det-aside .feld textarea {
  min-height: 3.6rem;
}
.det-aside__kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
.det-aside__kontakt .knopf {
  margin: 0 !important;
  padding-inline: 0.6rem;
}
.det-aside .form {
  gap: 0.55rem;
}
.det-aside #anfrage-h {
  margin: 1rem 0 0.75rem;
}
/* Nachschliff Sehen-Loop 3 (390 px): Knopfleiste direkt unter Preis + Plakette, damit Exposé/Anfragen
   im ersten Bildschirm frei über der festen Anruf-/WhatsApp-Leiste stehen. */
@media (max-width: 760px) {
  .det-kopf {
    gap: 0.6rem;
  }
  .det-kopf__text {
    display: contents;
  }
  .det-kopf__text > *,
  .det-kopf__knoepfe {
    order: 10;
    margin-top: 0;
  }
  .det-kopf__text > .eyebrow {
    order: 1;
  }
  .det-kopf__text > .h-2 {
    order: 2;
  }
  .det-kopf__text > .det-kopf__unter {
    order: 3;
  }
  .det-kopf__text > .det-kopf__preis {
    order: 4;
    margin-top: 0.3rem;
  }
  .det-kopf__knoepfe {
    order: 5;
    margin-top: 0.4rem;
  }
  .det-kopf__text > .det-kopf__eck {
    order: 6;
    margin-top: 0.4rem;
  }
  .det-kopf__text > .det-chips {
    order: 7;
  }
  .det-kopf__text > .det-hinweis {
    order: 8;
  }
}
