/* Bühne: Folien 1920×1080, auf das Fenster skaliert */
html, body { margin: 0; height: 100%; background: #0B1F1C; overflow: hidden; }
* { box-sizing: border-box; }
h1, h2, h3, p, ul { margin: 0; }
#buehne { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; }
#buehne > section { position: absolute; inset: 0; width: 1920px; height: 1080px; display: none; overflow: hidden; }
#buehne > section.aktiv { display: flex; }
section .bild svg { width: 100%; height: 100%; }
x-icon, .icon { display: inline-block; }
.icon svg { width: 100%; height: 100%; display: block; }
.loch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--papier); flex: none; }
.dunkel .loch { background: var(--tanne); }
iframe.anim { position: absolute; border: 0; background: transparent; }
.qr svg { width: 100%; height: 100%; display: block; }
.anhaenger .loch { width: 22px; height: 22px; }

/* Steuerleiste */
#leiste { position: fixed; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); z-index: 5; }
#fortschritt { height: 100%; width: 0; background: #C9A13B; transition: width .3s; }
#hilfe { position: fixed; right: 16px; bottom: 14px; color: #8FA8A2; font: 13px/1.3 Arial, sans-serif; z-index: 5; opacity: .75; }
#notizen { position: fixed; left: 0; right: 0; bottom: 0; max-height: 34vh; overflow: auto; background: rgba(11,31,28,.96); color: #E6ECEA; font: 20px/1.5 Arial, sans-serif; padding: 18px 28px 28px; z-index: 6; display: none; }
#notizen.offen { display: block; }
#notizen b { color: #C9A13B; }
button.knopf-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #E6ECEA; font-size: 28px; cursor: pointer; z-index: 5; }
button.knopf-nav:hover, button.knopf-nav:focus-visible { background: rgba(201,161,59,.5); outline: none; }
#zurueck { left: 12px; } #weiter { right: 12px; }
@media (prefers-reduced-motion: reduce) { .auftritt, .einblenden { animation: none !important; } }

/* Symbole in Kreisen und Karten */
.bildkreis .icon { width: 120px; height: 120px; color: var(--tanne); }
.bildkreis.klein .icon { width: 80px; height: 80px; }
.bildkreis.rot .icon { color: var(--rot); }
.bildkreis.gruen .icon { color: var(--gruen); }
.dunkel .bildkreis .icon { color: var(--messing); }
.karte .icon { width: 48px; height: 48px; color: var(--tanne); }
.gross-pfeil .icon { width: 90px; height: 90px; color: var(--messing); }
.qrkarte { background: var(--papier); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qrkarte .qr { width: 380px; height: 380px; }
.qrkarte .scan { font-size: 30px; font-weight: 700; color: var(--tanne); }
.qrkarte .link { font-size: 24px; color: var(--schiefer); text-align: center; }
.mini { display: inline-flex; width: 40px; height: 40px; flex: none; }
.mini .icon { width: 100%; height: 100%; }
.qrkarte.nebelkarte { background: var(--nebel); }
.dunkel .bildkreis.gruen .icon { color: var(--gruen); }
.dunkel .gross-pfeil .icon, .gross-pfeil .icon { color: var(--messing); }
:is(#buehne, .folie-mini) aside { display: none; }
.bildkreis.messingvoll { background: var(--messing) !important; }
.dunkel .bildkreis.messingvoll .icon { color: var(--tanne); }

/* Übersicht: alle Folien als Miniaturen über die ganze Breite */
#uebersicht { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: var(--mini-abstand, 6px); padding: 8px 10px 10px; background: #111418; border-top: 1px solid rgba(255,255,255,.08); z-index: 5; }
body.ohne-uebersicht #uebersicht { display: none; }
#uebersicht .mini-rahmen { position: relative; flex: none; border-radius: 4px; overflow: visible; cursor: pointer; opacity: .55; transition: opacity .15s; }
#uebersicht .mini-rahmen:hover, #uebersicht .mini-rahmen.aktiv { opacity: 1; }
#uebersicht .mini-fenster { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; background: #1F2329; outline: 1px solid rgba(255,255,255,.12); transition: transform .18s ease; transform-origin: bottom center; }
#uebersicht .mini-rahmen.aktiv .mini-fenster { outline: 2px solid #B8CC3A; outline-offset: 1px; }
#uebersicht .mini-rahmen:hover .mini-fenster { transform: scale(4.2); z-index: 10; box-shadow: 0 12px 40px rgba(0,0,0,.6); outline: 1px solid #B8CC3A; }
#uebersicht .mini-rahmen.links:hover .mini-fenster { transform-origin: bottom left; }
#uebersicht .mini-rahmen.rechts:hover .mini-fenster { transform-origin: bottom right; }
#uebersicht .mini-rahmen:hover { z-index: 10; }
#uebersicht .mini-rahmen .mini-nr { z-index: 3; }
#uebersicht .folie-mini { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
.folie-mini > section { position: absolute; inset: 0; width: 1920px; height: 1080px; display: flex; overflow: hidden; }
.folie-mini .auftritt, .folie-mini .einblenden { animation: none !important; opacity: 1 !important; transform: none !important; }
.folie-mini .anim-platz { position: absolute; border-radius: 24px; background: rgba(255,255,255,.04); }
#uebersicht .mini-nr { position: absolute; left: 3px; bottom: 2px; pointer-events: none; font: 700 10px/1 Barlow, Arial, sans-serif; color: #FBFBF8; background: rgba(0,0,0,.55); padding: 2px 3px; border-radius: 3px; z-index: 2; }
#uebersicht .mini-rahmen:hover .mini-nr { display: none; }
