/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Premium light palette */
  --bg-page: #ffffff;
  --bg-surface: #f6f6f4;
  --surface-muted: #ececea;
  --panel-light: #f2f2f0;

  --text-primary: #121212;
  --text-light: var(--text-primary);
  --text-secondary: rgba(18, 18, 18, 0.68);
  --text-muted: rgba(18, 18, 18, 0.48);
  --text-subtle: rgba(18, 18, 18, 0.35);

  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --text-on-dark-subtle: rgba(255, 255, 255, 0.55);

  --brand: #121212;
  --brand-deep: #000000;
  --brand-dim: rgba(18, 18, 18, 0.55);

  --stroke: rgba(0, 0, 0, 0.08);
  --stroke-strong: rgba(0, 0, 0, 0.14);

  --nav-bg: rgba(255, 255, 255, 0.94);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.1);

  --accent-red: #c50000;
  --home-mark-a: rgba(18, 18, 18, 0.68);
  --home-mark-b: rgba(18, 18, 18, 0.22);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-logo: 'Raleway', sans-serif;
  --logo-weight: 400;
  --logo-weight-light: 300;
  --logo-tagline-weight: 500;
  --logo-tracking: 0.22em;
  --logo-tracking-wide: 0.28em;
  --heading-stretch: 1.12;

  --theme-toggle-a: rgba(18, 18, 18, 0.68);
  --theme-toggle-b: rgba(18, 18, 18, 0.22);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: #0e0e0e;
  --bg-surface: #161616;
  --surface-muted: #1e1e1e;
  --panel-light: #1a1a1a;

  --text-primary: #f2f2f0;
  --text-secondary: rgba(242, 242, 240, 0.68);
  --text-muted: rgba(242, 242, 240, 0.48);
  --text-subtle: rgba(242, 242, 240, 0.35);

  --brand: #f2f2f0;
  --brand-deep: #ffffff;
  --brand-dim: rgba(242, 242, 240, 0.55);

  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);

  --nav-bg: rgba(14, 14, 14, 0.94);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.55);

  --home-mark-a: rgba(255, 255, 255, 0.82);
  --home-mark-b: rgba(255, 255, 255, 0.28);

  --theme-toggle-a: rgba(255, 255, 255, 0.82);
  --theme-toggle-b: rgba(255, 255, 255, 0.28);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  color-scheme: light;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: min(1900px, 100%);
  padding-inline: clamp(20px, 4vw, 64px);
}

/* ===== Site header + overlay nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(18px, 2.5vw, 28px) clamp(24px, 4vw, 48px);
  pointer-events: none;
  transition: justify-content 0s 0.32s;
}

body.nav-open .site-header {
  justify-content: flex-end;
}

.site-header > * {
  pointer-events: auto;
}

.site-home-mark {
  display: none;
}

body.subpage .site-home-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: clamp(18px, 2.5vw, 28px);
  left: clamp(24px, 4vw, 48px);
  z-index: 2050;
  padding: 4px;
  border-radius: 50%;
}

body.nav-open .site-home-mark {
  visibility: hidden;
  pointer-events: none;
}

.site-home-mark-icon {
  display: block;
  width: clamp(26px, 2.6vw, 32px);
  height: clamp(26px, 2.6vw, 32px);
  border-radius: 50%;
  background: linear-gradient(to right, var(--home-mark-a) 50%, var(--home-mark-b) 50%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-home-mark:hover .site-home-mark-icon,
.site-home-mark:focus-visible .site-home-mark-icon {
  transform: rotate(180deg);
}

body[data-header-theme="dark"] .site-home-mark {
  --home-mark-a: rgba(255, 255, 255, 0.82);
  --home-mark-b: rgba(255, 255, 255, 0.28);
}

body[data-header-theme="light"] .site-home-mark {
  --home-mark-a: rgba(18, 18, 18, 0.68);
  --home-mark-b: rgba(18, 18, 18, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .site-home-mark-icon {
    transition: background 0.25s ease;
  }

  .site-home-mark:hover .site-home-mark-icon,
  .site-home-mark:focus-visible .site-home-mark-icon {
    transform: none;
    background: linear-gradient(to right, var(--home-mark-b) 50%, var(--home-mark-a) 50%);
  }
}

.site-header-logo {
  display: none;
}


.site-header-logo-svg {
  display: block;
  width: clamp(42px, 5vw, 54px);
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.site-header-wordmark {
  font-family: var(--font-logo);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: var(--logo-weight);
  letter-spacing: var(--logo-tracking-wide);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.site-header[data-header-theme="dark"] .site-header-logo-svg,
body.nav-open .site-header-logo-svg {
  filter: brightness(0) invert(1);
}

.site-header[data-header-theme="dark"] .site-header-wordmark,
body.nav-open .site-header-wordmark {
  color: var(--text-on-dark);
}

.site-header[data-header-theme="light"] .site-header-wordmark {
  color: var(--text-primary);
}

.menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.site-header[data-header-theme="dark"] .menu-trigger,
body.nav-open .menu-trigger {
  color: var(--text-on-dark);
}

.menu-trigger-line {
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform 0.32s ease, opacity 0.32s ease;
  transform-origin: center;
}

.menu-trigger.is-active .menu-trigger-line:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-trigger.is-active .menu-trigger-line:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.18);
  transition:
    visibility 0s 0.42s,
    opacity 0.42s ease;
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    visibility 0s 0s,
    opacity 0.42s ease;
}

.nav-overlay-panel {
  position: absolute;
  inset: 0;
  background: #181818;
  color: var(--text-on-dark);
  transform: translateY(-100%);
  transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: auto;
}

.nav-overlay-home-mark {
  position: absolute;
  top: clamp(18px, 2.5vw, 28px);
  left: clamp(24px, 4vw, 48px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  --home-mark-a: rgba(255, 255, 255, 0.82);
  --home-mark-b: rgba(255, 255, 255, 0.28);
}

.nav-overlay-home-mark:hover .site-home-mark-icon,
.nav-overlay-home-mark:focus-visible .site-home-mark-icon {
  transform: rotate(180deg);
}

.nav-overlay.is-open .nav-overlay-panel {
  transform: translateY(0);
}

.nav-overlay-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: clamp(12px, 2.5vh, 24px);
  min-height: 100%;
  min-height: 100dvh;
  padding: clamp(88px, 12vh, 120px) clamp(24px, 5vw, 64px) clamp(20px, 3vh, 40px);
  box-sizing: border-box;
}

.nav-overlay-primary,
.nav-overlay-secondary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-overlay-primary {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 18px);
  min-width: min(100%, 560px);
}

.nav-overlay-primary a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-on-dark);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-overlay-primary a:hover,
.nav-overlay-primary a:focus-visible {
  color: rgba(255, 255, 255, 0.72);
}

.nav-overlay-primary a[aria-current="page"] {
  color: var(--accent-red);
}

.nav-overlay-secondary {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 12px 48px;
}

.nav-overlay-brand {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  color: var(--text-on-dark);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.is-open .nav-overlay-brand {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.nav-overlay-brand-svg {
  display: block;
  width: clamp(42px, 5vw, 54px);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-overlay-brand-wordmark {
  font-family: var(--font-logo);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: var(--logo-weight);
  letter-spacing: var(--logo-tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.nav-overlay-secondary a {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

.nav-overlay-secondary a:hover,
.nav-overlay-secondary a:focus-visible {
  color: var(--text-on-dark);
}

.nav-overlay-secondary a[aria-current="page"] {
  color: var(--accent-red);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    row-gap: 0;
    grid-template-areas: none;
  }

  .nav-overlay-primary {
    min-width: 0;
  }

  .nav-overlay-primary a {
    font-size: clamp(2.35rem, 11vw, 3.75rem);
  }

  .nav-overlay-secondary {
    align-self: flex-start;
    justify-self: auto;
    margin-top: clamp(28px, 5vh, 40px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-overlay-brand {
    align-self: flex-start;
    justify-self: auto;
    margin-top: clamp(28px, 5vh, 40px);
  }

  .nav-overlay-brand-wordmark {
    letter-spacing: 0.18em;
  }

  .site-header-wordmark {
    letter-spacing: 0.18em;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-page);
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 27, 34, 0.12) 0%,
    rgba(24, 27, 34, 0.2) 55%,
    rgba(18, 21, 27, 0.34) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-dim);
  margin-bottom: 24px;
}

.hero-text {
  text-align: center;
}

.hero-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(64px, 12vw, 120px);
  transform: translateY(0) scale(1);
  transition: transform 0.7s ease-in-out;
}

.hero-brand-stack:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Brand lockup wrapper — plain column, no slab (matches pre–frost-panel hero) */
.hero-brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 720px);
  width: 100%;
  text-align: center;
}

/* Silhouette: white paths + subtle radial halo behind graphic only (old hero-car-svg look) */
.hero-brand-svg {
  display: block;
  width: min(100%, clamp(220px, 72vw, 620px));
  height: auto;
  margin: 0 auto 0;
  padding: 16px 0 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center top;
  background: radial-gradient(ellipse at center, rgba(35, 40, 48, 0.28) 0%, rgba(35, 40, 48, 0) 72%);
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition: filter 0.7s ease-in-out;
}

.hero-brand-stack:hover .hero-brand-svg {
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.75))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
    drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

.hero-brand-lockup .hero-brandname {
  font-family: var(--font-logo);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: var(--logo-weight);
  letter-spacing: var(--logo-tracking);
  text-transform: uppercase;
  color: var(--text-on-dark);
  line-height: 1.14;
  margin: clamp(-42px, -3.4vw, -9px) auto 12px;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.38),
    0 6px 28px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.45);
  transition: color 0.7s ease-in-out, text-shadow 0.7s ease-in-out;
}

.hero-brand-stack:hover .hero-brand-lockup .hero-brandname {
  color: #f6f9fc;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.75),
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-brand-lockup .hero-tagline {
  font-family: var(--font-logo);
  font-size: clamp(0.82rem, 1.35vw, 1.05rem);
  font-weight: var(--logo-tagline-weight);
  letter-spacing: var(--logo-tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
  margin: 0;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.14),
    0 6px 22px rgba(0, 0, 0, 0.1);
  transition: color 0.7s ease-in-out, text-shadow 0.7s ease-in-out;
}

.hero-brand-stack:hover .hero-brand-lockup .hero-tagline {
  color: rgba(227, 232, 238, 0.85);
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.7),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-stack,
  .hero-brand-stack:hover {
    transform: none;
  }

  .hero-brand-svg,
  .hero-brand-lockup,
  .hero-brand-lockup .hero-brandname,
  .hero-brand-lockup .hero-tagline {
    transition-duration: 0.01ms;
  }

  .service-card:hover {
    transform: none;
  }

  .marken-track {
    animation: none !important;
  }
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  opacity: 80%;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-red);
  cursor: pointer;
  transition: all 0.35s ease;
}

.hero .btn-primary,
.cta-section:not(.cta-section--light) .btn-primary {
  color: #fff;
}

.cta-section--light .btn-primary {
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 0, 0, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-page);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(18, 18, 18, 0.15);
}

.btn-large {
  padding: 18px 48px;
  font-size: 0.9rem;
}

.hero-car {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-car-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 0 56px rgba(140, 175, 220, 0.22));
  animation: carReveal 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes carReveal {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(140, 175, 220, 0)) brightness(0.35);
    transform: scale(0.95);
  }
  60% {
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(140, 175, 220, 0.28)) brightness(1);
    transform: scale(1);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 56px rgba(140, 175, 220, 0.22)) brightness(1);
    transform: scale(1);
  }
}

/* ===== Animations ===== */
.anim-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-slide {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Syne page headings — slight vertical stretch (nav overlay excluded) */
.inventory-heading,
.section-heading,
.cta-heading,
.vehicle-catalog-heading,
.page-title,
.page-section-heading,
.hero-brand-lockup .hero-brandname,
.hero-brand-lockup .hero-tagline {
  display: inline-block;
  transform: scaleY(var(--heading-stretch));
  transform-origin: left center;
}

.cta-section .cta-heading,
.hero-brand-lockup .hero-brandname,
.hero-brand-lockup .hero-tagline {
  transform-origin: center center;
}

.inventory-heading.anim-slide,
.section-heading.anim-slide,
.cta-heading.anim-slide,
.vehicle-catalog-heading.anim-slide,
.page-title.anim-slide,
.page-section-heading.anim-slide {
  transform: translateY(32px) scaleY(var(--heading-stretch));
}

.inventory-heading.anim-slide.visible,
.section-heading.anim-slide.visible,
.cta-heading.anim-slide.visible,
.vehicle-catalog-heading.anim-slide.visible,
.page-title.anim-slide.visible,
.page-section-heading.anim-slide.visible {
  transform: translateY(0) scaleY(var(--heading-stretch));
}

/* ===== Inventory / Showcase ===== */
.inventory {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
  padding: 100px 0 80px;
}

.inventory-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.inventory-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  min-width: 0;
  max-width: 100%;
}

.inventory-tabs-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.inventory-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-padding-inline: 20px;
  padding-bottom: 14px;
}

.inventory-tabs::-webkit-scrollbar {
  display: none;
}

.inventory-tab {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.inventory-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  background: var(--text-primary);
  opacity: 0;
  transform: scaleX(0.92);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.65s ease-in-out;
  pointer-events: none;
}

.inventory-tab.is-active::after,
.inventory-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.inventory-tab.is-active,
.inventory-tab[aria-selected="true"] {
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.25s ease, font-size 0.65s ease-in-out, font-weight 0.25s ease;
}

.inventory-showcase.is-image-hovered .inventory-tab.is-active,
.inventory-showcase.is-image-hovered .inventory-tab[aria-selected="true"] {
  font-size: clamp(0.88rem, 1.22vw, 1.07rem);
}

.inventory-showcase.is-image-hovered .inventory-tab.is-active::after,
.inventory-showcase.is-image-hovered .inventory-tab[aria-selected="true"]::after {
  transform: scaleX(1.28);
}

.inventory-tab:hover,
.inventory-tab:focus-visible {
  color: var(--text-primary);
}

.inventory-tabs-track {
  position: relative;
  height: 1px;
  background: var(--stroke-strong);
}

/* Vehicle list filter still uses a sliding track indicator */
.inventory-tabs-indicator {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: var(--indicator-w, 0);
  background: var(--text-primary);
  transition:
    transform 0.65s ease-in-out,
    width 0.65s ease-in-out;
  transform: translateX(var(--indicator-x, 0));
}

.inventory-stage {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.inventory-showcase .slide-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.inventory .slide-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: clamp(320px, 42vw, 620px);
  max-height: min(78vh, 760px);
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
  background: var(--surface-muted);
}

.slide-image-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-image-layer--base {
  z-index: 1;
}

.slide-image-layer--cover {
  z-index: 2;
  transform: translate3d(0, 0, 0);
  transition: transform 0.78s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.slide-image-layer--cover.is-revealing-left {
  transform: translate3d(-100%, 0, 0);
}

.slide-image-layer--cover.is-revealing-right {
  transform: translate3d(100%, 0, 0);
}

.slide-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.65s ease-in-out;
}

.inventory .slide-image:hover .slide-image-layer img {
  transform: scale(1.04);
}

.slide-caption-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.inventory-showcase .slide-caption {
  width: 100%;
  padding: clamp(8px, 1.5vw, 16px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

.slide-caption-block {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-caption-block.is-leaving {
  opacity: 0;
  transform: translateY(-16px);
  transition-duration: 0.22s;
}

.slide-caption-block.is-entering {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  .slide-image-layer--cover,
  .slide-caption-block {
    transition: none !important;
  }

  .slide-image-layer img {
    transition: none;
  }

  .inventory .slide-image:hover .slide-image-layer img {
    transform: none;
  }

  .inventory-showcase.is-image-hovered .inventory-tab.is-active,
  .inventory-showcase.is-image-hovered .inventory-tab[aria-selected="true"] {
    font-size: clamp(0.82rem, 1.15vw, 1rem);
  }

  .inventory-showcase.is-image-hovered .inventory-tab.is-active::after,
  .inventory-showcase.is-image-hovered .inventory-tab[aria-selected="true"]::after {
    transform: scaleX(1);
  }
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Carousel (testimonials) */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 clamp(8px, 2vw, 24px);
}

.slide-card {
  width: 100%;
  margin: 0 auto;
}

.slide-caption {
  padding: clamp(8px, 1.5vw, 16px) 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.25;
}

.inventory .slide-price {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 6px;
}

.inventory .slide-tax {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.inventory .slide-netto {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.inventory .slide-specs {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}

.inventory .slide-spec {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 12px;
  align-items: baseline;
}

.inventory .slide-spec dt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.inventory .slide-spec dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.inventory .slide-emissions {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-subtle);
  margin: 0 0 24px;
}

.slide-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--stroke-strong);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.slide-link:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* Legacy slide panel (service cards still use slide-detail-btn) */
.slide-info {
  background: var(--panel-light);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-primary);
}

.slide-price {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.slide-tax {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.slide-netto {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.slide-specs {
  margin-bottom: 16px;
}

.slide-spec {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.slide-spec strong {
  font-weight: 600;
}

.slide-emissions {
  margin-bottom: 20px;
}

.slide-emissions span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.slide-detail-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--text-primary);
  transition: all 0.25s ease;
  text-decoration: none;
}

.slide-detail-btn:hover {
  background: var(--text-primary);
  color: var(--bg-page);
}

/* Arrows */
.carousel-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2.8rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s;
  line-height: 1;
  padding: 0;
}

.carousel-arrow:hover {
  opacity: 1;
}

.carousel-prev {
  margin-right: 12px;
}

.carousel-next {
  margin-left: 12px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--stroke-strong);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--text-primary);
}

/* ===== Marken — logo marquee ===== */
.marken-strip {
  --logo-marquee-gap: clamp(44px, 8vw, 120px);

  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}

.marken-strip-heading {
  margin-bottom: 40px;
}

.marken-carousel {
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marken-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  /* Same gap between duplicate strips as between logos → seamless `-50%` loop */
  gap: var(--logo-marquee-gap);
  animation: marken-marquee 45s linear infinite;
  will-change: transform;
}

.marken-set {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--logo-marquee-gap);
}

.marken-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(72px, 10.5vw, 108px);
}

.marken-logo-wrap img {
  display: block;
  height: 100%;
  width: auto;
  max-width: min(300px, 46vw);
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(0.08) brightness(1.06);
}

@keyframes marken-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    /* Two identical strips → half total width aligns with t=0; no flash at loop jump */
    transform: translate3d(-50%, 0, 0);
  }
}

/* Polestar-style text links */
.text-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--stroke-strong);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-link:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* ===== Service — editorial blocks ===== */
.service-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
  padding: 64px 0 56px;
  text-align: left;
}

.service-section-heading {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.service-teaser {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.service-teaser-link {
  margin: 0;
}

.editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}

.editorial-block:last-child {
  margin-bottom: 0;
}

.editorial-block--reverse {
  direction: rtl;
}

.editorial-block--reverse > * {
  direction: ltr;
}

.editorial-block-media {
  width: 100%;
  min-height: clamp(320px, 38vw, 480px);
  background-color: var(--surface-muted);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
}

.editorial-block-media--werkstatt {
  background-image: url("../assets/img/werkstatt.avif");
}

.editorial-block-media--finanzierung {
  background-image: url("../assets/img/finanzierung.avif");
}

.editorial-block-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: clamp(16px, 3vw, 32px) 0;
  background: transparent;
}

.editorial-block-title {
  width: 100%;
  max-width: none;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text-light);
  margin: 0;
}

.editorial-block-lead {
  width: 100%;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 247, 251, 0.68);
  max-width: none;
  margin-bottom: 32px;
}

.editorial-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
}

.editorial-block-actions .text-link {
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
}

@media (max-width: 1024px) {
  .editorial-block,
  .editorial-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .editorial-block-media {
    min-height: clamp(220px, 45vw, 320px);
  }

  .editorial-block-content {
    padding: 0;
  }
}

/* Legacy service cards (unused on homepage) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 36px);
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-muted);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.service-card-visual {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 6 / 3;
  min-height: 180px;
  background-color: var(--surface-muted);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.service-card--werkstatt .service-card-visual {
  background-image: url("../assets/img/werkstatt.avif");
}

.service-card--finanzierung .service-card-visual {
  background-image: url("../assets/img/finanzierung.avif");
}

.service-card--ankauf .service-card-visual {
  background-image: url("../assets/img/ankauf.avif");
}

.service-card-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 0;
  padding: clamp(20px, 2.8vw, 32px) clamp(18px, 2.2vw, 28px);
  background: var(--panel-light);
  color: var(--text-primary);
}

.service-card-panel h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.3;
}

.service-card-panel p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1 1 auto;
}

.service-card-panel .slide-detail-btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Testimonials ===== */
.testimonials-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  padding: 64px 0 156px;
  text-align: left;
}

.testimonials-section-heading {
  margin-bottom: 0;
}

.testimonials-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: clamp(20px, 3vw, 28px) 0 clamp(40px, 5vw, 56px);
}

.testimonials-score-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1;
}

.testimonials-score-sep {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.testimonials-score-meta {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 300;
  color: var(--text-muted);
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.testimonials-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: clamp(32px, 4vw, 48px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-carousel .testimonial-card {
  flex: 0 0 calc((100% - 96px) / 3);
  min-width: calc((100% - 96px) / 3);
}

.testimonials-dots {
  margin-top: clamp(48px, 6vw, 72px);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  min-height: 100%;
}

.testimonial-stars {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.testimonial-quote {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.testimonial-meta cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.testimonials-state {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 24px 0;
}

@media (max-width: 1024px) {
  .testimonials-carousel .testimonial-card {
    flex: 0 0 calc((100% - 48px) / 2);
    min-width: calc((100% - 48px) / 2);
  }
}

@media (max-width: 768px) {
  .testimonials-carousel .carousel-arrow {
    display: none;
  }

  .testimonials-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .testimonials-track-wrap::-webkit-scrollbar {
    display: none;
  }

  .testimonials-track {
    gap: 24px;
  }

  .testimonials-carousel .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 12vw, 140px) 0;
  text-align: center;
  background: var(--bg-page);
}

.cta-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 21, 27, 0.5) 0%,
    rgba(18, 21, 27, 0.78) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.cta-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section--light {
  background: var(--bg-page);
}

.cta-section--light .cta-heading {
  color: var(--text-light);
}

.cta-section--light .cta-sub {
  color: var(--text-secondary);
}

/* ===== Location / Map ===== */
.location-section {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg-surface);
}

.location-section-heading {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
  min-width: 0;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.location-address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.location-address strong {
  color: var(--text-light);
  font-weight: 600;
}

.location-hours {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.location-route-link {
  margin-top: 4px;
}

.location-map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  background: var(--surface-muted);
  aspect-ratio: 16 / 10;
  min-height: clamp(280px, 38vw, 460px);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 38vw, 460px);
  border: 0;
}

@media (max-width: 768px) {
  .location-section {
    overflow-x: clip;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .location-map {
    aspect-ratio: 4 / 3;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .location-map iframe {
    min-height: 0;
    height: 100%;
  }
}

/* ===== About page ===== */
.about-hero {
  padding: clamp(100px, 12vw, 140px) 0 clamp(40px, 5vw, 56px);
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
}

.about-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

.about-section {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--bg-page);
}

.about-section--alt {
  background: var(--bg-surface);
}

.about-section-heading {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-intro .inventory-heading {
  margin-bottom: 0;
}

.about-intro .about-prose {
  align-self: end;
}

.about-prose p {
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.about-team-member {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 32px);
  align-items: center;
  text-align: left;
}

.about-team-photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.about-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transform: scale(1.06);
}

.about-team-body {
  min-width: 0;
}

.about-team-role {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dim);
  margin-bottom: 10px;
}

.about-team-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.1vw, 1.7rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 14px;
}

.about-team-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 880px;
}

.about-story-item {
  display: grid;
  grid-template-columns: minmax(72px, 120px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 32px) 0;
  border-top: 1px solid var(--stroke-strong);
}

.about-story-item:first-child {
  border-top: none;
  padding-top: 0;
}

.about-story-year {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.about-story-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.location-contact {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Subpage image heroes ===== */
.subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 55vw, 620px);
  display: flex;
  align-items: flex-end;
  padding: clamp(100px, 12vw, 140px) 0 clamp(48px, 6vw, 72px);
}

.subpage-hero-media {
  position: absolute;
  inset: 0;
}

.subpage-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.88) 0%,
    rgba(18, 18, 18, 0.42) 45%,
    rgba(18, 18, 18, 0.18) 100%
  );
}

.subpage-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.subpage-hero .inventory-heading {
  color: var(--text-on-dark);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.subpage-hero .about-lead {
  color: var(--text-on-dark-muted);
  max-width: 640px;
}

.subpage-hero--probefahrt .subpage-hero-image {
  object-position: center 45%;
}

.subpage-hero--about .subpage-hero-image {
  object-position: 58% center;
}

.subpage-hero--kontakt .subpage-hero-image {
  object-position: 32% center;
}

.subpage-hero--fahrzeuge .subpage-hero-image {
  object-position: center 42%;
}

.subpage-hero--fahrzeuge .vehicle-catalog-heading {
  color: var(--text-on-dark);
}

.subpage-hero--fahrzeuge .vehicle-catalog-lead {
  color: var(--text-on-dark-muted);
}

/* ===== Probefahrt page ===== */
.probefahrt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.probefahrt-form {
  max-width: none;
}

.probefahrt-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.probefahrt-benefit {
  padding: clamp(24px, 3vw, 32px) 0;
  border-top: 1px solid var(--stroke-strong);
}

.probefahrt-benefit:first-child {
  border-top: none;
  padding-top: 0;
}

.probefahrt-benefit h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 10px;
}

.probefahrt-benefit p {
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  color: var(--text-secondary);
  line-height: 1.75;
}

.kontakt-layout {
  max-width: min(1120px, 100%);
  margin-inline: auto;
  gap: clamp(40px, 5vw, 72px);
  grid-template-rows: auto auto;
}

.kontakt-layout-heading {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.kontakt-layout .probefahrt-form-col {
  grid-column: 1;
  grid-row: 2;
}

.kontakt-layout .probefahrt-benefits {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.kontakt-layout .probefahrt-benefit h3 {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.kontakt-layout .probefahrt-benefit p {
  font-size: clamp(0.86rem, 0.95vw, 0.92rem);
}

.probefahrt-experience {
  position: relative;
  min-height: clamp(360px, 50vw, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.probefahrt-experience-media {
  position: absolute;
  inset: 0;
}

.probefahrt-experience-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.probefahrt-experience-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.88) 0%,
    rgba(18, 18, 18, 0.45) 45%,
    rgba(18, 18, 18, 0.25) 100%
  );
}

.probefahrt-experience-content {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 88px) 0;
}

.probefahrt-experience-content .inventory-heading {
  color: var(--text-on-dark);
  margin-bottom: clamp(16px, 2vw, 24px);
  max-width: 14ch;
}

.probefahrt-experience-copy {
  max-width: 520px;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 300;
  color: var(--text-on-dark-muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .probefahrt-grid {
    grid-template-columns: 1fr;
    gap: clamp(56px, 8vw, 72px);
  }

  .kontakt-layout-heading,
  .kontakt-layout .probefahrt-form-col,
  .kontakt-layout .probefahrt-benefits {
    grid-column: 1;
    grid-row: auto;
  }

  .kontakt-layout-heading {
    margin-bottom: clamp(32px, 4vw, 48px);
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro .inventory-heading {
    margin-bottom: clamp(32px, 4vw, 48px);
  }

  .about-intro .about-prose {
    align-self: start;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
    gap: clamp(36px, 5vw, 48px);
  }
}

@media (max-width: 640px) {
  .about-team-member {
    grid-template-columns: min(300px, 42vw) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .about-story-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ===== Vehicle catalog (listing page) ===== */
.vehicle-catalog-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.vehicle-catalog-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

.vehicle-catalog {
  padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 10vw, 120px);
  background: var(--bg-surface);
}

.vehicle-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.vehicle-catalog-tabs-wrap {
  flex: 1 1 280px;
  min-width: 0;
  position: relative;
}

.vehicle-catalog-count {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vehicle-catalog-list {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.vehicle-catalog-list.is-loading {
  min-height: 320px;
}

.vehicle-catalog-list .vehicle-state {
  width: 100%;
}

.vehicle-catalog-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  color: inherit;
  border-top: 1px solid var(--stroke-strong);
  padding-top: clamp(32px, 4vw, 48px);
}

.vehicle-catalog-card:first-child .vehicle-catalog-card-link {
  border-top: none;
  padding-top: 0;
}

.vehicle-catalog-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: clamp(240px, 32vw, 480px);
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-muted);
}

.vehicle-catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-catalog-card-link:hover .vehicle-catalog-card-media img {
  transform: scale(1.03);
}

.vehicle-catalog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 28px);
  padding: clamp(8px, 1.5vw, 16px) 0;
}

.vehicle-catalog-card-brand {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dim);
  margin-bottom: 8px;
}

.vehicle-catalog-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 10px;
}

.vehicle-catalog-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vehicle-catalog-card-specs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.vehicle-catalog-card-spec {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 12px;
  align-items: baseline;
}

.vehicle-catalog-card-spec dt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.vehicle-catalog-card-spec dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.vehicle-catalog-card-footer {
  margin-top: auto;
  padding-top: 8px;
}

.vehicle-catalog-card-price {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 6px;
}

.vehicle-catalog-card-tax {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.vehicle-catalog-card-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--stroke-strong);
  padding-bottom: 4px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.vehicle-catalog-card-link:hover .vehicle-catalog-card-cta {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

@media (max-width: 900px) {
  .vehicle-catalog-card-link {
    grid-template-columns: 1fr;
  }

  .vehicle-catalog-card-media {
    min-height: clamp(220px, 50vw, 360px);
  }
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 45%);
  padding: clamp(96px, 11vw, 120px) 0 clamp(48px, 5vw, 56px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2.85fr) repeat(2, 1fr) minmax(210px, 1.35fr);
  gap: clamp(36px, 4vw, 56px);
  margin-bottom: 60px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-brand-link {
  display: inline-block;
  color: inherit;
}

.footer-brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(100%, 280px);
}

.footer-brand-svg {
  display: block;
  width: clamp(160px, 16vw, 240px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter: none;
  transition: filter 0.35s ease;
}

html[data-theme="dark"] .footer-brand-svg {
  filter: brightness(0) invert(1);
}

.footer-brandname {
  font-family: var(--font-logo);
  font-size: clamp(0.88rem, 1.4vw, 1.12rem);
  font-weight: var(--logo-weight);
  letter-spacing: var(--logo-tracking-wide);
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.2;
  margin: clamp(-12px, -1.6vw, -6px) 0 8px;
  width: 100%;
}

.footer-tagline {
  font-family: var(--font-logo);
  font-size: clamp(0.58rem, 0.85vw, 0.68rem);
  font-weight: var(--logo-tagline-weight);
  letter-spacing: var(--logo-tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  width: 100%;
}

.footer-logo {
  display: block;
  height: clamp(72px, 12vw, 156px);
  width: auto;
  max-width: min(560px, 100%);
  object-fit: contain;
  object-position: left center;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-phone {
  margin-top: 8px;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--stroke);
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-subtle);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide {
    padding-inline: 20px;
  }

  .hero-content {
    padding-top: 56px;
    padding-inline: 20px;
  }

  .hero-brand-stack {
    margin-bottom: clamp(40px, 10vw, 64px);
  }

  .hero-brand-lockup .hero-brandname {
    margin-top: clamp(-28px, -6vw, -12px);
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    letter-spacing: 0.16em;
  }

  .hero-brand-lockup .hero-tagline {
    font-size: clamp(0.72rem, 3.2vw, 0.92rem);
    letter-spacing: 0.18em;
  }

  .site-header[data-header-theme="dark"] .menu-trigger {
    background: rgba(0, 0, 0, 0.42);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .inventory {
    padding: clamp(64px, 14vw, 80px) 0 clamp(56px, 12vw, 72px);
  }

  .inventory-heading {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }

  .inventory-showcase .slide-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .inventory .slide-image {
    min-height: clamp(240px, 56vw, 360px);
    max-height: min(58vh, 420px);
  }

  .slide-caption-wrap {
    min-height: 0;
  }

  .inventory-showcase .slide-caption {
    padding: 0;
  }

  .inventory .slide-spec {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .carousel-arrow {
    display: none;
  }

  .editorial-block-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer {
    padding: clamp(72px, 14vw, 96px) 0 max(96px, calc(64px + env(safe-area-inset-bottom, 0px)));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vw, 52px);
    margin-bottom: clamp(40px, 8vw, 48px);
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
    justify-content: center;
  }

  .footer-brand-lockup {
    align-items: center;
    text-align: center;
    margin-inline: auto;
    max-width: min(100%, 320px);
  }

  .footer-brand-svg {
    margin-inline: auto;
    width: clamp(168px, 44vw, 228px);
  }

  .footer-brandname {
    font-size: clamp(0.98rem, 2.8vw, 1.18rem);
  }

  .footer-tagline {
    font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  }

  .footer-col h4 {
    margin-bottom: 16px;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
  }

  .footer-col a,
  .footer-col p {
    font-size: clamp(0.92rem, 2.4vw, 1rem);
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .footer-col.footer-contact {
    grid-column: auto;
    padding-top: clamp(36px, 7vw, 44px);
    border-top: 1px solid var(--stroke);
  }

  .footer-phone {
    margin-top: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 4vw, 28px);
    text-align: center;
    padding-top: clamp(32px, 6vw, 40px);
  }

  .footer-bottom p {
    max-width: 28ch;
    line-height: 1.6;
    font-size: clamp(0.82rem, 2.2vw, 0.88rem);
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }

  .footer-legal a {
    font-size: clamp(0.82rem, 2.2vw, 0.88rem);
  }

  /* Unsere Marken: ~2× logo size on small screens */
  .marken-strip {
    --logo-marquee-gap: clamp(56px, 14vw, 96px);
  }

  .marken-logo-wrap {
    height: clamp(144px, 21vw, 200px);
  }

  .marken-logo-wrap img {
    max-width: min(560px, 92vw);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    gap: 36px;
  }

  .footer-col.footer-contact {
    padding-top: 32px;
  }

  .footer-legal {
    flex-direction: row;
    justify-content: center;
    gap: 12px 24px;
  }
}

/* ===== Subpages ===== */
body.subpage {
  position: relative;
  padding-top: 0;
}

.page-hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 88px);
  border-bottom: 1px solid var(--stroke);
}

.page-kicker {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-dim);
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 16ch;
}

.page-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

.page-section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.page-section--alt {
  background: var(--bg-surface);
}

.page-section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 32px;
}

.page-prose {
  max-width: 720px;
}

.page-prose p,
.page-prose li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.page-prose ul {
  padding-left: 1.2rem;
  margin-bottom: 24px;
}

.page-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-card {
  background: var(--bg-surface);
  border: 1px solid var(--stroke-strong);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-card:hover {
  border-color: rgba(197, 0, 0, 0.3);
  box-shadow: var(--shadow-soft);
}

.page-card-image {
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
  overflow: hidden;
}

.page-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-card-body {
  padding: 24px;
}

.page-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.page-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.page-feature-list {
  display: grid;
  gap: 16px;
}

.page-feature {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-page);
  border: 1px solid var(--stroke);
  border-radius: 4px;
}

.page-feature-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--accent-red);
  border-radius: 50%;
}

.page-feature h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.page-feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}

.page-stat {
  min-width: 120px;
}

.page-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.page-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-brand-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 32px;
  filter: none;
  opacity: 0.9;
}

.page-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}

.page-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.page-form input,
.page-form select,
.page-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: var(--bg-page);
  border: 1px solid var(--stroke-strong);
  border-radius: 3px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.page-form input::placeholder,
.page-form textarea::placeholder {
  color: var(--text-subtle);
}

.page-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23121212' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.page-form select:invalid,
.page-form select.placeholder-shown {
  color: var(--text-subtle);
}

.page-form select option {
  color: var(--text-primary);
  background-color: var(--bg-page);
}

.page-form select option[disabled] {
  color: var(--text-subtle);
}

.page-form input:focus,
.page-form select:focus,
.page-form textarea:focus {
  outline: none;
  border-color: rgba(197, 0, 0, 0.45);
  background-color: var(--bg-page);
  box-shadow: 0 0 0 1px rgba(197, 0, 0, 0.15);
}

.page-form select:focus:valid {
  color: var(--text-primary);
}

.page-form textarea {
  min-height: 140px;
  resize: vertical;
}

.page-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  border-radius: 4px;
}

.page-team-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface-muted);
}

.page-team-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}

.page-team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-timeline {
  display: grid;
  gap: 24px;
  max-width: 720px;
}

.page-timeline-item {
  padding-left: 24px;
  border-left: 2px solid var(--accent-red);
}

.page-timeline-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--brand-dim);
  margin-bottom: 8px;
}

.page-timeline-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-map-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
  border: 1px solid var(--stroke-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-legal h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 32px 0 12px;
}

.page-legal h2:first-child {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .vehicle-detail-extra {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .page-grid-2,
  .page-card-grid,
  .page-team-grid {
    grid-template-columns: 1fr;
  }

  .page-form-row {
    grid-template-columns: 1fr;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .vehicle-detail-intro .vehicle-detail-price {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  }

  .vehicle-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vehicle-detail-actions .btn-primary,
  .vehicle-detail-actions .btn-secondary {
    min-width: 0;
    width: 100%;
  }
}

/* ===== Vehicle listing & detail ===== */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vehicle-grid.is-loading {
  min-height: 240px;
}

.vehicle-state {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  padding: 48px 0;
}

.vehicle-state--error a {
  color: var(--brand);
  text-decoration: underline;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--stroke-strong);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.vehicle-card:hover {
  border-color: rgba(197, 0, 0, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.vehicle-card-image {
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
  overflow: hidden;
}

.vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vehicle-card:hover .vehicle-card-image img {
  transform: scale(1.04);
}

.vehicle-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  gap: 6px;
}

.vehicle-card-brand {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dim);
}

.vehicle-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.35;
}

.vehicle-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vehicle-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.vehicle-card-price {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
}

.vehicle-back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.vehicle-back-link:hover {
  color: var(--text-light);
}

.vehicle-detail-section {
  padding-top: clamp(40px, 6vw, 64px);
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 56px);
  align-items: stretch;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.vehicle-detail-panel {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.vehicle-detail-gallery {
  grid-column: 1;
  background: var(--bg-surface);
  border: 1px solid var(--stroke-strong);
  border-radius: 4px;
  overflow: hidden;
}

.vehicle-detail-gallery img,
.vehicle-detail-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 0.25s ease;
}

.vehicle-detail-thumbs {
  display: flex;
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: auto;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(12px, 1.6vw, 18px);
}

.vehicle-detail-thumb {
  flex: 0 0 clamp(176px, 44%, 280px);
  width: clamp(176px, 44%, 280px);
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--stroke-strong);
  border-radius: 2px;
  background: var(--bg-surface);
  cursor: pointer;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.vehicle-detail-thumb.is-active {
  opacity: 0.45;
  cursor: default;
}

.vehicle-detail-thumb:not(.is-active):hover {
  border-color: var(--text-muted);
}

.vehicle-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vehicle-detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--stroke);
}

.vehicle-detail-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-right: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  min-height: 72px;
}

.vehicle-detail-spec-cell:nth-child(4n) {
  border-right: none;
}

.vehicle-detail-spec-cell:nth-last-child(-n + 4) {
  border-bottom: none;
}

.vehicle-detail-spec-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vehicle-detail-spec-value {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .vehicle-detail-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-detail-spec-cell {
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }

  .vehicle-detail-spec-cell:nth-child(4n) {
    border-right: none;
  }

  .vehicle-detail-spec-cell:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--stroke);
  }

  .vehicle-detail-spec-cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .vehicle-detail-spec-label {
    letter-spacing: 0.04em;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .vehicle-detail-spec-value {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .vehicle-detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-spec-cell:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--stroke);
  }

  .vehicle-detail-spec-cell:last-child {
    border-bottom: none;
  }
}

.vehicle-detail-brand {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dim);
  margin-bottom: 10px;
}

.vehicle-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 10px;
}

.vehicle-detail-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.vehicle-detail-price {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-light);
}

.vehicle-detail-tax {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 6px 0 24px;
}

.vehicle-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 0;
}

.vehicle-detail-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.vehicle-detail-stats span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

@media (max-width: 1024px) {
  .vehicle-detail-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "gallery"
      "thumbs"
      "stats";
    row-gap: clamp(16px, 3.5vw, 24px);
    align-items: start;
  }

  .vehicle-detail-grid:not(:has(.vehicle-detail-thumbs)) {
    grid-template-areas:
      "intro"
      "gallery"
      "stats";
  }

  .vehicle-detail-gallery {
    grid-column: auto;
    grid-area: gallery;
  }

  .vehicle-detail-panel {
    display: contents;
  }

  .vehicle-detail-intro {
    grid-area: intro;
    min-width: 0;
  }

  .vehicle-detail-intro .vehicle-detail-sub {
    margin-bottom: 12px;
  }

  .vehicle-detail-intro .vehicle-detail-price {
    font-size: clamp(1.2rem, 4.8vw, 1.45rem);
    font-weight: 600;
  }

  .vehicle-detail-intro .vehicle-detail-tax {
    font-size: 0.76rem;
    margin: 4px 0 0;
  }

  .vehicle-detail-stats {
    grid-area: stats;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 16px 0 0;
    border-top: 1px solid var(--stroke);
    border-bottom: none;
  }

  .vehicle-detail-stats > div {
    min-width: 0;
  }

  .vehicle-detail-stats strong {
    font-size: clamp(0.92rem, 3.6vw, 1rem);
  }

  .vehicle-detail-stats span {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .vehicle-detail-thumbs {
    grid-area: thumbs;
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding: 0 0 4px;
  }

  .vehicle-detail-thumb {
    flex: 0 0 clamp(68px, 17vw, 88px);
    width: clamp(68px, 17vw, 88px);
    aspect-ratio: 4 / 3;
    border-radius: 3px;
  }

  .vehicle-detail-thumb.is-active {
    opacity: 1;
    border-color: var(--text-light);
    box-shadow: inset 0 0 0 1px var(--text-light);
  }

  .vehicle-detail-thumb:not(.is-active) {
    opacity: 0.55;
  }
}

.vehicle-detail-specs {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.vehicle-detail-spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}

.vehicle-detail-spec strong {
  color: var(--text-muted);
  font-weight: 500;
}

.vehicle-detail-spec span {
  color: var(--text-light);
  text-align: right;
}

.vehicle-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--stroke);
}

.vehicle-detail-actions .btn-primary,
.vehicle-detail-actions .btn-secondary {
  min-width: clamp(200px, 22vw, 260px);
  text-align: center;
}

.vehicle-detail-extra {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--stroke);
}

.vehicle-detail-about h2,
.vehicle-detail-features h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
}

.vehicle-detail-about-wrap {
  position: relative;
}

.vehicle-detail-about-body.is-collapsed {
  max-height: 8.5rem;
  overflow: hidden;
}

.vehicle-detail-about-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-page) 88%);
  pointer-events: none;
}

.vehicle-detail-about-toggle {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dim);
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.vehicle-detail-about-toggle:hover {
  color: var(--text-light);
}

.vehicle-detail-about p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.vehicle-detail-about p:last-child {
  margin-bottom: 0;
}

.vehicle-detail-features ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.vehicle-detail-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.vehicle-detail-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}

/* ===== Theme toggle ===== */
.theme-toggle {
  position: fixed;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 1900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

.theme-toggle-icon {
  display: block;
  width: clamp(26px, 2.6vw, 32px);
  height: clamp(26px, 2.6vw, 32px);
  border-radius: 50%;
  background: linear-gradient(to right, var(--theme-toggle-a) 50%, var(--theme-toggle-b) 50%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon {
  transform: rotate(180deg);
}

.theme-toggle:hover .theme-toggle-icon {
  transform: rotate(180deg);
}

.theme-toggle[aria-pressed="true"]:hover .theme-toggle-icon {
  transform: rotate(360deg);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-icon {
    transition: background 0.25s ease;
  }

  .theme-toggle:hover .theme-toggle-icon,
  .theme-toggle[aria-pressed="true"] .theme-toggle-icon {
    transform: none;
    background: linear-gradient(to right, var(--theme-toggle-b) 50%, var(--theme-toggle-a) 50%);
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }
}
