/* ============================================================
   BimmerScout — style.css
   Tokens & Specs: style-specs.md (abgeleitet aus inputs/brand.md)
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/montserrat/montserrat-v31-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/montserrat/montserrat-v31-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-v23-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-v23-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-v23-latin-600.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F6F9;
  --color-primary: #00347D;
  --color-primary-light: #109CD1;
  --color-surface-dark: #00264F;
  --color-scout-grey: #5A5A5A;
  --color-text: #1F2933;
  --color-text-muted: #3D4A57;
  --color-text-on-dark: #EEF3FA;
  --color-text-muted-on-dark: #C6D2E3;
  --color-accent: #6D28D9;
  --color-link: #00347D;
  --color-link-hover: #109CD1;
  --color-border: #E2E6EC;

  --gradient-blue: linear-gradient(135deg, #00347D 0%, #109CD1 100%);

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.5rem, 6vw + 1rem, 5rem);
  --fs-h1: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  --fs-h2: clamp(1.6rem, 2.5vw + 0.5rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 0.4rem, 1.6rem);
  --fs-body: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  --fs-small: 0.875rem;
  --fs-display-num: clamp(3rem, 8vw, 6rem);

  --lh-display: 1.15;
  --lh-body: 1.6;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius: 4px;
  --radius-sm: 2px;

  --transition-default: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --header-h: 63px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: var(--lh-display); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { max-width: 65ch; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-xs);
}
.lead { font-size: 1.15rem; color: var(--color-text-muted); }

/* ---------- Layout utilities ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-xl); }
.section--compact { padding-block: var(--space-lg); }
.section--band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--roomy { padding-block: var(--space-2xl); }
.section--alt { background: var(--color-surface-alt); }
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}
.section--dark:not(.section--finance)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 85% at 20% 90%, rgba(16, 156, 209, 0.62), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.section--dark:not(.section--finance) > .container {
  position: relative;
  z-index: 1;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--color-text-muted-on-dark); }
.section--dark .lead { color: var(--color-text-muted-on-dark); }

/* ---------- Finance parallax background ---------- */
.section--finance {
  position: relative;
  overflow: clip;
  background: var(--color-surface-dark);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.section--finance::after {
  content: "";
  position: absolute;
  inset: -35% -8%;
  background-image: url("./images/finance-bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: translate3d(0, var(--finance-bg-y, 0px), 0) scaleX(-1) scale(1.12);
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
}
.section--finance::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 18, 40, 0.42) 0%,
    rgba(0, 18, 40, 0.58) 55%,
    rgba(0, 18, 40, 0.42) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.section--finance > .container {
  position: relative;
  z-index: 2;
}
.section-head { max-width: 60ch; margin-bottom: var(--space-lg); }
.section-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.section-header-row .section-head { margin-bottom: 0; }
.section-header-row .badges { margin: 0; }
.section-head--center {
  margin-inline: auto;
  max-width: 70ch;
  text-align: center;
}
.section-head--center > p,
.section-head--center .eyebrow,
.section-head--center h2 { margin-inline: auto; }
.section-head--split { max-width: none; }
.section-head--split > p { max-width: 62ch; }
.section-head__title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.section-head__title-row h2 { margin: 0; max-width: 62ch; }
.section-head__title-row .btn,
.section-head__title-row .badge { flex-shrink: 0; justify-self: end; align-self: center; }
@media (max-width: 759px) {
  .section-head--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .section-head--split > .eyebrow { order: 0; }
  .section-head--split .section-head__title-row {
    display: contents;
  }
  .section-head--split .section-head__title-row h2 {
    order: 1;
    margin-bottom: var(--space-sm);
  }
  .section-head--split > p {
    order: 2;
    margin-bottom: 0;
  }
  .section-head--split .section-head__title-row .btn,
  .section-head--split .section-head__title-row .badge {
    order: 3;
    align-self: flex-start;
    margin-top: var(--space-md);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
  border: 2px solid transparent; transition: all var(--transition-default);
  text-decoration: none;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-light); color: #fff; }
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--primary:disabled,
.btn--primary[disabled] { background: var(--color-primary); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { filter: brightness(1.12); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--on-dark { background: #fff; color: var(--color-primary); }
.btn--on-dark:hover { background: var(--color-primary-light); color: #fff; }
.btn--outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-dark:hover { border-color: #fff; color: #fff; }
.btn__icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

/* Text links */
.textlink {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  color: var(--color-primary); padding-bottom: 2px;
  text-decoration: none;
}
.textlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--transition-default);
}
.textlink:hover, .textlink:focus-visible { color: var(--color-primary-light); }
.textlink:hover::after, .textlink:focus-visible::after { transform: scaleX(1); }
.textlink--arrow { display: inline-flex; align-items: center; gap: 0.45em; }
.textlink--arrow svg { flex: none; transition: transform var(--transition-default); }
.textlink--arrow:hover svg, .textlink--arrow:focus-visible svg { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: 0.75rem; }
.nav__mobile { display: contents; }
.nav__contact { display: none; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-md); }
.nav__links a { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--color-text); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-primary); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 0.4rem; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--color-text); margin: 5px 0; transition: var(--transition-default); }
.br-mobile { display: none; }
.hyphen-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-surface-dark); color: var(--color-text-on-dark);
}
.hero:not(.hero--home) {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero:not(.hero--home).hero--compact {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero:not(.hero--home)::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 10%, rgba(16,156,209,0.35), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 60ch; }
.hero:not(.hero--home) h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.2;
  color: #fff;
}
.hero:not(.hero--home) .lead { color: var(--color-text-muted-on-dark); margin-top: var(--space-sm); }
.hero--center .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  max-width: var(--container);
}
.hero--center .eyebrow,
.hero--center h1,
.hero--center .lead,
.hero--center .hero__inner > p {
  width: 100%;
  max-width: none;
}
.hero--center .hero__actions { justify-content: center; width: 100%; }
.hero--center .channels { width: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* Homepage hero */
.hero--home {
  background: var(--color-surface-dark);
  padding: 0;
}
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 80% 10%, rgba(16,156,209,0.35), transparent 60%);
  pointer-events: none;
}
.hero--home .hero__inner {
  display: flex; flex-direction: column; justify-content: center;
  max-width: none;
  min-height: calc((100vh - var(--header-h)) * 0.75);
  min-height: calc((100svh - var(--header-h)) * 0.75);
  padding-block: var(--space-xl);
}
.hero--home .hero__content {
  margin-top: clamp(2.5rem, 5vh, 4rem);
}
.hero__reel {
  position: absolute; z-index: 3;
  top: var(--space-md);
  right: max(1.25rem, calc((100% - var(--container)) / 2));
  width: clamp(150px, 23vw, 290px);
  margin: 0;
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
  overflow: hidden;
}
.hero__reel-video {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 640 / 352;
  background: var(--color-scout-grey);
  overflow: hidden;
}
.hero__reel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__reel-slide.is-active { opacity: 1; }
.hero__reel-caption {
  position: absolute; z-index: 1; top: 0; left: 0; width: 100%;
  padding: 0.5rem 0.7rem 1.3rem;
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to bottom, rgba(10,10,12,0.72), rgba(10,10,12,0));
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero--home {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-md);
  }
  .hero--home .hero__reel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(100% - 2.5rem, var(--container));
    margin: 0 auto var(--space-md);
    flex-shrink: 0;
  }
  .hero--home .hero__inner {
    min-height: 0;
    padding-block: 0 var(--space-xl);
  }
  .hero--home .hero__content {
    margin-top: 0;
    text-align: center;
  }
  .hero--home h1 {
    max-width: none;
    margin-inline: auto;
  }
  .hero--home .hero__col {
    align-items: center;
  }
  .hero--home p {
    max-width: none;
    margin-inline: auto;
  }
  .hero--home .hero__actions {
    justify-content: center;
    width: 100%;
  }
}
.hero__content {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md); align-items: start;
}
@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1.4fr 1fr;
    column-gap: var(--space-xl); row-gap: 0;
  }
  .hero--home .hero__content { align-items: stretch; }
  .hero--home .eyebrow { grid-column: 1; grid-row: 1; }
  .hero--home h1 { grid-column: 1; grid-row: 2; align-self: end; }
  .hero__col { grid-column: 2; grid-row: 2; }
  .hero--home .hero__col {
    justify-content: space-between;
    align-self: stretch;
  }
}
.hero--home h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.2; max-width: 18ch; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero__col {
  display: flex; flex-direction: column;
  gap: var(--space-md); align-items: start;
}
.hero--home p {
  color: var(--color-text-on-dark);
  font-size: 1.15rem; max-width: 48ch; margin: 0;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.hero--home .hero__actions {
  margin-top: 0;
  flex-wrap: nowrap;
}
@media (max-width: 599px) {
  .hero--home .hero__actions { flex-wrap: wrap; }
}
@media (max-width: 899px) {
  .hero--home .eyebrow { margin-bottom: 0; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__content > .eyebrow,
.hero__content > h1,
.hero__content > .hero__col {
  animation: hero-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__content > .eyebrow { animation-delay: 120ms; }
.hero__content > h1 { animation-delay: 280ms; }
.hero__content > .hero__col { animation-delay: 440ms; }

/* ---------- Quick search / AC24 search host ---------- */
.quicksearch-host,
#ac24-wgt_search {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * var(--space-lg));
  overflow: visible;
}
.vehicle-slider-host,
#ac24-wgt_330d6f0a73a444ef {
  position: relative;
  z-index: 1;
  margin-top: var(--space-xs);
}
.quicksearch {
  position: relative; z-index: 5;
  margin-top: calc(-1 * var(--space-lg));
  background: #fff; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-md);
  display: grid; gap: var(--space-sm);
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 12px 40px rgba(0,38,79,0.12);
}
.quicksearch label { font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted); display: block; margin-bottom: 0.3rem; }
.quicksearch select, .quicksearch input { width: 100%; padding: 0.65rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.quicksearch .quicksearch__submit { grid-column: 1 / -1; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-md); max-width: 720px; margin-inline: auto; }
.form--wide { max-width: 920px; }
.form--ac24 {
  --ac24-primary: #00347D;
  --ac24-primary-foreground: #ffffff;
  --ac24-accent: #109CD1;
  --ac24-bg: #ffffff;
  --ac24-text: #111111;
  --ac24-text-muted: #6b7280;
  --ac24-border: #e2e6ec;
  --ac24-radius: 8px;
  --ac24-input-radius: 4px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ac24-bg);
  color: var(--ac24-text);
  border: 1px solid var(--ac24-border);
  border-radius: var(--ac24-radius);
  box-shadow: 0 8px 32px rgba(0, 52, 125, 0.1);
  gap: var(--space-md);
}
.form--ac24 .form__progress {
  height: 3px;
  background: var(--ac24-border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.form--ac24 .form__progress-bar {
  height: 100%;
  width: 20%;
  background: var(--ac24-primary);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.form--ac24 .form-legend {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ac24-text);
  margin-bottom: var(--space-md);
  padding: 0;
  float: none;
  width: 100%;
  line-height: 1.3;
}
.form--ac24 .form__row {
  align-items: end;
}
/* Zeile mit Modell-Mehrfachauswahl oben ausrichten, damit Marke & Modell auf
   gleicher Höhe bleiben und die Auswahl-Tags darunter hängen (statt das kürzere
   Feld nach unten zu ziehen). */
.form--ac24 .form__row:has(.combobox__tokens) {
  align-items: start;
}
.form--ac24 .form-section { gap: var(--space-md); }
.form--ac24 .field { gap: 0.5rem; }
.form--ac24 .field label,
.form--ac24 .field-label,
.form--ac24 .checkbox--toggle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ac24-text);
}
.form--ac24 .field-hint,
.form--ac24 .form-note,
.form--ac24 .checkbox { color: var(--ac24-text-muted); font-size: 0.8125rem; }
.form--ac24 .field input,
.form--ac24 .field select,
.form--ac24 .field textarea {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: var(--ac24-bg);
  border: 1px solid var(--ac24-border);
  border-radius: var(--ac24-input-radius);
  color: var(--ac24-text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form--ac24 input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.form--ac24 input[type="number"]::-webkit-outer-spin-button,
.form--ac24 input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form--ac24 .field input::placeholder,
.form--ac24 .field textarea::placeholder { color: #9ca3af; }
.form--ac24 .field input:focus,
.form--ac24 .field select:focus,
.form--ac24 .field textarea:focus {
  outline: none;
  border-color: var(--ac24-accent);
  box-shadow: 0 0 0 3px rgba(16, 156, 209, 0.15);
}
.form--ac24 .field textarea { min-height: 7rem; }
.field--combobox .combobox { position: relative; width: 100%; }
.field--combobox .combobox.is-open { z-index: 30; }
.field--combobox .combobox input { width: 100%; box-sizing: border-box; }
.combobox__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ac24-border, #e2e6ec);
  border-radius: var(--ac24-input-radius, 4px);
  box-shadow: 0 8px 24px rgba(0, 52, 125, 0.12);
}
.combobox__option {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--ac24-text, #111);
  cursor: pointer;
}
.combobox__option:hover,
.combobox__option:focus {
  background: rgba(16, 156, 209, 0.1);
  color: var(--ac24-primary, #00347D);
}
.combobox__empty {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--ac24-text-muted, #6b7280);
}
.field--combobox .combobox.is-open input {
  border-color: var(--ac24-accent, #109CD1);
  box-shadow: 0 0 0 3px rgba(16, 156, 209, 0.15);
}
.field--combobox input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.combobox__option.is-selected {
  background: rgba(16, 156, 209, 0.12);
  color: var(--ac24-primary, #00347D);
  font-weight: 600;
}
.combobox__option.is-selected::after {
  content: "✓";
  float: right;
  color: var(--ac24-accent, #109CD1);
}

/* Tokens der Modell-Mehrfachauswahl */
.combobox__tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.combobox__tokens[hidden] { display: none; }
.token {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  background: var(--ac24-primary, #00347D);
  color: var(--ac24-primary-foreground, #fff);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.token__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.token__remove:hover { background: rgba(255, 255, 255, 0.35); }

/* Fahrzeugtyp-Chips mit Icon (Grafiken aus dem AC24-Bestand) */
.form--ac24 .chips--typen { gap: 0.6rem; }
.form--ac24 .chip--typ {
  flex-direction: column;
  gap: 0.35rem;
  min-width: 6.5rem;
  padding: 0.6rem 0.9rem 0.55rem;
}
.form--ac24 .chip--typ img {
  width: 64px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
}
.form--ac24 .chip--typ:has(input:checked) img {
  filter: brightness(0) invert(1);
}
.form--ac24 .chips { gap: 0.5rem; }
.form--ac24 .chips.is-locked { opacity: 0.55; pointer-events: none; }
.form--ac24 .chip[hidden] { display: none; }
.form--ac24 .chips--segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.form--ac24 .chip {
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ac24-border);
  border-radius: var(--ac24-input-radius);
  background: var(--ac24-bg);
  color: var(--ac24-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.form--ac24 .chip:hover { border-color: var(--ac24-accent); }
.form--ac24 .chip:has(input:checked) {
  background: var(--ac24-primary);
  border-color: var(--ac24-primary);
  color: var(--ac24-primary-foreground);
}
.form--ac24 .req { color: var(--ac24-accent); font-weight: 600; }
.form--ac24 .form__required-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ac24-text-muted);
}
.form--ac24 .form__actions {
  align-items: stretch;
  text-align: left;
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--ac24-border);
  gap: var(--space-md);
}
.form--ac24 .form__nav {
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.form--ac24 .form__nav[data-align="start"] { justify-content: flex-end; }
.form--ac24 .form__nav[data-align="end"] { justify-content: space-between; }
.form--ac24 .form__nav[data-align="end"] [data-prev],
.form--ac24 .form__nav[data-align="end"] [data-next],
.form--ac24 .form__nav[data-align="end"] [type="submit"] { order: unset; }
.form--ac24 .btn {
  border-radius: var(--ac24-radius);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  justify-content: center;
  text-align: center;
}
.form--ac24 .btn--primary {
  background: var(--ac24-primary);
  color: var(--ac24-primary-foreground);
  border: 1px solid var(--ac24-primary);
  min-width: 9rem;
}
.form--ac24 .btn--primary:hover:not(:disabled) {
  background: #002a63;
  border-color: #002a63;
}
.form--ac24 .btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.form--ac24 .btn--ghost {
  color: var(--ac24-text);
  background: var(--ac24-bg);
  border: 1px solid var(--ac24-border);
}
.form--ac24 .btn--ghost:hover:not(:disabled) {
  border-color: var(--ac24-primary);
  color: var(--ac24-primary);
}
.form--ac24 .finance-panel {
  background: #f9fafb;
  border: 1px solid var(--ac24-border);
  border-radius: var(--ac24-radius);
}
.form--ac24 .farbe-andere-panel {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.form--ac24 .farbe-andere-panel[hidden] { display: none; }
.form--ac24 .form-success {
  background: rgba(16, 156, 209, 0.08);
  border: 1px solid var(--ac24-accent);
  border-radius: var(--ac24-radius);
  align-self: center;
  width: 100%;
  max-width: 42rem;
  text-align: center;
}
.form--ac24 .form-error {
  align-self: center;
  width: 100%;
  max-width: 42rem;
  text-align: center;
}
@media (max-width: 768px) {
  .form--ac24 .form__row { grid-template-columns: 1fr; }
  .form--ac24 .chips--segment { grid-template-columns: 1fr; }
  .form--ac24 .chips[data-required-group="farbe"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .form--ac24 .chips[data-required-group="farbe"] .chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .form--ac24 .form__nav { flex-direction: column-reverse; align-items: stretch; }
  .form--ac24 .btn { width: 100%; }
}
.form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}
.form__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-start;
  width: 100%;
}
.form__nav[data-align="end"] { justify-content: flex-end; }
.form__nav[data-align="end"] [data-prev] { order: 2; }
.form__nav[data-align="end"] [data-next],
.form__nav[data-align="end"] [type="submit"] { order: 1; }
.form__row { display: grid; gap: var(--space-md); grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  padding: 0.75rem 0.85rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); background: #fff; color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary-light); border-color: var(--color-primary-light); }
.field textarea { min-height: 140px; resize: vertical; }
.form .section--dark & label { color: #fff; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-small); color: var(--color-text-muted); }
.checkbox input { margin-top: 0.2rem; }
.form-note { font-size: var(--fs-small); color: var(--color-text-muted); }
.section--dark .form .field input,
.section--dark .form .field select,
.section--dark .form .field textarea { background: #fff; }
.section--dark .form .field label { color: #fff; }
.section--dark .checkbox { color: var(--color-text-muted-on-dark); }

/* Feature/equipment multi-select chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips.is-invalid {
  outline: 2px solid #c53030;
  outline-offset: 4px;
  border-radius: var(--radius);
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem; border: 1px solid var(--color-border);
  border-radius: 999px; font-size: var(--fs-small); background: #fff;
  cursor: pointer; user-select: none;
}
.chip input { display: none; }
.chip:has(input:checked) { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Grouped form sections (fieldset) */
.form-section { display: grid; gap: var(--space-md); border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section[hidden] { display: none; }
.form-section + .form-section { margin-top: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.form-legend {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--color-primary); padding: 0; margin-bottom: 0.25rem; float: left; width: 100%;
}
.field-label { font-weight: 600; font-size: 0.95rem; }
.field-hint { font-weight: 400; font-size: var(--fs-small); color: var(--color-text-muted); }
.req { color: var(--color-primary); text-decoration: none; border: 0; }

/* Conditional finance panel */
.checkbox--toggle { font-size: 0.95rem; color: var(--color-text); font-weight: 600; }
.finance-panel {
  display: grid; gap: var(--space-md);
  padding: var(--space-md); background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
}
.finance-panel[hidden] { display: none; }

/* Success / confirmation box */
.form-success {
  width: 100%; text-align: left;
  padding: var(--space-md); border-radius: var(--radius);
  background: var(--color-surface-alt, #eef3fa);
  border: 1px solid var(--color-primary);
}
.form-success p { margin: 0; }
.form-success__hint { margin-top: var(--space-sm); font-size: var(--fs-small); }

/* Error / failure box */
.form-error {
  width: 100%; text-align: left;
  padding: var(--space-md); border-radius: var(--radius);
  background: #FCECEC; border: 1px solid #C0392B; color: #7A231A;
}
.form-error p { margin: 0; }
.form-error a { color: inherit; text-decoration: underline; }

/* Honeypot (spam trap) — hidden from users, visible to bots */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* ---------- Vehicle cards / masonry ---------- */
.vehicle-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(3, 1fr); }
.vehicle-masonry { display: grid; gap: var(--space-md); grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; }
.vehicle-masonry .vehicle-card:first-child { grid-row: span 2; }
.vehicle-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color var(--transition-default); }
.vehicle-card:hover { border-color: var(--color-primary-light); }
.vehicle-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--color-surface-alt); overflow: hidden; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--color-scout-grey); font-size: var(--fs-small); padding: 1rem; text-align: center; }
.vehicle-card__body { padding: var(--space-sm); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.vehicle-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.vehicle-card__specs { font-size: var(--fs-small); color: var(--color-text-muted); }
.vehicle-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; }
.vehicle-card__price { font-family: var(--font-display); font-weight: 800; color: var(--color-primary); }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: var(--space-lg); align-items: center; }
.split--5050 { grid-template-columns: 1fr 1fr; }
.split--6040 { grid-template-columns: 6fr 4fr; }
.split--4060 { grid-template-columns: 4fr 6fr; }
.split--stretch { align-items: stretch; }
.split--stretch > * { height: 100%; }
.media-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-surface-alt); display: grid; place-items: center; color: var(--color-scout-grey); text-align: center; padding: 1rem; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--portrait img { object-position: center 28%; }
.media-frame--bmw-series img { object-position: 65% center; }
.media-frame--bmw-x-mini img { object-position: 25% center; }
.split--6040:has(.media-frame--bmw-series),
.split--4060:has(.media-frame--bmw-x-mini) {
  transition: grid-template-columns var(--transition-slow);
}
.split--6040:has(.media-frame--bmw-series) > *,
.split--4060:has(.media-frame--bmw-x-mini) > * {
  min-width: 0;
}
.split--6040:has(.media-frame--bmw-series) > :not(.media-frame),
.split--4060:has(.media-frame--bmw-x-mini) > :not(.media-frame) {
  position: relative;
  z-index: 1;
}
.split--6040:has(.media-frame--bmw-series):hover {
  grid-template-columns: 4.5fr 5.5fr;
}
.split--4060:has(.media-frame--bmw-x-mini):hover {
  grid-template-columns: 5.5fr 4.5fr;
}
.media-frame--bmw-series,
.media-frame--bmw-x-mini {
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: aspect-ratio var(--transition-slow);
}
.split--4060:has(.media-frame--bmw-x-mini):hover .media-frame--bmw-x-mini,
.split--6040:has(.media-frame--bmw-series):hover .media-frame--bmw-series {
  width: 100%;
  margin: 0;
  aspect-ratio: 5.5 / 3;
}
.media-frame:has(img) { padding: 0; }
.map-frame { aspect-ratio: auto; }
.map-frame .map-embed { height: 100%; min-height: 100%; }

/* ---------- Contact details (no badge background) ---------- */
.contact-details {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.split--stretch > .contact-details {
  margin-top: 0;
  height: 100%;
  align-content: center;
}
.contact-details p {
  margin: 0;
  color: var(--color-text-muted);
}
.contact-details__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.contact-details__row {
  display: block;
}
.contact-details__row + .contact-details__row {
  margin-top: 0.45rem;
}
.contact-details__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-link);
  font-weight: 500;
  text-decoration: none;
}
.contact-details__link:hover {
  color: var(--color-link-hover);
}
.contact-details__icon {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

/* ---------- Badges / pills / icon grid ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-sm); }
.section-head + .badges {
  margin-top: 0;
  margin-bottom: var(--space-lg);
}
.badges--end { justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
  background: rgba(0,52,125,0.08); color: var(--color-primary);
  font-weight: 600; font-size: var(--fs-small);
}
.section--dark .badge { background: rgba(255,255,255,0.12); color: #fff; }
.badge--accent { background: rgba(16,156,209,0.15); color: var(--color-primary-light); }
.feature-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(3, 1fr); }
.feature {
  position: relative;
  overflow: hidden;
  padding: var(--space-md);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
  transition:
    transform var(--transition-default),
    box-shadow var(--transition-default),
    border-color var(--transition-default);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gradient-blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-slow);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 156, 209, 0.45);
  box-shadow: 0 12px 32px rgba(0, 52, 125, 0.12);
}
.feature:hover::before { transform: scaleY(1); }
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 0.7rem;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature:hover .feature__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 52, 125, 0.35);
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  transition: color var(--transition-default);
}
.feature:hover h3 { color: var(--color-primary); }

/* ---------- Info box ---------- */
.infobox { border-left: 3px solid var(--color-primary-light); padding: var(--space-sm) var(--space-md); background: var(--color-surface-alt); border-radius: var(--radius); color: var(--color-text-muted); }
.section--dark .infobox { background: rgba(255,255,255,0.06); color: var(--color-text-muted-on-dark); }

/* ---------- Process / timeline ---------- */
.steps { display: grid; gap: var(--space-md); counter-reset: step; }
.steps--row { grid-template-columns: repeat(3, 1fr); }
.steps--two { grid-template-columns: repeat(2, 1fr); }
.step { position: relative; padding-top: var(--space-md); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--color-primary-light); line-height: 1; }
.step h3 { margin: 0.4rem 0; }

/* ---------- Finance highlight ---------- */
.finance { display: grid; gap: var(--space-lg); grid-template-columns: auto 1fr; align-items: center; }
.finance__num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display-num); color: #fff; line-height: 1; }
.finance__num span { color: var(--color-primary-light); }

/* Centered finance content on homepage */
.section--finance .finance {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.section--finance .finance p {
  margin-inline: auto;
}
.section--finance .finance .hero__actions,
.section--finance .finance .cta-dual {
  justify-content: center;
}

/* ---------- Quote ---------- */
.quote { position: relative; }
.quote blockquote {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25;
  color: var(--color-text); max-width: 18ch;
}
.quote blockquote::before { content: "\201C"; color: var(--color-primary); font-size: 3em; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; }
.quote cite { display: block; margin-top: var(--space-md); font-style: normal; font-weight: 600; color: var(--color-text-muted); }

/* Info-Box / Callout (Scout-Grau) */
.callout {
  margin-top: var(--space-md); padding: var(--space-md);
  border-left: 4px solid var(--color-scout-grey);
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  font-size: var(--fs-body); color: var(--color-text-muted); max-width: 60ch;
}
.disclaimer {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ---------- Testimonials (mobile.de static cards) ---------- */
.reviews-slider {
  display: block;
  overflow: visible;
  padding-bottom: var(--space-sm);
}

.reviews-widget__summary {
  margin: var(--space-md) 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: left;
}

.reviews-widget__summary a {
  font-weight: 600;
}

.reviews-track-wrap {
  position: relative;
}

@media (max-width: 768px) {
  .reviews-widget__summary { text-align: center; }
}

.reviews-track-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: var(--space-sm);
  transition: transform 0.45s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 2 * var(--space-sm)) / 3);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.1rem 1.15rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ebf0;
  box-shadow: 0 4px 18px rgba(31, 41, 51, 0.08);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--color-primary);
}

.review-card__avatar--alt { background: #109CD1; }
.review-card__avatar--alt2 { background: #5b6b8c; }

.review-card__author {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--color-text);
}

.review-card__date {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: #8a94a6;
}

.review-stars {
  width: 88px;
  height: 16px;
  margin: 0 0 0.65rem;
  background: #f5a623;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.7 7.3L12 18.8 5.6 21.7l1.7-7.3L1.6 9.5l7.5-.6L12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.7 7.3L12 18.8 5.6 21.7l1.7-7.3L1.6 9.5l7.5-.6L12 2z'/%3E%3C/svg%3E");
  -webkit-mask-size: 20% 100%;
  mask-size: 20% 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

.review-stars--lg {
  width: 110px;
  height: 20px;
}

.review-card__text {
  flex: 1;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__toggle { display: none; }

.reviews-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 52, 125, 0.12);
  cursor: pointer;
  transition:
    transform var(--transition-default),
    box-shadow var(--transition-default),
    border-color var(--transition-default);
}

.reviews-nav svg { width: 18px; height: 18px; }

.reviews-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(16, 156, 209, 0.45);
  box-shadow: 0 6px 18px rgba(0, 52, 125, 0.16);
}

.reviews-nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.reviews-nav--prev { left: -0.35rem; }
.reviews-nav--next { right: -0.35rem; }

.reviews-dots { display: none; }

@media (max-width: 1024px) {
  .review-card {
    flex-basis: calc((100% - var(--space-sm)) / 2);
  }
}

@media (max-width: 768px) {
  .review-card {
    flex-basis: 100%;
  }

  .reviews-nav { display: none; }

  .reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
  }

  .reviews-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 52, 125, 0.22);
  }

  .reviews-dot.is-active {
    background: rgba(0, 52, 125, 0.8);
  }

  .review-card.is-expanded .review-card__text {
    display: block;
    -webkit-line-clamp: initial;
    -webkit-box-orient: initial;
    overflow: visible;
  }

  .review-card__toggle {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
  }

  .review-card__toggle[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { transition: none; }
}

/* ---------- Contact channels ---------- */
.channels { display: grid; gap: var(--space-sm); grid-template-columns: repeat(3, 1fr); margin-top: var(--space-md); }
.channel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: var(--space-md);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--transition-default),
    box-shadow var(--transition-default),
    border-color var(--transition-default),
    background var(--transition-default);
}
.channel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gradient-blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-slow);
}
.channel:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 156, 209, 0.55);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.channel:hover::before { transform: scaleY(1); }
.channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}
.channel__icon svg { width: 20px; height: 20px; }
.channel:hover .channel__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 52, 125, 0.35);
}
.channel__value {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  transition: color var(--transition-default);
}
.channel:hover .channel__value { color: var(--color-primary-light); }
.channel span { font-size: var(--fs-small); color: var(--color-text-muted-on-dark); }

/* ---------- Map ---------- */
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); }
.location-cards { display: grid; gap: var(--space-md); }
.location-card { padding: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.split--stretch > .location-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.location-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }

/* ---------- Lupe / scout motif ---------- */
/* ---------- CTA dual ---------- */
.cta-dual { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.section-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-lg);
}
.section-band h2 { margin: 0; }
.section-band .lead { margin-top: var(--space-sm); color: var(--color-text-muted); }
@media (max-width: 768px) {
  .section-band {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .section-band .cta-dual {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface-dark); color: var(--color-text-on-dark); padding-block: var(--space-xl) var(--space-lg); }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr; }
.site-footer h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: var(--color-text-muted-on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: var(--color-text-muted-on-dark); }
.site-footer ul { display: grid; gap: 0.45rem; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo img {
  width: auto;
  height: auto;
  max-height: 80px;
  max-width: 156px;
  margin-bottom: var(--space-sm);
  object-fit: contain;
}
.footer-logo > p:not(.footer-legal-name) { margin: 0 0 var(--space-md); }
.footer-legal-name { margin: 0; font-size: var(--fs-small); color: var(--color-text-muted-on-dark); }
.footer-contact__list { display: grid; gap: var(--space-sm); }
.footer-contact__item { display: flex; gap: 0.65rem; align-items: flex-start; }
.footer-contact__icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--color-primary-light); }
.footer-contact__label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.10em; text-transform: uppercase; color: #fff; margin-bottom: 0.2rem; }
.footer-contact__item p { margin: 0; font-size: var(--fs-small); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); align-items: center; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.14); font-size: var(--fs-small); }
.footer-copyright { margin: 0; color: var(--color-text-muted-on-dark); }
.inception {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted-on-dark);
  text-decoration: none;
}
.inception:hover,
.inception:focus-visible { color: #fff; }
.inception__logo { height: 22px; width: auto; display: block; }
.inception__preview {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: 280px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-default), transform var(--transition-default), visibility var(--transition-default);
  pointer-events: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.inception:hover .inception__preview,
.inception:focus-visible .inception__preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.inception__preview-bar {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inception__preview-body {
  display: block;
  height: 168px;
  overflow: hidden;
  background: #fff;
}
.inception__preview-frame {
  width: 1120px;
  height: 672px;
  border: 0;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
}
@media (max-width: 768px) {
  .inception__preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inception__preview { transition: none; }
}

/* ---------- Legal / Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h1 { margin-bottom: var(--space-md); }
.legal h2 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.legal h3 { margin-top: var(--space-md); margin-bottom: var(--space-xs); }
.legal h4 { margin-top: var(--space-md); margin-bottom: var(--space-xs); font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
.legal p, .legal ul { margin-bottom: var(--space-sm); color: var(--color-text-muted); }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: 0.35rem; color: var(--color-text-muted); }
.legal a { color: var(--color-link); text-decoration: underline; }
.legal a:hover { color: var(--color-link-hover); }

/* ---------- FAQ (Layout wie auto.barankauf.de) ---------- */
.faq { display: grid; gap: var(--space-md); }
.faq .section-head { margin-bottom: 0; }
@media (min-width: 900px) {
  .faq { grid-template-columns: 1fr 1.6fr; gap: var(--space-xl); align-items: start; }
}

/* Accordion */
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 1.1rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--color-text);
  display: flex; justify-content: space-between; gap: 1rem;
  transition: color var(--transition-default);
}
.accordion__q:hover { color: var(--color-primary-light); }
.accordion__q::after {
  content: ""; flex: none; align-self: center;
  width: 0.95rem; height: 0.95rem;
  background-color: var(--color-primary-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%208'%3E%3Cpath%20d='M1%201.5%206%206.5%2011%201.5'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%208'%3E%3Cpath%20d='M1%201.5%206%206.5%2011%201.5'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition-default);
}
.accordion__item.open .accordion__q::after { transform: rotate(180deg); }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.accordion__item.open .accordion__a { max-height: 400px; }
.accordion__a p { padding-bottom: 1.1rem; color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) {
  .accordion__q, .accordion__q::after, .accordion__a { transition: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .textlink::after { transition: none; }
  .feature,
  .feature::before,
  .feature__icon,
  .feature h3 { transition: none; }
  .feature:hover { transform: none; }
  .channel,
  .channel::before,
  .channel__icon,
  .channel__value { transition: none; }
  .channel:hover { transform: none; }
  .hero__reel-slide { transition: none; }
  .split--6040:has(.media-frame--bmw-series),
  .split--4060:has(.media-frame--bmw-x-mini) { transition: none; }
  .split--6040:has(.media-frame--bmw-series):hover,
  .split--4060:has(.media-frame--bmw-x-mini):hover {
    grid-template-columns: 6fr 4fr;
  }
  .split--4060:has(.media-frame--bmw-x-mini):hover {
    grid-template-columns: 4fr 6fr;
  }
  .media-frame--bmw-series,
  .media-frame--bmw-x-mini { transition: none; }
  .split--6040:has(.media-frame--bmw-series):hover .media-frame--bmw-series,
  .split--4060:has(.media-frame--bmw-x-mini):hover .media-frame--bmw-x-mini {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
  }
  .hero__content > .eyebrow,
  .hero__content > h1,
  .hero__content > .hero__col { animation: none; }
  .section--finance::after {
    inset: 0;
    background-size: cover;
    background-position: center center;
    transform: scaleX(-1) scale(1.05);
  }
}
@media (max-width: 768px) {
  .section--finance {
    min-height: 28rem;
  }
  .section--finance::after {
    inset: -25% -5%;
    background-size: cover;
    background-position: center 40%;
    transform: translate3d(0, var(--finance-bg-y, 0px), 0) scaleX(-1);
  }
  .section--finance::before {
    background: linear-gradient(
      180deg,
      rgba(0, 18, 40, 0.42) 0%,
      rgba(0, 18, 40, 0.68) 55%,
      rgba(0, 18, 40, 0.42) 100%
    );
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-masonry { grid-template-columns: 1fr 1fr; }
  .vehicle-masonry .vehicle-card:first-child { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 768px) {
  .br-mobile { display: block; }
  .hyphen-mobile { display: inline; }
  .br-desktop { display: none; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .nav[data-open="true"] .nav__mobile { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: static;
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    gap: var(--space-sm);
  }
  .nav__contact {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    border-top: 1px solid var(--color-border);
  }
  .nav__contact-title {
    margin: 0 0 var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-primary);
  }
  .nav__contact .footer-contact__label { color: var(--color-text); }
  .nav__contact .footer-contact__item p { color: var(--color-text-muted); }
  .nav__contact a { color: var(--color-text); }
  .nav__contact a:hover { color: var(--color-primary); }
  .split--5050, .split--6040, .split--4060,
  .finance, .feature-grid, .steps--row, .steps--two,
  .vehicle-grid, .vehicle-masonry, .channels, .form__row { grid-template-columns: 1fr; }
  .split > .media-frame,
  .split > .map-frame { order: -1; }
  .split--center-mobile > :not(.media-frame):not(.map-frame) {
    text-align: center;
  }
  .split--center-mobile .hero__actions {
    justify-content: center;
    width: 100%;
  }
  .split--6040:has(.media-frame--bmw-series),
  .split--4060:has(.media-frame--bmw-x-mini) { transition: none; }
  .split--6040:has(.media-frame--bmw-series):hover,
  .split--4060:has(.media-frame--bmw-x-mini):hover {
    grid-template-columns: 1fr;
  }
  .media-frame--bmw-series,
  .media-frame--bmw-x-mini { transition: none; }
  .split--6040:has(.media-frame--bmw-series):hover .media-frame--bmw-series,
  .split--4060:has(.media-frame--bmw-x-mini):hover .media-frame--bmw-x-mini {
    aspect-ratio: 4 / 3;
  }
  .split--stretch > .map-frame {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    align-self: start;
  }
  .split--stretch > .map-frame .map-embed {
    min-height: 0;
    height: 100%;
  }
  .section-header-row { grid-template-columns: 1fr; }
  .badges--end { justify-content: flex-start; }
  .quicksearch { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo {
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .vehicle-masonry .vehicle-card:first-child { grid-column: span 1; }
}
@media (max-width: 480px) {
  .quicksearch { grid-template-columns: 1fr; }
}

/* ---------- Linktree / Bio-Link-Seite (/links, standalone) ---------- */
.linktree-page { background: var(--color-surface-alt); }
.linktree {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg) var(--space-sm);
}
.linktree__inner { width: 100%; max-width: 30rem; text-align: center; }
.linktree__logo { display: inline-block; margin-bottom: var(--space-md); }
.linktree__logo img { width: auto; height: 84px; }
.linktree__tagline {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-lg); max-width: 32ch;
}
.linktree__links { display: grid; gap: 0.7rem; }
.linktree__link {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--color-text); text-decoration: none;
  transition: border-color var(--transition-default), background var(--transition-default), transform var(--transition-default);
}
.linktree__link svg { flex: none; width: 20px; height: 20px; color: var(--color-primary); }
.linktree__link:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.linktree__link--primary {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}
.linktree__link--primary svg { color: #fff; }
.linktree__link--primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); }
.linktree__hours {
  color: var(--color-text-muted); font-size: var(--fs-small);
  margin: var(--space-lg) 0 var(--space-md);
}
.linktree__legal {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; justify-content: center;
  font-size: var(--fs-small);
}
.linktree__legal a { color: var(--color-text-muted); text-decoration: none; }
.linktree__legal a:hover { color: var(--color-primary); text-decoration: underline; }

/* ---------- Cookie-Consent (Variante B) + Maps click-to-load ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--color-surface-dark); color: var(--color-text-on-dark);
  border-top: 3px solid var(--color-primary-light);
  padding: var(--space-md) var(--space-sm);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner__text { margin: 0; max-width: 60ch; font-size: var(--fs-small); color: var(--color-text-muted-on-dark); }
.cookie-banner__text a { color: var(--color-text-on-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-banner__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cookie-banner__actions .btn--ghost:hover { border-color: #fff; color: #fff; }

@media (max-width: 768px) {
  .cookie-banner__inner {
    justify-content: center;
    text-align: center;
  }
  .cookie-banner__text { max-width: 42ch; }
  .cookie-banner__actions { justify-content: center; width: 100%; }
}
.footer-legal__cookie-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-align: left;
}
.footer-legal__cookie-btn:hover { text-decoration: underline; }

.map-consent {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 320px; padding: var(--space-lg);
  background: var(--color-surface-alt); border: 1px dashed var(--color-border);
  border-radius: var(--radius); color: var(--color-text-muted);
}
.map-consent__inner { max-width: 42ch; display: grid; gap: 0.6rem; justify-items: center; }
.map-consent__icon { width: 32px; height: 32px; color: var(--color-primary); }
.map-consent__title { font-family: var(--font-display); font-weight: 700; color: var(--color-text); margin: 0; }
.map-consent__text { margin: 0; font-size: var(--fs-small); }
.map-consent__text a { color: var(--color-link); text-decoration: underline; }
.map-consent [data-map-load] { margin-top: 0.3rem; }

/* ---------- ALTCHA-Widget ---------- */
/* ALTCHA laeuft unsichtbar (auto="onload"): Widget ausblenden, Funktion bleibt.
   !important noetig, da das Widget intern :host { display: block } setzt und bei
   normalen Regeln die Shadow-DOM-Regel gegen aeussere Styles gewinnt. */
.altcha { display: none !important; }
.form-altcha-error { color: #C0392B; font-size: var(--fs-small); margin: 0.15rem 0 0; }

/* ---------- Visually hidden (Screenreader/SEO) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
