/* unsorted systems
 *
 * Gestaltung (entschieden am 05.10.2026, siehe doku/gestaltung.md):
 * Manual-Papierweiß · Startrampe · Mono-Versalien · Rot-Duoton · Filmstreifen ·
 * Missionsnummer · Terminal-Status · Sternenfeld (dunkel, funkelnd) · zweisprachig
 */

/* ═══ Tokens ═════════════════════════════════════ */
:root {
  --bg: #f1efe9;          /* Papierweiß wie Katalog und NASA-Manual */
  --fg: #111;
  --dim: rgba(17, 17, 17, 0.58);
  --faint: rgba(17, 17, 17, 0.16);
  --panel: #e6e3dc;
  --bar: rgba(241, 239, 233, 0.86);
  --star: #111;
  --red: #ff0000;
  --display: "Roboto Mono", ui-monospace, monospace;
  --text: "Roboto", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --img-filter: url(#duo-red) contrast(1.15);
  color-scheme: light;
}

/* ═══ Grundlagen ═════════════════════════════════ */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main, .foot { max-width: 1440px; margin-inline: auto; }

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Kleine Beschriftungen in Mono, überall gleich */
.label,
.section-label,
.specs dt,
.mission__no,
.cap__no {
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.section-label { margin: 0 0 18px; }

/* ── Kopfzeile ────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 8px var(--gutter);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bar);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--faint);
}
.bar__id { color: var(--red); }
.bar__clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.bar__lang { display: flex; border: 1px solid var(--faint); }
.bar__lang button {
  appearance: none;
  background: none;
  border: 0;
  padding: 5px 8px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
}
.bar__lang button + button { border-left: 1px solid var(--faint); }
.bar__lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.bar__lang button:hover:not([aria-pressed="true"]) { color: var(--red); }
@media (max-width: 560px) { .bar__label { display: none; } }

/* ── Hero: Startrampe als Negativ auf Papier ──── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 6vh;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62%, 760px);
  background: url("assets/img/launchpad.jpg") center 30% / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 45% at 55% 62%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 45% at 55% 62%, #000 40%, transparent 100%);
  filter: grayscale(1) invert(1) contrast(1.2);
  mix-blend-mode: multiply;
  opacity: 0.5;
  z-index: -1;
}
@media (max-width: 700px) { .hero::before { width: 100%; opacity: 0.3; } }
.hero__mark { margin: 0; font-weight: inherit; }
.hero__mark img { width: min(100%, 820px); height: auto; }
.hero__sub { margin: 2rem 0 0; }
.hero__about {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  font: italic 300 16px/1.55 var(--text);
  color: var(--dim);
}

/* ── Status als Terminal-Zeile ─────────────────── */
.status {
  margin: 0 var(--gutter);
  padding: 22px 0;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}
.terminal { margin: 0; font: 400 clamp(13px, 1.5vw, 17px)/1.6 var(--mono); }
.terminal b { font-weight: 400; color: var(--red); }
.terminal__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--red);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .terminal__cursor { animation: none; } }

/* ── Mission log ──────────────────────────────── */
.log { padding: 72px var(--gutter) 24px; }
.log__list { list-style: none; margin: 0; padding: 0; }
.log__item a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto 1.5rem;
  gap: 1rem;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--faint);
  text-decoration: none;
  transition: padding 0.3s ease;
}
.log__item:last-child a { border-bottom: 1px solid var(--faint); }
.log__no { font: 400 13px/1 var(--mono); color: var(--red); }
.log__title {
  font: 400 clamp(18px, 2.4vw, 24px)/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.log__title small { display: block; font: italic 300 15px/1.4 var(--text); color: var(--dim); margin-top: 6px; text-transform: none; letter-spacing: 0; }
.log__date { font: 400 12px/1 var(--mono); color: var(--dim); }
.log__go { color: var(--red); opacity: 0; transform: translateX(-6px); transition: 0.3s ease; }
.log__item a:hover { padding-left: 8px; }
.log__item a:hover .log__title { color: var(--red); }
.log__item a:hover .log__go { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .log__item a { grid-template-columns: 3rem 1fr; }
  .log__date { grid-column: 2; }
  .log__go { display: none; }
}

/* ── Mission ──────────────────────────────────── */
.mission { padding: 120px var(--gutter) 48px; }

/* Trennlinie mit Koordinaten */
.mission__rule { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.mission__rule::after { content: ""; flex: 1; height: 1px; background: var(--faint); }
.mission__rule .label:first-child { color: var(--red); }

/* Kopf: riesige Missionsnummer als rote Kontur */
.mission__head { display: flex; flex-direction: column; align-items: flex-start; }
.mission__bigno {
  font: 300 clamp(120px, 22vw, 320px)/0.8 var(--mono);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  margin: 0 0 32px -0.04em;
  user-select: none;
}
.mission__artist {
  margin: 16px 0 0;
  font: 400 clamp(30px, 5.5vw, 76px)/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--red);
  text-transform: uppercase;
  overflow-wrap: break-word;
  max-width: 100%;
}
.mission__title {
  margin: 0.3em 0 0;
  font: italic 100 clamp(28px, 5vw, 60px)/1.05 var(--text);
}

.specs {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}
.specs div { min-width: 0; }
.specs dt { margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 15px; line-height: 1.5; }

.crew { margin-top: 56px; }
.crew ol {
  margin: 0; padding: 0; list-style: none;
  columns: 3 14rem; column-gap: 32px;
  counter-reset: crew;
}
.crew li { counter-increment: crew; padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--faint); }
.crew li::before {
  content: counter(crew, decimal-leading-zero);
  display: inline-block; width: 2.4rem;
  font: 400 11px/1 var(--mono); color: var(--red);
}

.mission__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
  gap: 48px;
  margin-top: 80px;
}
.mission__body--solo { grid-template-columns: minmax(0, 44rem); }
.mission__body .quote { position: sticky; top: 72px; }
@media (max-width: 820px) { .mission__body { grid-template-columns: 1fr; gap: 24px; } }

.quote {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--red);
  font: italic 300 clamp(20px, 2.4vw, 28px)/1.35 var(--text);
}
.quote cite { display: block; margin-top: 14px; font: 400 12px/1 var(--mono); font-style: normal; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.text p { margin: 0 0 1.1em; }
.text__lead { font-size: 20px; line-height: 1.5; font-weight: 400; margin-bottom: 1.6em !important; }
.text__author { font-style: italic; color: var(--dim); text-align: right; }
.text__note:empty { display: none; }
.text__note { margin: 1.5em 0 0; font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* ── Filmstreifen ─────────────────────────────── */
.strip { margin-top: 96px; }
.strip__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.strip__bar .section-label { margin: 0; }
.strip__nav { display: flex; gap: 8px; }
.strip__nav button {
  appearance: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--fg);
  font: 400 16px/1 var(--mono);
  cursor: pointer;
}
.strip__nav button:hover { background: var(--red); border-color: var(--red); color: #fff; }

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--faint);
}
.gallery figure {
  flex: 0 0 auto;
  width: min(78vw, 560px);
  margin: 0;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.strip--works .gallery figure { width: min(62vw, 300px); }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
}
.strip--works .gallery img { aspect-ratio: 3 / 4; }
.gallery figcaption {
  margin-top: 10px;
  font: 300 13px/1.45 var(--text);
  color: var(--dim);
  transition: color 0.4s;
}
.cap__no { display: block; margin-bottom: 6px; color: var(--red); }

/* Rot-Duoton; Hover (Touch: Bild in der Mitte) zeigt das Original */
.gallery img { filter: var(--img-filter); transition: filter 0.6s ease; }
.gallery figure:hover img,
.gallery figure.is-live img { filter: none; }
.gallery figure:hover figcaption,
.gallery figure.is-live figcaption { color: var(--fg); }

/* ── Lightbox ─────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(241, 239, 233, 0.96);
  display: grid; place-items: center;
  padding: var(--gutter);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0;
  font: 300 36px/1 var(--text); cursor: pointer;
}

/* ── Footer ───────────────────────────────────── */
.foot {
  margin-block: 120px 0;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--faint);
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  gap: 24px 48px;
  align-items: end;
  font: 400 12px/1.6 var(--mono);
  color: var(--dim);
}
.foot__mark { height: 44px; width: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }

/* ── Downloads (z. B. Katalog) ────────────────── */
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.download {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--fg);
  font: 400 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
}
.download::after { content: "↓"; color: var(--red); }
.download:hover { background: var(--red); border-color: var(--red); color: #fff; }
.download:hover::after { color: #fff; }

.foot__legal { display: flex; gap: 20px; }

/* ── Ohne JavaScript ──────────────────────────── */
.nojs { margin: 0 var(--gutter); padding: 16px 0; font: 400 13px/1.5 var(--mono); color: var(--red); }

/* ── Rechtliche Seiten + 404 ──────────────────── */
.bar a.bar__id { text-decoration: none; }
.legal__main { max-width: 44rem; margin: 0 auto; padding: 72px var(--gutter) 120px; }
.legal__mark { height: 52px; width: auto; margin-bottom: 56px; }
.legal h1 { margin: 0 0 32px; font: 400 clamp(28px, 4vw, 40px)/1.1 var(--mono); text-transform: uppercase; letter-spacing: -0.01em; color: var(--red); }
.legal h2 { margin: 40px 0 10px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.legal p { margin: 0 0 1em; }
.legal__lead { font-size: 19px; font-weight: 400; }
.legal__date { margin-top: 40px !important; font: 400 12px/1 var(--mono); color: var(--dim); }
.legal__links a { font: 400 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.legal hr { margin: 80px 0; border: 0; border-top: 1px solid var(--faint); }

.lost { max-width: 1440px; margin: 0 auto; padding: 12vh var(--gutter); }
.legal .lost__no {
  margin: 24px 0;
  font: 300 clamp(140px, 30vw, 420px)/0.8 var(--mono);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}
.lost__home { font: 400 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); text-decoration: none; }
