/* ========================================================================
   Tabata HIIT: Flux – Landing Page
   Design tokens derived from PhaseColors.swift + DesignSystem.swift
   Compliant with Vercel Web Interface Guidelines
   ======================================================================== */

:root {
  color-scheme: dark;

  /* App shell backgrounds */
  --bg-deep: #07071a;
  --bg-start: #0c0c1d;
  --bg-end: #14142e;
  --bg-surface: #111128;

  /* Phase color system (exact match to PhaseColors.swift) */
  --warmup: rgb(250, 163, 53);
  --warmup-end: rgb(242, 109, 26);
  --work: rgb(232, 61, 61);
  --work-end: rgb(191, 31, 31);
  --rest: rgb(48, 143, 245);
  --rest-end: rgb(25, 107, 217);
  --recovery: rgb(74, 184, 118);
  --recovery-end: rgb(46, 148, 87);
  --cooldown: rgb(120, 112, 219);
  --cooldown-end: rgb(89, 79, 189);

  /* Design tokens (DesignSystem.swift) */
  --space-card: 16px;
  --space-section: clamp(64px, 10vw, 120px);
  --radius: 16px;
  --radius-pill: 999px;
  --max-w: 1080px;
  --ring-size: 280px;
  --ring-lw: 10px;

  /* Glass (mirrors .ultraThinMaterial) */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 24px;

  /* Text palette */
  --text-1: rgba(255, 255, 255, 0.95);
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.4);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  color: var(--text-1);
  background: var(--bg-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--rest);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text-1); }
a:focus-visible {
  outline: 2px solid var(--work);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip Link ─────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--work);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ── Ambient Canvas ────────────────────────────────────────────────── */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Z-stacking ────────────────────────────────────────────────────── */

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ── Glass utility ─────────────────────────────────────────────────── */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: background 0.3s, box-shadow 0.3s;
}

.glass:hover {
  background: var(--glass-bg-hover);
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 7, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(232, 61, 61, 0.3);
}

/* ── Navigation ───────────────────────────────────────────────────── */

.lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: var(--text-3);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.06); }
.lang-switch a[aria-current="page"] {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.1);
}
.lang-switch .sep { color: var(--text-3); user-select: none; padding: 0 2px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 100;
  margin-left: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--work);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Über .site-header (z-index: 50), unter .nav-toggle (z-index: 100) */
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 68px clamp(16px, 4vw, 32px) 20px;
  background: rgba(7, 7, 26, 0.97);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}

.main-nav.is-open {
  transform: translateY(0);
  visibility: visible;
}

.nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav-link:last-of-type {
  border-bottom: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-1);
}

.nav-link.is-active {
  color: var(--work);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--work);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  margin-top: 16px;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 10px clamp(16px, 4vw, 32px);
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  /* Höhere Spezifität als .main-nav.is-open (Mobile), damit Desktop immer sichtbar bleibt */
  .main-nav.is-open {
    transform: none;
  }

  .nav-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-bottom: none;
  }

  .nav-link::after {
    bottom: 0;
    left: 12px;
  }

  .nav-link:hover::after,
  .nav-link.is-active::after {
    width: calc(100% - 24px);
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 8px;
    align-self: auto;
  }
}

[id] {
  scroll-margin-top: 72px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--work), var(--work-end));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(232, 61, 61, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.cta-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 32px rgba(232, 61, 61, 0.5);
  color: #fff;
  text-decoration: none;
}
.cta-pill:active { transform: scale(0.98); }

.cta-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── HERO ──────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 40px) clamp(48px, 8vh, 96px);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -60% -40%;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 50% at 50% 40%,
    rgba(232, 61, 61, 0.18) 0%,
    rgba(120, 112, 219, 0.08) 40%,
    transparent 70%
  );
  animation: hero-breathe 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-breathe {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

.hero-ring-wrap {
  position: relative;
  width: clamp(200px, 42vw, 280px);
  height: clamp(200px, 42vw, 280px);
  margin-bottom: 40px;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hero-ring-track {
  border: 3px solid rgba(255, 255, 255, 0.06);
}

.hero-ring-glow {
  border: none;
  box-shadow:
    0 0 60px rgba(232, 61, 61, 0.3),
    0 0 120px rgba(232, 61, 61, 0.12);
  transition: box-shadow 0.8s ease-in-out;
}

.hero-ring-progress {
  border: none;
  --stroke: 8px;
  background: conic-gradient(
    var(--ring-c1, var(--work)) 0%,
    var(--ring-c2, var(--work-end)) calc(var(--ring-pct, 100) * 1%),
    transparent calc(var(--ring-pct, 100) * 1%)
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke) - 1px), #000 calc(100% - var(--stroke)));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke) - 1px), #000 calc(100% - var(--stroke)));
  transform: rotate(-90deg);
}

.hero-ring-inner {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-timer {
  font-size: clamp(2.5rem, 8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
  transition: text-shadow 0.8s ease-in-out;
  text-shadow:
    0 0 32px rgba(232, 61, 61, 0.5),
    0 0 64px rgba(232, 61, 61, 0.2);
}

.hero-phase-pill {
  margin-top: 8px;
  padding: 4px 14px;
  background: rgba(232, 61, 61, 0.2);
  border: 1px solid rgba(232, 61, 61, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--work);
  transition: color 0.6s, background 0.6s, border-color 0.6s;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow:
    0 0 20px rgba(232, 61, 61, 0.7),
    0 0 50px rgba(232, 61, 61, 0.35),
    0 0 100px rgba(232, 61, 61, 0.15);
  margin-bottom: 16px;
}

.hero-sub {
  max-width: 30em;
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s var(--ease), filter 0.2s;
  border-radius: 8px;
}
.store-badge:hover { transform: scale(1.04); filter: brightness(1.1); }
.store-badge img { height: 48px; width: auto; }

/* ── SECTION COMMONS ───────────────────────────────────────────────── */

section { padding: var(--space-section) clamp(20px, 5vw, 40px); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-work     { color: var(--work); }
.tag-warmup   { color: var(--warmup); }
.tag-recovery { color: var(--recovery); }
.tag-cooldown { color: var(--cooldown); }

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 16px;
}

.section-lead {
  max-width: 38em;
  color: var(--text-2);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin-bottom: 48px;
  text-wrap: pretty;
}

/* ── FEATURES ──────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, var(--card-glow, rgba(232, 61, 61, 0.06)), transparent 60%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0.6;
}
.feature-card:hover::before { opacity: 1; }

.card-audio    { --card-glow: rgba(48, 143, 245, 0.08);  --icon-bg: rgba(48, 143, 245, 0.15);  --icon-glow: rgba(48, 143, 245, 0.25); }
.card-phases   { --card-glow: rgba(232, 61, 61, 0.08);   --icon-bg: rgba(232, 61, 61, 0.15);   --icon-glow: rgba(232, 61, 61, 0.25); }
.card-presets  { --card-glow: rgba(74, 184, 118, 0.08);  --icon-bg: rgba(74, 184, 118, 0.15);  --icon-glow: rgba(74, 184, 118, 0.25); }
.card-purchase { --card-glow: rgba(250, 163, 53, 0.08);  --icon-bg: rgba(250, 163, 53, 0.15);  --icon-glow: rgba(250, 163, 53, 0.25); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--icon-bg, rgba(232, 61, 61, 0.15));
  box-shadow: 0 0 24px var(--icon-glow, rgba(232, 61, 61, 0.2));
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-1);
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── PRESETS ────────────────────────────────────────────────────────── */

.presets {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.preset-showcase {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 760px) {
  .preset-showcase { grid-template-columns: repeat(3, 1fr); }
}

.preset-card {
  padding: clamp(16px, 2.5vw, 24px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.preset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.preset-card-accent {
  border-color: rgba(232, 61, 61, 0.25);
  box-shadow: 0 0 32px rgba(232, 61, 61, 0.08);
}

.preset-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.preset-card-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.preset-card-duration {
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}

.preset-card-meta {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 14px;
}

.preset-timeline {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.preset-exercises {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.preset-ex-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  white-space: nowrap;
}

.preset-ex-chip.ex-more {
  background: rgba(232, 61, 61, 0.12);
  border-color: rgba(232, 61, 61, 0.2);
  color: var(--work);
}

.preset-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--work), var(--work-end));
  box-shadow: 0 4px 16px rgba(232, 61, 61, 0.3);
}

.preset-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.preset-callouts {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .preset-callouts { grid-template-columns: repeat(3, 1fr); }
}

.preset-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preset-callout strong {
  color: var(--text-1);
  font-size: 0.95rem;
}

.preset-callout span {
  color: var(--text-2);
  font-size: 0.88rem;
}

/* ── EXPERIENCE / SLIDESHOW ─────────────────────────────────────────── */

.experience {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.slideshow {
  position: relative;
  overflow: hidden;
}

.slide-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.slide {
  min-width: 100%;
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 0 4px;
}

.slide[hidden] {
  display: grid;
  visibility: hidden;
}

@media (min-width: 900px) {
  .slide { grid-template-columns: auto 1fr; }
}

.slide-phone {
  display: flex;
  justify-content: center;
}

.slide-phone img {
  max-width: min(260px, 70vw);
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 20px rgba(232, 61, 61, 0.12));
}

.slide-copy {
  min-width: 0;
}

.slide-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.slide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.num-work     { background: var(--work); }
.num-recovery { background: var(--recovery); }
.num-rest     { background: var(--rest); }

.slide-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slide-bullets strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.slide-bullets p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

/* Slide navigation tabs */
.slide-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.slide-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.slide-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

.slide-tab:focus-visible {
  outline: 2px solid var(--work);
  outline-offset: 2px;
}

.slide-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-1);
}

.slide-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tab-color, var(--work));
  box-shadow: 0 0 8px var(--tab-color, var(--work));
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.tab-work     { --tab-color: var(--work); }
.tab-recovery { --tab-color: var(--recovery); }
.tab-rest     { --tab-color: var(--rest); }

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

/* Auto-advance progress bar */
.slide-progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 16px;
  overflow: hidden;
}

.slide-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--work), var(--rest));
  transition: width 0.1s linear;
}

.exp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.exp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 16px var(--dot-color, var(--work));
  background: var(--dot-color, var(--work));
}

.exp-work     { --dot-color: var(--work); }
.exp-rest     { --dot-color: var(--rest); }
.exp-warmup   { --dot-color: var(--warmup); }
.exp-recovery { --dot-color: var(--recovery); }
.exp-cooldown { --dot-color: var(--cooldown); }

.exp-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.exp-item p {
  color: var(--text-2);
  font-size: 0.92rem;
}

/* ── TIMELINE ──────────────────────────────────────────────────────── */

.timeline-section { padding-top: 0; }

.timeline-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
}

.timeline-bar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9px;
  background: inherit;
  filter: blur(8px);
  opacity: 0.3;
  z-index: -1;
}

.tl-seg {
  border-radius: 3px;
  min-width: 4px;
  flex-grow: var(--w, 1);
  position: relative;
  overflow: hidden;
}

.tl-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
}

.s-warmup { background: linear-gradient(90deg, var(--warmup), var(--warmup-end)); }
.s-work   { background: linear-gradient(90deg, var(--work), var(--work-end)); }
.s-rest   { background: linear-gradient(90deg, var(--rest), var(--rest-end)); }
.s-reco   { background: linear-gradient(90deg, var(--recovery), var(--recovery-end)); }
.s-cool   { background: linear-gradient(90deg, var(--cooldown), var(--cooldown-end)); }

.timeline-cursor {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: tl-sweep 8s linear infinite;
  z-index: 2;
}

@keyframes tl-sweep {
  from { left: 0%; }
  to { left: 100%; }
}

.phase-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.phase-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.phase-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-warmup   { background: var(--warmup);   box-shadow: 0 0 10px var(--warmup); }
.dot-work     { background: var(--work);     box-shadow: 0 0 10px var(--work); }
.dot-rest     { background: var(--rest);     box-shadow: 0 0 10px var(--rest); }
.dot-recovery { background: var(--recovery); box-shadow: 0 0 10px var(--recovery); }
.dot-cooldown { background: var(--cooldown); box-shadow: 0 0 10px var(--cooldown); }

.phase-chip strong {
  color: var(--text-1);
  margin-right: 4px;
}

.phase-chip span { color: var(--text-2); }

/* ── WATCH ─────────────────────────────────────────────────────────── */

.watch-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .watch-grid {
    grid-template-columns: auto 1fr;
    justify-items: start;
  }
}

.watch-frame { position: relative; }

.watch-frame img {
  max-width: min(200px, 50vw);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.watch-frame::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 112, 219, 0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.watch-features { max-width: 460px; }

.watch-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.watch-features li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-2);
}

.watch-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cooldown);
  box-shadow: 0 0 12px var(--cooldown);
  flex-shrink: 0;
}

/* ── TRUST ─────────────────────────────────────────────────────────── */

.trust-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-card {
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.trust-privacy-link {
  margin-top: 28px;
}

/* ── CTA BANNER ────────────────────────────────────────────────────── */

.cta-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(232, 61, 61, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-banner .section-inner { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow:
    0 0 20px rgba(232, 61, 61, 0.5),
    0 0 60px rgba(232, 61, 61, 0.2);
}

.cta-banner p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ────────────────────────────────────────────────────────── */

.site-footer {
  padding: 48px clamp(16px, 4vw, 32px) 32px;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  font-size: 0.9rem;
}
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text-1); }

.footer-meta {
  font-size: 0.82rem;
  color: var(--text-3);
  max-width: 40em;
}

/* ── SCROLL REVEAL ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ── REDUCED MOTION ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-glow { animation: none; opacity: 0.9; }
  .timeline-cursor { animation: none; display: none; }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */

@media (max-width: 374px) {
  .hero h1 { letter-spacing: 0.05em; }
  .footer-links { flex-direction: column; }
}

@media (min-width: 640px) {
  .hero-ring-wrap {
    width: 280px;
    height: 280px;
  }
}

/* ── LEGAL PAGES ───────────────────────────────────────────────────── */

body.legal-page {
  background: linear-gradient(145deg, var(--bg-start), var(--bg-end));
  padding: 0 clamp(16px, 4vw, 32px) 48px;
}

.legal-page .legal-nav {
  max-width: 40rem;
  margin: 0 auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}
.legal-page .legal-nav a { font-weight: 600; font-size: 0.95rem; }
.legal-page .legal-content { max-width: 40rem; margin: 0 auto; padding-top: 24px; }
.legal-page h1 { font-size: 1.5rem; margin-top: 0; letter-spacing: 0.02em; }
.legal-page h2 { font-size: 1.1rem; margin-top: 1.5em; }
.legal-page h3 { font-size: 1rem; margin-top: 1em; color: var(--text-2); }
.legal-page p, .legal-page ul { margin: 0.5em 0; color: var(--text-2); }
.legal-page ul { padding-left: 1.5em; }
.legal-page strong { color: var(--text-1); }
/* Nur Fließtext-Links — nicht Header, Navigation oder Footer (die haben eigene Farben) */
.legal-page .legal-content a {
  color: var(--rest);
}
.legal-page .legal-content a:hover {
  color: var(--text-1);
}

/* ── SUPPORT PAGE ──────────────────────────────────────────────────── */

.support-content .support-lead { color: var(--text-2); margin-bottom: 1em; }
.support-contact { margin-top: 1.25em; }
.support-contact-note { font-size: 0.92rem; color: var(--text-3); }
.support-lang-jump {
  display: flex;
  gap: 16px;
  margin: 1.5em 0;
  font-weight: 600;
}
.support-lang-block { margin-top: 2em; }
.support-lang-block h2 { margin-top: 0; }
.support-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2.5em 0;
}
.support-faq {
  margin: 0.75em 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  overflow: hidden;
}
.support-faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-1);
  list-style: none;
}
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary::after {
  content: "+";
  float: right;
  color: var(--text-3);
  font-weight: 400;
}
.support-faq[open] summary::after { content: "−"; }
.support-faq p {
  padding: 0 16px 14px;
  margin: 0;
  border-top: 1px solid var(--glass-border);
}
.support-legal { margin-top: 2em; font-size: 0.92rem; }
