/* =========================================================================
   Wadenbeisser Racing — Landing Page
   Design tokens, layout and components. No inline styles in the markup.
   ========================================================================= */

:root {
  --bg:          #0e0e10;
  --pink:        #FF1C8E;
  --pink-logo:   #e31c79;
  --teal:        #045463;
  --teal-hover:  #067287;
  --teal-bright: #3aa9bd;

  --white:       #fff;
  --grey-100:    #c4c4cc;
  --grey-200:    #cfe3e7;
  --grey-300:    #9a9aa2;
  --grey-400:    #7e7e85;  /* WCAG AA: 4.78:1 auf --bg */
  --grey-500:    #828289;  /* WCAG AA: 5.05:1 auf --bg */

  --rule:        3px solid var(--pink);

  --font-display: 'Anton', sans-serif;
  --font-body:    'Archivo', sans-serif;
  --font-brand:   'Bangers', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --pad-x:        clamp(18px, 5vw, 44px);
  --shell-max:    1180px;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

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

::selection { background: var(--pink); color: var(--white); }

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  background: var(--bg);
  overflow: hidden;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--white);
  color: var(--bg);
  overflow: hidden;
  padding: 9px 0;
  border-bottom: var(--rule);
}

.ticker__track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: wbmarquee 18s linear infinite;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px var(--pad-x);
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand__logo { height: 30px; width: auto; display: block; }

.brand__name { font-size: 20px; line-height: 1; }

.brand__name--mark {
  font-family: var(--font-brand);
  font-size: 25px;
  letter-spacing: 0.02em;
  color: var(--pink-logo);
}

.brand__name--tld {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--grey-400);
}

.nav__links {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav__link { color: var(--grey-100); transition: color 0.15s; }
.nav__link:hover { color: var(--pink); }

.nav__link--accent { color: var(--pink); }
.nav__link--accent:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 30px var(--pad-x) 0;
  position: relative;
}

.hero__title { font-weight: 400; }

.hero__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(58px, 15.5vw, 172px);
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero__line--pink { color: var(--pink); }

.hero__line--outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

.hero__badge {
  position: absolute;
  right: var(--pad-x);
  bottom: 22px;
  transform: rotate(-4deg);
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- Statement + slideshow ---------- */
.statement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 50px;
  border-top: var(--rule);
}

.statement__text {
  padding: clamp(36px, 5vw, 54px) var(--pad-x);
  border-right: var(--rule);
}

.statement__title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 34px);
  line-height: 1.12;
  text-transform: uppercase;
}

.statement__body {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-300);
  margin-top: 24px;
}

.slideshow {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.slide.is-active { opacity: 1; }

/* Sichtbarer Bildausschnitt je Slide (Querformat-Rahmen schneidet Hochformate
   oben/unten ab -> Fokus auf Fahrer:innen bzw. Gesichter legen). */
.slide--1  { object-position: center 12%; }
.slide--2  { object-position: center 42%; }
.slide--3  { object-position: center 38%; }
.slide--4  { object-position: center 42%; }
.slide--6  { object-position: center 45%; }
.slide--8  { object-position: center 58%; }
.slide--9  { object-position: center 30%; }
.slide--10 { object-position: center 42%; }
.slide--11 { object-position: center 48%; }
.slide--12 { object-position: center 18%; }

.dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.dot {
  width: 9px;
  height: 9px;
  background: var(--white);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.dot.is-active { opacity: 1; }

/* ---------- Slogan band ---------- */
.band {
  background: var(--teal);
  padding: clamp(48px, 8vw, 74px) var(--pad-x);
  border-top: var(--rule);
  text-align: center;
}

.band__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--white);
  overflow-wrap: break-word;
}

.band__title span { color: var(--pink); }

/* ---------- Feature row ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 40px clamp(20px, 4vw, 30px);
  border-top: var(--rule);
  border-right: var(--rule);
}

.features .feature:last-child { border-right: none; }

.feature--teal { background: var(--teal); }

.feature__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 60px);
  line-height: 0.9;
  color: var(--pink);
}

.feature__num--white { color: var(--white); }

.feature__text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-300);
  margin-top: 12px;
}

.feature__text--light { color: var(--grey-200); }

/* ---------- Schedule ---------- */
.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--rule);
}

.schedule__cell { padding: 48px clamp(20px, 5vw, 40px); }

.schedule__cell--ruled { border-right: var(--rule); }

.schedule__kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.schedule__kicker--teal { color: var(--teal-bright); }

.schedule__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 62px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 10px;
}

.schedule__spec {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.schedule__note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-300);
  margin-top: 10px;
  line-height: 1.6;
}

/* ---------- Join / CTA ---------- */
.join {
  background: var(--pink);
  color: var(--bg);
  padding: clamp(48px, 8vw, 76px) var(--pad-x);
  text-align: center;
  border-top: var(--rule);
}

.join__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 88px);
  line-height: 0.85;
  text-transform: uppercase;
}

.join__sub {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  margin-top: 18px;
  letter-spacing: 0.04em;
}

.join__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn--dark { background: var(--bg); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--bg); transform: translateY(-2px); }

.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-hover); transform: translateY(-2px); }

/* ---------- Imprint ---------- */
.imprint {
  border-top: var(--rule);
  padding: 48px var(--pad-x);
  background: var(--bg);
}

.imprint__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.imprint__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
  margin-top: 20px;
  max-width: 760px;
}

.imprint__block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey-100);
}

.imprint__head {
  color: var(--grey-500);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.imprint__muted { color: var(--grey-500); }

.imprint__note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--grey-500);
  margin-top: 24px;
  max-width: 760px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-500);
  letter-spacing: 0.04em;
}

.footer__links { display: flex; gap: 20px; }

.footer__link { color: var(--grey-500); transition: color 0.15s; }
.footer__link:hover { color: var(--pink); }

/* ---------- Marquee ---------- */
@keyframes wbmarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================================
   Entrance animations
   ========================================================================= */
@keyframes wbSlideL {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wbPop {
  0%   { opacity: 0; transform: rotate(-4deg) scale(0.6); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

.hero__line--a1 { animation: wbSlideL 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__line--a2 { animation: wbSlideL 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__line--a3 { animation: wbSlideL 0.7s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__badge    { animation: wbPop 0.55s 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* Scroll reveals — only armed once JS adds .js-anim to <html> */
.reveal {
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-anim .reveal.reveal--up    { opacity: 0; transform: translateY(34px); }
.js-anim .reveal.reveal--left  { opacity: 0; transform: translateX(-44px); }
.js-anim .reveal.reveal--right { opacity: 0; transform: translateX(44px); }
.js-anim .reveal.reveal--scale { opacity: 0; transform: scale(0.93); }
.reveal.is-in { opacity: 1 !important; transform: none !important; }

.js-anim .stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.is-in > *:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .hero__line--a1,
  .hero__line--a2,
  .hero__line--a3,
  .hero__badge { animation: none !important; }
  .js-anim .reveal,
  .js-anim .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 760px) {
  .statement,
  .schedule,
  .features { grid-template-columns: 1fr; }

  .statement__text,
  .schedule__cell--ruled {
    border-right: none;
    border-bottom: var(--rule);
  }

  .features .feature { border-right: none; }

  .slideshow { min-height: 240px; }

  .nav__links { gap: 16px; }

  .hero__badge {
    position: static;
    display: inline-block;
    margin-top: 14px;
  }
}
