/* =============================================
   STRATO-1 — Stratosphärenballon Webseite
   Palette: Tiefer Weltraum + Teal Akzent
   ============================================= */

/* ─── DESIGN TOKENS ─────────────────────────── */
:root,
[data-theme='dark'] {
  /* Space palette */
  --color-bg: #060b14;
  --color-surface: #0b1320;
  --color-surface-2: #0f1a2a;
  --color-surface-offset: #131e2f;
  --color-border: #1e2d42;
  --color-divider: #162031;

  /* Text */
  --color-text: #d8e4f0;
  --color-text-muted: #6b88a8;
  --color-text-faint: #2e4a6a;
  --color-text-inverse: #060b14;

  /* Teal Accent */
  --color-primary: #4f98a3;
  --color-primary-hover: #5eb5c2;
  --color-primary-active: #2a7f8c;
  --color-primary-glow: rgba(79, 152, 163, 0.18);

  /* Extra */
  --color-gold: #e8af34;
  --color-purple: #a86fdf;
  --color-success: #6daa45;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(79, 152, 163, 0.12);

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Fonts */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Layout */
  --content-default: 1100px;
  --content-narrow: 680px;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transition */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='light'] {
  --color-bg: #f0f4f8;
  --color-surface: #f8fafc;
  --color-surface-2: #ffffff;
  --color-surface-offset: #e8eff5;
  --color-border: #c5d5e8;
  --color-divider: #dce8f0;
  --color-text: #0e1f30;
  --color-text-muted: #4a6f8a;
  --color-text-faint: #9ab5ca;
  --color-text-inverse: #f8fafc;
  --color-primary: #1a7a87;
  --color-primary-hover: #116b78;
  --color-primary-glow: rgba(26, 122, 135, 0.12);
  --shadow-sm: 0 1px 3px rgba(0,50,100,0.08);
  --shadow-md: 0 4px 16px rgba(0,50,100,0.1);
  --shadow-glow: 0 0 40px rgba(26, 122, 135, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f0f4f8;
    --color-surface: #f8fafc;
    --color-surface-2: #ffffff;
    --color-surface-offset: #e8eff5;
    --color-border: #c5d5e8;
    --color-divider: #dce8f0;
    --color-text: #0e1f30;
    --color-text-muted: #4a6f8a;
    --color-text-faint: #9ab5ca;
    --color-text-inverse: #f8fafc;
    --color-primary: #1a7a87;
    --color-primary-hover: #116b78;
    --color-primary-glow: rgba(26, 122, 135, 0.12);
    --shadow-sm: 0 1px 3px rgba(0,50,100,0.08);
    --shadow-md: 0 4px 16px rgba(0,50,100,0.1);
  }
}

/* ─── BASE RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; max-width: 68ch; }
a, button, [role='button'] {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    box-shadow var(--transition-interactive), transform var(--transition-interactive),
    border-color var(--transition-interactive), opacity var(--transition-interactive);
}
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: rgba(79, 152, 163, 0.25); color: var(--color-text); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 11, 20, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
[data-theme='light'] .nav {
  background: rgba(240, 244, 248, 0.8);
}
.nav--scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex; align-items: center; gap: var(--space-8);
}
.nav__logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--color-text);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-lg); letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--color-primary); }
.nav__links {
  display: flex; gap: var(--space-6); align-items: center;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none; color: var(--color-text-muted);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--color-text); }
.nav__theme {
  color: var(--color-text-muted); display: flex; align-items: center;
  padding: var(--space-2); border-radius: var(--radius-md); flex-shrink: 0;
}
.nav__theme:hover { color: var(--color-text); background: rgba(255,255,255,0.06); }
@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__inner { padding: 0 var(--space-4); }
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #0a1f35 0%, #060b14 70%);
  padding-top: 64px;
}
[data-theme='light'] .hero {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a3a5c 0%, #0e2540 70%);
}

/* Stars canvas */
.stars {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 2;
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-24);
  flex: 1;
}
.hero__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.0;
  color: #e8f0f8;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}
.hero__sub strong { color: var(--color-text); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Balloon scene */
.hero__balloon-wrap {
  position: absolute;
  right: clamp(2rem, 6vw, 8rem);
  top: 50%; transform: translateY(-50%);
  z-index: 1; pointer-events: none;
  width: clamp(160px, 22vw, 280px);
}
.balloon-scene { position: relative; }
.balloon {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(79, 152, 163, 0.3));
}
.balloon__svg { width: 100%; height: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  33%       { transform: translateY(-18px) rotate(0.5deg); }
  66%       { transform: translateY(-8px) rotate(-0.5deg); }
}

/* Clouds */
.cloud {
  position: absolute; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  filter: blur(12px);
}
.cloud--1 {
  width: 180px; height: 40px;
  bottom: 20%; left: -30px;
  animation: cloudDrift 12s ease-in-out infinite alternate;
}
.cloud--2 {
  width: 120px; height: 28px;
  bottom: 35%; right: -20px;
  animation: cloudDrift 9s ease-in-out infinite alternate-reverse;
}
@keyframes cloudDrift {
  from { transform: translateX(0); opacity: 0.5; }
  to   { transform: translateX(20px); opacity: 0.9; }
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2); z-index: 2;
  color: var(--color-text-faint);
  font-size: var(--text-xs); letter-spacing: 0.1em;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.15); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
  .hero__balloon-wrap { display: none; }
  .hero__title { font-size: var(--text-3xl); }
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: none;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79,152,163,0.35);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ─── STATS BAR ──────────────────────────────── */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-bar__inner {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: flex; align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat__unit { font-size: var(--text-lg); color: var(--color-primary); opacity: 0.7; }
.stat__label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.stat__divider {
  width: 1px; height: 52px;
  background: var(--color-border);
}
@media (max-width: 640px) { .stat__divider { display: none; } }

/* ─── SECTIONS ───────────────────────────────── */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}
.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section__inner {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section__header { margin-bottom: var(--space-12); }
.section__label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600;
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700; color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ─── MISSION ────────────────────────────────── */
.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.mission__text {
  display: flex; flex-direction: column; gap: var(--space-5);
}
.mission__text p { color: var(--color-text-muted); line-height: 1.75; }
.mission__cards {
  display: flex; flex-direction: column; gap: var(--space-4);
}
.mission-card {
  background: var(--color-surface-2, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex; align-items: flex-start; gap: var(--space-4);
  animation-delay: var(--delay, 0s);
}
.mission-card__icon {
  flex-shrink: 0; color: var(--color-primary);
  margin-top: 2px;
}
.mission-card h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); }
.mission-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 768px) {
  .mission__grid { grid-template-columns: 1fr; }
}

/* ─── TIMELINE ───────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-12);
}
.timeline__line {
  position: absolute; left: 10px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}
.timeline__item {
  position: relative;
  padding: 0 0 var(--space-10) 0;
  animation-delay: var(--delay, 0s);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -38px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79,152,163,0.15);
}
.timeline__dot--end {
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(232, 175, 52, 0.15);
}
.timeline__alt {
  font-size: var(--text-xs); color: var(--color-primary);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  display: block; margin-bottom: var(--space-1);
}
.timeline__content h3 {
  font-size: var(--text-lg); font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-text); margin-bottom: var(--space-2);
}
.timeline__content p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }

/* ─── TELEMETRY ──────────────────────────────── */
.telemetry {
  background: var(--color-surface-2, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-glow);
}
.telemetry__status {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot--standby {
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(232,175,52,0.5);
  animation: pulse 2s ease-in-out infinite;
}
.status-dot--live {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(109,170,69,0.5);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.telemetry__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.telemetry__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.telemetry__label {
  font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.telemetry__value {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 700; color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.telemetry__bar {
  height: 3px; background: var(--color-border); border-radius: var(--radius-full);
}
.telemetry__bar-fill {
  height: 100%; background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
}
.telemetry__note {
  font-size: var(--text-xs); color: var(--color-text-faint);
  text-align: center;
}

/* ─── TEAM ───────────────────────────────────── */
.team__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.team-card {
  background: var(--color-surface-2, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-5);
  animation-delay: var(--delay, 0s);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive), border-color var(--transition-interactive);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 152, 163, 0.3);
}
.team-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.team-card__avatar svg { width: 100%; height: 100%; }
.team-card__info h3 {
  font-size: var(--text-base); font-weight: 600;
  color: var(--color-text); margin-bottom: var(--space-2);
}
.team-card__info p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ─── CTA ────────────────────────────────────── */
.cta-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(79,152,163,0.07) 0%, transparent 70%);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.cta-section__inner {
  max-width: var(--content-narrow);
  margin: 0 auto; padding: 0 var(--space-6);
}
.cta-section__inner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 700;
  color: var(--color-text); margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.cta-section__inner p {
  color: var(--color-text-muted); margin: 0 auto var(--space-8);
  max-width: 48ch;
}
.cta-section__inner .btn { margin: 0 auto; }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}
.footer__inner {
  max-width: var(--content-default);
  margin: 0 auto; padding: 0 var(--space-6);
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__logo {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--color-text-muted);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-sm);
}
.footer__copy { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ─── SCROLL REVEAL ANIMATIONS ───────────────── */
.fade-in, .fade-in-delay, .fade-in-delay-2, .fade-in-delay-3 {
  animation: heroFadeIn 0.8s var(--ease-out) both;
}
.fade-in-delay  { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-driven reveal */
.reveal-up {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal-up {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
    animation-delay: var(--delay, 0s);
  }
  @keyframes revealFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ─── SCROLL PROGRESS BAR ────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 2px; background: transparent; pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #a86fdf);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(79,152,163,0.6);
}

/* ─── PARALLAX LAYERS ────────────────────────── */
.parallax-layer {
  position: absolute; inset: 0; pointer-events: none;
}
.parallax-layer--far {
  background: radial-gradient(ellipse 30% 20% at 70% 30%, rgba(79,152,163,0.04) 0%, transparent 70%);
}
.parallax-layer--mid {
  background: radial-gradient(ellipse 20% 15% at 30% 60%, rgba(168,111,223,0.04) 0%, transparent 70%);
}

/* ─── RADIO WAVES ────────────────────────────── */
.radio-waves {
  position: absolute;
  right: -10px; top: 28%;
}
.radio-wave {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  opacity: 0;
  animation: radioExpand 3s ease-out infinite;
}
.rw--1 { width: 30px; height: 30px; top: -15px; right: -15px; animation-delay: 0s; }
.rw--2 { width: 55px; height: 55px; top: -27px; right: -27px; animation-delay: 0.8s; }
.rw--3 { width: 80px; height: 80px; top: -40px; right: -40px; animation-delay: 1.6s; }
@keyframes radioExpand {
  0%   { opacity: 0.7; transform: scale(0.3); }
  100% { opacity: 0;   transform: scale(1); }
}

/* ─── SSTV SECTION ───────────────────────────── */
.sstv-section { overflow: hidden; }
.sstv-explainer {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-12); align-items: start;
  margin-bottom: var(--space-16);
}
.sstv-intro {
  color: var(--color-text-muted); line-height: 1.75;
  margin-bottom: var(--space-8);
}
.sstv-specs {
  display: flex; flex-direction: column; gap: var(--space-2);
}
.sstv-spec {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0; /* set by JS */
}
.sstv-spec__key { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.sstv-spec__val { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }

/* SSTV Screen Visualizer — Canvas-Version */
.sstv-visual {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.sstv-screen {
  position: relative;
  aspect-ratio: 320 / 256;
  background: #000;
  overflow: hidden;
}
#sstv-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: auto;
}
#sstv-noise {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  opacity: 0.82;
}
.sstv-scanline {
  position: absolute; left: 0; right: 0; height: 3px;
  background: rgba(79,152,163,1);
  box-shadow: 0 0 10px 3px rgba(79,152,163,0.7), 0 0 2px rgba(255,255,255,0.4);
  z-index: 3;
  pointer-events: none;
}
.sstv-signal-bar {
  height: 44px; background: #03090f;
  border-top: 1px solid var(--color-border);
  overflow: hidden; position: relative;
}
#sstv-waveform {
  width: 100%; height: 44px; display: block;
}
.sstv-status-row {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs); color: var(--color-text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.sstv-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-text-faint);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.sstv-status-dot.receiving {
  background: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
  animation: pulse 1s ease-in-out infinite;
}
.sstv-status-dot.complete {
  background: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
}
.sstv-progress-text {
  margin-left: auto;
  color: var(--color-primary);
  font-weight: 600;
}

/* ─── TECH BLOCKS (LoRa / APRS / Cam) ───────── */
.tech-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.tech-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  opacity: 0;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive);
}
.tech-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79,152,163,0.3);
}
.tech-block__icon { margin-bottom: var(--space-4); }
.tech-block h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 600;
  color: var(--color-text); margin-bottom: var(--space-4);
}
.tech-list {
  list-style: none; display: flex; flex-direction: column; gap: var(--space-2);
}
.tech-list li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding-left: var(--space-4); position: relative;
}
.tech-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--color-primary); font-size: var(--text-xs);
}

/* ─── TEAM BADGE ─────────────────────────────── */
.team-card__badge {
  display: inline-block; margin-top: var(--space-3);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(79,152,163,0.1);
  border: 1px solid rgba(79,152,163,0.25);
  border-radius: var(--radius-full);
  padding: 2px var(--space-3);
}

/* ─── JS-STAGGER BASE STATE ──────────────────── */
.js-stagger { opacity: 0; }
.js-fade-in { opacity: 0; }
/* Title wipe: hidden by default, JS adds .is-revealed */
.js-title-reveal {
  clip-path: inset(0 100% 0 0);
}
.js-wipe {
  clip-path: inset(0 100% 0 0);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .sstv-explainer { grid-template-columns: 1fr; }
  .tech-row { grid-template-columns: 1fr; }
}

/* ─── TIMELINE LINE TRACK ────────────────────── */
.timeline__line-track {
  position: absolute; left: 10px; top: 12px; bottom: 12px; width: 1px;
  background: var(--color-border);
}
.timeline__line-fill {
  width: 100%; background: linear-gradient(to bottom, var(--color-primary), rgba(79,152,163,0.2));
  height: 0%; /* animated by JS */
  transition: height 0.05s linear;
}

/* ─── HERO PHOTO ─────────────────────────────── */
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  background: url('hero-balloon.jpg') center center / cover no-repeat;
  transform-origin: center;
  /* Parallax via JS */
}
.hero__photo-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(6,11,20,0.82) 45%, rgba(6,11,20,0.3) 100%),
    linear-gradient(to top,   rgba(6,11,20,0.9)  0%,  rgba(6,11,20,0)   40%);
}
[data-theme='light'] .hero__photo-overlay {
  background:
    linear-gradient(to right, rgba(14,31,48,0.88) 45%, rgba(14,31,48,0.35) 100%),
    linear-gradient(to top,   rgba(14,31,48,0.95) 0%,  rgba(14,31,48,0)    40%);
}
/* Stars sind nun subtiler da echtes Foto da ist */
.hero .stars { z-index: 0; opacity: 0.4; }

/* ─── HERO TELEMETRIE BADGE (wie im Bild) ────── */
.hero__telemetry-badge {
  position: absolute;
  top: clamp(6rem, 12vh, 10rem);
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 3;
  color: white;
  text-align: left;
}
.htb__row { margin-bottom: var(--space-5); }
.htb__label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}
.htb__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: white;
  line-height: 1.1;
}
.htb__divider {
  width: 48px; height: 1px;
  background: rgba(255,255,255,0.2);
  margin: var(--space-4) 0;
}
@media (max-width: 768px) {
  .hero__telemetry-badge { display: none; }
}

/* Radio-Waves im Hero (Position) */
.hero-radio {
  position: absolute;
  right: clamp(2rem, 22vw, 28rem);
  top: 35%;
  z-index: 3;
  pointer-events: none;
}

/* ─── APRS MAP ───────────────────────────────── */
.aprs-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.aprs-map-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
#aprs-map {
  height: 420px;
  width: 100%;
  background: var(--color-surface);
  z-index: 1;
}
/* Leaflet dark-mode tiles tint */
[data-theme='dark'] #aprs-map { filter: invert(0.88) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
[data-theme='dark'] #aprs-map .leaflet-tile { filter: none; }

.aprs-map__badge {
  position: absolute; bottom: var(--space-4); left: var(--space-4);
  z-index: 10;
  display: flex; align-items: center; gap: var(--space-2);
  background: rgba(6,11,20,0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); color: var(--color-text-muted);
  backdrop-filter: blur(8px);
}

.aprs-info { display: flex; flex-direction: column; gap: var(--space-6); }
.aprs-info__block h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 600; color: var(--color-text);
  margin-bottom: var(--space-3);
}
.aprs-info__block p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.75; }
.aprs-info__block p strong { color: var(--color-primary); }

.aprs-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.aprs-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex; flex-direction: column; gap: 2px;
}
.aprs-detail__label {
  font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.aprs-detail__val {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text);
}
.aprs-detail__val a {
  color: var(--color-primary); text-decoration: none;
}
.aprs-detail__val a:hover { text-decoration: underline; }

.aprs-path {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex; align-items: center; gap: var(--space-4);
}
.aprs-path__label {
  font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-shrink: 0;
}
.aprs-path code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: var(--text-sm); color: var(--color-primary);
  background: rgba(79,152,163,0.1);
  padding: 2px 8px; border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .aprs-layout { grid-template-columns: 1fr; }
  #aprs-map { height: 300px; }
}


/* ─── APRS Leaflet Karte ─────────────────────── */
#aprs-map {
  height: 420px;
  width: 100%;
  background: var(--color-surface);
  border-radius: 0;
}
[data-theme='dark'] #aprs-map {
  filter: invert(0.88) hue-rotate(180deg) brightness(0.85) contrast(0.9);
}
@media (max-width: 900px) {
  #aprs-map { height: 300px; }
}
.aprs-map__badge a { color: inherit; }
