/* Nachklang, Welt: „Die letzte Seite“. Nachtpark in Grün und Nebel, der Weg aus Papier, Laub und Laternenlicht wie auf dem Cover. */
@font-face {
  font-family: "Garamond NK"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/assets/fonts/eb-garamond-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/assets/fonts/eb-garamond-latin-ext-wght-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: "Garamond NK"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/assets/fonts/eb-garamond-latin-wght-normal.woff2) format("woff2-variations"), url(/assets/fonts/eb-garamond-latin-wght-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: "Garamond NK"; font-style: italic; font-display: swap; font-weight: 400 800;
  src: url(/assets/fonts/eb-garamond-latin-wght-italic.woff2) format("woff2-variations"), url(/assets/fonts/eb-garamond-latin-wght-italic.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: #151e1b; --gruen: #1d3a31; --tinte: #17302a; --creme: #f3ead6; --papier: #efe4cc; --laub: #c46e30;
  --serif: "Garamond NK", "EB Garamond", Garamond, Georgia, serif; --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--nacht); color: var(--creme); font-family: var(--serif);
  -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: #f3ead6; --nk-leiste-spur: rgba(243, 234, 214, .24); --nk-leiste-grund: rgba(16, 24, 21, .5);
  --nk-leiste-knopf: #f3ead6; --nk-leiste-knopf-farbe: #1d3a31; --nk-leiste-schrift: "Garamond NK", Georgia, serif; --nk-leiste-hoehe: 2px;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--laub); 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: pointer; }
/* ein weicher Rand um das Bild, wie gemalt */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 55%, rgba(8, 14, 12, 0) 55%, rgba(8, 14, 12, .5) 100%);
}

/* der Titel liegt auf dem Papier: Lage und Größe setzt das Skript */
.titel {
  position: fixed; z-index: 2; left: 0; top: 0; margin: 0; display: grid; justify-items: center; pointer-events: none;
  color: var(--gruen); line-height: .9; text-align: center; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 1.6s linear; transform-origin: 0 0;
}
.titel.an { opacity: 1; }
.titel__a { font-style: italic; font-weight: 560; letter-spacing: -.01em; }
.titel__b { font-size: 1.36em; font-weight: 700; letter-spacing: -.012em; }

.plakat {
  position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 16px calc(30px * var(--k));
  display: flex; align-items: center; justify-content: center; gap: calc(16px * var(--k)); flex-wrap: wrap; transition: opacity .9s linear;
}
.plakat__text {
  margin: 0; padding: .38em .95em; border-radius: 999px; background: rgba(243, 234, 214, .88); color: var(--gruen);
  font: 500 calc(17px * var(--k))/1.3 var(--serif);
}
.los {
  border: 0; border-radius: 999px; padding: calc(12px * var(--k)) calc(30px * var(--k)); cursor: pointer;
  background: var(--gruen); color: var(--creme); font: italic 600 calc(20px * var(--k))/1 var(--serif); letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .15s;
}
.los:hover { transform: translateY(-2px); }
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(6px * var(--k));
  padding: 5px; border-radius: 999px; background: rgba(16, 24, 21, .72);
}
.standpunkte button {
  border: 0; border-radius: 999px; padding: calc(8px * var(--k)) calc(16px * var(--k)); cursor: pointer; background: none; color: var(--creme);
  font: 500 calc(16px * var(--k))/1 var(--serif); white-space: nowrap;
}
.standpunkte button[aria-pressed="true"] { background: var(--papier); color: var(--gruen); }
.standpunkte button:hover { background: rgba(243, 234, 214, .14); }
.standpunkte button[aria-pressed="true"]:hover { background: var(--papier); }
.hinweis {
  position: fixed; z-index: 4; left: 50%; bottom: calc(74px * var(--k)); translate: -50% 0; margin: 0; max-width: calc(100vw - 32px); width: max-content;
  padding: 8px 16px; border-radius: 999px; background: rgba(243, 234, 214, .92); color: var(--gruen); text-align: center;
  font: italic 500 calc(16px * var(--k))/1.35 var(--serif); opacity: 0; transition: opacity .6s linear; pointer-events: none;
}
.hinweis.an { opacity: 1; }

/* Ende: der Titel im Morgenhimmel, darunter ein Weg zurück */
.ende {
  position: fixed; z-index: 3; left: 0; right: 0; top: calc(64px + 5vh); display: grid; justify-items: center; gap: calc(18px * var(--k));
  padding: 0 16px; pointer-events: none; animation: ende 3s linear both;
}
.ende > * { pointer-events: auto; }
@keyframes ende { from { opacity: 0; } to { opacity: 1; } }
.ende__titel {
  margin: 0; color: var(--creme); font: italic 560 calc(46px * var(--k))/1 var(--serif); letter-spacing: -.01em; text-align: center;
  text-shadow: 0 2px 22px rgba(10, 16, 14, .55); pointer-events: none;
}
.ende__weg {
  display: inline-block; border-radius: 999px; padding: calc(12px * var(--k)) calc(28px * var(--k));
  text-decoration: none; background: var(--creme); color: var(--gruen); font: 600 calc(18px * var(--k))/1 var(--serif);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

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

@media (max-width: 560px) {
  .standpunkte button { padding: 8px 14px; font-size: 15px; }
  .hinweis { bottom: 118px; font-size: 15px; }
  .plakat__text { font-size: 15px; }
  .ende__titel { font-size: 38px; }
}

/* Info-Fenster (ⓘ in der Leiste): eine Seite vom Papierweg, Tinte dunkelgrün wie der Titel auf dem Cover;
   unten rechts rollt sich die Ecke auf, darunter die Nacht, wie vorn auf dem Weg. */
body {
  --nk-info-grund: #efe4cc; --nk-info-farbe: #17302a; --nk-info-leise: #465a4f; --nk-info-linie: rgba(23, 48, 42, .1);
  --nk-info-akzent: #1d3a31; --nk-info-schrift: "Garamond NK", Georgia, serif; --nk-info-schleier: rgba(8, 14, 12, .45);
  --nk-info-titel-groesse: 58px; --nk-info-titel-zeilen: 2; --nk-info-titel-max: 14vw; --nk-info-titel-gewicht: 600;
}
.nk-info::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: 2; width: 42px; height: 42px; pointer-events: none;
  background: linear-gradient(to bottom right, #e3d6b9 0, #cdbe9b 50%, transparent 50%),
    linear-gradient(to top left, #18221e 50%, transparent 50%);
}
@media (max-width: 600px) { .nk-info::after { width: 34px; height: 34px; } }
.nk-info__titel { color: #1d3a31; letter-spacing: -.01em; }
