/* Nachklang, Welt: „Du hörst schön“. Karmin, Rosa, Orange, Pfirsich und Creme wie auf dem Cover, dazu eine Handschrift. */
@font-face {
  font-family: "Kalam NK"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/assets/fonts/kalam-latin-400-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 {
  --tief: #2b1218; --wein: #6b2331; --creme: #fbe5c7; --rot: #c03b34; --rosa: #f0a7a0; --pfirsich: #f7b48b;
  --hand: "Kalam NK", "Segoe Print", "Comic Sans MS", cursive; --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #3a1820; color: var(--creme); font-family: var(--hand);
  -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: #fbe5c7; --nk-leiste-spur: rgba(251, 229, 199, .26); --nk-leiste-grund: rgba(43, 18, 24, .42);
  --nk-leiste-knopf: #fbe5c7; --nk-leiste-knopf-farbe: #6b2331; --nk-leiste-schrift: "Kalam NK", Arial, sans-serif; --nk-leiste-hoehe: 3px;
}
/* Malgrund: feines Korn über allem, wie auf dem Cover */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .075; 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(--creme); 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; }

/* der Titel aus dem Cover, in der warmen Lücke; Lage und Breite setzt das Skript */
.titel {
  position: fixed; z-index: 2; left: 50%; top: 44%; width: min(58vw, 420px); margin: 0; line-height: 0;
  translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity 1.8s linear;
}
.titel img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 14px rgba(80, 18, 28, .28)); }
.titel.an { opacity: 1; }

.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(14px * var(--k)); flex-wrap: wrap; transition: opacity .9s linear;
}
.plakat__text {
  margin: 0; padding: .45em 1.05em .35em; border-radius: 999px; background: rgba(43, 18, 24, .62); color: var(--creme);
  font: 400 calc(18px * var(--k))/1.3 var(--hand);
}
.los {
  border: 0; border-radius: 999px; padding: calc(13px * var(--k)) calc(30px * var(--k)) calc(10px * var(--k)); cursor: pointer;
  background: var(--creme); color: var(--wein); font: 400 calc(22px * var(--k))/1 var(--hand); letter-spacing: .01em;
  box-shadow: 0 6px 22px rgba(43, 18, 24, .38); transition: transform .15s, box-shadow .15s;
}
.los:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(43, 18, 24, .42); }
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(43, 18, 24, .7);
}
.standpunkte button {
  border: 0; border-radius: 999px; padding: calc(8px * var(--k)) calc(15px * var(--k)) calc(6px * var(--k)); cursor: pointer; background: none;
  color: var(--creme); font: 400 calc(16px * var(--k))/1 var(--hand); white-space: nowrap;
}
.standpunkte button[aria-pressed="true"] { background: var(--creme); color: var(--wein); }
.standpunkte button:hover { background: rgba(251, 229, 199, .16); }
.standpunkte button[aria-pressed="true"]:hover { background: var(--creme); }
.hinweis {
  position: fixed; z-index: 4; left: 50%; bottom: calc(78px * var(--k)); translate: -50% 0; margin: 0; max-width: calc(100vw - 32px); width: max-content;
  padding: 9px 18px 7px; border-radius: 999px; background: var(--creme); color: var(--wein); text-align: center;
  font: 400 calc(17px * var(--k))/1.3 var(--hand); opacity: 0; transition: opacity .6s linear; pointer-events: none;
}
.hinweis.an { opacity: 1; }

/* Ende: der Titel steht wieder in der Lücke, darunter der Weg zurück */
.ende {
  position: fixed; z-index: 3; left: 0; right: 0; bottom: calc(84px * var(--k)); padding: 0 16px; display: flex; justify-content: center;
  pointer-events: none; animation: ende 3s linear both;
}
.ende > * { pointer-events: auto; }
@keyframes ende { from { opacity: 0; } to { opacity: 1; } }
.ende__weg {
  display: inline-block; border-radius: 999px; padding: calc(12px * var(--k)) calc(28px * var(--k)) calc(9px * var(--k));
  text-decoration: none; background: var(--creme); color: var(--wein); font: 400 calc(20px * var(--k))/1 var(--hand);
  box-shadow: 0 6px 22px rgba(43, 18, 24, .38);
}
.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: 14px; background: var(--tief); color: var(--creme);
  font: 400 17px/1.4 var(--hand);
}
.ohne-gl p { margin: 0; }
.ohne-gl .ende__weg { margin-top: 12px; box-shadow: none; }
.ohne-js a { color: var(--creme); }
body.ohne-bild .titel { opacity: 1; }

@media (max-width: 560px) {
  .standpunkte button { padding: 8px 10px 6px; font-size: 14.5px; }
  .hinweis { bottom: 118px; }
  .plakat { padding-bottom: 26px; }
  .plakat__text { font-size: 15.5px; }
  .ende { bottom: 80px; }
}

/* Info-Fenster (ⓘ in der Leiste): die warme, helle Mitte aus dem Cover; von links und rechts streicht ein
   weicher Schimmer in Karmin und Pfirsich herein wie die beiden Stimmen; alles in der Handschrift der Welt. */
body {
  --nk-info-grund: #fbe5c7; --nk-info-farbe: #2b1218; --nk-info-leise: #6b2331; --nk-info-linie: rgba(107, 35, 49, .14);
  --nk-info-akzent: #a8322c; --nk-info-schrift: "Kalam NK", "Segoe Print", "Comic Sans MS", cursive; --nk-info-schleier: rgba(43, 18, 24, .45);
  --nk-info-titel-groesse: 56px; --nk-info-titel-zeilen: 3; --nk-info-titel-max: 50px; --nk-info-titel-gewicht: 400;
}
/* die Handschrift gibt es nur in einer Stärke, darum nichts künstlich fetten; contain hält gescrollten Text im Blatt */
.nk-info {
  font-synthesis: none; contain: paint;
  background: linear-gradient(to right, rgba(192, 59, 52, .5), rgba(240, 167, 160, .28) 12px, transparent 28px),
    linear-gradient(to left, rgba(247, 180, 139, .8), rgba(247, 180, 139, .3) 12px, transparent 28px), var(--nk-info-grund);
}
/* das ✕ liegt auf dem Randdetail: sein Grund läuft weich aus, statt einen harten Kreis hineinzustanzen */
.nk-info__zu { background: radial-gradient(closest-side, var(--grund) 58%, transparent); }
