/* FAE – ANCIENT FUTURE
   Obsidian, Nebel und Gold als gemeinsame Sprache. Jede Welt bringt ihren Akzent mit:
   Cinema Violett·Cyan · Audio Electric Blue · Stories Antikgold · Memories Türkis */
:root {
  --nacht: #05070b;
  --obsidian: #0c1018;
  --flaeche: rgba(16, 21, 33, .78);
  --flaeche-fest: #111725;
  --linie: rgba(201, 166, 75, .24);
  --linie-hell: rgba(236, 231, 217, .10);
  --text: #ece7d9;
  --gedaempft: #949db0;
  --gold: #c9a64b;
  --gold-hell: #f1d58a;
  --ok: #5fd3a6;
  --warn: #f0a24a;
  --fehler: #ef5b5b;
  --akzent: var(--gold);
  --akzent-2: var(--gold-hell);
  --schein: rgba(201, 166, 75, .35);
  --serif: "Cinzel", "Trajan Pro", "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 14px;
  --spieler-hoehe: 0px;
}
body.welt-cinema   { --akzent: #a78bfa; --akzent-2: #22d3ee; --schein: rgba(139, 92, 246, .38); }
body.welt-audio    { --akzent: #3b82ff; --akzent-2: #7cc4ff; --schein: rgba(59, 130, 255, .38); }
body.welt-stories  { --akzent: #d4ae57; --akzent-2: #f6dc9a; --schein: rgba(212, 174, 87, .38); }
body.welt-memories { --akzent: #2ec4b6; --akzent-2: #9af0e6; --schein: rgba(46, 196, 182, .35); }

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--nacht); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, color-mix(in srgb, var(--akzent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 115%, rgba(90, 120, 190, .10), transparent 70%),
    linear-gradient(180deg, #0a0f1d 0%, var(--nacht) 55%);
  background-attachment: fixed;
  padding-bottom: var(--spieler-hoehe);
}
body.mit-spieler { --spieler-hoehe: 88px; }
body.ohne-scroll { overflow: hidden; }
a { color: var(--akzent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
img.fehlt { visibility: hidden; }
h1, h2, h3, .titel, .marke, .weltname { font-family: var(--serif); font-weight: 600; letter-spacing: .05em; }
h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .2rem 0 .8rem; line-height: 1.15; }
h2 { font-size: 1.1rem; color: var(--akzent); margin: 0 0 .8rem; }
h2 small, h1 small { font-family: var(--sans); letter-spacing: 0; font-weight: 400; font-size: .8rem; margin-left: .4rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; }
.gedaempft { color: var(--gedaempft); }
.klein-text { font-size: .85rem; }
.ok { color: var(--ok); } .warn { color: var(--warn); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Kopfzeile */
.kopf { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1.4rem; position: sticky; top: 0; z-index: 30;
        border-bottom: 1px solid var(--linie); background: rgba(5, 7, 11, .72); backdrop-filter: blur(10px) saturate(1.2); }
.marke { font-size: 1.35rem; letter-spacing: .3em; background: linear-gradient(180deg, #fff3c9, var(--gold) 75%);
         -webkit-background-clip: text; background-clip: text; color: transparent; }
.marke:hover { text-decoration: none; }
.hauptnav, .kontonav { display: flex; gap: 1.1rem; align-items: center; }
.hauptnav { flex: 1; }
.hauptnav a, .kontonav a { color: var(--text); font-size: .95rem; opacity: .85; }
.hauptnav a:hover, .kontonav a:hover { opacity: 1; text-decoration: none; }
.nav-cinema:hover { color: #c4b5fd; } .nav-audio:hover { color: #7cc4ff; }
.nav-stories:hover { color: #f6dc9a; } .nav-memories:hover { color: #9af0e6; }
body.welt-cinema .nav-cinema, body.welt-audio .nav-audio, body.welt-stories .nav-stories, body.welt-memories .nav-memories
  { color: var(--akzent-2); opacity: 1; text-shadow: 0 0 14px var(--schein); }
.suchfeld input { width: 13rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------ Grundbausteine */
.seite { width: min(1040px, 100%); margin: 0 auto; padding: 1.5rem 1rem 3rem; flex: 1; display: grid; gap: 1.2rem; align-content: start; }
.seite.breit { width: min(1500px, 100%); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.4rem;
         box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(241, 213, 138, .07); }
.karte.schmal { width: min(420px, calc(100% - 2rem)); margin: auto; text-align: center; }
body > .karte.schmal { margin: auto; }
.brotkrumen { color: var(--gedaempft); font-size: .85rem; margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.kachel { display: grid; gap: .3rem; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); }
.kachel strong { font-family: var(--serif); color: var(--gold-hell); letter-spacing: .05em; }
.kachel span { color: var(--gedaempft); font-size: .9rem; }
.kachel:hover { text-decoration: none; border-color: var(--gold); box-shadow: 0 0 24px var(--schein); }

/* Siegel */
.siegel { width: 64px; height: 64px; margin: 0 auto .6rem; border-radius: 50%; border: 1px solid var(--gold); position: relative;
          box-shadow: 0 0 24px rgba(201, 166, 75, .45), inset 0 0 18px rgba(201, 166, 75, .25); }
.siegel::before { content: ""; position: absolute; inset: 22%; transform: rotate(45deg); border: 1px solid var(--gold-hell); }
.siegel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
                 background: var(--gold-hell); box-shadow: 0 0 12px var(--gold-hell); }
.siegel.gross { width: 92px; height: 92px; animation: atmen 6s ease-in-out infinite; }
@keyframes atmen { 50% { box-shadow: 0 0 46px rgba(201, 166, 75, .6), inset 0 0 24px rgba(201, 166, 75, .35); } }
.titel { font-size: 3rem; margin: 0; letter-spacing: .35em; padding-left: .35em;
         background: linear-gradient(180deg, #fff3c9, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.motto { margin: .2rem 0 1.4rem; letter-spacing: .45em; font-size: .8rem; color: var(--gold); }
.weltname { margin: 0; font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; color: var(--akzent-2); text-shadow: 0 0 12px var(--schein); }
.hinweis { color: var(--gedaempft); }

/* Formulare */
.formular { display: grid; gap: .9rem; text-align: left; margin: 1rem 0; }
.formular.reihe { grid-template-columns: 1fr auto; align-items: end; }
.reihe3 { display: grid; grid-template-columns: 2fr 1fr; gap: .9rem; }
label { display: grid; gap: .3rem; font-size: .85rem; color: var(--gedaempft); }
label.wahl { display: flex; gap: .5rem; align-items: center; color: var(--text); font-size: .95rem; }
input, select, textarea { width: 100%; padding: .65rem .8rem; border-radius: 10px; border: 1px solid rgba(148, 157, 176, .3);
                          background: rgba(5, 7, 11, .7); color: var(--text); font: inherit; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--akzent); }
input[type=range] { padding: 0; accent-color: var(--akzent); background: none; border: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 25%, transparent); }
fieldset { border: 1px solid var(--linie-hell); border-radius: 10px; padding: .6rem 1rem; display: grid; gap: .4rem; }
legend { color: var(--gedaempft); font-size: .85rem; padding: 0 .4rem; }
.mit-knopf { display: flex; gap: .5rem; }
.haken { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 10px;
         border: 1px solid var(--akzent); color: var(--akzent-2); cursor: pointer; text-align: center; white-space: nowrap;
         background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 26%, transparent), color-mix(in srgb, var(--akzent) 8%, transparent));
         font: 600 .92rem/1 var(--serif); letter-spacing: .1em; transition: box-shadow .2s, transform .1s; }
.knopf:hover { box-shadow: 0 0 22px var(--schein); text-decoration: none; }
.knopf:active { transform: translateY(1px); }
.knopf.gross { padding: .9rem 1.5rem; font-size: 1rem; }
.knopf.zweit { border-color: rgba(148, 157, 176, .35); color: var(--text); background: rgba(255, 255, 255, .03); font-family: var(--sans); letter-spacing: 0; font-weight: 500; }
.knopf.gefahr { border-color: var(--fehler); color: var(--fehler); background: transparent; font-family: var(--sans); letter-spacing: 0; }
.fav-knopf.aktiv { color: var(--gold-hell); border-color: var(--gold); }
.fav-knopf .stern { opacity: .5; } .fav-knopf.aktiv .stern { opacity: 1; text-shadow: 0 0 10px var(--gold); }
.link { background: none; border: 0; padding: 0; color: var(--akzent-2); font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }
.rund { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie-hell); background: rgba(255, 255, 255, .04);
        color: var(--text); cursor: pointer; font-size: 1rem; display: inline-grid; place-items: center; transition: .15s; }
.rund:hover { border-color: var(--akzent); color: var(--akzent-2); }
.rund.gross { width: 58px; height: 58px; font-size: 1.3rem; border-color: var(--akzent); color: var(--akzent-2);
              background: radial-gradient(circle, color-mix(in srgb, var(--akzent) 30%, transparent), transparent 70%); box-shadow: 0 0 20px var(--schein); }
.rund.klein { width: 34px; height: 34px; font-size: .85rem; }
.rund[aria-pressed="true"], .rund.aktiv { color: var(--akzent-2); border-color: var(--akzent); box-shadow: 0 0 12px var(--schein); }

/* Meldungen, Tabellen, Marken */
.meldung { padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--linie); background: rgba(201, 166, 75, .08); text-align: left; margin: 0; }
.meldung.fehler { border-color: var(--fehler); background: rgba(239, 91, 91, .1); color: #ffd0d0; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th, .tabelle td { padding: .55rem .5rem; border-bottom: 1px solid var(--linie-hell); text-align: left; vertical-align: middle; }
.tabelle th { color: var(--gedaempft); font-weight: 500; }
.aktionen { display: flex; gap: .8rem; flex-wrap: wrap; }
.aktionen form { margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; color: var(--gold-hell); word-break: break-all; }
.marke-privat, .marke-verbundweit { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; }
.marke-privat { color: #ffb4a8; background: rgba(239, 91, 91, .14); border: 1px solid rgba(239, 91, 91, .35); }
.marke-verbundweit { color: #9ff0c9; background: rgba(95, 211, 166, .12); border: 1px solid rgba(95, 211, 166, .35); }
.punkt { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .45rem; background: var(--gold); vertical-align: middle; }
.punkt.welt-cinema { background: linear-gradient(135deg, #8b5cf6, #22d3ee); } .punkt.welt-audio { background: #3b82ff; }
.punkt.welt-stories { background: #d4ae57; } .punkt.welt-memories { background: #2ec4b6; }
.ordnerliste { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .2rem; }
.ordnerliste a { display: block; padding: .4rem .6rem; border-radius: 8px; color: var(--text); }
.ordnerliste a:hover { background: rgba(255, 255, 255, .05); text-decoration: none; }
.gefahrzone { border-color: rgba(239, 91, 91, .35); }
.qr { background: #fff; padding: 8px; border-radius: 12px; margin: .5rem auto; display: block; }
.schritte { text-align: left; color: var(--gedaempft); padding-left: 1.2rem; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.codes li { padding: .5rem; border: 1px dashed var(--linie); border-radius: 8px; }

/* ------------------------------------------------------------ Portal */
.portal { flex: 1; display: grid; justify-items: center; align-content: center; gap: .4rem; padding: 3rem 1rem 2rem; text-align: center; }
.portal-kopf { display: grid; justify-items: center; }
.welten { display: grid; grid-template-columns: repeat(4, minmax(150px, 230px)); gap: 1.1rem; margin-top: 1rem; }
.welt { position: relative; isolation: isolate; overflow: hidden; padding: 1.8rem 1rem 1.4rem; border-radius: 16px; display: grid; gap: .25rem; justify-items: center;
        color: var(--text); border: 1px solid color-mix(in srgb, var(--akzent) 70%, transparent);
        background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 12%, transparent), rgba(0, 0, 0, .35));
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 30px color-mix(in srgb, var(--akzent) 20%, transparent); transition: transform .25s, box-shadow .25s; }
.welt::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1; opacity: .0; transition: opacity .3s;
                background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--akzent) 35%, transparent), transparent 60%); }
.welt:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 10px 50px color-mix(in srgb, var(--akzent) 40%, transparent); }
.welt:hover::before { opacity: 1; }
.welt-name { font-family: var(--serif); letter-spacing: .12em; color: var(--akzent); font-size: 1.05rem; }
.welt-untertitel { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gedaempft); }
.welt-status { color: var(--gedaempft); font-size: .8rem; margin-top: .4rem; }
.welt-cinema { --akzent: #a78bfa; background: linear-gradient(160deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .10) 70%, rgba(0, 0, 0, .3)); }
.welt-audio { --akzent: #3b82ff; } .welt-stories { --akzent: #d4ae57; } .welt-memories { --akzent: #2ec4b6; }
.welt-symbol { width: 54px; height: 54px; margin-bottom: .6rem; border-radius: 50%; border: 1px solid var(--akzent); position: relative;
               box-shadow: 0 0 18px color-mix(in srgb, var(--akzent) 45%, transparent), inset 0 0 14px color-mix(in srgb, var(--akzent) 30%, transparent); }
.welt-symbol::after { position: absolute; inset: 0; display: grid; place-items: center; color: var(--akzent); font-size: 1.3rem; }
.symbol-cinema::after { content: "◈"; } .symbol-audio::after { content: "♫"; } .symbol-stories::after { content: "❧"; } .symbol-memories::after { content: "✧"; }
.portal-unten { width: min(1100px, 100%); margin-top: 1.5rem; text-align: left; }
.verbund-zeile { text-align: center; color: var(--gedaempft); font-size: .85rem; }
.knoten-punkt { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin: 0 .35rem 0 .15rem; }
.knoten-punkt.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .knoten-punkt.offline { background: #555b68; }
.portal-unten .hinweis { text-align: center; }

/* ------------------------------------------------------------ Welten: Reihen, Raster, Karten */
.welt-seite { width: min(1500px, 100%); margin: 0 auto; padding: 1rem 1.4rem 3rem; flex: 1; }
.welt-kopf { padding: 1.5rem 0 .5rem; }
.reihe-block { margin: 1.6rem 0; }
.schiene { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 170px); gap: 1rem; overflow-x: auto; padding: .3rem .1rem 1rem;
           scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--linie) transparent; }
.schiene > * { scroll-snap-align: start; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem 1rem; }
.raster.quadratisch, .alben-raster { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.poster { display: grid; gap: .25rem; color: var(--text); min-width: 0; }
.poster:hover { text-decoration: none; }
.poster-bild { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--flaeche-fest);
               border: 1px solid var(--linie-hell); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .25s, box-shadow .25s, border-color .25s; }
.poster.quadrat .poster-bild { aspect-ratio: 1; }
.poster.rund-bild .poster-bild { border-radius: 50%; }
.poster-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster:hover .poster-bild { transform: translateY(-3px) scale(1.02); border-color: var(--akzent); box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 26px var(--schein); }
.platzhalter { position: absolute; inset: 0; display: grid; place-items: center; padding: .8rem; text-align: center; font-family: var(--serif);
               color: var(--akzent-2); font-size: .95rem; letter-spacing: .05em;
               background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--akzent) 24%, transparent), transparent 70%), linear-gradient(160deg, #141b2b, #080b12); }
.poster-titel { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-info { font-size: .8rem; color: var(--gedaempft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etikett { position: absolute; top: .45rem; right: .45rem; padding: .1rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 700;
           background: rgba(5, 7, 11, .8); border: 1px solid var(--akzent); color: var(--akzent-2); }
.gesehen { position: absolute; top: .45rem; right: .45rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center;
           background: var(--akzent); color: #000; font-size: .8rem; font-weight: 700; }
.balken { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .6); }
.balken.breit { position: relative; height: 5px; border-radius: 3px; max-width: 420px; margin-top: .5rem; overflow: hidden; background: rgba(255, 255, 255, .1); }
.balken-wert { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--akzent), var(--akzent-2)); box-shadow: 0 0 8px var(--akzent); }
.nicht-verfuegbar { opacity: .45; filter: grayscale(.8); }
.weiter-karte { display: grid; gap: .25rem; color: var(--text); width: 280px; }
.schiene:has(.weiter-karte) { grid-auto-columns: 280px; }
.weiter-karte:hover { text-decoration: none; }
.weiter-bild { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--flaeche-fest); border: 1px solid var(--linie-hell); }
.weiter-bild img { width: 100%; height: 100%; object-fit: cover; }
.weiter-karte:hover .weiter-bild { border-color: var(--akzent); box-shadow: 0 0 22px var(--schein); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.chip { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--linie-hell); color: var(--text); font-size: .85rem; background: rgba(255, 255, 255, .03); }
.chip:hover { border-color: var(--akzent); text-decoration: none; }
.chip.aktiv { border-color: var(--akzent); color: var(--akzent-2); background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.chips.gross .chip { padding: .6rem 1.1rem; font-size: 1rem; }

/* Held (Cinema-Startbild) und Detailseiten mit Hintergrundbild */
.held { position: relative; min-height: 52vh; display: flex; align-items: flex-end; margin: 0 -1.4rem 1rem; padding: 2rem 2.4rem 2.6rem; overflow: hidden; isolation: isolate; }
.held::before, .detail::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hintergrund); background-size: cover; background-position: center 25%;
                                 opacity: 0; transition: opacity .8s; }
.held.mit-hintergrund::before, .detail.mit-hintergrund::before { opacity: 1; }
.held::after, .detail::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 11, .95) 0%, rgba(5, 7, 11, .7) 45%, rgba(5, 7, 11, .15) 100%), linear-gradient(0deg, var(--nacht) 0%, transparent 45%); }
.held-inhalt { max-width: 620px; }
.held-text { color: #cfd3dc; }
.detail { position: relative; isolation: isolate; flex: 1; padding: 3rem clamp(1rem, 4vw, 3rem) 3rem; width: 100%; }
.detail::after { background: linear-gradient(90deg, rgba(5, 7, 11, .96) 0%, rgba(5, 7, 11, .82) 50%, rgba(5, 7, 11, .45) 100%), linear-gradient(0deg, var(--nacht) 0%, transparent 60%); }
.detail-raster { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 2.4rem; max-width: 1200px; align-items: start; }
.detail-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche-fest);
                 box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px var(--schein); }
.detail-poster.quadrat { aspect-ratio: 1; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.metazeile { color: var(--gedaempft); margin: 0 0 1rem; }
.metazeile a { color: var(--gedaempft); text-decoration: underline dotted; }
.beschreibung { max-width: 68ch; color: #d6d9e0; line-height: 1.65; white-space: pre-line; }
.episoden { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: 1000px; }
.episode { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .6rem; border-radius: 12px; color: var(--text); border: 1px solid transparent; }
.episode:hover { background: rgba(255, 255, 255, .03); border-color: var(--linie-hell); text-decoration: none; }
.episode-bild { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--flaeche-fest); }
.episode-bild img { width: 100%; height: 100%; object-fit: cover; }
.episode-bild .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; opacity: 0; background: rgba(0, 0, 0, .35); transition: opacity .2s; }
.episode:hover .play { opacity: 1; }
.episode-text { display: grid; gap: .2rem; align-content: center; }
.episoden li.gesehen .episode-text strong { color: var(--gedaempft); }

/* ------------------------------------------------------------ Videoplayer */
body.player-seite { background: #000; }
.kino { position: relative; flex: 1; display: grid; grid-template-columns: 1fr auto; background: #000; min-height: 100vh; }
.kino video { width: 100%; height: 100vh; background: #000; grid-column: 1; grid-row: 1; }
.kino-leiste { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem;
               background: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent); transition: opacity .4s; }
.kino:not(:hover) .kino-leiste { opacity: 0; }
.kino-zurueck { font-size: 1.5rem; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.kino-zurueck:hover { text-decoration: none; background: rgba(255, 255, 255, .18); }
.kino-titel { font-family: var(--serif); letter-spacing: .05em; }
.kino-party { margin-left: auto; font-size: .85rem; color: var(--akzent-2); }
.kino-hinweis { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 520px; padding: 1rem 1.3rem; text-align: center;
                border-radius: 12px; background: rgba(5, 7, 11, .85); border: 1px solid var(--linie); z-index: 4; }
.naechste { position: absolute; right: 2rem; bottom: 6rem; z-index: 6; padding: 1.2rem; border-radius: 14px; background: rgba(10, 14, 24, .92);
            border: 1px solid var(--akzent); box-shadow: 0 0 40px var(--schein); max-width: 360px; }
.naechste p { margin: 0; color: var(--gedaempft); font-size: .85rem; }
.party-chat { grid-column: 2; grid-row: 1; width: 320px; height: 100vh; display: flex; flex-direction: column; border-left: 1px solid var(--linie); background: #080b12; }
.party-kopf { padding: 3.6rem 1rem .8rem; border-bottom: 1px solid var(--linie-hell); display: grid; gap: .3rem; }
#party-nachrichten { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: .8rem 1rem; display: grid; gap: .5rem; align-content: start; }
#party-nachrichten li { font-size: .9rem; } #party-nachrichten li strong { color: var(--akzent-2); margin-right: .3rem; }
#party-nachrichten li.system { color: var(--gedaempft); font-style: italic; font-size: .8rem; }
.party-eingabe { display: flex; gap: .4rem; padding: .8rem; border-top: 1px solid var(--linie-hell); }

/* ------------------------------------------------------------ Audio */
.audio-app { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; padding-top: 1.5rem; }
.audio-nav { position: sticky; top: 80px; align-self: start; display: grid; gap: .3rem; }
.audio-nav nav { display: grid; gap: .1rem; }
.audio-nav nav a { padding: .45rem .7rem; border-radius: 8px; color: var(--text); }
.audio-nav nav a:hover { background: rgba(255, 255, 255, .04); text-decoration: none; }
.audio-nav nav a.aktiv { background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--akzent-2); }
.audio-nav-titel { margin: 1.2rem 0 .2rem; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gedaempft); }
.audio-nav .link { text-align: left; padding: .45rem .7rem; }
.audio-nav .suchfeld input { width: 100%; margin-top: 1rem; }
.audio-inhalt { min-width: 0; transition: opacity .2s; }
.audio-inhalt.laedt { opacity: .5; }
.audio-kopf { display: flex; gap: 1.6rem; align-items: flex-end; margin-bottom: 1.2rem; }
.audio-kopf-bild { position: relative; width: 210px; aspect-ratio: 1; flex: none; border-radius: 12px; overflow: hidden; background: var(--flaeche-fest);
                   box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px var(--schein); }
.audio-kopf-bild img { width: 100%; height: 100%; object-fit: cover; }
.titelliste { list-style: none; padding: 0; margin: 0; }
.titelzeile { display: grid; grid-template-columns: 2.4rem 1fr auto auto auto auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.titelzeile:hover { background: rgba(255, 255, 255, .04); }
.titelzeile.spielt { background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.titelzeile.spielt strong { color: var(--akzent-2); }
.titelzeile .nr { color: var(--gedaempft); text-align: right; font-variant-numeric: tabular-nums; }
.titel-text { display: grid; min-width: 0; } .titel-text strong, .titel-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titel-text small { color: var(--gedaempft); }
.dauer { color: var(--gedaempft); font-variant-numeric: tabular-nums; font-size: .9rem; }
.stern-knopf { opacity: .35; } .stern-knopf.aktiv { opacity: 1; color: var(--gold-hell); }
.menue { position: absolute; z-index: 50; width: 220px; padding: .4rem; border-radius: 10px; background: #111725; border: 1px solid var(--linie);
         box-shadow: 0 16px 40px rgba(0, 0, 0, .6); display: grid; }
.menue button { text-align: left; padding: .5rem .6rem; background: none; border: 0; color: var(--text); border-radius: 6px; cursor: pointer; font: inherit; }
.menue button:hover { background: rgba(255, 255, 255, .06); }
.menue span { padding: .5rem .6rem; }
.spieler { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 88px; display: grid; grid-template-columns: 64px minmax(120px, 260px) 1fr auto;
           gap: 1rem; align-items: center; padding: 0 1.2rem; background: rgba(8, 11, 18, .94); backdrop-filter: blur(12px);
           border-top: 1px solid color-mix(in srgb, var(--akzent) 45%, transparent); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), 0 -1px 24px var(--schein); }
.spieler-cover { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--flaeche-fest); }
.spieler-info { display: grid; min-width: 0; } .spieler-info strong, .spieler-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spieler-info span { color: var(--gedaempft); font-size: .85rem; }
.spieler-mitte { display: grid; gap: .2rem; justify-items: center; }
.spieler-knoepfe { display: flex; gap: .6rem; align-items: center; justify-content: center; }
.spieler .rund.gross { width: 48px; height: 48px; }
.spieler-zeit { display: grid; grid-template-columns: 3.4rem 1fr 3.4rem; gap: .6rem; align-items: center; width: 100%; max-width: 620px; font-size: .8rem; color: var(--gedaempft); font-variant-numeric: tabular-nums; }
.spieler-zeit span:last-child { text-align: right; }
.spieler-rechts { display: flex; gap: .6rem; align-items: center; } .spieler-rechts input { width: 110px; }
.warteschlange { position: fixed; right: 1rem; bottom: 100px; z-index: 41; width: 320px; max-height: 60vh; overflow-y: auto; padding: 1rem; border-radius: 14px;
                 background: #0e1320; border: 1px solid var(--linie); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.warteschlange ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.warteschlange li { display: grid; padding: .4rem .5rem; border-radius: 6px; cursor: pointer; }
.warteschlange li:hover { background: rgba(255, 255, 255, .05); } .warteschlange li.spielt strong { color: var(--akzent-2); }
.warteschlange small { color: var(--gedaempft); }

/* ------------------------------------------------------------ Stories */
.buch-detail .detail-poster { box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(212, 174, 87, .35); }
.buchspieler { margin-top: 1.4rem; padding: 1.4rem; border-radius: 16px; max-width: 640px; border: 1px solid var(--linie);
               background: radial-gradient(circle at 50% 0%, rgba(212, 174, 87, .10), transparent 65%), var(--flaeche); }
.buch-kapitel { font-family: var(--serif); color: var(--akzent-2); margin: 0 0 .6rem; letter-spacing: .04em; }
.welle { display: flex; gap: 3px; align-items: center; height: 56px; margin: .4rem 0 .8rem; }
.welle span { flex: 1; height: 20%; border-radius: 2px; background: linear-gradient(180deg, var(--akzent-2), var(--akzent)); opacity: .55; }
.welle span:nth-child(3n) { height: 55%; } .welle span:nth-child(4n+1) { height: 35%; } .welle span:nth-child(5n+2) { height: 80%; } .welle span:nth-child(7n) { height: 45%; }
.buchspieler.spielt .welle span { animation: welle 1.2s ease-in-out infinite; opacity: .9; }
.buchspieler.spielt .welle span:nth-child(2n) { animation-delay: -.3s; } .buchspieler.spielt .welle span:nth-child(3n) { animation-delay: -.6s; }
.buchspieler.spielt .welle span:nth-child(5n) { animation-delay: -.9s; }
@keyframes welle { 50% { transform: scaleY(.35); } }
.buchspieler .spieler-zeit { max-width: none; }
.buchspieler .spieler-knoepfe { margin: .6rem 0; gap: 1rem; }
.kapitel { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; max-width: 800px; }
.kapitel-knopf { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border-radius: 10px; cursor: pointer;
                 border: 1px solid var(--linie-hell); background: rgba(255, 255, 255, .02); color: var(--text); font: inherit; text-align: left; }
.kapitel-knopf:hover { border-color: var(--akzent); }
.kapitel-knopf.aktiv { border-color: var(--akzent); color: var(--akzent-2); background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.kapitel-knopf small { color: var(--gedaempft); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Memories */
.album-karte { display: grid; gap: .25rem; color: var(--text); }
.album-karte:hover { text-decoration: none; }
.album-bild { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--flaeche-fest); border: 1px solid var(--linie-hell);
              box-shadow: 6px 6px 0 -1px #0c111b, 6px 6px 0 0 var(--linie-hell), 0 12px 30px rgba(0, 0, 0, .5); transition: .25s; }
.album-bild img { width: 100%; height: 100%; object-fit: cover; }
.album-karte:hover .album-bild { border-color: var(--akzent); box-shadow: 6px 6px 0 -1px #0c111b, 6px 6px 0 0 var(--akzent), 0 0 30px var(--schein); }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.foto { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--flaeche-fest); display: block; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.foto:hover img { transform: scale(1.05); }
.video-marke { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem;
               background: radial-gradient(circle, color-mix(in srgb, var(--akzent) 35%, transparent), rgba(0, 0, 0, .6)); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(2, 3, 6, .96); }
.lightbox figure { margin: 0; height: 100vh; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 2rem 0 1rem; min-width: 0; }
.lightbox img, .lightbox video { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; border-radius: 4px; box-shadow: 0 0 80px rgba(46, 196, 182, .15); }
.lightbox figcaption { color: var(--gedaempft); font-size: .9rem; padding-top: .6rem; }
.lb-pfeil, .lb-zu { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 1rem; opacity: .6; }
.lb-pfeil:hover, .lb-zu:hover { opacity: 1; color: var(--akzent-2); }
.lb-zu { position: absolute; top: .5rem; right: .8rem; font-size: 1.6rem; z-index: 2; }

.fuss { text-align: center; padding: 1.4rem; color: var(--gedaempft); font-size: .72rem; letter-spacing: .25em; }

/* ------------------------------------------------------------ Schmal (Handy) */
@media (max-width: 900px) {
  .welten { grid-template-columns: repeat(2, minmax(140px, 1fr)); width: 100%; }
  .audio-app { grid-template-columns: 1fr; gap: .5rem; }
  .audio-nav { position: static; }
  .audio-nav nav { display: flex; flex-wrap: wrap; gap: .3rem; }
  .audio-nav-titel { margin-top: .4rem; }
  .detail-raster { grid-template-columns: 1fr; }
  .detail-poster { max-width: 240px; }
  .party-chat { position: fixed; right: 0; bottom: 0; width: 100%; height: 40vh; }
}
@media (max-width: 720px) {
  .kopf { flex-wrap: wrap; gap: .5rem .9rem; padding: .6rem .9rem; }
  .hauptnav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .kontonav { margin-left: auto; gap: .8rem; }
  .suchfeld { display: none; }
  .titel { font-size: 2.2rem; }
  .formular.reihe, .reihe3 { grid-template-columns: 1fr; }
  .tabelle th:nth-child(2), .tabelle td:nth-child(2) { display: none; }
  .welt-seite { padding: .5rem .9rem 2rem; }
  .held { margin: 0 -.9rem 1rem; padding: 1.5rem 1rem; min-height: 46vh; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1rem .7rem; }
  .raster.quadratisch, .alben-raster { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .schiene { grid-auto-columns: 118px; }
  .foto-raster { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 3px; }
  .episode { grid-template-columns: 120px 1fr; }
  .audio-kopf { flex-direction: column; align-items: flex-start; }
  .audio-kopf-bild { width: 160px; }
  .titelzeile { grid-template-columns: 1.6rem 1fr auto auto; }
  .titelzeile .dauer, .titelzeile .stern-knopf { display: none; }
  body.mit-spieler { --spieler-hoehe: 142px; }
  .spieler { height: 142px; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; padding: .5rem .8rem calc(.5rem + env(safe-area-inset-bottom)); gap: .3rem .8rem; }
  .spieler-knoepfe { gap: .9rem; }
  .audio-nav nav { flex-wrap: nowrap; overflow-x: auto; }
  .audio-nav nav a { white-space: nowrap; }
  .spieler-cover { width: 52px; height: 52px; }
  .spieler-mitte { grid-column: 1 / -1; }
  .spieler-rechts { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-pfeil { position: absolute; top: 50%; transform: translateY(-50%); }
  .lb-pfeil.links { left: 0; } .lb-pfeil.rechts { right: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.sprachwahl { display: flex; justify-content: center; gap: 1rem; font-size: .85rem; margin: .5rem 0 0; }
.sprachwahl a { color: var(--gedaempft); } .sprachwahl a.aktiv { color: var(--gold-hell); }
.befehl { background: #05070b; border: 1px solid var(--linie-hell); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto;
          font: .85rem/1.5 ui-monospace, Consolas, monospace; color: var(--gold-hell); white-space: pre-wrap; }
.schluessel-karte { border-color: var(--gold); box-shadow: 0 0 40px rgba(201, 166, 75, .25); }
.schluessel-text code { font-size: 1.15rem; letter-spacing: .06em; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.verbund-zeile.links { text-align: left; }
.einzel-audio { width: 100%; max-width: 520px; margin: 1rem 0; }
@media (max-width: 720px) { .zweispaltig { grid-template-columns: 1fr; } }
body.player-seite .kopf { display: none; }
.verbund-code summary { cursor: pointer; color: var(--akzent-2); font-size: .85rem; }
.verbund-code code { display: block; margin-top: .3rem; font-size: .75rem; }

/* =====================================================================
   PORTAL-SZENE – Turmstadt, Nebel, Lichtsäule, Runensiegel, vier Elemente
   ===================================================================== */
body.portal-seite { background: #04060b; }
.portal-szene { --px: 0; --py: 0; --tint: 201, 166, 75; position: relative; isolation: isolate; overflow: hidden;
                height: calc(100vh - 61px); height: calc(100svh - 61px); min-height: 620px; }
.portal-szene[data-aktiv="cinema"] { --tint: 139, 92, 246; }
.portal-szene[data-aktiv="audio"] { --tint: 59, 130, 255; }
.portal-szene[data-aktiv="stories"] { --tint: 232, 192, 104; }
.portal-szene[data-aktiv="memories"] { --tint: 46, 196, 182; }
.kulisse, .kulisse > *, .funken, .energie, .elemente { position: absolute; inset: 0; }
.kulisse { z-index: 0; }
.himmel { background:
    radial-gradient(ellipse 34% 46% at 50% 44%, rgba(255, 236, 190, .30), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(40, 64, 120, .55), transparent 75%),
    linear-gradient(180deg, #0b1226 0%, #070b16 55%, #04060b 100%); }
.himmel::after { content: ""; position: absolute; inset: 0; opacity: .0; transition: opacity .6s, background .6s;
                 background: radial-gradient(ellipse 55% 50% at 50% 55%, rgba(var(--tint), .30), transparent 70%); }
.portal-szene[data-aktiv] .himmel::after { opacity: 1; }
.sterne { background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 28% 8%, #fff6, transparent),
            radial-gradient(1.4px 1.4px at 71% 14%, #fff9, transparent), radial-gradient(1px 1px at 86% 26%, #fff5, transparent),
            radial-gradient(1px 1px at 43% 22%, #fff4, transparent), radial-gradient(1.2px 1.2px at 58% 6%, #fff7, transparent),
            radial-gradient(1px 1px at 93% 9%, #fff6, transparent), radial-gradient(1px 1px at 6% 33%, #fff5, transparent);
          animation: funkeln 7s ease-in-out infinite alternate; }
@keyframes funkeln { from { opacity: .45; } to { opacity: 1; } }
div.tor { left: 50% !important; right: auto !important; width: min(34vh, 300px); top: 8% !important; bottom: 21% !important; color: var(--gold);
       transform: translateX(calc(-50% + var(--px) * 10px)); }
.tor-bogen { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(241, 213, 138, .5)); }
.lichtsaeule { position: absolute; left: 50%; top: 66%; bottom: -30%; width: 3px; transform: translateX(-50%);
               background: linear-gradient(180deg, transparent, #fff3cc 18%, #f1d58a 70%, transparent);
               box-shadow: 0 0 14px 4px rgba(241, 213, 138, .55), 0 0 70px 26px rgba(241, 213, 138, .18);
               animation: saeule 5s ease-in-out infinite; }
@keyframes saeule { 50% { box-shadow: 0 0 20px 6px rgba(241, 213, 138, .7), 0 0 110px 40px rgba(241, 213, 138, .26); } }
.stadt { top: auto !important; bottom: 17% !important; height: 82%; width: 44vw; max-width: 720px; object-fit: cover; object-position: left bottom;
         opacity: .96; transform: translateX(calc(var(--px) * -26px)); }
.stadt.rechts { left: auto !important; right: 0; transform: scaleX(-1) translateX(calc(var(--px) * -26px)); }
.nebel { top: auto !important; height: 46%; bottom: 8% !important; left: -20% !important; right: -20% !important; filter: blur(30px); }
.nebel-1 { background: radial-gradient(ellipse 30% 40% at 25% 70%, rgba(190, 205, 235, .30), transparent 70%),
                       radial-gradient(ellipse 25% 35% at 70% 75%, rgba(200, 215, 240, .24), transparent 70%);
           animation: nebelzug 38s linear infinite alternate; }
.nebel-2 { background: radial-gradient(ellipse 35% 30% at 55% 80%, rgba(230, 220, 200, .22), transparent 70%),
                       radial-gradient(ellipse 20% 30% at 10% 85%, rgba(200, 215, 240, .2), transparent 70%);
           animation: nebelzug 52s linear infinite alternate-reverse; }
@keyframes nebelzug { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.boden { top: auto !important; height: 21%; background: linear-gradient(180deg, rgba(10, 14, 26, .2), #04060b 85%); }
.boden .spiegel { position: absolute; left: 8%; right: 8%; top: 0; height: 1px;
                  background: linear-gradient(90deg, transparent, rgba(241, 213, 138, .6), transparent); box-shadow: 0 0 18px rgba(241, 213, 138, .45); }
.boden::after { content: ""; position: absolute; left: 50%; top: 0; width: 26%; height: 70%; transform: translateX(-50%);
                background: radial-gradient(ellipse 50% 60% at 50% 0, rgba(241, 213, 138, .28), transparent 70%); }
.wanderer { inset: auto !important; left: 50% !important; bottom: 18.5% !important; width: 16px; height: 42px; transform: translateX(-50%); opacity: .9; }
.funken { z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.energie { z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.energie .linie { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .35; stroke-dasharray: 6 10;
                  animation: energiefluss 2.6s linear infinite; transition: opacity .3s, stroke-width .3s; }
.linie-cinema { stroke: #a78bfa; } .linie-audio { stroke: #3b82ff; } .linie-stories { stroke: #e8c068; } .linie-memories { stroke: #2ec4b6; }
.portal-szene[data-aktiv="cinema"] .linie-cinema, .portal-szene[data-aktiv="audio"] .linie-audio,
.portal-szene[data-aktiv="stories"] .linie-stories, .portal-szene[data-aktiv="memories"] .linie-memories
  { opacity: 1; stroke-width: 2.4; animation-duration: .9s; filter: drop-shadow(0 0 4px currentColor); }
@keyframes energiefluss { to { stroke-dashoffset: -32; } }

.portal-mitte { position: absolute; z-index: 3; left: 50%; top: 6%; width: min(54vh, 470px); aspect-ratio: 1;
                transform: translateX(calc(-50% + var(--px) * 12px)) translateY(calc(var(--py) * 8px)); display: grid; place-items: center; }
.runensiegel { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); filter: drop-shadow(0 0 8px rgba(241, 213, 138, .35)); }
.runensiegel .ring { transform-box: view-box; transform-origin: 50% 50%; }
.ring-aussen { animation: drehen 140s linear infinite; }
.ring-runen { animation: drehen 90s linear infinite reverse; }
.ring-innen { animation: drehen 60s linear infinite; }
.runensiegel .kern { transform-box: view-box; transform-origin: 50% 50%; animation: kernpuls 4.5s ease-in-out infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes kernpuls { 50% { opacity: .75; transform: scale(.96); } }
.portal-titel { position: relative; text-align: center; margin-top: 4%; padding: .4rem 1.4rem;
                background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(5, 8, 16, .75), transparent 75%); }
.portal-titel .titel { font-size: clamp(3rem, 9vh, 6rem); text-shadow: 0 0 40px rgba(241, 213, 138, .35); }
.portal-titel .motto { margin: .3rem 0 0; font-size: clamp(.7rem, 1.6vh, .95rem); }

.elemente { z-index: 4; pointer-events: none; }
.element { position: absolute; pointer-events: auto; display: grid; justify-items: center; gap: .25rem; width: 240px;
           transform: translate(-50%, -50%); color: var(--text); text-align: center; --farbe: 201, 166, 75; }
.element:hover, .element:focus-visible { text-decoration: none; }
.element:focus-visible { outline: none; }
.el-cinema   { left: 15%; top: 60%; --farbe: 167, 139, 250; --farbe-2: 34, 211, 238; }
.el-audio    { left: 33%; top: 71%; --farbe: 59, 130, 255; --farbe-2: 124, 196, 255; }
.el-stories  { left: 67%; top: 71%; --farbe: 232, 192, 104; --farbe-2: 246, 220, 154; }
.el-memories { left: 85%; top: 60%; --farbe: 46, 196, 182; --farbe-2: 154, 240, 230; }
.element-glyphe { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
                  color: rgb(var(--farbe-2)); border: 1px solid rgba(var(--farbe), .85);
                  background: radial-gradient(circle at 50% 40%, rgba(var(--farbe), .35), rgba(5, 7, 11, .85) 70%);
                  box-shadow: 0 0 22px rgba(var(--farbe), .45), inset 0 0 18px rgba(var(--farbe), .35);
                  transition: transform .35s, box-shadow .35s; animation: schweben 6s ease-in-out infinite; }
.el-audio .element-glyphe { animation-delay: -1.5s; } .el-stories .element-glyphe { animation-delay: -3s; }
.el-memories .element-glyphe { animation-delay: -4.5s; }
.element-glyphe::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(var(--farbe), .5);
                          animation: drehen 24s linear infinite; }
.element-glyphe::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; opacity: 0; transition: opacity .35s;
                         background: radial-gradient(circle, rgba(var(--farbe), .35), transparent 70%); }
.element-glyphe svg { width: 50px; height: 50px; filter: drop-shadow(0 0 6px rgba(var(--farbe), .8)); }
@keyframes schweben { 50% { transform: translateY(-7px); } }
.element-sockel { position: absolute; left: 50%; top: 92px; width: 2px; height: 17vh; transform: translateX(-50%); z-index: -1;
                  background: linear-gradient(180deg, rgba(var(--farbe), .55), transparent); }
.element-sockel::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 16px; transform: translate(-50%, 50%);
                         border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--farbe), .35), transparent 70%); }
.element-name { font-family: var(--serif); letter-spacing: .14em; font-size: 1rem; color: rgb(var(--farbe-2));
                text-shadow: 0 0 12px rgba(var(--farbe), .7), 0 1px 3px #000; margin-top: .45rem; }
.element-info { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #c3cad8; text-shadow: 0 1px 3px #000; }
.element:hover .element-glyphe, .element:focus-visible .element-glyphe
  { transform: scale(1.1); box-shadow: 0 0 46px rgba(var(--farbe), .85), inset 0 0 26px rgba(var(--farbe), .55); animation-play-state: paused; }
.element:hover .element-glyphe::after, .element:focus-visible .element-glyphe::after { opacity: 1; }
.element:focus-visible .element-glyphe { outline: 2px solid rgb(var(--farbe-2)); outline-offset: 12px; }

.portal-unten { width: min(1200px, 100%); margin: 0 auto; padding: 1rem 1.4rem 2.5rem; }
.portal-unten .hinweis, .portal-unten .verbund-zeile { text-align: center; }

/* Handy / niedrige Fenster: Elemente als 2×2-Raster unter dem Siegel */
@media (max-width: 760px), (max-height: 560px) {
  .portal-szene { height: auto; min-height: 0; padding: 1.5rem 1rem 2rem; display: grid; justify-items: center; gap: 1.4rem; }
  .portal-mitte { position: relative; left: auto; top: auto; transform: none; width: min(78vw, 340px); }
  .energie, .element-sockel, .wanderer { display: none; }
  .stadt { width: 70vw; height: 70%; bottom: 25% !important; opacity: .55; }
  div.tor { width: 46vw; top: 2% !important; bottom: 45% !important; }
  .elemente { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem .6rem; width: 100%; }
  .element { position: static; transform: none; width: auto; }
  .element-glyphe { width: 78px; height: 78px; }
  .element-glyphe svg { width: 42px; height: 42px; }
}

/* =====================================================================
   BEREICHE – an die Vorlagen angelehnt, abstrahiert
   ===================================================================== */
body { position: relative; z-index: 0; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.nav-glyphe { width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: .35em; opacity: .8; }
.hauptnav a:hover .nav-glyphe, body.welt-cinema .nav-cinema .nav-glyphe, body.welt-audio .nav-audio .nav-glyphe,
body.welt-stories .nav-stories .nav-glyphe, body.welt-memories .nav-memories .nav-glyphe { opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
.kontonav .nav-glyphe { margin: 0; width: 1.3em; height: 1.3em; }
.welt-glyphe { float: left; width: 58px; height: 58px; margin: .2rem 1rem 0 0; color: var(--akzent-2);
               filter: drop-shadow(0 0 10px var(--schein)); }
.welt-kopf::after { content: ""; display: block; clear: both; }

/* ---------- Lichtspiel: Lichtbogen und Strahl (Vorlage: goldene Stadt), violett-cyan */
body.welt-cinema::before { background:
    radial-gradient(ellipse 18% 70% at 50% 0%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(139, 92, 246, .22), transparent 70%),
    linear-gradient(90deg, transparent 49.85%, rgba(196, 181, 253, .22) 50%, transparent 50.15%); }
body.welt-cinema .welt-kopf { position: relative; padding-top: 2rem; }
body.welt-cinema .poster:hover .poster-bild { border-color: transparent;
    box-shadow: 0 0 0 1px #a78bfa, 0 0 0 2px rgba(34, 211, 238, .5), 0 14px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(139, 92, 246, .45); }
body.welt-cinema .held::after { background: linear-gradient(90deg, rgba(5, 7, 11, .95) 0%, rgba(5, 7, 11, .65) 45%, rgba(20, 10, 40, .15) 100%),
    linear-gradient(0deg, var(--nacht) 0%, transparent 45%); }

/* ---------- Klang: holografisches Glas, Neon, Raster (Vorlage: Audioplayer) */
body.welt-audio { --glas: rgba(10, 18, 44, .55); --neon-a: #3b82ff; --neon-b: #a855f7; --neon-c: #22d3ee; }
body.welt-audio::before { background:
    linear-gradient(rgba(59, 130, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(59, 130, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(34, 211, 238, .22), transparent 2.2%, transparent 97.8%, rgba(168, 85, 247, .22)),
    radial-gradient(ellipse 50% 40% at 70% 0%, rgba(168, 85, 247, .16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 100%, rgba(34, 211, 238, .10), transparent 70%); }
body.welt-audio .audio-nav, body.welt-audio .audio-inhalt { position: relative; padding: 1.2rem; border-radius: 18px; background: var(--glas);
    border: 1px solid rgba(124, 196, 255, .28); backdrop-filter: blur(10px);
    box-shadow: inset 0 0 30px rgba(59, 130, 255, .08), 0 0 0 1px rgba(168, 85, 247, .08), 0 20px 60px rgba(0, 0, 0, .4); }
body.welt-audio .audio-inhalt::before, body.welt-audio .audio-inhalt::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
body.welt-audio .audio-inhalt::before { top: -1px; left: -1px; border-top: 2px solid var(--neon-c); border-left: 2px solid var(--neon-c); border-radius: 18px 0 0 0; }
body.welt-audio .audio-inhalt::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--neon-b); border-right: 2px solid var(--neon-b); border-radius: 0 0 18px 0; }
body.welt-audio .audio-kopf-bild { border: 1px solid rgba(124, 196, 255, .6);
    box-shadow: 0 0 0 4px rgba(10, 18, 44, .8), 0 0 40px rgba(59, 130, 255, .45), 0 0 80px rgba(168, 85, 247, .25); }
body.welt-audio .audio-kopf h1 { background: linear-gradient(90deg, #e8f1ff, #9cc8ff 60%, #d8b4fe); -webkit-background-clip: text;
    background-clip: text; color: transparent; }
body.welt-audio .titelzeile.spielt { background: linear-gradient(90deg, rgba(59, 130, 255, .22), rgba(168, 85, 247, .08) 70%, transparent);
    box-shadow: inset 2px 0 0 var(--neon-c); }
body.welt-audio .poster-bild { border-color: rgba(124, 196, 255, .18); }
body.welt-audio .poster:hover .poster-bild { border-color: var(--neon-a); box-shadow: 0 0 26px rgba(59, 130, 255, .45), 0 0 60px rgba(168, 85, 247, .18); }
body.welt-audio .spieler { background: linear-gradient(180deg, rgba(14, 22, 52, .88), rgba(6, 10, 26, .94)); border-top: 0;
    box-shadow: 0 -1px 0 rgba(124, 196, 255, .5), 0 -14px 40px rgba(59, 130, 255, .18), 0 -2px 30px rgba(168, 85, 247, .15); }
body.welt-audio .spieler::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, var(--neon-c), var(--neon-a) 45%, var(--neon-b)); }
.spieler-etikett { position: absolute; top: 6px; left: 1.2rem; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: #7cc4ff; opacity: .8; }
body.welt-audio .spieler { grid-template-columns: 64px minmax(120px, 260px) 1fr auto; padding-top: 10px; }
.sp-welle { display: flex; gap: 2px; align-items: center; height: 16px; width: 100%; max-width: 620px; opacity: .55; }
.sp-welle span { flex: 1; height: 25%; border-radius: 1px; background: linear-gradient(180deg, #22d3ee, #3b82ff 55%, #a855f7);
                 transform-origin: center; transition: height .3s; }
.sp-welle span:nth-child(3n) { height: 55%; } .sp-welle span:nth-child(5n+1) { height: 80%; } .sp-welle span:nth-child(7n+2) { height: 40%; }
body.klingt .sp-welle { opacity: 1; filter: drop-shadow(0 0 4px rgba(59, 130, 255, .7)); }
body.klingt .sp-welle span { animation: wellenschlag 1.1s ease-in-out infinite; }
body.klingt .sp-welle span:nth-child(2n) { animation-delay: -.35s; } body.klingt .sp-welle span:nth-child(3n) { animation-delay: -.7s; }
body.klingt .sp-welle span:nth-child(5n) { animation-delay: -.2s; animation-duration: .8s; }
@keyframes wellenschlag { 50% { transform: scaleY(.3); } }
body.welt-audio input[type=range] { accent-color: #7cc4ff; }

/* ---------- Bücher: Gold, Ornamente, ruhige Wellenform (Vorlage: Hörbuchplayer) */
body.welt-stories::before { background:
    radial-gradient(ellipse 45% 40% at 25% 20%, rgba(212, 174, 87, .10), transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 90%, rgba(212, 174, 87, .07), transparent 70%),
    linear-gradient(180deg, #0b1020, #070a12); }
.zierrahmen { border: 14px solid transparent; border-image: url("/static/bilder/rahmen.svg") 30 stretch; background-clip: padding-box; }
.buch-cover { position: relative; aspect-ratio: 1; background: #0b0f1a; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 70px rgba(212, 174, 87, .22); }
.buch-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buchkarte .poster-bild.zierrahmen { border-radius: 0; border-width: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.buchkarte:hover .poster-bild.zierrahmen { box-shadow: 0 0 34px rgba(212, 174, 87, .45); }
body.welt-stories h1 { font-family: var(--serif); letter-spacing: .04em; }
.buchspieler { max-width: 760px; padding: 1.4rem 1.6rem; border-radius: 16px; border: 1px solid rgba(212, 174, 87, .35);
               background: linear-gradient(180deg, rgba(20, 24, 38, .9), rgba(10, 13, 22, .92));
               box-shadow: inset 0 1px 0 rgba(246, 220, 154, .08), 0 20px 60px rgba(0, 0, 0, .45); }
.buch-kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.buch-kapitelnr { margin: 0; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--akzent); }
.buch-kapitel { margin: .15rem 0 0; font-size: 1.45rem; color: var(--text); }
.buch-zeit { margin: 0; color: var(--gedaempft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.welle { position: relative; display: flex; gap: 2px; align-items: center; height: 84px; margin: 1rem 0 .4rem; cursor: pointer; }
.welle span { flex: 1; border-radius: 1px; background: rgba(212, 174, 87, .28); height: 30%; animation: none !important; opacity: 1;
              transform: none !important; transition: background .3s; }
.welle .h0 { height: 18%; } .welle .h1 { height: 34%; } .welle .h2 { height: 52%; } .welle .h3 { height: 26%; } .welle .h4 { height: 70%; }
.welle .h5 { height: 44%; } .welle .h6 { height: 88%; } .welle .h7 { height: 38%; } .welle .h8 { height: 60%; }
.welle span.vorbei { background: linear-gradient(180deg, #fff0c2, #d4ae57); box-shadow: 0 0 6px rgba(212, 174, 87, .5); }
.welle-kopf { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: #fff3cc;
              box-shadow: 0 0 10px 2px rgba(246, 220, 154, .8); pointer-events: none; }
.welle-kopf::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
                      transform: translateX(-50%); background: #fff3cc; box-shadow: 0 0 12px #f6dc9a; }
.buchspieler.spielt .welle span.vorbei:nth-last-child(-n+200) { animation: none; }
.buchspieler .spieler-zeit { grid-template-columns: 0 1fr 4rem; }
.steuerung { display: flex; justify-content: center; align-items: flex-start; gap: clamp(.6rem, 3vw, 2.2rem); margin: .8rem 0 1rem; }
.steuer { display: grid; justify-items: center; gap: .35rem; color: var(--gedaempft); font-size: .72rem; cursor: pointer; }
.steuer.haupt .rund.gross { width: 72px; height: 72px; font-size: 1.5rem; border: 2px solid var(--akzent);
    background: radial-gradient(circle, rgba(212, 174, 87, .28), rgba(10, 13, 22, .9) 70%); box-shadow: 0 0 30px rgba(212, 174, 87, .45); }
.buch-werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .4rem; }
.buch-werte div { display: grid; gap: .1rem; padding: .6rem .8rem; border-radius: 10px; border: 1px solid rgba(212, 174, 87, .18); background: rgba(5, 7, 11, .4); }
.buch-werte small { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gedaempft); }
.buch-werte strong { color: var(--akzent-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.buch-zitat { text-align: center; margin: 2.5rem auto 0; max-width: 640px; font-family: var(--serif); font-style: italic; color: var(--gedaempft); }
.buch-zitat::before, .buch-zitat::after { content: "❝"; color: var(--akzent); margin: 0 .6rem; font-style: normal; }
.buch-zitat::after { content: "❞"; }
body.welt-stories .kapitel-knopf.aktiv { box-shadow: inset 3px 0 0 var(--akzent); }

/* ---------- Erinnerungen: Kristallsplitter, Türkis */
body.welt-memories::before { background:
    linear-gradient(115deg, transparent 47%, rgba(154, 240, 230, .06) 50%, transparent 53%) 0 0 / 640px 640px,
    linear-gradient(65deg, transparent 48%, rgba(46, 196, 182, .05) 50%, transparent 52%) 120px 80px / 520px 520px,
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(46, 196, 182, .14), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(154, 240, 230, .08), transparent 70%); }
body.welt-memories .album-bild { clip-path: polygon(0 4%, 96% 0, 100% 96%, 4% 100%); border-radius: 4px; }
body.welt-memories .album-karte:hover .album-bild { filter: drop-shadow(0 0 18px rgba(46, 196, 182, .5)); }
body.welt-memories .foto { border-radius: 3px; }
body.welt-memories .foto:hover { box-shadow: 0 0 0 1px #2ec4b6, 0 0 20px rgba(46, 196, 182, .4); }

@media (max-width: 720px) {
  .welt-glyphe { width: 42px; height: 42px; }
  .nav-glyphe { display: none; }
  .kontonav .nav-glyphe { display: inline; }
  body.welt-audio .audio-nav, body.welt-audio .audio-inhalt { padding: .8rem; }
  .spieler-etikett { display: none; }
  .sp-welle { height: 10px; }
  .buch-kopfzeile { flex-direction: column; align-items: flex-start; }
  .buch-werte { grid-template-columns: 1fr 1fr 1fr; }
  .steuer span { font-size: .62rem; }
  .welle { height: 60px; }
}
body.welt-audio.mit-spieler { --spieler-hoehe: 108px; }
body.welt-audio .spieler { height: 108px; }
.steuer { grid-template-rows: 72px auto; align-items: center; }
@media (max-width: 720px) { body.welt-audio.mit-spieler { --spieler-hoehe: 150px; } body.welt-audio .spieler { height: 150px; } }

/* =====================================================================
   E-BOOK-READER – drei Lesethemen, ruhige Typografie
   ===================================================================== */
body.lesemodus { --lese-hg: #0b0e17; --lese-text: #e6e1d3; --lese-gedaempft: #8e95a5; --lese-akzent: #d4ae57; --lesegroesse: 112%; }
body.lesemodus[data-thema="sepia"] { --lese-hg: #f3e7cf; --lese-text: #3b2f1e; --lese-gedaempft: #7b6a52; --lese-akzent: #9a6b17; }
body.lesemodus[data-thema="papier"] { --lese-hg: #fbfaf6; --lese-text: #1d1d1f; --lese-gedaempft: #6b6b70; --lese-akzent: #8a6a1c; }
body.lesemodus { background: var(--lese-hg); color: var(--lese-text); }
body.lesemodus::before { display: none; }
body.lesemodus .kopf { display: none; }
.leseleiste { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem;
              background: color-mix(in srgb, var(--lese-hg) 88%, transparent); backdrop-filter: blur(8px);
              border-bottom: 1px solid color-mix(in srgb, var(--lese-akzent) 30%, transparent); }
.lese-zurueck { font-size: 1.4rem; color: var(--lese-text); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.lese-zurueck:hover { background: color-mix(in srgb, var(--lese-akzent) 15%, transparent); text-decoration: none; }
.lese-titel { display: grid; flex: 1; min-width: 0; }
.lese-titel strong, .lese-titel small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lese-titel strong { font-family: var(--serif); letter-spacing: .03em; }
.lese-titel small { color: var(--lese-gedaempft); }
.lese-einstellungen { display: flex; gap: .4rem; }
body.lesemodus .rund { color: var(--lese-text); border-color: color-mix(in srgb, var(--lese-text) 25%, transparent); background: transparent; }
body.lesemodus .rund:hover { border-color: var(--lese-akzent); color: var(--lese-akzent); }
.lese-fortschritt { position: sticky; top: 57px; z-index: 19; height: 2px; background: color-mix(in srgb, var(--lese-text) 10%, transparent); }
.lese-fortschritt .balken-wert { background: var(--lese-akzent); box-shadow: none; }
.lese-raum { width: min(42em, 100%); margin: 0 auto; padding: 1.5rem 1.2rem 3rem; flex: 1; font-size: var(--lesegroesse); }
.inhaltsverzeichnis { font-size: .85rem; margin-bottom: 1.5rem; border: 1px solid color-mix(in srgb, var(--lese-akzent) 30%, transparent);
                      border-radius: 10px; padding: .5rem .9rem; }
.inhaltsverzeichnis summary { cursor: pointer; color: var(--lese-akzent); letter-spacing: .08em; }
.inhaltsverzeichnis ol { margin: .6rem 0 .2rem; padding-left: 1.4rem; max-height: 50vh; overflow-y: auto; }
.inhaltsverzeichnis li { margin: .25rem 0; } .inhaltsverzeichnis li.aktiv a { color: var(--lese-akzent); font-weight: 600; }
.inhaltsverzeichnis a { color: var(--lese-text); }
.lesetext { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
            line-height: 1.72; hyphens: auto; overflow-wrap: break-word; text-align: justify; }
body[data-schrift="sans"] .lesetext { font-family: var(--sans); text-align: left; }
.lesetext h1, .lesetext h2, .lesetext h3 { font-family: var(--serif); color: var(--lese-text); text-align: center; line-height: 1.3; margin: 1.6em 0 .9em; }
.lesetext h1 { font-size: 1.6em; } .lesetext h2 { font-size: 1.35em; } .lesetext h3 { font-size: 1.15em; }
.lesetext p { margin: 0 0 .9em; }
.lesetext p + p { text-indent: 1.3em; }
.lesetext img { display: block; max-width: 100%; height: auto; margin: 1.2em auto; border-radius: 4px; }
.lesetext a { color: var(--lese-akzent); }
.lesetext blockquote { margin: 1em 1.5em; font-style: italic; color: var(--lese-gedaempft); }
.lesetext hr { border: 0; text-align: center; margin: 2em 0; }
.lesetext hr::after { content: "❧"; color: var(--lese-akzent); }
.lesetext table { border-collapse: collapse; margin: 1em 0; font-size: .9em; }
.lesetext td, .lesetext th { border: 1px solid color-mix(in srgb, var(--lese-text) 25%, transparent); padding: .3em .5em; }
.lese-blaettern { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem;
                  border-top: 1px solid color-mix(in srgb, var(--lese-akzent) 30%, transparent); font-size: .9rem; }
body.lesemodus[data-thema="sepia"] .knopf, body.lesemodus[data-thema="papier"] .knopf { color: var(--lese-akzent); }
body.lesemodus[data-thema="sepia"] .knopf.zweit, body.lesemodus[data-thema="papier"] .knopf.zweit { color: var(--lese-text); }
.pdf-raum { flex: 1; overflow: auto; display: grid; justify-items: center; align-content: start; padding: 1rem .5rem 5rem; }
.pdf-raum canvas { max-width: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); background: #fff; }
.pdf-steuerung { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: .5rem;
                 padding: .45rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--lese-hg) 90%, transparent);
                 border: 1px solid color-mix(in srgb, var(--lese-akzent) 40%, transparent); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.pdf-seitenwahl { display: flex; align-items: center; gap: .3rem; color: var(--lese-text); font-size: .9rem; }
.pdf-seitenwahl input { width: 4.2rem; padding: .3rem .4rem; text-align: center; background: transparent; color: var(--lese-text); }
@media (max-width: 720px) { .lese-einstellungen .rund.klein { width: 32px; height: 32px; } .lese-titel small { display: none; } .lesetext { text-align: left; } }

/* ---------- Portal 2: Hextech – Messing, Kristallenergie, Waben (überschreibt oben) */
.runensiegel { filter: none; overflow: visible; }
.waben { background: url("/static/bilder/waben.svg") center / 84px auto; opacity: .09;
         -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, #000 20%, transparent 75%);
         mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, #000 20%, transparent 75%); animation: wabenpuls 8s ease-in-out infinite; }
@keyframes wabenpuls { 50% { opacity: .16; } }
.portal-szene[data-aktiv] .waben { opacity: .2; }
.element { width: 260px; }
.element-glyphe { width: 124px; height: 124px; border: 0; border-radius: 0; background: none;
                  box-shadow: none; filter: drop-shadow(0 0 16px rgba(var(--farbe), .55)); }
.element-glyphe::before { display: none; }
.element-glyphe::after { inset: -10px; }
.hexrahmen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hex-flaeche { fill: rgba(var(--farbe), .2); stroke: none; }
.hex-akzent { stroke: rgb(var(--farbe-2)); opacity: .8; }
.element-glyphe .glyphe { position: relative; width: 58px; height: 58px; filter: drop-shadow(0 0 8px rgba(var(--farbe), .9)); }
.element:hover .element-glyphe, .element:focus-visible .element-glyphe
  { transform: scale(1.1); box-shadow: none; filter: drop-shadow(0 0 30px rgba(var(--farbe), .95)); }
.element:hover .hex-flaeche { fill: rgba(var(--farbe), .38); }
.element-sockel { top: 124px; }
.element-name { font-size: 1.15rem; margin-top: .6rem; }
.element-info { font-size: .76rem; }
.lichtsaeule { background: linear-gradient(180deg, transparent, #e6fbff 15%, #f1d58a 60%, transparent);
               box-shadow: 0 0 14px 4px rgba(241, 213, 138, .5), 0 0 60px 20px rgba(94, 231, 255, .14); }
@media (max-width: 760px), (max-height: 560px) {
  .element { width: auto; }
  .element-glyphe { width: 96px; height: 96px; }
  .element-glyphe .glyphe { width: 44px; height: 44px; }
}
.element-glyphe svg.hexrahmen { width: 100%; height: 100%; filter: none; }

/* ---------------------------------------------------------------- Gliederung: Reiter, Sortierung, Register */
.reiter { display: flex; flex-wrap: wrap; gap: .2rem; margin: .4rem 0 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.reiter-eintrag { padding: .65rem 1.1rem; color: var(--text-2, #b9bfd0); border-bottom: 2px solid transparent; margin-bottom: -1px;
  letter-spacing: .04em; transition: color .2s, border-color .2s; }
.reiter-eintrag small { opacity: .55; margin-left: .25rem; font-size: .8em; }
.reiter-eintrag:hover { color: var(--akzent-2); }
.reiter-eintrag.aktiv { color: var(--akzent-2); border-bottom-color: var(--akzent); text-shadow: 0 0 12px var(--schein); }
.sortierung { align-items: center; margin-bottom: .6rem; }
.register-leiste { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: .15rem; padding: .45rem .5rem;
  margin: 0 0 1rem; background: rgba(8, 10, 20, .82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; }
.register-leiste a, .register-leiste button { min-width: 2rem; padding: .25rem .45rem; border-radius: 6px; text-align: center;
  font: inherit; font-size: .85rem; color: var(--text-2, #b9bfd0); background: none; border: 0; cursor: pointer; }
.register-leiste a:hover, .register-leiste button:hover { color: #0b0d18; background: var(--akzent); }
.register-abschnitt { scroll-margin-top: 130px; }
.register-buchstabe { font-family: var(--schrift-titel, serif); font-size: 1.6rem; letter-spacing: .08em; color: var(--akzent);
  border-bottom: 1px solid color-mix(in srgb, var(--akzent) 30%, transparent); padding-bottom: .3rem; margin: 1.4rem 0 .9rem; }
.reihe-block h2 a { color: inherit; }
.reihe-block h2 a::after { content: " ›"; opacity: .6; }
.reihe-block h3 { font-size: 1rem; color: var(--akzent-2); margin: .6rem 0 .6rem; }
.audio-inhalt .register-leiste { top: 0; }
@media (max-width: 700px) { .reiter-eintrag { padding: .5rem .7rem; } .register-leiste { top: 56px; } }
.reihe4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .9rem; align-items: end; }
@media (max-width: 700px) { .reihe4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Startseite persönlich anordnen (beide Designs) */
.anordnen-knopf { position: absolute; z-index: 7; left: 1.2rem; bottom: 1.2rem; padding: .4rem .9rem; border-radius: 999px;
                  border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 10, 20, .45); color: rgba(255, 245, 225, .8);
                  font: inherit; font-size: .85rem; cursor: pointer; backdrop-filter: blur(6px); opacity: .7; transition: opacity .3s; }
.anordnen-knopf:hover, .anordnen-knopf:focus-visible { opacity: 1; }
.anordnen-leiste { position: absolute; z-index: 8; left: 50%; top: 1rem; translate: -50% 0; display: flex; flex-wrap: wrap; gap: .5rem;
                   align-items: center; justify-content: center; padding: .55rem .8rem; border-radius: 14px;
                   background: rgba(12, 10, 18, .82); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
                   box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.anordnen-leiste[hidden], .anordnen-feld[hidden], .anordnen-knopf[hidden] { display: none; }
.anordnen-hinweis { font-size: .85rem; color: rgba(255, 240, 215, .85); margin-right: .4rem; }
.anordnen-modus .element, .anordnen-modus .zeichen-ort { cursor: grab; touch-action: none; animation: none; }
.anordnen-modus .element:active, .anordnen-modus .zeichen-ort:active { cursor: grabbing; }
.anordnen-modus .element { outline: 1px dashed rgba(var(--farbe), .7); outline-offset: 8px; border-radius: 14px; }
.element.versteckt, .zeichen-ort.versteckt { display: none; }
.anordnen-modus .element.versteckt, .anordnen-modus .zeichen-ort.versteckt { display: grid; opacity: .35; }
.element { scale: var(--el-mass, 1); }
.element.gr-s, .zeichen-ort.gr-s { scale: calc(.78 * var(--el-mass, 1)); }
.element.gr-l, .zeichen-ort.gr-l { scale: calc(1.3 * var(--el-mass, 1)); }
.anordnen-feld { position: absolute; z-index: 9; width: 270px; display: grid; gap: .7rem; padding: 1rem; border-radius: 14px;
                 background: rgba(14, 12, 20, .94); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
                 color: var(--text); font-size: .9rem; }
.anordnen-feld label { display: grid; gap: .3rem; }
.anordnen-feld input[type=text] { width: 100%; }
.anordnen-farben { display: flex; flex-wrap: wrap; gap: .4rem; }
.farbpunkt { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0;
             color: var(--text); font-size: .8rem; background: transparent; }
.farbpunkt.an { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.farbe-gold { background: rgb(255, 214, 150); } .farbe-violett { background: rgb(196, 170, 255); } .farbe-blau { background: rgb(130, 205, 255); }
.farbe-tuerkis { background: rgb(130, 240, 215); } .farbe-rose { background: rgb(255, 150, 190); } .farbe-gruen { background: rgb(160, 230, 130); }
.farbe-rot { background: rgb(255, 120, 100); } .farbe-silber { background: rgb(225, 230, 245); }
.anordnen-groessen { display: flex; gap: .3rem; }
.anordnen-groessen button { flex: 1; padding: .35rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18);
                            background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; cursor: pointer; }
.anordnen-groessen button.an { border-color: var(--gold, #f1d58a); color: var(--gold, #f1d58a); }
.anordnen-feld .schalter-zeile { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 760px) { .anordnen-leiste { position: fixed; top: auto; bottom: .8rem; } .anordnen-feld { position: fixed; left: 50% !important; top: 30% !important; translate: -50% 0; } }

/* ============================================================ Menü (Sandwich) – Handy und schmale Fenster */
.kopf-menue { display: contents; }
.menue-knopf, .menue-schleier, .nur-menue { display: none; }
@media (max-width: 820px) {
  /* backdrop-filter würde das feste Menü an die Kopfzeile binden (es läge dann außerhalb und verbreitert die Seite) */
  .kopf, html body .kopf { flex-wrap: nowrap; gap: .6rem; padding: .55rem .9rem; padding-top: max(.55rem, env(safe-area-inset-top)); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .kopf:not(.gescrollt) { background-color: rgba(5, 7, 11, .9); }
  html, body { overflow-x: clip; }
  .marke { margin-right: auto; }
  .menue-knopf { display: inline-grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; margin-right: -6px;
                 background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
  .menue-knopf span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
  .kopf.offen .menue-knopf span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .kopf.offen .menue-knopf span:nth-child(2) { opacity: 0; }
  .kopf.offen .menue-knopf span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .kopf-menue { display: flex; flex-direction: column; gap: 1.4rem; position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); z-index: 41;
           padding: calc(4.2rem + env(safe-area-inset-top)) 1.4rem calc(1.6rem + env(safe-area-inset-bottom)); overflow-y: auto;
           background: rgba(8, 10, 16, .97); border-left: 1px solid var(--linie); box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
           transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
  .kopf.offen .kopf-menue { transform: none; visibility: visible; }
  .menue-knopf { position: relative; z-index: 42; }
  .menue-schleier { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .kopf.offen .menue-schleier { opacity: 1; pointer-events: auto; }
  body.menue-offen { overflow: hidden; }
  .kopf-menue .hauptnav, .kopf-menue .kontonav { order: 0; flex: none; flex-direction: column; align-items: stretch; gap: .2rem; margin: 0; flex-basis: auto; }
  .kopf-menue .hauptnav a, .kopf-menue .kontonav a, .kopf-menue .kontonav .link { display: flex; align-items: center; gap: .8rem; padding: .8rem .6rem; font-size: 1.1rem;
           border-radius: 10px; opacity: 1; color: var(--text); text-align: left; width: 100%; }
  .kopf-menue .hauptnav a:hover, .kopf-menue .kontonav a:hover { background: rgba(255, 255, 255, .05); }
  .kopf-menue .nav-glyphe { width: 1.4rem; height: 1.4rem; }
  .kopf-menue .kontonav { border-top: 1px solid var(--linie); padding-top: 1rem; }
  .kopf-menue .suchfeld { display: block; order: -1; margin-bottom: .6rem; }
  .kopf-menue .suchfeld input { width: 100%; padding: .75rem 1rem; font-size: 1rem; }
  .kopf-menue .kontonav form.inline { display: block; }
  .nur-menue { display: inline; }
  a.nur-menue { display: flex; }
}

/* ============================================================ Startseite auf dem Handy: Vollbild */
@media (max-width: 820px) {
  html body.portal-seite .kopf { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent);
                            border-bottom: 0; backdrop-filter: none; }
  body.portal-seite .kopf .marke { visibility: hidden; }
  body.portal-seite .fuss { display: none; }
  body.portal-seite .portal-szene, body.portal-seite .baum-szene { min-height: 100vh; min-height: 100dvh; }
  body.portal-seite .portal-szene { align-content: center; padding-top: calc(3.4rem + env(safe-area-inset-top)); }
  body.portal-seite .baum-szene { align-content: center; padding-top: calc(3rem + env(safe-area-inset-top)); padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  body.portal-seite .portal-unten { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  body.portal-seite .portal-unten:empty { display: none; }
}
@media (display-mode: fullscreen), (display-mode: standalone) {
  body.portal-seite { overscroll-behavior: none; }
}

/* ============================================================ Übersichten großformatig (Bühne + Reihen) */
.welt-seite.mit-buehne { width: 100%; padding: 0 0 3rem; }
.welt-seite.mit-buehne > :not(.buehne) { margin-left: max(1.4rem, calc((100% - 1500px) / 2 + 1.4rem)); margin-right: max(1.4rem, calc((100% - 1500px) / 2 + 1.4rem)); }
body:has(.welt-seite.mit-buehne) .kopf { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(5, 7, 11, .85), rgba(5, 7, 11, 0));
                                         border-bottom-color: transparent; backdrop-filter: none; transition: background .3s, border-color .3s; }
body:has(.welt-seite.mit-buehne) .kopf.gescrollt { background: rgba(5, 7, 11, .9); border-bottom-color: var(--linie); backdrop-filter: blur(10px); }

.buehne { position: relative; margin: 0 0 1.2rem; height: clamp(440px, 82vh, 900px); overflow: hidden; isolation: isolate; }
.buehne .held { position: absolute; inset: 0; margin: 0; min-height: 0; display: flex; align-items: flex-end;
                padding: 0 clamp(1.2rem, 4.5vw, 4rem) clamp(4.5rem, 12vh, 8rem);
                opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; }
.buehne .held.aktiv { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.buehne .held::before { background-position: center 22%; transform: scale(1.06); transition: opacity .8s, transform 12s linear; }
.buehne .held.aktiv::before { transform: scale(1); }
.buehne .held::after { background: linear-gradient(90deg, rgba(5, 7, 11, .92) 0%, rgba(5, 7, 11, .55) 38%, rgba(5, 7, 11, 0) 70%),
                                   linear-gradient(0deg, var(--nacht) 0%, rgba(5, 7, 11, .35) 22%, transparent 45%),
                                   linear-gradient(180deg, rgba(5, 7, 11, .55) 0%, transparent 18%); }
.buehne .held.unscharf::before { filter: blur(38px) saturate(1.3) brightness(.55); transform: scale(1.25); }
.buehne .held-inhalt { max-width: min(640px, 92vw); position: relative; z-index: 1; }
.buehne h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.02; margin: .2rem 0 .7rem; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.buehne .held-meta { color: #d9dce4; font-size: 1.02rem; margin: 0 0 .8rem; }
.buehne .held-text { font-size: clamp(.95rem, 1.25vw, 1.12rem); line-height: 1.55; max-width: 56ch; color: #dfe2ea;
                     display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.held-knoepfe .knopf.gross { padding: .85rem 1.6rem; font-size: 1.05rem; }
.buehne-cover { position: absolute; right: clamp(1.2rem, 7vw, 7rem); bottom: clamp(4.5rem, 12vh, 8rem); width: clamp(160px, 19vw, 300px);
                aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 50px var(--schein); z-index: 1; }
.buehne-cover.quadrat { aspect-ratio: 1; width: clamp(180px, 23vw, 360px); }
.buehne-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buehne-punkte { position: absolute; right: clamp(1.2rem, 4.5vw, 4rem); bottom: 2.2rem; display: flex; gap: .5rem; z-index: 2; }
.buehne-punkte button { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: background .3s, width .3s; }
.buehne-punkte button.aktiv { background: var(--akzent-2); width: 42px; }
.buehne + .reiter, .buehne + nav { margin-top: -2.6rem; position: relative; z-index: 3; }

/* Reihen größer, mit Pfeilen */
.reihe-block > h2, .reihe-block > h2 a { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.schiene-huelle { position: relative; margin: 0 -1.4rem; }
.schiene-huelle > .schiene { padding: .6rem 1.4rem 1.4rem; scroll-padding-inline: 1.4rem; scrollbar-width: none; }
.schiene-huelle > .schiene::-webkit-scrollbar { display: none; }
.schiene { grid-auto-columns: clamp(140px, 13.5vw, 230px); gap: clamp(.7rem, 1vw, 1.1rem); }
.schiene:has(.weiter-karte) { grid-auto-columns: clamp(250px, 25vw, 400px); }
.weiter-karte { width: auto; }
.schiene:has(.buchkarte) { grid-auto-columns: clamp(140px, 13vw, 210px); }
.schiene-pfeil { position: absolute; top: .6rem; bottom: 3.2rem; width: clamp(2.2rem, 3.4vw, 3.4rem); z-index: 4; border: 0; cursor: pointer;
                 color: #fff; font-size: 2.6rem; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .25s, background .25s; }
.schiene-pfeil.links { left: 0; background: linear-gradient(90deg, rgba(5, 7, 11, .85), transparent); }
.schiene-pfeil.rechts { right: 0; background: linear-gradient(270deg, rgba(5, 7, 11, .85), transparent); }
.schiene-huelle:hover .schiene-pfeil, .schiene-pfeil:focus-visible { opacity: 1; }
@media (hover: none) { .schiene-pfeil { display: none; } }
.schiene .poster .poster-bild, .schiene .weiter-bild { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
@media (hover: hover) {
  .schiene .poster:hover .poster-bild, .schiene .weiter-karte:hover .weiter-bild { transform: scale(1.07); z-index: 2;
           box-shadow: 0 22px 50px rgba(0, 0, 0, .65), 0 0 30px var(--schein); }
  .schiene .poster:hover, .schiene .weiter-karte:hover { position: relative; z-index: 3; }
}
/* Raster in den Ansichten (Filme, Serien, Alben …) ebenfalls größer */
.raster { grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 13vw, 220px), 1fr)); gap: 1.4rem 1rem; }
.alben-raster { grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 20vw, 320px), 1fr)); }

@media (max-width: 720px) {
  .welt-seite.mit-buehne > :not(.buehne) { margin-left: .9rem; margin-right: .9rem; }
  .buehne { margin: 0 0 1rem; height: min(78vh, 640px); height: min(78dvh, 640px); }
  .buehne .held { padding: 0 1.1rem 4.2rem; align-items: flex-end; }
  .buehne .held::after { background: linear-gradient(0deg, var(--nacht) 0%, rgba(5, 7, 11, .7) 35%, rgba(5, 7, 11, .1) 70%),
                                     linear-gradient(180deg, rgba(5, 7, 11, .6) 0%, transparent 20%); }
  .buehne .held-inhalt { text-align: center; margin: 0 auto; }
  .buehne .held-text { -webkit-line-clamp: 2; }
  .held-knoepfe { justify-content: center; }
  .held-knoepfe .knopf.gross { padding: .75rem 1.2rem; font-size: .98rem; }
  .buehne-cover { left: 50%; right: auto; top: 18%; bottom: auto; transform: translateX(-50%); width: 46vw; }
  .buehne-cover.quadrat { width: 58vw; }
  .buehne .held:has(.buehne-cover) .held-inhalt h1 { font-size: 1.9rem; }
  .buehne .held:has(.buehne-cover) .held-text { display: none; }
  .buehne-punkte { left: 0; right: 0; justify-content: center; bottom: 1.3rem; }
  .buehne + .reiter, .buehne + nav { margin-top: 0; }
  .schiene-huelle { margin: 0 -.9rem; }
  .schiene-huelle > .schiene { padding: .4rem .9rem 1rem; scroll-padding-inline: .9rem; }
  .schiene { grid-auto-columns: 34vw; }
  .schiene:has(.weiter-karte) { grid-auto-columns: 72vw; }
  .schiene:has(.buchkarte) { grid-auto-columns: 38vw; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr)); gap: 1rem .7rem; }
  .alben-raster { grid-template-columns: repeat(auto-fill, minmax(42vw, 1fr)); }
}
@media (max-width: 820px) {
  html body.portal-seite .anordnen-knopf { position: fixed; top: calc(.8rem + env(safe-area-inset-top)); left: .9rem; bottom: auto; z-index: 35; }
}

/* Platz für die Bildlaufleiste immer reservieren – sonst springt das Layout (z. B. in Klang zwischen
   Übersicht, Alben, Künstler und Genres), sobald eine Ansicht kürzer als der Bildschirm ist. */
html { scrollbar-gutter: stable; }
.raster.quadratisch { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 12vw, 210px), 1fr)); }
@media (max-width: 720px) { .raster.quadratisch { grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr)); } }

/* Große Bildschirme (1440p/4K ohne Windows-Skalierung): Schrift und Bedienelemente mitwachsen lassen */
@media (min-width: 2200px) and (min-height: 1200px) { html { font-size: 18px; } }
@media (min-width: 3000px) and (min-height: 1600px) { html { font-size: 21px; } }

/* Startseite „Ancient Future“ auf großen Bildschirmen: Siegel und Welten wachsen mit */
@media (min-height: 1150px) and (min-width: 1800px) {
  .portal-szene { --el-mass: 1.3; }
  .portal-mitte { width: min(54vh, 680px); }
  .portal-titel .titel { font-size: clamp(3rem, 9vh, 8.5rem); }
  .portal-titel .motto { font-size: clamp(.7rem, 1.6vh, 1.4rem); }
}
@media (min-height: 1500px) and (min-width: 2600px) {
  .portal-szene { --el-mass: 1.7; }
  .portal-mitte { width: min(54vh, 900px); }
}
@media (max-width: 820px) {
  html body.portal-seite .portal-szene { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); }
}

/* ============================================================ Schließen (✕) und Einzelseiten mittig */
.schliessen-x { position: fixed; z-index: 25; top: calc(4.4rem + env(safe-area-inset-top)); right: clamp(.8rem, 2.4vw, 2rem);
                width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 1.15rem; line-height: 1;
                color: var(--text); background: rgba(5, 7, 11, .62); border: 1px solid var(--linie-hell); backdrop-filter: blur(8px);
                box-shadow: 0 6px 24px rgba(0, 0, 0, .45); transition: transform .25s, background .25s, border-color .25s; }
.schliessen-x:hover, .schliessen-x:focus-visible { text-decoration: none; transform: rotate(90deg); border-color: var(--akzent); background: rgba(5, 7, 11, .85); }
.schliessen-x.im-inhalt { position: absolute; top: .8rem; right: .8rem; }
.audio-inhalt { position: relative; }
.kino-zurueck, .lese-zurueck { font-size: 1.15rem; }

/* Einzelseiten (Film, Serie, Hörbuch, E-Book …): Inhalt mittig, nicht mehr links klebend */
.detail { display: block; }
.detail > :not(.schliessen-x) { max-width: 1180px; margin-left: auto; margin-right: auto; }
.detail-raster { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(1.6rem, 3.5vw, 3.2rem); align-items: start; }
.detail-text { min-width: 0; }
.buch-detail .detail-raster { grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); }
.buch-detail .buchspieler { max-width: none; }
.buch-detail .kapitel { max-width: none; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .4rem .8rem; }
.buch-detail .reihe-block { margin-top: 2.4rem; }
.fotoalbum-seite { padding-top: 1.5rem; }
@media (max-width: 820px) {
  .detail { padding-top: 1.5rem; }
  .detail-raster, .buch-detail .detail-raster { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .detail-poster, .buch-cover { width: min(70vw, 300px); }
  .detail-text { width: 100%; }
  .detail-text .knopfreihe, .detail-text .metazeile { justify-content: center; }
  .detail-text .beschreibung { margin-left: auto; margin-right: auto; text-align: left; }
  .schliessen-x { top: calc(4rem + env(safe-area-inset-top)); width: 42px; height: 42px; }
}
