/* ============================================
   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);
  --map-filter: invert(0.9) hue-rotate(180deg) contrast(0.85) saturate(0.6);
  --radius: 18px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --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;
  --map-filter: none;
}

/* Smooth transition on theme switch */
body, .nav, .service-card, .team-card, .timeline-card, .visual-card,
.btn, .footer, .privacy-banner, .map-consent-inner {
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}

* { 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: 40px; width: auto; filter: var(--logo-filter); transition: filter 0.6s var(--ease); }
.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; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* 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:
    linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.75) 100%),
    radial-gradient(circle at 50% 110%, transparent 40%, #08080a 80%);
}
.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 */
.hero-content { position: relative; z-index: 2; }
.hero-content,
.hero-title,
.hero-stats strong { color: #fff; }
.hero-sub { color: rgba(255,255,255,0.85); }
.hero-stats span { color: rgba(255,255,255,0.5); }
.hero-stats { border-top-color: rgba(255,255,255,0.15); }
.hero-title .line:nth-child(3) {
  background: linear-gradient(120deg, #fff 0%, var(--accent-2) 60%, #fff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.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-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; }
.marquee-track {
  display: flex; gap: 100px; align-items: center;
  animation: marquee 30s linear infinite; width: max-content;
}
.marquee-track img {
  height: 50px; width: auto;
  filter: var(--logo-filter); opacity: 0.55;
  transition: opacity 0.3s, filter 0.6s var(--ease);
}
.marquee-track img:hover { opacity: 1; }
@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/esso-station.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(1.1);
  will-change: transform;
}
[data-theme="light"] .feature-bg { filter: brightness(0.45) 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;
}
/* Subtle warm tint overlay normalizes differing photo backgrounds */
.team-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--surface) 80%, transparent));
  pointer-events: none; transition: opacity 0.6s var(--ease);
}
.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 {
  border-radius: var(--radius); overflow: hidden; min-height: 460px;
  border: 1px solid var(--line); position: relative;
  background:
    radial-gradient(ellipse at center, rgba(201,168,106,0.08), transparent 60%),
    repeating-linear-gradient(45deg, var(--surface) 0 20px, var(--surface-2) 20px 40px);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; filter: var(--map-filter); display: block; }
.map-consent {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.map-consent-inner {
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; max-width: 440px; text-align: center;
}
.map-consent h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.map-consent p { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.map-consent p.map-alt { margin: 18px 0 0 0; font-size: 12px; }
.map-consent a { color: var(--accent-2); text-decoration: underline; }

/* ============================================
   Privacy banner
   ============================================ */
.privacy-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  z-index: 200; max-width: 720px; margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  transform: translateY(140%); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
  color: var(--text);
}
.privacy-banner.in { transform: translateY(0); opacity: 1; }
.privacy-banner[hidden] { display: none !important; }
.privacy-banner-inner {
  display: flex; gap: 26px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.privacy-banner strong { font-size: 14px; display: block; margin-bottom: 6px; }
.privacy-banner p { font-size: 13px; color: var(--text-dim); max-width: 460px; }
.privacy-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.privacy-banner-actions .btn { padding: 10px 18px; font-size: 13px; }

.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-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.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(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.85) 100%),
    radial-gradient(circle at 50% 110%, transparent 40%, #08080a 80%);
}
.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;
}
.page-hero p {
  font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,0.82);
  max-width: 700px; margin-bottom: 20px;
}
.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; }

.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; }
}
