/* =========================================================
   ROCKolymp – Stylesheet
   Farben laut Styleguide: Schwarz, Weiß, Gelb #FFD300,
   Rot #C1121F (sparsam), Grau #444444 / #888888
   ========================================================= */

@font-face { font-family: "Rubik Dirt"; src: url("../fonts/rubik-dirt-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("../fonts/special-elite-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffd300;
  --red: #c1121f;
  --grey: #444444;
  --grey-light: #888888;
  --ink: #0d0d0d;
  --panel: #141414;
  --paper: #f4efe2;
  --text: #ece8df;
  --text-dim: #b9b4aa;
  --font-head: "Rubik Dirt", "Oswald", Impact, "Arial Black", sans-serif;
  --font-ui: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;
  --font-type: "Special Elite", "Courier New", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --header-h: 64px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 211, 0, .06), transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(193, 18, 31, .05), transparent 50%);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--yellow); text-underline-offset: .18em; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
kbd { font: 600 .85em var(--font-ui); background: #222; border: 1px solid var(--grey); border-bottom-width: 3px; border-radius: 4px; padding: 0 .4em; color: var(--white); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--yellow); color: var(--black); padding: 10px 16px; font: 700 1rem var(--font-ui); border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--yellow); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.linklike:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: .55em 1.15em;
  font: 700 1rem/1.2 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--yellow); border-radius: var(--radius);
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--yellow); color: var(--black); box-shadow: 3px 3px 0 var(--black), 3px 3px 0 1px var(--yellow); }
.btn--primary:hover { background: var(--white); border-color: var(--white); color: var(--black); transform: translateY(-1px); }
.btn--ghost { background: rgba(0, 0, 0, .55); color: var(--white); }
.btn--ghost:hover { background: var(--yellow); color: var(--black); }
.btn--consent { background: var(--panel); color: var(--white); flex: 1 1 0; min-width: 9em; }
.btn--consent:hover { background: var(--yellow); color: var(--black); }
.btn--rockon { background: var(--black); color: var(--yellow); }
.btn--rockon[aria-pressed="true"] { background: var(--yellow); color: var(--black); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .96);
  border-bottom: 2px solid var(--yellow);
  /* bewusst kein backdrop-filter: er würde das fixierte Mobilmenü auf die Kopfzeilenhöhe beschneiden */
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo img { height: 30px; width: auto; display: block; object-fit: contain; }
.main-nav { margin-left: auto; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav__more-btn {
  display: block; padding: 10px 11px; color: var(--white); text-decoration: none;
  font: 500 .98rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer; border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav__more-btn:hover { color: var(--yellow); }
.main-nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
.main-nav__more { position: relative; }
.main-nav__more-btn::after { content: " ▾"; font-size: .8em; }
.main-nav__sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; right: 0; top: 100%; min-width: 220px;
  background: var(--ink); border: 2px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.main-nav__more-btn[aria-expanded="true"] + .main-nav__sub { display: block; }
.soon-tag { font-size: .72em; color: var(--black); background: var(--grey-light); border-radius: 3px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 58px; }
  .logo img { height: 24px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 12px;
    background: none; border: 2px solid var(--yellow); border-radius: var(--radius); color: var(--white);
    font: 700 .95rem var(--font-ui); text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--yellow); position: relative; content: ""; }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0;
    background: rgba(0, 0, 0, .97); overflow-y: auto; padding: 12px 16px 40px;
    display: none; border-top: 1px solid var(--grey);
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .main-nav__more-btn { padding: 15px 8px; font-size: 1.2rem; border-bottom: 1px solid #222; width: 100%; text-align: left; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
  .main-nav__more-btn { display: none; }
  .main-nav__sub { display: block; position: static; border: 0; box-shadow: none; padding: 0; background: none; min-width: 0; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Szenen (Kulissen mit Hotspots) ---------- */
.scene { background: var(--black); position: relative; }
.scene__stage {
  position: relative; max-width: 1664px; margin: 0 auto; aspect-ratio: 16 / 9;
  overflow: hidden; container-type: inline-size; isolation: isolate;
}
.scene__stage picture, .scene__stage img { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) {
  .scene:not(.scene--landscape-only) .scene__stage { aspect-ratio: 9 / 16; }
}
@media (min-width: 1665px) {
  .scene__stage { border-left: 1px solid #1d1d1d; border-right: 1px solid #1d1d1d; }
}

.scene__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }

.hotspot {
  position: absolute; z-index: 3; left: var(--dx); top: var(--dy);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; padding: 0;
  background: none; border: 0; color: var(--white); cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.hotspot__dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--yellow); background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 211, 0, .75);
  position: relative;
}
.hotspot__dot::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--yellow);
}
.hotspot__dot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--yellow);
  opacity: 0; animation: hotspot-pulse 2.4s ease-out infinite;
}
.hotspot__label {
  --lx: var(--dlx, -50%);
  position: absolute; left: 50%; top: calc(100% - 4px); transform: translate(var(--lx), 4px);
  white-space: nowrap; pointer-events: none;
  padding: 5px 10px; background: var(--black); color: var(--yellow);
  border: 2px solid var(--yellow); border-radius: 4px;
  font: 700 .9rem/1.1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
  opacity: 0; transition: opacity .15s ease, transform .15s ease; box-shadow: var(--shadow);
}
.hotspot__label--short { display: none; }
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label { opacity: 1; transform: translate(var(--lx), 0); }
.hotspot:hover .hotspot__dot, .hotspot:focus-visible .hotspot__dot { background: var(--yellow); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .hotspot__dot { outline: 3px solid var(--white); outline-offset: 4px; }

.hotspot--play .hotspot__dot { width: 76px; height: 76px; border-width: 4px; background: rgba(0, 0, 0, .65); }
.hotspot--play .hotspot__dot::after { inset: 0; background: none; border-radius: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--yellow); transform: translateX(4px); }
.hotspot--play:hover .hotspot__dot::after, .hotspot--play:focus-visible .hotspot__dot::after { border-left-color: var(--black); }
.hotspot--play .hotspot__label { opacity: 1; transform: translate(var(--lx), 6px); }

/* Auf Touch-Geräten: Beschriftungen immer sichtbar (kompakter) */
@media (hover: none) {
  .hotspot__label { display: none; }
  .hotspot__label--short { display: block; opacity: 1; transform: translate(var(--lx), 0); font-size: .74rem; padding: 3px 6px; border-width: 1px; }
  .hotspot__dot { width: 22px; height: 22px; }
}

@media (max-width: 767px) {
  .scene:not(.scene--landscape-only) .hotspot,
  .scene:not(.scene--landscape-only) .fx-glow { left: var(--mx); top: var(--my); }
  .scene:not(.scene--landscape-only) .fx-glow { width: var(--ms); }
  .scene:not(.scene--landscape-only) .scene__sign { left: var(--mx); top: var(--my); width: var(--mw); }
  .scene:not(.scene--landscape-only) .fx-meter { left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); }
  .hotspot--play .hotspot__dot { width: 60px; height: 60px; }
  .scene:not(.scene--landscape-only) .hotspot__label { --lx: var(--mlx, -50%); }
}

@keyframes hotspot-pulse {
  0% { transform: scale(.7); opacity: .9; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Überschrift auf der Startseiten-Kulisse */
.scene__headline {
  position: absolute; z-index: 2; left: 2.4%; top: 3%; max-width: 42%;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .95), 0 0 2px #000;
}
.scene__headline h1 { margin: 0; font-family: var(--font-head); font-weight: 400; text-transform: uppercase; line-height: .95; }
.h1-small { display: block; color: var(--white); font-size: clamp(1.25rem, 3.2cqw, 3.4rem); }
.h1-big { display: block; color: var(--yellow); font-size: clamp(2.2rem, 6.6cqw, 7rem); letter-spacing: .01em; }
.scene__claim { margin: .5em 0 0; font: 700 clamp(.95rem, 1.75cqw, 1.9rem)/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--white); }
@media (max-width: 767px) {
  .scene__headline { left: 0; right: 0; top: 0; max-width: none; padding: 14px 16px 40px; background: linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .55) 60%, transparent); }
  .h1-small { font-size: 1.35rem; }
  .h1-big { font-size: 2.7rem; }
  .scene__claim { font-size: 1rem; }
}

/* HTML-Beschriftung auf leeren Schildern */
.scene__sign {
  position: absolute; z-index: 2; left: var(--dx); top: var(--dy); width: var(--dw);
  transform: translate(-50%, -50%); margin: 0; text-align: center; pointer-events: none;
  font: 400 2.9cqw/1 var(--font-head); text-transform: uppercase; color: #2a1606; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 230, 160, .5), 0 0 1px rgba(0, 0, 0, .6);
  mix-blend-mode: multiply; opacity: .92;
}
.scene__sign--big span { display: block; font-size: 5.2cqw; }
.scene__sign--big small { display: block; margin-top: .35em; font: 700 1.9cqw/1 var(--font-ui); letter-spacing: .2em; }
@media (max-width: 767px) {
  .scene:not(.scene--landscape-only) .scene__sign { font-size: 3.7cqw; }
}

/* ---------- Kalle-Sprechblase ---------- */
.kalle-bubble {
  position: absolute; z-index: 5; width: min(340px, 70%);
  background: var(--paper); color: var(--black);
  border: 3px solid var(--black); border-radius: 18px;
  padding: 16px 18px 14px; box-shadow: 0 0 0 3px var(--yellow), var(--shadow);
  font: 400 1.05rem/1.35 var(--font-hand);
  animation: bubble-in .25s ease-out;
}
.kalle-bubble[hidden] { display: none; }
.kalle-bubble::after {
  content: ""; position: absolute; bottom: -16px; width: 0; height: 0;
  border-style: solid; border-width: 16px 12px 0 12px; border-color: var(--black) transparent transparent transparent;
  left: var(--tail, 24px);
}
.kalle-bubble--below::after { bottom: auto; top: -16px; border-width: 0 12px 16px 12px; border-color: transparent transparent var(--black) transparent; }
.kalle-bubble__text { margin: 0 18px 0 0; }
.kalle-bubble__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kalle-bubble__links:empty { display: none; }
.kalle-bubble__links a, .kalle-bubble__links button {
  font: 700 .85rem/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em;
  background: var(--black); color: var(--yellow); border: 0; border-radius: 4px; padding: 9px 10px; min-height: 36px;
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center;
}
.kalle-bubble__links a:hover, .kalle-bubble__links button:hover { background: var(--yellow); color: var(--black); }
.kalle-bubble__close {
  position: absolute; right: 4px; top: 2px; width: 36px; height: 36px; border: 0; background: none;
  font: 700 1.5rem/1 var(--font-ui); color: var(--black); cursor: pointer;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .kalle-bubble { width: min(300px, 86%); font-size: .98rem; padding: 12px 14px; }
}

/* ---------- Effekte (bewusst einfach, nur CSS) ---------- */
.fx-glow {
  position: absolute; left: var(--dx); top: var(--dy); width: var(--ds); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 70, .55) 0%, rgba(255, 170, 30, .22) 35%, transparent 68%);
  mix-blend-mode: screen; animation: flicker 3.2s ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
}
@keyframes flicker {
  0% { opacity: .55; transform: translate(-50%, -50%) scale(.95); }
  30% { opacity: .9; }
  55% { opacity: .65; transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: .95; transform: translate(-50%, -50%) scale(1); }
}
.page-backstage .fx-glow { background: radial-gradient(circle, rgba(255, 211, 0, .5) 0%, rgba(255, 150, 0, .18) 40%, transparent 70%); animation-name: neon; animation-duration: 4s; }
@keyframes neon { 0%, 100% { opacity: .5; } 45% { opacity: .95; } 48% { opacity: .6; } 52% { opacity: .95; } }

.fx-beam {
  position: absolute; top: 24%; width: 16%; height: 62%; transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(255, 228, 140, .42), rgba(255, 211, 0, .08) 70%, transparent);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen; opacity: .55; filter: blur(2px);
  animation: beam 8s ease-in-out infinite alternate;
}
.fx-beam--1 { left: 33%; animation-delay: -2s; }
.fx-beam--2 { left: 47%; animation-duration: 10s; }
.fx-beam--3 { left: 61%; animation-delay: -5s; animation-duration: 9s; }
@keyframes beam { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@media (max-width: 767px) {
  .fx-beam { top: 47%; height: 30%; width: 22%; }
  .fx-beam--1 { left: 18%; } .fx-beam--2 { left: 39%; } .fx-beam--3 { left: 60%; }
}

.fx-fog {
  position: absolute; left: -20%; right: -20%; bottom: -6%; height: 34%;
  background:
    radial-gradient(ellipse 30% 60% at 20% 70%, rgba(255, 240, 210, .16), transparent 70%),
    radial-gradient(ellipse 35% 55% at 60% 60%, rgba(255, 240, 210, .13), transparent 70%),
    radial-gradient(ellipse 25% 50% at 90% 75%, rgba(255, 240, 210, .12), transparent 70%);
  filter: blur(10px); animation: fog 26s linear infinite alternate;
}
.fx-fog--2 { bottom: 22%; height: 22%; opacity: .7; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.fx-sparks i {
  position: absolute; bottom: 28%; width: 4px; height: 4px; border-radius: 50%;
  background: #ffe27a; box-shadow: 0 0 6px 2px rgba(255, 200, 60, .8);
  opacity: 0; animation: spark 6s linear infinite;
}
.fx-sparks i:nth-child(1) { left: 22%; animation-delay: 0s; }
.fx-sparks i:nth-child(2) { left: 30%; animation-delay: -1.2s; animation-duration: 7s; }
.fx-sparks i:nth-child(3) { left: 38%; animation-delay: -3.1s; }
.fx-sparks i:nth-child(4) { left: 45%; animation-delay: -4.4s; animation-duration: 8s; }
.fx-sparks i:nth-child(5) { left: 52%; animation-delay: -.6s; }
.fx-sparks i:nth-child(6) { left: 58%; animation-delay: -2.4s; animation-duration: 7.5s; }
.fx-sparks i:nth-child(7) { left: 64%; animation-delay: -5.2s; }
.fx-sparks i:nth-child(8) { left: 70%; animation-delay: -1.9s; animation-duration: 6.5s; }
.fx-sparks i:nth-child(9) { left: 76%; animation-delay: -3.8s; }
.fx-sparks i:nth-child(10) { left: 83%; animation-delay: -.3s; animation-duration: 9s; }
.fx-sparks i:nth-child(11) { left: 26%; animation-delay: -4.9s; animation-duration: 8.5s; }
.fx-sparks i:nth-child(12) { left: 49%; animation-delay: -2.9s; animation-duration: 9.5s; }
.fx-sparks i:nth-child(13) { left: 67%; animation-delay: -6s; animation-duration: 7.2s; }
.fx-sparks i:nth-child(14) { left: 88%; animation-delay: -1.5s; }
@keyframes spark {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(18px, -260%); opacity: 0; }
}
.fx-sparks { position: absolute; inset: 0; }
.fx-sparks i { bottom: 30%; }
@media (max-width: 767px) { .fx-sparks i { bottom: 42%; } }

.fx-meter {
  position: absolute; left: var(--dx); top: var(--dy); width: var(--dw); height: var(--dh);
  transform: translate(-50%, -50%); display: flex; align-items: flex-end; gap: 8%; padding: 0 4%;
  mix-blend-mode: screen; opacity: .8;
}
.fx-meter i { flex: 1; height: 100%; background: linear-gradient(to top, #ffd300 0 60%, #ff8a00 60% 82%, var(--red) 82%); transform-origin: bottom; animation: meter 1.1s ease-in-out infinite alternate; }
.fx-meter i:nth-child(2n) { animation-duration: .8s; }
.fx-meter i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -.4s; }
.fx-meter i:nth-child(4n+1) { animation-delay: -.7s; }
@keyframes meter { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* Spiel läuft: Hintergrundeffekte pausieren */
body.is-playing .scene__fx { display: none; }
body.is-playing .hotspot__dot::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .fx-beam, .fx-sparks, .fx-fog, .fx-meter { display: none; }
  .fx-glow { opacity: .7; }
}

/* ---------- Unter der Kulisse ---------- */
.scene-actions { background: linear-gradient(#0a0a0a, var(--black)); border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 14px 0; }
.scene-actions__title { font: 700 .85rem var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--grey-light); margin: 0 0 8px; }
.scene-actions__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scene-actions .btn { font-size: .9rem; padding: .45em .9em; }

.page-head { padding-top: 26px; padding-bottom: 18px; }
.eyebrow { margin: 0 0 4px; font: 700 .85rem var(--font-ui); text-transform: uppercase; letter-spacing: .18em; color: var(--yellow); }
.page-head h1 { font: 400 clamp(2.2rem, 5vw, 3.8rem)/1 var(--font-head); text-transform: uppercase; color: var(--white); margin: 0; }
.page-head__sub { margin: 8px 0 0; font: 500 clamp(1.05rem, 1.8vw, 1.3rem)/1.3 var(--font-ui); color: var(--text-dim); }

.intro { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 12px; }
.intro__text { max-width: 760px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--white); }
.intro--location .lead, .intro--soon .lead { max-width: 820px; }
.intro__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.intro--soon { flex-direction: column; align-items: flex-start; }
.stamp {
  flex: 0 0 auto; margin: 0; padding: 14px 20px; transform: rotate(-6deg);
  font: 400 1.5rem/1.1 var(--font-hand); color: var(--black); background: var(--paper);
  border: 3px solid var(--black); box-shadow: 0 0 0 2px var(--paper), 5px 6px 0 rgba(255, 211, 0, .6);
}
@media (max-width: 767px) { .intro { flex-direction: column; align-items: flex-start; } .stamp { align-self: center; } }

.section { padding-top: 44px; padding-bottom: 16px; }
.section__title { font: 400 clamp(1.7rem, 3.4vw, 2.6rem)/1.05 var(--font-head); text-transform: uppercase; color: var(--yellow); }
.section__lead { margin-top: -.2em; color: var(--text-dim); }
.section__more { margin-top: 18px; }

/* Schauplatz-Kacheln */
.loc-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loc-grid--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.loc-tile a {
  position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--white);
  background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.loc-tile a:hover, .loc-tile a:focus-visible { border-color: var(--yellow); transform: translateY(-3px); }
.loc-tile__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.loc-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.loc-tile a:hover img { transform: scale(1.05); }
.loc-tile--soon .loc-tile__img img { filter: grayscale(.65) brightness(.75); }
.badge { position: absolute; top: 10px; right: 10px; background: var(--red); color: var(--white); font: 700 .8rem var(--font-ui); text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 3px; transform: rotate(3deg); }
.loc-tile__body { padding: 12px 44px 14px 14px; }
.loc-tile__body h3 { margin: 0 0 4px; font: 700 1.25rem/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.loc-tile__body p { margin: 0; color: var(--text-dim); font-size: .95rem; line-height: 1.4; }
.loc-tile__arrow { position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--yellow); color: var(--black); font: 700 1.3rem/1 var(--font-ui); border-radius: 4px; }
@media (max-width: 960px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .loc-grid { gap: 10px; } .loc-tile__body { padding: 10px 10px 44px; } .loc-tile__body h3 { font-size: 1.05rem; } .loc-tile__body p { font-size: .85rem; } .loc-tile__arrow { right: 10px; bottom: 10px; } }

/* Geschichten-Kacheln */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.story-grid--home { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
.story-grid--home .story-tile--big { grid-row: span 2; }
.story-tile__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.story-tile__link:hover, .story-tile__link:focus-visible { border-color: var(--yellow); transform: translateY(-3px); color: var(--text); }
.story-tile__img { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.story-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-tile--big .story-tile__img { aspect-ratio: 16 / 9; }
.story-tile__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.story-tile__meta { margin: 0 0 4px; font: 500 .85rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.story-tile__title { margin: 0 0 6px; font: 700 1.3rem/1.15 var(--font-ui); color: var(--white); }
.story-tile--big .story-tile__title { font-size: 1.8rem; }
.story-tile__text { margin: 0 0 10px; font-size: .97rem; line-height: 1.5; color: var(--text-dim); }
.story-tile__more { margin-top: auto; font: 700 .9rem var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
@media (max-width: 960px) { .story-grid, .story-grid--home { grid-template-columns: repeat(2, 1fr); } .story-grid--home .story-tile--big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .story-grid, .story-grid--home { grid-template-columns: 1fr; } .story-grid--home .story-tile--big { grid-column: auto; } }

/* Highlights */
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.highlight { display: grid; grid-template-columns: 42% 1fr; background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); overflow: hidden; }
.highlight__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight__body { padding: 18px; }
.highlight__body .section__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
@media (max-width: 960px) { .highlights { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .highlight { grid-template-columns: 1fr; } .highlight__img { aspect-ratio: 16 / 9; } }

/* Social */
.social-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social-card > a, .social-card > div { display: block; height: 100%; padding: 18px; background: var(--panel); border: 2px dashed var(--grey); border-radius: var(--radius); color: var(--text); text-decoration: none; position: relative; }
.social-card > a { border-style: solid; border-color: var(--yellow); }
.social-card > a:hover { background: #1c1a10; }
.social-card h3 { font: 700 1.35rem var(--font-ui); text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.social-card p { margin: 0 0 10px; color: var(--text-dim); font-size: .97rem; }
.social-card__cta { font: 700 .9rem var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.social-card > div .social-card__cta { color: var(--grey-light); }
.social-card::before { content: ""; display: block; height: 0; }
@media (max-width: 760px) { .social-grid { grid-template-columns: 1fr; } }

/* Medien */
.media-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.media-card__btn {
  width: 100%; height: 100%; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 18px; background: linear-gradient(160deg, #1a1a1a, #0b0b0b); color: var(--text);
  border: 2px solid #2a2a2a; border-radius: var(--radius); font: inherit;
}
.media-card__btn:hover, .media-card__btn:focus-visible { border-color: var(--yellow); }
.media-card__play { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--black); font-size: 1.2rem; }
.media-card__title { font: 700 1.2rem var(--font-ui); text-transform: uppercase; color: var(--white); }
.media-card__text { color: var(--text-dim); font-size: .95rem; }
.media-card__soon { align-self: flex-start; font: 700 .78rem var(--font-ui); text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border-radius: 3px; background: var(--grey); color: var(--white); }
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } }

.playlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.playlist { background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); padding: 18px; }
.playlist h3 { font: 700 1.3rem var(--font-ui); text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.playlist > p, .playlist__head p { color: var(--text-dim); margin-top: 0; }
.playlist--loaded .playlist__head { display: none; }
.playlist__head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.playlist__cover { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
@media (max-width: 400px) { .playlist__cover { width: 96px; height: 96px; } }
@media (max-width: 760px) { .playlist-grid { grid-template-columns: 1fr; } }

.embed { border-radius: var(--radius); overflow: hidden; background: #0a0a0a; border: 1px solid var(--grey); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed__placeholder { padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.embed__placeholder p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.embed__placeholder strong { color: var(--white); }


/* Tagebuch */
.diary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 16px; }
.diary__entry {
  background: #e9dfc4; color: #231a0c; padding: 18px 20px; border-radius: 3px; font-family: var(--font-type);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .5); transform: rotate(-.6deg); position: relative;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(90, 60, 20, .18) 27px 28px);
}
.diary__entry:nth-child(even) { transform: rotate(.7deg); }
.diary__entry::before { content: ""; position: absolute; top: -10px; left: 40%; width: 80px; height: 22px; background: rgba(255, 211, 0, .55); transform: rotate(-3deg); }
.diary__entry h3 { font: 400 1.05rem var(--font-type); text-decoration: underline; margin-bottom: 8px; }
.diary__entry p { margin: 0; line-height: 1.75; }
@media (max-width: 700px) { .diary { grid-template-columns: 1fr; } }

.shop-note { border: 2px dashed var(--yellow); border-radius: var(--radius); padding: 22px; margin-top: 32px; background: #0d0c06; max-width: 1168px; }

.kalle-quote { margin: 0 0 18px; padding: 18px 22px; background: var(--paper); color: var(--black); border: 3px solid var(--black); border-radius: 18px; box-shadow: 0 0 0 3px var(--yellow); font: 400 1.25rem/1.4 var(--font-hand); max-width: 760px; }
.kalle-quote p { margin: 0; }
.kalle-quote footer { margin-top: 8px; font: 700 .9rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }

.loc-nav { padding-bottom: 40px; }

/* ---------- Geschichten-Einzelseite ---------- */
.story { max-width: 900px; padding-top: 22px; }
.breadcrumb { font: 500 .9rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--grey-light); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); }
.story__meta { margin: 0 0 6px; font: 700 .95rem var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.story__head h1 { font: 400 clamp(2rem, 5vw, 3.4rem)/1.02 var(--font-head); text-transform: uppercase; color: var(--white); }
.story__lead { font-size: 1.2rem; color: var(--text-dim); margin-top: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.tags li { font: 500 .85rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 30px; }
.story__img { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 2px solid #2a2a2a; }
.story__img img { display: block; width: 100%; height: auto; }
.prose { font-size: 1.125rem; line-height: 1.75; max-width: 72ch; }
.prose h2 { font: 700 1.6rem/1.2 var(--font-ui); text-transform: uppercase; color: var(--yellow); margin-top: 1.6em; }
.prose h3 { font: 700 1.25rem var(--font-ui); text-transform: uppercase; color: var(--white); margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 5px solid var(--yellow); background: #15130a; font: 400 1.2rem/1.45 var(--font-hand); color: var(--white); }
.prose blockquote p { margin: 0; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--white); }
.story__foot { margin-top: 34px; padding-top: 22px; border-top: 2px solid #222; }
.reactions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reactions__note { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; color: var(--text-dim); font-size: .95rem; }
.story__places { color: var(--text-dim); }
.story__pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.story__pager .btn { text-transform: none; font-weight: 500; letter-spacing: 0; }

/* ---------- Rechtliches / 404 ---------- */
.legal { padding-top: 28px; padding-bottom: 40px; max-width: 860px; }
.legal h1 { font: 400 clamp(2rem, 5vw, 3rem)/1.05 var(--font-head); text-transform: uppercase; color: var(--white); }
.legal-warning { border: 2px solid var(--red); background: #1b0507; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 1rem; }
.notfound { padding-top: 48px; padding-bottom: 60px; }
.notfound h1 { font: 400 clamp(2.2rem, 6vw, 4rem)/1 var(--font-head); text-transform: uppercase; color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: #050505; border-top: 2px solid var(--yellow); padding-top: 36px; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__brand img { width: 220px; height: auto; display: block; }
.motto { font: 400 1.3rem var(--font-hand); color: var(--yellow); margin: 12px 0 4px; }
.site-footer__note { color: var(--grey-light); font-size: .95rem; }
.site-footer__nav h2 { font: 700 .95rem var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--grey-light); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: 2px; }
.site-footer__nav a, .site-footer__nav .linklike { display: inline-block; padding: 7px 0; color: var(--text); text-decoration: none; font: 500 1rem var(--font-ui); letter-spacing: .03em; }
.site-footer__nav a:hover, .site-footer__nav .linklike:hover { color: var(--yellow); }
/* Kalles Briefkasten */
.intro--brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: center; }
.intro--brief .brief-bild { order: 2; margin: 0; }
.brief-bild img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 2px solid #2a2a2a; box-shadow: var(--shadow); }
@media (max-width: 900px) { .intro--brief { grid-template-columns: 1fr; } .intro--brief .brief-bild { order: 0; max-width: 420px; justify-self: center; } }
.letter { max-width: 860px; }
.letter__form { background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.letter__art { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.letter__art legend { font: 700 1rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--white); margin-bottom: 8px; padding: 0; }
.letter__art label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.letter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.letter__field { display: grid; gap: 6px; }
.letter__field > span { font: 700 1rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--white); }
.letter__field small { font: 400 .85rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.letter__field input, .letter__field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--white); background: #0b0b0b; border: 2px solid var(--grey); border-radius: var(--radius); }
.letter__field textarea { resize: vertical; line-height: 1.5; }
.letter__field input:focus, .letter__field textarea:focus { outline: none; border-color: var(--yellow); }
.letter__count { justify-self: end; }
.letter__hint { margin: 0; color: var(--text-dim); font-size: .95rem; }
.letter__check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: .95rem; line-height: 1.5; }
.letter__check input, .letter__art input { width: 22px; height: 22px; accent-color: var(--yellow); margin: 0; }
.letter__check input { margin-top: 2px; }
.letter__buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--text-dim); }
.req { color: var(--yellow); }
.letter__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.letter__status { margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius); border: 2px solid; }
.letter__status:focus { outline: none; }
.letter__status p { margin: 4px 0 0; }
.letter__status--ok { border-color: var(--yellow); background: #15130a; }
.letter__status--fehler { border-color: var(--red); background: #1b0507; }
@media (max-width: 640px) { .letter__row { grid-template-columns: 1fr; } .letter__form { padding: 16px; } }
.briefkasten a { color: var(--yellow); }
.briefkasten { margin-top: 14px; font-size: .9rem; color: var(--grey-light); border: 1px dashed var(--grey); padding: 10px 12px; border-radius: var(--radius); }
.site-footer__disclaimer { color: var(--grey-light); font-size: .8rem; line-height: 1.5; margin-top: 24px; padding-top: 16px; border-top: 1px solid #1c1c1c; }
.story__disclaimer { color: var(--grey-light); font-size: .85rem; line-height: 1.5; margin: 18px 0 0; }
.site-footer__copy { color: var(--grey-light); font-size: .85rem; padding-top: 20px; padding-bottom: 96px; margin-top: 24px; border-top: 1px solid #1c1c1c; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Consent ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(0, 0, 0, .97); border-top: 3px solid var(--yellow); box-shadow: 0 -10px 30px rgba(0, 0, 0, .7); }
.consent[hidden] { display: none; }
.consent__inner { max-width: 1200px; margin: 0 auto; padding: 16px; }
.consent__title { font: 400 1.25rem var(--font-hand); color: var(--yellow); margin: 0 0 4px; }
.consent__inner > p { margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.consent__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
  .consent__inner { padding: 10px 12px 12px; }
  .consent__title { font-size: 1.05rem; }
  .consent__inner > p { font-size: .82rem; line-height: 1.4; margin-bottom: 8px; }
  .consent__buttons { gap: 6px; }
  .consent .btn--consent { min-width: 0; font-size: .82rem; padding: .4em .5em; letter-spacing: .02em; }
}
.consent-option { border: 1px solid var(--grey); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.consent-option label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.consent-option input { width: 22px; height: 22px; accent-color: var(--yellow); }
.consent-option p { margin: 6px 0 0 32px; font-size: .93rem; color: var(--text-dim); }

/* ---------- Dialoge ---------- */
.dialog {
  padding: 0; border: 3px solid var(--yellow); border-radius: 10px; background: var(--ink); color: var(--text);
  width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(0, 0, 0, .82); }
.dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog__inner { padding: 22px 22px 20px; position: relative; }
.dialog__title { font: 400 clamp(1.4rem, 4vw, 2rem)/1.1 var(--font-head); text-transform: uppercase; color: var(--yellow); margin: 0 48px 12px 0; }
.dialog__close {
  position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--yellow); background: var(--black); color: var(--yellow);
  font: 700 1.6rem/1 var(--font-ui); cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.dialog__close:hover { background: var(--yellow); color: var(--black); }
.dialog__body p { margin-top: 0; }
.dialog__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dialog__links:empty { display: none; }
.wegweiser-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wegweiser-list a {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 14px;
  background: linear-gradient(#5a3d1d, #3b2711); color: var(--paper); text-decoration: none;
  border: 2px solid #1f1408; border-radius: 4px; clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  font: 700 1.05rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em;
}
.wegweiser-list a:hover, .wegweiser-list a:focus-visible { background: var(--yellow); color: var(--black); }
.wegweiser-list small { font-size: .7rem; padding-right: 14px; opacity: .8; }
@media (max-width: 480px) { .wegweiser-list { grid-template-columns: 1fr; } }

.dialog--media { width: min(1100px, calc(100vw - 16px)); }
.media-frame { aspect-ratio: 16 / 9; background: var(--black); border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.media-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-frame__msg { padding: 22px; text-align: center; max-width: 520px; }
.media-frame__msg p { margin: 0 0 12px; }
@media (max-width: 560px) { .media-frame { aspect-ratio: auto; min-height: 56vw; } }


/* =========================================================
   Kalles Flipperecke (/flipper/)
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn--big { font-size: 1.15rem; padding: .7em 1.5em; min-height: 52px; }

.fl-hero { background: var(--black); }
.fl-hero__stage { position: relative; max-width: 1664px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; }
.fl-hero__stage picture, .fl-hero__stage img { display: block; width: 100%; height: 100%; }
.fl-hero__text { position: absolute; left: 13%; top: 14%; width: 36%; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.fl-hero__text h1 { font: 400 clamp(2rem, 5.4cqw, 5.6rem)/.95 var(--font-head); text-transform: uppercase; color: var(--yellow); margin: 0 0 .3em; }
.fl-hero__intro { font-size: clamp(1rem, 1.45cqw, 1.35rem); line-height: 1.5; color: var(--white); margin: 0 0 1.1em; }
.fl-hero__intro--below { display: none; }
@media (max-width: 767px) {
  .fl-hero__stage { aspect-ratio: 9 / 16; }
  .fl-hero__text { left: 0; right: 0; top: 0; width: auto; padding: 16px 16px 0; text-align: center; }
  .fl-hero__text h1 { font-size: 2.5rem; }
  .fl-hero__text .fl-hero__intro, .fl-hero__text .eyebrow { display: none; }
  .fl-hero__buttons { justify-content: center; }
  .fl-hero__buttons .btn--big { font-size: 1rem; padding: .55em 1em; }
  .fl-hero__stage .hotspot { left: var(--mx); top: var(--my); }
  .fl-hero__stage .hotspot__label { --lx: var(--mlx, -50%); }
  .fl-hero__intro--below { display: block; padding-top: 16px; }
}

.fl-quicklinks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; padding-bottom: 14px; font: 700 .95rem var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.fl-quicklinks a { display: inline-flex; align-items: center; min-height: 44px; }

.game { background: #000; padding: 12px 0 28px; border-top: 1px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; }
.game:focus { outline: none; }
.game__bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.game__bar[hidden] { display: none; }
.game__bar .btn { font-size: .9rem; min-height: 44px; padding: .4em .9em; }
.game__shell { position: relative; max-width: 1000px; margin: 0 auto; padding: 24px; }
.game__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.game__inner { position: relative; z-index: 1; background: #050505; border-radius: 10px; overflow: hidden; height: clamp(480px, calc(100dvh - var(--header-h) - 150px), 980px); }
.game__iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.game__start { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(193, 18, 31, .25), transparent 60%), #050505; }
.game__start[hidden] { display: none; }
.game__logo { width: min(240px, 55vw); height: auto; border-radius: 18px; }
.game__claim { margin: 0; font: 700 1.1rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--white); }
.game__note { margin: 0; max-width: 520px; font-size: .9rem; color: var(--text-dim); }
.game__buttons, .fl-hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.fl-hero__buttons { justify-content: flex-start; }
.game__hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 95; margin: 0; padding: 10px 16px; border-radius: 8px; background: rgba(0, 0, 0, .85); border: 2px solid var(--yellow); color: var(--white); font: 700 .95rem var(--font-ui); text-align: center; pointer-events: none; }
.game__hint[hidden] { display: none; }
.game__consent { max-width: 560px; padding: 14px 16px; border: 2px solid var(--yellow); border-radius: var(--radius); background: #0f0d05; text-align: left; }
.game__consent[hidden] { display: none; }
.game__consent p { margin: 0 0 10px; font-size: .95rem; }
.game__consent-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
@media (max-width: 767px) {
  .game { padding: 0 0 16px; border: 0; }
  .game__bar { padding-top: 6px; padding-bottom: 6px; margin-bottom: 0; flex-wrap: nowrap; gap: 6px; }
  .game__bar .btn { font-size: .78rem; min-height: 40px; padding: .3em .55em; letter-spacing: .02em; flex: 1 1 auto; }
  .game__shell { padding: 0; }
  .game__frame { display: none; } /* Rahmen kostet auf Smartphones Spielfläche */
  .game__inner { border-radius: 0; height: calc(100dvh - var(--header-h)); min-height: 480px; }
  /* Spiel läuft: vollflächig, ohne Kopfzeile, Menü und Knopfleiste – Zurück-Geste beendet */
  body.fl-playing { overflow: hidden; }
  body.fl-playing .site-header, body.fl-playing .game__bar { display: none; }
  body.fl-playing .game__inner { position: fixed; inset: 0; z-index: 90; height: 100dvh; min-height: 0; }
}

.controls__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.controls h3 { font: 700 1.15rem var(--font-ui); text-transform: uppercase; color: var(--white); }
.controls__list { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 16px; margin: 0; }
.controls__list dt { font-weight: 700; color: var(--white); }
.controls__list dd { margin: 0; color: var(--text-dim); }
.controls__note { color: var(--text-dim); font-size: .95rem; }
@media (max-width: 760px) { .controls__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .controls__list { grid-template-columns: 1fr; gap: 2px; } .controls__list dd { margin-bottom: 8px; } }

.level-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.level-card a { display: grid; grid-template-columns: 38% 1fr; gap: 14px; height: 100%; padding: 14px; background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s ease; }
.level-card a:hover, .level-card a:focus-visible { border-color: var(--yellow); color: var(--text); }
.level-card img { width: 100%; height: auto; border-radius: 6px; align-self: start; }
.level-card h3 { margin: 0 0 2px; font: 700 1.3rem/1.1 var(--font-ui); text-transform: uppercase; color: var(--white); }
.level-card p { margin: 0 0 8px; font-size: .92rem; line-height: 1.45; }
.level-card__nr { font: 700 .8rem var(--font-ui) !important; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); }
.level-card__sub { font-family: var(--font-hand); color: var(--yellow); }
.level-card__unlock { font: 700 .85rem var(--font-ui) !important; text-transform: uppercase; letter-spacing: .05em; color: var(--white); }
.level-card__more { font: 700 .9rem var(--font-ui); text-transform: uppercase; color: var(--yellow); }
@media (max-width: 1000px) { .level-cards { grid-template-columns: 1fr; } .level-card a { grid-template-columns: 140px 1fr; } }
@media (max-width: 400px) { .level-card a { grid-template-columns: 110px 1fr; } }

/* Regelbereich aus der gelieferten Vorlage – Stile nur innerhalb von .rules */
.rules { padding-top: 40px; padding-bottom: 20px; max-width: 1060px; }
.rules:focus { outline: none; }
.rules h2 { font: 400 clamp(1.6rem, 3.6vw, 2.5rem)/1.1 var(--font-head); text-transform: uppercase; color: var(--yellow); }
.rules h3 { font: 700 1.5rem/1.2 var(--font-ui); text-transform: uppercase; color: var(--yellow); margin-top: 1.6em; }
.rules h4 { font: 700 1.1rem var(--font-ui); text-transform: uppercase; color: var(--white); margin: 1.2em 0 .4em; }
.rules-logo { float: right; width: 110px; height: auto; border-radius: 14px; margin: 0 0 12px 16px; }
.rules article { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--yellow); scroll-margin-top: calc(var(--header-h) + 12px); }
.rules .subtitle { font-family: var(--font-hand); color: var(--yellow); font-size: 1.15rem; }
.rules .level-intro { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 28px; align-items: start; }
.rules .rules-img { display: block; }
.rules .level-intro img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #333; }
.rules .table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.rules table { border-collapse: collapse; width: 100%; min-width: 320px; text-align: left; font-size: .98rem; }
.rules caption { text-align: left; color: var(--yellow); font: 700 1rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.rules th, .rules td { padding: 10px 12px; border-bottom: 1px solid var(--grey); vertical-align: top; }
.rules thead { background: #1d1d1d; }
.rules tbody th { font-weight: 500; }
.rules li { margin: 8px 0; }
.rules details { background: var(--panel); padding: 16px; border: 1px solid var(--grey); border-radius: 8px; margin: 18px 0; }
.rules summary { cursor: pointer; font: 700 1.1rem var(--font-ui); text-transform: uppercase; color: var(--yellow); min-height: 30px; }
@media (max-width: 600px) {
  .rules .level-intro { grid-template-columns: 1fr; }
  .rules .level-intro .rules-img { width: 160px; justify-self: center; }
  .rules th, .rules td { padding: 8px; }
  .rules-logo { width: 80px; }
}
.fl-back { padding-top: 24px; }

/* Spiel-Teaser im Backstage */
.game-teaser__link { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--panel); border: 2px solid #2a2a2a; border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
.game-teaser__link:hover, .game-teaser__link:focus-visible { border-color: var(--yellow); color: var(--text); }
.game-teaser__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-teaser__text { padding: 22px; align-self: center; }
.game-teaser__note { color: var(--text-dim); font-size: .95rem; margin-top: 10px; }
@media (max-width: 760px) { .game-teaser__link { grid-template-columns: 1fr; } .game-teaser__link img { height: auto; } }
