/* ============================================
   Autohaus Dobbratz – modern recreation
   ============================================ */

/* ===== Self-hosted fonts (DSGVO-konform, kein Google CDN) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Theme tokens ===== */
:root {
  /* Dark theme (default) */
  --bg: #0a0a0c;
  --bg-2: #111114;
  --surface: #15151a;
  --surface-2: #1c1c22;
  --text: #f4f4f6;
  --text-dim: #a0a0a8;
  --text-mute: #6b6b75;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
  --accent-2: #c9a86a;
  --vw-blue: #001e50;
  --hero-grid: rgba(255,255,255,0.04);
  --logo-filter: brightness(0) invert(1);              /* for monochrome partner badges */
  --brand-logo-filter: invert(1) hue-rotate(180deg);   /* Dobbratz logo: black→white, red stays red */
  --radius: 18px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-2: #ffffff;
  --surface: #fafaf7;       /* subtly warm card so it lifts on white sections */
  --surface-2: #f1efea;
  --text: #15151a;
  --text-dim: #4a4a52;
  --text-mute: #8a8a92;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.18);
  --accent: #15151a;
  --accent-2: #8a6a2a;
  --hero-grid: rgba(0,0,0,0.045);
  --logo-filter: none;
  --brand-logo-filter: none;
}

/* Soft elevation shadows for cards in light theme (premium feel) */
[data-theme="light"] .service-card,
[data-theme="light"] .team-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .feature-cards article,
[data-theme="light"] .callout {
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 4px 14px rgba(20, 20, 30, 0.04);
}
[data-theme="light"] .service-card:hover,
[data-theme="light"] .team-card:hover,
[data-theme="light"] .timeline-card:hover,
[data-theme="light"] .feature-cards article:hover {
  box-shadow: 0 4px 8px rgba(20, 20, 30, 0.06), 0 16px 32px rgba(20, 20, 30, 0.10);
  background: var(--bg-2);  /* pure white on hover for extra lift */
}
[data-theme="light"] .visual-card,
[data-theme="light"] .esso-visual {
  box-shadow: 0 12px 30px -10px rgba(20, 20, 30, 0.18);
}
[data-theme="light"] /* Smooth transition on theme switch */
body, .nav, .service-card, .team-card, .timeline-card, .visual-card,
.btn, .footer, * { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ===== Accessibility: skip link + focus rings ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  z-index: 9999; padding: 12px 20px;
  background: #fff; color: #000;
  border-radius: 8px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; outline: 3px solid var(--accent-2); outline-offset: 2px; }

*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ============================================
   Scroll progress
   ============================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent-2), #fff);
  z-index: 1000; transition: width 0.1s linear;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent), transparent);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo img { height: 72px; width: auto; transition: opacity 0.6s var(--ease); }
.nav.scrolled .nav-logo img { height: 60px; }
@media (max-width: 640px) {
  .nav-logo img, .nav.scrolled .nav-logo img { height: 48px; }
}
/* Logo variant swap happens in script.js (content:url() on <img> is unreliable on dynamic toggle) */
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  position: relative; transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent-2);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 18px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  gap: 5px; flex-direction: column; padding: 8px; z-index: 130;
}
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
/* Burger morphs into an X while the menu is open */
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Mobile menu overlay ===== */
@media (max-width: 1024px) {
  body.menu-open { overflow: hidden; }
  body.menu-open .nav {
    background: var(--bg);
  }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 0; z-index: 120;
    background: var(--bg);
    padding: 120px 32px 40px;
  }
  body.menu-open .nav-links a {
    font-size: 26px; font-weight: 500; color: var(--text);
    padding: 18px 0; border-bottom: 1px solid var(--line);
  }
  body.menu-open .nav-links a::after { display: none; }
  body.menu-open .nav-links a[aria-current="page"] { color: var(--accent-2); }
  /* Keep logo + burger above the overlay */
  body.menu-open .nav-logo, body.menu-open .theme-toggle { position: relative; z-index: 130; }
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease); position: relative;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--accent-2); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; }
.theme-toggle:hover svg { transform: rotate(20deg); }

/* ============================================
   Hero – image carousel with Ken Burns crossfade
   Always dark/dramatic regardless of theme.
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  padding: 140px 0 100px;
  background: #08080a;
  color: #fff;
}
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.8s var(--ease);
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 9s ease-out forwards;
}
@keyframes kenBurns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1%, -1%, 0); }
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    /* Strong dark wash on the left where text sits; image breathes on the right */
    linear-gradient(90deg,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.52) 32%,
      rgba(0,0,0,0.12) 68%,
      rgba(0,0,0,0.02) 100%),
    /* Subtle top + bottom fade for cinematic framing */
    linear-gradient(180deg,
      rgba(0,0,0,0.25) 0%,
      transparent 22%,
      transparent 75%,
      var(--bg) 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero-slide-controls {
  position: absolute; bottom: 32px; right: 40px; z-index: 3;
  display: flex; gap: 10px; align-items: center;
}
.hero-slide-dot {
  width: 32px; height: 2px; border: 0; background: rgba(255,255,255,0.3);
  cursor: pointer; transition: background 0.3s var(--ease), width 0.4s var(--ease);
  padding: 0;
}
.hero-slide-dot.active { background: #fff; width: 56px; }
.hero-slide-dot:hover { background: rgba(255,255,255,0.6); }

/* Hero text always white over photos, with text-shadow for guaranteed legibility */
.hero-content { position: relative; z-index: 2; }
/* Soft dark backdrop behind the headline block – guarantees contrast on any slide */
.hero-content::before {
  content: '';
  position: absolute;
  left: -8%; top: -5%;
  width: 75%; height: 110%;
  background: radial-gradient(ellipse at 30% 50%,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.25) 35%,
    rgba(0,0,0,0.08) 65%,
    transparent 85%);
  z-index: -1; pointer-events: none;
  filter: blur(40px);
}
@media (max-width: 640px) {
  .hero-content::before { width: 100%; left: -5%; }
}
.hero-content,
.hero-title,
.hero-stats strong { color: #fff; }
.hero-title { text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.92); text-shadow: 0 2px 18px rgba(0,0,0,0.5); }
.hero-stats strong { text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.hero-stats span { color: rgba(255,255,255,0.65); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero-stats { border-top-color: rgba(255,255,255,0.18); }
.hero-eyebrow { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hero-title .line:nth-child(3) {
  /* Pure white instead of gradient text-clip – the clip nukes text-shadow which we need for hero readability */
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
}
.hero-eyebrow {
  background: rgba(255,255,255,0.05); border-color: rgba(201,168,106,0.4);
  backdrop-filter: blur(8px);
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.hero-scroll { color: rgba(255,255,255,0.5); }
.hero-scroll span { background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; transform: scale(1); }
  .hero-slide { transition: opacity 0.3s linear; }
}

/* ============================================
   Hero – LIGHT theme variant
   White wash over the image + dark text, instead of the dark wash + white text.
   Mirrors the dark-theme treatment so the hero follows whichever theme is active.
   ============================================ */
[data-theme="light"] .hero { background: var(--bg); color: var(--text); }

[data-theme="light"] .hero-overlay {
  background:
    /* Strong cream wash on the left where text sits, image breathes on the right */
    linear-gradient(90deg,
      rgba(247,246,243,0.96) 0%,
      rgba(247,246,243,0.82) 38%,
      rgba(247,246,243,0.30) 72%,
      rgba(247,246,243,0.04) 100%),
    /* Soft top + bottom fade for cinematic framing into the page bg */
    linear-gradient(180deg,
      rgba(247,246,243,0.40) 0%,
      transparent 25%,
      transparent 75%,
      var(--bg) 100%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-content::before {
  background: radial-gradient(ellipse at 30% 50%,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.30) 35%,
    rgba(255,255,255,0.10) 65%,
    transparent 85%);
}

/* Text inverts to dark with a subtle light glow for readability over photo */
[data-theme="light"] .hero-content,
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-stats strong { color: var(--text); }
[data-theme="light"] .hero-title {
  text-shadow: 0 1px 12px rgba(255,255,255,0.4);
}
[data-theme="light"] .hero-sub {
  color: var(--text-dim);
  text-shadow: 0 1px 8px rgba(255,255,255,0.35);
}
[data-theme="light"] .hero-stats strong {
  text-shadow: 0 1px 6px rgba(255,255,255,0.3);
}
[data-theme="light"] .hero-stats span {
  color: var(--text-mute);
  text-shadow: none;
}
[data-theme="light"] .hero-stats { border-top-color: rgba(0,0,0,0.12); }
[data-theme="light"] .hero-eyebrow {
  background: rgba(255,255,255,0.45);
  border-color: rgba(138,106,42,0.45);
  text-shadow: none;
  color: var(--accent-2);
}
[data-theme="light"] .hero-title .line:nth-child(3) {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  text-shadow: 0 1px 12px rgba(255,255,255,0.4);
}
[data-theme="light"] .hero .btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
}
[data-theme="light"] .hero .btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--text);
}
[data-theme="light"] .hero-scroll { color: var(--text-mute); }
[data-theme="light"] .hero-scroll span {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
}
[data-theme="light"] .hero-scroll span::before {
  background: linear-gradient(180deg, transparent, var(--text));
}
[data-theme="light"] .hero-slide-dot { background: rgba(0,0,0,0.25); }
[data-theme="light"] .hero-slide-dot.active { background: var(--text); }
[data-theme="light"] .hero-slide-dot:hover { background: rgba(0,0,0,0.5); }

/* ============================================
   Sub-page hero – LIGHT theme variant (same pattern)
   ============================================ */
[data-theme="light"] .page-hero { background: var(--bg); color: var(--text); }
[data-theme="light"] .page-hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(247,246,243,0.95) 0%,
      rgba(247,246,243,0.80) 38%,
      rgba(247,246,243,0.28) 72%,
      rgba(247,246,243,0.04) 100%),
    linear-gradient(180deg,
      rgba(247,246,243,0.36) 0%,
      transparent 25%,
      transparent 75%,
      var(--bg) 100%);
}
[data-theme="light"] .page-hero h1 {
  color: var(--text);
  text-shadow: 0 1px 12px rgba(255,255,255,0.4);
}
[data-theme="light"] .page-hero p {
  color: var(--text-dim);
  text-shadow: 0 1px 8px rgba(255,255,255,0.35);
}
[data-theme="light"] .page-hero .breadcrumb { color: var(--text-mute); }
[data-theme="light"] .page-hero .breadcrumb a { color: var(--text-mute); }
[data-theme="light"] .page-hero .breadcrumb a:hover { color: var(--text); }
[data-theme="light"] .page-hero .breadcrumb span { color: var(--text-mute); opacity: 0.5; }
[data-theme="light"] .page-hero .kicker { text-shadow: none; }
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 32px; width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 28px;
  padding: 8px 16px; border: 1px solid rgba(201, 168, 106, 0.3); border-radius: 999px;
}
.hero-title {
  font-size: clamp(38px, 7vw, 88px); font-weight: 300;
  margin-bottom: 36px; max-width: 1100px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:nth-child(2) { font-weight: 600; }
.hero-title .line:nth-child(3) {
  font-style: italic; font-weight: 300;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent-2) 60%, var(--text) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim);
  max-width: 620px; margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 80px; }

.hero-stats {
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 200;
  color: var(--text); letter-spacing: -0.03em;
}
.hero-stats strong::after { content: '+'; color: var(--accent-2); margin-left: 2px; }
.hero-stats span { font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.15em; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-mute);
  z-index: 2;
}
.hero-scroll span {
  width: 1px; height: 50px; background: linear-gradient(180deg, var(--text-mute), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll span::before {
  content: ''; position: absolute; top: -50px; left: 0; width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, #fff);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.4s var(--ease); cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(201, 168, 106, 0.4); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--text); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: all 0.3s var(--ease);
}
.link-arrow:hover { color: var(--accent-2); border-color: var(--accent-2); gap: 14px; }

/* ============================================
   Brand marquee
   ============================================ */
.brands {
  padding: 60px 0; background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  /* logos fade in/out at the edges instead of being cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* spacing lives on each logo (not flex gap) so both halves are identical and the -50% loop has no seam */
.marquee-track img { margin-right: 100px; flex-shrink: 0; }
@media (max-width: 640px) { .marquee-track img { margin-right: 56px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track {
  display: flex; align-items: center;
  animation: marquee 110s linear infinite; width: max-content;
  will-change: transform;
}
.marquee-track img {
  height: 50px; width: auto;
  /* Light mode: natural colors, slightly muted. Dark mode: see override below. */
  filter: none; opacity: 0.75;
  padding: 0; background: transparent; border-radius: 0;
  transition: opacity 0.3s, filter 0.6s var(--ease), background 0.6s var(--ease);
}
.marquee-track img:hover { opacity: 1; }

/* Dark mode: keep brand colors readable on dark background with a soft pill */
[data-theme="dark"] .marquee-track img {
  filter: none;
  opacity: 0.9;
  background: rgba(255,255,255,0.92);
  padding: 10px 18px;
  border-radius: 10px;
  box-sizing: content-box;
  height: 36px;  /* slightly smaller so total pill height matches light mode */
}
[data-theme="dark"] .marquee-track img:hover { opacity: 1; background: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================
   Section base
   ============================================ */
section { position: relative; }
.kicker {
  display: inline-block; font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px;
  padding-left: 24px; position: relative;
}
.kicker::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1px; background: var(--accent-2);
}
.kicker.light { color: #fff; }
.kicker.light::before { background: #fff; }

.section-head { max-width: 760px; margin-bottom: 80px; }
.section-foot { margin-top: 60px; text-align: center; }
.feature-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 60px); font-weight: 400;
}
.section-head .lead { color: var(--text-dim); margin-top: 20px; font-size: 17px; }

/* ============================================
   Statement
   ============================================ */
.statement { padding: 140px 0; }
.statement-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.statement-text h2 {
  font-size: clamp(34px, 4.2vw, 56px); font-weight: 400; margin-bottom: 28px;
}
.statement-text p {
  color: var(--text-dim); margin-bottom: 18px; font-size: 17px; max-width: 540px;
}
.statement-text .link-arrow { margin-top: 16px; }
.visual-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5;
  transform: perspective(1000px) rotateY(0) rotateX(0);
  transition: transform 0.6s var(--ease);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.visual-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease); }
.visual-card:hover img { transform: scale(1.08); }
.visual-card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.visual-card-overlay span { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent-2); }
.visual-card-overlay p { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 500; margin-top: 6px; }

/* ============================================
   Services
   ============================================ */
.services { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service-card {
  background: var(--bg-2); padding: 50px 36px;
  transition: all 0.5s var(--ease); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(201,168,106,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.service-card:hover { background: var(--surface); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--accent-2); letter-spacing: 0.2em; margin-bottom: 28px;
}
.service-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.service-card p { color: var(--text-dim); font-size: 15px; }

/* ============================================
   Feature (Vehicles parallax)
   ============================================ */
.feature {
  position: relative; padding: 180px 0; overflow: hidden;
  min-height: 80vh; display: flex; align-items: center;
}
.feature-bg {
  position: absolute; inset: -20% 0 0 0;
  background-image: url('assets/images/photos/audi-a5-convertible.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.5) saturate(1.1);
  will-change: transform;
}
[data-theme="light"] .feature-bg { filter: brightness(0.55) saturate(1.1); }
.feature::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 70%, transparent 100%);
}
[data-theme="light"] .feature-content,
[data-theme="light"] .feature-content h2,
[data-theme="light"] .feature-content p { color: #fff; }
[data-theme="light"] .feature-content .kicker { color: var(--accent-2); }
[data-theme="light"] .feature-pills span { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
[data-theme="light"] .feature::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 70%, transparent 100%);
}
.feature .container { position: relative; z-index: 2; }
.feature-content { max-width: 660px; }
.feature-content h2 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 400; margin-bottom: 24px;
}
.feature-content p { color: var(--text-dim); margin-bottom: 36px; font-size: 17px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.feature-pills span {
  padding: 9px 18px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 13px; color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.feature-pills span:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ============================================
   History timeline
   ============================================ */
.history { padding: 160px 0; }
.timeline { position: relative; padding: 40px 0; }
.timeline-line {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 1px; top: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.timeline-item {
  position: relative; width: 50%; padding: 0 60px 80px 0;
  display: flex; justify-content: flex-end;
}
.timeline-item.right {
  margin-left: 50%; padding: 0 0 80px 60px; justify-content: flex-start;
}
.timeline-item::before {
  content: ''; position: absolute; top: 32px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent-2);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item:not(.right)::before { right: -7px; }
.timeline-item.right::before { left: -7px; }
.timeline-year {
  position: absolute; top: 24px;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--accent-2);
}
.timeline-item:not(.right) .timeline-year { right: 36px; }
.timeline-item.right .timeline-year { left: 36px; }
.timeline-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 32px; border-radius: var(--radius); max-width: 460px;
  transition: all 0.5s var(--ease);
}
.timeline-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.timeline-card.highlight {
  background: linear-gradient(135deg, rgba(201,168,106,0.15), rgba(201,168,106,0.05));
  border-color: rgba(201,168,106,0.4);
}
.timeline-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.timeline-card p { color: var(--text-dim); font-size: 15px; }

/* ============================================
   Team – uniform CSS treatment to normalize varied source photos
   ============================================ */
.team { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-dept {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-2); margin: 60px 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.team-dept::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.team-dept:first-of-type { margin-top: 0; }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.team-card {
  background: var(--surface); padding: 0; border-radius: var(--radius);
  overflow: hidden; transition: all 0.5s var(--ease);
  border: 1px solid var(--line);
}
.team-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4); }
.team-photo {
  aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2);
  position: relative;
}
/* Bottom-fade overlay removed – the normalized portraits already have their own dark
   studio backdrop, and the white fade in light theme was clashing badly. Kept the
   ::after selector as a no-op so hover code below doesn't break. */
.team-photo::after { content: none; }
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform 1s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card:hover .team-photo::after { opacity: 0.6; }
.team-card .team-body { padding: 20px 22px 22px; }
.team-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.team-card span { display: block; color: var(--text-mute); font-size: 13px; margin-bottom: 10px; }
.team-card a { color: var(--accent-2); font-size: 12px; word-break: break-all; }
.team-card a:hover { color: var(--text); }
.team-card.no-photo .team-photo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.team-card.no-photo .team-photo::before {
  content: attr(data-initials);
  font-family: 'Manrope', sans-serif; font-size: 56px; font-weight: 300;
  color: var(--text-mute); letter-spacing: -0.02em;
}
.team-card.no-photo .team-photo::after { display: none; }

/* ============================================
   ESSO
   ============================================ */
.esso { padding: 140px 0; }
.esso-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.esso-visual {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  aspect-ratio: 4/3;
}
.esso-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.esso-visual:hover img { transform: scale(1.05); }
.esso-text h2 { font-size: clamp(34px, 4.5vw, 54px); font-weight: 400; margin-bottom: 24px; }
.esso-text p { color: var(--text-dim); margin-bottom: 36px; font-size: 17px; max-width: 480px; }
.esso-hours {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}
.esso-hours div {
  display: flex; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.esso-hours strong { font-weight: 500; font-size: 14px; letter-spacing: 0.1em; }
.esso-hours span { color: var(--text-dim); font-size: 14px; }

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 140px 0; position: relative;
  background:
    radial-gradient(ellipse at top, rgba(201,168,106,0.08), transparent 50%),
    var(--bg);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: stretch;
}
.contact-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.contact-block { display: flex; flex-direction: column; gap: 8px; }
.contact-label {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent-2);
}
.contact-block p, .contact-block a { font-size: 17px; color: var(--text); line-height: 1.5; }
.contact-block a:hover { color: var(--accent-2); }

.contact-map {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; align-self: start;
}
[data-theme="light"] .contact-map { box-shadow: 0 12px 30px -10px rgba(20, 20, 30, 0.15); }
.contact-map .map-frame { position: relative; aspect-ratio: 3 / 2; background: var(--map-bg); }
.contact-map .map-frame > img, .contact-map .map-frame > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .contact-map .map-frame { aspect-ratio: 4 / 3; } }
.contact-map figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 14px; font-size: 12px; color: var(--text-mute);
  background: var(--surface); border-top: 1px solid var(--line);
}
.contact-map .map-credit a { color: var(--text-mute); }
.contact-map .map-credit a:hover { color: var(--text); text-decoration: underline; }
.map-route { display: flex; gap: 8px; flex-wrap: wrap; }
.map-route a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform 0.25s var(--ease), background 0.25s;
}
.map-route a:hover { transform: translateY(-1px); }
.map-route-primary { background: var(--text); color: var(--bg); }
.map-route-ghost { color: var(--text); border: 1px solid var(--line-strong); }
.map-route svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Standortkarte (assets/map/lamspringe.svg, generated by tools/render-map.py) ---- */
:root, [data-theme="light"] {
  --map-bg: #efede7; --map-farm: #e9eadf; --map-res: #e6e3dc; --map-ind: #e2dfe4; --map-green: #dde4d2;
  --map-water: #cddbe4; --map-bld: #d9d5cc; --map-own: #c41215; --map-rail: #b9b5ad;
  --map-road: #ffffff; --map-road-case: #d3cec4; --map-major: #ffffff; --map-major-case: #c2bcb0;
  --map-path: #cbc6bb; --map-label: #6f6c66; --map-label-halo: #efede7;
  --map-card: #ffffff; --map-card-text: #15151a; --map-card-sub: #6f6c66;
  --map-ref-bg: #f6e7a6; --map-ref-line: #d9c470; --map-ref-text: #4d3f0c;
}
[data-theme="dark"] {
  --map-bg: #111114; --map-farm: #131416; --map-res: #17171b; --map-ind: #18171c; --map-green: #141813;
  --map-water: #15202a; --map-bld: #232329; --map-own: #e0403f; --map-rail: #34343c;
  --map-road: #2b2b33; --map-road-case: #1c1c22; --map-major: #3b3b45; --map-major-case: #222229;
  --map-path: #26262d; --map-label: #8d8d97; --map-label-halo: #111114;
  --map-card: #1b1b20; --map-card-text: #f4f4f6; --map-card-sub: #8d8d97;
  --map-ref-bg: #3a3220; --map-ref-line: #5a4c26; --map-ref-text: #e3cf8d;
}
.map-bg { fill: var(--map-bg); }
.map-farm { fill: var(--map-farm); } .map-res { fill: var(--map-res); } .map-ind { fill: var(--map-ind); }
.map-green { fill: var(--map-green); } .map-water { fill: var(--map-water); stroke: var(--map-water); stroke-width: 3; }
.map-bld { fill: var(--map-bld); }
.map-own { fill: var(--map-own); fill-opacity: .9; }
.map-rail { fill: none; stroke: var(--map-rail); stroke-width: 2; stroke-dasharray: 6 5; }
.map-path { fill: none; stroke: var(--map-path); stroke-width: 1.1; stroke-dasharray: 2 3; }
.map-minor-case { fill: none; stroke: var(--map-road-case); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map-minor { fill: none; stroke: var(--map-road); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map-major-case { fill: none; stroke: var(--map-major-case); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.map-major { fill: none; stroke: var(--map-major); stroke-width: 9.5; stroke-linecap: round; stroke-linejoin: round; }
.map-label { font: 500 10px 'Inter', sans-serif; fill: var(--map-label); letter-spacing: .02em;
             paint-order: stroke; stroke: var(--map-label-halo); stroke-width: 3px; stroke-linejoin: round; }
.map-label.major { font-size: 11.5px; font-weight: 600; }
.map-ref rect { fill: var(--map-ref-bg); stroke: var(--map-ref-line); stroke-width: 1; }
.map-ref text { font: 700 9.5px 'Inter', sans-serif; fill: var(--map-ref-text); letter-spacing: .03em; }
.map-dir text { font: 600 11px 'Inter', sans-serif; fill: var(--map-label); paint-order: stroke; stroke: var(--map-label-halo); stroke-width: 3px; }
.map-pin-shape { fill: #c41215; stroke: var(--map-card); stroke-width: 2; }
.map-pin-dot { fill: var(--map-card); }
.map-pin-pulse { fill: #c41215; opacity: 0; transform-origin: center; transform-box: fill-box; animation: pinPulse 2.6s ease-out infinite; }
@keyframes pinPulse { 0% { opacity: .35; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
@media (prefers-reduced-motion: reduce) { .map-pin-pulse { animation: none; } }
.map-card rect { fill: var(--map-card); filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.map-card-title { font: 700 14px 'Manrope', sans-serif; fill: var(--map-card-text); }
.map-card-sub { font: 500 11.5px 'Inter', sans-serif; fill: var(--map-card-sub); }

.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-mute); transition: color 0.3s; }
.footer-legal a:hover { color: var(--text); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0a0a0c; padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,0.7);
}
.footer .footer-brand p,
.footer .footer-col a,
.footer .footer-bottom,
.footer .footer-bottom * { color: rgba(255,255,255,0.65); }
.footer .footer-col h4 { color: var(--accent-2); }
.footer .footer-col a:hover { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Footer is always dark; HTML points directly at the dark-variant logo */
.footer-brand img { height: 72px; margin-bottom: 24px; }
.footer-brand p { color: var(--text-dim); max-width: 320px; font-size: 14px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 30px;
  font-size: 13px; color: var(--text-mute);
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .statement-grid, .esso-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline-line { left: 20px; }
  .timeline-item, .timeline-item.right {
    width: 100%; margin-left: 0;
    padding: 0 0 50px 50px; justify-content: flex-start;
  }
  .timeline-item::before, .timeline-item.right::before { left: 13px; right: auto; }
  .timeline-item .timeline-year, .timeline-item.right .timeline-year { left: 50px; right: auto; }
  .timeline-card { margin-top: 24px; }
}

/* ============================================
   Sub-page hero (Unternehmen, Service, etc.)
   ============================================ */
.page-hero {
  position: relative; min-height: 56vh;
  padding: 180px 0 100px;
  display: flex; align-items: center;
  overflow: hidden;
  background: #08080a; color: #fff;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5; animation: kenBurns 18s ease-out forwards;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.48) 35%,
      rgba(0,0,0,0.12) 70%,
      rgba(0,0,0,0.02) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.2) 0%,
      transparent 25%,
      transparent 75%,
      var(--bg) 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 32px; width: 100%; }
.page-hero .kicker { color: var(--accent-2); }
.page-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(38px, 6vw, 76px); font-weight: 300;
  margin: 22px 0 24px; letter-spacing: -0.02em; line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.3);
}
.page-hero p {
  font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,0.92);
  max-width: 700px; margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.page-hero .kicker { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.page-hero .breadcrumb {
  display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }

/* Sub-page content */
.page-body { padding: 100px 0; }
.page-body + .page-body { padding-top: 0; }
.prose {
  max-width: 760px; margin: 0 auto;
}
.prose p { font-size: 17px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; margin: 60px 0 20px; }
.prose h3 { font-size: 22px; font-weight: 500; margin: 32px 0 10px; }
.prose ul { padding-left: 24px; color: var(--text-dim); }
.prose ul li { margin-bottom: 8px; }
.prose-figure {
  margin: 40px 0 30px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
[data-theme="light"] .prose-figure {
  box-shadow: 0 12px 30px -10px rgba(20, 20, 30, 0.15);
}
.prose-figure img { width: 100%; height: auto; display: block; }
.prose-figure figcaption {
  padding: 14px 22px; font-size: 13px; color: var(--text-mute);
  background: var(--surface); border-top: 1px solid var(--line);
  font-style: italic;
}

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  margin: 40px 0; display: flex; gap: 24px; align-items: flex-start;
}
.callout strong { display: block; color: var(--accent-2); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.callout p { margin: 0; color: var(--text); }

.feature-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.feature-cards article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  transition: all 0.5s var(--ease);
}
.feature-cards article:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature-cards h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.feature-cards p { color: var(--text-dim); font-size: 15px; }
.feature-cards .num {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--accent-2); letter-spacing: 0.2em; margin-bottom: 22px;
}

.abc-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.abc-list dt {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: 15px;
  display: flex; align-items: center; gap: 14px;
}
.abc-list dt::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
}

@media (max-width: 768px) {
  .feature-cards, .abc-list { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 70px; min-height: auto; }
  .page-body { padding: 60px 0; }
}

/* ============================================
   Legal pages (Impressum / Datenschutz)
   ============================================ */
.legal {
  padding: 160px 0 100px;
  min-height: 100vh;
}
.legal-content {
  max-width: 820px; margin: 0 auto;
}
.legal-content .kicker { margin-bottom: 20px; }
.legal-content h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 400;
  margin-bottom: 40px; line-height: 1.1;
}
.legal-content h2 {
  font-size: 24px; font-weight: 500; margin: 50px 0 16px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.legal-content h3 { font-size: 17px; font-weight: 500; margin: 24px 0 10px; color: var(--text); }
.legal-content p, .legal-content li {
  color: var(--text-dim); font-size: 15px; line-height: 1.7; margin-bottom: 14px;
}
.legal-content ul { padding-left: 22px; margin-bottom: 20px; }
.legal-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: #fff; }
.legal-content .legal-meta {
  background: var(--surface); border: 1px solid var(--line);
  padding: 24px; border-radius: 12px; margin: 30px 0;
}
.legal-content .legal-meta p { margin-bottom: 6px; color: var(--text); }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 30px; color: var(--text-dim); font-size: 14px;
}
.legal-back:hover { color: var(--accent-2); }

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .statement, .services, .feature, .history, .team, .esso, .contact { padding: 80px 0; }
  .section-head { margin-bottom: 50px; }
}

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


/* ============================================
   Photo strip – showroom / vehicle impressions
   ============================================ */
.photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.photo-strip figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/3; position: relative;
}
[data-theme="light"] .photo-strip figure {
  box-shadow: 0 8px 24px -10px rgba(20, 20, 30, 0.16);
}
.photo-strip img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease);
}
.photo-strip figure:hover img { transform: scale(1.05); }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 20px 14px;
  font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.photo-strip figure:hover figcaption { opacity: 1; }
@media (max-width: 900px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip figcaption { opacity: 1; }
}

/* ===== Stellenangebote ===== */
.jobs-intro { max-width: 640px; margin: 0 auto 44px; text-align: center; color: var(--text-dim); font-size: 17px; }
.job-card { background: var(--card-bg, var(--surface, rgba(127,127,127,0.06))); border: 1px solid var(--line, rgba(127,127,127,0.18)); border-radius: 18px; padding: 34px; margin-bottom: 22px; max-width: 760px; margin-left: auto; margin-right: auto; }
.job-card h3 { font-size: 22px; margin: 12px 0 10px; }
.job-card p { color: var(--text-dim); margin-bottom: 22px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--accent, #8a6a2a); color: #fff; }
.job-tag.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--line, rgba(127,127,127,0.3)); }

/* ===== Aktuelles (editorial timeline) ===== */
.news-wrap { max-width: 880px; margin: 0 auto; }

/* Featured (newest) */
.news-feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 76px; }
.news-feature::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent-2) 0%, transparent 90%); }
.news-feature.has-img { display: grid; grid-template-columns: 1.25fr 1fr; }
.news-feature.has-img.img-left { grid-template-columns: 1fr 1.25fr; }
.news-feature.img-left .news-feature-img { order: -1; }
.news-feature-img { min-height: 300px; display: grid; gap: 6px; }
.news-feature-img.n2 { grid-template-rows: 1fr 1fr; }
.news-feature-img.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.news-feature-img.n3 img:first-child { grid-column: 1 / -1; }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.news-feature-gallery { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); gap: 10px; margin-top: 24px; }
.news-feature-gallery img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.news-feature-inner { padding: 46px 50px; }
.news-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); }
.news-kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent-2); }
.news-feature h2 { font-family: 'Manrope', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; margin: 16px 0 10px; }
.news-feature-date { display: block; font-size: 13px; color: var(--text-mute); margin-bottom: 20px; }
.news-feature .news-text { color: var(--text-dim); white-space: pre-line; font-size: 16px; }
@media (max-width: 760px) {
  .news-feature.has-img { grid-template-columns: 1fr; }
  .news-feature-img { max-height: 260px; order: -1; }
  .news-feature-inner { padding: 32px 28px; }
}

/* Timeline */
.news-timeline { position: relative; padding-left: 112px; }
.news-timeline::before { content: ''; position: absolute; left: 78px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--line-strong) 35%, var(--line) 100%); }
.news-item { position: relative; margin-bottom: 36px; }
.news-item::before { content: ''; position: absolute; left: -38px; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text-mute); transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.news-item:hover::before { border-color: var(--accent-2); transform: scale(1.25); }
.news-node { position: absolute; left: -112px; top: 4px; width: 58px; text-align: right; }
.news-node .day { display: block; font-family: 'Manrope', sans-serif; font-size: 27px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.news-node .mon { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--text-mute); margin-top: 4px; }
.news-card2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.news-item:hover .news-card2 { transform: translateY(-3px); border-color: var(--line-strong); }
[data-theme="light"] .news-item:hover .news-card2 { box-shadow: 0 14px 34px rgba(0,0,0,0.08); }
.news-card2 h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.news-inline-date { display: none; font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.news-card2.has-side { display: grid; grid-template-columns: 1fr 128px; gap: 24px; align-items: start; }
.news-card2.has-side.side-left { grid-template-columns: 128px 1fr; }
.news-card2.side-left .news-thumbs { order: -1; }
.news-thumbs { display: flex; flex-direction: column; gap: 10px; }
.news-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block;
  transition: transform 0.3s var(--ease); }
.news-thumbs img:hover { transform: scale(1.04); }
.news-thumbrow { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); gap: 10px; margin-top: 16px; }
.news-thumbrow img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block; }
.news-card2 .news-text { color: var(--text-dim); white-space: pre-line; font-size: 14.5px; }
.news-item.clamped .news-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: 14px; background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: 7px; }
.news-more .chev { transition: transform 0.3s var(--ease); font-size: 11px; }
.news-item.open .news-more .chev { transform: rotate(180deg); }
.news-more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .news-timeline { padding-left: 34px; }
  .news-timeline::before { left: 8px; }
  .news-item::before { left: -30px; top: 12px; }
  .news-node { display: none; }
  .news-inline-date { display: block; }
  .news-card2 { padding: 24px 24px; }
  .news-card2.has-side, .news-card2.has-side.side-left { grid-template-columns: 1fr; }
  .news-card2 .news-thumbs { flex-direction: row; order: 1; }
  .news-thumbs img { width: 0; flex: 1; }
  .news-feature-gallery img, .news-thumbrow img { height: 110px; }
}

/* Entrance */
@keyframes newsRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.news-anim { opacity: 0; animation: newsRise 0.85s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .news-anim { opacity: 1; animation: none; } }

.news-empty { text-align: center; color: var(--text-mute); padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); max-width: 560px; margin: 0 auto; }

/* News lightbox */
.news-lb { position: fixed; inset: 0; z-index: 400; background: rgba(5,5,8,0.92); display: none;
  align-items: center; justify-content: center; padding: 40px; }
.news-lb.open { display: flex; }
.news-lb img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.news-lb button { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.25s var(--ease); }
.news-lb button:hover { background: rgba(255,255,255,0.2); }
.news-lb .lb-close { top: 22px; right: 22px; }
.news-lb .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.news-lb .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 680px) { .news-lb { padding: 16px; } .news-lb .lb-prev { left: 8px; } .news-lb .lb-next { right: 8px; } }


/* ============================================
   Hero entrance - pure CSS, so the headline never waits on JavaScript
   ============================================ */
.hero-in {
  animation: heroIn 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-in { animation: none; } }

/* ============================================
   Current page in the main navigation
   ============================================ */
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* ============================================
   Long German compounds on small screens ("Markenübergreifend.")
   ============================================ */
@media (max-width: 640px) {
  h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .page-hero h1 { font-size: clamp(30px, 9vw, 38px); }
}

/* ============================================
   Mobile quick actions (injected by script.js)
   ============================================ */
.quickbar { display: none; }
@media (max-width: 640px) {
  .quickbar {
    display: flex; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90; padding: 8px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.35);
    animation: quickIn 0.6s var(--ease) 0.8s both;
  }
  .quickbar a {
    flex: 1; min-height: 46px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; font-size: 14px; font-weight: 600;
  }
  .quickbar-call { color: var(--text); border: 1px solid var(--line-strong); }
  .quickbar-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .quickbar-termin { background: var(--text); color: var(--bg); flex: 1.4; }
  body.has-quickbar { padding-bottom: 84px; }
  body.menu-open .quickbar { display: none; }
}
@keyframes quickIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quickbar { animation: none; } }
