/* ============================================
   4WHEELZ — Premium Autovermittlung
   v2: Bildlastig, Effekte, Parallax, Galerie
   ============================================ */

:root {
  --bg-dark: #0d0d0f;
  --bg-dark-2: #15151a;
  --bg-light: #faf9f6;
  --bg-accent: #F5C400;
  --bg-accent-dark: #d9ac00;
  --ink: #0d0d0f;
  --ink-light: #f5f5f0;
  --ink-muted: #71717a;
  --ink-muted-dark: #a1a1aa;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(0,0,0,0.08);
  --accent: #F5C400;
  --accent-glow: rgba(245, 196, 0, 0.15);
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --section-pad: clamp(80px, 12vh, 160px);
  --container: 1280px;
  --container-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
}
.nav--scrolled {
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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 { display: flex; align-items: center; gap: 4px; }
.nav__logo-img { height: 40px; width: auto; transition: all 0.3s; filter: brightness(0) invert(1); }
.nav--scrolled .nav__logo-img { height: 34px; }
.nav__links { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; }
.nav__links a { font-size: 14px; font-weight: 500; color: rgba(245,245,240,0.7); transition: color 0.3s; position: relative; }
.nav__links a:hover { color: var(--accent); }
.nav__links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { font-size: 14px; font-weight: 600; padding: 10px 22px; background: var(--accent); color: var(--ink) !important; border-radius: 100px; transition: all 0.3s var(--ease); white-space: nowrap; }
.nav__cta:hover { background: #fff; transform: translateY(-1px); }
.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink-light); transition: all 0.3s; }
.nav__mobile { display: none; flex-direction: column; gap: 20px; padding: 24px 32px; background: rgba(13,13,15,0.98); backdrop-filter: blur(20px); }
.nav__mobile a { font-size: 18px; font-weight: 500; color: var(--ink-light); }
.nav__mobile-cta { display: inline-block; padding: 12px 24px; background: var(--accent); color: var(--ink) !important; border-radius: 100px; text-align: center; font-weight: 600 !important; }
.nav__mobile.open { display: flex; }

/* ===== CINEMATIC HERO ===== */
.cinematic { position: relative; height: 500vh; background: var(--bg-dark); }
.cinematic .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#frame-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.65) 100%); pointer-events: none; z-index: 2; }
.hero-grain { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E"); }
.overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.overlay .line { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 7vw, 96px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink-light); text-align: center; opacity: 0; position: absolute; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.line__label { display: block; font-size: clamp(11px, 1.2vw, 14px); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; text-shadow: none; }
.line__accent { color: var(--accent); }
.hero-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.hero-hint__text { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,245,240,0.5); }
.hero-hint__line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); animation: hint-pulse 2s ease-in-out infinite; }
@keyframes hint-pulse { 0%,100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }
.hero-brand { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); z-index: 5; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,245,240,0.4); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.hero-brand__dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); } 50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; } }

/* ===== HERO OUTRO ===== */
.hero-outro { background: var(--bg-dark); padding: 120px 32px 100px; border-top: 1px solid var(--line); }
.hero-outro__inner { max-width: var(--container-narrow); margin: 0 auto; text-align: center; }
.hero-outro__lead { font-size: clamp(22px, 3vw, 32px); line-height: 1.4; font-weight: 300; color: var(--ink-light); letter-spacing: -0.01em; margin-bottom: 40px; }
.hero-outro__lead strong { color: var(--accent); font-weight: 500; }
.hero-outro__cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }
.hero-outro__stats { display: flex; justify-content: center; gap: clamp(40px, 8vw, 100px); flex-wrap: wrap; }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat__star { font-size: 0.7em; }
.stat__label { font-size: 13px; color: var(--ink-muted-dark); letter-spacing: 0.02em; }

/* ===== MARQUEE ===== */
.marquee-section { background: var(--bg-dark); padding: 40px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 0; animation: marquee-scroll 40s linear infinite; white-space: nowrap; }
.marquee__item { font-family: var(--font-display); font-size: clamp(24px, 4vw, 42px); font-weight: 700; color: var(--ink-light); padding: 0 32px; letter-spacing: -0.02em; opacity: 0.35; transition: opacity 0.3s; }
.marquee__item:hover { opacity: 1; }
.marquee__dot { color: var(--accent); font-size: 14px; padding: 0 8px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== PARALLAX BANNER ===== */
.parallax-banner { position: relative; height: 60vh; min-height: 400px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.parallax-banner__bg { position: absolute; inset: -10%; background-size: cover; background-position: center; will-change: transform; transition: transform 0.1s linear; }
.parallax-banner__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,13,15,0.85), rgba(13,13,15,0.5)); }
.parallax-banner__content { position: relative; z-index: 2; text-align: center; max-width: 700px; padding: 0 32px; }
.parallax-banner__title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 700; color: var(--ink-light); letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 20px; }
.parallax-banner__text { font-size: 18px; color: rgba(245,245,240,0.8); line-height: 1.6; }
.parallax-banner--quote .parallax-banner__overlay { background: rgba(13,13,15,0.6); }
.parallax-banner__quote { font-family: var(--font-display); font-size: clamp(24px, 4vw, 42px); font-weight: 600; color: var(--ink-light); letter-spacing: -0.02em; line-height: 1.3; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; font-family: var(--font-display); font-size: 15px; font-weight: 600; border-radius: 100px; transition: all 0.3s var(--ease); cursor: pointer; border: none; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,196,0,0.3); }
.btn--ghost { background: transparent; color: var(--ink-light); border: 1px solid rgba(245,245,240,0.2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline-light { background: transparent; color: var(--ink-light); border: 1px solid rgba(245,245,240,0.25); }
.btn--outline-light:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--ink); color: var(--ink-light); }
.btn--dark:hover { background: var(--accent); color: var(--ink); }
.btn--full { width: 100%; }

/* ===== SECTIONS ===== */
.section { padding: var(--section-pad) 32px; }
.section--dark { background: var(--bg-dark); color: var(--ink-light); }
.section--accent { background: var(--bg-accent); color: var(--ink); }
.container { max-width: var(--container); margin: 0 auto; }
.container--narrow { max-width: var(--container-narrow); }
.section__head { max-width: 640px; margin-bottom: 64px; }
.section__head--center { margin: 0 auto 64px; text-align: center; }
.section__eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section__eyebrow--dark { color: var(--ink); opacity: 0.6; }
.section__title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.section__title--dark { color: var(--ink); }
.section__sub { font-size: 18px; line-height: 1.6; color: var(--ink-muted); max-width: 540px; }
.section--dark .section__sub { color: var(--ink-muted-dark); }
.section__sub--dark { color: rgba(13,13,15,0.7); }
.section__cta { margin-top: 56px; text-align: center; }

/* ===== GRID ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CARDS ===== */
.card { padding: 36px 32px; background: var(--bg-light); border-radius: var(--radius); border: 1px solid var(--line-dark); transition: all 0.4s var(--ease); }
.card--dark { background: var(--bg-dark-2); border: 1px solid var(--line); }
.card--dark:hover { border-color: var(--accent); transform: translateY(-4px); }
.card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--accent-glow); border-radius: 12px; margin-bottom: 24px; color: var(--accent); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--ink-muted); line-height: 1.6; }
.card--dark p { color: var(--ink-muted-dark); }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr 200px; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line-dark); align-items: center; }
.step:last-child { border-bottom: none; }
.step__num { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.step__body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.step__body p { font-size: 16px; color: var(--ink-muted); max-width: 560px; }
.step__img { width: 200px; height: 130px; background-size: cover; background-position: center; border-radius: var(--radius-sm); transition: transform 0.5s var(--ease); }
.step:hover .step__img { transform: scale(1.05); }

/* ===== VEHICLES ===== */
.vehicle-loading { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--ink-muted-dark); font-size: 16px; }
.vehicle-card { background: var(--bg-dark-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all 0.4s var(--ease); cursor: pointer; display: flex; flex-direction: column; }
.vehicle-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.vehicle-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.vehicle-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.vehicle-card__img.is-active { opacity: 1; }
.vehicle-card__img--placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-dark-2); }
.vehicle-card__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(13,13,15,0.7); backdrop-filter: blur(8px); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-light); font-size: 20px; cursor: pointer; opacity: 0; transition: opacity 0.3s; z-index: 2; }
.vehicle-card__nav--prev { left: 8px; }
.vehicle-card__nav--next { right: 8px; }
.vehicle-card:hover .vehicle-card__nav { opacity: 1; }
.vehicle-card__nav:hover { background: var(--accent); color: var(--ink); }
.vehicle-card__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.vehicle-card__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.vehicle-card__dot.is-active { background: var(--accent); width: 20px; border-radius: 4px; }
.vehicle-card__badge { position: absolute; top: 10px; right: 10px; background: rgba(13,13,15,0.8); backdrop-filter: blur(8px); color: var(--ink-light); font-size: 11px; padding: 4px 10px; border-radius: 100px; font-weight: 600; z-index: 2; }
.vehicle-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.vehicle-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink-light); margin-bottom: 8px; letter-spacing: -0.01em; }
.vehicle-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--ink-muted-dark); }
.vehicle-card__price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--accent); margin-top: auto; margin-bottom: 12px; }
.vehicle-card__link { font-size: 13px; font-weight: 600; color: var(--ink-light); display: inline-flex; align-items: center; gap: 6px; transition: color 0.3s; }
.vehicle-card__link:hover { color: var(--accent); }

/* ===== ABOUT (mit Foto) ===== */
.about { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.about__photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 4px solid var(--accent); flex-shrink: 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__quote { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 400; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); margin: 16px 0 24px; border-left: 3px solid var(--accent); padding-left: 24px; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; }
.gallery__item { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ===== ABOUT — siehe VEHICLES-Sektion oben (einheitlich) ===== */
.about__name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.about__role { font-size: 14px; color: var(--ink-muted); }

/* ===== FORM ===== */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; margin: 0 auto; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-size: 13px; font-weight: 600; color: rgba(13,13,15,0.7); letter-spacing: 0.02em; }
.form__field input, .form__field textarea { padding: 16px 20px; border: 2px solid rgba(13,13,15,0.1); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; background: rgba(255,255,255,0.6); color: var(--ink); transition: all 0.3s; resize: vertical; }
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form__note { text-align: center; font-size: 13px; color: rgba(13,13,15,0.5); }
.form__success { text-align: center; padding: 40px; }
.form__success h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: var(--ink-light); padding: 80px 32px 40px; }
.footer__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer__logo-img { height: 50px; width: auto; filter: brightness(0) invert(1); }
.footer__brand p { color: var(--ink-muted-dark); font-size: 14px; max-width: 300px; }
.footer__col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col li { font-size: 14px; color: var(--ink-muted-dark); margin-bottom: 8px; }
.footer__col a { color: var(--ink-muted-dark); transition: color 0.3s; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-muted-dark); transition: all 0.3s; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__bottom { max-width: var(--container); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-muted-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .step { grid-template-columns: auto 1fr; }
  .step__img { display: none; }
}
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--lg, .gallery__item--wide { grid-column: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about__photo { margin: 0 auto; }
  .about__quote { border-left: none; border-top: 3px solid var(--accent); padding-left: 0; padding-top: 24px; }
  .hero-outro__stats { flex-direction: column; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
