/* =====================================================================
   TRADER CHALLENGE — V2 "Compact" (mobile-first)
   Sanfte Reveals statt Scroll-Pinning. Lädt NACH style.css.
   ===================================================================== */

:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Anchors scrollen via JS (scrollIntoView smooth) — CSS-smooth würde
   programmatische Scrolls animieren und ist auf Mobile träger. */
html { scroll-behavior: auto; }
body { background: #070708; overflow-x: clip; }

/* ---------- Fixed Ambience ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(225, 255, 32, .07), transparent 60%),
    radial-gradient(50% 35% at 10% 90%, rgba(225, 255, 32, .05), transparent 60%),
    #070708;
}
.bg-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225,255,32,.09), transparent 70%);
  top: -20vmax; right: -25vmax; filter: blur(10px);
}

/* ---------- Scroll-Progress (bleibt!) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: rgba(255,255,255,.06);
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #b7d10e, var(--accent));
  transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* ---------- Topbar (nur oben sichtbar) ---------- */
.v2-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: linear-gradient(180deg, rgba(7,7,8,.85), transparent);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.v2-topbar .logo { font-size: .92rem; }
.v2-topbar.hide { opacity: 0; transform: translateY(-14px); pointer-events: none; }
@media (max-width: 900px) {
  .v2-topbar { justify-content: center; }
}

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Kompakte Sektionen ---------- */
.section-c { padding: 52px 0; }
.section-c.alt { background: rgba(255,255,255,.02); }
.section-c h2 { font-size: clamp(1.35rem, 4.6vw, 2rem); }

/* ---------- Hero (kompakt) ---------- */
.c-hero { padding: calc(76px + env(safe-area-inset-top)) 0 40px; }
.c-hero-grid { display: grid; gap: 40px; align-items: center; }
.c-hero-copy { text-align: center; }
.c-hero-copy .badge { margin-bottom: 16px; }
.c-hero-copy h1 {
  font-size: clamp(1.75rem, 6.4vw, 2.9rem);
  line-height: 1.12; letter-spacing: -.02em; margin-bottom: 14px;
}
.c-hero-copy .sub { max-width: 46ch; margin: 0 auto 18px; font-size: clamp(.95rem, 2.5vw, 1.08rem); }
.c-hero-copy .hero-points { text-align: left; max-width: 480px; margin: 0 auto 22px; gap: 10px; }
.c-hero-phone { display: flex; justify-content: center; }

/* Platz für die gedockten Chips (oben/unten) */
.phone-scene { position: relative; margin: 26px 0 68px; }

/* ---------- Floating Chips ---------- */
.float-chip {
  position: absolute; z-index: 3;
  background: rgba(16, 16, 18, .9);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 2px;
  white-space: nowrap;
  animation: chip-float 5s ease-in-out infinite;
}
.float-chip b { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.float-chip .chip-kicker {
  display: flex; align-items: center; gap: 6px;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ok);
}
.float-chip .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; }
.float-chip .chip-sub { font-size: .68rem; color: var(--muted); }
.chip-tl { top: 4%; left: -10%; border-color: rgba(74, 222, 128, .35); min-width: 200px; }
.chip-tl b { color: var(--ok); font-size: 1.25rem; }
.chip-tr { top: 15%; right: -8%; animation-delay: 1.2s; }
.chip-bl { bottom: 26%; left: -12%; animation-delay: 2.1s; }
.chip-br { bottom: 36%; right: -9%; animation-delay: 3s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-9px) }
}
.chip-tl.swap b, .chip-tl.swap .chip-sub { animation: chip-swap .5s var(--ease-out); }
@keyframes chip-swap {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
/* Mobile: nur 2 Chips, an die Frame-Ränder gedockt — Video bleibt frei */
@media (max-width: 900px) {
  .chip-tr, .chip-bl { display: none; }
  .chip-tl { top: -20px; left: -3%; padding: 8px 12px; }
  .chip-tl b { font-size: 1.05rem; }
  .chip-br { bottom: -58px; right: 6%; padding: 8px 12px; }
  .float-chip b { font-size: .88rem; }
  .float-chip .chip-sub { font-size: .64rem; }
  .v2-topbar { backdrop-filter: none; }
}

/* ---------- Proof-Karten: Szenario-Zeile kräftiger ---------- */
.market .scenario { font-size: .95rem; font-weight: 800; letter-spacing: .1em; }
.market .scenario .neg { color: #ff6b6b; }
.market .scenario .pos { color: var(--ok); }
.market .result { margin-top: 8px; }

/* ---------- Endless-Carousel ---------- */
.marq { padding: 52px 0; overflow: clip; }
.marq h2 { text-align: center; padding: 0 24px; margin-bottom: 8px; font-size: clamp(1.35rem, 4.6vw, 2rem); }
.marq .sub { text-align: center; padding: 0 24px; margin-bottom: 30px; }
.marq-row { overflow: clip; padding: 8px 0; }
.marq-row + .marq-row { margin-top: 14px; }
.marq-track {
  display: flex; gap: 16px; width: max-content;
  padding-right: 16px;
  animation: marq-scroll 42s linear infinite;
  will-change: transform;
}
.marq-row.reverse .marq-track { animation-direction: reverse; animation-duration: 34s; }
.marq-row:hover .marq-track { animation-play-state: paused; }
@keyframes marq-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.t-card {
  width: min(320px, 78vw); flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px;
}
.t-card p { font-size: .92rem; color: #d9d9d5; }
.t-card .who { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.t-card .avatar, .chip-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #2b2b30, #1b1b1f); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 800; font-size: .82rem;
}
.t-card .who b { display: block; font-size: .88rem; }
.t-card .who span { color: var(--muted); font-size: .76rem; }
.chip-card {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px 8px 8px;
}
.chip-card b { display: block; font-size: .88rem; line-height: 1.2; }
.chip-card span { font-size: .78rem; color: var(--muted); }
.chip-card em.pos { font-style: normal; color: var(--ok); font-weight: 700; margin-right: 4px; }

/* ---------- Florian + Stats + TÜV ---------- */
.florian { padding: 52px 20px; max-width: 1120px; margin: 0 auto; }
.florian-card {
  background: linear-gradient(165deg, #17171a, #101012);
  border: 1px solid var(--line); border-radius: 26px; padding: 30px 24px;
}
.florian-card .kicker { margin-bottom: 12px; }
.florian-card h2 { font-size: clamp(1.35rem, 4.8vw, 2rem); margin-bottom: 12px; }
.florian-card .sub { font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stat { text-align: center; background: rgba(225,255,32,.05); border: 1px solid rgba(225,255,32,.18); border-radius: 16px; padding: 14px 4px; }
.stat b { display: block; font-size: clamp(1.15rem, 5.2vw, 2rem); font-weight: 800; color: var(--accent); letter-spacing: -.02em; white-space: nowrap; }
.stat span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Opt-in / FAQ / Final CTA ---------- */
.v2-optin { padding: 52px 20px 44px; }
.v2-optin .head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.v2-optin .head h2 { font-size: clamp(1.4rem, 5.4vw, 2.2rem); }
.v2-faq { padding: 16px 20px 40px; max-width: 720px; margin: 0 auto; }
.final-cta { text-align: center; padding: 12px 20px 90px; max-width: 640px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(1.35rem, 5vw, 2rem); margin-bottom: 10px; }
.final-cta .sub { margin-bottom: 22px; }

/* ---------- Sticky-CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 16px 20px; border-radius: 16px;
  box-shadow: 0 16px 50px rgba(225,255,32,.35);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.sticky-cta.show { transform: none; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marq-track { animation: none; }
  .float-chip { animation: none; }
  .chip-tl.swap b, .chip-tl.swap .chip-sub { animation: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .c-hero { padding-top: 110px; }
  .c-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .c-hero-copy { text-align: left; }
  .c-hero-copy .sub { margin-left: 0; }
  .c-hero-copy .hero-points { margin-left: 0; }
  .phone-scene { margin: 0; }
  .section-c { padding: 64px 0; }
  .sticky-cta { left: auto; right: 28px; width: 320px; }
}
