/* ============================================================
   ARTEON — Apple-Style Scroll Website
   Mobile First → Desktop via @media (min-width: 768px)
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Lokal gehostet statt Google-Fonts-CDN: kein DSGVO-Datentransfer, kein externer Roundtrip.
   AP4.2: eine einzige @font-face mit Gewichtsbereich statt vier identischer Deklarationen mit
   fixem font-weight -- es ist ein Variable Font, die vier Kopien luden dieselbe Datei viermal
   und rendern durchgehend nur die default-Instanz (kein sichtbarer Gewichtsunterschied 300-600),
   `font-weight: 300 600` aktiviert den Variable-Font-Achsenbereich erst wirklich. Datei liegt
   jetzt unter showcase/arteon/fonts/ -- vorher unter web/fonts/, aber ausschliesslich hier genutzt. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/inter-var.woff2') format('woff2'); }

:root {
  --bg:             #0a0a0a;
  --text-primary:   #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent:         #e8e0d5;
  --font-display:   system-ui, -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
}

html {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  overflow-x: hidden;
}

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


/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-primary);
}

#loader-bar {
  width: min(280px, 70vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  overflow: hidden;
}

#loader-progress {
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  border-radius: 1px;
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}


/* ============================================================
   FIXED HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
}

.site-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text-primary); }

/* Mobile: nav ausblenden */
@media (max-width: 767px) {
  .site-nav { display: none; }
  .site-logo { height: 22px; }
  .site-header { padding: 1rem 1.25rem; }
}


/* ============================================================
   HERO STANDALONE
   ============================================================ */
.hero-standalone {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 100%;
}

/* Mobile: zentriert */
@media (max-width: 767px) {
  .hero-standalone { align-items: center; text-align: center; }
  .hero-inner { align-items: center; }
}

/* Desktop: oben-mitte */
@media (min-width: 768px) {
  .hero-standalone {
    padding: 0.5rem 6vw 0;
    align-items: center;
  }
  .hero-inner {
    max-width: 80vw;
    text-align: center;
    align-items: center;
  }
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 11rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #D6E4F4;
  display: flex;
  flex-direction: column;
  text-shadow: none;
}

.hero-heading .word {
  display: block;
  overflow: hidden;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #7A9BBF;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-shadow: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-text {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-indicator-arrow {
  font-size: 1rem;
  color: var(--text-secondary);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   CANVAS
   ============================================================ */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 2;
  clip-path: circle(0% at 50% 50%);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* ============================================================
   DARK OVERLAY
   ============================================================ */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s linear;
}



/* ============================================================
   SCROLL CONTAINER & SECTIONS
   ============================================================ */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 5;
}

.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  /* opacity: 0 wird per GSAP gsap.set(autoAlpha:0) gesetzt — NICHT hier,
     sonst überschreibt CSS den GSAP-Inline-Style beim Entfernen von is-visible */
  will-change: opacity, transform;
}

.scroll-section.is-visible {
  pointer-events: auto;
}

/* MOBILE: 9:16 Video füllt Screen, Text-Overlay links unten */
@media (max-width: 767px) {
  /* Canvas: full viewport (zurück zu inset:0 — kein height-Override) */
  /* .canvas-wrap braucht keinen Override mehr */

  /* Sections: position wird per JS auf fixed gesetzt, links-bündig, bottom:14vh */
  .scroll-section {
    padding: 0;
    min-height: auto;
    background: transparent;
    width: auto;
  }

  /* Section-Inner: Panel-Stil */
  .section-inner {
    max-width: 100%;
    padding: 1.5rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    text-align: left;
  }

  .section-inner .section-body { max-width: 100%; }

  /* Typografie: kompakter für Mobile */
  .section-heading { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 0.85rem; }
  .section-body    { font-size: 0.9rem; line-height: 1.6; }
  .section-label   { margin-bottom: 0.6rem; }

}

/* DESKTOP: links positioniert */
@media (min-width: 768px) {
  .align-left {
    padding-left: 6vw;
    padding-right: 52vw;
  }

  .align-left .section-inner {
    max-width: 40vw;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 2.5rem 3rem;
  }
}


/* ============================================================
   TYPOGRAFIE — SECTION ELEMENTS
   ============================================================ */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 36ch;
  font-weight: 300;
}

@media (max-width: 767px) {
  .section-body { max-width: 100%; }
}


/* ============================================================
   STAT ROW (Leistung)
   ============================================================ */
.stat-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  flex-wrap: nowrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1.5rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  align-self: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.stat-desc {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

@media (max-width: 767px) {
  .stat-row { gap: 0; }
  .stat-value { font-size: 1.5rem; }
  .stat-item { padding-right: 1rem; }
  .stat-divider { margin-right: 1rem; height: 32px; }
}


/* ============================================================
   FELGE SPECS
   ============================================================ */
.felge-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.spec-value {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .felge-specs { grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
  .spec-value { font-size: 1rem; }
}


/* ============================================================
   CTA BUTTON — Apple pill style
   ============================================================ */
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.25rem;
  border-radius: 980px;
  background: var(--text-primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.cta-button:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.cta-button:active {
  transform: scale(0.98);
}

@media (max-width: 767px) {
  .cta-button { padding: 0.85rem 2rem; font-size: 0.9rem; }
}


/* ============================================================
   MOBILE PAGE — Statische Version ohne Canvas
   ============================================================ */
.mobile-page { display: none; }

@media (max-width: 767px) {
  /* Desktop-Elemente auf Mobile ausblenden */
  #loader,
  .canvas-wrap,
  #dark-overlay,
  #scroll-container,
  .hero-standalone { display: none !important; }

  .mobile-page {
    display: block;
    background: var(--bg);
  }

  /* Hero mit Shader */
  .mobile-hero {
    position: relative;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #050518 0%, #000d1a 50%, #010a10 100%);
  }

  #mobile-hero-canvas {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
  }

  #mobile-hero-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  .mobile-hero-text {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 3.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  }

  .mobile-hero-text .section-label {
    color: rgba(245,245,247,0.7);
  }

  .mobile-hero-text .hero-heading {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
    margin: 0.5rem 0 0.75rem;
    color: #fff;
  }

  .mobile-hero-text .hero-tagline {
    color: rgba(245,245,247,0.6);
  }

  /* Content Sections */
  .mobile-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .mobile-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-section-img-wrap {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
  }

  .mobile-section-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .mobile-section-content {
    padding: 2rem 1.5rem 3rem;
    background: var(--bg);
  }

  .mobile-section-content .section-heading {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 1rem;
  }
}


/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ============================================================
   3D HERO CANVAS
   ============================================================ */
#hero-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: block;
}
#hero-3d-canvas.ready { opacity: 1; }

#hero-3d-loader {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  transition: opacity 0.6s ease;
}
#hero-3d-loader.hidden { opacity: 0; pointer-events: none; }

#hero-3d-bar-wrap {
  width: 90px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}
#hero-3d-bar {
  height: 100%;
  width: 0%;
  background: #ffb030;
  border-radius: 1px;
  transition: width 0.15s linear;
}
#hero-3d-pct {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255,176,48,0.5);
  font-family: var(--font-display);
}

#hero-3d-hint {
  position: absolute;
  bottom: 5rem;
  right: 6vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
#hero-3d-hint.visible { opacity: 1; }
#hero-3d-hint p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-3d-pulse {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,176,48,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse3d 1.8s ease-in-out infinite;
}
.hero-3d-pulse::after {
  content: '';
  width: 14px;
  height: 14px;
  background: #ffb030;
  border-radius: 50%;
}
@keyframes pulse3d {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 767px) {
  #hero-3d-canvas,
  #hero-3d-loader,
  #hero-3d-hint { display: none !important; }
}

#hero-3d-mobile-hint {
  position: absolute;
  bottom: 5rem;
  right: 6vw;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
#hero-3d-mobile-hint.visible { opacity: 1; }
#hero-3d-mobile-hint p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

/* ============================================================
   3D HERO CANVAS — MOBILE
   ============================================================ */
#hero-3d-mobile-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: block;
}
#hero-3d-mobile-canvas.ready { opacity: 1; }

#hero-3d-mobile-loader {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.6s ease;
}
#hero-3d-mobile-loader.hidden { opacity: 0; pointer-events: none; }

#hero-3d-mobile-bar-wrap {
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}
#hero-3d-mobile-bar {
  height: 100%;
  width: 0%;
  background: #ffb030;
  border-radius: 1px;
  transition: width 0.15s linear;
}
#hero-3d-mobile-pct {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(255,176,48,0.5);
  font-family: var(--font-display);
}


/* ============================================================
   FOOTER — Pflichtangaben (Impressum/Datenschutz/Kennzeichnung)
   ============================================================ */
.showcase-footer {
  position: relative;
  z-index: 20;
  background: var(--bg);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.showcase-footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto 1.25rem;
}

.showcase-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.showcase-footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.showcase-footer-links a:hover {
  color: var(--text-primary);
}
