/* ════════════════════════════════════════════════════════════════════
   PROJECT AXIOM — Cinematic Dark Space
   RFSTUDIO · Statisch · Three.js + GSAP
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #030308;
  --bg-soft: #07090f;
  --panel: rgba(10, 14, 24, 0.62);
  --line: rgba(120, 180, 255, 0.14);
  --text: #d9e4f2;
  --text-dim: #7e8ca3;
  --accent: #4fd8ff;
  --accent-soft: rgba(79, 216, 255, 0.14);
  --warn: #ff8a3c;
  --warn-soft: rgba(255, 138, 60, 0.14);
  --danger: #ff4d5e;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #02060a; }

.mono { font-family: var(--font-mono); letter-spacing: 0.12em; }
.accent { color: var(--accent); }
.accent-warn { color: var(--warn); }
em { font-style: normal; color: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: 0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; }

a { color: inherit; text-decoration: none; }

/* ── Hintergrund-Schichten ───────────────────────────────────────── */
#space {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
}
/* CSS-Fallback ohne WebGL: stiller Gradient-Himmel */
body.no-webgl #space { display: none; }
body.no-webgl {
  background:
    radial-gradient(1200px 700px at 75% 10%, rgba(60, 40, 160, 0.25), transparent 60%),
    radial-gradient(1000px 800px at 15% 80%, rgba(20, 110, 180, 0.2), transparent 60%),
    var(--bg);
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
.noise {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: noiseShift 0.9s steps(4) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

main, .nav, .footer, .mobile-menu { position: relative; z-index: 5; }

/* ── Film-Intro ──────────────────────────────────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: #010103;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.intro-studio { display: flex; align-items: center; gap: 1.4rem; }
.intro-line {
  display: block; height: 1px; width: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.intro-presents {
  color: var(--text-dim);
  font-size: clamp(0.7rem, 2vw, 1rem);
  letter-spacing: 0.5em;
  white-space: nowrap;
  opacity: 0;
}
.intro-skip {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; color: rgba(126, 140, 163, 0.5);
}
body.intro-done #intro { display: none; }

/* ── Cursor ──────────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(79, 216, 255, 0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(79, 216, 255, 0.06);
}
@media (pointer: fine) {
  body.intro-done .cursor-dot, body.intro-done .cursor-ring { display: block; }
}

/* ── Scroll-Fortschritt ──────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: rgba(120, 180, 255, 0.07);
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #8a5cff);
  box-shadow: 0 0 12px var(--accent);
}

/* ── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(3, 3, 8, 0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s ease, background 0.4s ease;
}
.nav.nav-hidden { transform: translateY(-110%); }
.nav.nav-solid { background: rgba(3, 3, 8, 0.92); border-bottom: 1px solid var(--line); }

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.18em;
  margin-right: auto;
}
.nav-logo b { color: var(--accent); }
.logo-mark { width: 26px; height: 26px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(79,216,255,0.6)); }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-dim);
  position: relative; padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--accent); transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(2, 3, 7, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.2em;
  color: var(--text);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  background: rgba(8, 12, 22, 0.5);
}
.btn:hover { transform: translateY(-2px); }
.btn .btn-text { position: relative; z-index: 2; }

.btn-primary {
  border-color: var(--accent);
  color: #02131a;
  background: linear-gradient(110deg, var(--accent), #37b6ff 55%, #6fe5ff);
  box-shadow: 0 0 22px rgba(79, 216, 255, 0.35), inset 0 0 12px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 0 42px rgba(79, 216, 255, 0.65), inset 0 0 16px rgba(255,255,255,0.3); }
.btn-glow {
  position: absolute; inset: -40%; z-index: 1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btnSweep 3.2s ease-in-out infinite;
}
@keyframes btnSweep {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(79,216,255,0.2); }

.btn-small { padding: 0.55rem 1.3rem; font-size: 0.7rem; border-color: var(--accent); color: var(--accent); }
.btn-small:hover { background: var(--accent-soft); box-shadow: 0 0 18px rgba(79,216,255,0.3); }

.btn-big { padding: 1.25rem 2.8rem; font-size: 0.95rem; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
}
.hero-kicker {
  font-size: clamp(0.62rem, 1.6vw, 0.8rem);
  color: var(--text-dim);
  letter-spacing: 0.42em;
  margin-bottom: 2.2rem;
}
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.hero-project {
  font-size: clamp(0.8rem, 2.4vw, 1.25rem);
  letter-spacing: 1.1em;
  text-indent: 1.1em;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(79, 216, 255, 0.8);
}
.hero-axiom {
  font-size: clamp(3.6rem, 14vw, 10.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  display: flex;
  color: #f2f7ff;
  text-shadow:
    0 0 18px rgba(79, 216, 255, 0.35),
    0 0 70px rgba(79, 216, 255, 0.25),
    0 0 140px rgba(110, 80, 255, 0.3);
}
.hero-axiom .ht { display: inline-block; will-change: transform, opacity, filter; }
.hero-tag {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.hero-tag em { color: var(--accent); text-shadow: 0 0 14px rgba(79,216,255,0.5); }
.hero-cta { margin-top: 3rem; display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.34em;
}
.hero-scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--accent));
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: #fff;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { to { top: 110%; } }

/* Periodischer Glitch auf dem Titel */
.glitch { position: relative; }
.glitch.glitching .hero-axiom { animation: glitchShake 0.34s steps(2) 1; }
@keyframes glitchShake {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-4px, 2px) skewX(-4deg); filter: hue-rotate(40deg); }
  40% { transform: translate(4px, -2px) skewX(3deg); filter: hue-rotate(-60deg) saturate(3); }
  60% { transform: translate(-2px, 1px); filter: none; }
  100% { transform: translate(0); }
}

/* ── Statement ───────────────────────────────────────────────────── */
.statement {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem;
}
.statement-text {
  max-width: 880px; text-align: center;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  font-weight: 300; line-height: 1.5;
}
.statement-text b { font-weight: 600; color: #fff; }
.st-line { display: block; opacity: 0.12; transition: opacity 0.3s linear; }
.st-line.lit { opacity: 1; }

/* ── Sektionen allgemein ─────────────────────────────────────────── */
.section { padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 4rem); max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-kicker {
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.3em; margin-bottom: 1.1rem;
  text-shadow: 0 0 10px rgba(79,216,255,0.5);
}
.section-sub { margin-top: 1.4rem; color: var(--text-dim); font-size: 1.08rem; max-width: 640px; }

/* ── Stats ───────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 4rem;
}
.stat {
  background: var(--panel);
  padding: 2rem 1.4rem;
  text-align: center;
  transition: background 0.3s ease;
}
.stat:hover { background: rgba(79, 216, 255, 0.07); }
.stat-num {
  display: block;
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900;
  color: #fff; text-shadow: 0 0 24px rgba(79, 216, 255, 0.45);
}
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.22em; }
.stat-zero .stat-num { color: var(--accent); }

/* ── Sektor-Karten ───────────────────────────────────────────────── */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.sector-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sector-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.sector-card:hover { transform: translateY(-6px); border-color: rgba(79,216,255,0.45); box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 24px rgba(79,216,255,0.12); }
.sector-card:hover::before { opacity: 1; }
.sector-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.sector-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.1rem; }
.danger { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--accent); }
.danger[data-level="4"], .danger[data-level="5"] { color: var(--warn); }
.danger[data-level="5"] { color: var(--danger); text-shadow: 0 0 10px rgba(255,77,94,0.6); }

/* ── Split-Sektionen ─────────────────────────────────────────────── */
.section-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.section-split-rev { grid-template-columns: 0.9fr 1.1fr; }
.section-split-rev .split-text { order: 2; }
.section-split-rev .split-visual { order: 1; }

.feature-list { list-style: none; margin-top: 2.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.feature-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-left: 2px solid var(--line);
  background: linear-gradient(90deg, rgba(10, 16, 28, 0.5), transparent);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.feature-list li:hover { border-left-color: var(--accent); transform: translateX(6px); background: linear-gradient(90deg, rgba(79,216,255,0.08), transparent); }
.fl-num { color: var(--accent); font-size: 0.78rem; min-width: 2em; }

/* Orbit-Visual (Physik) */
.split-visual { display: flex; align-items: center; justify-content: center; min-height: 380px; }
.orbit-visual { position: relative; width: min(380px, 80vw); aspect-ratio: 1; }
.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(79, 216, 255, 0.25);
}
.orbit.o2 { inset: 18%; border-color: rgba(138, 92, 255, 0.3); animation: spin 36s linear infinite; }
.orbit.o1 { animation: spin 60s linear infinite reverse; }
.orbit.o3 { inset: 36%; border-color: rgba(255, 138, 60, 0.3); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.planet {
  position: absolute; top: 50%; left: 50%; width: 22%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #69d6ff, #1b66b8 45%, #0a1f44 80%);
  box-shadow: 0 0 50px rgba(60, 150, 255, 0.5), inset -14px -10px 36px rgba(0,0,0,0.7);
}
.sat { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.sat.s1 { animation: orbit1 9s linear infinite; }
.sat.s2 { width: 7px; height: 7px; background: var(--warn); box-shadow: 0 0 12px var(--warn); animation: orbit2 14s linear infinite; }
@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(31cqw) rotate(0deg); }
  to { transform: rotate(360deg) translateX(31cqw) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: rotate(120deg) translateX(48cqw) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(48cqw) rotate(-480deg); }
}
.orbit-visual { container-type: inline-size; }

/* ── Terminal ────────────────────────────────────────────────────── */
.terminal {
  max-width: 860px; margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(4, 7, 12, 0.88);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(79,216,255,0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.terminal::after { /* Scanlines */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.9);
}
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(126,140,163,0.4); }
.t-dot:first-child { background: var(--danger); }
.terminal-title { margin-left: auto; font-size: 0.62rem; color: var(--text-dim); }
.terminal-body {
  padding: 1.4rem 1.5rem 1.8rem;
  min-height: 320px;
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  line-height: 1.9;
  color: #9fd8b4;
}
.terminal-body .t-ok { color: #9fd8b4; }
.terminal-body .t-val { color: #e8f4ff; }
.terminal-body .t-warn { color: var(--warn); }
.terminal-body .t-lie { color: var(--danger); text-shadow: 0 0 8px rgba(255,77,94,0.7); animation: lieFlicker 0.7s steps(2) infinite; }
.terminal-body .t-dim { color: var(--text-dim); }
@keyframes lieFlicker { 50% { opacity: 0.55; } }
.t-cursor { display: inline-block; width: 0.55em; height: 1em; background: #9fd8b4; vertical-align: text-bottom; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Schiffe (horizontaler Scroll) ───────────────────────────────── */
.ships-outer { position: relative; }
.ships-pin {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}
.ships-head { padding: 0 clamp(1.2rem, 5vw, 4rem); max-width: 900px; }
.ships-track {
  display: flex; gap: 1.4rem;
  padding: 3rem clamp(1.2rem, 5vw, 4rem);
  will-change: transform;
  width: max-content;
}
.ship-card {
  width: clamp(260px, 30vw, 360px);
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2rem 1.7rem;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.ship-card:hover {
  border-color: rgba(79,216,255,0.5);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(79,216,255,0.12);
}
.ship-class { font-size: 0.62rem; color: var(--accent); letter-spacing: 0.3em; }
.ship-card h3 { font-size: 1.7rem; margin: 0.7rem 0 0.2rem; }
.ship-role { color: var(--text-dim); font-size: 0.92rem; letter-spacing: 0.06em; margin-bottom: 1.1rem; }
.ship-meta { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.55rem 0; margin-bottom: 1rem; }
.ship-bars { color: var(--accent); letter-spacing: 0.15em; }
.ship-card > p:last-child { color: var(--text-dim); font-size: 0.95rem; }
.ship-card-dread { border-color: rgba(255, 138, 60, 0.35); }
.ship-card-dread .ship-class, .ship-card-dread .ship-bars { color: var(--warn); }
.ship-card-dread:hover { border-color: var(--warn); box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(255,138,60,0.15); }

/* ── Fraktionen ──────────────────────────────────────────────────── */
.faction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; perspective: 1200px; }
.faction-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.faction-card::before { /* Fraktionsfarbe als Aura */
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 0%, var(--fc, rgba(79,216,255,0.25)), transparent 55%);
  opacity: 0.45; transition: opacity 0.35s ease;
  pointer-events: none;
}
.faction-card:hover::before { opacity: 0.9; }
.f-kfw { --fc: rgba(79, 216, 255, 0.3); }
.f-ik  { --fc: rgba(170, 60, 80, 0.35); }
.f-sb  { --fc: rgba(255, 170, 60, 0.3); }
.f-kh  { --fc: rgba(110, 230, 160, 0.28); }
.f-kfw:hover { border-color: rgba(79,216,255,0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 36px rgba(79,216,255,0.16); }
.f-ik:hover  { border-color: rgba(220,90,110,0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 36px rgba(220,90,110,0.16); }
.f-sb:hover  { border-color: rgba(255,180,80,0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 36px rgba(255,180,80,0.16); }
.f-kh:hover  { border-color: rgba(110,230,160,0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 36px rgba(110,230,160,0.16); }
.fc-inner { position: relative; padding: 2.1rem 1.7rem; transform: translateZ(30px); }
.fc-tag { display: block; font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.22em; margin-bottom: 1rem; }
.faction-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; line-height: 1.35; }
.faction-card p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 1.4rem; min-height: 4.4em; }
.fc-stats { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.14em; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.faction-neutral { text-align: center; margin-top: 3rem; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.28em; }

/* ── Radio-Visual ────────────────────────────────────────────────── */
.radio-visual { position: relative; width: min(360px, 76vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.wave {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(79, 216, 255, 0.4);
  animation: waveOut 3.6s ease-out infinite;
  opacity: 0;
}
.wave.w2 { animation-delay: 1.2s; }
.wave.w3 { animation-delay: 2.4s; }
@keyframes waveOut {
  0% { transform: scale(0.1); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 0; }
}
.radio-core {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 80px rgba(79,216,255,0.5);
  animation: corePulse 1.8s ease-in-out infinite;
}
@keyframes corePulse { 50% { transform: scale(1.45); } }
.radio-intercept {
  position: absolute; bottom: 8%;
  font-size: 0.66rem; color: var(--danger); letter-spacing: 0.3em;
  animation: lieFlicker 1.1s steps(2) infinite;
}

/* ── Vermächtnis ─────────────────────────────────────────────────── */
.legacy {
  min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem;
}
.legacy-kicker { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.3em; margin-bottom: 1.6rem; }
.legacy-title { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 900; letter-spacing: 0.03em; }
.lt-line { display: block; }
.legacy-title .accent { text-shadow: 0 0 30px rgba(79,216,255,0.55), 0 0 90px rgba(79,216,255,0.3); }
.legacy-text { max-width: 620px; margin-top: 2rem; color: var(--text-dim); font-size: 1.12rem; }
.legacy-tracks {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
  font-size: 0.74rem; letter-spacing: 0.26em; color: var(--text-dim);
}
.legacy-tracks i { color: rgba(79,216,255,0.5); font-style: normal; }
.legacy-tracks span { transition: color 0.3s ease, text-shadow 0.3s ease; cursor: default; }
.legacy-tracks span:hover { color: var(--accent); text-shadow: 0 0 14px rgba(79,216,255,0.7); }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta { padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 5vw, 4rem); }
.cta-frame {
  max-width: 980px; margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 320px at 50% -10%, rgba(79, 216, 255, 0.12), transparent 70%),
    var(--panel);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}
.cta-sub { margin: 1.4rem auto 2.6rem; max-width: 540px; color: var(--text-dim); }
.cta-buttons { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.cta-note { margin-top: 2.2rem; font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.3em; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(3, 4, 10, 0.9));
  padding: 4rem clamp(1.2rem, 5vw, 4rem) 2rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .logo-mark { width: 38px; height: 38px; }
.footer-title { font-family: var(--font-display); letter-spacing: 0.16em; font-size: 1.05rem; }
.footer-title b { color: var(--accent); }
.footer-studio { font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.3em; margin-top: 0.4rem; }
.footer-links { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col-title { font-size: 0.62rem; color: var(--accent); letter-spacing: 0.28em; margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.25s ease, transform 0.25s ease; }
.footer-links a:hover { color: var(--text); transform: translateX(4px); }
.footer-copy {
  max-width: 1280px; margin: 3rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(120, 180, 255, 0.07);
  font-size: 0.6rem; color: rgba(126,140,163,0.6); letter-spacing: 0.18em;
}

/* ── Unterseiten ─────────────────────────────────────────────────── */
.subpage-main { padding-top: clamp(8rem, 16vh, 11rem); min-height: 72vh; }
.subpage-head { text-align: center; max-width: 760px; margin: 0 auto 4rem; padding: 0 1.5rem; }
.subpage-head h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 900; letter-spacing: 0.04em; }

/* Zeitleiste (Zukunft) */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding: 1rem 1.5rem 5rem; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: calc(1.5rem + 9px);
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(138,92,255,0.6), transparent);
}
.tl-item { position: relative; padding: 0 0 3rem 3.4rem; }
.tl-dot {
  position: absolute; left: 0; top: 0.35rem;
  width: 19px; height: 19px; border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tl-item.done .tl-dot { background: var(--accent); }
.tl-item.done .tl-dot::after { background: #02131a; box-shadow: none; }
.tl-item.future .tl-dot { border-color: rgba(126,140,163,0.5); }
.tl-item.future .tl-dot::after { background: rgba(126,140,163,0.5); box-shadow: none; }
.tl-phase { font-size: 0.66rem; color: var(--accent); letter-spacing: 0.28em; }
.tl-item h3 { font-size: 1.35rem; margin: 0.5rem 0 0.6rem; }
.tl-item p { color: var(--text-dim); max-width: 560px; }
.tl-status {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.6rem; letter-spacing: 0.24em;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line); color: var(--text-dim);
}
.tl-item.active .tl-status { border-color: var(--warn); color: var(--warn); box-shadow: 0 0 14px rgba(255,138,60,0.2); }
.tl-item.done .tl-status { border-color: rgba(110,230,160,0.5); color: #6ee6a0; }

/* Kontakt */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem; max-width: 980px; margin: 0 auto; padding: 0 1.5rem 5rem;
}
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2.4rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(79,216,255,0.45); box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 24px rgba(79,216,255,0.1); }
.contact-icon { font-size: 2rem; display: block; margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(79,216,255,0.5)); }
.contact-card h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.contact-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.4rem; }
.contact-link { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact-link:hover { border-bottom-color: var(--accent); }

/* Rechtliches */
.legal { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.legal section { margin-bottom: 4rem; }
.legal h2 { font-size: 1.6rem; margin-bottom: 1.4rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin: 1.8rem 0 0.6rem; color: var(--accent); }
.legal p, .legal li { color: var(--text-dim); font-size: 1rem; }
.legal ul { padding-left: 1.4rem; margin-top: 0.5rem; }
.legal .placeholder {
  border: 1px dashed rgba(255, 138, 60, 0.5);
  background: var(--warn-soft);
  color: var(--warn);
  padding: 0.1rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ── Reveal-Grundzustand (JS animiert) ───────────────────────────── */
.reveal, .reveal-hero { opacity: 0; }
body.no-js .reveal, body.no-js .reveal-hero,
body.reduced .reveal, body.reduced .reveal-hero { opacity: 1; }

/* ── Responsiv ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-small { display: none; }
  .nav-burger { display: flex; }
  .section-split, .section-split-rev { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-split-rev .split-text { order: 1; }
  .section-split-rev .split-visual { order: 2; }
  .split-visual { min-height: 300px; }
  .ships-track { overflow-x: auto; width: 100%; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; }
  .ship-card { scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
