/* ==========================================================================
   EasyComp landing page
   Mobile-first. Breakpoints: 600px (sm), 900px (md), 1200px (lg).
   ==========================================================================
   Table of contents:
     1. Tokens & resets
     2. Layout helpers (container, section, reveal)
     3. Typography
     4. Buttons
     5. Navbar + drawer
     6. Hero (full-bleed photo + leaderboard overlay)
     7. Live leaderboard component
     8. Why EasyComp (alternating content section)
     9. Live demo section
    10. Stats row
    11. Aktuelle Wettkämpfe
    12. Steps (3-up)
    13. Mitmachen (participate)
    14. About / Über uns
    15. Pricing
    16. FAQ
    17. CTA banner
    18. Footer
    19. Flutter bridge visibility
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & resets
   -------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f6fb;
  --bg-deep: #0d1326;
  --line: rgba(14, 19, 38, 0.08);
  --line-strong: rgba(14, 19, 38, 0.14);

  --ink: #0e1326;
  --ink-soft: #353c54;
  --ink-mute: #6b7280;
  --ink-faint: #9aa0ad;

  --blue: #4373a9;
  --purple: #71369a;
  --navy: #253855;
  --grad: linear-gradient(135deg, #4373a9 0%, #71369a 100%);
  --grad-soft: linear-gradient(135deg, rgba(67, 115, 169, 0.10) 0%, rgba(113, 54, 154, 0.10) 100%);

  --live: #1f9d55;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 19, 38, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(14, 19, 38, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(14, 19, 38, 0.20);
  --shadow-glow: 0 30px 80px -20px rgba(113, 54, 154, 0.35);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid spacing — used everywhere so mobile/desktop just work */
  --section-y: clamp(44px, 6vw, 88px);
  --section-y-tight: clamp(32px, 4.5vw, 64px);
  --container-x: clamp(20px, 4vw, 32px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* --------------------------------------------------------------------------
   2. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-x);
}

section {
  padding: var(--section-y) 0;
  position: relative;
}
section.tight { padding: var(--section-y-tight) 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3.5vw, 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-head .lede { text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.on-dark { color: rgba(255, 255, 255, 0.85); }
.eyebrow.on-dark::before { background: rgba(255, 255, 255, 0.6); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(36px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: clamp(18px, 2vw, 22px); line-height: 1.25; }

.lede {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 180ms ease, box-shadow 220ms ease, background 200ms ease,
              border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(14, 19, 38, 0.45);
}
.btn-primary:hover {
  background: #1a2140;
  box-shadow: 0 12px 28px -10px rgba(14, 19, 38, 0.55);
}
.btn-primary.gradient {
  background: var(--grad);
  box-shadow: 0 14px 30px -10px rgba(113, 54, 154, 0.55);
}
.btn-primary.gradient:hover { box-shadow: 0 18px 40px -10px rgba(113, 54, 154, 0.65); }

.btn-secondary {
  background: rgba(14, 19, 38, 0.04);
  color: var(--ink);
  border-color: rgba(14, 19, 38, 0.08);
}
.btn-secondary:hover {
  background: rgba(14, 19, 38, 0.08);
  border-color: rgba(14, 19, 38, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  border-radius: 0;
}
.btn-ghost::after { content: "→"; transition: transform 180ms ease; margin-left: 6px; }
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-on-dark.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-on-dark.btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }

a[data-loading]::after {
  content: "";
  display: inline-block;
  width: 0.9em; height: 0.9em;
  margin-left: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ec-spin 0.7s linear infinite;
}
@keyframes ec-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   5. Navbar + drawer
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 12px;
}
.nav-inner {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  width: 90vw;
  height: 70px;
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 104px;
  color: #fff;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 280ms ease;
}
.nav-logo-btn {
  background: none; border: none; padding: 0;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.nav-logo-btn:hover { transform: scale(1.05); }
.nav-logo-btn img { width: 50px; height: 50px; }

.nav-tabs { display: none; }

.nav-profile {
  background: none; border: none; padding: 0;
  width: 30px; height: 30px;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.95;
  margin-left: auto;
  text-decoration: none;
}
.nav-profile:hover { transform: scale(1.08); opacity: 1; }

.nav-burger {
  background: none; border: none;
  width: 24px; height: 24px;
  color: #fff;
  cursor: pointer;
  margin-left: 16px;
  display: grid; place-items: center;
}

/* Tablet band — match Flutter's "screenWidth > 500" mobile bar */
@media (min-width: 500px) and (max-width: 899px) {
  .nav-inner {
    width: 80vw;
    height: 88px;
    padding: 0 26px;
  }
  .nav-logo-btn { width: 64px; height: 64px; }
  .nav-logo-btn img { width: 64px; height: 64px; }
  .nav-burger { margin-left: 20px; }
}

/* Tablet+: show pill with tabs */
@media (min-width: 900px) {
  .nav { top: 24px; padding: 0 16px; }
  .nav-inner {
    width: min(80vw, 1316px);
    min-width: min(1000px, 100%);
    height: 76px;
    padding: 0 32px;
    border-radius: 999px;
  }
  .nav-inner.expanded { height: 108px; border-radius: 56px; }
  .nav-logo-btn { width: 56px; height: 56px; }
  .nav-logo-btn img { width: 56px; height: 56px; }

  .nav-tabs {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    row-gap: 4px;
    width: 750px;
    max-width: 60%;
  }
  .nav-sublinks {
    grid-row: 2;
    grid-column: 1 / span 2;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: -8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    pointer-events: none;
  }
  .nav-inner.expanded .nav-sublinks {
    max-height: 28px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-burger { display: none; }
}

.nav-tab {
  position: relative;
  grid-row: 1;
  background: none; border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  padding: 12px 4px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity 180ms ease;
  text-decoration: none;
}
.nav-tab:hover { opacity: 1; }
.nav-tab.active { opacity: 1; }
.nav-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}

.nav-sublink {
  background: none; border: none;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
  position: relative;
  text-decoration: none;
}
.nav-sublink:hover { color: rgba(255, 255, 255, 0.9); }
.nav-sublink.active { color: #fff; }
.nav-sublink.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.nav-sublink-sep {
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
}

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 85vw);
  background: #fff;
  z-index: 111;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.drawer-close {
  background: var(--bg-alt); border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
}
.drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Hero — full-bleed photo with copy + live leaderboard overlay
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/landing-assets/hero.jpg");
  background-image: image-set(
    url("/landing-assets/hero.webp") type("image/webp"),
    url("/landing-assets/hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
  z-index: -2;
}
.hero.in::before { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 19, 38, 0.55) 0%,
    rgba(13, 19, 38, 0.25) 30%,
    rgba(13, 19, 38, 0.85) 100%);
  z-index: -1;
}
.hero .container {
  width: 100%;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
.hero-content { max-width: 780px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: rgba(71, 71, 71, 0.609);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
@media (max-width: 899px) {
  .hero-eyebrow { display: none; }
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0.05); }
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 .accent {
  color: #fff;
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--grad);
  opacity: 0.45;
  border-radius: 4px;
  z-index: -1;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: #fff;
  color: var(--ink);
}
.hero .btn-primary:hover { background: rgba(255, 255, 255, 0.92); }
.hero .btn-primary.gradient {
  background: var(--grad);
  color: #fff;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
}
.hero-meta .pill {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* Floating leaderboard card on the hero — desktop only */
.hero-leaderboard {
  display: none;
}
@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
    align-items: end;
    gap: 64px;
  }
  .hero-leaderboard {
    display: block;
    align-self: end;
    justify-self: end;
    width: min(380px, 100%);
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 800ms 600ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 600ms 600ms ease;
  }
  .hero.in .hero-leaderboard { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. Live leaderboard component
   -------------------------------------------------------------------------- */
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.lb-head .title { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.lb-head .sub {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.lb-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--live);
  padding: 3px 8px;
  background: rgba(31, 157, 85, 0.10);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.lb-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.lb-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 400ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lb-row.flash { background: rgba(67, 115, 169, 0.08); }
.lb-row .rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  display: grid; place-items: center;
}
.lb-row.r1 .rank { background: #fff4cd; color: #8a6d10; }
.lb-row.r2 .rank { background: #e8eaf0; color: #4b5468; }
.lb-row.r3 .rank { background: #f1d9c4; color: #7a4a1a; }
.lb-row .name {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  min-width: 0;
}
.lb-row .name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-row .score {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lb-row .score .sub { font-size: 11px; color: var(--ink-mute); font-weight: 500; margin-left: 4px; }

/* --------------------------------------------------------------------------
   8. Why EasyComp (content-section with alternating image/text)
   -------------------------------------------------------------------------- */
.cs {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.cs-text { display: flex; flex-direction: column; gap: 16px; }
.cs-text h2 { margin-top: 4px; }
.cs-text ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-text li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.cs-text li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
  width: 20px; height: 20px;
}
.cs-text .btn { align-self: flex-start; margin-top: 12px; }

.cs-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 480px;
}
.cs-visual .img-back,
.cs-visual .img-front {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt) center/cover no-repeat;
}
.cs-visual .img-back {
  inset: 0 25% 25% 0;
}
.cs-visual .img-front {
  inset: 25% 0 0 25%;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .cs { grid-template-columns: 1fr 1fr; }
  .cs.reverse .cs-visual { order: 2; }
  .cs.reverse .cs-text { order: 1; }
}

/* --------------------------------------------------------------------------
   9. Live demo section (full-width dark card)
   -------------------------------------------------------------------------- */
.live-section,
.features-section { background: var(--bg-alt); }
.live-card {
  background: var(--bg-deep);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.live-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}
.live-card > * { position: relative; z-index: 1; }
.live-card h2 { color: #fff; }
.live-card .lede { color: rgba(255, 255, 255, 0.75); }
.live-card .lb-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 18px;
}
.live-card .lb-head .title { color: #fff; }
.live-card .lb-head .sub { color: rgba(255, 255, 255, 0.5); }
.live-card .lb-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 12px 4px;
}
.live-card .lb-row:last-child { border-bottom: none; }
.live-card .lb-row.flash { background: rgba(67, 115, 169, 0.18); }
.live-card .lb-row .rank { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); }
.live-card .lb-row.r1 .rank { background: var(--grad); color: #fff; }
.live-card .lb-row .name { color: #fff; }
.live-card .lb-row .score { color: #fff; }
.live-card .lb-row .score .sub { color: rgba(255, 255, 255, 0.5); }

.live-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.live-stats .v {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.02em;
}
.live-stats .l {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 900px) {
  .live-card { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* --------------------------------------------------------------------------
   10. Stats row (large editorial numbers)
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(16px, 2.2vw, 24px) clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-bottom: none; }
.stat .num {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat .num .unit {
  font-size: 0.5em;
  color: var(--blue);
  font-weight: 700;
}
.stat .label {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (min-width: 600px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { border-right: 1px solid var(--line); border-bottom: none; }
  .stat:last-child { border-right: none; }
}

/* --------------------------------------------------------------------------
   11. Aktuelle Wettkämpfe (compact list-row)
   -------------------------------------------------------------------------- */
.section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.section-link .left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-link h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-link .btn-ghost { font-size: 14px; }

.comp-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .comp-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

.comp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  min-width: 0;
}
.comp-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.comp-row .thumb {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background-color: #1a2140;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.comp-row .thumb .badge-live {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--live);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  padding: 1px 0;
}
.comp-row .body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.comp-row .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comp-row .meta-row {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comp-row .meta-row .gym {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.comp-row .meta-row .sep { color: var(--ink-faint); }
.comp-row .chev {
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 200ms ease, color 200ms ease;
}
.comp-row:hover .chev { transform: translateX(3px); color: var(--ink-soft); }

.comp-skeleton {
  height: 80px;
  border-radius: var(--r-md);
  background: linear-gradient(110deg, var(--bg-alt) 30%, rgba(14, 19, 38, 0.04) 50%, var(--bg-alt) 70%);
  background-size: 200% 100%;
  animation: skeleton 1.5s linear infinite;
}
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.comp-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink-mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   12. Steps (3-up)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 36px);
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

#how, #preise { padding: clamp(36px, 5vw, 72px) 0; }

.step {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px -6px rgba(113, 54, 154, 0.45);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-mute); font-size: 15px; line-height: 1.6; margin: 0; }

/* --------------------------------------------------------------------------
   13. Mitmachen (participate)
   -------------------------------------------------------------------------- */
.participate {
  background: var(--bg-alt);
}
.participate .cs-visual {
  aspect-ratio: 4 / 3;
}
.participate .cs-visual .img-single {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-alt) center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.participate .cs-text .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   14. About / Über uns
   -------------------------------------------------------------------------- */
.about .cs-visual .img-back {
  inset: 0 30% 30% 0;
}
.about .cs-visual .img-front {
  inset: 30% 0 0 30%;
}
.about-body {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-line;
}

/* --------------------------------------------------------------------------
   15. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 280ms ease, border-color 280ms ease;
  position: relative;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  background: var(--bg-deep);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.1;
  pointer-events: none;
}
.price-card.featured > * { position: relative; z-index: 1; }
.price-card .badge {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--grad);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card .tier {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card.featured .tier { color: rgba(255, 255, 255, 0.85); }
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .price .amount {
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .price .per { font-size: 13px; color: var(--ink-mute); }
.price-card.featured .price .per { color: rgba(255, 255, 255, 0.7); }
.price-card .desc { color: var(--ink-mute); font-size: 13px; line-height: 1.55; margin: 0; }
.price-card.featured .desc { color: rgba(255, 255, 255, 0.7); }
.price-card .badge.subtle {
  background: rgba(67, 115, 169, 0.10);
  color: var(--blue);
}

/* Shared features list below the pricing grid */
.price-features {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(28px, 3vw, 36px);
  background: var(--bg-alt);
  border-radius: var(--r-lg);
}
/* When the feature box sits inside a section that already uses --bg-alt
   (e.g. .features-section), swap to a white surface with a hairline border
   so it doesn't blend into the surrounding background. */
.features-section .price-features {
  background: #fff;
  border: 1px solid var(--line);
}
.price-features-head {
  text-align: center;
  margin-bottom: 20px;
}
.price-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
}
@media (min-width: 600px) { .price-features-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .price-features-list { grid-template-columns: repeat(3, 1fr); } }
.price-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.price-features-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue); }

.price-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 32px);
}
.price-cta .btn { padding: 16px 36px; font-size: 16px; }

.price-footnote {
  margin: clamp(20px, 3vw, 28px) auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  gap: 16px;
}
.faq-q .chev {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  transition: transform 280ms ease, background 280ms ease, color 280ms ease;
  flex-shrink: 0;
  color: var(--ink);
}
.faq-item.open .faq-q .chev {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.22, 1, 0.36, 1), padding 280ms ease;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.65;
  max-width: 64ch;
}
.faq-item.open .faq-a {
  max-height: 420px;
  padding: 0 0 24px;
}
.faq-a .faq-cta {
  margin-top: 16px;
}
.faq-a .faq-cta .btn { font-size: 14px; padding: 10px 20px; }

/* --------------------------------------------------------------------------
   17. CTA banner
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--bg-deep);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/landing-assets/cta-bg.jpg");
  background-image: image-set(
    url("/landing-assets/cta-bg.webp") type("image/webp"),
    url("/landing-assets/cta-bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67, 115, 169, 0.35) 0%, rgba(113, 54, 154, 0.35) 100%);
  z-index: 0;
}
.cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 720px) {
  .cta .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .cta .col-l { flex: 1 1 380px; }
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta .lede { color: rgba(255, 255, 255, 0.85); max-width: 50ch; }
.cta .col-r {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.cta .btn-primary {
  background: #fff;
  color: var(--ink);
  padding: 18px 32px;
  font-size: 16px;
}
.cta .btn-primary:hover { background: rgba(255, 255, 255, 0.92); }
.cta .micro { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(40px, 6vw, 64px) 0 32px;
}
.footer .container { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 48px); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } }

.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 700;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer ul a:hover { color: #fff; }
.footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.footer .brand .glyph {
  width: 36px; height: 36px;
  display: block;
  flex-shrink: 0;
}
.footer .tagline { font-size: 14px; max-width: 32ch; margin-bottom: 24px; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 600px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   19. Flutter bridge visibility
   -------------------------------------------------------------------------- */
#flutter-host {
  position: fixed;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  background: var(--bg);
}
#flutter-host.ready {
  visibility: visible;
  pointer-events: auto;
}
body.app-active #landing-root { display: none; }

/* --------------------------------------------------------------------------
   20. Phone rhythm
   -------------------------------------------------------------------------- */
@media (max-width: 599px) {
  :root {
    --section-y: 36px;
    --section-y-tight: 26px;
    --container-x: 20px;
  }

  #how, #preise { padding: 32px 0 !important; }

  section { padding: var(--section-y) 0; }

  section.tight,
  section.tight[style] {
    padding: var(--section-y-tight) 0 !important;
  }

  #why { padding: 40px 0 !important; }

  .section-head {
    margin-bottom: 28px;
    gap: 12px;
  }

  .reveal {
    transform: translateY(14px);
    transition-duration: 450ms;
  }

  .reveal.delay-1,
  .reveal.delay-2,
  .reveal.delay-3,
  .reveal.delay-4 {
    transition-delay: 0ms;
  }

  h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.12;
  }

  .section-head h2 {
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .lede {
    font-size: 13px;
    line-height: 1.55;
  }

  .nav {
    top: 16px;
    padding: 0 12px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    align-items: flex-end;
  }

  .hero::before { background-position: 52% center; }

  .hero .container {
    padding-top: 96px;
    padding-bottom: 38px;
    gap: 20px;
  }

  .hero-sub {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.55;
    max-width: 30ch;
  }

  .hero-actions { margin-top: 24px; }

  .hero-meta {
    margin-top: 20px;
    gap: 10px;
    font-size: 12px;
  }

  .btn {
    padding: 13px 22px;
    min-height: 52px;
  }

  .stats-row { border-top: none; }

  .stat { padding: 18px 14px; }

  .stat .num { font-size: 34px; }

  .section-link {
    align-items: baseline;
    margin-bottom: 18px;
  }

  .comp-row {
    padding: 10px;
    gap: 12px;
  }

  .comp-row .thumb {
    width: 52px;
    height: 52px;
  }

  .cs { gap: 28px; }

  .cs-text { gap: 12px; }

  .cs-text ul {
    gap: 11px;
    margin-top: 4px;
  }

  .cs-text li {
    font-size: 13px;
    line-height: 1.45;
    gap: 10px;
  }

  .price-features-list li { font-size: 12px; line-height: 1.45; }

  .faq-q { font-size: 14px; }

  .faq-a { font-size: 13px; line-height: 1.55; }

  .cs-text .btn { margin-top: 8px; }

  .cs-visual {
    aspect-ratio: 1 / 1;
    max-height: 340px;
    width: min(100%, 350px);
    margin: 0 auto;
  }

  .cs-visual .img-back,
  .cs-visual .img-front,
  .participate .cs-visual .img-single {
    border-radius: 18px;
  }

  .cs-visual .img-back,
  .about .cs-visual .img-back {
    inset: 0 28% 28% 0;
  }

  .cs-visual .img-front,
  .about .cs-visual .img-front {
    inset: 28% 0 0 28%;
  }

  .steps {
    gap: 10px;
    margin-top: 18px;
  }

  .step {
    border-radius: 16px;
    padding: 18px;
  }

  .price-card {
    border-radius: 16px;
    padding: 18px;
  }

  .step .num {
    width: 38px;
    height: 38px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .step h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .step p {
    font-size: 13px;
    line-height: 1.5;
  }

  .live-card {
    border-radius: 24px;
    padding: 28px;
    gap: 24px;
  }

  .live-card .lb-wrap { padding: 14px; }

  .lb-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 0;
  }

  .lb-row .score { font-size: 13px; }

  .lb-row .score .sub { display: none; }

  .price-features {
    padding: 24px;
    border-radius: 18px;
  }

  .price-features-head {
    text-align: left;
    margin-bottom: 18px;
  }

  .price-features-list { gap: 10px; }

  .price-card { gap: 12px; }

  .price-card .tier { font-size: 11px; }

  .price-card .badge {
    top: 14px;
    right: 14px;
    font-size: 10px;
    padding: 3px 8px;
  }

  .price-card .price .amount { font-size: 30px; }

  .price-card .price .per { font-size: 12px; }

  .price-card .desc { font-size: 12px; line-height: 1.5; }

  .price-footnote { text-align: left; }

  .about-body {
    font-size: 13px;
    line-height: 1.6;
  }

  .faq-list { margin-top: 24px; }

  .faq-q { padding: 20px 0; }

  .cta .container { gap: 24px; }

  .cta .btn-primary {
    width: 100%;
    padding: 16px 24px;
  }

  .cta .col-r .btn { width: 100%; }

  .footer { padding-top: 36px; }
}
