/* ==========================================================================
   Autosport 99 – Webseite
   Gestaltung: Nachtblau, Rennrot, Silber – Rennstreifen-Stil.
   ========================================================================== */

:root {
  /* Farben: Nachtblau (Lack), Rennrot (Akzent), Silber, Startflaggen-Gelb nur für kleine Signale */
  --grund: #F4F5F7;
  --grund-2: #E6E9EE;
  --weiss: #FFFFFF;
  --nacht: #101B2D;
  --nacht-2: #1E2C44;
  --text: #253041;
  --grau: #5B6676;
  --linie: #D3D8E0;
  --linie-2: #E4E7EC;
  --akzent: #D01F3A;
  --akzent-2: #A9142C;
  --akzent-hell: #FCEBEE;
  --signal: #F2B705;
  --signal-hell: #FFF6D6;
  --rot: #B8142B;
  --gruen: #1C7A4B;

  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --r: 3px;
  --r-ctrl: 3px;
  --schraeg: 14px;   /* Schräge der Rennstreifen und Preisschilder */

  --f: 'Saira', 'Helvetica Neue', Arial, sans-serif;
  --fc: 'Saira', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--f);
  font-size: 17.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
/* <picture> nur als Hülle für WebP – das Bild verhält sich wie ein direktes Kind */
picture { display: contents; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--akzent); color: var(--weiss); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Typografie ---------- */
/* Überschriften in Saira – kursiv und breit, wie Schriftzüge auf Rennfahrzeugen;
   Fließtext in Saira normal. Klare Stufen: 6 / 3.4 / 2.2 / 1.25 rem. */

h1, h2, h3, h4 { margin: 0; line-height: 1.08; color: var(--nacht); }
h1, h2 { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; letter-spacing: 0; }
h3, h4 { font-weight: 600; }

.t-display {
  font-family: var(--fc); font-style: italic; font-stretch: 112%;
  font-weight: 700;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6.6vw, 5.8rem);
}
.t-h1 { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.01em; }
.t-h2 { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 800; font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.05; }
.t-h3 { font-family: var(--f); font-weight: 600; font-size: 1.25rem; }
.t-lead { font-size: clamp(1.08rem, 1.35vw, 1.22rem); line-height: 1.55; max-width: 36em; color: var(--text); }
.t-muted { color: var(--grau); }
.t-small { font-size: 0.875rem; }

p { margin: 0 0 1em; }

.truss { display: none; }

/* ---------- Preisschild und Rennstreifen ---------- */
/* Preise stehen auf einem schrägen roten Schild – wie die Startnummernfläche an einem Rennwagen.
   Die Rennstreifen (rot und dunkelblau, schräg) sind das wiedererkennbare Element der Seite. */
.tile__price, .row__price, .buy__amount, .hero__cap-p {
  display: inline-flex; align-items: center; position: relative; z-index: 0;
  padding: 0.28em 0.9em; color: var(--weiss); background: none;
  font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 800; line-height: 1; white-space: nowrap;
}
.tile__price::before, .row__price::before, .buy__amount::before, .hero__cap-p::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--akzent); transform: skewX(-14deg);
}
.stripes { display: block; height: 10px; background: linear-gradient(105deg, transparent 0 18px, var(--akzent) 18px 64px, transparent 64px 72px, var(--nacht) 72px 86px, transparent 86px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.35em;
  border: 2px solid transparent; border-radius: var(--r-ctrl);
  font-weight: 600; font-size: 1.02rem; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--akzent); color: var(--weiss); }
.btn--primary:hover { background: var(--akzent-2); }
.btn--dark { background: var(--nacht); color: var(--weiss); }
.btn--dark:hover { background: var(--nacht-2); }
.btn--line { border-color: var(--nacht); color: var(--nacht); background: transparent; }
.btn--line:hover { background: var(--nacht); color: var(--weiss); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 1em; font-size: 0.95rem; }

.link { font-weight: 600; color: var(--nacht); text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { color: var(--akzent); }

/* ---------- Kopfbereich ---------- */

.hdr { position: -webkit-sticky; position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.hdr.is-stuck { box-shadow: 0 6px 18px -14px rgba(31, 35, 41, 0.45); }
.hdr__bar { display: flex; align-items: center; gap: 28px; min-height: 74px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { display: block; height: 36px; width: auto; }
.topline { background: var(--nacht); color: #DDE2E8; font-size: 0.9rem; }
.topline .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.topline p { margin: 0; font-weight: 500; }
.topline p::before { content: ""; display: inline-block; width: 22px; height: 8px; margin-right: 10px; background: linear-gradient(105deg, var(--akzent) 0 60%, transparent 60% 72%, var(--weiss) 72%); transform: skewX(-14deg); vertical-align: 1px; }
.topline a { color: var(--weiss); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.topline a:hover { color: var(--signal); }
@media (max-width: 620px) { .topline { font-size: 0.82rem; } .topline a { display: none; } }

/* Umschalter Autos / Motorräder */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--grund); border-radius: calc(var(--r-ctrl) + 3px); }
.seg a, .seg button, .seg label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; background: none; border-radius: var(--r-ctrl);
  text-decoration: none; font-weight: 600; color: var(--nacht); cursor: pointer;
}
.seg a:hover, .seg label:hover { background: var(--weiss); }
.seg [aria-current="page"], .seg .is-on, .seg input:checked + span { background: var(--nacht); color: var(--weiss); box-shadow: none; }
.seg [aria-current="page"] .seg__n, .seg input:checked + span .seg__n { color: #AEB8C8; }
.seg__n { font-weight: 500; font-size: 0.85em; color: var(--grau); }
.seg--form label { padding: 0; }
.seg--form label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-ctrl); }
.seg--form { margin: 0; min-width: 0; justify-self: start; border: 0; }
.seg--form .seg__n { margin-left: 8px; }
.seg--form input { position: absolute; opacity: 0; pointer-events: none; }
.seg--form input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 1px; }

.hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr__nav > a {
  position: relative; padding: 10px 12px; white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--nacht);
}
.hdr__nav > a:hover { color: var(--akzent); }
.hdr__nav > a[aria-current="page"] { color: var(--nacht); }
.hdr__nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 4px; background: var(--akzent); transform: skewX(-14deg); }
.hdr__phone { margin-left: 10px; }

.hdr__menu-btn {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--linie); background: var(--weiss);
  border-radius: var(--r-ctrl); cursor: pointer; align-items: center; justify-content: center; color: var(--nacht);
}
.hdr__call { display: none; }
.hdr__menu-btn span[data-menu-icon] { display: inline-flex; }
.hdr__menu-btn svg { width: 24px; height: 24px; }
.hdr__menu-btn [hidden] { display: none !important; }
.hdr__tabs { display: none; }

@media (max-width: 1280px) {
  .hdr__phone-num { display: none; }
  .hdr__phone { padding: 0; width: 48px; }
}
/* Mittlere Breiten: Autos/Motorräder in eine zweite Zeile, damit das Menü nicht umbricht */
@media (min-width: 901px) and (max-width: 1180px) {
  .hdr__seg { display: none; }
  .hdr__tabs { display: block; padding-bottom: 10px; }
}
@media (max-width: 900px) {
  .hdr__bar { min-height: 64px; gap: 10px; }
  .hdr__seg, .hdr__nav { display: none; }
  .hdr__menu-btn, .hdr__call { display: inline-flex; }
  .hdr__call { margin-left: auto; width: 48px; height: 48px; padding: 0; min-height: 48px; }
  .hdr__call + .hdr__menu-btn { margin-left: 0; }
  .hdr__tabs { display: block; padding-bottom: 10px; }
  .hdr__tabs .seg { display: flex; }
  .hdr__tabs .seg a { flex: 1; justify-content: center; }
  .logo img { height: 28px; }
  html { scroll-padding-top: 150px; }
}

.mnav { display: none; }
.mnav.is-open { display: block; border-top: 1px solid var(--linie); background: var(--weiss); }
.mnav a { display: block; padding: 15px var(--pad); text-decoration: none; font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 600; font-size: 1.3rem; color: var(--nacht); border-bottom: 1px solid var(--linie-2); }
.mnav a[aria-current="page"] { color: var(--akzent); box-shadow: inset 4px 0 0 var(--akzent); }
.mnav .mnav__small { font-family: var(--f); font-weight: 500; color: var(--grau); font-size: 0.95rem; padding-block: 12px; }
@media (min-width: 901px) { .mnav, .mnav.is-open { display: none; } }

/* ---------- Startseite: Hero ---------- */
/* Links Überschrift, Text und Suche; rechts das Fahrzeug mit schräger Kante und zwei Rennstreifen davor. */

.hero { padding-block: clamp(28px, 5vw, 64px); background: var(--weiss); border-bottom: 1px solid var(--linie); overflow: hidden; }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "head media" "search media"; gap: 28px clamp(24px, 4vw, 56px); align-items: center; }
.hero__head { grid-area: head; align-self: end; container-type: inline-size; min-width: 0; }
.hero--leer > .wrap { grid-template-areas: "head media"; }
.hero--leer .hero__head { align-self: center; }
.hero--leer .hero__media { min-height: 420px; }
/* Drei feste Zeilen (Vom Sportwagen / bis zum / Alltagsauto.). Die Schriftgröße folgt der Spaltenbreite (cqi),
   damit die längste Zeile immer hineinpasst – nichts wird abgeschnitten oder getrennt. */
.hero__title { color: var(--nacht); font-size: min(5rem, 11.3cqi); padding-right: 0.12em; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
.hero__title span { display: block; color: var(--akzent); }
.hero__title i { font-style: inherit; display: block; }
.hero__lead { margin: 22px 0 0; color: var(--grau); }

.hero__media { grid-area: media; position: relative; align-self: stretch; min-height: 480px; color: var(--weiss); }
.hero__media > img, .hero__media > picture > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(18% 0, 100% 0, 100% 100%, 4% 100%); background: var(--grund-2); }
.hero__media::before, .hero__media::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero__media::before { background: var(--akzent); clip-path: polygon(calc(18% - 40px) 0, calc(18% - 14px) 0, calc(4% - 14px) 100%, calc(4% - 40px) 100%); }
.hero__media::after { background: var(--nacht); clip-path: polygon(calc(18% - 58px) 0, calc(18% - 48px) 0, calc(4% - 48px) 100%, calc(4% - 58px) 100%); }
.hero__cap {
  position: absolute; right: 0; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px 12px 22px; background: var(--weiss); color: var(--nacht); text-decoration: none;
  max-width: calc(100% - 22%); box-shadow: 0 10px 28px -16px rgba(16, 27, 45, 0.6);
}
.hero__cap > span:first-child { min-width: 0; }
.hero__cap:hover .hero__cap-t { color: var(--akzent); }
.hero__cap-k { font-size: 0.82rem; color: var(--grau); display: block; }
.hero__cap-t { font-weight: 600; font-size: 1.08rem; color: var(--nacht); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__cap-p { font-size: 1.35rem; }

.hero__media--visit { background: none; }
.hero__media--visit::before, .hero__media--visit::after { display: none; }
.hero__visit { position: absolute; inset: 0; padding: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 44px) clamp(28px, 4vw, 52px) 24%; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: var(--nacht); clip-path: polygon(18% 0, 100% 0, 100% 100%, 4% 100%); }
.hero__visit h2 { position: relative; color: var(--weiss); font-size: clamp(1.9rem, 3.2vw, 2.9rem); max-width: 12em; text-wrap: balance; }
.hero__visit p { position: relative; margin: 0; max-width: 30em; color: #C3CBD8; }
.hero__visit-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__visit .btn--line { border-color: rgba(255, 255, 255, 0.7); color: var(--weiss); }
.hero__visit .btn--line:hover { background: var(--weiss); color: var(--nacht); }
.hero__media--visit .stripes-v { display: none; }

/* Suche: Karte unter der Überschrift */
.search { grid-area: search; position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: end;
  padding: 18px; background: var(--grund); border: 1px solid var(--linie); border-left: 4px solid var(--akzent); }
.search__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.search .field { margin: 0; }
.search .seg { justify-self: start; background: var(--weiss); }

@media (max-width: 1100px) {
  .search__row { grid-template-columns: 1fr 1fr; }
  .search__row .btn { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "search"; }
  .hero--leer > .wrap { grid-template-areas: "head" "media"; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__media > img, .hero__media > picture > img { clip-path: none; }
  .hero__media::before, .hero__media::after { display: none; }
  .hero__media--visit { aspect-ratio: auto; }
  .hero__visit { position: relative; clip-path: none; padding: 26px 22px; }
  .hero__cap { left: 10px; right: 10px; bottom: 10px; max-width: none; justify-content: space-between; }
  .hero__cap-k { display: none; }
}
@media (max-width: 400px) {
  .search__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .search .seg { display: flex; justify-self: stretch; }
  .search .seg label { flex: 1; }
  .search .seg label span { width: 100%; justify-content: center; }
}

/* Einmalige Einblendung der Überschrift */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title span { opacity: 0; transform: translateY(0.3em); animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .hero__title span:nth-child(2) { animation-delay: .1s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Abschnitte ---------- */

.sec { padding-block: clamp(52px, 7vw, 100px); }
.sec--white { background: var(--weiss); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.sec__head p { margin: 8px 0 0; }

/* ---------- Fahrzeugkacheln ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }

.tile { position: relative; background: var(--weiss); display: flex; flex-direction: column; border: 1px solid var(--linie); overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--akzent); transition: width .25s ease; }
.tile:hover::after { width: 100%; }
@media (prefers-reduced-motion: reduce) { .tile::after { transition: none; } }
.tile__img { position: relative; aspect-ratio: 4 / 3; background: var(--grund-2); overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tile__title { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--nacht); text-decoration: none; }
.tile__title::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.tile:hover .tile__title { color: var(--akzent); }
.tile__variant { color: var(--grau); font-size: 0.93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__facts { font-size: 0.9rem; color: var(--text); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tile__facts span { padding: 3px 8px; background: var(--grund); border-radius: 3px; }
.tile__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.tile__price { font-size: 1.25rem; margin-left: 6px; }
.tile__type { font-size: 0.85rem; color: var(--grau); }

.badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 10px; font-size: 0.82rem; font-weight: 600;
  background: var(--weiss); color: var(--nacht); border-radius: 3px;
}
.badge--res { background: var(--signal); color: var(--nacht); }
.badge--count { left: auto; right: 12px; top: auto; bottom: 12px; background: rgba(31, 35, 41, 0.86); color: var(--weiss); font-weight: 500; }

/* ---------- Einstieg Autos / Motorräder ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split__item { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) clamp(20px, 6vw, 84px); min-height: 280px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 18px 24px; text-decoration: none; background: var(--nacht); color: var(--weiss); }
.split__item + .split__item { background: var(--nacht-2); }
.split__item > div { grid-column: 1; position: relative; z-index: 1; }
.split__item h2 { margin-top: 4px; color: var(--weiss); }
.split__icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: clamp(110px, 14vw, 200px); color: rgba(255, 255, 255, 0.12); transition: transform .3s ease, color .3s; }
.split__icon svg { width: 100%; height: auto; display: block; }
.split__item:hover .split__icon { transform: translateX(10px); color: rgba(255, 255, 255, 0.22); }
.split__n { font-family: var(--fc); font-style: italic; font-stretch: 125%; font-weight: 900; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 0.85; color: var(--weiss); }
.split__item p { margin: 10px 0 0; max-width: 30em; color: #C3CBD8; }
.split__go { display: inline-flex; align-self: end; justify-self: start; position: relative; z-index: 1; }
.split__item .btn--line { border-color: rgba(255, 255, 255, 0.7); color: var(--weiss); }
.split__item:hover .btn--line { background: var(--weiss); color: var(--nacht); }
.split__item:hover .split__go.btn--primary { background: var(--akzent-2); }
@media (prefers-reduced-motion: reduce) { .split__icon { transition: none; } }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split__item { min-height: 0; } .split__icon { width: 80px; align-self: start; grid-row: 1; } }

/* ---------- Geschichte (Startseite) ---------- */

.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story__year { font-family: var(--fc); font-style: italic; font-stretch: 125%; font-weight: 900; font-size: clamp(7rem, 17vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 3px var(--nacht); background: none; border: 0; box-shadow: none; padding: 0; position: relative; }
.story__year::after { content: ""; position: absolute; left: 4%; right: 18%; bottom: -18px; height: 10px; background: linear-gradient(105deg, var(--akzent) 0 70%, transparent 70% 76%, var(--nacht) 76%); transform: skewX(-14deg); }
.story__body p { max-width: 36em; }
.story__body .t-lead { margin-top: 18px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* Eigenes Foto neben der Geschichte, „NRW“ als Schild darauf */
.story__photo { position: relative; margin: 0 0 clamp(28px, 4vw, 48px); }
.story__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linie-2); border-radius: var(--r); }
.story__photo-year { position: absolute; left: 14px; bottom: 10px; font-family: var(--fc); font-style: italic; font-stretch: 125%; font-weight: 900; font-size: clamp(3.6rem, 7vw, 5.6rem); line-height: 0.8; color: var(--weiss); text-shadow: 0 2px 18px rgba(16, 27, 45, 0.5); }
.story__photo--plain { margin: clamp(22px, 3vw, 34px) 0 0; }
.story__photo--plain img { aspect-ratio: 3 / 2; }
@media (max-width: 820px) { .story__photo img { aspect-ratio: 3 / 2; } }

/* Großes Foto (Betrieb) mit Adresse – rechte Kante schräg wie im Hero */
.rail { position: relative; margin: 0 0 clamp(28px, 4vw, 48px); }
.rail__girder { display: none; }
.rail__img img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--linie-2); clip-path: polygon(0 0, 100% 0, calc(100% - 7%) 100%, 0 100%); }
.rail__sign { position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--weiss); color: var(--nacht); font-weight: 600; font-size: 0.95rem; line-height: 1.2; border-radius: var(--r); }
.rail__sign { border-left: 4px solid var(--akzent); }
.rail__sign svg { width: 18px; height: 18px; color: var(--akzent); flex: none; }
.about-rail { margin-top: 0; }
@media (max-width: 700px) { .rail__img img { aspect-ratio: 4 / 3; } }

/* ---------- Besuch ---------- */

.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.visit > div { padding: 22px 24px; background: var(--grund); border-radius: var(--r); }
.visit h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 12px; }
.visit h3 svg { width: 22px; height: 22px; color: var(--akzent); flex: none; }
.visit p { margin: 0 0 6px; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.hours dt { color: var(--grau); }
.hours dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Bestandsliste ---------- */

.lst-head { padding-block: clamp(24px, 4vw, 44px) 20px; }
.lst-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.lst-head p { margin: 6px 0 0; }
.lst-head .crumbs { padding-top: 0; }

.lst { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 80px; }
@media (max-width: 960px) { .lst { grid-template-columns: 1fr; } }

.filters { background: var(--weiss); border: 1px solid var(--linie); padding: 20px; }
.filters h2 { font-size: 1.1rem; margin-bottom: 14px; }
.filters .field { margin-bottom: 14px; }
.filters__actions { display: grid; gap: 8px; margin-top: 6px; }
.filters__toggle { display: none; }
@media (max-width: 960px) {
  .filters { position: static; padding: 0; border: 0; background: none; }
  .filters__toggle { display: flex; width: 100%; justify-content: space-between; }
  .filters__panel { display: none; background: var(--weiss); border: 1px solid var(--linie); border-top: 0; padding: 18px; }
  .filters.is-open .filters__panel { display: block; }
  .filters__panel h2 { display: none; }
  .no-js .filters__panel { display: block; }
}

.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results__bar .field { margin: 0; display: flex; align-items: center; gap: 10px; }
.results__bar .field label { margin: 0; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--nacht); }
.chip:hover { border-color: var(--nacht); }
.chip span { font-size: 1.1em; line-height: 1; color: var(--grau); }

.rows { display: grid; gap: 14px; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; transition: border-color .15s; }
.row:hover { border-color: var(--nacht); }
.row__img { position: relative; aspect-ratio: 4 / 3; background: var(--grund-2); overflow: hidden; }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__main { padding: 18px 22px; min-width: 0; }
.row__title { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.55rem; line-height: 1.1; color: var(--nacht); text-decoration: none; }
.row__title::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.row:hover .row__title { color: var(--akzent); }
.row__variant { color: var(--grau); margin: 2px 0 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
.row__facts div { display: flex; flex-direction: column; }
.row__facts dt { font-size: 0.78rem; color: var(--grau); }
.row__facts dd { margin: 0; font-weight: 600; font-size: 0.97rem; }
.row__side { padding: 18px 22px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; border-left: 1px solid var(--linie-2); min-width: 190px; }
.row__price { font-size: 1.4rem; }
.row__vat { font-size: 0.8rem; color: var(--grau); max-width: 16em; }
.row__cta { font-weight: 600; color: var(--akzent); font-size: 0.95rem; }

@media (max-width: 1180px) {
  .row { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .row__side { grid-column: 2; border-left: 0; flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; text-align: left; min-width: 0; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .row__side { grid-column: 1; }
  .row__variant { white-space: normal; }
}

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--weiss); border: 1px solid var(--linie); text-decoration: none; font-weight: 700; color: var(--nacht); border-radius: var(--r-ctrl); }
.pager a:hover { border-color: var(--nacht); }
.pager [aria-current="page"] { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.pager svg { width: 18px; height: 18px; }
.pager .is-gap { border: 0; background: none; }

.empty { background: var(--weiss); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--linie); border-radius: var(--r); }
.empty h2 { margin-bottom: 10px; }
.empty p { max-width: 36em; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Fahrzeugdetail ---------- */

.crumbs { padding-block: 18px 12px; font-size: 0.93rem; color: var(--grau); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--grau); }
.crumbs a { color: var(--akzent); font-weight: 500; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.notice { padding: 14px 18px; margin-bottom: 18px; font-weight: 500; border-left: 4px solid var(--akzent); background: var(--weiss); border-radius: 0 var(--r) var(--r) 0; }
.notice--warn { border-left-color: var(--signal); background: var(--signal-hell); }
.notice--sold { border-left-color: var(--rot); }

/* Verkauftes Fahrzeug: zuerst die Alternativen, darunter das Original zum Nachsehen */
.soldnext { margin: 0 0 clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); }
.soldnext__head { max-width: 62ch; margin-bottom: clamp(18px, 2.4vw, 28px); }
.soldnext__head p { margin: 8px 0 0; color: var(--grau); }
.soldnext__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: clamp(18px, 2.4vw, 28px) 0 0; }
.soldnext__was { margin: clamp(28px, 4vw, 44px) 0 0; padding-top: 18px; border-top: 1px solid var(--linie); font-size: 1rem; font-weight: 600; color: var(--grau); }
.notice--ok { border-left-color: var(--gruen); }
.notice--error { border-left-color: var(--rot); color: var(--rot); }

.veh { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "gal buy" "info buy"; column-gap: clamp(20px, 3vw, 40px); align-items: start; }
.veh__gal { grid-area: gal; min-width: 0; }
.veh__info { grid-area: info; min-width: 0; }
.veh > .buy { grid-area: buy; }
@media (max-width: 1080px) { .veh { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 900px) { .veh { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gal" "buy" "info"; } .veh > .buy { margin-top: 20px; } }

.gal { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.gal__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grund); touch-action: pan-y; }
.gal__stage img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gal__stage .gal__ph { object-fit: cover; cursor: default; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, 0.95); color: var(--nacht); box-shadow: 0 2px 8px rgba(31, 35, 41, 0.18);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.gal__nav:hover { background: var(--akzent); color: var(--weiss); }
.gal__nav svg { width: 22px; height: 22px; }
.gal__nav--prev { left: 14px; }
.gal__nav--next { right: 14px; }
.gal__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; background: rgba(31, 35, 41, 0.86); color: var(--weiss); font-size: 0.9rem; font-weight: 600; border-radius: 4px; }
.gal__zoom { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.gal__zoom.btn { min-height: 40px; background: rgba(255, 255, 255, 0.94); color: var(--nacht); }
.gal__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.gal__thumbs a { flex: none; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.6; scroll-snap-align: start; }
.gal__thumbs a img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs a:hover { opacity: 1; }
.gal__thumbs a[aria-current="true"] { border-color: var(--akzent); opacity: 1; }
.no-js .gal__nav, .no-js .gal__zoom { display: none; }
@media (max-width: 620px) {
  .gal__nav { width: 44px; height: 44px; }
  .gal__thumbs a { width: 76px; }
}

.buy { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); }
.buy__in { padding: 22px 24px 24px; }
.buy__type { font-size: 0.9rem; color: var(--grau); margin: 0 0 6px; }
.buy h1 { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1; }
.buy__variant { color: var(--grau); margin: 8px 0 0; }
.buy__price { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--linie-2); }
.buy__amount { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-left: 6px; }
.buy__amount small { font-size: 0.42em; font-weight: 600; margin-left: 8px; color: #FFE1E6; }
.buy__vat { font-size: 0.85rem; color: var(--grau); margin-top: 6px; }
.buy__status { display: inline-block; margin-top: 12px; padding: 4px 10px; font-size: 0.85rem; font-weight: 600; border-radius: 3px; background: var(--signal); color: var(--nacht); }
.buy__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linie-2); margin: 20px 0; border: 1px solid var(--linie-2); border-radius: var(--r); overflow: hidden; }
.buy__facts div { background: var(--weiss); padding: 10px 12px; }
.buy__facts dt { font-size: 0.78rem; color: var(--grau); }
.buy__facts dd { margin: 0; font-weight: 600; font-size: 0.98rem; }
.buy__facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.buy__cta { display: grid; gap: 10px; }
.buy__meta { margin: 16px 0 0; font-size: 0.85rem; color: var(--grau); }
@media (max-width: 900px) { .buy { position: static; } }

.vsec { background: var(--weiss); padding: clamp(22px, 3vw, 32px); margin-top: 20px; border: 1px solid var(--linie); border-radius: var(--r); }
.vsec h2 { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.75rem; margin-bottom: 18px; }
.vsec h3 { font-size: 1rem; margin: 22px 0 10px; color: var(--grau); font-weight: 600; }
.vsec h3:first-of-type { margin-top: 0; }

.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); }
.specs dt { color: var(--grau); }
.specs dd { margin: 0; font-weight: 600; }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr; } }

.feat { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 28px; }
.feat li { break-inside: avoid; padding: 6px 0 6px 26px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 7px; border-left: 2.5px solid var(--akzent); border-bottom: 2.5px solid var(--akzent); transform: rotate(-45deg); }

.desc { max-width: 70ch; }
.desc p:last-child { margin-bottom: 0; }

.legalnote { font-size: 0.85rem; color: var(--grau); margin-top: 14px; }

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

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: 0.93rem; color: var(--nacht); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--weiss); border: 1px solid #A9B2BE; border-radius: var(--r-ctrl);
  font-size: 1rem;
}
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231F2329' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grau); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(27, 63, 160, 0.22); }
.field [aria-invalid="true"] { border-color: var(--rot); }
.field .err, .err { color: var(--rot); font-size: 0.88rem; font-weight: 600; }
.field .hint { font-size: 0.85rem; color: var(--grau); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--row .field { margin: 0; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; cursor: pointer; }
.field .check { font-weight: 400; color: var(--text); font-size: 0.93rem; }
.form-hint { margin: 6px 0 16px; font-size: 0.85rem; color: var(--grau); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--akzent); }
.field .check input { min-height: 0; padding: 0; height: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.inq { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 48px); }
.inq__intro p { max-width: 30em; }
.inq__direct { display: grid; gap: 10px; margin-top: 18px; justify-items: start; }
@media (max-width: 820px) { .inq { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */

.lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; background: #101317; display: none; flex-direction: column; color: var(--weiss); }
.lb.is-open { display: flex; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lb__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--weiss); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lb__close:hover { background: var(--akzent); color: var(--weiss); }
.lb__close svg { width: 22px; height: 22px; }
.lb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px 12px; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb .gal__nav { background: rgba(255, 255, 255, 0.12); color: var(--weiss); box-shadow: none; }
.lb .gal__nav:hover { background: var(--akzent); color: var(--weiss); }
.lb__count { text-align: center; padding: 0 0 16px; font-size: 0.95rem; opacity: 0.85; }
@media (max-width: 700px) { .lb__stage { padding: 0 0 8px; } .lb .gal__nav { top: auto; bottom: 8px; transform: none; } }
body.lb-open { overflow: hidden; }

/* ---------- Über uns ---------- */

.about-hero { padding-block: clamp(32px, 6vw, 80px) clamp(32px, 5vw, 64px); background: var(--weiss); }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.about-hero h1 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
.about-hero .t-lead { margin-top: 24px; }
.about-hero__quote { margin: 0; padding: 24px 26px; background: var(--nacht); color: var(--weiss); border-left: 6px solid var(--akzent); font-family: var(--fc); font-style: italic; font-stretch: 108%; font-weight: 600; font-size: 1.4rem; line-height: 1.3; }
.about-hero__quote p { color: var(--weiss); }
.about-hero__quote footer { margin-top: 12px; font-family: var(--f); font-style: normal; font-weight: 500; font-size: 0.95rem; color: #AEB8C8; }
@media (max-width: 860px) { .about-hero__grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(11rem + 23px); top: 10px; bottom: 10px; width: 2px; background: var(--linie); }
.timeline li { display: grid; grid-template-columns: 11rem 48px minmax(0, 1fr); gap: 0; padding-bottom: clamp(28px, 4vw, 44px); position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__year { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--akzent); line-height: 1; text-align: right; padding-right: 12px; }
.timeline__dot { position: relative; }
.timeline__dot::before { content: ""; position: absolute; left: 14px; top: 4px; width: 20px; height: 14px; background: var(--akzent); transform: skewX(-14deg); }
.timeline__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline__body p { max-width: 40em; margin: 0; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 36px; }
  .timeline__year { text-align: left; font-size: 1.8rem; margin-bottom: 6px; }
  .timeline__dot { position: absolute; left: 0; top: 0; }
  .timeline__dot::before { left: 0; top: 4px; }
}

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.values article { padding: 22px 24px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); }
.values h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 10px; }
.values h3 svg { width: 24px; height: 24px; color: var(--akzent); flex: none; }
.values p { margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

.band { background: var(--akzent); color: var(--weiss); background-image: linear-gradient(105deg, transparent 0 74%, rgba(16, 27, 45, 0.25) 74% 80%, transparent 80% 82%, rgba(16, 27, 45, 0.25) 82% 84%, transparent 84%); }
.band h2 { color: var(--weiss); }
.band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: clamp(36px, 5vw, 56px); }
.band p { margin: 8px 0 0; color: #FFE1E6; max-width: 34em; }
.band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.band .btn--line { border-color: var(--weiss); color: var(--weiss); }
.band .btn--line:hover { background: var(--weiss); color: var(--akzent); }
.band .btn--primary { background: var(--weiss); color: var(--akzent); }
.band .btn--primary:hover { background: var(--akzent-hell); }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 80px; align-items: start; }
.contact__info { display: grid; gap: 28px; }
.contact__info h2 { font-size: 1.1rem; margin-bottom: 8px; }
.contact__info p { margin: 0; }
.contact__info p + p, .contact__big + p { margin-top: 8px; }
.contact__form > .t-muted { margin: 8px 0 22px; }
.contact__big { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--akzent); text-decoration: none; overflow-wrap: anywhere; }
.contact__big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact__form { background: var(--weiss); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--linie); border-radius: var(--r); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

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

.legal { max-width: 760px; padding-bottom: 80px; }
.legal h1 { margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { color: var(--akzent); font-weight: 600; }
.legal .missing { background: var(--signal-hell); padding: 1px 6px; }

/* ---------- Fußbereich ---------- */

.ftr { position: relative; background: var(--nacht); color: #C3CBD8; margin-top: 0; }
.ftr::before { content: ""; display: block; height: 10px; background: linear-gradient(105deg, var(--akzent) 0 70%, var(--weiss) 70% 71.2%, var(--nacht-2) 71.2%); }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.ftr h2 { color: var(--weiss); font-size: 1.35rem; margin-bottom: 12px; }
.ftr p { margin: 0 0 6px; }
.ftr a { color: var(--weiss); text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; color: var(--weiss); }
.ftr .logo { margin-bottom: 16px; }
.ftr .logo img { height: 40px; }
.ftr__consign { margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--akzent); color: var(--weiss); font-weight: 600; }
.ftr .hours { grid-template-columns: 1fr; gap: 0; }
.ftr .hours dt { color: #A9B1BC; }
.ftr .hours dd { margin-bottom: 8px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr__base { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }
.ftr__base nav { display: flex; gap: 18px; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(48px, 10vw, 120px); }
.nf p { max-width: 34em; }

.print-head { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .hdr, .ftr, .topline, .skip, .crumbs, .gal__thumbs, .gal__nav, .gal__zoom, .gal__count, .buy__cta, .buy__dep, .inq, .filters, .lb, .soldnext .tiles, .soldnext__more, .veh ~ .sec, main > .sec[aria-labelledby="sim-h"] { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid #D01F3A; font-size: 9pt; color: #5B6676; text-align: right; }
  .print-head img { width: 180px; height: auto; }
  .veh { grid-template-columns: minmax(0, 1fr) 62mm !important; grid-template-areas: "gal buy" "info info" !important; column-gap: 8mm; }
  .gal, .gal__stage { background: #fff !important; }
  .buy { position: static !important; border: 1px solid #C9D0CC; }
  .vsec { box-shadow: none; padding: 4mm 0 !important; margin: 0 !important; background: none !important; }
  .vsec h2 { break-after: avoid; }
  .veh__info { margin-top: 6mm; }
  .specs > div, .feat li { break-inside: avoid; }
  a { text-decoration: none; }
}

/* ---------- Verkauf im Kundenauftrag ---------- */
.consign__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.consign__grid .t-lead { margin-top: 18px; }
.consign__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.consign__steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--linie); }
.consign__n { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--akzent); color: var(--weiss); border-radius: 50%; font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.4rem; }
.consign__steps h3 { margin: 0 0 4px; font-size: 1.08rem; color: var(--nacht); }
.consign__steps p { margin: 0; color: var(--grau); }
@media (max-width: 820px) { .consign__grid { grid-template-columns: 1fr; } }

/* ---------- Kaufpanel: Kaufen / Reservieren ---------- */
.buy__dep { margin: -2px 0 4px; font-size: 0.85rem; color: var(--grau); text-align: center; }
.buy__consign { margin: 14px 0 0; padding-left: 10px; border-left: 3px solid var(--akzent); font-size: 0.88rem; font-weight: 600; color: var(--nacht); }

/* ---------- Kaufen / Reservieren: Formularseite ---------- */
.ord-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin: 6px 0 24px; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.ord__form { background: var(--weiss); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--linie); border-radius: var(--r); }
.ord__form h2 { margin: 0 0 18px; color: var(--nacht); }
.field--zip { grid-template-columns: 140px minmax(0, 1fr); }
.ord__confirm { margin: 8px 0 22px; padding: 18px 18px 4px; background: var(--signal-hell); border-left: 4px solid var(--signal); }
.ord__confirm .check { font-size: 0.97rem; }
.ord__form .legalnote { margin-top: 14px; }
.ord__sum { display: grid; gap: 16px; }
.ord__card { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.ord__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ord__card-body { padding: 18px 20px 20px; }
.ord__card h2 { margin: 2px 0 0; font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.35rem; color: var(--nacht); line-height: 1.15; }
.ord__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); font-size: 0.9rem; }
.ord__facts dt { color: var(--grau); font-size: 0.8rem; }
.ord__facts dd { margin: 0; font-weight: 600; }
.ord__price { margin: 0 0 8px; display: grid; gap: 6px; }
.ord__price div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ord__price dt { color: var(--grau); }
.ord__price dd { margin: 0; font-weight: 700; color: var(--nacht); white-space: nowrap; }
.ord__price div:first-child dd { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.5rem; }
.ord__price .is-hl { padding: 8px 10px; margin: 2px -10px; background: var(--akzent-hell); border-left: 3px solid var(--akzent); }
.ord__price .is-hl dt { color: var(--nacht); font-weight: 600; }
.ord__steps { list-style: none; counter-reset: st; margin: 0; padding: 18px 20px; background: var(--weiss); display: grid; gap: 14px; }
.ord__steps li { counter-increment: st; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; font-size: 0.92rem; }
.ord__steps li::before { content: counter(st); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--akzent); color: var(--weiss); border-radius: 50%; font-weight: 600; font-size: 0.85rem; }
.ord__steps strong { color: var(--nacht); }
.ord__steps span { color: var(--grau); }
@media (max-width: 960px) { .ord { grid-template-columns: minmax(0, 1fr); } .ord__sum { order: -1; } .ord__card { display: grid; grid-template-columns: 140px minmax(0, 1fr); } .ord__card img { height: 100%; aspect-ratio: auto; } .ord__steps { display: none; } }
@media (max-width: 520px) { .ord__card { grid-template-columns: 1fr; } .ord__card img { max-height: 200px; } .field--zip { grid-template-columns: 110px minmax(0, 1fr); } }

.ord-done { max-width: 760px; margin: 12px 0 clamp(56px, 8vw, 110px); padding: clamp(24px, 4vw, 48px); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); }
.ord-done__mark { width: 56px; height: 56px; margin-bottom: 18px; background: var(--gruen); border-radius: 50%; -webkit-mask: none; position: relative; }
.ord-done__mark::after { content: ""; position: absolute; left: 20px; top: 12px; width: 14px; height: 26px; border: solid var(--weiss); border-width: 0 5px 5px 0; transform: rotate(45deg); }
.ord-done .t-lead { margin: 14px 0 10px; }

.ord__form .field--row { margin-bottom: 18px; }
.ord__form .field--row .field { margin-bottom: 0; }

/* ---------- Hinweise im Kauf-/Reservierungsformular ---------- */
.ord__info { display: grid; gap: 10px; margin: 4px 0 18px; }
.ord__info p { margin: 0; padding: 12px 14px; background: var(--grund); border-left: 4px solid var(--nacht); font-size: 0.92rem; }
.ord__info p:first-child:not(:only-child) { border-left-color: var(--signal); }

/* ---------- Persönliche Auftragsseite ---------- */
.auf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin: 12px 0 clamp(56px, 8vw, 110px); }
.auf .ord-done { max-width: none; margin: 0; }
.auf__sum { margin: 22px 0; display: grid; border-top: 2px solid var(--nacht); }
.auf__sum div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.auf__sum dt { color: var(--grau); flex: none; }
.auf__sum dd { margin: 0; font-weight: 600; text-align: right; }
.auf__sum .is-hl { padding: 10px 12px; margin: 0 -12px; background: var(--akzent-hell); border-bottom-color: var(--akzent-hell); }
.auf__sum .is-hl dt { color: var(--nacht); font-weight: 600; }
.auf__note { margin: 0 0 12px; padding: 14px 16px; background: var(--grund); border-left: 4px solid var(--nacht); font-size: 0.95rem; }
.auf__note--refund { background: var(--signal-hell); border-left-color: var(--signal); }
.auf__note:last-child { margin-bottom: 0; }
.auf__termin { padding: clamp(20px, 3vw, 32px); background: var(--nacht); color: var(--weiss); border-radius: var(--r); }
.auf__termin h2 { color: var(--weiss); margin-bottom: 12px; }
.auf__termin p { color: #C7CDD6; }
.auf__termin a:not(.btn) { color: var(--signal); }
.auf__termin .link { color: var(--signal); }
.auf__termin .field label { color: var(--weiss); }
.auf__termin .field .err { color: #FFB4A9; }
.auf__termin .legalnote { color: #A9B1BC; }
.auf__form { margin-top: 18px; }
.auf__form .btn { width: 100%; }
.auf__termin .btn--line { color: var(--weiss); border-color: rgba(255, 255, 255, 0.6); }
.auf__termin .btn--line:hover { background: var(--weiss); color: var(--nacht); }
.auf__termin .btn--dark { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.auf__date { display: grid; gap: 2px; margin: 8px 0 16px; padding: 16px 18px; background: var(--weiss); color: var(--nacht); border-left: 6px solid var(--akzent); border-radius: 0 var(--r) var(--r) 0; }
.auf__date-k { font-size: 0.85rem; color: var(--grau); font-weight: 600; }
.auf__date strong { font-family: var(--fc); font-style: italic; font-stretch: 112%; font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.auf__date span:last-child { font-weight: 700; font-size: 1.15rem; }
.auf__keep { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; }
@media (max-width: 960px) { .auf { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Muster-Widerrufsformular ---------- */
.legal-form { margin-top: 12px; padding: 20px 22px; background: var(--weiss); border: 1px dashed var(--grau); }
.legal-form__line { padding-bottom: 22px; border-bottom: 1px solid var(--linie); }
.auf__termin select, .auf__termin input { color: var(--text); }
.auf__termin select:disabled { color: var(--grau); }
.auf__termin .notice { color: var(--nacht); font-weight: 600; }
.auf__termin .notice--error { color: var(--rot); }
.t-h1, .t-h2, .t-display { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 420px) { .legal h1 { font-size: 1.9rem; } }

/* ---------- Mitlaufende Seitenleisten: nur wenn sie ganz auf den Bildschirm passen (per Skript) ---------- */
.is-sticky { position: -webkit-sticky; position: sticky; top: var(--sticky-top, 96px); }

/* ---------- Kleine Bildschirme und Querformat ---------- */
/* Handy quer / sehr niedrige Fenster: Kopfbereich scrollt mit, damit genug Platz bleibt */
@media (max-height: 520px) {
  .hdr { position: relative; }
  .hdr__tabs { display: none; }
}
.mnav.is-open { max-height: calc(100vh - 70px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@supports (height: 100dvh) { .mnav.is-open { max-height: calc(100dvh - 70px); } }

/* Sehr schmale Geräte (z. B. iPhone SE 1. Generation, kleine Android-Geräte) */
@media (max-width: 359px) {
  :root { --pad: 12px; }
  .logo__txt { display: none; }
  .seg a, .seg--form label span { padding-left: 10px; padding-right: 10px; }
  .btn { padding-left: 14px; padding-right: 14px; }
  .buy__facts, .ord__facts { grid-template-columns: 1fr; }
  .field--zip { grid-template-columns: 1fr; }
  .gal__thumbs a { width: 64px; }
}

/* Ältere Browser ohne aspect-ratio (iOS vor 15, ältere Android-Browser) */
@supports not (aspect-ratio: 1 / 1) {
  .tile__img, .row__img, .gal__stage { height: 0; padding-top: 75%; }
  .tile__img > img, .row__img > img, .gal__stage > img, .tile__img > picture > img, .row__img > picture > img, .gal__stage > picture > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .gal__thumbs a { height: 78px; }
  .ord__card img { height: 220px; }
  @media (max-width: 960px) { .hero__media:not(.hero__media--visit) { height: 0; padding-top: 75%; } }
}

/* Keine Hover-Effekte, die auf Touchgeräten „hängen bleiben“ */
@media (hover: none) {
  .filters__toggle:hover { background: transparent; color: var(--nacht); }
}
.ftr__base nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr__base { flex-wrap: wrap; }
/* Lange Wörter in Datenlisten umbrechen statt die Seite zu verbreitern */
.buy__facts dd, .ord__facts dd, .row__facts dd, .auf__sum dd, .hours dd, .legal, .contact__info { overflow-wrap: anywhere; min-width: 0; }
.specs > div { min-width: 0; }
@media (max-width: 400px) {
  .specs > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; }
}
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 359px) { .vsec h2 { font-size: 1.3rem; } }

/* Anrede im Kauf-/Reservierungsformular */
.field--short select { max-width: 240px; }
.field label .opt { font-weight: 400; color: var(--grau); }

/* ---------- Fahrzeug verkaufen ---------- */
.sell { padding-bottom: clamp(48px, 7vw, 96px); }
.sell-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin: 8px 0 clamp(28px, 4vw, 44px); }
.sell-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sell-benefits li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); }
.sell-benefits strong { color: var(--nacht); font-size: 1.05rem; }
.sell-benefits span { font-size: 0.95rem; }
.sell-steps { list-style: none; margin: 0; padding: 18px 20px; background: var(--nacht); color: var(--weiss); display: flex; flex-direction: column; gap: 12px; justify-content: center; border-radius: var(--r); }
.sell-steps li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.sell-steps b { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; background: var(--akzent); color: var(--weiss); border-radius: 50%; font-weight: 600; }
.sell-form { max-width: 980px; }
.sell-sec { margin: 0 0 18px; padding: clamp(16px, 2.5vw, 26px); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); min-width: 0; }
.sell-sec legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.15rem; color: var(--nacht); display: flex; align-items: center; gap: 10px; }
.sell-sec legend + * { clear: both; }
.sell-sec legend > span:first-child { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: var(--akzent); color: var(--weiss); border-radius: 50%; font-size: 0.95rem; flex: none; }
.sell-sec--doc { border-color: var(--akzent); }
.sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; }
.sell .field small { font-weight: 500; color: var(--grau); }
.req { color: var(--rot); font-weight: 700; }
.unit { display: flex; align-items: stretch; }
.unit input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.unit span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--linie); border-left: 0; background: var(--grund); font-weight: 600; color: var(--grau); }
.form-hint-inline { font-size: 0.85rem; color: var(--grau); }
.sell-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.sell-type label { position: relative; cursor: pointer; }
.sell-type input { position: absolute; opacity: 0; }
.sell-type span { display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px solid var(--linie); background: var(--weiss); font-weight: 700; font-size: 1.15rem; color: var(--nacht); }
.sell-type input:checked + span { border-color: var(--akzent); background: var(--akzent); color: var(--weiss); }
.sell-type input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.sell-radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.check--sm { font-size: 0.9rem; gap: 8px; }
.check--sm input { width: 18px; height: 18px; }
.sell-feat details { border-bottom: 1px solid var(--linie-2); padding: 8px 0; }
.sell-feat summary { cursor: pointer; font-weight: 600; color: var(--nacht); }
.sell-feat__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; padding: 10px 0 4px; }
.sell-tip { margin: 0 0 12px; font-size: 0.95rem; }
.sell-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px; border: 2px dashed var(--linie); background: var(--grund); cursor: pointer; text-align: center; }
.sell-drop.is-over { border-color: var(--nacht); background: var(--akzent-hell); }
.sell-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sell-drop strong { color: var(--nacht); font-size: 1.05rem; }
.sell-drop span { font-size: 0.9rem; color: var(--grau); }
.sell-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.sell-previews figure { position: relative; margin: 0; background: var(--grund); }
.sell-previews img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sell-previews__pdf { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; font-weight: 700; color: var(--rot); }
.sell-previews figcaption { padding: 4px 6px; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sell-previews__rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(31, 35, 41, 0.86); color: #fff; font-size: 1.1rem; cursor: pointer; }
.sell-previews__count { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: var(--grau); }
.sell-vin input { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.sell-vin input::placeholder { font-family: var(--f); letter-spacing: 0; text-transform: none; }
.sell-vin__status { font-size: 0.85rem; font-weight: 600; }
.sell-vin__status.is-ok { color: var(--gruen); }
.sell-vin__status.is-bad { color: var(--rot); }
.sell-vin__status.is-info { color: var(--grau); }
.sell-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.sell-submit .btn { min-width: 280px; }
.sell-progress { font-weight: 600; color: var(--nacht); }
.sell-done { max-width: 760px; padding: clamp(20px, 3vw, 32px); background: var(--weiss); border-left: 5px solid var(--gruen); }
.sell-done h2 { margin-top: 0; color: var(--nacht); }
.consign__sell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 22px; padding: 16px 18px; background: var(--grund); border-left: 4px solid var(--akzent); }
.consign__sell strong { color: var(--nacht); }
.consign__sell .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .sell-intro { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sell-benefits { grid-template-columns: 1fr; }
  .sell-submit .btn { width: 100%; min-width: 0; }
}
.sell [hidden] { display: none !important; }

/* Sprachumschalter */
.lang-sw { display: inline-flex; border: 1px solid var(--linie); border-radius: var(--r-ctrl); overflow: hidden; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-left: 8px; }
.lang-sw a { padding: 6px 9px; color: var(--grau); text-decoration: none; }
.lang-sw a[aria-current] { background: var(--nacht); color: var(--weiss); }
.lang-sw a:not([aria-current]):hover { color: var(--nacht); background: var(--grund); }
.mnav__lang { padding: 14px 0 4px; }
.desc-lang, .legal-note { margin: 0 0 14px; padding: 10px 14px; background: var(--grund); border-left: 4px solid var(--nacht-2); font-size: 0.93rem; }

/* Terminbuchung: Abstand zwischen Auswahl und Knopf */
.auf__form > .btn { margin-top: 14px; }

/* ---------- Finanzierung ---------- */
.sell-grid__wide { grid-column: 1 / -1; }
.fin-need { max-width: 980px; margin: 0 0 22px; padding: clamp(16px, 2.5vw, 24px); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); }
.fin-need h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--nacht); }
.fin-need ul { margin: 0 0 10px; padding-left: 1.2em; display: grid; gap: 6px; }
.fin-need p { margin: 0; color: var(--grau); font-size: 0.95rem; }
.fin-veh { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; margin: 0 0 16px; padding: 12px 14px; background: var(--grund); }
.fin-veh small { display: block; font-size: 0.8rem; color: var(--grau); }
.fin-veh strong { font-size: 1.05rem; color: var(--nacht); }
.fin-veh .link { margin-left: auto; font-size: 0.92rem; }
.fin-amount { margin: 10px 0 0; font-weight: 700; color: var(--nacht); }
.fin-amount:empty { display: none; }
.fin-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
@media (max-width: 760px) { .fin-docs { grid-template-columns: 1fr; } }
.fin-doc { min-width: 0; }
.fin-doc h3 { margin: 0 0 2px; font-size: 1rem; color: var(--nacht); }
.fin-doc > p { margin: 0 0 8px; font-size: 0.9rem; color: var(--grau); }
.fin-doc .sell-drop { min-height: 96px; }
.fin-idnote { margin: 16px 0 0; font-size: 0.9rem; }
[data-fin-only][hidden] { display: none !important; }

/* Finanzierung: Fahrzeug-Vorschläge */
.fin-combo__box { position: relative; }
.fin-combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 4px 0; list-style: none; max-height: 340px; overflow-y: auto; background: #fff; border: 1px solid var(--grau); box-shadow: 0 10px 24px rgba(31, 35, 41, 0.14); }
.fin-combo__opt { display: flex; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; }
.fin-combo__opt img { flex: none; width: 64px; height: 48px; object-fit: cover; background: var(--grund); }
.fin-combo__txt { flex: 1; min-width: 0; }
.fin-combo__txt strong { display: block; color: var(--nacht); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-combo__txt small { color: var(--grau); font-size: 0.82rem; }
.fin-combo__price { flex: none; font-weight: 700; color: var(--nacht); white-space: nowrap; }
.fin-combo__opt:hover, .fin-combo__opt[aria-selected="true"] { background: var(--grund); }
.fin-combo__opt[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--nacht); }
.field input[readonly] { background: var(--grund); }
@media (max-width: 560px) { .fin-combo__opt { gap: 10px; padding: 8px 10px; } .fin-combo__opt img { width: 48px; height: 36px; } .fin-combo__txt strong { white-space: normal; line-height: 1.25; } .fin-combo__price { font-size: 0.9rem; } }

/* Formular wird gesendet */
button.is-sending { cursor: progress; opacity: 0.75; }

/* Zahlungsbeleg hochladen (persönlicher Link) */
.rcpt { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.rcpt__head { max-width: 760px; }
.rcpt__ref { margin: 0 0 6px; font-weight: 700; color: var(--grau); }
.rcpt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 48px); margin-top: 28px; align-items: start; }
.rcpt__pay, .rcpt__up { background: var(--weiss); padding: clamp(18px, 3vw, 28px); border: 1px solid var(--linie); border-radius: var(--r); }
.rcpt__up { border-top: 3px solid var(--akzent); }
.rcpt__iban { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; font-weight: 700; }
.rcpt__small { font-size: 0.88rem; color: var(--grau); }
.rcpt__form { display: grid; gap: 16px; margin-top: 8px; }
.rcpt__kind { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.rcpt__kind legend { font-weight: 700; margin-bottom: 8px; color: var(--nacht); }
.rcpt__pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border: 2px dashed var(--linie); background: var(--grund); cursor: pointer; }
.rcpt__pick:hover { border-color: var(--nacht); }
.rcpt__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rcpt__pick:focus-within { outline: 3px solid var(--akzent); outline-offset: 2px; }
.rcpt__pick-btn { padding: 8px 14px; background: var(--akzent); color: var(--weiss); font-weight: 600; border-radius: var(--r-ctrl); }
.rcpt__pick-sel { color: var(--grau); font-size: 0.92rem; overflow-wrap: anywhere; }
.rcpt__form .form-hint { margin-bottom: 0; }
.rcpt__form .label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--nacht); }
.rcpt__form .btn { justify-self: start; }
.rcpt__got { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linie); }
.rcpt__got h3 { font-size: 1rem; margin: 0 0 8px; color: var(--nacht); }
.rcpt__got ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rcpt__got li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; overflow-wrap: anywhere; }
.rcpt__got li span { font-size: 0.78rem; font-weight: 700; padding: 1px 8px; background: var(--grund); color: var(--nacht); }
.rcpt__got li small { color: var(--grau); }
.rcpt__alt { margin-top: 22px; }
@media (max-width: 860px) { .rcpt__grid { grid-template-columns: 1fr; } .rcpt__up { order: -1; } }
.auf__pay { margin: 22px 0; padding: 16px 18px; background: var(--grund); border-left: 4px solid var(--akzent); }
.auf__pay h2 { margin: 0 0 6px; }
.auf__pay p:last-child { margin-bottom: 0; }

.nf__code { margin-top: 28px; font-size: 0.8rem; color: var(--grau); overflow-wrap: anywhere; }
.specs dt, .specs dd { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* ---------- Handy: Tippflächen mindestens 44 px hoch ---------- */
@media (max-width: 760px), (pointer: coarse) {
  .logo { min-height: 44px; }
  .ftr ul { gap: 0; }
  .ftr ul a, .ftr p > a:only-child, .ftr__base nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr__base nav { gap: 0 20px; }
  .check { padding-block: 10px; }
  .check--sm { padding-block: 8px; }
  .check input { width: 24px; height: 24px; }
  .chip { min-height: 44px; }
  .sec__head .link, p > .link:only-child, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .tile__title { padding-block: 6px; }
  .crumbs { padding-block: 6px 2px; }
}
