/* =============================================================
   Leon Nuß — adidas Bewerbung
   Premium / cinematic one-pager
   Mobile-first, schwarz/weiss + 1 Akzent
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --ink:       #ffffff;
  --ink-2:     rgba(255,255,255,.62);
  --ink-3:     rgba(255,255,255,.35);
  --line:      rgba(255,255,255,.10);

  /* Akzentfarbe — hier bei Bedarf einen anderen Ton eintragen */
  --accent:    #2C53FF;

  /* "Roter Faden" — die geschwungene Verbindungslinie der Timeline.
     Auf den Akzent setzen (var(--accent)) wenn rein monochrom gewuenscht. */
  --thread:    #E5231B;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease:      cubic-bezier(.22,.61,.36,1);

  --container: min(1280px, 92vw);
  --gutter:    clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* Lenis braucht das beim Smooth-Scroll: */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Layout helpers ---------- */
.container {
  width: var(--container);
  margin: 0 auto;
}
.section {
  padding: clamp(96px, 18vh, 200px) 0;
  position: relative;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 clamp(28px, 6vh, 56px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-3);
}
.section-eyebrow span {
  color: var(--ink);
}

/* Big headline style — wird in vielen Sektionen verwendet */
.big-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.accent { color: var(--accent); }

/* Generic reveal initial state (GSAP setzt es animiert) */
.reveal { will-change: transform, opacity; }

/* =============================================================
   Topbar
   ============================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  pointer-events: none;
  mix-blend-mode: difference;
}
.topbar__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  color: #fff;
}
.topbar__meta {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
@media (max-width: 640px) {
  .topbar__meta { display: none; }
}

/* =============================================================
   Progress bar — duenner senkrechter Balken rechts
   ============================================================= */
.progress {
  position: fixed;
  top: 0; right: 0;
  width: 2px;
  height: 100vh;
  background: var(--line);
  z-index: 50;
}
.progress__bar {
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .08s linear;
}

/* =============================================================
   Custom cursor (nur Desktop, JS aktiviert)
   ============================================================= */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 100;
  transform: translate3d(-100px, -100px, 0);
  display: none;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
  margin: -18px 0 0 -18px;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  margin: -3px 0 0 -3px;
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(255,255,255,.08);
}
body.has-cursor .cursor,
body.has-cursor .cursor-dot { display: block; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* =============================================================
   1. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(80px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.05) brightness(.45);
  z-index: -2;
  transform: scale(1.08);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(0,0,0,.0), rgba(0,0,0,.85)),
              linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.0) 30%);
  z-index: -1;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 clamp(28px, 5vh, 56px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 18rem);
  line-height: .88;
  letter-spacing: -0.04em;
  margin: 0;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line span {
  display: inline-block;
  will-change: transform;
}
.hero__claim {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: clamp(28px, 5vh, 48px) 0 0;
  max-width: 24ch;
  color: var(--ink);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 50%, transparent 50%, transparent 100%);
  background-size: 100% 200%;
  background-position: 0 0;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}

/* Mobile: Scroll-Hinweis kompakter + mehr Abstand zum Claim,
   damit sich Label und Claim-Text nicht ueberlappen. */
@media (max-width: 640px) {
  .hero { padding-bottom: clamp(120px, 20vh, 170px); }
  .hero__scroll { bottom: 22px; gap: 8px; }
  .hero__scroll-label { display: none; } /* nur die animierte Linie behalten */
  .hero__scroll-line { height: 44px; }
}

/* =============================================================
   2. INTRO
   ============================================================= */
.intro {
  border-top: 1px solid var(--line);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vh, 40px);
  margin-top: clamp(48px, 8vh, 96px);
  max-width: 900px;
}
.intro__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

/* =============================================================
   3. TIMELINE — vertikaler, geschwungener Pfad (oben -> unten)
   Desktop: zwei Spalten, Stationen versetzt (rechte Spalte tiefer).
   Mobile:  eine Spalte, Stationen abwechselnd links/rechts.
   Der rote Faden laeuft in der Luecke ZWISCHEN den Bildern und
   liegt hinter ihnen (z-index 1), zeigt sich also nur in den Gaps.
   ============================================================= */
.timeline {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.timeline__head {
  margin-bottom: clamp(48px, 9vh, 110px);
}
.timeline__sub {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Flow: zwei Spalten; Referenz fuer den absolut liegenden SVG-Faden */
.timeline__flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 9vw, 150px);
  align-items: start;
}

/* Roter Faden — liegt HINTER den Bildern, sichtbar nur in den Luecken */
.thread {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.thread__path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(229, 35, 27, .45));
}
.thread__node {
  fill: var(--thread);
  opacity: 0;                          /* erscheint, wenn der Faden den Knoten erreicht */
  transition: opacity .35s var(--ease);
}

/* Station */
.station {
  position: relative;
  z-index: 2;                          /* Bilder/Texte liegen ueber dem Faden */
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(70px, 13vh, 160px);
}
.station[data-side="left"]  { grid-column: 1; }
.station[data-side="right"] {
  grid-column: 2;
  margin-top: clamp(80px, 16vh, 200px);  /* "mehr oben und unten" — rechte Spalte versetzt */
}
.station--final {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  margin-top: clamp(40px, 7vh, 90px);
  margin-bottom: 0;
}

.station__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.station__thread {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.station__thread::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
}
.station[data-thread="ball"] .station__thread::before { background: #fff; }
.station[data-thread="code"] .station__thread::before { background: var(--accent); }

.station__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #1b1b1b, #0a0a0a);
  margin: 10px 0 6px;
}
.station__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.12);
  will-change: transform;
}
.station__img--accent {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}
.station--final .station__img {
  width: min(440px, 86%);
  aspect-ratio: 16 / 10;
  margin-inline: auto;
}
.station__caption { display: flex; flex-direction: column; gap: 6px; }
.station__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}
.station__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 42ch;
}
.station--final .station__text { margin-inline: auto; }

/* === Mobile: eine Spalte, abwechselnd links/rechts versetzt === */
@media (max-width: 899px) {
  .timeline__flow { display: block; }
  .station {
    width: 80%;
    margin-top: 0 !important;
    margin-bottom: clamp(56px, 10vh, 110px);
  }
  .station[data-side="left"]  { margin-right: auto; margin-left: 0; }
  .station[data-side="right"] { margin-left: auto; margin-right: 0; }
  .station--final { width: 90%; margin-inline: auto; }
}

/* =============================================================
   4. VALUES — drei Begriffe
   ============================================================= */
.values { border-top: 1px solid var(--line); }
.values__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(32px, 6vh, 64px);
}
.value {
  padding: clamp(40px, 8vh, 80px) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-3);
  padding-top: 18px;
}
.value__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 16px;
}
.value__desc {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin: 0;
}
@media (min-width: 900px) {
  .value { grid-template-columns: 120px 1fr; gap: 48px; }
}

/* =============================================================
   5. WHY ADIDAS
   ============================================================= */
.why { border-top: 1px solid var(--line); }
.why__grid {
  margin-top: clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
}
.why__grid p {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* =============================================================
   6. VIDEO
   ============================================================= */
.video { border-top: 1px solid var(--line); }
.video__frame {
  position: relative;
  margin-top: clamp(48px, 8vh, 96px);
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  max-width: 1100px;
}
.video__frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .35s var(--ease), background .35s var(--ease);
}
.video__play:hover { background: rgba(0,0,0,.15); }
.video__play.is-hidden { opacity: 0; pointer-events: none; }
.video__play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  display: block;
  transition: transform .3s var(--ease);
}
.video__play:hover .video__play-icon { transform: scale(1.06); }
.video__play-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #000;
}
.video__play-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 640px) {
  .video__play-icon { width: 68px; height: 68px; }
  .video__play-icon::before { border-width: 11px 0 11px 17px; }
}

/* =============================================================
   7. CONTACT
   ============================================================= */
.contact { border-top: 1px solid var(--line); padding-bottom: 80px; }
.contact__list {
  list-style: none;
  padding: 0;
  margin: clamp(48px, 8vh, 96px) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.contact__list li {
  border-top: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list a {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vh, 48px) 0;
  font-family: var(--font-display);
  position: relative;
  transition: padding .35s var(--ease);
}
.contact__list a::after {
  content: '→';
  font-size: 24px;
  color: var(--ink-3);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.contact__list a:hover { padding-left: 16px; }
.contact__list a:hover::after { color: var(--accent); transform: translateX(8px); }
.contact__label {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact__value {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer {
  margin-top: clamp(64px, 10vh, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-display);
  gap: 20px;
  flex-wrap: wrap;
}

/* =============================================================
   Reduced motion: alle Animationen aus
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__scroll-line { animation: none; }
}
