/* Nachklang, Welt: „Befund: Unauffällig“. Formularweiß, Tintenblau, Formularblau und das Rot des Stempels wie auf dem Cover. */
@font-face {
  font-family: "Archivo NK"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo NK"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  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: "Plex Mono NK"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
}
:root {
  --papier: #eef1f2; --tinte: #17324f; --form: #5b92bf; --hell: #9cc0d8; --rot: #c42828;
  --sans: "Archivo NK", Arial, sans-serif; --mono: "Plex Mono NK", "Courier New", monospace; --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--papier); color: var(--tinte); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; touch-action: none;
  /* Leiste und ✕ (aus /assets/welt/leiste.js) teilen sich die Farben */
  --nk-leiste-farbe: #17324f; --nk-leiste-spur: rgba(23, 50, 79, .2); --nk-leiste-grund: rgba(238, 241, 242, .78);
  --nk-leiste-knopf: #17324f; --nk-leiste-knopf-farbe: #eef1f2; --nk-leiste-schrift: "Plex Mono NK", "Courier New", monospace; --nk-leiste-hoehe: 2px;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.raum { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
body.z-zieht .raum { cursor: grabbing; }
body.z-ziel .raum { cursor: crosshair; }

/* Plakat: „Befund:“ steht oben links wie getippt, das Etikett hängt im Raum */
.plakat { position: fixed; z-index: 3; inset: 0; pointer-events: none; transition: opacity .9s linear; }
.plakat > * { pointer-events: auto; }
.plakat__titel {
  position: absolute; left: max(16px, 6vw); top: max(64px, 12vh); margin: 0;
  font: 500 min(calc(58px * var(--k)), 9vw)/1 var(--mono); letter-spacing: .2em; color: var(--tinte); text-transform: uppercase;
}
.plakat__zeile {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px calc(30px * var(--k));
  display: flex; align-items: center; justify-content: center; gap: calc(20px * var(--k)); flex-wrap: wrap;
}
.plakat__text {
  margin: 0; padding: .45em .8em; background: rgba(238, 241, 242, .86); border-bottom: 1px solid var(--form);
  font: 500 calc(15px * var(--k))/1.35 var(--mono); letter-spacing: .02em;
}
.los {
  border: 1.5px solid var(--tinte); border-radius: 2px; padding: calc(13px * var(--k)) calc(30px * var(--k)) calc(13px * var(--k)) calc(24px * var(--k));
  cursor: pointer; background: var(--tinte); color: var(--papier);
  font: 500 calc(18px * var(--k))/1 var(--mono); letter-spacing: .08em; display: inline-flex; align-items: center; gap: .7em;
  box-shadow: 0 5px 0 rgba(23, 50, 79, .18); transition: transform .15s, box-shadow .15s;
}
.los::before { content: ""; width: .72em; height: .72em; border: 1.5px solid currentColor; }
.los:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(23, 50, 79, .18); }
.los:hover::before { background: linear-gradient(45deg, transparent 44%, currentColor 45% 55%, transparent 56%), linear-gradient(-45deg, transparent 44%, currentColor 45% 55%, transparent 56%); }
body:not([data-phase="warten"]) .plakat { opacity: 0; pointer-events: none; }
body:not([data-phase="warten"]) .plakat > * { pointer-events: none; }

/* Standpunkte als Ankreuzfelder */
.standpunkte {
  position: fixed; z-index: 3; left: 50%; bottom: calc(16px * var(--k)); translate: -50% 0; display: flex; gap: 2px;
  padding: 4px; background: rgba(238, 241, 242, .9); border: 1px solid rgba(91, 146, 191, .7);
}
.standpunkte button {
  border: 0; border-radius: 1px; padding: calc(8px * var(--k)) calc(13px * var(--k)); cursor: pointer; background: none; color: var(--tinte);
  font: 500 calc(13.5px * var(--k))/1 var(--mono); white-space: nowrap; display: inline-flex; align-items: center; gap: .55em;
}
.standpunkte button::before { content: ""; width: .8em; height: .8em; border: 1.2px solid var(--form); flex: none; }
.standpunkte button[aria-pressed="true"]::before {
  border-color: var(--tinte);
  background: linear-gradient(45deg, transparent 42%, var(--tinte) 43% 57%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--tinte) 43% 57%, transparent 58%);
}
.standpunkte button:hover { background: rgba(91, 146, 191, .14); }
.hinweis {
  position: fixed; z-index: 4; left: 50%; bottom: calc(70px * var(--k)); translate: -50% 0; margin: 0; max-width: calc(100vw - 32px); width: max-content;
  padding: 9px 14px; background: var(--papier); border: 1px solid var(--tinte); color: var(--tinte); text-align: center;
  font: 500 calc(13.5px * var(--k))/1.4 var(--mono); opacity: 0; transition: opacity .6s linear; pointer-events: none;
}
.hinweis.an { opacity: 1; }

/* Ende: der Titel wie auf dem Cover, darunter ein Weg zurück */
.ende {
  position: fixed; z-index: 3; left: 0; right: 0; top: calc(84px * var(--k)); padding: 0 16px; display: flex; flex-direction: column; align-items: center;
  text-align: center; pointer-events: none; animation: ende 3s linear both;
}
.ende > * { pointer-events: auto; }
@keyframes ende { from { opacity: 0; } to { opacity: 1; } }
.ende__titel { margin: 0; display: flex; flex-direction: column; align-items: center; gap: calc(14px * var(--k)); }
.ende__befund { font: 500 min(calc(30px * var(--k)), 6.5vw)/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--tinte); }
.ende__stempel {
  display: inline-block; padding: .06em .22em .02em; border: min(calc(5px * var(--k)), 1vw) solid var(--rot); color: var(--rot);
  font: 820 min(calc(84px * var(--k)), 13.5vw)/1 var(--sans); font-stretch: 68%; letter-spacing: .01em; text-transform: uppercase;
  rotate: -1.5deg; background: rgba(238, 241, 242, .82);
  -webkit-mask-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='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-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='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ende__weg {
  display: inline-block; margin-top: calc(24px * var(--k)); border-radius: 2px; padding: calc(13px * var(--k)) calc(26px * var(--k));
  text-decoration: none; background: var(--tinte); color: var(--papier); font: 500 calc(16px * var(--k))/1 var(--mono); letter-spacing: .06em;
  box-shadow: 0 5px 0 rgba(23, 50, 79, .18);
}
.ende__weg:hover { transform: translateY(-2px); }

.ohne-gl, .ohne-js {
  position: fixed; inset: auto 16px 16px; z-index: 20; margin: 0; padding: 16px 18px; background: var(--papier); border: 1px solid var(--tinte); color: var(--tinte);
  font: 500 15px/1.45 var(--mono);
}
.ohne-gl p { margin: 0; }
.ohne-gl .ende__weg { margin-top: 12px; box-shadow: none; }
.ohne-js a { color: var(--tinte); }

@media (max-width: 560px) {
  .standpunkte button { padding: 8px 9px; font-size: 12px; gap: .45em; }
  .hinweis { bottom: 64px; font-size: 12.5px; }
  .plakat__zeile { padding-bottom: 26px; gap: 14px; }
  .plakat__text { font-size: 13px; }
  .plakat__titel { top: 70px; }
}

/* Info-Fenster (ⓘ in der Leiste): ein weiteres Blatt aus Lenas Akte, Formularweiß mit blauen Formularlinien;
   der Titel getippt wie „Befund:“ auf dem Cover, die Punkte als leere Ankreuzkästchen wie bei den Standpunkten. */
body {
  --nk-info-grund: #eef1f2; --nk-info-farbe: #17324f; --nk-info-leise: #2a5279; --nk-info-linie: rgba(91, 146, 191, .22);
  --nk-info-akzent: #17324f; --nk-info-schrift: "Archivo NK", Arial, sans-serif; --nk-info-schleier: rgba(23, 50, 79, .34);
  --nk-info-titel-groesse: 34px; --nk-info-titel-zeilen: 2; --nk-info-titel-max: 9vw; --nk-info-titel-gewicht: 500;
  --nk-info-muster: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(91, 146, 191, .34) 27px 28px);
  --nk-info-muster-lage: 0 -5px;
}
.nk-info__titel { font-family: "Plex Mono NK", "Courier New", monospace; text-transform: uppercase; letter-spacing: .18em; }
.nk-info__wissen li::before {
  left: 0; top: calc(var(--zeile) / 2 - 6px); width: 11px; height: 11px; border-radius: 0; background: none; border: 1.3px solid #5b92bf;
}
