/* Mission on Mars – Designsystem
   Layout: Missions-Dossier. Dunkle Mars-Bänder (Erleben) wechseln mit hellen Staub-Bändern (Einordnen),
   Titel in Monospace-Versalien wie die Folientitel, Abschnittsmarken im "://"-Stil des Onepagers.
   Bewusst eine einzige Bildwelt (kein Dark-Mode-Wechsel): alle Farben sind explizit gesetzt. */

@font-face { font-family: "MoM Mono"; src: url("fonts/dejavumono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MoM Mono"; src: url("fonts/dejavumono-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MoM Sans"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MoM Sans"; src: url("fonts/inter-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "MoM Sans"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "MoM Sans"; src: url("fonts/inter-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* Farbe – aus den Folien */
  --night: #1a120d;      /* Mars-Nacht, dunkle Bänder */
  --soil: #2b1d16;       /* Dunkelbraun, Text auf hell */
  --soil-2: #3a281e;     /* Karten auf dunkel */
  --rust: #a3471f;       /* Rost, Akzent auf hell */
  --ember: #d6854b;      /* Folien-Orange, Akzent auf dunkel */
  --ochre: #c8892e;      /* Ocker, Linien und Marken */
  --dust: #f6efe7;       /* Staub-Beige, helle Bänder */
  --card: #fffaf4;       /* Karten auf hell */
  --line: #e6d6c6;       /* Linien auf hell */
  --muted: #5c4636;      /* Sekundärtext auf hell */
  --muted-dark: #d9c6b4; /* Sekundärtext auf dunkel */
  --line-dark: rgba(230, 214, 198, 0.16);
  --sunset: #9fbdd4;     /* Blau: Sonnenuntergänge auf dem Mars sind blau – nur im Oxymeter */

  /* Schrift */
  --display: "MoM Mono", "DejaVu Sans Mono", "Menlo", "Consolas", monospace;
  --body: "MoM Sans", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--soil);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Typo */
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0.02em; }
p { margin: 0; max-width: 66ch; }
.eyebrow { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--rust); }
.eyebrow::after { content: "://"; margin-left: 0.15em; opacity: 0.75; }
.lead { font-size: 1.16rem; line-height: 1.55; }
.small { font-size: 0.86rem; }
.mono { font-family: var(--display); }

/* ---------- Bänder */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--dust { background: var(--dust); color: var(--soil); }
.band--night { background: var(--night); color: var(--dust); }
.band--night .eyebrow { color: var(--ember); }
.band--night .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 780px; }

/* ---------- Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(26, 18, 13, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-dark); color: var(--dust); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.brand span { color: var(--ember); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.9rem; color: var(--muted-dark); }
.nav a:hover { color: var(--dust); }
.nav .lang { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--dust); border: 1px solid var(--line-dark); border-radius: 6px; padding: 4px 8px; }
.nav .lang:hover { border-color: var(--ember); color: var(--ember); }
.nav .nav-cta { color: var(--night); background: var(--ember); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { color: var(--night); background: #e29a64; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--dust); border-radius: 8px; padding: 7px 12px; font: 600 0.85rem var(--body); cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav a.lang { align-self: flex-start; margin-top: 12px; padding: 6px 12px; border: 1px solid var(--line-dark); font-size: 0.85rem; }
}

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-family: var(--body); }
.btn--ember { background: var(--ember); color: var(--night); }
.btn--ember:hover { background: #e29a64; }
.btn--ghost { border-color: rgba(246, 239, 231, 0.4); color: var(--dust); background: transparent; }
.btn--ghost:hover { border-color: var(--dust); }
.btn--rust { background: var(--rust); color: #fff8f1; }

/* ---------- Hero */
.hero { position: relative; color: var(--dust); background: var(--night) url("img/hero-poster.jpg") center 55% / cover no-repeat; isolation: isolate; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 13, 9, 0.88) 0%, rgba(20, 13, 9, 0.62) 48%, rgba(20, 13, 9, 0.25) 100%), linear-gradient(0deg, rgba(26, 18, 13, 1) 0%, rgba(26, 18, 13, 0) 30%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 48px; align-items: end; padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 48px); }
.hero-copy { display: grid; gap: 22px; }
.hero .eyebrow { color: var(--ember); }
.hero .lead { color: #efe2d4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.oxy { background: rgba(18, 12, 9, 0.78); border: 1px solid rgba(159, 189, 212, 0.35); border-radius: 14px; padding: 18px 20px; display: grid; gap: 12px; font-family: var(--display); color: var(--sunset); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); max-width: 380px; justify-self: end; width: 100%; }
.oxy-top { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.oxy-top .rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s steps(2, start) infinite; }
.oxy-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oxy-val { display: grid; gap: 2px; }
.oxy-val small { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8aa2b5; }
.oxy-val b { font-size: 1.9rem; line-height: 1; color: #dbe8f2; font-variant-numeric: tabular-nums; }
.oxy-val b i { font-style: normal; font-size: 0.9rem; color: #8aa2b5; margin-left: 4px; }
.oxy svg { width: 100%; height: 54px; overflow: visible; }
.oxy .ecg { fill: none; stroke: var(--sunset); stroke-width: 2; stroke-dasharray: 520; stroke-dashoffset: 520; animation: ecg 2.4s linear infinite; }
.oxy-bar { height: 8px; border-radius: 99px; background: rgba(159, 189, 212, 0.15); overflow: hidden; }
.oxy-bar span { display: block; height: 100%; width: 64%; background: linear-gradient(90deg, var(--ember), var(--sunset)); border-radius: inherit; transition: width 0.6s ease; }
.oxy-note { font-family: var(--body); font-size: 0.8rem; color: #b9c9d6; line-height: 1.45; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .oxy .ecg { animation: none; stroke-dashoffset: 0; } .oxy-top .rec::before { animation: none; } }

.facts { border-top: 1px solid var(--line-dark); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fact { padding: 22px 18px 24px 0; display: grid; gap: 4px; }
.fact + .fact { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.fact b { font-family: var(--display); font-size: 1.7rem; color: var(--ember); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.88rem; color: var(--muted-dark); line-height: 1.4; }

/* ---------- Warum jetzt */
.storm { position: relative; color: var(--dust); background: var(--night) url("img/solar-storm.jpg") right top / cover no-repeat; isolation: isolate; }
.storm::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 13, 9, 0.93) 0%, rgba(20, 13, 9, 0.8) 55%, rgba(20, 13, 9, 0.5) 100%); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { background: rgba(26, 18, 13, 0.7); border-top: 3px solid var(--ochre); border-radius: 0 0 var(--radius) var(--radius); padding: 22px 22px 20px; display: grid; gap: 8px; align-content: start; }
.stat b { font-family: var(--display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--ochre); line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { color: var(--dust); }
.stat cite { font-style: italic; font-size: 0.82rem; color: var(--muted-dark); }
.price { background: rgba(26, 18, 13, 0.7); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 10px; }
.price .label { color: var(--ochre); font-weight: 700; font-size: 0.95rem; }
.price blockquote { margin: 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-style: italic; line-height: 1.5; max-width: 62ch; }
.verdict { margin-top: 18px; background: var(--rust); color: #fff8f1; border-radius: var(--radius); padding: 18px 26px; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); display: flex; align-items: center; gap: 16px; }
.verdict b { font-weight: 700; }

/* ---------- Idee */
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.block-head { display: flex; align-items: center; gap: 14px; }
.ico { width: 46px; height: 46px; border-radius: 50%; background: var(--ochre); display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; stroke: #fffaf4; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.block h3 { color: var(--rust); }
.block p { font-size: 1.04rem; }
.question { margin-top: 18px; border: 2px dashed var(--rust); border-radius: var(--radius); padding: 22px 26px; display: grid; gap: 6px; }
.question b { font-family: var(--display); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--rust); }
.question p { font-size: 1.08rem; }

/* Inline-Verweis im Hero und Formel-Platzhalter */
.inlink { color: inherit; text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.inlink:hover { color: #fff; }
.formula { margin-top: 18px; background: var(--night); color: var(--dust); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 16px; }
.formula-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.formula-head h3 { color: var(--ember); }
.badge { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night); background: var(--ochre); border-radius: 99px; padding: 4px 10px; }
.formula-eq { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.1rem); line-height: 1.3; letter-spacing: 0.02em; color: var(--muted-dark); max-width: none; overflow-wrap: anywhere; }
.formula-eq span { color: var(--dust); }
.formula-eq span:first-child { color: var(--ember); }
.formula-legend { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.formula-legend div { border-top: 2px solid var(--ochre); padding-top: 10px; display: grid; gap: 4px; }
.formula-legend dt { font-family: var(--display); font-weight: 700; color: var(--ember); }
.formula-legend dd { margin: 0; font-size: 0.92rem; color: #e9dccd; line-height: 1.5; }
.formula-note { font-size: 0.94rem; color: var(--muted-dark); font-style: italic; }
@media (max-width: 760px) { .formula-legend { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Warum Mars */
.mars-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.planet { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.planet img { width: 100%; height: auto; filter: drop-shadow(0 0 60px rgba(214, 133, 75, 0.25)); }
.planet figcaption { margin-top: 8px; text-align: center; font-size: 0.78rem; color: var(--muted-dark); }
.mars-copy { display: grid; gap: 18px; }
.quote-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.quote-list li { border-left: 3px solid var(--ember); padding: 4px 0 4px 16px; color: #efe2d4; }
.lab { margin-top: 8px; background: var(--soil-2); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px 20px; }
.lab-img { grid-row: span 2; width: 120px; height: 160px; object-fit: cover; object-position: center 35%; border-radius: 8px; }
@media (max-width: 480px) { .lab { grid-template-columns: minmax(0, 1fr); } .lab-img { grid-row: auto; width: 100%; height: 220px; } }
.lab h3 { color: var(--ember); }

/* ---------- Ablauf */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: ph; position: relative; }
.phase { position: relative; display: grid; gap: 10px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 22px; }
.phase-num { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--rust); }
.phase h3 { font-size: 0.98rem; }
.phase p { font-size: 0.93rem; line-height: 1.5; }
.phase .tag { justify-self: start; font-size: 0.74rem; font-weight: 600; color: var(--muted); background: #f1e4d6; border-radius: 99px; padding: 3px 10px; }
.loop { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.92rem; }
.loop .mono { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); font-weight: 700; margin-right: 6px; }
.loop span.step { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
.loop span.arrow { color: var(--ochre); }

/* ---------- Challenges */
.challenges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch { background: var(--soil-2); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line-dark); }
.ch-num { font-family: var(--display); color: var(--ember); font-size: 0.8rem; letter-spacing: 0.12em; font-weight: 700; }
.ch h3 { color: var(--dust); font-size: 1.4rem; line-height: 1.2; }
.ch .en { font-family: var(--display); font-size: 0.85rem; color: var(--muted-dark); letter-spacing: 0.06em; margin-top: -4px; }
.ch p { font-size: 0.95rem; color: #e9dccd; line-height: 1.55; }
.tech { margin-top: 22px; font-size: 0.9rem; color: var(--muted-dark); }
.tech b { color: var(--dust); }

/* ---------- Hebel */
.levels { display: grid; gap: 18px; }
.level { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.level-tag { display: grid; gap: 6px; align-content: start; }
.level-tag .mono { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--rust); font-weight: 700; text-transform: uppercase; }
.level-tag h3 { font-size: 1.15rem; }
.level-tag p { font-size: 0.9rem; color: var(--muted); }
.levers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.lever { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.lever:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.lever-num { grid-row: span 3; width: 38px; height: 38px; border-radius: 50%; background: var(--rust); color: #fff8f1; font-family: var(--display); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.lever h4 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.lever p { font-size: 0.94rem; }
.lever .q { font-style: italic; color: var(--muted); }
.level--one .lever { border-top: 0; padding: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.chips li { display: grid; gap: 2px; }
.chips b { font-size: 0.98rem; }
.chips span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Formate */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.format { background: var(--soil-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 14px; align-content: start; }
.format--focus { border-color: var(--ember); }
.format .dur { font-family: var(--display); color: var(--ember); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.format h3 { color: var(--dust); }
.format .size { font-size: 0.88rem; color: var(--muted-dark); }
.format ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.94rem; color: #e9dccd; }
.format ul li::marker { color: var(--ember); }
.format .incl { margin: 0 0 -6px; font-size: 0.94rem; font-weight: 600; color: #e9dccd; }
.format .note { font-size: 0.86rem; color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding-top: 12px; }
.formats-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }

/* ---------- Für wen / was bleibt */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); }
.col { display: grid; gap: 16px; align-content: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border: 2px solid var(--rust); border-radius: 50%; }
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kit div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.kit b { font-size: 0.98rem; }
.kit span { font-size: 0.9rem; color: var(--muted); }
.kit .kit-wide { grid-column: 1 / -1; }

/* Akku-Bullets: laden sich beim Laden der Seite auf */
.ticks.bats li { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
.ticks.bats li::before { display: none; }
.bat { position: relative; width: 30px; height: 16px; margin-top: 5px; border: 2px solid var(--rust); border-radius: 3px; }
.bat::after { content: ""; position: absolute; right: -6px; top: 3px; width: 4px; height: 6px; background: var(--rust); border-radius: 0 1px 1px 0; }
.bat i { position: absolute; left: 2px; top: 2px; bottom: 2px; width: calc((100% - 4px) * var(--lvl, 1)); background: var(--ochre); border-radius: 1px; animation: charge 1.8s ease-out both; }
.ticks.bats li:nth-child(2) .bat i { animation-delay: 0.25s; }
.ticks.bats li:nth-child(3) .bat i { animation-delay: 0.5s; }
@keyframes charge { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .bat i { animation: none; } }

/* ---------- Referenzen */
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ref { background: var(--soil-2); border-radius: var(--radius); border: 1px solid var(--line-dark); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.media-slot { aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, #2f2018 0 14px, #34241b 14px 28px); color: var(--muted-dark); font-size: 0.86rem; border-bottom: 1px dashed rgba(214, 133, 75, 0.5); }
.media-slot b { display: block; font-family: var(--display); color: var(--ember); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.76rem; margin-bottom: 4px; }
.ref-body { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.ref-body h3 { color: var(--dust); }
.ref-body .meta { font-size: 0.86rem; color: var(--ember); font-weight: 600; }
.ref-body p { color: #e9dccd; font-size: 0.96rem; }
.placeholder { background: rgba(214, 133, 75, 0.16); outline: 1px dashed var(--ember); border-radius: 4px; padding: 0 4px; font-style: normal; }
.band--dust .placeholder { background: #fbe6d2; outline-color: var(--rust); }

/* ---------- Team */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.person-head { display: flex; align-items: flex-start; gap: 18px; }
.person-head > div { display: grid; gap: 4px; min-width: 0; }
.portrait { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; background: #ece0d3; }
.mc-image { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; max-width: 100%; }
.mc-image img { width: 100%; height: auto; aspect-ratio: 1264 / 600; object-fit: cover; object-position: center 40%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--rust); background: #f1e4d6; border-radius: 99px; padding: 4px 10px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--rust); background: #f1e4d6; border: 1px dashed var(--rust); font-size: 1.1rem; }
.person h3 { font-size: 1.1rem; }
.person .role { font-size: 0.9rem; color: var(--muted); }
.person blockquote { margin: 0; font-style: italic; color: var(--rust); border-left: 3px solid var(--ochre); padding-left: 14px; }
.person ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.95rem; }
.person ul li::marker { color: var(--ochre); }
.person a.more { font-size: 0.9rem; color: var(--rust); font-weight: 600; text-underline-offset: 3px; }
.together { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.together div { border-top: 3px solid var(--ochre); padding-top: 12px; display: grid; gap: 2px; }
.together b { font-family: var(--display); font-size: 1.8rem; color: var(--rust); line-height: 1.1; }
.together span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--soil-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 26px; display: grid; gap: 18px; }
.contact-row { display: grid; gap: 6px; }
.contact-row small { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-line a { font-size: 1.1rem; font-weight: 600; color: var(--dust); text-underline-offset: 4px; word-break: break-word; }
.copy { background: none; border: 1px solid var(--line-dark); color: var(--muted-dark); border-radius: 99px; padding: 4px 12px; font: 600 0.78rem var(--body); cursor: pointer; }
.copy:hover { color: var(--dust); border-color: var(--muted-dark); }

/* ---------- Footer */
.site-footer { background: #120c08; color: var(--muted-dark); padding-block: 36px; font-size: 0.88rem; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted-dark); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--dust); }
.site-footer .by { color: var(--muted-dark); opacity: 0.85; }

/* ---------- Rechtstexte */
.legal { background: var(--dust); color: var(--soil); padding-block: clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.15rem; margin: 40px 0 10px; }
.legal h3 { font-size: 0.98rem; margin: 22px 0 6px; text-transform: none; font-family: var(--body); letter-spacing: 0; }
.legal p, .legal li { max-width: 72ch; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal address { font-style: normal; line-height: 1.7; }
.legal .notice { background: #fbe6d2; border: 1px dashed var(--rust); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 8px; font-size: 0.94rem; }
.legal .back { display: inline-block; margin-top: 40px; color: var(--rust); font-weight: 600; }

/* ---------- Responsive */
@media (max-width: 1040px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .oxy { justify-self: start; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .stats, .blocks, .challenges, .formats { grid-template-columns: minmax(0, 1fr); }
  .mars-grid, .two, .contact, .refs, .people { grid-template-columns: minmax(0, 1fr); }
  .planet { max-width: 300px; }
  .level { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .challenges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .phases, .challenges, .levers, .chips, .kit, .together { grid-template-columns: minmax(0, 1fr); }
  .phase:last-child { grid-column: auto; }
  .lever:nth-child(2) { border-top: 1px solid var(--line); padding-top: 16px; }
  .level { padding: 22px 18px; }
  .verdict { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Bearbeiten-Modus (nur im Entwurf für Bearbeiter sichtbar) */
.edit-bar { position: fixed; z-index: 70; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: calc(100% - 32px); font-family: var(--body); }
.edit-btn { border: 0; border-radius: 999px; padding: 10px 16px; font: 600 0.9rem var(--body); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.edit-toggle, .edit-save { background: var(--ember); color: var(--night); }
.edit-save[disabled] { opacity: 0.6; cursor: wait; }
.edit-cancel { background: var(--soil-2); color: var(--dust); }
.edit-hint, .edit-status:not(:empty) { background: var(--night); color: var(--dust); font-size: 0.82rem; padding: 8px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
body.editing main [data-k] { outline: 1px dashed rgba(200, 137, 46, 0.55); outline-offset: 2px; cursor: text; }
body.editing main [data-k]:hover { outline-color: var(--ember); }
body.editing main [data-k]:focus { outline: 2px solid var(--ember); background: rgba(214, 133, 75, 0.1); }

/* ---------- Scroll-Hinweise */
.next-cue { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: clamp(40px, 6vw, 64px) auto 0; text-decoration: none; font-family: var(--display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; color: var(--rust); }
.band--night .next-cue { color: var(--ember); }
.next-cue:hover .next-txt { text-decoration: underline; text-underline-offset: 4px; }
.next-arrow { width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: nudge 1.8s ease-in-out infinite; }
.next-cue--top .next-arrow { transform: rotate(-135deg); animation: none; margin-top: 6px; }
.next-cue--hero { color: var(--dust); margin: 0 auto; padding-block: 8px 22px; }
.next-cue--hero .next-arrow { width: 18px; height: 18px; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .next-arrow { animation: none; } }

/* ---------- Bilder aus der Mission */
.ch { overflow: hidden; }
.ch-img { margin: -24px -22px 6px; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.wide-img { margin: 0 0 clamp(24px, 4vw, 36px); border-radius: var(--radius); overflow: hidden; max-width: 100%; background: var(--soil-2); }
.wide-img img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.wide-img figcaption { padding: 10px 16px; font-size: 0.86rem; color: var(--muted-dark); }
.band--dust .wide-img { background: var(--card); border: 1px solid var(--line); }
.band--dust .wide-img figcaption { color: var(--muted); }
.span-all { grid-column: 1 / -1; }
.planet img { filter: none; -webkit-mask-image: radial-gradient(ellipse 52% 46% at 50% 60%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 52% 46% at 50% 60%, #000 72%, transparent 100%); }

/* ---------- Start: kurz nur das Logo (einmal pro Besuch) */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--night); padding: 16px; animation: splash-out 0.4s ease 0.8s forwards; }
.splash-logo { font-family: var(--display); font-weight: 700; color: var(--dust); font-size: clamp(1.6rem, 1rem + 4vw, 3.6rem); letter-spacing: 0.08em; text-align: center; animation: splash-in 0.6s ease both; }
.splash-logo span { color: var(--ember); animation: splash-blink 0.4s steps(2, start) 0.3s 1; }
@keyframes splash-in { from { opacity: 0; transform: scale(0.96); letter-spacing: 0.2em; } to { opacity: 1; transform: none; letter-spacing: 0.08em; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes splash-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .splash { animation: splash-out 0.2s linear 1s forwards; } .splash-logo, .splash-logo span { animation: none; } }

/* Referenzen ausgeblendet: Trennlinie zwischen den zwei hellen Abschnitten */
#referenzen[hidden] + #team { border-top: 1px solid var(--line); }
