/* WhatsApp-Theater. Chat-Teile in em, damit der Beamer nur die Schriftgroesse
   der Wurzel hochdrehen muss. */
:root {
  --wa-gruen: #008069;
  --wa-hell: #25d366;
  --wa-aus: #d9fdd3;
  --wa-ein: #ffffff;
  --wa-text: #111b21;
  --wa-grau: #667781;
  --wa-tapete: #efeae2;
  --wa-haken: #53bdeb;
  --panel: #ffffff;
  --panel-rand: #e3e6e8;
  --hinweis: #fff6d6;
  --hinweis-rand: #f0d77a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  color: var(--wa-text);
  background: var(--wa-tapete);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Login ---------- */
.login {
  min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: var(--wa-gruen);
}
.login form {
  background: #fff; border-radius: 14px; padding: 28px 22px; width: 100%; max-width: 360px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); text-align: center;
}
.login img { width: 64px; height: 64px; }
.login h1 { font-size: 1.3rem; margin: 12px 0 4px; }
.login p { color: var(--wa-grau); margin: 0 0 18px; font-size: .95rem; }
.login input {
  width: 100%; font-size: 1.1rem; padding: 12px 14px; border: 1.5px solid #cfd6da;
  border-radius: 10px; outline: none;
}
.login input:focus { border-color: var(--wa-gruen); }
.login button {
  margin-top: 14px; width: 100%; font-size: 1.1rem; padding: 13px; border: 0; border-radius: 24px;
  background: var(--wa-gruen); color: #fff; font-weight: 600;
}
.login .fehler { color: #c62828; margin: 12px 0 0; min-height: 1.2em; }

/* ---------- Gemeinsame App-Leiste (Start/Ich-Wahl) ---------- */
.seite { min-height: 100%; background: #fff; display: flex; flex-direction: column; }
.leiste {
  background: var(--wa-gruen); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 5;
}
.leiste h1 { font-size: 1.25rem; margin: 0; font-weight: 600; flex: 1; }
.leiste button { background: none; border: 0; color: #fff; padding: 6px; font-size: 1.3rem; line-height: 1; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li > button {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: none;
  border: 0; padding: 12px 16px; border-bottom: 1px solid #eef0f1;
}
.liste li > button:active { background: #f0f2f5; }
.liste .info { flex: 1; min-width: 0; }
.liste .titel { font-size: 1.05rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .unter { color: var(--wa-grau); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.liste .rechts { color: var(--wa-grau); font-size: .8rem; text-align: right; }
.liste .fehlertext { color: #c62828; font-size: .85rem; white-space: normal; }
.hinweistext { color: var(--wa-grau); font-size: .88rem; padding: 14px 16px; line-height: 1.4; }
.ich-wahl li > button .haken { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b5bec4; flex: none; }
.ich-wahl li > button[aria-checked="true"] .haken { border-color: var(--wa-gruen); background: var(--wa-gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.grossknopf {
  margin: 16px; padding: 15px; border: 0; border-radius: 26px; background: var(--wa-gruen); color: #fff;
  font-size: 1.1rem; font-weight: 600;
}
.fuss { margin-top: auto; padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Avatare ---------- */
.avatar {
  width: 2.6em; height: 2.6em; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 1em; background: #9aa7ae; overflow: hidden;
}
.avatar.emoji { background: #dfe5e7; font-size: 1.35em; }
.liste .avatar { font-size: 19px; }

/* ---------- Chat ---------- */
.chat {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  background: var(--wa-tapete) url("tapete.svg") repeat; background-size: 260px;
  font-size: 15px;
}
.kopf {
  background: var(--wa-gruen); color: #fff; display: flex; align-items: center; gap: .6em;
  padding: .45em .6em .45em .3em; flex: none; z-index: 3;
}
.kopf .zurueck { background: none; border: 0; color: #fff; padding: .3em .2em; display: flex; }
.kopf .zurueck svg { width: 1.5em; height: 1.5em; }
.kopf .avatar { width: 2.5em; height: 2.5em; }
.kopf .wer { flex: 1; min-width: 0; }
.kopf .gruppe { font-size: 1.08em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf .mitglieder { font-size: .82em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.kopf .mitglieder.tippt { opacity: 1; }
.kopf .symbole { display: flex; gap: 1.1em; padding-right: .3em; }
.kopf .symbole svg { width: 1.35em; height: 1.35em; }

.verlauf {
  flex: 1; overflow-y: auto; min-height: 0; padding: .5em 4.5% 1em; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.verlauf-innen { display: flex; flex-direction: column; min-height: 100%; justify-content: flex-end; }

.pille {
  align-self: center; background: rgba(255,255,255,.95); color: #54656f; font-size: .8em; padding: .35em .75em;
  border-radius: .55em; margin: .55em 0; box-shadow: 0 1px .5px rgba(11,20,26,.13); text-align: center; max-width: 85%;
}
.pille.datum { text-transform: none; font-weight: 500; }
.pille.krypto { background: #ffeecd; color: #54656f; font-size: .76em; line-height: 1.35; }
.pille.system { }

.zeile { display: flex; margin-top: .55em; position: relative; }
.zeile.folge { margin-top: .15em; }
.zeile.aus { justify-content: flex-end; }
.blase {
  position: relative; max-width: 80%; padding: .38em .5em .3em .6em; border-radius: .55em;
  box-shadow: 0 1px .5px rgba(11,20,26,.13); background: var(--wa-ein); line-height: 1.32;
  word-wrap: break-word; overflow-wrap: anywhere; min-width: 5.5em;
}
.aus .blase { background: var(--wa-aus); }
.zeile:not(.folge) .blase::before {
  content: ""; position: absolute; top: 0; width: .6em; height: .8em; background: inherit;
}
.ein:not(.folge) .blase { border-top-left-radius: 0; }
.ein:not(.folge) .blase::before { left: -.55em; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.aus:not(.folge) .blase { border-top-right-radius: 0; }
.aus:not(.folge) .blase::before { right: -.55em; clip-path: polygon(0 0, 100% 0, 0 100%); }

.blase .name { font-size: .86em; font-weight: 600; margin-bottom: .1em; }
.blase .weiter { color: var(--wa-grau); font-size: .82em; font-style: italic; display: flex; align-items: center; gap: .3em; margin-bottom: .15em; }
.blase .weiter svg { width: 1.05em; height: 1.05em; }
.blase .text { white-space: pre-wrap; font-size: 1em; }
.blase .platz { display: inline-block; width: 3.6em; height: 1px; }
.aus .blase .platz { width: 5em; }
.meta {
  position: absolute; right: .5em; bottom: .25em; font-size: .68em; color: var(--wa-grau);
  display: flex; align-items: center; gap: .25em; white-space: nowrap;
}
.meta svg { width: 1.45em; height: 1.1em; }
.blase.nur-emoji { background: none !important; box-shadow: none; padding: 0 .2em 1.1em; }
.blase.nur-emoji::before { display: none; }
.blase.nur-emoji .text { font-size: 2.6em; line-height: 1.15; }
.blase.nur-emoji .meta { background: rgba(255,255,255,.9); border-radius: .8em; padding: .1em .45em; bottom: 0; }

/* Sprachnachricht */
.blase.sprache { min-width: 15.5em; padding-bottom: .3em; }
.sprache .zeile-oben { display: flex; align-items: center; gap: .55em; }
.sprache .avatar { width: 2.9em; height: 2.9em; position: relative; overflow: visible; }
.sprache .avatar .mik {
  position: absolute; right: -.2em; bottom: -.15em; width: 1.25em; height: 1.25em; border-radius: 50%;
  background: transparent; display: flex; align-items: center; justify-content: center;
}
.sprache .avatar .mik svg { width: 1.1em; height: 1.1em; }
.sprache .play { width: 1.7em; height: 1.7em; flex: none; color: #8696a0; }
.sprache .welle { flex: 1; display: flex; align-items: center; gap: 2px; height: 2em; position: relative; }
.sprache .welle i { flex: 1; background: #b5bfc4; border-radius: 2px; min-width: 2px; }
.sprache .welle .punkt { position: absolute; left: -2px; width: .8em; height: .8em; border-radius: 50%; background: #2db742; top: calc(50% - .4em); }
.aus .sprache .welle .punkt, .sprache.aus-blase .welle .punkt { background: #2db742; }
.sprache .unten { display: flex; justify-content: space-between; font-size: .68em; color: var(--wa-grau); padding: .2em 0 0 calc(2.9em / .68 * 1 + 0px); }
.sprache .dauer { margin-left: 5.2em; }
.sprache .meta { position: static; }
.sprache .unten { padding-left: 0; }
.sprache .abschrift {
  margin-top: .45em; padding-top: .4em; border-top: 1px dashed #c8d0d4; font-size: .82em; color: #3b4a54; font-style: italic;
  white-space: pre-wrap;
}

/* Umfrage */
.blase.umfrage { min-width: 16em; width: 80%; max-width: 22em; padding-bottom: .4em; }
.umfrage .frage { font-weight: 600; font-size: 1.02em; margin: .15em 0 .2em; }
.umfrage .anleitung { font-size: .78em; color: var(--wa-grau); display: flex; align-items: center; gap: .3em; margin-bottom: .5em; }
.umfrage .anleitung svg { width: 1.1em; height: 1.1em; }
.umfrage .option { margin: .55em 0 .6em; }
.umfrage .option-zeile { display: flex; align-items: center; gap: .55em; }
.umfrage .kreis { width: 1.25em; height: 1.25em; border-radius: 50%; border: 2px solid #8696a0; flex: none; }
.umfrage .kreis.an { border-color: var(--wa-hell); background: var(--wa-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/90% no-repeat; }
.umfrage .label { flex: 1; font-size: .95em; }
.umfrage .waehler { display: flex; }
.umfrage .waehler .avatar { width: 1.35em; height: 1.35em; font-size: .62em; border: 1.5px solid #fff; margin-left: -.45em; }
.umfrage .zahl { font-size: .9em; color: var(--wa-grau); min-width: 1em; text-align: right; }
.umfrage .balken { height: .42em; background: #e9edef; border-radius: .3em; margin: .35em 0 0 1.8em; overflow: hidden; }
.aus .umfrage .balken { background: #c4e9bd; }
.umfrage .balken i { display: block; height: 100%; background: var(--wa-hell); border-radius: .3em; width: 0; transition: width .6s ease; }
.umfrage .stimmen-link { border-top: 1px solid rgba(0,0,0,.08); margin: .5em -.5em 0 -.6em; padding: .55em 0 .1em; text-align: center; color: #027eb5; font-size: .9em; font-weight: 500; }
.umfrage .meta { position: static; justify-content: flex-end; margin-top: .1em; }

/* Standort */
.blase.standort { padding: .25em .25em .3em; width: 17em; max-width: 80%; }
.standort .name { padding: .1em .35em 0; }
.karte {
  height: 8.5em; border-radius: .4em; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, #c9e7b9 0 2.2em, transparent 2.3em),
    linear-gradient(115deg, transparent 47%, #fff 47% 51%, transparent 51%),
    linear-gradient(20deg, transparent 60%, #fff 60% 63%, transparent 63%),
    linear-gradient(90deg, transparent 30%, #fde9a9 30% 33%, transparent 33%),
    repeating-linear-gradient(0deg, #e9e5dc 0 1.1em, #e2ddd2 1.1em 1.2em),
    #e9e5dc;
}
.karte .puls { position: absolute; left: calc(50% - 1.6em); top: calc(50% - 1.6em); width: 3.2em; height: 3.2em; border-radius: 50%; background: rgba(37,211,102,.25); animation: puls 1.8s ease-out infinite; }
.karte .stift { position: absolute; left: calc(50% - .95em); top: calc(50% - .95em); width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.karte .stift .avatar { width: 1.6em; height: 1.6em; font-size: .7em; }
@keyframes puls { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.standort .live { display: flex; justify-content: space-between; align-items: baseline; padding: .45em .4em .1em; }
.standort .live b { font-size: .95em; }
.standort .live span { color: var(--wa-grau); font-size: .78em; }
.standort .text { padding: .15em .4em 0; }
.standort .meta { position: static; justify-content: flex-end; padding: 0 .3em; }
.standort .knopf { border-top: 1px solid rgba(0,0,0,.08); margin: .4em -.25em 0; padding: .55em 0 .2em; text-align: center; color: #027eb5; font-size: .9em; font-weight: 500; }

/* Tippt-Blase */
.blase.tippt { min-width: 0; padding: .55em .8em; }
.tippt .punkte { display: flex; gap: .3em; padding: .2em 0 .1em; }
.tippt .punkte i { width: .5em; height: .5em; border-radius: 50%; background: #8696a0; animation: hops 1s infinite ease-in-out; }
.tippt .punkte i:nth-child(2) { animation-delay: .15s; }
.tippt .punkte i:nth-child(3) { animation-delay: .3s; }
@keyframes hops { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.3em); opacity: 1; } }

/* Einblenden */
.neu { animation: rein .28s cubic-bezier(.2,.9,.3,1.2); transform-origin: bottom left; }
.zeile.aus.neu { transform-origin: bottom right; }
.pille.neu { transform-origin: center; }
@keyframes rein { from { opacity: 0; transform: translateY(.8em) scale(.92); } to { opacity: 1; transform: none; } }

/* Nur Bedienansicht: Szene, Regie, Notiz */
.szene-marke {
  align-self: stretch; text-align: center; margin: 1.1em 0 .4em; font-size: .74em; color: #6b4fa0; font-weight: 600;
  display: flex; align-items: center; gap: .6em;
}
.szene-marke::before, .szene-marke::after { content: ""; flex: 1; border-top: 1px dashed #b9a6d9; }
.regie-marke {
  align-self: center; margin: .6em 0; font-size: .78em; color: #7a5b00; background: var(--hinweis);
  border: 1px dashed var(--hinweis-rand); padding: .35em .7em; border-radius: .5em; max-width: 85%; text-align: center;
}
.notiz-marke { font-size: .72em; color: #7a6a4a; font-style: italic; margin: .15em .6em 0; max-width: 80%; }
.zeile.aus + .notiz-marke { align-self: flex-end; text-align: right; }

/* ---------- Bedienansicht ---------- */
.bedien { height: 100%; display: flex; flex-direction: column; }
.bedien .chat { flex: 1; height: auto; }
.panel {
  flex: none; background: var(--panel); border-top: 1px solid var(--panel-rand);
  box-shadow: 0 -2px 10px rgba(0,0,0,.06); padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  position: relative; z-index: 4;
}
.panel .oben { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--wa-grau); }
.panel .fortschritt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--wa-text); }
.panel .balken { flex: 1; height: 4px; background: #e9edef; border-radius: 2px; overflow: hidden; }
.panel .balken i { display: block; height: 100%; background: var(--wa-hell); width: 0; transition: width .2s; }
.panel .klein {
  background: #f0f2f5; border: 0; border-radius: 16px; padding: 5px 10px; font-size: .8rem; color: #3b4a54;
  display: flex; align-items: center; gap: 4px;
}
.panel .klein.an { background: #d9fdd3; color: #0a5e3c; }
.vorschau { margin: 8px 0 8px; background: #f7f8fa; border-radius: 12px; padding: 8px 11px; min-height: 64px; }
.vorschau .als { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--wa-grau); display: flex; gap: 6px; align-items: center; }
.vorschau .als .typ { background: #e9edef; border-radius: 6px; padding: 0 6px; text-transform: none; letter-spacing: 0; }
.vorschau .wer { font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.vorschau .was {
  font-size: .95rem; color: #2a3942; margin-top: 2px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vorschau.offen .was { -webkit-line-clamp: unset; display: block; max-height: 40vh; overflow-y: auto; }
.vorschau .zusatz { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.vorschau .zusatz div { font-size: .82rem; border-radius: 8px; padding: 4px 8px; }
.vorschau .z-szene { background: #efe8fb; color: #4e3880; font-weight: 600; }
.vorschau .z-notiz { background: var(--hinweis); color: #6a5300; font-style: italic; }
.vorschau .z-regie { background: #ffe1b8; color: #7a3e00; font-weight: 600; }
.vorschau .z-danach { background: #eef3f6; color: #4a5a64; font-style: italic; }
.vorschau.ende { text-align: center; color: var(--wa-grau); display: flex; flex-direction: column; align-items: stretch; justify-content: center; font-size: 1rem; }
.knoepfe { display: flex; gap: 10px; }
.knoepfe button { border: 0; border-radius: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; touch-action: manipulation; user-select: none; }
.knoepfe .zurueck { flex: 0 0 30%; background: #e9edef; color: #3b4a54; font-size: 1rem; padding: 18px 0; }
.knoepfe .weiter { flex: 1; background: var(--wa-gruen); color: #fff; font-size: 1.25rem; padding: 18px 0; }
.knoepfe button:active { transform: scale(.98); filter: brightness(.95); }
.knoepfe button:disabled { opacity: .4; }
.knoepfe svg { width: 1.3em; height: 1.3em; }

/* Dialog (Menue, Beamer) */
.dialog-hg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.dialog {
  background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
  max-height: 90vh; overflow-y: auto;
}
.dialog h2 { font-size: 1.05rem; margin: 10px 18px 6px; }
.dialog .eintrag { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 14px 18px; font-size: 1rem; }
.dialog .eintrag:active { background: #f0f2f5; }
.dialog .eintrag.gefahr { color: #c62828; }
.dialog .code { font-size: 2.6rem; font-weight: 800; letter-spacing: .18em; text-align: center; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.dialog .url { text-align: center; color: var(--wa-grau); font-size: .85rem; padding: 0 18px; word-break: break-all; }
.dialog .qr { display: flex; justify-content: center; margin: 12px 0; }
.dialog .qr svg { width: 200px; height: 200px; }
.dialog .status { text-align: center; font-size: .9rem; margin: 4px 18px 8px; }
.dialog .status.ok { color: #0a7a46; font-weight: 600; }
.dialog p { padding: 0 18px; color: #3b4a54; font-size: .9rem; line-height: 1.4; }
.dialog label.schalter { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: .95rem; }

.fehlerseite { padding: 24px 16px; color: #c62828; }

/* ---------- Beamer ---------- */
.beamer-body { background: #0b141a; overflow: hidden; }
.beamer { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.beamer .buehne { width: min(100vw, 177.78vh); height: min(100vh, 56.25vw); position: relative; }
.beamer .chat { height: 100%; font-size: calc(min(100vh, 56.25vw) * .034); background-size: calc(min(100vh, 56.25vw) * .45); }
.beamer .verlauf { padding: .6em 14% 1.2em; scrollbar-width: none; }
.beamer .verlauf::-webkit-scrollbar { display: none; }
.beamer .blase { max-width: 70%; }
.beamer .kopf { padding: .5em 1em; }
.beamer .kopf .zurueck { display: none; }
.start-hinweis {
  position: fixed; inset: 0; z-index: 30; background: rgba(11,20,26,.92); color: #e9edef; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 20px; font-size: 1.1rem;
}
.start-hinweis button { background: var(--wa-hell); color: #08261a; border: 0; border-radius: 30px; padding: 16px 34px; font-size: 1.3rem; font-weight: 700; }
.start-hinweis small { color: #8696a0; max-width: 40em; line-height: 1.5; }
.beamer-meldung {
  position: fixed; left: 50%; bottom: 2vh; transform: translateX(-50%); z-index: 25; background: rgba(0,0,0,.75); color: #fff;
  padding: .5em 1em; border-radius: 1em; font-size: 2vh; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.beamer-meldung.zeigen { opacity: 1; }
.bedien { height: 100vh; height: 100dvh; }
.buehne-halter { flex: 1; min-height: 0; display: flex; flex-direction: column; touch-action: pan-y; }
.buehne-halter .chat { flex: 1; height: auto; }
/* Panel darf den Chat nie verdraengen: begrenzt, notfalls scrollbar */
.vorschau { max-height: 30vh; max-height: 30dvh; overflow-y: auto; overscroll-behavior: contain; }
.vorschau.offen { max-height: 50vh; max-height: 50dvh; }
.vorschau.offen .was { max-height: none; overflow: visible; }

/* Videonachricht */
.blase.video { padding: .2em; width: 17em; max-width: 80%; }
.blase.video .name { padding: .1em .4em .15em; }
.vbild { position: relative; aspect-ratio: 16 / 9; background: #1f2c33; border-radius: .4em; overflow: hidden; cursor: pointer; }
.vbild img, .vbild video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplay { position: absolute; left: 50%; top: 50%; width: 2.9em; height: 2.9em; margin: -1.45em 0 0 -1.45em; border-radius: 50%;
  background: rgba(11,20,26,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.vplay svg { width: 1.5em; height: 1.5em; margin-left: .15em; }
.vdauer { position: absolute; left: .5em; bottom: .3em; color: #fff; font-size: .72em; display: flex; align-items: center; gap: .3em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.vdauer svg { width: 1.3em; height: 1.3em; }
.vbild .meta { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); right: .5em; bottom: .3em; }
.vbild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.vbild .vdauer, .vbild .meta { z-index: 1; }

.video-overlay { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.video-overlay.an { opacity: 1; pointer-events: auto; }
.video-overlay video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-zu { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; }
.video-zu svg { width: 22px; height: 22px; }
.video-hinweis { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff;
  padding: .5em 1em; border-radius: 1em; font-size: 2.2vh; }

/* Bedien: Video-Status vom Beamer */
.video-status { margin: 8px 0 0; background: #e7f6ff; color: #0b4f73; border-radius: 10px; padding: 7px 11px; font-size: .9rem; font-weight: 600; }
.video-status.fertig { background: #e6f7ec; color: #0a5e3c; }
.video-status .vbalken { height: 4px; background: rgba(11,79,115,.18); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.video-status .vbalken i { display: block; height: 100%; background: #1f7aec; width: 0; transition: width .9s linear; }
