/* ── Reset & Tokens ──────────────────────────────────────── */

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

:root {
  /* Flächen */
  --ink:        #08080B;
  --ink-2:      #0D0E13;
  --ink-3:      #14161D;
  --line:       rgba(255,255,255,.10);
  --line-2:     rgba(255,255,255,.18);

  /* Schrift */
  --bone:       #F6F2E9;
  --bone-dim:   rgba(246,242,233,.62);
  --bone-mute:  rgba(246,242,233,.40);

  /* Sorten-Akzent (wird per JS gesetzt) */
  --accent:     #FF8A1F;
  --accent-2:   #FFCC3D;
  --accent-glow: rgba(255,138,31,.42);
  --on-accent:  #0A0A0C;

  /* Raster */
  --pad:        clamp(1.25rem, 4vw, 4.5rem);
  --maxw:       1440px;
  --radius:     20px;
  --radius-sm:  12px;

  /* Bewegung */
  --ease:       cubic-bezier(.16, 1, .3, 1);
  --ease-io:    cubic-bezier(.65, .05, .36, 1);
  --dur:        .72s;

  /* Typo-Skala */
  --fs-mega:    clamp(4.5rem, 17vw, 15rem);
  --fs-h2:      clamp(2.25rem, 5.4vw, 4.5rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead:    clamp(1rem, 1.15vw, 1.15rem);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip statt hidden: hidden macht das Dokument zum Scroll-Container und
     kostet den optimierten Scrollpfad des Browsers. */
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
/* Ohne das gewinnt jede display-Regel gegen das hidden-Attribut */
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ── Typografie ──────────────────────────────────────────── */

.h2 {
  font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.12;  /* Platz für Umlaut-Punkte in Anton */
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color .8s var(--ease);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--bone-dim);
  max-width: 46ch;
}
.lead a { color: var(--bone); border-bottom: 1px solid var(--line-2); }
.lead a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Utilities ───────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll-Reveal. Kurz und mit wenig Versatz: Wer mit Schwung scrollt, soll
   fertige Inhalte sehen und nicht beim Einblenden zusehen müssen. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }

  /* Die Laufbänder sind Inhalt, keine Deko — sie laufen auch hier weiter,
     sonst steht der Text abgeschnitten und wirkt kaputt. */
  .topbar__track { animation-duration: 34s !important; animation-iteration-count: infinite !important; }
  .ticker__track { animation-duration: 46s !important; animation-iteration-count: infinite !important; }
}

/* ── MEKATRON: Hintergrund wechselt mit der Sorte ─────────── */
/* Als <color> registriert, damit Flaechen und Akzente beim Sortenwechsel
   weich ueberblenden statt hart zu springen. */
@property --ink    { syntax: '<color>'; inherits: true; initial-value: #08080B; }
@property --ink-2  { syntax: '<color>'; inherits: true; initial-value: #0D0E13; }
@property --ink-3  { syntax: '<color>'; inherits: true; initial-value: #14161D; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #FF8A1F; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #FFCC3D; }
:root {
  transition: --ink .9s var(--ease), --ink-2 .9s var(--ease), --ink-3 .9s var(--ease),
              --accent .9s var(--ease), --accent-2 .9s var(--ease);
}
/* Sortenwechsel bleibt auch bei „Bewegung reduzieren“ animiert (viele Handys
   schalten das mit dem Energiesparmodus ein): es ist ein weiches Überblenden,
   keine hektische Bewegung. Sonst springen Bild, Text und Farben hart um. */
@media (prefers-reduced-motion: reduce) {
  :root {
    transition: --ink .9s var(--ease), --ink-2 .9s var(--ease), --ink-3 .9s var(--ease),
                --accent .9s var(--ease), --accent-2 .9s var(--ease) !important;
  }
  .hero__cup { transition-duration: 1s, .75s, .75s !important; }
  .hero__panel { transition-duration: .24s, .24s !important; }
  .hero__word i.is-anim { animation-duration: .9s !important; }
}

/* Haze Corner: durchgehend eckige Ecken (Boxen, Karten, Knöpfe, Felder) */
*, *::before, *::after { border-radius: 0 !important; }
