/* ════════════════════════════════════════════════
   DRIVEFUSION — Global Stylesheet
   ════════════════════════════════════════════════ */

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

:root {
  --black:        #080808;
  --black-soft:   #0f0f0f;
  --black-card:   #141414;
  --black-card2:  #1a1a1a;
  --gold:         #C9A227;
  --gold-dim:     rgba(201,162,39,0.45);
  --gold-sub:     rgba(201,162,39,0.1);
  --gold-faint:   rgba(201,162,39,0.06);
  --red:          #DC2626;
  --red-hover:    #B91C1C;
  --gray-btn:     rgba(107,114,128,0.22);
  --gray-btn-h:   rgba(107,114,128,0.38);
  --white:        #F0EDEA;
  --white-muted:  rgba(240,237,234,0.58);
  --white-faint:  rgba(240,237,234,0.22);
  --white-ghost:  rgba(240,237,234,0.1);
  --nav-h:        72px;
  --radius:       2px;
}

html {
  scroll-behavior: smooth;
  /* WICHTIG: KEIN overflow-x:hidden auf <html> oder <body> setzen!
     Das bricht in Safari/WebKit die position:fixed-Eigenschaft von
     Kind-Elementen (Header, Mobilmenü, Sternenhimmel) — sie scrollen
     dann fälschlich mit der Seite mit, statt am Bildschirm fixiert zu
     bleiben. Horizontales Überlaufen wird stattdessen gezielt auf
     #main und .site-footer verhindert (siehe dort). */
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--black-soft); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
a { color: inherit; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* #main statt <html>/<body> gegen horizontales Überlaufen absichern
   (siehe Kommentar oben bei html { }) */
#main { overflow-x: hidden; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  transition: border-color 0.4s;
  border-bottom: 1px solid transparent;
  /* WICHTIG: Auf .site-header selbst darf NIE ein backdrop-filter,
     filter, transform, perspective oder "contain" landen. Jede dieser
     Eigenschaften erzeugt einen neuen "containing block" für alle
     position:fixed-Kindelemente (also auch für das mobile Menü
     .main-nav) — das mobile Menü würde dann nicht mehr relativ zum
     Bildschirm, sondern relativ zu diesem 72px hohen Header positioniert
     und wäre dadurch beim Öffnen praktisch unsichtbar/kaputt, sobald
     der Header nach dem Scrollen seinen "solid"-Zustand bekommt (genau
     das war die Ursache des gemeldeten Bugs). Der Glass-/Blur-Effekt
     wird deshalb bewusst auf ein eigenständiges ::before-Hintergrund-
     Layer ausgelagert, das keine Kindelemente hat und somit auch keine
     anderen fixed-Elemente beeinflussen kann. */
  isolation: isolate;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  backdrop-filter: none;
  transition: background 0.4s, backdrop-filter 0.4s;
  pointer-events: none;
}
.site-header.solid {
  border-color: var(--gold-dim);
}
.site-header.solid::before {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(14px);
}
.site-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.logo span { color: var(--gold); }

/* logo image override — place logo.svg or logo.png in root folder */
.logo-img {
  height: 66px;
  width: auto;
  object-fit: contain;
  color-scheme: light;
  filter: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.main-nav a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-actions .phone {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.header-actions .phone:hover { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cta { background: var(--red); color: #fff; }
.btn-cta:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 11px; }

.btn-gray {
  background: var(--gray-btn);
  color: var(--white);
  border: 1px solid rgba(107,114,128,0.3);
}
.btn-gray:hover { background: var(--gray-btn-h); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-faint);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-phone {
  background: #22c55e;
  color: #fff;
  border: none;
}
.btn-phone:hover { background: #16a34a; transform: translateY(-1px); }

/* ── HAMBURGER (animiert, 3 Linien -> X) ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--white-faint);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle:active { background: rgba(255,255,255,0.06); }
.nav-toggle-box {
  position: relative;
  width: 18px;
  height: 13px;
  display: block;
}
.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease, top 0.32s cubic-bezier(0.4,0,0.2,1);
}
.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-toggle-line:nth-child(3) { top: 100%; margin-top: -2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  top: 50%; margin-top: -1px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  top: 50%; margin-top: -1px; transform: rotate(-45deg);
}

/* Hide mobile nav actions on desktop */
.mobile-nav-actions { display: none; }

/* ── SCROLL-LOCK (aktiv, während das Mobilmenü offen ist) ──
   Bewusst simpel gehalten: nur overflow:hidden, kein position:fixed-
   Trick mit Scroll-Position-Ausgleich. Das Menü selbst ist blickdicht
   und deckt den ganzen Bildschirm ab, daher reicht das hier aus — und
   es kann nichts "springen", weil die Seite nie aus dem Fluss genommen
   oder künstlich auf 0 zurückgesetzt wird. */
html.nav-locked,
body.nav-locked {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

/* ── MOBILE NAV OPEN STATE ── */
@media (max-width: 860px) {
  /* Fix 2: Hamburger flush with edge – add right padding to container */
  .site-header .container { padding: 0 16px 0 16px; gap: 8px; }
  /* Fix 2: Shrink logo slightly so hamburger stays inside viewport */
  .logo-img { height: 48px; }
  .main-nav {
    /* display bleibt IMMER flex (nie "none") — animiert wird stattdessen
       über opacity/transform/visibility. So kann der Öffnen/Schließen-
       Übergang sauber transitionieren, statt hart umzuschalten. */
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(8,8,8,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Fix 3: smaller gap between menu items */
    gap: 24px;
    z-index: 499;
    padding-bottom: 120px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.28s ease,
      transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.38s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.32s ease,
      transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0s;
  }
  /* Fix 3: smaller font for nav links */
  .main-nav a { font-size: 16px; letter-spacing: 0.12em; }

  /* Einzelne Menüpunkte fliegen nacheinander (gestaffelt) ein */
  .main-nav a,
  .main-nav .mobile-nav-actions {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .main-nav.open a,
  .main-nav.open .mobile-nav-actions {
    opacity: 1;
    transform: translateY(0);
  }
  .main-nav.open a:nth-child(1) { transition-delay: 0.08s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.13s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.18s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.23s; }
  .main-nav.open a:nth-child(5) { transition-delay: 0.28s; }
  .main-nav.open .mobile-nav-actions { transition-delay: 0.33s; }

  /* Nutzer, die reduzierte Bewegung bevorzugen, bekommen ein einfaches Fade */
  @media (prefers-reduced-motion: reduce) {
    .main-nav,
    .main-nav a,
    .main-nav .mobile-nav-actions,
    .nav-toggle-line {
      transition-duration: 0.01ms !important;
      transform: none !important;
    }
  }

  .nav-toggle { display: flex; flex-shrink: 0; }
  .header-actions .phone { display: none; }
  .header-actions .btn { display: none; }
  
  /* Show mobile nav actions on mobile */
  .mobile-nav-actions { display: flex; }
  
  /* Mobile phone icon button in header */
  .header-mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #22c55e;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
  }
  .header-mobile-phone:hover { background: #16a34a; }
  .header-mobile-phone svg { width: 18px; height: 18px; }
  
  /* Fix 4: Mobile nav action buttons — equal size, text centered */
  .mobile-nav-actions {
    position: absolute;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    padding: 0 40px;
  }
  .mobile-nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    padding: 0 20px;
    height: 44px;
    width: 100%;
    max-width: 260px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
  }
  .mobile-nav-phone:hover { background: #16a34a; }
  .mobile-nav-phone svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
  }
  .mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    padding: 0 20px;
    height: 44px;
    width: 100%;
    max-width: 260px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    box-sizing: border-box;
  }
  .mobile-nav-cta:hover { background: var(--red-hover); }
}

/* ══════════════════════════════════════
   SHARED LAYOUT
══════════════════════════════════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 860px) { .container { padding: 0 24px; } }

.section { padding: 96px 0; }

/* ── SECTION LABELS ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--gold-dim);
}

/* ── DIVIDER ── */
.gold-line {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 18px 0 28px;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 60px;
  background: var(--black-soft);
  border-bottom: 1px solid rgba(201,162,39,0.12);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(201,162,39,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero h1 {
  margin-top: 6px;
  color: var(--white);
}

/* ══════════════════════════════════════
   VEHICLE CARDS
══════════════════════════════════════ */
.vehicles-section {
  padding: 96px 0 80px;
  background: var(--black-soft);
  border-top: 1px solid rgba(201,162,39,0.12);
}
.vehicles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.vehicles-note {
  font-size: 11px;
  color: var(--white-faint);
  letter-spacing: 0.04em;
}

.vehicles-outer { overflow: hidden; }

.vehicles-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.vehicles-track::-webkit-scrollbar { display: none; }
.vehicles-track.centered {
  justify-content: center;
  flex-wrap: wrap;
  overflow-x: visible;
}

/* Card */
.vehicle-card {
  flex: 0 0 calc(20% - 15px);
  min-width: 288px;
  max-width: 384px;
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.14);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.55);
  border-color: var(--gold-dim);
}

/* Slider */
.card-slider {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--black-card2);
  overflow: hidden;
}
.card-slider.swipeable {
  cursor: grab;
  /* Erlaubt dem Browser natives vertikales Scrollen der Seite, während
     horizontale Wisch-Gesten hier von JS für den Bilder-Swipe übernommen
     werden — so blockiert der Slider nicht das Scrollen der Seite. */
  touch-action: pan-y;
}
.card-slider.swipeable.grabbing { cursor: grabbing; }
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.slider-track.dragging { transition: none; }
.slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(8,8,8,0.75);
  color: var(--white);
  border: 1px solid rgba(240,237,234,0.15);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

.slide-counter {
  position: absolute;
  top: 8px; right: 10px;
  z-index: 10;
  background: rgba(8,8,8,0.72);
  color: var(--white-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
}
.slider-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 5px;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(240,237,234,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--gold); transform: scale(1.3); }

.no-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: rgba(201,162,39,0.25);
  font-size: 11px; letter-spacing: 0.1em;
}
.no-image-placeholder svg { width: 44px; height: 44px; opacity: 0.25; }

/* Card body */
.card-body { padding: 18px 20px 20px; }
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 18px;
}
.spec-row { display: flex; align-items: flex-start; gap: 8px; }
.spec-icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.spec-icon svg { width: 14px; height: 14px; display: block; }
.spec-info { min-width: 0; }
.spec-label {
  display: block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white-faint);
  line-height: 1; margin-bottom: 3px;
}
.spec-value {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--white-muted);
  white-space: normal;
  overflow: hidden;
  line-height: 1.35;
}

.card-divider { height: 1px; background: rgba(201,162,39,0.1); margin-bottom: 14px; }

.card-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.vehicle-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.02em; white-space: nowrap;
}
.vehicle-price.vb { font-size: 17px; font-weight: 500; }

.btn-anzeige {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-anzeige:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-anzeige svg { width: 11px; height: 11px; }

/* Skeletons */
.vehicles-loading { display: flex; gap: 18px; overflow: hidden; }
.skeleton-card {
  flex: 0 0 calc(20% - 15px);
  min-width: 288px; height: 440px;
  background: var(--black-card);
  border-radius: var(--radius);
  border-top: 2px solid rgba(201,162,39,0.2);
  overflow: hidden;
}
.skeleton-img { width: 100%; aspect-ratio: 4/3; background: var(--black-card2); animation: shimmer 1.6s ease-in-out infinite; }
.skeleton-line { height: 10px; border-radius: 4px; background: var(--black-card2); animation: shimmer 1.6s ease-in-out infinite; margin: 16px 18px 8px; }
.skeleton-line.short { width: 60%; margin-top: 0; }
@keyframes shimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

.vehicles-error, .vehicles-empty {
  padding: 48px; text-align: center;
  color: var(--white-muted); font-size: 14px;
}

.vehicles-nav {
  display: flex; gap: 10px;
  margin-top: 24px; justify-content: flex-end;
}
.track-arrow {
  width: 40px; height: 40px;
  border: 1px solid rgba(201,162,39,0.3);
  background: transparent; color: var(--white-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.track-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.track-arrow svg { width: 18px; height: 18px; }
.track-arrow[disabled] { opacity: 0.25; pointer-events: none; }

/* ══════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════ */
.about-section {
  padding: 110px 0;
  border-top: 1px solid rgba(201,162,39,0.1);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-rect-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-rect-main::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(201,162,39,0.07), transparent 60%);
}
.about-big-icon { color: rgba(201,162,39,0.12); }
.about-big-icon svg { width: 110px; height: 110px; }

.about-stat-card {
  position: absolute;
  right: -24px; bottom: -24px;
  background: var(--gold);
  color: var(--black);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 12px 36px rgba(201,162,39,0.35);
}
.about-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px; font-weight: 700; line-height: 1; display: block;
}
.about-stat-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 4px; display: block;
}

.about-content .section-title { margin-bottom: 24px; }
.about-text {
  font-size: 15px; font-weight: 300;
  line-height: 1.85; color: var(--white-muted); margin-bottom: 32px;
}
.about-values { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.value-item { display: flex; align-items: flex-start; gap: 14px; }
.value-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  flex-shrink: 0; margin-top: 8px;
}
.value-text { font-size: 14px; color: var(--white-muted); }
.value-text strong { color: var(--white); font-weight: 600; }

/* ══════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════ */
.contact-section {
  padding: 110px 0;
  background: var(--black-soft);
  border-top: 1px solid rgba(201,162,39,0.12);
}
.contact-intro { margin-bottom: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.12);
  border-top: 2px solid var(--gold);
  padding: 28px 24px;
  border-radius: var(--radius);
}
.contact-card-icon { color: var(--gold); margin-bottom: 16px; }
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 12px;
}
.contact-card-value {
  font-size: 14px; color: var(--white-muted); line-height: 1.8;
}
.contact-card-value a {
  color: var(--white-muted); text-decoration: none; transition: color 0.2s;
}
.contact-card-value a:hover { color: var(--gold); }

.hours-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; margin-bottom: 6px;
}
.hours-row .day { color: var(--white-faint); font-size: 12px; letter-spacing: 0.04em; }
.hours-row .time { color: var(--white-muted); font-weight: 500; }

/* ── CONTACT FORM ── */
.contact-form-section {
  padding: 80px 0 110px;
  background: var(--black);
  border-top: 1px solid rgba(201,162,39,0.1);
}
.form-wrap {
  max-width: 680px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white-faint);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 130px; }
::placeholder { color: rgba(240,237,234,0.25); }

.honeypot { display: none !important; }

.form-note {
  font-size: 12px; color: var(--white-faint);
  margin-top: -6px; margin-bottom: 16px;
}

.form-success {
  display: none;
  background: var(--gold-sub);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
  color: var(--gold);
  font-size: 14px; font-weight: 500;
}
.form-success.visible { display: block; }

/* ── MAP ── */
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.12);
}
.map-placeholder {
  min-height: 300px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  color: var(--white-muted);
  font-size: 14px; text-align: center;
  padding: 32px;
}
.map-placeholder .map-icon { color: var(--gold); opacity: 0.4; }
.map-placeholder .map-icon svg { width: 48px; height: 48px; }
.btn-load-map {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold);
  color: var(--black);
  border: none; cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.btn-load-map:hover { opacity: 0.88; }
.map-wrap iframe {
  width: 100%; min-height: 340px;
  border: 0; display: block;
  filter: grayscale(1) invert(0.85) hue-rotate(180deg) brightness(0.82) contrast(1.1);
}
.map-route-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--radius);
  z-index: 2;
  transition: opacity 0.2s;
}
.map-route-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════ */
.legal h2 {
  font-size: 18px; margin: 36px 0 12px;
  color: var(--white); letter-spacing: 0.04em;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 15px; margin: 24px 0 10px; color: var(--white-muted); }
.legal p { font-size: 14px; color: var(--white-muted); margin-bottom: 14px; line-height: 1.8; }
.legal ul { padding-left: 20px; margin-bottom: 14px; }
.legal ul li { font-size: 14px; color: var(--white-muted); margin-bottom: 6px; line-height: 1.7; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--white); }
.legal .todo {
  background: rgba(201,162,39,0.08);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--gold);
}
.legal code {
  background: var(--black-card2);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--gold);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(201,162,39,0.15);
  padding: 40px 0;
  overflow-x: hidden;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {}
.footer-brand-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  display: inline-block; margin-bottom: 8px;
}
.footer-brand-logo span { color: var(--gold); }
/* Logo image — uncomment and use if logo.png exists */
.footer-logo-img {
  height: 135px; width: auto; object-fit: contain;
  display: block; margin-bottom: 8px;
  color-scheme: light;
  filter: none;
}
.footer-brand-tagline {
  font-size: 11px; color: var(--white-faint);
  letter-spacing: 0.06em;
}
.footer-nav {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.footer-nav-col {}
.footer-nav-col-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; display: block;
}
.footer-nav-col a {
  display: block;
  color: rgba(240,237,234,0.38);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--white); }

.footer-divider {
  height: 1px;
  background: rgba(201,162,39,0.1);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(240,237,234,0.25);
  letter-spacing: 0.04em;
}
.footer-bottom a {
  color: rgba(240,237,234,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--gold); }
/* Legacy single-line logo kept for fallback */
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
}
.footer-logo span { color: var(--gold); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-inner { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .about-section { padding: 72px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-stat-card { right: -12px; bottom: -12px; }
  .contact-section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .vehicles-loading { padding: 0 24px; }
  .vehicle-card { flex: 0 0 310px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .vehicles-header { flex-direction: column; align-items: flex-start; }
  /* Fix 1: Scroll-Text auf der Homepage zentrieren */
  .hero-scroll {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  /* Fix 5: Kacheln auf aufbereitung.html — stack below text on mobile */
  .aufbereitung-tiles-grid {
    grid-template-columns: 1fr 1fr !important;
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════
   STARFIELD — "Dachhimmel"-Effekt (wie Rolls-Royce)
   WICHTIG: Liegt NICHT fix über dem Viewport, sondern ist Teil des
   normalen Seiteninhalts (position:absolute, an der Seite selbst
   verankert). Die Sterne bleiben also an ihrer Stelle auf der Seite
   stehen und verschwinden beim Herunterscrollen ganz normal nach oben
   aus dem Sichtfeld — genau wie jedes andere Element auch. Sie werden
   von js/main.js einmalig erzeugt und über die komplette Seitenhöhe
   verteilt (Hero-Lichtstreifen bleiben davon unberührt).
══════════════════════════════════════ */
.df-starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Höhe wird per JS exakt auf die tatsächliche Seitenhöhe gesetzt
     (in main.js), damit Sterne über die ganze Seite verteilt werden
     können, nicht nur über die Höhe des ersten Bildschirms. */
  z-index: 1; /* liegt im normalen Fluss, nicht über Header/Menü */
  pointer-events: none;
  overflow: hidden;
}

.df-star {
  position: absolute;
  border-radius: 50%;
  background: var(--df-color, #fff);
  opacity: 0;
  animation-name: dfTwinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.df-star--soft   { box-shadow: 0 0 3px var(--df-glow, rgba(255,255,255,0.75)); }
.df-star--bright { box-shadow: 0 0 5px 1px var(--df-glow, rgba(255,255,255,0.9)), 0 0 10px 2px var(--df-glow2, rgba(201,162,39,0.3)); }

@keyframes dfTwinkle {
  0%, 100% { opacity: 0;               transform: scale(0.45); }
  50%      { opacity: var(--df-peak, 0.75); transform: scale(1); }
}

/* Sehr seltene, dezente "Shooting Stars" — an die Rolls-Royce
   "Shooting Star"-Dachhimmel-Variante angelehntes Extra-Detail */
.df-shooting {
  position: absolute;
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0));
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.65));
  opacity: 0;
  transform: rotate(-16deg);
  animation-name: dfShoot;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
}
@keyframes dfShoot {
  0%   { opacity: 0; transform: translate(0, 0)        rotate(-16deg); }
  3%   { opacity: 1; }
  14%  { opacity: 0.85; }
  22%  { opacity: 0; transform: translate(360px, 105px) rotate(-16deg); }
  100% { opacity: 0; }
}

@media (max-width: 640px) {
  .df-shooting { width: 90px; }
}
