/* Black Hole Wallpaper: Missionsakte
   Datenblatt-Grau, schwarze Linien, Strudel-Orange als Fläche, fließende Bänder der App als Linien.
   Archivo über die Breitenachse: breite Versalien für Titel, normale Breite für Text. */

@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #E4E6EA;
  --paper-2: #D5D9DF;
  --ink: #0B0A10;
  --ink-2: #3A3846;
  --spot: #FF7A1F;
  --plate: #050308;
  --on-plate: #F3EDE6;
  --on-plate-2: #B9B2C4;
  --mag: #D23A78; --gold: #FFE0A0; --cyan: #2FC6D8; --blue: #3A4DD8;
  --rule: 2px;
  --gut: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --sec-y: clamp(64px, 9vw, 128px);
  --h1: clamp(34px, 4.6vw, 76px);
  --h2: clamp(28px, 3.4vw, 54px);
  --body: clamp(16px, 1.15vw, 18px);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%; font-size: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { min-height: 100vh; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--spot); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typografie */
h1, h2, .caps { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: 1.05rem; font-stretch: 112%; font-weight: 750; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
p { max-width: 62ch; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); max-width: 36ch; font-stretch: 96%; }
.label { font-size: 11.5px; font-weight: 700; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; color: var(--ink-2); }

/* Fließendes Band aus der App, als Linie des Datenblatts */
.band { height: var(--rule); background: linear-gradient(90deg, var(--spot), var(--mag) 18%, var(--gold) 34%, var(--cyan) 52%, var(--blue) 68%, var(--mag) 84%, var(--spot)); background-size: 200% 100%; animation: flow 16s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }

/* Kopf */
.head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 0 12px; font-size: 12px; font-weight: 600; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.head .id { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.head .id img { width: 28px; height: 28px; }
.head .doc { justify-self: center; color: var(--ink-2); font-weight: 500; }
.head nav { display: flex; gap: 22px; }
.head nav a { text-decoration: none; padding: 4px 0; }
.head nav a:hover { text-decoration: underline; }

/* Einstieg */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); padding: clamp(20px, 3vw, 44px) 0; min-height: calc(100svh - 160px); }
.hero .copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hero .lede { margin-top: 22px; }
.act { display: grid; gap: 10px; max-width: 540px; }
.btn { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--spot); color: var(--ink); border: var(--rule) solid var(--ink); text-decoration: none; font-weight: 750; font-stretch: 118%; text-transform: uppercase; letter-spacing: .02em; font-size: 16px; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--spot); }
.btn svg { width: 20px; height: 20px; flex: none; }
.copy-cmd { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px 12px 20px; border: var(--rule) solid currentColor; background: transparent; color: inherit; font: 500 13px/1.3 var(--mono); cursor: pointer; text-align: left; transition: background .15s, color .15s; flex-wrap: wrap; row-gap: 10px; }
.copy-cmd code { font: inherit; white-space: nowrap; }
.copy-cmd .k { font: 700 11px/1 "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; border-left: var(--rule) solid currentColor; padding: 4px 0 4px 12px; white-space: nowrap; }
.copy-cmd:hover { background: var(--ink); color: var(--paper); }

/* Bildplatten */
.fig { display: grid; grid-template-rows: 1fr auto; border: var(--rule) solid var(--ink); background: var(--plate); min-width: 0; }
.fig picture, .fig > img { display: block; }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 10px 14px; background: var(--paper); border-top: var(--rule) solid var(--ink); font-size: 13px; line-height: 1.4; }
.cap b { font-stretch: 118%; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding-top: 1px; }
.plate { position: relative; overflow: hidden; min-height: 420px; }
.plate > img, .plate > picture, .plate picture img, .plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate.is-live > img, .plate.is-live > picture { visibility: hidden; }
.anno { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.anno text { font: 600 20px "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; fill: var(--on-plate); }
.anno polyline, .anno circle { stroke: var(--on-plate); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.hero .cap { grid-template-columns: auto 1fr auto; }
.hero .cap .hint { color: var(--ink-2); }

/* Spezifikation */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec div { padding: 12px 16px 16px 0; border-right: 1px solid var(--ink); margin-right: 16px; }
.spec div:last-child { border-right: 0; }
.spec dt { color: var(--ink-2); }
.spec dd { margin-top: 6px; font-size: 15px; font-weight: 600; }
.spec-note { padding: 0 0 18px; }

/* Abschnitte */
section { padding: var(--sec-y) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { color: var(--ink-2); }

.dark { background: var(--plate); color: var(--on-plate); }
.dark .sec-head p, .dark p { color: var(--on-plate-2); }
.dark .fig { border-color: var(--on-plate-2); }
.dark .cap { background: var(--plate); color: var(--on-plate); border-top-color: var(--on-plate-2); }
.dark :focus-visible { outline-color: var(--spot); }

.spot { background: var(--spot); color: var(--ink); }
.spot .sec-head p, .spot p { color: var(--ink); }
.tint { background: var(--paper-2); }

/* Physik */
.phys { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); }
.phys .text { display: grid; gap: 18px; align-content: start; }
.truth { margin-top: 18px; border-top: var(--rule) solid var(--on-plate-2); }
.truth div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #3a3446; }
.truth dt { color: var(--on-plate); }
.truth dt.art { color: var(--spot); }
.truth dd { color: var(--on-plate-2); }
.phys .figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phys .figs .fig:first-child { grid-column: 1 / -1; }
.phys .figs .fig:first-child img { aspect-ratio: 10 / 6; }
.phys .figs .fig img { aspect-ratio: 13 / 10; }

/* Voreinstellungen */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; }
.presets li:first-child { grid-column: 1 / -1; }
.presets img { aspect-ratio: 43 / 18; }

/* Objekte */
.objects { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gut); align-items: start; }
.objects .fig { border-color: var(--ink); }
.objects .main-fig img { aspect-ratio: 3000 / 1440; }
.kinds { list-style: none; border-top: var(--rule) solid var(--ink); }
.kinds li { padding: 11px 0; border-bottom: 1px solid var(--ink); font-weight: 550; display: grid; grid-template-columns: 2.4em 1fr; }
.kinds li span { font-variant-numeric: tabular-nums; font-weight: 700; font-stretch: 112%; font-size: 12px; padding-top: 3px; }
.obj-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.obj-row img { aspect-ratio: 1720 / 720; }
.objects .notes { margin-top: 22px; display: grid; gap: 10px; }
.objects .notes .fine { color: var(--ink); }

/* Mac */
.mac { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gut); align-items: start; }
.facts { list-style: none; border-top: var(--rule) solid var(--ink); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.facts svg { width: 22px; height: 22px; margin-top: 2px; }
.chart { border: var(--rule) solid var(--ink); background: var(--paper); }
.chart .body { padding: 22px 20px 16px; display: grid; gap: 22px; }
.bar { display: grid; gap: 8px; }
.bar .lbl { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.bar .track { position: relative; height: 28px; border-left: var(--rule) solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), rgba(11,10,16,.25) calc(33.333% - 1px) 33.333%); }
.bar .range { position: absolute; top: 4px; bottom: 4px; background: var(--ink); }
.bar .range.hot { background: var(--spot); border: var(--rule) solid var(--ink); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); padding-left: 0; }

/* Film */
.film .fig { border-color: var(--on-plate-2); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.film .player { position: relative; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.play span { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--spot); border: var(--rule) solid var(--ink); font: 750 15px "Archivo", sans-serif; font-stretch: 118%; text-transform: uppercase; letter-spacing: .02em; }
.play svg { width: 16px; height: 16px; }
.play[hidden] { display: none; }

/* Installieren */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.path { border-top: var(--rule) solid var(--ink); padding-top: 18px; }
.path h3 { margin-bottom: 18px; }
.steps { list-style: none; position: relative; display: grid; gap: 22px; padding-left: 52px; }
.steps::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: var(--rule); background: var(--ink); }
.steps li { position: relative; overflow-wrap: anywhere; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -52px; top: -4px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); border: var(--rule) solid var(--ink); font-weight: 800; font-stretch: 118%; font-variant-numeric: tabular-nums; }
.steps { counter-reset: step; }
.steps li.warn::before { background: var(--spot); }
.steps .btn { margin-top: 12px; max-width: 420px; }
.steps .copy-cmd { margin-top: 12px; }

/* Fragen */
.faq { border-top: var(--rule) solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }
.faq summary:hover { text-decoration: underline; }

/* Fuß */
.foot { background: var(--ink); color: var(--paper); padding: 28px 0 36px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot .wrap > :last-child { margin-left: auto; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 22px; }

/* Tablet */
@media (max-width: 1100px) {
  .head .doc { display: none; }
  .head { grid-template-columns: auto 1fr; }
  .head nav { justify-self: end; gap: 16px; }
  .objects { grid-template-columns: 1fr; }
  .mac { grid-template-columns: 1fr; }
}

/* Handy */
@media (max-width: 860px) {
  .head nav a:not(.lang) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 18px; gap: 18px; }
  .hero .copy { display: contents; }
  .hero .copy > div:first-child { order: 1; }
  .hero .fig { order: 2; }
  .hero .act { order: 3; max-width: none; }
  .hero .lede { margin-top: 14px; }
  .plate { min-height: 0; aspect-ratio: 16 / 11; }
  .anno text { font-size: 44px; }
  .anno text, .anno polyline { display: none; }
  .anno .m1 { display: inline; }
  .hero .cap { grid-template-columns: auto 1fr; }
  .hero .cap .hint { grid-column: 2; }
  .copy-cmd { font-size: 11px; padding-left: 14px; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div:nth-child(2) { border-right: 0; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .sec-head, .phys, .install { grid-template-columns: 1fr; }
  .sec-head { gap: 16px; }
  .presets { grid-template-columns: 1fr; }
  .phys .figs { grid-template-columns: 1fr; }
  .obj-row { grid-template-columns: 1fr; }
  .truth div { grid-template-columns: 1fr; gap: 4px; }
  .foot .wrap > :last-child { margin-left: 0; }
}

/* Schmale Handys: Befehlsbox in den Schritten nutzt die volle Breite, damit keine Zeile umbricht */
@media (max-width: 480px) {
  .copy-cmd { padding-left: 12px; padding-right: 12px; }
  .steps .copy-cmd { position: relative; margin-left: -52px; width: calc(100% + 52px); background: var(--paper); }
  .steps .copy-cmd:hover { background: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band { animation: none; }
  * { transition: none !important; }
}

/* lange Wörter brechen statt seitlich scrollen */
h1, h2 { hyphens: auto; hyphenate-limit-chars: 8 3 3; -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 3; overflow-wrap: break-word; }
.motion-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); margin-top: clamp(28px, 3vw, 44px); padding-top: 14px; border-top: var(--rule) solid var(--ink); }
.motion-h { margin: 0; }
.motion { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gut); }
.motion li { padding: 11px 0; border-bottom: 1px solid var(--ink); font-weight: 500; display: grid; grid-template-columns: 1.6em 1fr; }
@media (max-width: 1099px) { .motion-row { grid-template-columns: 1fr; gap: 12px; } .motion { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .motion { grid-template-columns: 1fr; } }
.motion-row { margin-bottom: 28px; }
