/* Live-Runde: Leinwand vorne im Raum und Handy. Grundlagen stehen in ui.css. */
.beamer { --blau: #120C33; --flaeche2: rgba(255, 255, 255, .07); --schrift: #F2EEFF; min-height: 100dvh; margin: 0; background: var(--blau); color: var(--schrift); overflow: hidden; }
.beamer h1, .beamer h2 { color: #fff; margin: 0; }
.beamer-grund { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.beamer-grund i { position: absolute; border-radius: 50%; filter: blur(90px); animation: treiben 24s ease-in-out infinite alternate; }
.beamer-grund i:nth-child(1) { width: 60vmax; height: 46vmax; left: -18vmax; top: -22vmax; background: #4F2EC9; opacity: .55; }
.beamer-grund i:nth-child(2) { width: 46vmax; height: 40vmax; right: -14vmax; bottom: -20vmax; background: #FF5E36; opacity: .3; animation-delay: -9s; }
.beamer-kopf { position: fixed; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
.beamer-kopf img { height: 30px; width: auto; }
.beamer-titel { font-weight: 800; color: rgba(255, 255, 255, .72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beamer-hinweis { margin-left: auto; padding: 6px 14px; border-radius: 99px; background: rgba(255, 94, 54, .22); color: #FFD2C5; font-weight: 800; font-size: .86rem; white-space: nowrap; }
.beamer-hinweis[hidden] + .beamer-rund, #vollbild[hidden] + .beamer-rund { margin-left: auto; }
.beamer-rund { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s, transform .3s var(--feder); }
.beamer-rund:hover { background: rgba(255, 255, 255, .22); }
.beamer-rund svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.beamer-rund.gross { width: 84px; height: 84px; background: #fff; color: var(--iris); }
.beamer-rund.gross svg { width: 36px; height: 36px; fill: currentColor; stroke: none; }
.beamer-rund.gross:active { transform: scale(.92); }
.beamer-buehne { position: relative; z-index: 1; min-height: 100dvh; display: grid; padding: 80px clamp(24px, 4vw, 64px) 32px; box-sizing: border-box; }
.beamer-mitte { display: grid; place-items: center; text-align: center; }
.beamer-haupt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 34px; border-radius: 99px; background: var(--koralle); color: #fff; font-weight: 900; font-size: 1.25rem; text-decoration: none; box-shadow: 0 14px 34px rgba(255, 94, 54, .4); transition: transform .3s var(--feder), opacity .2s, background .2s; }
.beamer-haupt:hover { background: var(--koralle-tief); }
.beamer-haupt:active { transform: scale(.96); }
.beamer-haupt:disabled { opacity: .35; box-shadow: none; }
.beamer-haupt svg, .beamer-neben svg { width: 24px; height: 24px; fill: currentColor; }
.beamer-haupt svg.linie { fill: none; stroke: currentColor; stroke-width: 3; }
.beamer-haupt.ruft { animation: ruft 1.6s ease-in-out infinite; }
@keyframes ruft { 50% { transform: scale(1.06); } }
.beamer-neben { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; font-size: 1.02rem; text-decoration: none; transition: background .2s; }
.beamer-neben:hover { background: rgba(255, 255, 255, .22); }
.beamer-neben.spielt { background: #fff; color: var(--iris-tief); }
.klein-zeit { opacity: .7; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Warteraum */
.warteraum { display: grid; grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.wr-links { display: grid; gap: 18px; justify-items: center; text-align: center; }
.wr-qr { width: 100%; max-width: min(34vw, 62vh); aspect-ratio: 1; padding: 18px; box-sizing: border-box; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.wr-qr svg { display: block; width: 100%; height: 100%; }
.wr-adresse { display: grid; gap: 2px; }
.wr-adresse span { color: rgba(255, 255, 255, .7); font-weight: 700; }
.wr-adresse strong { font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 900; color: #fff; letter-spacing: .01em; }
.wr-rechts { display: grid; gap: clamp(12px, 2.2vh, 22px); align-content: center; min-width: 0; }
.wr-rechts h1 { font-size: clamp(2rem, 4.2vw, 3.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.wr-zahl { display: flex; align-items: baseline; gap: 14px; }
.wr-zahl strong { font-size: clamp(3.4rem, 8vw, 7rem); line-height: 1; font-weight: 900; color: #FFB199; font-variant-numeric: tabular-nums; display: inline-block; }
.wr-zahl strong.huepft { animation: huepft .5s var(--feder); }
@keyframes huepft { 40% { transform: scale(1.18); } }
.wr-zahl span { font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 800; color: rgba(255, 255, 255, .78); }
.wr-namen { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; min-height: 96px; max-height: 34vh; overflow: hidden; }
.name-blase { padding: 9px 18px; border-radius: 99px; background: #fff; color: var(--iris-tief); font-weight: 900; font-size: clamp(1rem, 1.7vw, 1.4rem); rotate: var(--dreh); animation: blase .7s var(--feder) both; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.name-blase:hover { background: #FFD2C5; text-decoration: line-through; }
@keyframes blase { from { transform: scale(0) translateY(30px); opacity: 0; } }
.wr-namen.verdeckt .name-blase { color: transparent; text-shadow: 0 0 14px rgba(42, 23, 115, .6); }
.wr-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wr-namen.viele { gap: 6px; }
.wr-namen.viele .name-blase { padding: 4px 11px; font-size: clamp(.8rem, 1.15vw, 1rem); }
.wr-gruppe { display: flex; align-items: center; gap: 10px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.wr-gruppe select { min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 800; }
.wr-gruppe select option { color: var(--tinte); }
.wr-tipp { color: rgba(255, 255, 255, .55); font-size: .92rem; font-weight: 600; margin: 0; }

/* Hören */
.hoerraum { display: grid; grid-template-rows: 1fr auto auto; gap: clamp(16px, 3vh, 34px); min-height: 0; }
.stimmen { display: flex; justify-content: center; align-items: center; gap: clamp(32px, 7vw, 110px); }
.stimme-kreis { --p: 0; display: grid; gap: 14px; justify-items: center; opacity: .45; transition: opacity .25s; }
.stimme-kreis .kreis { position: relative; width: clamp(110px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 3px solid var(--f); border-color: color-mix(in srgb, var(--f) 55%, transparent); transition: transform .12s linear; transform: scale(calc(1 + var(--p) * .16)); }
.stimme-kreis .kreis span { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; color: var(--f); }
.stimme-kreis .kreis::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: var(--f); opacity: calc(var(--p) * .55); filter: blur(calc(14px + var(--p) * 26px)); z-index: -1; }
.stimme-kreis strong { font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 900; color: #fff; }
.stimme-kreis.spricht { opacity: 1; }
.hoer-welle .tonwelle { height: clamp(80px, 15vh, 140px); gap: 3px; cursor: pointer; }
.hoer-welle .tonwelle i { border-radius: 4px; }
.hoer-zeit { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: 1.05rem; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.hoer-unten { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.fortschritt { display: flex; align-items: center; gap: 8px; }
.fp { position: relative; width: 16px; height: 44px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.fp i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, #FFB199, #FF5E36); transition: height .5s var(--sanft); }
.fortschritt strong { margin-left: 10px; font-size: 1.1rem; font-weight: 800; color: rgba(255, 255, 255, .78); }
.hoer-knoepfe { display: flex; align-items: center; gap: 14px; }

/* Auflösung */
.aufloesung { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: clamp(10px, 2vh, 20px); min-height: 0; max-width: 1400px; width: 100%; margin: 0 auto; }
.af-kopf { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: rgba(255, 255, 255, .72); font-size: 1.1rem; }
.af-punkte { display: flex; gap: 8px; }
.af-punkte i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.af-punkte i.fertig { background: #B79CFF; }
.af-punkte i.jetzt { background: #FF5E36; }
.af-frage { font-size: clamp(1.7rem, 3.5vw, 3.2rem); line-height: 1.14; font-weight: 900; letter-spacing: -.01em; }
.af-luecke { color: #FFB199; }
.af-mitte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; }
.af-balken { display: grid; gap: 10px; }
.af-zeile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: clamp(50px, 8vh, 72px); padding: 8px 20px; border-radius: 16px; background: var(--flaeche2); overflow: hidden; isolation: isolate; font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 800; transition: opacity .4s; }
.af-zeile i { position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 0; background: rgba(183, 156, 255, .42); border-radius: 16px; transition: width 1s var(--sanft), background .4s; }
.af-balken.fuellt .af-zeile i { width: var(--w); }
.af-zahl { font-variant-numeric: tabular-nums; }
.af-balken.aufgedeckt .af-zeile:not(.loesung) { opacity: .5; }
.af-balken.aufgedeckt .af-zeile.loesung { box-shadow: inset 0 0 0 3px #35D08A; animation: huepft .5s var(--feder); }
.af-balken.aufgedeckt .af-zeile.loesung i { background: rgba(53, 208, 138, .5); }
.af-ring { --q: 0; position: relative; width: clamp(150px, 19vw, 250px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--c, #B79CFF) 0, rgba(255, 255, 255, .1) 0); }
.af-ring.gut { --c: #35D08A; } .af-ring.mittel { --c: #FFC24B; } .af-ring.schwer { --c: #FF7A59; }
.af-ring.zeigt { background: conic-gradient(var(--c) calc(var(--q) * 1%), rgba(255, 255, 255, .1) 0); }
.af-ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #1B1348; }
.af-ring strong, .af-ring span { position: relative; }
.af-ring strong { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.af-ring span { font-weight: 800; color: rgba(255, 255, 255, .7); }
.af-stelle { padding: 12px 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: clamp(1.5rem, 3.2vw, 2.8rem); font-weight: 800; line-height: 1.3; color: rgba(255, 255, 255, .62); margin: 0; animation: kommt .5s var(--feder) both; }
.af-stelle .wz.gehoert { color: #fff; }
.af-stelle .wz.kern { color: #FFB199; }
.af-stelle .wz.jetzt { background: #fff; color: var(--iris-tief); box-shadow: 0 0 0 4px #fff; }
.af-stelle .wz.kern.jetzt { background: var(--koralle); color: #fff; box-shadow: 0 0 0 4px var(--koralle); }
.af-knoepfe { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* Ende */
.endraum { display: grid; grid-template-rows: auto auto auto 1fr; gap: clamp(12px, 2.4vh, 24px); max-width: 1400px; width: 100%; margin: 0 auto; }
.end-zahl { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.end-zahl strong { font-size: clamp(4rem, 10vw, 8.4rem); font-weight: 900; line-height: .95; color: #fff; font-variant-numeric: tabular-nums; }
.end-zahl span { font-size: clamp(1.1rem, 2.2vw, 1.9rem); font-weight: 800; color: rgba(255, 255, 255, .78); }
.end-karte { display: grid; gap: 8px; padding: 18px 22px; border-radius: 22px; background: rgba(255, 255, 255, .06); }
.end-karte h2 { font-size: 1.15rem; font-weight: 800; color: rgba(255, 255, 255, .78); }
.end-karte .hk-legende { color: rgba(255, 255, 255, .72); }
.end-karte .hk-welle { height: clamp(90px, 22vh, 200px); }
.end-hart { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.end-hart > div { display: grid; gap: 8px; min-width: 0; }
.end-hart > div > span { font-weight: 800; color: #FFB199; }
.end-hart .af-stelle { font-size: clamp(1.2rem, 2.3vw, 2rem); }
.end-unten { display: flex; justify-content: space-between; align-items: end; gap: 14px; font-weight: 700; color: rgba(255, 255, 255, .62); }

/* Handy-Vorschau im Probelauf */
@media (min-width: 1181px) { .probe .af-frage { padding-right: 150px; } }
.handy-vorschau { position: fixed; z-index: 4; right: 22px; top: 76px; width: 232px; }
.hv-rahmen { display: grid; gap: 7px; padding: 12px; border-radius: 26px; border: 3px solid rgba(255, 255, 255, .3); background: #F6F2FF; color: var(--tinte); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.hv-titel { font-size: .72rem; font-weight: 800; color: var(--iris); text-align: center; }
.hv-frage { font-size: .92rem; font-weight: 900; line-height: 1.2; }
.hv-antwort { padding: 6px 10px; border-radius: 9px; background: #fff; font-size: .8rem; font-weight: 700; }
.hv-marke { padding: 18px 8px; border-radius: 14px; text-align: center; font-weight: 900; color: #fff; }
.hv-marke.gut { background: var(--ok); } .hv-marke.daneben { background: var(--koralle-tief); }
@media (max-width: 1180px) { .handy-vorschau { display: none; } }
@media (max-width: 820px) {
  .beamer { overflow: auto; }
  .warteraum, .af-mitte, .end-hart { grid-template-columns: minmax(0, 1fr); }
  .wr-qr { max-width: 240px; }
  .af-ring { justify-self: center; }
  .beamer-hinweis { display: none; }
}

/* Handy */
.handy-buehne { min-height: calc(100dvh - 120px); display: grid; }
.handy-mitte { display: grid; gap: 14px; align-content: center; justify-items: center; text-align: center; }
.handy-mitte .feld { justify-self: stretch; text-align: left; }
.handy-mitte .titel-gross { color: var(--iris-tief); }
.handy-hoeren { display: grid; gap: 14px; align-content: start; }
.hoer-band { position: sticky; top: 8px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); background: var(--iris); color: #fff; font-weight: 800; box-shadow: 0 10px 26px rgba(79, 46, 201, .32); }
.hoer-balken { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.hoer-balken i { width: 4px; height: 100%; border-radius: 2px; background: #fff; transform-origin: center; animation: hoer-balken 1s ease-in-out infinite; }
.hoer-balken i:nth-child(2) { animation-delay: -.25s; } .hoer-balken i:nth-child(3) { animation-delay: -.5s; } .hoer-balken i:nth-child(4) { animation-delay: -.75s; }
@keyframes hoer-balken { 50% { transform: scaleY(.35); } }
.gespeichert { color: var(--ok); font-weight: 800; }
.handy-zeichen { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; animation: blase .6s var(--feder) both; }
.handy-zeichen svg { width: 72px; height: 72px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.handy-ergebnis.gut .handy-zeichen { background: var(--ok); }
.handy-ergebnis.daneben .handy-zeichen { background: var(--koralle-tief); }
.handy-ergebnis.leer .handy-zeichen { background: #A8A3C0; }
@media (prefers-reduced-motion: reduce) { .beamer-grund i, .name-blase, .hoer-balken i, .handy-zeichen, .beamer-haupt.ruft { animation: none; } }
