/* ==========================================================================
   Vantorium Automobile – Design System
   ========================================================================== */

:root {
  --color-bg: #0b0c0e;
  --color-bg-alt: #131418;
  --color-surface: #1a1c20;
  --color-surface-2: #202226;
  --color-border: #2c2e33;
  --color-text: #f3f1ea;
  --color-text-muted: #b6b4ac;
  --color-text-faint: #85837c;
  --color-accent: #c6a15b;
  --color-accent-hover: #dab876;
  --color-accent-contrast: #171208;
  --color-success: #6fae7a;
  --color-error: #e07a6f;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition: 180ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  display: inline-block;
}

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

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

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

.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------- Buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.btn-primary:hover { background: var(--color-accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------------------------------- Header ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.brand-icon { height: 22px; width: auto; flex-shrink: 0; display: block; }
.brand .brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--color-text-faint);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
}

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.main-nav a:not(.btn):hover { color: var(--color-text); }
.main-nav .nav-links { display: flex; gap: 2.2rem; align-items: center; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    height: calc(100vh - 84px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav .nav-links { flex-direction: column; align-items: flex-start; gap: 1.4rem; width: 100%; }
  .main-nav .btn { width: 100%; margin-top: 1.4rem; }
}

/* ---------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  padding: 128px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(198, 161, 91, 0.16), transparent 60%),
    radial-gradient(ellipse 800px 500px at 100% 10%, rgba(198, 161, 91, 0.08), transparent 55%),
    var(--color-bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-content { max-width: 700px; }
.hero-mark { width: 180px; height: auto; margin-bottom: 2rem; opacity: 0.95; }
.hero p.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* ---------------------------------- USP grid ------------------------------ */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usp-grid { grid-template-columns: 1fr; } }

.usp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
}
.usp-card svg { width: 30px; height: 30px; color: var(--color-accent); margin-bottom: 1rem; }
.usp-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.usp-card p { font-size: 0.92rem; margin: 0; }

/* ---------------------------------- Two column ---------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

.value-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.value-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--color-text); font-weight: 600; font-size: 0.98rem; }
.value-list svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}

/* ---------------------------------- CTA banner ---------------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--color-surface), var(--color-bg-alt));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 0.4rem; }
.cta-banner p { margin: 0; max-width: 480px; }

/* ---------------------------------- Contact box --------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}
.contact-card svg { width: 26px; height: 26px; color: var(--color-accent); margin: 0 auto 1rem; }
.contact-card .value { font-size: 1.05rem; font-weight: 700; color: var(--color-text); }
.contact-card .hint { font-size: 0.85rem; color: var(--color-text-faint); margin-top: 0.3rem; }
.contact-card a.value:hover { color: var(--color-accent); }

.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--color-text-faint);
}
.privacy-note svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; }

/* ---------------------------------- Footer -------------------------------- */

.site-footer { border-top: 1px solid var(--color-border); padding: 3.5rem 0 2.5rem; background: var(--color-bg-alt); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

/* ---------------------------------- Content pages (Impressum/Datenschutz) - */

.content-page { padding: 60px 0 100px; }
.content-page .container { max-width: 780px; }
.content-page h2 { margin-top: 2.4rem; font-size: 1.3rem; }
.content-page h2:first-of-type { margin-top: 0; }
.content-page ul { color: var(--color-text-muted); padding-left: 1.2rem; }
.content-page a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.page-hero { padding: 60px 0 20px; }
.page-hero .container { max-width: 780px; }

/* ---------------------------------- Forms --------------------------------- */

.field { margin-bottom: 1.4rem; }
.field label, .fieldset-legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.field .optional { font-weight: 400; color: var(--color-text-faint); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="month"],
.field select,
.field textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-faint); }

.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 700px) { .field-row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .field-row-3 { grid-template-columns: 1fr; } }

.radio-group { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6em 1.1em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  color: var(--color-text-muted);
}
.radio-pill input { accent-color: var(--color-accent); }
.radio-pill:has(input:checked) { border-color: var(--color-accent); color: var(--color-text); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.checkbox-row input { accent-color: var(--color-accent); margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; }

.hint-text { font-size: 0.82rem; color: var(--color-text-faint); margin-top: 0.4rem; }
.error-text { font-size: 0.82rem; color: var(--color-error); margin-top: 0.4rem; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field.has-error .error-text { display: block; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------- Multi-step wizard --------------------- */

.form-steps-nav { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.form-steps-nav .step-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--color-border);
  position: relative;
}
.form-steps-nav .step-dot.active,
.form-steps-nav .step-dot.done { background: var(--color-accent); }

.step-labels { display: flex; justify-content: space-between; margin-bottom: 0.6rem; font-size: 0.78rem; color: var(--color-text-faint); }
.step-labels span.current { color: var(--color-accent); font-weight: 700; }

.js .form-step { display: none; }
.js .form-step.active { display: block; }

.form-nav-buttons { display: flex; justify-content: space-between; margin-top: 2.4rem; gap: 1rem; }
.form-nav-buttons .spacer { flex: 1; }

/* ---------------------------------- Photo uploader ------------------------ */

.upload-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 12, 14, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb .compressing {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,12,14,0.55);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.4rem;
}

/* ---------------------------------- Alerts / Danke ------------------------ */

.alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.alert-error { background: rgba(224, 122, 111, 0.1); border-color: var(--color-error); color: #f3c9c4; }
.alert-success { background: rgba(111, 174, 122, 0.1); border-color: var(--color-success); color: #cfe8d3; }

.thanks-box { text-align: center; max-width: 560px; margin: 0 auto; }
.thanks-icon { width: 64px; height: 64px; color: var(--color-success); margin: 0 auto 1.5rem; }

/* ---------------------------------- 404 ----------------------------------- */

.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .code { font-size: 5rem; font-weight: 700; color: var(--color-accent); margin-bottom: 0; }

/* ---------------------------------- Utilities ------------------------------ */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: 0.8em 1.2em;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------- Animationen ---------------------------- */

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Beim Laden: Hero & Seiten-Intros */
.load-in > * {
  opacity: 0;
  animation: fadeSlideIn 0.75s cubic-bezier(.16,.8,.24,1) forwards;
}
.load-in > *:nth-child(1) { animation-delay: .05s; }
.load-in > *:nth-child(2) { animation-delay: .15s; }
.load-in > *:nth-child(3) { animation-delay: .25s; }
.load-in > *:nth-child(4) { animation-delay: .35s; }
.load-in > *:nth-child(5) { animation-delay: .45s; }

.fade-in { opacity: 0; animation: fadeSlideIn 0.7s cubic-bezier(.16,.8,.24,1) forwards; }

/* Beim Scrollen ins Bild: sanftes Einblenden */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.11s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.25s; }

/* Header: dezenter Schatten beim Scrollen */
.site-header { transition: box-shadow .35s ease, background-color .35s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); background: rgba(11, 12, 14, 0.97); }

/* Nav-Links: Unterstreichung wächst von links */
.main-nav .nav-links a:not(.btn) { position: relative; }
.main-nav .nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}
.main-nav .nav-links a:not(.btn):hover::after { right: 0; }

/* Karten: dezentes Anheben bei Hover */
.usp-card, .contact-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.usp-card:hover, .contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 161, 91, 0.4);
  box-shadow: var(--shadow-card);
}

/* Buttons: sanftes Anheben bei Hover */
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(198, 161, 91, 0.22); }

/* Formular-Schritte: sanfter Wechsel */
.js .form-step.active { animation: fadeSlideIn 0.45s ease; }
.form-steps-nav .step-dot { transition: background-color 0.35s ease; }

/* Foto-Vorschau: sanftes Einblenden */
.photo-thumb { animation: popIn 0.3s ease; }

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > *, .load-in > *, .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
