/* Scraphaven Landingpage v2 – Vanilla CSS, mobile-first, keine externen
   Ressourcen. Scrolltelling-Effekte als progressive enhancement:
   ohne JS (html ohne .js-Klasse) ist alles sichtbar, nur ohne Motion. */

:root {
  /* Alle Farbwerte gespiegelt aus dem Design System (Quelle der Wahrheit:
     docs/SCRAPHAVEN_DESIGN_SYSTEM.md §4.1, Entscheidung D13). Werte nur
     ändern, wenn sich das Token im Design System ändert. */
  --bg: #202428;           /* Token: charcoal */
  --concrete: #292e32;     /* Token: panel-dark */
  --line: #41484d;         /* Token: panel-border */
  --rust: #b76130;         /* Token: rust – nur dekorativ, kein Text (§4.4) */
  --olive: #707449;        /* Token: olive – nur dekorativ, kein Text (§4.4) */
  --amber: #d4a23c;        /* Token: warning-amber */
  --extract: #78b84c;      /* Token: friendly-green – Status „spielbar/fertig" */
  --objective: #42d8e6;    /* Token: objective-cyan – Extraktion, Links */
  --threat: #d6534f;       /* Token: threat-red – nur FX/großer Alarmtext (§4.4) */
  --text: #b7b0a5;         /* Token: text-muted */
  --text-bright: #f1eee7;  /* Token: text-light */
  --text-muted: #b7b0a5;   /* Token: text-muted */
  --text-dark: #292927;    /* Token: text-dark – Text auf Amber-Flächen */
  --rust-light: #c98a62;   /* Token: rust-light */

  /* Typografie (§11) */
  --font-heading: "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Rundungen (§10.3) */
  --radius-small: 4px;
  --radius-button: 6px;
  --radius-panel: 8px;
  --radius-card: 12px;

  /* Standard-Schatten (D11/§7.2) */
  --shadow-default: 2px 2px 8px rgba(21, 23, 25, 0.24);

  /* Scroll-Fortschritt des Loops (0..1), von main.js gesetzt */
  --danger: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  padding: 0.5rem 1rem;
  background: var(--amber);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-button) var(--radius-button);
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(32, 36, 40, 0.92);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* Mit JS: oben transparent über dem Hero, ab Scroll abgedunkelt + Blur */
html.js .site-header {
  background: transparent;
  border-color: transparent;
}

html.js .site-header.scrolled {
  background: rgba(32, 36, 40, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-bright);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--amber);
}

.header-cta {
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-button);
}

.btn-primary,
.btn-cta {
  background: var(--amber);
  color: var(--text-dark);
  border: 1px solid var(--amber);
  box-shadow: var(--shadow-default);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(1px);
}

/* Marketing-Bühne: Glow ist hier erlaubt (§10.4 gilt fürs Spiel-UI) */
.btn-glow {
  box-shadow: var(--shadow-default), 0 0 24px rgba(212, 162, 60, 0.35);
}

.btn-glow:hover,
.btn-glow:focus-visible {
  box-shadow: var(--shadow-default), 0 0 36px rgba(212, 162, 60, 0.55);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: -3.4rem; /* Header liegt (mit JS transparent) über dem Hero */
  padding-top: 3.4rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(32, 36, 40, 0.72), rgba(32, 36, 40, 0.92)),
    repeating-linear-gradient(
      -45deg,
      var(--concrete) 0px,
      var(--concrete) 22px,
      var(--bg) 22px,
      var(--bg) 44px
    );
}

.hero-fx,
.hero-fx span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Cyan-Extraktions-Glow, atmet langsam */
.fx-glow {
  background: radial-gradient(
    ellipse 60% 40% at 50% 42%,
    rgba(66, 216, 230, 0.14),
    transparent 70%
  );
  animation: glow-breathe 7s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Staubpartikel: zwei driftende Punkt-Layer aus box-shadows */
.fx-dust {
  inset: auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  left: 0;
  top: 0;
  background: transparent;
}

.fx-dust-a {
  box-shadow:
    12vw 18vh 0 rgba(183, 176, 165, 0.35), 28vw 64vh 0 rgba(183, 176, 165, 0.22),
    41vw 32vh 0 rgba(201, 138, 98, 0.30), 55vw 78vh 0 rgba(183, 176, 165, 0.25),
    67vw 22vh 0 rgba(183, 176, 165, 0.35), 79vw 55vh 0 rgba(201, 138, 98, 0.22),
    88vw 36vh 0 rgba(183, 176, 165, 0.30), 18vw 84vh 0 rgba(183, 176, 165, 0.20),
    72vw 88vh 0 rgba(183, 176, 165, 0.28), 35vw 92vh 0 rgba(201, 138, 98, 0.20);
  animation: dust-drift 26s linear infinite;
}

.fx-dust-b {
  width: 2px;
  height: 2px;
  box-shadow:
    8vw 44vh 0 rgba(183, 176, 165, 0.25), 22vw 12vh 0 rgba(183, 176, 165, 0.18),
    47vw 58vh 0 rgba(183, 176, 165, 0.22), 61vw 8vh 0 rgba(201, 138, 98, 0.18),
    74vw 70vh 0 rgba(183, 176, 165, 0.25), 92vw 62vh 0 rgba(183, 176, 165, 0.18),
    52vw 86vh 0 rgba(183, 176, 165, 0.16), 15vw 66vh 0 rgba(201, 138, 98, 0.16);
  animation: dust-drift 38s linear infinite reverse;
}

@keyframes dust-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-18vh); }
}

/* Tracer: Projektile, die über den Screen ziehen */
.fx-tracer {
  inset: auto;
  height: 2px;
  width: 140px;
  border-radius: 2px;
  opacity: 0;
}

.fx-tracer-1 {
  top: 24%;
  background: linear-gradient(90deg, transparent, var(--amber));
  animation: tracer-ltr 5.5s linear infinite;
  animation-delay: 1s;
}

.fx-tracer-2 {
  top: 66%;
  background: linear-gradient(270deg, transparent, var(--objective));
  animation: tracer-rtl 7s linear infinite;
  animation-delay: 3.4s;
}

.fx-tracer-3 {
  top: 44%;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--rust-light));
  animation: tracer-ltr 6.2s linear infinite;
  animation-delay: 5.2s;
}

@keyframes tracer-ltr {
  0% { transform: translateX(-20vw); opacity: 0; }
  6% { opacity: 0.9; }
  16% { opacity: 0.9; }
  22% { transform: translateX(120vw); opacity: 0; }
  100% { transform: translateX(120vw); opacity: 0; }
}

@keyframes tracer-rtl {
  0% { transform: translateX(120vw); opacity: 0; }
  6% { opacity: 0.8; }
  16% { opacity: 0.8; }
  22% { transform: translateX(-20vw); opacity: 0; }
  100% { transform: translateX(-20vw); opacity: 0; }
}

/* Scanlines + Vignette */
.fx-scan {
  background: repeating-linear-gradient(
    0deg,
    rgba(21, 23, 25, 0.16) 0px,
    rgba(21, 23, 25, 0.16) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: multiply;
}

.fx-vignette {
  background: radial-gradient(
    ellipse 90% 90% at 50% 45%,
    transparent 55%,
    rgba(21, 23, 25, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 4.5rem 1rem 5.5rem;
  text-align: center;
}

.hero-tag {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.wordmark-wrap {
  filter: drop-shadow(0 0 22px rgba(66, 216, 230, 0.18));
}

.hero-wordmark {
  width: 100%;
  max-width: 34rem;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Auftritt der Wortmarke + gestaffelte Hero-Elemente (nur CSS, einmalig) */
.hero-tag,
.wordmark-wrap,
.hero-slogan,
.hero-cta {
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.wordmark-wrap { animation-delay: 0.15s; }
.hero-slogan { animation-delay: 0.35s; }
.hero-cta { animation-delay: 0.5s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Deko-Unterstriche unter der Wortmarke (Bühnen-Element, nicht Teil der Marke) */
.wm-underline {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.wm-line {
  display: block;
  height: 4px;
  border-radius: 2px;
  transform-origin: left center;
  animation: line-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s backwards;
}

.wm-line-cyan {
  width: clamp(120px, 32%, 200px);
  background: var(--objective);
}

.wm-line-amber {
  width: clamp(28px, 7%, 44px);
  background: var(--amber);
}

@keyframes line-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-slogan {
  margin: 1.5rem auto 2rem;
  color: var(--text-bright);
  font-size: clamp(1rem, 4.2vw, 1.35rem);
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--amber);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.1rem;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--objective);
}

.scroll-cue-arrow {
  animation: cue-bob 1.8s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- Scrolltelling: Der Loop ---------- */

.loop {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.loop-head {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.danger-hud {
  position: sticky;
  top: 4.7rem;
  z-index: 10;
  margin-left: auto;
  margin-right: 1rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  background: rgba(32, 36, 40, 0.95); /* §10.6.1 wie Spiel-HUD (D33) */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-default);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.danger-hud-label {
  color: var(--amber); /* warning-amber: Warn-Rolle, D33 */
  font-weight: 700;
}

.danger-hud-track {
  width: 96px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.danger-hud-fill {
  display: block;
  height: 100%;
  width: calc(var(--danger) * 100%);
  background: linear-gradient(90deg, var(--olive), var(--amber), var(--threat));
}

.danger-hud-value {
  color: var(--text-bright);
  min-width: 1ch;
}

/* Schritte: volle Bühne mit Bild, Panel davor */
.step {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.step-media {
  position: absolute;
  inset: 0;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grund-Abdunklung + Gefahr-Färbung (steigt mit Scroll-Fortschritt) */
.step-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(32, 36, 40, 0.55) 0%,
    rgba(32, 36, 40, 0.25) 45%,
    rgba(21, 23, 25, 0.82) 100%
  );
}

.step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(214, 83, 79, 0.28); /* threat-red als Gefahr-Tönung */
  opacity: calc(var(--danger) * 0.9);
  mix-blend-mode: multiply;
}

.step-panel {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0 1rem 3.5rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: rgba(32, 36, 40, 0.95); /* §10.6.1 wie Spiel-HUD (D33) */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-default);
}

.step-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 0.4rem;
}

.step h3 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.98rem;
}

.step-cta {
  margin-top: 1.25rem;
}

/* Der Entscheidungs-Moment */
.step-choice .step-panel {
  border-left-color: var(--objective);
}

.choice-line .choice-deeper {
  color: var(--amber);
  text-shadow: 0 0 24px rgba(212, 162, 60, 0.35);
}

.choice-line .choice-out {
  color: var(--objective);
  text-shadow: 0 0 24px rgba(66, 216, 230, 0.35);
}

/* ---------- Reveal (nur mit JS aktiv) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Sektionen ---------- */

.section {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--line);
}

.section h2,
.loop-head h2 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-index {
  color: var(--rust-light);
  font-family: var(--mono);
  margin-right: 0.5rem;
}

.section-intro {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  background: var(--concrete);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-default);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--amber);
}

.feature-card h3 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin: 0.75rem 0 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: var(--radius-small);
}

.badge-live {
  color: var(--extract);
  box-shadow: 0 0 12px rgba(120, 184, 76, 0.25);
}

.badge-planned { color: var(--amber); }
.badge-later { color: var(--text); }

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

.timeline {
  list-style: none;
  position: relative;
  padding-left: 2.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--extract) 0%,
    var(--extract) 58%,
    var(--amber) 66%,
    var(--line) 78%,
    var(--line) 100%
  );
}

.tl-item {
  position: relative;
  padding-bottom: 2.1rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-node {
  position: absolute;
  left: -2.4rem;
  top: 0.1rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.tl-done .tl-node {
  background: var(--extract);
  color: var(--text-dark);
  box-shadow: 0 0 12px rgba(120, 184, 76, 0.35);
}

.tl-now .tl-node {
  background: var(--bg);
  border: 3px solid var(--amber);
  box-shadow: 0 0 0 0 rgba(212, 162, 60, 0.5);
  animation: node-pulse 2s ease-out infinite;
}

@keyframes node-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 162, 60, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(212, 162, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 162, 60, 0); }
}

.tl-next .tl-node {
  background: var(--bg);
  border: 2px solid var(--line);
}

.tl-item h3 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.tl-now h3 { color: var(--amber); }

.tl-next h3,
.tl-next p {
  opacity: 0.65;
}

.tl-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.tl-item p {
  font-size: 0.92rem;
  max-width: 40rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line);
  background: var(--concrete);
  margin-bottom: 0.75rem;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-default);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: var(--rust-light);
}

.faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--amber);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--text-muted);
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  padding: 0 1.25rem 1rem;
  font-size: 0.92rem;
}

/* ---------- 404 ---------- */

.notfound {
  max-width: 40rem;
  text-align: center;
  border-bottom: none;
  padding-top: 5rem;
}

.notfound-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--rust-light);
  letter-spacing: 0.08em;
}

.notfound h1 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.75rem 0 1rem;
}

.notfound .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.legal {
  max-width: 46rem;
  border-bottom: none;
}

.legal h1 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.legal h2 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.legal h3 {
  color: var(--rust-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal ul {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--objective);
  word-break: break-word;
}

.legal-todo {
  border: 1px dashed var(--amber);
  background: var(--concrete);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-panel);
}

.legal-todo p {
  margin-bottom: 0;
  color: var(--amber);
}

.legal-stand {
  margin-top: 2.5rem;
  color: var(--text-muted);
}

/* ---------- Devlog ---------- */

.devlog-entry {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  scroll-margin-top: 4.5rem;
}

.devlog-entry h2 {
  margin: 0 0 0.35rem;
}

.devlog-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.devlog .entry-anchor {
  color: var(--rust-light);
  text-decoration: none;
}

.devlog .entry-anchor:hover,
.devlog .entry-anchor:focus-visible {
  color: var(--amber);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--text);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--amber);
}

/* Footer v2 (Startseite) */
.footer-v2 {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--concrete);
  padding: 2.5rem 1rem 2rem;
}

.footer-inner {
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}

.footer-word {
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-tagline {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav a {
  text-decoration: none;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Breakpoints ---------- */

@media (max-width: 39.99rem) {
  .site-header {
    padding: 0.55rem 0.75rem;
  }

  .header-cta {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
  }

  /* Nav einzeilig, seitlich scrollbar statt umbrechend */
  .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    margin-top: -5.2rem;
    padding-top: 5.2rem;
  }

  .danger-hud {
    top: 5.6rem;
    margin-right: 0.75rem;
  }
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-panel {
    margin: 0 2rem 4.5rem;
  }
}

@media (min-width: 64rem) {
  .step {
    align-items: center;
  }

  .step-panel {
    margin: 0 0 0 7vw;
    padding: 2rem 2.2rem;
  }

  .step-right .step-panel {
    margin: 0 7vw 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-legal {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-tag,
  .wordmark-wrap,
  .hero-slogan,
  .hero-cta,
  .wm-line,
  .fx-glow,
  .fx-dust-a,
  .fx-dust-b,
  .fx-tracer,
  .scroll-cue-arrow,
  .tl-now .tl-node {
    animation: none;
  }

  .fx-tracer {
    display: none; /* ohne Bewegung nur störende Striche */
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card,
  .faq-icon::before,
  .faq-icon::after,
  .btn-primary,
  .btn-cta {
    transition: none;
  }
}
