/* Fahrzeug-Galerie · öffentliche Seiten (Galerie, Home, Legal, 404)
   Redesign 2026 — cinematic, engineering-honest single-car showcase.
   Zwei Typo-Stimmen: „Display" (fette Grotesk) + „Instrument" (DIN, tabellarische Ziffern).
   Struktur-Neutralfarben cool/graphit; Akzent (--accent) bleibt pro Fahrzeug konfigurierbar. */

:root {
  /* Akzent wird pro Seite inline gesetzt; hier nur Fallback */
  --accent: #C9A24B;
  --accent-dark: #E7C87A;
  --accent-eff: var(--accent);
  --on-accent: #1a1305;             /* Text auf Akzentflächen */

  /* Light = kühles „Showroom"-Grau (bewusst KEIN Creme) */
  --bg: #eceef1;
  --bg-2: #e3e6ea;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --ink: #14171c;
  --ink-2: #3c434d;
  --muted: #565e6a;              /* AA-tauglich auf hellem --bg (#eceef1) */
  --line: rgba(16, 22, 34, .12);
  --hair: rgba(16, 22, 34, .07);
  --shadow: 0 1px 2px rgba(16,22,34,.06), 0 20px 40px -22px rgba(16,22,34,.28);
  --shadow-sm: 0 1px 2px rgba(16,22,34,.06), 0 6px 16px -10px rgba(16,22,34,.25);

  /* „Bühne" — feste dunkle Flächen (Hero-Scrim, Instrumenten-Band, Lightbox),
     unabhängig vom Theme, damit Fotos immer cinematisch sitzen. */
  --stage: #0b0d10;
  --stage-2: #14171c;
  --on-stage: #f2f4f7;
  --on-stage-mut: #99a1ad;
  --stage-line: rgba(255,255,255,.12);

  --r: 16px;
  --r-sm: 11px;
  --r-lg: 22px;
  --pill: 999px;
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 40px);

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  /* DIN-ähnliche, technische Schrift: Bahnschrift (Windows), DIN Alternate/Condensed (macOS/iOS),
     danach generische Fallbacks — alles offline, keine Web-Fonts. */
  --font-din: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Oswald", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  --accent-eff: var(--accent-dark);
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --ink: #eef1f5;
  --ink-2: #c3cad3;
  --muted: #9aa3af;
  --line: rgba(255,255,255,.11);
  --hair: rgba(255,255,255,.07);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 26px 54px -22px rgba(0,0,0,.72);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 10px 22px -12px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-eff: var(--accent-dark);
    --bg: #0b0d10;
    --bg-2: #0f1216;
    --surface: #14171c;
    --surface-2: #1b1f26;
    --ink: #eef1f5;
    --ink-2: #c3cad3;
    --muted: #9aa3af;
    --line: rgba(255,255,255,.11);
    --hair: rgba(255,255,255,.07);
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 26px 54px -22px rgba(0,0,0,.72);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 10px 22px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-eff); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-eff); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Eyebrow / Labels / Ziffern — die „Instrument"-Stimme */
.eyebrow {
  font-family: var(--font-din);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
}
.num { font-family: var(--font-din); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

/* ============================================================= Theme toggle
   Schwebt oben rechts über dem Hero (kein Header, kein Markenname). */
.theme-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 60;
  width: 44px; height: 44px; border-radius: var(--pill); cursor: pointer;
  display: grid; place-items: center; font-size: 1.05rem;
  color: #fff; background: rgba(10,12,16,.42);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); background: rgba(10,12,16,.6); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: inline; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: none; }
}

.preview-bar {
  position: relative; z-index: 55;
  background: var(--accent-eff); color: var(--on-accent);
  text-align: center; padding: 9px 16px; font-weight: 700; font-size: .88rem;
  font-family: var(--font-din); letter-spacing: .04em;
}

/* ==================================================================== Hero */
.hero { position: relative; width: 100%; background: var(--stage); overflow: hidden; isolation: isolate; }
.hero-media {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; cursor: zoom-in;
  background: var(--stage); position: relative;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  min-height: clamp(420px, 82vh, 860px); max-height: 90vh;
}
/* dezenter Load-in-Zoom (nur wenn Motion erlaubt) */
.hero-media img { animation: heroIn 1.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-media:hover img { transform: scale(1.03); transition: transform 1.1s var(--ease); }

.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6,7,9,.94) 0%, rgba(6,7,9,.62) 30%, rgba(6,7,9,.14) 58%, rgba(6,7,9,.28) 100%);
}
.hero-zoom {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 13px; border-radius: var(--pill); font-size: .8rem; font-weight: 600;
  font-family: var(--font-din); letter-spacing: .05em; text-transform: uppercase;
  background: rgba(10,12,16,.4); color: #fff; border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-zoom svg { width: 15px; height: 15px; flex: none; }

.hero-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding-bottom: clamp(28px, 5vw, 60px);
}
.hero-eyebrow { color: rgba(255,255,255,.78); margin: 0 0 14px; }
.hero-title {
  color: #fff; margin: 0;
  font-size: clamp(2.5rem, 8vw, 6rem); line-height: .96; letter-spacing: -.035em;
  text-shadow: 0 4px 40px rgba(0,0,0,.45);
  overflow-wrap: anywhere;   /* lange Einzelwörter umbrechen statt abschneiden */
}
.hero-sub {
  color: rgba(255,255,255,.86); margin: 16px 0 0; max-width: 48ch;
  font-size: clamp(1.02rem, 2vw, 1.32rem); line-height: 1.4; font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }

.price-tag {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-family: var(--font-din); font-variant-numeric: tabular-nums;
  background: var(--accent-eff); color: var(--on-accent);
  font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  padding: 11px 20px; border-radius: var(--pill);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.price-tag .tag { font-size: .62em; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .82; }

/* Motion-Choreografie Hero (gestaffelt) */
.reveal-hero { opacity: 0; transform: translateY(22px); animation: heroText .9s var(--ease) forwards; }
.reveal-hero.d1 { animation-delay: .15s; }
.reveal-hero.d2 { animation-delay: .28s; }
.reveal-hero.d3 { animation-delay: .42s; }
.reveal-hero.d4 { animation-delay: .56s; }
@keyframes heroText { to { opacity: 1; transform: none; } }

/* Hero-Fallback ohne Bild */
.hero-plain { padding: clamp(60px, 12vw, 120px) 0 24px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero-plain .hero-title { color: var(--ink); text-shadow: none; }
.hero-plain .hero-eyebrow { color: var(--muted); }
.hero-plain .hero-sub { color: var(--ink-2); }

/* ======================================================= Instrument-Band
   Signature: der „ehrliche Kilometer" — Motorlaufleistung seit Revision,
   als Odometer mit Roll-up + Gauge, plus Kennzahlen-Reihe. */
.gauge-band { background: var(--stage); color: var(--on-stage); position: relative; z-index: 1; }
.gauge-band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--stage-line), transparent);
}
.gauge-inner { padding: clamp(34px, 6vw, 64px) 0; display: grid; gap: clamp(30px, 5vw, 48px); }

.odo { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .odo.has-gauge { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); } }

.odo-label { color: var(--on-stage-mut); margin: 0 0 10px; }
.odo-value {
  font-family: var(--font-din); font-variant-numeric: tabular-nums;
  font-weight: 700; line-height: .9; letter-spacing: -.01em;
  font-size: clamp(3.4rem, 12vw, 8rem);
  color: #fff;
  display: flex; align-items: baseline; gap: .18em; flex-wrap: wrap;
}
.odo-value .approx { color: var(--accent-eff); font-size: .5em; align-self: center; }
.odo-value .unit { font-size: .32em; letter-spacing: .06em; text-transform: uppercase; color: var(--on-stage-mut); font-weight: 600; }
.odo-note { color: var(--on-stage-mut); margin: 18px 0 0; font-size: .96rem; line-height: 1.55; max-width: 46ch; }
.odo-note strong { color: var(--on-stage); font-weight: 600; }

/* Gauge: Anteil der frischen Motor-km an der Gesamtlaufleistung */
.gauge { display: grid; gap: 12px; align-content: center; }
.gauge-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--on-stage-mut); }
.gauge-scale .eyebrow { color: var(--on-stage-mut); }
.gauge-track {
  position: relative; height: 12px; border-radius: var(--pill);
  background: rgba(255,255,255,.09); overflow: hidden;
  border: 1px solid var(--stage-line);
}
.gauge-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--pct, 25%);
  background: linear-gradient(to right, color-mix(in srgb, var(--accent-eff) 65%, transparent), var(--accent-eff));
  border-radius: var(--pill);
  box-shadow: 0 0 22px -2px color-mix(in srgb, var(--accent) 70%, transparent);
  transform-origin: left; animation: gaugeGrow 1.1s .2s var(--ease) both;
}
@keyframes gaugeGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gauge-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--on-stage-mut); }
.gauge-legend b { color: #fff; font-family: var(--font-din); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Kennzahlen-Reihe (große Zahlen) */
.figs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--stage); border: 1px solid var(--stage-line); border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 620px) { .figs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .figs { grid-template-columns: repeat(5, 1fr); } }
.fig { background: var(--stage); padding: 20px 18px; display: grid; gap: 6px; }
.fig-num {
  font-family: var(--font-din); font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; color: #fff;
}
.fig-num .u { font-size: .5em; color: var(--on-stage-mut); font-weight: 600; margin-left: .18em; }
.fig-label { color: var(--on-stage-mut); }

/* =================================================================== Galerie */
.gallery-wrap { padding: clamp(30px, 5vw, 56px) 0 0; }
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.shot {
  padding: 0; border: 0; margin: 0; cursor: zoom-in; position: relative; overflow: hidden;
  border-radius: var(--r-sm); background: var(--surface-2); aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover { transform: translateY(-3px); }
.shot:hover img { transform: scale(1.06); }
/* Erstes Foto = Panorama über zwei Spalten (editorial) */
@media (min-width: 720px) {
  .shot.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.shot .shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  font-family: var(--font-din); letter-spacing: .04em; font-size: .78rem; color: #fff;
  text-transform: uppercase; text-align: left;
  background: linear-gradient(to top, rgba(6,7,9,.7), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }

/* ==================================================================== Content */
.content { display: grid; gap: clamp(22px, 4vw, 34px); padding: clamp(34px, 6vw, 60px) 0 60px; }
@media (min-width: 940px) { .content { grid-template-columns: minmax(0, 1fr) 372px; align-items: start; } }
.col-side { display: grid; gap: 20px; }
@media (min-width: 940px) { .col-side { position: sticky; top: 22px; } }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.col-side .panel + .panel { margin-top: 0; }   /* Sidebar ist Grid mit gap – Margin würde doppeln */
.panel > h2 {
  font-family: var(--font-din); font-weight: 700; letter-spacing: .01em;
  font-size: 1.05rem; text-transform: uppercase;
  margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; gap: 12px; color: var(--ink);
}
.panel > h2 .idx {
  font-variant-numeric: tabular-nums; color: var(--accent-eff);
  font-size: .82em; letter-spacing: .06em;
}

/* Highlights als Checkliste */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.highlights li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; line-height: 1.45; }
.highlights li::before {
  content: ""; grid-row: 1; width: 22px; height: 22px; margin-top: 2px; border-radius: var(--pill);
  /* Gefüllter Akzentkreis mit eingestanztem Häkchen (Maske trägt die Akzentfarbe) */
  background: var(--accent-eff);
  -webkit-mask:
    no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Beschreibung / Prose */
.prose { font-size: 1.04rem; line-height: 1.72; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display); color: var(--ink); letter-spacing: -.015em;
  line-height: 1.18; margin: 1.7em 0 .5em;
}
.prose h2 { font-size: 1.42rem; }
.prose h3 { font-size: 1.16rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent-eff); text-decoration: underline; text-underline-offset: 2px; }

/* Fahrzeugdaten als Datenblatt */
.specs dl { margin: 0; display: grid; }
.specs dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hair);
}
.specs dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.specs dt {
  color: var(--muted); font-family: var(--font-din); text-transform: uppercase;
  letter-spacing: .06em; font-size: .78rem;
}
.specs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ============================================================= Inserat-CTAs */
.listing p.listing-lead { margin: -4px 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.listing-orte { margin: 0 0 16px; display: grid; gap: 5px; padding: 12px 0 0; border-top: 1px solid var(--hair); }
.listing-orte .orte-k { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.listing-orte .orte-v { font-weight: 600; color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.listing-actions { display: grid; gap: 11px; }
.listing-actions .btn { width: 100%; }
.listing-hint { margin: 16px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.side-tools { display: grid; gap: 10px; }

/* ---- Dokumente & Nachweise ---- */
.docs .doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-links a {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.doc-links a:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent-eff); box-shadow: var(--shadow-sm); }
.doc-ico {
  flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-din); font-weight: 700; font-size: .76rem; letter-spacing: .03em;
  background: color-mix(in srgb, var(--accent-eff) 16%, transparent); color: var(--accent-eff);
}
.doc-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.doc-k { font-family: var(--font-din); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--muted); }
.doc-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-go { flex: none; color: var(--muted); display: grid; place-items: center; }
.doc-go svg { width: 18px; height: 18px; }

/* ==================================================================== Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  font-size: 1rem; line-height: 1; text-align: center;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-accent { background: var(--accent-eff); border-color: transparent; color: var(--on-accent); font-weight: 700; }
.btn-accent:hover { box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-line { background: transparent; }
.btn-glass {
  background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-ka { background: #1f6f3e; border-color: transparent; color: #fff; }        /* Kleinanzeigen-Grün */
.btn-ka:hover { box-shadow: 0 12px 26px -10px rgba(31,111,62,.7); }
.btn-md { background: #0a2c5c; border-color: transparent; color: #fff; }         /* mobile.de-Blau */
.btn-md:hover { box-shadow: 0 12px 26px -10px rgba(10,44,92,.7); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Icon-Grid (Alle Fotos) */
.ico-grid { width: 15px; height: 15px; display: inline-block; flex: none; border-radius: 2px;
  background:
    linear-gradient(currentColor,currentColor) 0 0/6px 6px no-repeat,
    linear-gradient(currentColor,currentColor) 9px 0/6px 6px no-repeat,
    linear-gradient(currentColor,currentColor) 0 9px/6px 6px no-repeat,
    linear-gradient(currentColor,currentColor) 9px 9px/6px 6px no-repeat; }

/* ==================================================== Sticky Kauf-Leiste (Desktop) */
.buybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transform: translateY(-100%); transition: transform .32s var(--ease);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.buybar.show { transform: none; }
.buybar-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.buybar-id { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.buybar-name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-family: var(--font-din); font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--accent-eff); white-space: nowrap; }
.buybar-actions { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 720px) { .buybar { display: none; } }   /* Mobil: untere CTA-Leiste übernimmt */

/* ==================================================== Sticky CTA-Leiste (Mobil) */
.mcta-bar { display: none; }
@media (max-width: 720px) {
  body.has-mcta { padding-bottom: 76px; }
  .mcta-bar {
    display: flex; gap: 9px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mcta-bar .btn { flex: 1; padding: 13px 8px; font-size: .95rem; }
}

/* ==================================================================== Footer */
.foot { border-top: 1px solid var(--line); margin-top: 8px; padding: 30px 0; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-links { display: flex; gap: 20px; }
.foot-links.center { justify-content: center; margin-top: 16px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-tm { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: .72rem; color: var(--muted); line-height: 1.5; max-width: 70ch; }
.foot .num { color: var(--muted); }

/* ================================================================ Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================ Home / 404 */
.simple-page { min-height: 100dvh; display: grid; place-items: center; padding: 40px var(--gutter); background: var(--bg); }
.simple-card { text-align: center; max-width: 460px; }
.simple-mark {
  width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 16px;
  background:
    conic-gradient(from 210deg, color-mix(in srgb, var(--accent-eff) 40%, transparent), var(--accent-eff), color-mix(in srgb, var(--accent-eff) 40%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
  position: relative;
}
.simple-mark::after {
  content: ""; position: absolute; inset: 12px; border-radius: 8px; background: var(--bg);
}
.simple-card h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 10px; letter-spacing: -.03em; }
.simple-card p { color: var(--muted); margin: 0 0 26px; font-size: 1.05rem; line-height: 1.55; }
.simple-card .btn { margin: 0 auto; }

/* ---- Home Marken-Streifen ---- */
.home-page { background: var(--bg); color: var(--ink); }
.home-col { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(36px, 6vw, 56px); padding: 56px var(--gutter); }
.brand-strip-wrap { width: 100%; max-width: 940px; text-align: center; }
.brand-strip-wrap .eyebrow { display: block; margin-bottom: 22px; }
.brand-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.brand-cell { border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.brand-cell:hover { border-color: var(--accent-eff); transform: translateY(-2px); }
.brand-note { margin: 22px auto 0; max-width: 62ch; font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ---- Marken-Plakette: unverändertes Logo (oder Wortmarke) auf hellem Feld (theme-sicher) ---- */
.brand-plate { background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-plate img { display: block; width: auto; height: auto; object-fit: contain; }
.brand-plate .brand-word { font-family: var(--font-din); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #14171c; line-height: 1.1; text-align: center; }
.brand-cell .brand-plate { width: 100%; height: 82px; padding: 15px; border-radius: inherit; }
.brand-cell .brand-plate img { max-height: 48px; max-width: 100%; }
.brand-cell .brand-plate .brand-word { font-size: .86rem; }

/* ---- Marken-Plakette im Hero (prominent) + Footer (klein) ---- */
.hero-brand { margin: 0 0 16px; display: flex; }
.hero-brand .brand-plate { padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.55); }
.hero-brand .brand-plate img { max-height: clamp(34px, 5vw, 46px); max-width: min(64vw, 280px); }
.hero-brand .brand-plate .brand-word { font-size: clamp(1.2rem, 3vw, 1.7rem); }
.foot-brand { margin: 0 0 16px; display: flex; }
.foot-brand .brand-plate { padding: 7px 12px; border-radius: 8px; }
.foot-brand .brand-plate img { max-height: 22px; max-width: 150px; }
.foot-brand .brand-plate .brand-word { font-size: .8rem; }

/* ===================================================================== Legal */
.legal-page { background: var(--bg); min-height: 100dvh; }
.legal-head { border-bottom: 1px solid var(--line); }
.legal-head .wrap { display: flex; align-items: center; min-height: 60px; }
.legal-head a { font-family: var(--font-din); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--muted); }
.legal { padding: clamp(30px, 6vw, 56px) 0 72px; max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 24px; letter-spacing: -.02em; }
.legal .prose { color: var(--ink-2); }

/* =================================================================== Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6,7,9,.96); }
.lb-figure { position: relative; margin: 0; max-width: 96vw; max-height: 92vh; display: grid; place-items: center; z-index: 1; }
.lb-image { max-width: 96vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; touch-action: none; user-select: none; -webkit-user-drag: none; }
.lb-caption { color: #e9ebee; text-align: center; margin-top: 16px; font-family: var(--font-din); letter-spacing: .05em; text-transform: uppercase; font-size: .82rem; min-height: 1.2em; padding: 0 16px; }
.lb-btn {
  position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 54px; height: 54px; border-radius: var(--pill); font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(8px); transition: background .15s var(--ease), transform .15s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.24); transform: scale(1.06); }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; font-size: 1.25rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 20px; z-index: 2; color: #fff; font-family: var(--font-din); font-variant-numeric: tabular-nums; letter-spacing: .05em; font-size: .85rem; background: rgba(0,0,0,.42); padding: 6px 13px; border-radius: var(--pill); backdrop-filter: blur(6px); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 46px; height: 46px; font-size: 1.5rem; bottom: 18px; top: auto; transform: none; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .lb-prev:hover, .lb-next:hover { transform: none; }
}

/* ===================================================== Partner / Werbeflächen */
.partners {
  position: relative; overflow: hidden;
  background: var(--stage); color: var(--on-stage);
  padding: clamp(34px, 5vw, 62px) 0; margin-top: 8px;
  border-top: 1px solid var(--stage-line);
}
.partners::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -12%, color-mix(in srgb, var(--accent-eff) 22%, transparent), transparent 62%);
}
.partners .wrap { position: relative; z-index: 1; }
.partners-eyebrow { text-align: center; color: var(--on-stage-mut); margin: 0 0 24px; }
.partner-grid { display: grid; gap: 18px; }
.partners-1 .partner-grid { max-width: 560px; margin: 0 auto; }
.partners-2 .partner-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .partners-2 .partner-grid { grid-template-columns: 1fr; } }

.partner-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 13px; text-align: center; padding: 28px 26px 26px;
  background: #fff; color: #14171c; text-decoration: none;
  border-radius: var(--r); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 55px -26px rgba(0,0,0,.75);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.partner-card:hover { transform: translateY(-4px); box-shadow: 0 30px 66px -22px rgba(0,0,0,.85); }
a.partner-card:focus-visible { outline: 2px solid var(--accent-eff); outline-offset: 3px; }
.partner-kicker { color: #96702a; margin: 0; }
.partner-logo { display: flex; align-items: center; justify-content: center; min-height: 74px; width: 100%; }
.partner-logo img { max-height: 68px; max-width: min(260px, 100%); width: auto; height: auto; object-fit: contain; }
.partner-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; color: #14171c; }
.partner-sub { color: #565e6a; font-size: .95rem; line-height: 1.45; max-width: 42ch; }
.partner-go { position: absolute; top: 14px; right: 14px; color: #b6bcc4; display: grid; place-items: center; transition: color .2s var(--ease); }
.partner-go svg { width: 16px; height: 16px; }
a.partner-card:hover .partner-go { color: #96702a; }

/* ===================================================== Partner-Landingpage */
.pl-arrow { line-height: 1; }
.pl-backbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px;
  padding: 11px clamp(16px, 4vw, 40px); padding-right: max(clamp(16px, 4vw, 40px), 68px);
  font-family: var(--font-din); text-transform: uppercase;
  letter-spacing: .06em; font-size: .82rem; font-weight: 700; color: #fff;
  background: color-mix(in srgb, var(--pa) 86%, #000); border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pl-backbar:hover { text-decoration: none; background: var(--pa); color: #fff; }
.pl-backbar .pl-arrow { font-size: 1.3em; }
.pl-backbar-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(40px, 7vw, 84px) 0 clamp(44px, 7vw, 80px);
  background: radial-gradient(120% 120% at 50% -20%, color-mix(in srgb, var(--pa) 82%, #fff), var(--pa) 48%, color-mix(in srgb, var(--pa) 72%, #000));
}
.pl-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 118%, rgba(0,0,0,.3), transparent 70%); }
.pl-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.pl-plate { background: #fff; border-radius: 18px; padding: 22px 30px; box-shadow: 0 26px 60px -24px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; max-width: min(440px, 90%); }
.pl-plate img { max-height: 96px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.pl-plate-word { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #14171c; }
.pl-tag { margin: 8px 0 0; font-family: var(--font-din); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: clamp(.9rem, 2.4vw, 1.08rem); color: rgba(255,255,255,.95); }
.pl-owners { margin: 0; font-size: .92rem; color: rgba(255,255,255,.8); }
.pl-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

.pl-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: var(--pill); font-weight: 700; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); }
.pl-btn:hover { text-decoration: none; transform: translateY(-2px); }
.pl-btn .pl-ico { width: 18px; height: 18px; flex: none; }
.pl-btn-primary { background: #fff; color: var(--pa); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.pl-btn-primary:hover { box-shadow: 0 20px 42px -12px rgba(0,0,0,.6); }
.pl-btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pl-btn-glass:hover { background: rgba(255,255,255,.26); }

.pl-main { padding: clamp(30px, 5vw, 56px) 0 20px; }
.pl-intro { font-size: clamp(1.08rem, 2.2vw, 1.32rem); line-height: 1.6; color: var(--ink-2); max-width: 64ch; margin: 0 auto clamp(30px, 5vw, 48px); text-align: center; }
.pl-sec { margin: 0 0 clamp(28px, 5vw, 44px); }
.pl-h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--ink); text-align: center; margin: 0 0 22px; }
.pl-h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 3px; background: var(--pa); margin: 14px auto 0; }

.pl-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pl-services li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.pl-services li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pa) 45%, var(--line)); }
.pl-services .pl-ico { width: 20px; height: 20px; flex: none; color: var(--pa); }
.pl-note { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 20px auto 0; width: max-content; max-width: 100%; padding: 11px 20px; border-radius: var(--pill); font-weight: 700; color: var(--pa); background: color-mix(in srgb, var(--pa) 12%, transparent); border: 1px solid color-mix(in srgb, var(--pa) 32%, transparent); }
.pl-note .pl-ico { width: 18px; height: 18px; flex: none; }

.pl-grid2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pl-grid2 { grid-template-columns: 1fr 1fr; } }
.pl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 30px); }
.pl-h3 { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin: 0 0 16px; }
.pl-h3 .pl-ico { width: 22px; height: 22px; flex: none; color: var(--pa); }
.pl-hours { margin: 0; display: grid; gap: 10px; }
.pl-hours > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.pl-hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pl-hours dt { font-weight: 600; color: var(--ink); }
.pl-hours dd { margin: 0; font-family: var(--font-din); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.pl-muted { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.pl-contact { font-style: normal; display: grid; gap: 11px; }
.pl-addr { margin: 0 0 4px; white-space: pre-line; color: var(--ink); font-weight: 600; line-height: 1.5; }
.pl-contact a { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-2); font-weight: 600; }
.pl-contact a:hover { color: var(--pa); text-decoration: none; }
.pl-contact .pl-ico { width: 19px; height: 19px; flex: none; color: var(--pa); }
.pl-btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.pl-btn-line:hover { border-color: var(--pa); }
.pl-mapslink { margin-top: 16px; }

.pl-return { text-align: center; padding: clamp(20px, 4vw, 36px) 0 clamp(10px, 3vw, 24px); }
.pl-btn-lg { font-size: 1.1rem; padding: 17px 34px; }
.pl-return .pl-btn-primary { background: var(--pa); color: #fff; box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--pa) 80%, transparent); }
.pl-return .pl-btn-primary:hover { box-shadow: 0 24px 52px -16px color-mix(in srgb, var(--pa) 90%, transparent); }

/* ============================================================ Motion / Print */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; }
  .hero-media img { animation: none !important; transform: none !important; }
  .gauge-fill { animation: none !important; }
}
@media print {
  .theme-toggle, .hero-zoom, .hero-open, .buybar, .mcta-bar, .lightbox, .preview-bar, .side-tools, .listing-actions, .foot-links, .partner-go { display: none !important; }
  .partners { background: #fff !important; color: #000 !important; border-top: 1px solid #ccc; }
  .partners::before { display: none !important; }
  .partner-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .hero-media img { max-height: 360px; }
  .hero-scrim { display: none; }
  .hero-inner { position: static; padding: 14px 0; }
  .hero-cta { margin-top: 12px; }
  .price-tag { background: none !important; color: #000 !important; padding: 0; box-shadow: none; font-size: 1.3rem; }
  .hero-title, .hero-eyebrow, .hero-sub { color: #000 !important; text-shadow: none; }
  .gauge-band, .fig, .gauge-track { background: #fff !important; color: #000 !important; }
  .odo-value, .fig-num, .odo-label, .odo-note, .fig-label, .gauge-legend, .gauge-legend b { color: #000 !important; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  a[href]::after { content: ""; }
}
