﻿/* =========================================================
   IMA Landing Page
   Design-System: "Iron-Man HUD / Arc-Reactor" (1:1 aus der IMA-App)
   Mark-III-Regel: Daten weiss, Chrome cyan, Energie amber.
   Theme: dunkel, fest verriegelt.
   Radius: Buttons 11px, Flaechen/Karten 16px.
   ========================================================= */

:root {
  /* Surfaces: tiefes Navy, glasig */
  --bg:             #070b16;
  --surface:        rgba(255, 255, 255, 0.045);
  --surface-2:      rgba(255, 255, 255, 0.07);
  --surface-solid:  #0e1628;

  /* Borders: blau-getoent, faint */
  --border:        rgba(150, 175, 235, 0.12);
  --border-strong: rgba(150, 175, 235, 0.22);

  /* Text */
  --text:       #eaf0fb;
  --text-dim:   #94a3c4;
  --text-faint: #8090b3;

  /* Akzent: warmes Amber (Energie/Bedeutung) */
  --accent:       #ffb454;
  --accent-2:     #ff7a45;
  --accent-hover: #ffc06a;
  --accent-soft:  rgba(255, 180, 84, 0.15);
  --accent-line:  rgba(255, 180, 84, 0.5);
  --accent-grad:  linear-gradient(135deg, #ffb454, #ff7a45);
  --accent-ink:   #1a1205;

  /* HUD: Arc-Reactor-Cyan (System/Struktur/Chrome) */
  --hud:        #3ad1ff;
  --hud-text:   #8fdcff;
  --hud-line:   rgba(58, 209, 255, 0.45);
  --hud-border: rgba(58, 209, 255, 0.16);
  --hud-soft:   rgba(58, 209, 255, 0.12);

  /* Status */
  --ok:     #3ddc97;
  --danger: #ff5d5d;

  /* Shadow + glow */
  --shadow:    0 4px 18px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --glow:      0 0 0 1px rgba(255, 180, 84, 0.25), 0 10px 34px rgba(255, 140, 60, 0.28);

  --radius-btn: 11px;
  --radius-card: 16px;
  --font-sans: 'Satoshi', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'General Sans', 'Satoshi', system-ui, sans-serif;
  --font-hud: 'Rajdhani', 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1160px;
}

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

html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; }

/* ---------- Hintergrund-Ebenen (das Cockpit) ---------- */

/* Ambient glow: warmes Amber unten-rechts, kuehles Blau oben-links. Exakt wie die App. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 84% 75%, rgba(255, 180, 84, 0.10), transparent 60%),
    radial-gradient(55% 50% at 6% -6%, rgba(80, 120, 255, 0.12), transparent 62%),
    radial-gradient(50% 40% at 50% 110%, rgba(58, 209, 255, 0.06), transparent 60%);
}

/* Blueprint-Raster: feines cyan-getoentes Gitter, zu den Raendern ausgeblendet. */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 209, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 209, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
  opacity: 0.7;
}

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

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Typo ---------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 20ch; }

.text-amber { color: var(--accent); }

.kicker {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--hud-text);
  margin-bottom: 0.85rem;
}
.kicker.center { text-align: center; }

section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 60ch; }
.section-head p { color: var(--text-dim); margin-top: 1rem; max-width: 54ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */

#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.brand-name { font-family: var(--font-hud); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.14em; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Fokusring fuer alle uebrigen Links (Nav, Footer, Brand, Mail) */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.btn-primary {
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 140, 60, 0.32);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(255, 140, 60, 0.45); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); }

.btn-sm { min-height: 38px; padding: 0.45rem 0.95rem; font-size: 0.88rem; }
.btn-lg { min-height: 50px; padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 7rem 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--hud-text);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hud-border);
  border-radius: 999px;
  background: var(--hud-soft);
}

.hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.hero-sub { color: var(--text-dim); font-size: 1.15rem; max-width: 42ch; margin-bottom: 2.25rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Arc-Reactor */
.hero-visual { display: flex; justify-content: center; }
.reactor-stage { position: relative; width: min(100%, 540px); }
.reactor { width: 100%; height: auto; display: block; }

.reactor .nodes text {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--text-dim);
}
.reactor .synapses line {
  stroke: var(--hud-line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
@media (prefers-reduced-motion: no-preference) {
  .reactor .synapses line { animation: synapse 1.1s linear infinite; }
}
.core-label {
  font-family: var(--font-hud);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.28em;
  fill: var(--accent);
}
.core-dot { filter: drop-shadow(0 0 10px rgba(255, 140, 60, 0.6)); }

.orbit { transform-origin: 300px 300px; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-ticks { animation: spin 90s linear infinite; }
  .orbit-reverse { animation: spin 60s linear infinite reverse; }
  .orbit-slow { animation: spin 110s linear infinite; }
  .core-ring { animation: spin 24s linear infinite; transform-origin: 300px 300px; }
  .core-dot { animation: corePulse 2.2s ease-in-out infinite; transform-origin: 300px 300px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
/* Supervisor-Kern: orange Herzschlag, Skalierung + pulsierender Glow */
@keyframes corePulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 7px rgba(255, 140, 60, 0.45)); }
  50%      { transform: scale(1.17); filter: drop-shadow(0 0 22px rgba(255, 140, 60, 0.9)); }
}
@keyframes synapse { to { stroke-dashoffset: -20; } }

/* ---------- Telemetrie ---------- */

.telemetry { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  border-block: 1px solid var(--border);
  padding-block: 2.25rem;
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text);            /* Daten weiss */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  line-height: 1.25;
}

/* ---------- Bento: Drei Rollen ---------- */

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.bento-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.bento-cell:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.cell-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--hud-soft);
  border: 1px solid var(--hud-border);
  color: var(--hud);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}
.bento-cell h3 { font-size: 1.3rem; }
.bento-cell p { color: var(--text-dim); max-width: 46ch; }

.cell-a {
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 360px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 180, 84, 0.12), transparent 55%),
    var(--surface);
}
.cell-a .cell-icon { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.cell-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.cell-chips span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}

/* ---------- Ablauf ---------- */

.ablauf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
}
.ablauf-grid li { border-top: 1px solid var(--border-strong); padding-top: 1.5rem; }
.ablauf-no {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--hud);
  display: block;
  margin-bottom: 0.85rem;
}
.ablauf-grid h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.ablauf-grid p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Sprachmodus ---------- */

.sprache-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.sprache h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead { color: var(--text-dim); font-size: 1.1rem; margin-block: 1rem 1.75rem; max-width: 42ch; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text);
}
.check-list i {
  color: var(--accent);
  font-size: 1.3rem;
  flex: none;
  margin-top: 1px;
}

.sprache-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255, 180, 84, 0.08), transparent 65%),
    var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.voice-orb {
  position: relative;
  width: 100px; height: 100px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-size: 2.4rem;
  box-shadow: var(--glow);
}
.voice-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
}
@media (prefers-reduced-motion: no-preference) {
  .voice-ring { animation: ripple 2.6s ease-out infinite; }
  .voice-ring-2 { animation-delay: 1.3s; }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

.waveform { display: flex; align-items: center; gap: 5px; height: 56px; }
.waveform span {
  width: 5px;
  border-radius: 3px;
  background: var(--hud);
  height: 20%;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .waveform span { animation: wave 1.2s ease-in-out infinite; }
  .waveform span:nth-child(1) { animation-delay: -1.1s; }
  .waveform span:nth-child(2) { animation-delay: -0.9s; }
  .waveform span:nth-child(3) { animation-delay: -0.7s; }
  .waveform span:nth-child(4) { animation-delay: -1.0s; }
  .waveform span:nth-child(5) { animation-delay: -0.4s; }
  .waveform span:nth-child(6) { animation-delay: -0.6s; }
  .waveform span:nth-child(7) { animation-delay: -0.2s; }
  .waveform span:nth-child(8) { animation-delay: -0.8s; }
  .waveform span:nth-child(9) { animation-delay: -0.3s; }
  .waveform span:nth-child(10) { animation-delay: -0.5s; }
  .waveform span:nth-child(11) { animation-delay: -0.9s; }
  .waveform span:nth-child(12) { animation-delay: -0.1s; }
  .waveform span:nth-child(13) { animation-delay: -0.7s; }
  .waveform span:nth-child(14) { animation-delay: -0.45s; }
  .waveform span:nth-child(15) { animation-delay: -1.0s; }
}
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }

.voice-caption {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 28ch;
}

/* ---------- Faehigkeiten nach Kategorie ---------- */

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cap-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.75rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.cap-card:hover { border-color: var(--hud-border); transform: translateY(-2px); }
.cap-card header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.cap-card header i { color: var(--hud); font-size: 1.35rem; }
.cap-card h3 { font-size: 1.1rem; }
.cap-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.cap-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.cap-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Mission Control / Canvas ---------- */

.canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(58, 209, 255, 0.06), transparent 60%),
    var(--surface-solid);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
}
.canvas-svg { width: 100%; height: auto; }

.canvas-wires path { fill: none; stroke: var(--hud-line); stroke-width: 1.5; stroke-dasharray: 5 7; }
@media (prefers-reduced-motion: no-preference) {
  .canvas-wires path { animation: synapse 1s linear infinite; }
}

.cv-node rect {
  fill: rgba(255, 255, 255, 0.04);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.cv-node text {
  fill: var(--text);
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
}
.cv-node .cv-sub {
  fill: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
}
.cv-node .cv-run { fill: var(--ok); }
.cv-sup rect { fill: rgba(255, 180, 84, 0.08); stroke: var(--accent-line); }
.cv-sup text:first-of-type { fill: var(--accent); }

/* ---------- Lokal-first / Provider ---------- */

.lokal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.lokal h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lokal-points { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.lokal-points div { display: flex; align-items: center; gap: 0.85rem; color: var(--text); }
.lokal-points i { color: var(--hud); font-size: 1.4rem; flex: none; }

.provider-board {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.75rem;
}
.provider-label {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.provider-list { list-style: none; display: flex; flex-direction: column; }
.provider-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
}
.provider-list li:last-child { border-bottom: none; }
.tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.tag-free { color: var(--ok); border-color: rgba(61, 220, 151, 0.4); }
.tag-local { color: var(--hud); border-color: var(--hud-border); }

/* ---------- Roadmap ---------- */

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.rm-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rm-card i { color: var(--hud); font-size: 1.5rem; margin-bottom: 0.35rem; }
.rm-card h3 { font-size: 1.05rem; }
.rm-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Schluss ---------- */

.schluss-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 180, 84, 0.1), transparent 60%),
    var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.schluss-card h2 { max-width: 22ch; }
.schluss-card p { color: var(--text-dim); max-width: 52ch; }
.schluss-card .btn { margin-top: 0.75rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-dim); font-size: 0.9rem; }
.footer-brand .brand-mark { width: 22px; height: 22px; color: var(--accent); }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.footer a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Scroll-Reveal ---------- */

.js .reveal { opacity: 0; translate: 0 24px; }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .telemetry-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; min-height: 0; }
  .hero-visual { order: -1; }
  .reactor-stage { width: min(70vw, 320px); }
  .bento { grid-template-columns: 1fr; }
  .cell-a { grid-row: auto; min-height: 0; justify-content: flex-start; }
  .ablauf-grid { grid-template-columns: 1fr 1fr; }
  .sprache-grid, .lokal-grid { grid-template-columns: 1fr; }
  .lokal .provider-board { order: -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .caps-grid { grid-template-columns: 1fr; }
  .ablauf-grid { grid-template-columns: 1fr; }
  .roadmap-track { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- GitHub-Icon (inline SVG, erbt Button-Farbe) ---------- */
.gh-icon { flex: none; }

/* ---------- Rechtstext-Seiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: 9rem 5rem; }
.legal .container { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  max-width: none;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 0.85rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 700; }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; }

/* Sichtbarer Platzhalter, der ausgefuellt werden muss */
.todo {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  border: 1px dashed var(--accent-line);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 3rem;
  transition: color 0.2s ease;
}
.back-home:hover { color: var(--text); }

/* =========================================================
   v2-Politur: Textur, Scroll-Fortschritt, Motion, Spotlight
   ========================================================= */

/* Film-Grain: bricht die digitale Flaeche, sehr subtil. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Scroll-Fortschritt: duenne Amber-Linie, rein per Scroll-Timeline (kein JS-Listener). */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(255, 140, 60, 0.55);
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress span { width: 100%; transform-origin: left; transform: scaleX(0); animation: progressGrow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progressGrow { to { transform: scaleX(1); } }

/* Gestaffelte Reveals: jedes Kind eines [data-stagger]-Containers kommt leicht versetzt. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-stagger] .reveal { transition-delay: calc(var(--i, 0) * 60ms); }
}

/* Hero-Einblendung beim Laden (nur mit JS + ohne Reduced-Motion). */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *,
  .js .hero-visual { opacity: 0; animation: heroIn 0.75s var(--ease-out) forwards; }
  .js .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .js .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
  .js .hero-visual { animation-duration: 0.95s; animation-delay: 0.2s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Spotlight: Karten leuchten unter dem Cursor (JS setzt --mx/--my). */
.bento-cell, .cap-card { position: relative; isolation: isolate; }
.bento-cell::before, .cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 180, 84, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bento-cell:hover::before, .cap-card:hover::before { opacity: 1; }

/* Glas-Kante: feiner Lichtsaum oben (Refraktion). */
.cap-card, .rm-card, .provider-board, .sprache-visual { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* ---------- Zuletzt ausgeliefert ---------- */
.shipped-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.rm-card.shipped { position: relative; }
.rm-card.shipped i { color: var(--ok); }
.shipped-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: var(--font-hud);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ok);
  border: 1px solid rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .shipped-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .shipped-track { grid-template-columns: 1fr; }
}
