/* ==========================================================================
   Runners Landing · Concept C · Atmosphere
   Apple-Tier-Composition · Swiss-Style-Discipline · Cloudflare Pages
   ========================================================================== */

:root {
  --ink: #FFFFFF;
  --bg: #0A0A0A;
  --bg2: #1A2228;             /* Jungfrau alpine substrate als Atmosphere-Anchor */
  --mid: #8A8A8A;
  --soft: #B8B8B8;
  --line: #2A2A2A;
  --line-soft: #1F1F1F;
  --accent: #99BC12;          /* Atmosphere-Akzent (chartreuse) */
  --warm: #F2E4D8;            /* Frauenlauf substrate */
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

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

/* === Navigation =========================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  z-index: 100;
  transition: background 240ms ease, backdrop-filter 240ms ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav .brand {
  font-size: 14px; font-weight: 600; letter-spacing: -0.2px;
}
.nav .brand .accent { color: var(--accent); }
.nav .links {
  display: flex; gap: 32px; font-size: 13px; color: var(--mid);
}
.nav .links a:hover { color: var(--ink); }
.nav .cta {
  background: var(--accent); color: var(--bg);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

/* === Hero ================================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  /* Override section defaults — Hero muss full-bleed sein (sonst sichtbare
     vertikale Kanten links/rechts, wo Body-Bg neben dem 1280px-Hero läuft). */
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 100% 80% at 65% 50%,
      rgba(26, 34, 40, 0.85) 0%,
      rgba(26, 34, 40, 0.35) 35%,
      transparent 80%
    ),
    var(--bg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero::before {
  /* Vignette nur Top — Sides + Bottom dürfen NICHT dunkler werden als Body-Bg,
     sonst sichtbare Helligkeitskanten an den Page-Rändern und zur nächsten Sektion.
     Side-Atmosphere kommt allein vom radial-gradient des .hero (kein Overlay nötig). */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}
.hero-grid {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max);
  padding: 120px 56px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  text-transform: uppercase;
  font-size: 11px; letter-spacing: 2px; color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(56px, 6.5vw, 92px);
  line-height: 1.0;
  letter-spacing: -2.5px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--soft); }
.hero-sub {
  font-size: 18px; line-height: 1.6; color: var(--mid);
  margin-bottom: 36px;
  max-width: 480px;
}
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta-primary {
  background: var(--accent); color: var(--bg);
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.1px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(153, 188, 18, 0.25);
}
.cta-secondary {
  color: var(--ink);
  padding: 14px 8px;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--mid);
  padding-bottom: 4px;
}

/* Multi-Poster Stack === */
.gallery {
  position: relative;
  width: 100%; aspect-ratio: 720 / 760;
  max-height: 760px;
}
.poster {
  position: absolute;
  aspect-ratio: 500 / 707;
  border-radius: 4px;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 480ms ease, opacity 480ms ease;
}
.poster img {
  width: 100%; height: 100%; object-fit: cover;
}
.poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}
.poster--hero {
  width: 53%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--warm);
  z-index: 4;
  box-shadow:
    0 0 80px rgba(153, 188, 18, 0.06),
    0 32px 96px rgba(0, 0, 0, 0.7),
    0 64px 192px rgba(0, 0, 0, 0.5);
}
.poster--l2-left {
  width: 42%;
  top: 50%; left: 12%;
  transform: translateY(-50%) rotate(-4deg);
  background: var(--bg2);
  z-index: 3;
  opacity: 0.85;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.poster--l2-right {
  width: 42%;
  top: 50%; right: 4%;
  transform: translateY(-50%) rotate(3deg);
  background: #E8E4DC;
  z-index: 3;
  opacity: 0.85;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.poster--l3 {
  width: 30%;
  top: 14%; right: 22%;
  transform: rotate(-2deg);
  background: #E8E4DC;
  z-index: 2;
  opacity: 0.55;
  filter: blur(0.5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--mid);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .dot {
  width: 1px; height: 24px;
  background: linear-gradient(180deg, var(--mid) 0%, transparent 100%);
}

/* === Section Shell ======================================================== */

section {
  padding: 120px 56px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-eyebrow {
  text-transform: uppercase;
  font-size: 11px; letter-spacing: 2px; color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.section-head {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -1.5px;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 720px;
}
.section-sub {
  font-size: 18px; line-height: 1.6; color: var(--mid);
  max-width: 640px;
  margin-bottom: 56px;
}

/* === Showcase: 4 Races ==================================================== */

/* Section-Trennung allein durch Padding-Rhythmus (Apple-Style),
   kein Border-Top — das schafft sonst sichtbare Linien-Kanten. */
.showcase {
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 32px;
  margin-top: 56px;
}
.race-card {
  display: flex; flex-direction: column; gap: 16px;
  cursor: pointer;
  transition: transform 320ms ease;
}
.race-card:hover { transform: translateY(-4px); }
.race-card .frame {
  aspect-ratio: 500 / 707;
  background: #1A1A1A;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.race-card img { width: 100%; height: 100%; object-fit: cover; }
.race-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.5px;
  margin-top: 8px;
}
.race-card .meta {
  font-size: 13px; color: var(--mid);
  display: flex; gap: 12px;
  font-feature-settings: 'tnum';
}
.race-card .meta span:not(:last-child)::after {
  content: "·"; margin-left: 12px; color: var(--line);
}

/* === How it works ========================================================= */

.how {
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.step {
  display: flex; flex-direction: column; gap: 16px;
}
.step .num {
  font-size: 64px; font-weight: 600;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.step h4 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.4px;
}
.step p {
  font-size: 15px; color: var(--mid); line-height: 1.6;
}

/* === Pricing ============================================================== */

.pricing {
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.tier {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 240ms ease, transform 240ms ease;
}
.tier:hover { border-color: var(--mid); transform: translateY(-2px); }
.tier.featured { border-color: var(--accent); }
.tier .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--mid); font-weight: 600;
}
.tier.featured .label { color: var(--accent); }
.tier .price {
  font-size: 48px; font-weight: 600; letter-spacing: -1.5px;
  font-feature-settings: 'tnum';
}
.tier .price small {
  font-size: 18px; color: var(--mid); font-weight: 500;
  margin-left: 4px;
}
.tier h3 {
  font-size: 18px; font-weight: 600; margin-top: 4px;
}
.tier ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.tier li {
  font-size: 14px; color: var(--mid);
  padding-left: 20px;
  position: relative;
}
.tier li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}

/* === Pre-Order Form ======================================================= */

.preorder {
  /* Subtiler atmospheric Glow am Top — verbindet visuell zur Hero-Atmosphere. */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26, 34, 40, 0.4) 0%, transparent 60%),
    var(--bg);
}
.preorder-card {
  max-width: 640px;
  margin: 56px auto 0;
  padding: 48px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 22, 24, 0.4);
  backdrop-filter: blur(8px);
}
form { display: flex; flex-direction: column; gap: 20px; }
label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--mid); font-weight: 600;
}
input, select, textarea {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px; font-family: inherit;
  transition: border-color 160ms ease;
}
textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: #555; }
button[type="submit"] {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 999px;
  padding: 14px 24px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(153, 188, 18, 0.25);
}
.fine-print {
  font-size: 12px; color: var(--mid); line-height: 1.5;
  margin-top: 8px;
}
.fine-print a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.form-success, .form-error {
  padding: 16px 20px; border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-success {
  background: rgba(153, 188, 18, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.form-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid #FF5050;
  color: #FF8080;
}

/* === Veranstalter ========================================================= */

.veranstalter {
}
.veranstalter .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.veranstalter .visual {
  background: var(--bg2);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.veranstalter .visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 707;
  object-fit: contain;
  border-radius: 4px;
}

/* === Footer =============================================================== */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 56px 32px;
  max-width: var(--max);
  margin: 80px auto 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--mid); font-weight: 600;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li { font-size: 13px; color: var(--soft); }
.footer-grid li a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px; color: var(--mid);
  letter-spacing: 0.5px;
}
.footer-attribution {
  font-size: 11px; color: var(--mid);
  margin-top: 8px;
}

/* === Responsive =========================================================== */

@media (max-width: 980px) {
  .nav { padding: 16px 24px; }
  .nav .links { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 100px 24px 64px;
    gap: 56px;
    text-align: left;
  }
  .gallery {
    aspect-ratio: 1 / 1.2;
    max-height: 600px;
  }
  section { padding: 80px 24px; }
  .showcase-grid, .how-steps, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .veranstalter .inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 48px; letter-spacing: -1.5px; }
  .section-head { font-size: 32px; }
  .tier .price { font-size: 40px; }
  .step .num { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
}
