/* ========================================
   MITLÄUFER — Running Club Bern
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-text: #f0f0f0;
  --color-text-dim: #888888;
  --color-accent: #c8ff00;
  --color-accent-glow: rgba(200, 255, 0, 0.3);
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ========================================
   ACCESS GATE
   ======================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: max(60px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  transition: opacity 0.5s ease;
}

.gate.closing {
  opacity: 0;
  pointer-events: none;
}

.gate__step {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: step-enter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gate__step.hidden {
  display: none;
}

.gate__step.is-leaving {
  animation: step-leave 0.22s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes step-enter {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes step-leave {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}

/* Intro Hero (Step 0) */
.gate__step--intro {
  max-width: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  gap: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  animation: none;
}

/* Staggered Intro Entrance */
.gate__step--intro .intro__bg {
  opacity: 0;
  animation: intro-fade 600ms ease-out 0ms forwards;
}

.gate__step--intro .intro__brand {
  opacity: 0;
  transform: translateY(-8px);
  animation: intro-fade-down 400ms cubic-bezier(0.2, 0.8, 0.2, 1) 0ms forwards;
}

.gate__step--intro .intro__title {
  opacity: 0;
  transform: scale(0.92);
  animation: intro-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms forwards;
}

.gate__step--intro .intro__sub {
  opacity: 0;
  transform: translateY(10px);
  animation: intro-fade-up 450ms cubic-bezier(0.2, 0.8, 0.2, 1) 500ms forwards;
}

.gate__step--intro .btn--intro {
  opacity: 0;
  transform: scale(0.92);
  animation: intro-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 700ms forwards;
}

.gate__step--intro .gate__info-btn--intro {
  opacity: 0;
  animation: intro-fade 300ms ease-out 900ms forwards;
}

@keyframes intro-fade {
  to { opacity: 1; }
}

@keyframes intro-fade-down {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-pop {
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .gate__step--intro .intro__bg,
  .gate__step--intro .intro__brand,
  .gate__step--intro .intro__title,
  .gate__step--intro .intro__sub,
  .gate__step--intro .btn--intro,
  .gate__step--intro .gate__info-btn--intro {
    animation: intro-fade 200ms ease-out forwards;
    transform: none;
  }
}

.intro__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.intro__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.35) 0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0.92) 100%
  );
}

.intro__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px max(40px, env(safe-area-inset-bottom));
  gap: 16px;
}

.intro__brand {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-text);
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 54px);
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.intro__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-dim);
  margin-bottom: 14px;
  max-width: 340px;
}

.btn--intro {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 rgba(200, 255, 0, 0);
}

.btn--intro:hover {
  box-shadow: 0 0 40px var(--color-accent-glow);
}

.btn--intro:active {
  transform: scale(0.98);
}

.gate__info-btn--intro {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
  margin-top: 0;
}

.gate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.gate__sub {
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.5;
  opacity: 0.75;
  margin-bottom: 2px;
}

/* Persistent Progress HUD (top-left) */
.gate__progress {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.gate__progress.hidden {
  display: none;
}

.gate__progress-tag {
  position: relative;
  padding-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

.gate__progress-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--color-accent);
}

.gate__progress-bar {
  width: 100px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gate__progress-bar-fill {
  width: 20%;
  height: 100%;
  background: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Info button (Step 1 only) */
.gate__info-btn {
  align-self: flex-start;
  margin-top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gate__info-btn:hover,
.gate__info-btn:active {
  opacity: 1;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Name input row */
.gate__input-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease;
}

.gate__input-row:focus-within {
  border-color: var(--color-accent);
}

.gate__prompt {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
  padding: 0 12px;
  flex-shrink: 0;
}

.gate__input {
  flex: 1;
  padding: 18px 8px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 0;
}

.gate__input::placeholder {
  color: var(--color-text-dim);
  text-transform: none;
  letter-spacing: 0;
}

.gate__next-btn {
  background: var(--color-accent);
  border: none;
  color: var(--color-bg);
  font-size: 18px;
  font-weight: 700;
  width: 56px;
  height: 56px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.gate__next-btn:active {
  opacity: 0.8;
}

/* Generalized option grid (freq / level / dist / time) */
.gate__option-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate__option-btn {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  padding: 16px 20px;
  height: 72px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.gate__option-btn:active {
  transform: scale(0.98);
}

.gate__option-btn:active,
.gate__option-btn.selected {
  border-color: var(--color-accent);
  background: rgba(200, 255, 0, 0.08);
}

.option__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--color-text);
}

.option__sub {
  font-size: 11px;
  color: var(--color-text-dim);
  letter-spacing: 0;
  opacity: 0.7;
}

/* Info Overlay (Was ist Mitläufer?) */
.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: info-fade-in 0.2s ease forwards;
}

.info-overlay.hidden {
  display: none;
}

.info-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.info-overlay__card {
  position: relative;
  max-width: 360px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid rgba(200, 255, 0, 0.2);
  padding: 28px 24px 24px;
  animation: info-card-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.info-overlay__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.info-overlay__close:active {
  color: var(--color-text);
}

.info-overlay__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.info-overlay__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 10px;
}

.info-overlay__text:last-child {
  margin-bottom: 0;
  color: var(--color-text-dim);
}

@keyframes info-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes info-card-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .gate__progress-bar-fill {
    transition: none;
  }
  .info-overlay,
  .info-overlay__card {
    animation: none;
  }
}

/* Terminal */
.terminal {
  font-size: 13px;
  line-height: 2;
  color: var(--color-text-dim);
  min-height: 240px;
}

.terminal__line {
  opacity: 0;
  animation: line-appear 0.05s forwards;
}

.terminal__line--accent {
  color: var(--color-accent);
  font-weight: 700;
}

.terminal__cursor {
  animation: blink 0.6s step-end infinite;
  color: var(--color-accent);
}

@keyframes line-appear {
  to { opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Granted screen */
.granted__check {
  font-size: 40px;
  color: var(--color-accent);
  line-height: 1;
  animation: check-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes check-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.granted__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 6px 14px;
  font-weight: 700;
}

.granted__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.05;
}

.granted__text {
  font-size: 14px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.header > * {
  pointer-events: auto;
}

.header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--color-text);
}

.header__right {
  display: flex;
  align-items: center;
}

/* ========================================
   Header Rotator — Flip Digit
   ======================================== */
.rotator {
  font-size: 10px;
  color: var(--color-text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  min-width: 160px;
  justify-content: flex-end;
  perspective: 200px;
}

.rotator--accent {
  color: var(--color-accent);
}

.flip {
  display: inline-block;
  position: relative;
  min-width: 0.6ch;
  text-align: center;
  transition: none;
}

.flip.is-flipping {
  animation: flip-char 0.32s cubic-bezier(0.55, 0, 0.45, 1);
  transform-origin: center;
}

@keyframes flip-char {
  0% { transform: rotateX(0); opacity: 1; }
  45% { transform: rotateX(-90deg); opacity: 0.3; }
  55% { transform: rotateX(90deg); opacity: 0.3; }
  100% { transform: rotateX(0); opacity: 1; }
}

.rotator__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-left: 6px;
  animation: dot-pulse 1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .flip.is-flipping {
    animation: cross-fade 0.25s ease;
  }
  @keyframes cross-fade {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
  }
}

/* ========================================
   Swiper / Cards Base
   ======================================== */
.swiper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  overflow: hidden;
}

.card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.1) 40%,
    rgba(10,10,10,0.6) 100%
  );
}

.card__overlay--stronger {
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.3) 40%,
    rgba(10,10,10,0.8) 100%
  );
}

.card__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 24px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Slide-in animation */
.card__content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.swiper-slide-active .card__content > * {
  opacity: 1;
  transform: translateY(0);
}

.swiper-slide-active .card__content > *:nth-child(1) { transition-delay: 0.05s; }
.swiper-slide-active .card__content > *:nth-child(2) { transition-delay: 0.1s; }
.swiper-slide-active .card__content > *:nth-child(3) { transition-delay: 0.15s; }
.swiper-slide-active .card__content > *:nth-child(4) { transition-delay: 0.2s; }
.swiper-slide-active .card__content > *:nth-child(5) { transition-delay: 0.25s; }

/* ========================================
   Buttons
   ======================================== */
.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--join {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 10px 18px;
  font-size: 11px;
}

.btn--join:active { transform: scale(0.95); }

.btn--primary {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 14px 32px;
  font-size: 13px;
  box-shadow: 0 0 20px var(--color-accent-glow);
  animation: glow-pulse 2s ease-in-out infinite;
}

.btn--primary:active { transform: scale(0.97); }

/* Stats-Card CTA (light, transparent) */
.btn--cta-light {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--color-text);
  padding: 18px;
  font-size: 13px;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-top: 16px;
}

.btn--cta-light:active {
  border-color: var(--color-accent);
  background: rgba(200, 255, 0, 0.06);
}

/* Vibe-Card CTA (accent bar) */
.btn--vibe-cta {
  display: block;
  width: calc(100% - 48px);
  max-width: 360px;
  margin: 0 24px;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 18px;
  font-size: 13px;
  letter-spacing: 2px;
  box-shadow: 0 0 30px var(--color-accent-glow);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.btn--vibe-cta:active { transform: scale(0.97); }

/* Drawer CTA (WhatsApp button) */
.btn--cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  box-shadow: 0 0 30px var(--color-accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--cta:active {
  transform: scale(0.98);
  box-shadow: 0 0 40px var(--color-accent-glow);
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--color-accent-glow); }
  50% { box-shadow: 0 0 40px var(--color-accent-glow), 0 0 60px rgba(200,255,0,0.1); }
}

/* ========================================
   Card 1: Hero
   ======================================== */
.card--hero .card__content--hero {
  justify-content: flex-end;
  padding-bottom: 100px;
}

.hero__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero__status-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 60%;
}

.status-badge {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.4;
}

.hero__meta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  text-transform: uppercase;
}

.card__hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: hint-bounce 1.5s ease-in-out infinite;
}

.hint__arrow { font-size: 22px; color: var(--color-accent); }
.hint__text { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,0.7); }

@keyframes hint-bounce {
  0%, 100% { transform: translateX(0);    opacity: 0.75; }
  50%      { transform: translateX(14px); opacity: 1;    }
}

@keyframes peek-hint {
  0%   { transform: translate3d(0, 0, 0); }
  40%  { transform: translate3d(-42px, 0, 0); }
  70%  { transform: translate3d(-42px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.swiper-wrapper.hint-peek {
  animation: peek-hint 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) 1;
}

/* ========================================
   Card 2: Mission
   ======================================== */
.card--mission { background: var(--color-bg); }

.card__content--mission {
  justify-content: center;
  gap: 20px;
}

.card__label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-dim);
  letter-spacing: 1px;
}

.mission__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.mission__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-dim);
  max-width: 340px;
}

/* ========================================
   Card 3: Stats
   ======================================== */
.card__content--stats {
  justify-content: center;
  gap: 16px;
}

.stat-preheader {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  background: rgba(10, 10, 10, 0.85);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  justify-content: center;
}

.stat:nth-child(1),
.stat:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:nth-child(1),
.stat:nth-child(3) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 4.2vw, 20px);
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.2px;
}

.stat--wide .stat__value {
  color: var(--color-accent);
  font-size: clamp(22px, 6vw, 32px);
}

.stat__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ========================================
   Card 4: Vibe / Ticker
   ======================================== */
.card--vibe { background: var(--color-bg); }

.card__content--vibe {
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 80px 0 60px;
  overflow: hidden;
}

.ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  gap: 16px;
  animation: ticker-scroll 20s linear infinite;
  will-change: transform;
}

.ticker--reverse .ticker__track {
  animation-direction: reverse;
  animation-duration: 25s;
}

.ticker__item {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-text-dim);
  font-weight: 700;
}

.ticker__sep { color: var(--color-accent); font-size: 12px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.vibe__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.vibe__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 16vw, 110px);
  line-height: 0.9;
  letter-spacing: -2px;
}

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

.vibe__next {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  min-height: 14px;
}

.vibe__next:empty {
  display: none;
}

/* ========================================
   Card 4: Next Training (ersetzt Vibe)
   ======================================== */
.card--next { background: var(--color-bg); }

.card__content--next {
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  padding: 40px 24px;
}

.next-training {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.6);
  position: relative;
}

.next-training::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}

.next-training__header {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
}

.next-training__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--color-text);
}

.next-training__place,
.next-training__facts {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  line-height: 1.5;
}

.next-training__facts {
  color: var(--color-text);
}

.next-training__line {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin: 8px 0 0;
  line-height: 1.3;
}

/* ========================================
   Drawer (Bottom Sheet)
   ======================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.drawer.open {
  pointer-events: auto;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer.open .drawer__overlay {
  opacity: 1;
}

.drawer__sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  padding-bottom: env(safe-area-inset-bottom);
}

.drawer.open .drawer__sheet {
  transform: translateY(0);
}

.drawer__handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.drawer__close:active {
  color: var(--color-text);
}

.drawer__content {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 6px 14px;
  font-weight: 700;
  margin-top: 8px;
}

.drawer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.drawer__text {
  font-size: 14px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.drawer__footer {
  margin-top: 12px;
  text-align: center;
}

.drawer__footer p {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* ========================================
   Swiper Pagination
   ======================================== */
.swiper-pagination { bottom: 16px !important; }

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: var(--color-text-dim);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent);
  opacity: 1;
  width: 20px;
  border-radius: 3px;
}

/* ========================================
   Desktop: Centered Phone Frame
   ======================================== */
@media (min-width: 768px) {
  body { background: #000; }

  .gate {
    left: 50%;
    transform: translateX(-50%);
    width: 430px;
    border-radius: 40px;
  }

  .swiper {
    width: 430px;
    height: 100vh;
    height: 100dvh;
    max-height: 932px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08),
                0 0 80px rgba(200,255,0,0.05);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  .header {
    width: 430px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 40px 40px 0 0;
  }

  .drawer {
    width: 430px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 932px;
    top: 50%;
    bottom: auto;
    height: 100dvh;
    margin-top: -50dvh;
  }

  .drawer__sheet {
    border-radius: 24px 24px 40px 40px;
  }
}
