/* Nachklang, Welt: „Drei Minuten vor der Welt“. Nachtgrün, Stein, Messing und das Gold des Lichtkeils 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;
}
:root {
  --nacht: #0c2223; --tief: #081819; --moos: #1d3634; --stein: #c8beac; --creme: #f2ead6;
  --gold: #f4cd88; --gold-tief: #e2ad63; --messing: #94703c;
  --sans: "Archivo NK", Arial, sans-serif; --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--nacht); color: var(--creme); 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: #f4cd88; --nk-leiste-spur: rgba(242, 234, 214, .22); --nk-leiste-grund: rgba(8, 24, 25, .55);
  --nk-leiste-knopf: #f4cd88; --nk-leiste-knopf-farbe: #0c2223; --nk-leiste-schrift: "Archivo NK", Arial, sans-serif; --nk-leiste-hoehe: 3px;
}
/* Druckkorn wie auf dem Cover */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); 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; }

/* Der Titel wie auf dem Cover: oben fett, darunter leicht */
.titel { margin: 0; color: var(--creme); line-height: .92; letter-spacing: -.02em; font-weight: 400; }
.titel__oben, .titel__unten { display: block; white-space: nowrap; }
.titel__oben { font-weight: 800; font-stretch: 88%; font-size: min(calc(88px * var(--k)), 11.6vw, 12vh); letter-spacing: -.028em; }
.titel__unten { font-weight: 300; font-stretch: 96%; font-size: min(calc(76px * var(--k)), 10vw, 10.4vh); margin-top: .1em; letter-spacing: -.01em; }

/* Plakat: unten rechts wie auf dem Cover */
.plakat {
  position: fixed; z-index: 3; right: calc(56px * var(--k)); bottom: calc(46px * var(--k));
  display: flex; flex-direction: column; align-items: flex-start; transition: opacity .9s linear;
  text-shadow: 0 2px 18px rgba(8, 24, 25, .55);
}
.plakat__text { margin: calc(20px * var(--k)) 0 0; font: 500 calc(17px * var(--k))/1.35 var(--sans); color: var(--stein); }
.los {
  margin-top: calc(18px * var(--k)); border: 0; border-radius: 999px; padding: calc(14px * var(--k)) calc(34px * var(--k)); cursor: pointer;
  background: var(--gold); color: var(--nacht); font: 800 calc(19px * var(--k))/1 var(--sans); letter-spacing: .01em; text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255, 236, 196, .35), 0 8px 28px rgba(244, 205, 136, .28);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.los:hover { transform: translateY(-2px); background: #f8d99c; box-shadow: 0 0 0 1px rgba(255, 236, 196, .5), 0 10px 34px rgba(244, 205, 136, .4); }
body:not([data-phase="warten"]) .plakat { opacity: 0; pointer-events: none; }

/* Standpunkte */
.standpunkte {
  position: fixed; z-index: 3; left: 50%; bottom: calc(16px * var(--k)); translate: -50% 0; display: flex; gap: calc(4px * var(--k));
  padding: 5px; border-radius: 999px; background: rgba(8, 24, 25, .72); box-shadow: 0 0 0 1px rgba(242, 234, 214, .08);
}
.standpunkte button {
  border: 0; border-radius: 999px; padding: calc(8px * var(--k)) calc(15px * var(--k)); cursor: pointer; background: none; color: var(--stein);
  font: 650 calc(14px * var(--k))/1 var(--sans); white-space: nowrap;
}
.standpunkte button[aria-pressed="true"] { background: var(--gold); color: var(--nacht); }
.standpunkte button:hover { background: rgba(244, 205, 136, .16); }
.standpunkte button[aria-pressed="true"]:hover { background: var(--gold); }
.hinweis {
  position: fixed; z-index: 4; left: 50%; bottom: calc(76px * var(--k)); translate: -50% 0; margin: 0; max-width: calc(100vw - 32px); width: max-content;
  padding: 9px 16px; border-radius: 999px; background: var(--creme); color: var(--nacht); text-align: center;
  font: 600 calc(14px * var(--k))/1.35 var(--sans); opacity: 0; transition: opacity .6s linear; pointer-events: none;
}
.hinweis.an { opacity: 1; }

/* Ende: der Titel kehrt an seinen Platz zurück, darunter ein Weg */
.ende {
  position: fixed; z-index: 3; right: calc(56px * var(--k)); bottom: calc(92px * var(--k)); display: flex; flex-direction: column; align-items: flex-start;
  pointer-events: none; animation: ende 3.5s linear both; text-shadow: 0 2px 18px rgba(8, 24, 25, .55);
}
.ende > * { pointer-events: auto; }
@keyframes ende { from { opacity: 0; } to { opacity: 1; } }
.ende__weg {
  display: inline-block; margin-top: calc(24px * var(--k)); border-radius: 999px; padding: calc(13px * var(--k)) calc(28px * var(--k));
  text-decoration: none; background: var(--gold); color: var(--nacht); font: 800 calc(17px * var(--k))/1 var(--sans); text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255, 236, 196, .35), 0 8px 28px rgba(244, 205, 136, .25);
}
.ende__weg:hover { transform: translateY(-2px); }

.ohne-gl, .ohne-js {
  position: fixed; inset: auto 16px 16px; z-index: 20; margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--tief); color: var(--creme);
  font: 600 15px/1.4 var(--sans);
}
.ohne-gl p { margin: 0; }
.ohne-gl .ende__weg { margin-top: 12px; box-shadow: none; }
.ohne-js a { color: var(--creme); }

/* Hochformat: der Titel steht unten, das Bild darüber */
@media (max-aspect-ratio: 9/10) {
  .plakat, .ende { left: 20px; right: 20px; align-items: flex-start; }
  .plakat { bottom: calc(30px + env(safe-area-inset-bottom)); }
  .ende { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .titel__oben { font-size: min(13.4vw, 64px); }
  .titel__unten { font-size: min(11.6vw, 56px); }
}
@media (max-width: 560px) {
  .standpunkte { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .standpunkte button { padding: 8px 10px; font-size: 12.5px; }
  .hinweis { bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 13px; }
  .plakat__text { font-size: 14px; }
  .los { font-size: 17px; padding: 13px 28px; }
}

/* Info-Fenster (ⓘ in der Leiste): ein Stück vom steinernen Zifferblatt, am linken Rand die Minutenstriche,
   einer je Zeile und jeder fünfte länger; Schrift im Nachtgrün der Welt, der Titel fett wie auf dem Cover. */
body {
  --nk-info-grund: #d8d1c1; --nk-info-farbe: #0c2223; --nk-info-leise: #3f4b46; --nk-info-linie: rgba(12, 34, 35, .12);
  --nk-info-akzent: #0c2223; --nk-info-schrift: "Archivo NK", Arial, sans-serif; --nk-info-schleier: rgba(8, 24, 25, .45);
  --nk-info-titel-groesse: 40px; --nk-info-titel-zeilen: 1.5; --nk-info-titel-max: 10.5vw;
  --nk-info-titel-breite: 88%; --nk-info-titel-gewicht: 800; --nk-info-einzug: 48px;
  --nk-info-muster:
    linear-gradient(to right, transparent 24px, #d8d1c1 24px),
    repeating-linear-gradient(to bottom, transparent 0 12px, rgba(12, 34, 35, .8) 12px 16px, transparent 16px 140px),
    linear-gradient(to right, transparent 14px, #d8d1c1 14px),
    repeating-linear-gradient(to bottom, transparent 0 13px, rgba(12, 34, 35, .55) 13px 15px, transparent 15px 28px);
  --nk-info-muster-lage: 0 0, 0 0, 0 0, 0 0;
}
