/* Treffpunkt · Raumseite: Vorraum, Warteraum, Konferenz, Ende.
   Vorraum/Ende folgen dem Farbschema (Tokens aus basis.css), die Konferenz ist immer dunkel
   (start.js setzt dafür data-theme="dark" auf :root). */

:root {
  --k-hg: #0d0e12;
  --k-kachel: #1b1d24;
  --k-leiste: #121318;
  --k-knopf-hover: #262832;
  --k-text: #f2f2f5;
  --k-text-2: #a6a8b3;
  --k-glas: rgba(16, 17, 22, .66);
  --sicher-oben: env(safe-area-inset-top, 0px);
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-links: env(safe-area-inset-left, 0px);
  --sicher-rechts: env(safe-area-inset-right, 0px);
}

html, body { min-height: 100%; }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

/* ---------- Allgemeine Bausteine ---------- */

.ansicht {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: calc(16px + var(--sicher-oben)) calc(16px + var(--sicher-rechts)) calc(16px + var(--sicher-unten)) calc(16px + var(--sicher-links));
}
.karte.schmal { width: min(460px, 100%); }
.marke-name {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--akzent-schrift);
  margin: 0 0 6px;
}
.breit { width: 100%; }
.klein-knopf { min-height: 34px; padding: 0 12px; font-size: .86rem; }

.laden-kreis {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--rand);
  border-top-color: var(--akzent);
  animation: drehen .9s linear infinite;
}
.laden-kreis.klein { width: 14px; height: 14px; border-width: 2px; }
@keyframes drehen { to { transform: rotate(360deg); } }

.avatar {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  font-weight: 650;
  letter-spacing: .02em;
  user-select: none;
  flex: none;
  background: #555a66;
}
.avatar.gross { width: 96px; font-size: 2.1rem; }
.avatar.klein { width: 34px; font-size: .8rem; }

.rund {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(24, 26, 32, .72);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.rund:hover { background: rgba(48, 50, 60, .85); }
.rund:active { transform: scale(.96); }
.rund svg { width: 22px; height: 22px; }
.rund.aus { background: var(--gefahr); }
.rund.aus:hover { background: var(--gefahr-dunkel); }
.rund.klein { width: 40px; height: 40px; }
.rund.klein svg { width: 18px; height: 18px; }
.rund.leise { background: transparent; color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.rund.leise:hover { background: var(--flaeche-3); }
.rund.haupt { background: var(--akzent); color: var(--akzent-text); }
.rund.haupt:hover { background: var(--akzent-dunkel); color: #fff; }
.rund:disabled { opacity: .4; cursor: default; }

/* ---------- Vorraum & Warteraum ---------- */

#ansicht-vorraum { justify-content: flex-start; }
.vorraum-kopf { width: min(1080px, 100%); display: flex; align-items: center; min-height: 28px; }
.vorraum {
  width: min(1080px, 100%);
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.vorschau-spalte { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vorschau {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #15161b;
  box-shadow: var(--schatten);
  isolation: isolate;
}
.vorschau video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #15161b;
}
video.gespiegelt { transform: scaleX(-1); }
.vorschau-leer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c9cad2;
  font-size: .95rem;
}
.vorschau-knoepfe {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.pegel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, .12);
  z-index: 2;
}
.pegel-balken {
  height: 100%;
  background: var(--ok);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 90ms linear;
}
.vorraum-karte { padding: 28px; min-width: 0; }
.vorraum-karte h1 { margin-bottom: .35em; }
.raum-titel { font-weight: 600; color: var(--text-2); margin-bottom: 4px; overflow-wrap: anywhere; }
#v-hinweis { margin-bottom: 18px; }
.geraete-wahl { margin: 0 0 14px; }
.geraete-wahl summary {
  cursor: pointer;
  color: var(--text-2);
  font-weight: 600;
  font-size: .92rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.geraete-wahl summary::-webkit-details-marker { display: none; }
.geraete-wahl summary::before { content: '▸'; transition: transform .15s; }
.geraete-wahl[open] summary::before { transform: rotate(90deg); }
.geraete-wahl[open] { padding-bottom: 4px; }
#v-weich-zeile { margin: 4px 0 16px; }
#v-form .meldung { margin: 0 0 14px; }
#v-beitreten { margin-top: 6px; }

#warteraum-panel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#warteraum-panel[hidden] { display: none; }
.warte-symbol { margin: 6px 0 14px; }
.warte-symbol .laden-kreis { width: 44px; height: 44px; }
#w-text { font-size: 1.05rem; }
#w-abbrechen { margin-top: 8px; }

@media (max-width: 860px) {
  .vorraum { grid-template-columns: 1fr; gap: 16px; margin: 0; }
  .vorraum-karte { padding: 20px; }
}
@media (max-width: 600px) {
  .vorschau { aspect-ratio: 4 / 3; border-radius: 14px; }
  .ansicht { gap: 12px; }
}

/* ---------- Ende & Fehler ---------- */

.ende-karte { text-align: center; padding: 32px 24px; }
.ende-karte .knopf { margin-top: 10px; }
#ende-text { font-size: 1.05rem; }

/* ---------- Konferenz ---------- */

.konferenz {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--k-hg);
  color: var(--k-text);
  overflow: hidden;
}

.k-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + var(--sicher-oben)) calc(14px + var(--sicher-rechts)) 6px calc(14px + var(--sicher-links));
  min-height: 48px;
}
.k-kopf-links { display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-kopf-rechts { display: flex; align-items: center; gap: 8px; flex: none; }
.k-marke { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent-schrift); flex: none; }
.k-titel { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.k-zeit { color: var(--k-text-2); font-variant-numeric: tabular-nums; font-size: .9rem; flex: none; }
.k-kopf-knopf {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--k-text);
  cursor: pointer;
}
.k-kopf-knopf:hover { background: var(--k-knopf-hover); }
.k-kopf-knopf svg { width: 20px; height: 20px; }

.k-ki {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  background: rgba(138, 106, 255, .16); color: #c9b8ff; font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: help;
}
.k-ki[hidden] { display: none; }
.verpasst p { margin: 0 0 8px; }
.k-aufnahme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(212, 59, 59, .16);
  color: #ff8d8d;
  font-size: .85rem;
  font-weight: 650;
}
.k-aufnahme[hidden] { display: none; }
.k-aufnahme-punkt {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gefahr);
  animation: puls 1.6s ease-in-out infinite;
}
@keyframes puls {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212, 59, 59, .55); }
  50% { opacity: .55; box-shadow: 0 0 0 6px rgba(212, 59, 59, 0); }
}
.k-aufnahme-stopp {
  border: 0;
  border-radius: 999px;
  background: var(--gefahr);
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  padding: 4px 10px;
  min-height: 26px;
  cursor: pointer;
}
.k-aufnahme-stopp:disabled { opacity: .6; cursor: default; }

.k-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: .9rem;
  background: rgba(232, 137, 12, .16);
  color: #ffc27a;
}
.k-banner-freigabe { background: color-mix(in srgb, var(--akzent) 18%, transparent); color: var(--k-text); }
.k-banner .laden-kreis { border-color: rgba(255, 194, 122, .3); border-top-color: #ffc27a; }

.k-mitte { flex: 1; min-height: 0; display: flex; }

/* Bühne */
.buehne {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0 8px;
  /* Platz für die Live-Untertitel unten; die Kacheln rücken darüber, damit Namensschilder frei bleiben */
  --ut-platz: 0px;
}
.buehne.mit-untertitel { --ut-platz: 7.5rem; }
.buehne.modus-buehne.mit-untertitel { padding-bottom: var(--ut-platz); }
.raster {
  position: absolute;
  inset: 0 0 var(--ut-platz);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
}
.raster.mehrseitig { bottom: calc(48px + var(--ut-platz)); }
.modus-buehne { display: grid; gap: 8px; }
.modus-buehne.streifen-unten { grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.modus-buehne.streifen-rechts { grid-template-columns: minmax(0, 1fr) 232px; grid-template-rows: minmax(0, 1fr); }
.modus-buehne.ohne-streifen { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.haupt { position: relative; min-height: 0; min-width: 0; }
/* Mehrere Sprecher gleich groß; Hauptredner bzw. Sprecher mit mittelgroßen Kacheln daneben */
.haupt.mehrfach { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.haupt.mit-neben { display: grid; gap: 8px; }
.haupt.mit-neben.quer { grid-template-columns: minmax(0, 1fr) minmax(0, 27%); grid-template-rows: minmax(0, 1fr); }
.haupt.mit-neben.quer.neben-breit { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
.haupt.mit-neben.hoch { grid-template-rows: minmax(0, 1fr) minmax(0, 30%); grid-template-columns: minmax(0, 1fr); }
.haupt.mit-neben.hoch.neben-breit { grid-template-rows: minmax(0, 1fr) minmax(0, 42%); }
.haupt.mit-neben > .kachel { min-width: 0; min-height: 0; }
.neben { min-width: 0; min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; overflow: hidden; }
/* Präsentation neben Sprecher: --teilung = Anteil der Präsentation */
.haupt.geteilt { display: grid; }
.haupt.geteilt.quer { grid-template-columns: minmax(0, var(--teilung, 72%)) 12px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.haupt.geteilt.hoch { grid-template-rows: minmax(0, var(--teilung, 58%)) 12px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.haupt.geteilt > .kachel { min-width: 0; min-height: 0; }
.teilungs-griff { position: relative; touch-action: none; display: grid; place-items: center; }
.haupt.quer .teilungs-griff { cursor: col-resize; }
.haupt.hoch .teilungs-griff { cursor: row-resize; }
.teilungs-griff::after { content: ''; border-radius: 3px; background: rgba(255, 255, 255, .22); transition: background .15s; }
.haupt.quer .teilungs-griff::after { width: 4px; height: 44px; }
.haupt.hoch .teilungs-griff::after { width: 44px; height: 4px; }
.teilungs-griff:hover::after, .teilungs-griff.aktiv::after { background: var(--akzent); }
.streifen {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  min-width: 0;
  min-height: 0;
}
.streifen-unten .streifen { flex-direction: row; height: 118px; padding-bottom: 2px; }
.streifen-unten .streifen .kachel { height: 100%; aspect-ratio: 16 / 9; flex: none; }
.streifen-rechts .streifen { flex-direction: column; }
.streifen-rechts .streifen .kachel { width: 100%; aspect-ratio: 16 / 9; flex: none; }

/* Kachel */
.kachel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--k-kachel);
  container-type: size;
  flex: none;
}
.kachel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: none;
}
.kachel.mit-video video { display: block; }
.kachel.freigabe video, .kachel.auf-buehne video { object-fit: contain; }
.kachel.auf-buehne { width: 100%; height: 100%; background: #08090b; }
.avatar-flaeche { position: absolute; inset: 0; display: grid; place-items: center; }
.kachel.mit-video .avatar-flaeche { display: none; }
.kachel .avatar { width: 72px; font-size: 1.6rem; }
@supports (width: 1cqmin) {
  .kachel .avatar { width: clamp(36px, 30cqmin, 128px); font-size: clamp(14px, 11cqmin, 46px); }
}
.kachel.spricht::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--akzent);
  pointer-events: none;
  z-index: 3;
}
.k-unten {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(10, 11, 14, .62);
  font-size: .8rem;
  line-height: 1.35;
  z-index: 2;
}
.k-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.k-rolle {
  flex: none;
  font-size: .68rem;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--akzent) 40%, transparent);
}
.k-symbol { display: inline-grid; place-items: center; flex: none; }
.k-symbol svg { width: 15px; height: 15px; }
.k-symbol.mikro-aus { color: #ff7b7b; }
.k-oben { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 2; }
.k-hand {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: #f5c542; color: #1b1b1b; font-size: 17px;
  animation: winken .6s ease-in-out 2;
}
@keyframes winken { 50% { transform: rotate(-14deg); } }
.k-symbol.netz { width: 26px; height: 26px; border-radius: 7px; background: rgba(10, 11, 14, .62); color: var(--warn); }
.k-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(10, 11, 14, .62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  z-index: 4;
}
.k-pin svg { width: 17px; height: 17px; }
.kachel:hover .k-pin, .k-pin:focus-visible, .kachel.angeheftet .k-pin { opacity: 1; }
.kachel.angeheftet .k-pin { background: var(--akzent); color: var(--akzent-text); }
@media (hover: none) { .k-pin { opacity: .75; } }
.k-fokus {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 8px; border-radius: 7px;
  background: var(--akzent); color: var(--akzent-text); font-size: .78rem; font-weight: 600;
}
.k-fokus svg { width: 13px; height: 13px; }
.k-fokus[hidden] { display: none; }

.seiten-nav {
  position: absolute;
  left: 50%;
  bottom: calc(4px + var(--ut-platz));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px;
  border-radius: 999px;
  background: var(--k-glas);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  z-index: 5;
}
.seiten-nav[hidden] { display: none; }

.allein-hinweis {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--k-glas);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 5;
  white-space: nowrap;
  max-width: calc(100% - 24px);
}
.allein-hinweis[hidden] { display: none; }
.allein-hinweis p { margin: 0; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.allein-hinweis .knopf { min-height: 34px; font-size: .85rem; background: transparent; color: var(--k-text); border-color: rgba(255, 255, 255, .25); }

.reaktionen-ebene { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.reaktion {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  animation: aufsteigen 3s ease-out forwards;
}
.reaktion-emoji { font-size: 38px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.reaktion-name {
  margin-top: 4px;
  font-size: .72rem;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(10, 11, 14, .66);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes aufsteigen {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -190px) scale(1); }
}
.ton-knopf {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 7;
  box-shadow: var(--schatten);
}

/* Seitenleiste */
.seitenleiste {
  width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  margin: 0 8px 0 0;
  border-radius: 14px;
  background: #16171d;
  border: 1px solid #262832;
  overflow: hidden;
  min-height: 0;
}
.panel { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.panel[hidden] { display: none; }
.panel-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid #262832;
}
.panel-kopf h2 { margin: 0; font-size: 1rem; }
.panel .rund.leise { color: var(--k-text); }
.panel .rund.leise:hover { background: var(--k-knopf-hover); }

/* Chat */
.chat-liste { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.chat-nachricht { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 92%; }
.chat-nachricht.eigen { align-self: flex-end; align-items: flex-end; }
.chat-kopf { display: flex; align-items: baseline; gap: 8px; font-size: .78rem; color: var(--k-text-2); flex-wrap: wrap; }
.chat-name { font-weight: 650; color: var(--k-text); }
.chat-privat { color: #f5c542; font-weight: 600; }
.chat-text {
  padding: 7px 11px;
  border-radius: 12px;
  background: #262832;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .93rem;
}
.chat-nachricht.eigen .chat-text { background: var(--akzent); color: var(--akzent-text); }
.chat-nachricht.privat .chat-text { box-shadow: inset 0 0 0 1px #f5c542; }
.chat-text a { color: inherit; text-decoration: underline; }
.chat-datei { display: grid; gap: 4px; min-width: 160px; }
.chat-datei-name, .chat-datei-link { font-weight: 600; overflow-wrap: anywhere; }
.chat-datei-info { font-size: .78rem; opacity: .8; }
.chat-datei.fehler .chat-datei-info { color: #ff9a9a; opacity: 1; }
.chat-bild img { display: block; max-width: 220px; max-height: 220px; border-radius: 8px; }
.chat-hinweis { text-align: center; color: var(--k-text-2); font-size: .8rem; }
.chat-form { padding: 10px 12px calc(10px + var(--sicher-unten)); border-top: 1px solid #262832; display: flex; flex-direction: column; gap: 8px; }
.chat-an { display: flex; align-items: center; gap: 8px; }
.chat-an label { margin: 0; font-size: .82rem; color: var(--k-text-2); }
.chat-an select { min-height: 36px; padding: 4px 10px; font-size: 15px; width: auto; flex: 1; max-width: 100%; background: #1d1e24; color: var(--k-text); border-color: #33353f; }
.chat-an.privat select { border-color: #f5c542; }
.chat-eingabe { display: flex; align-items: flex-end; gap: 8px; }
.chat-eingabe textarea {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: none;
  background: #1d1e24;
  color: var(--k-text);
  border-color: #33353f;
  line-height: 1.4;
}
.chat-eingabe .rund { flex: none; width: 44px; height: 44px; }

/* Teilnehmer */
.tn-inhalt { flex: 1; overflow-y: auto; padding: 6px 8px calc(12px + var(--sicher-unten)); overscroll-behavior: contain; }
.tn-abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 6px; }
.tn-abschnitt-kopf h3 { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--k-text-2); }
.wartende { margin-bottom: 6px; border-radius: 12px; background: rgba(232, 137, 12, .1); padding-bottom: 4px; }
.tn-liste { list-style: none; margin: 0; padding: 0; }
.tn-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; min-height: 48px; }
.tn-zeile:hover { background: #1e2027; }
.tn-zeile.spricht .avatar { box-shadow: 0 0 0 2px var(--akzent); }
.tn-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tn-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .93rem; }
.tn-rolle { font-size: .74rem; color: var(--k-text-2); }
.tn-status { display: flex; align-items: center; gap: 6px; flex: none; }
.tn-sym { display: inline-grid; place-items: center; color: var(--k-text-2); }
.tn-sym svg { width: 18px; height: 18px; }
.tn-sym.aus { color: #ff7b7b; }
.tn-hand { font-size: 16px; }
.tn-warte-knoepfe { display: flex; gap: 6px; flex: none; }
.tn-menue { color: var(--k-text) !important; }

/* Steuerleiste */
.leiste {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px calc(12px + var(--sicher-rechts)) calc(8px + var(--sicher-unten)) calc(12px + var(--sicher-links));
  background: var(--k-leiste);
}
.leiste-mitte { grid-column: 2; display: flex; align-items: center; gap: 4px; }
.leiste-rechts { grid-column: 3; justify-self: end; }
.k-gruppe { display: flex; align-items: stretch; border-radius: 12px; }
.k-knopf {
  position: relative;
  min-width: 64px;
  height: 56px;
  padding: 4px 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--k-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.k-knopf:hover { background: var(--k-knopf-hover); }
.k-knopf svg { width: 22px; height: 22px; }
.k-text { font-size: .7rem; line-height: 1.1; white-space: nowrap; color: var(--k-text-2); }
.k-knopf.aus { background: var(--gefahr); color: #fff; }
.k-knopf.aus .k-text { color: #fff; }
.k-knopf.aus:hover { background: var(--gefahr-dunkel); }
.k-knopf.an { background: var(--akzent); color: var(--akzent-text); }
.k-knopf.an .k-text { color: var(--akzent-text); }
.k-knopf.an:hover { background: var(--akzent-dunkel); }
.k-knopf.verlassen { background: var(--gefahr); color: #fff; min-width: 72px; }
.k-knopf.verlassen .k-text { color: #fff; }
.k-knopf.verlassen:hover { background: var(--gefahr-dunkel); }
.k-gruppe .k-knopf { border-radius: 12px 0 0 12px; }
.k-pfeil {
  width: 24px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: transparent;
  color: var(--k-text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.k-pfeil:hover { background: var(--k-knopf-hover); color: var(--k-text); }
.k-pfeil svg { width: 14px; height: 14px; }
.zaehler {
  position: absolute;
  top: 3px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--akzent);
  color: var(--akzent-text);
  font-size: .68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.zaehler.leise { background: #393c47; color: var(--k-text); }
.warte-punkt {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 2px var(--k-leiste);
  animation: puls-warn 1.6s ease-in-out infinite;
}
@keyframes puls-warn { 50% { transform: scale(1.3); } }

/* Menüs */
.menue {
  position: fixed;
  z-index: 100;
  min-width: 230px;
  max-width: min(340px, calc(100vw - 16px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--flaeche);
  color: var(--text);
  border: 1px solid var(--rand);
  box-shadow: var(--schatten);
  animation: einblenden .12s ease-out;
}
.menue.blatt {
  left: 0 !important;
  right: 0;
  bottom: 0;
  top: auto !important;
  max-width: none;
  max-height: 80dvh;
  border-radius: 18px 18px 0 0;
  padding: 10px 8px calc(10px + var(--sicher-unten));
  animation: hochschieben .18s ease-out;
}
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } }
@keyframes hochschieben { from { transform: translateY(100%); } }
.menue-punkt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menue-punkt:hover, .menue-punkt:focus-visible { background: var(--flaeche-3); outline: none; }
.menue-punkt:disabled { opacity: .45; cursor: default; }
.menue-punkt.gefahr { color: #ff7b7b; }
.menue-symbol { width: 20px; display: grid; place-items: center; flex: none; color: var(--text-2); }
.menue-symbol svg { width: 18px; height: 18px; }
.menue-punkt.gefahr .menue-symbol { color: inherit; }
.menue-punkt.gewaehlt .menue-symbol { color: var(--akzent-schrift, var(--akzent)); }
.menue-text { flex: 1; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 1px; }
.menue-zusatz { color: var(--text-3); font-size: .78rem; line-height: 1.3; }

/* Menü (9.11.2026 neu): Ebenen, Schalter, Kacheln – Vorbild macOS/iOS-Popover, Teams, Google Meet */
.menue:not(.blatt) { width: 332px; max-height: min(84vh, 680px); }
.menue-ebene { display: flex; flex-direction: column; }
.menue-ebene.vor { animation: ebene-vor .16s ease-out; }
.menue-ebene.zurueck { animation: ebene-zurueck .16s ease-out; }
@keyframes ebene-vor { from { opacity: 0; transform: translateX(14px); } }
@keyframes ebene-zurueck { from { opacity: 0; transform: translateX(-14px); } }
@media (prefers-reduced-motion: reduce) { .menue-ebene.vor, .menue-ebene.zurueck, .menue { animation: none; } }
.menue-kopf { display: flex; align-items: center; gap: 6px; padding: 0 4px 6px 0; margin-bottom: 4px; border-bottom: 1px solid var(--rand); }
.menue-kopf-titel { font-weight: 650; font-size: .95rem; }
.menue-zurueck { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; }
.menue-zurueck:hover, .menue-zurueck:focus-visible { background: var(--flaeche-3); outline: none; }
.menue-zurueck svg { width: 18px; height: 18px; }
.menue-wert { color: var(--text-3); font-size: .85rem; white-space: nowrap; max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
.menue-weiter { display: grid; place-items: center; color: var(--text-3); flex: none; }
.menue-weiter svg { width: 16px; height: 16px; }
/* Schalter (An/Aus) statt Häkchen */
.menue-schalter { flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--flaeche-3); box-shadow: inset 0 0 0 1px var(--rand-stark, var(--rand)); position: relative; transition: background .15s, box-shadow .15s; }
.menue-schalter::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s; }
.menue-punkt[aria-checked="true"] .menue-schalter { background: var(--akzent); box-shadow: none; }
.menue-punkt[aria-checked="true"] .menue-schalter::after { transform: translateX(16px); }
/* Schnellzugriff als Kacheln */
.menue-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 2px 8px; }
.menue-kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 2px 8px; border: 0; border-radius: 12px; background: var(--flaeche-2); box-shadow: inset 0 0 0 1px var(--rand); color: inherit; font: inherit; font-size: .78rem; font-weight: 550; line-height: 1.2; text-align: center; cursor: pointer; transition: background .12s, box-shadow .12s; }
.menue-kachel:hover, .menue-kachel:focus-visible { background: var(--flaeche-3); outline: none; }
.menue-kachel:disabled { opacity: .45; cursor: default; }
.menue-kachel-symbol { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-3); }
.menue-kachel-symbol svg { width: 18px; height: 18px; }
.menue-kachel.aktiv { box-shadow: inset 0 0 0 1.5px var(--akzent); }
.menue-kachel.aktiv .menue-kachel-symbol { background: var(--akzent); color: var(--akzent-text); }
.menue-kachel.gefahr .menue-kachel-symbol { background: #e5484d; color: #fff; }
.menue-kachel.gefahr { box-shadow: inset 0 0 0 1.5px #e5484d; }
.menue-kachel-text { overflow-wrap: normal; word-break: normal; hyphens: auto; max-width: 100%; }
/* Tastenkürzel-Übersicht */
.tastenkuerzel { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; align-items: center; margin: 0; }
.tastenkuerzel dt, .tastenkuerzel dd { margin: 0; }
.tastenkuerzel dd { color: var(--text-2); }
.tastenkuerzel kbd { display: inline-block; min-width: 26px; padding: 3px 7px; border-radius: 6px; background: var(--flaeche-3); box-shadow: inset 0 -1px 0 var(--rand-stark, var(--rand)), inset 0 0 0 1px var(--rand); font: 600 .82rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.menue-ueberschrift { padding: 8px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); overflow-wrap: anywhere; }
.menue-trenner { height: 1px; background: var(--rand); margin: 6px 4px; }
.reaktions-reihe { display: flex; gap: 2px; padding: 2px; justify-content: space-between; }
.reaktions-knopf {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .1s, background .15s;
}
.reaktions-knopf:hover { background: var(--flaeche-3); transform: scale(1.12); }

/* Dialoge */
.dialog {
  border: 0;
  border-radius: 16px;
  padding: 22px;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--flaeche);
  color: var(--text);
  box-shadow: var(--schatten);
}
.dialog::backdrop { background: rgba(5, 6, 9, .58); }
.dialog h2 { margin-bottom: 12px; }
.dialog .schalter { align-items: flex-start; margin: 0 0 12px; line-height: 1.4; }
.dialog .schalter input { margin-top: 2px; flex: none; }
.dialog-knoepfe { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.aufnahme-dialog .meldung { margin-top: 10px; }

/* Toasts */
.toasts {
  position: fixed;
  top: calc(10px + var(--sicher-oben));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(420px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  position: relative;
  pointer-events: auto;
  padding: 12px 44px 12px 14px;
  border-radius: 12px;
  background: #23252d;
  color: #f2f2f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border-left: 4px solid #4a4d59;
  animation: einblenden .18s ease-out;
  transition: opacity .2s, transform .2s;
  font-size: .93rem;
}
.toast.weg { opacity: 0; transform: translateY(-6px); }
.toast.fehler { border-left-color: var(--gefahr); }
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast-inhalt { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.toast-inhalt strong { font-size: .85rem; }
.toast-knoepfe { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toast-knoepfe .knopf { background: #33353f; border-color: #44475a; color: #f2f2f5; }
.toast-knoepfe .knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.toast-zu {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a6a8b3;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.toast-zu:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.toast-zu svg { width: 16px; height: 16px; }

.audio-ablage { display: none; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1100px) {
  .k-knopf { min-width: 56px; }
}
@media (max-width: 900px) {
  .k-text { display: none; }
  .k-knopf { height: 48px; min-width: 48px; }
  .leiste { grid-template-columns: 1fr auto; }
  .leiste-mitte { grid-column: 1; justify-self: center; }
  .leiste-rechts { grid-column: 2; }
  .k-knopf.verlassen { min-width: 56px; }
}
@media (max-width: 760px) {
  .nur-breit { display: none !important; }
  .k-pfeil { display: none; }
  .k-gruppe .k-knopf { border-radius: 12px; }
  .leiste { display: flex; justify-content: space-between; gap: 2px; padding-left: calc(6px + var(--sicher-links)); padding-right: calc(6px + var(--sicher-rechts)); }
  .leiste-mitte { display: contents; }
  .leiste-rechts { display: contents; }
  .k-knopf { flex: 1 1 0; min-width: 44px; max-width: 64px; height: 48px; padding: 4px 2px; }
  .k-gruppe { flex: 1 1 0; max-width: 64px; }
  .k-gruppe .k-knopf { max-width: none; width: 100%; }
  .k-knopf.verlassen { min-width: 48px; }
  .zaehler { right: 2px; }
  .buehne { margin: 0 4px; }
  .k-kopf { padding-left: calc(10px + var(--sicher-links)); padding-right: calc(8px + var(--sicher-rechts)); }
  .k-zeit { display: none; }
  .streifen-unten .streifen { height: 84px; }

  .seitenleiste {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding-top: var(--sicher-oben);
    padding-left: var(--sicher-links);
    padding-right: var(--sicher-rechts);
  }
}
@media (max-width: 420px) {
  .k-marke { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Räumchen: Türschild */
.tuer-karte { text-align: center; padding: 32px 24px; }
.tuer-schild { display: inline-grid; place-items: center; width: 92px; height: 92px; margin: 6px auto 14px; border-radius: 50%;
  color: var(--akzent-schrift); background: color-mix(in srgb, var(--akzent) 14%, var(--flaeche)); }
.tuer-text { font-size: 1.05rem; white-space: pre-line; overflow-wrap: anywhere; }
.tuer-frei { font-weight: 650; color: var(--text); }
.tuer-karte #tn-oeffnen { margin-top: 8px; }
.tn-form { text-align: left; margin-top: 18px; }
.tn-ton { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 14px; }
.tn-ton audio { width: 100%; }
.tn-ton .aufnahme-laeuft { border-color: var(--gefahr); color: var(--gefahr); }
.tn-form #tn-senden { width: 100%; }
.tn-danke { margin-top: 18px; }

/* Hintergrund-Auswahl */
.hg-huelle { display: grid; gap: 6px; }
.hg-wahl { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.hg-knopf { position: relative; flex: none; width: 72px; height: 44px; border-radius: 8px; border: 2px solid var(--rand-stark);
  background: var(--flaeche-2); color: var(--text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; padding: 0; overflow: hidden;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.hg-knopf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-knopf.an { border-color: var(--akzent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--akzent) 35%, transparent); }
.hg-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.hg-neu { border-style: dashed; }
.hg-weg { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
  font-size: 13px; line-height: 18px; text-align: center; }
.hg-wahl.laedt .hg-knopf { opacity: .55; pointer-events: none; }
.hg-status { margin: 0; font-size: .85rem; color: var(--text-2); min-height: 1.2em; }
.vorschau.effekt-laedt::after { content: 'Hintergrund wird vorbereitet …'; position: absolute; inset: auto 12px 12px 12px; text-align: center;
  padding: 6px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .85rem; }

/* Türspion im Warteraum des Räumchens */
.spion { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; max-width: 460px; padding: 8px 12px; border-radius: var(--radius-k);
  background: var(--flaeche-2); border: 1px solid var(--rand); text-align: left; font-size: .88rem; }
.spion p { margin: 0; flex: 1; color: var(--text-2); }
.spion-auge { flex: none; font-size: 1.1rem; }
.spion .knopf { flex: none; }
.spion-vorher { margin: 4px 0 10px; }

.k-schloss { flex: none; margin-left: 6px; font-size: .9rem; cursor: help; }

/* Whiteboard: über der ganzen Bühne („Groß“) oder im Raster der Bühne neben dem Streifen mit den Personen */
.tafel { position: absolute; inset: 0 0 var(--ut-platz); z-index: 6; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: #16171c; }
.tafel[hidden] { display: none; }
.buehne.tafel-daneben .tafel { position: relative; inset: auto; z-index: auto; min-width: 0; min-height: 0; border-radius: 12px; }
/* Enger, damit die Werkzeuge neben dem Streifen in einer Zeile bleiben und die Fläche nichts verliert */
.buehne.tafel-daneben .tafel-werkzeuge { gap: 4px; }
.buehne.tafel-daneben .tafel-knopf { padding: 0 8px; }
.buehne.tafel-daneben .tafel-farbe { width: 22px; height: 22px; }
.buehne.tafel-daneben.streifen-rechts .tafel { grid-column: 1; grid-row: 1; }
.buehne.tafel-daneben.streifen-rechts .streifen { grid-column: 2; grid-row: 1; }
/* Beim Whiteboard steht der waagerechte Streifen oben, damit die Werkzeuge nah an der Fläche bleiben und die Mikro-Leiste frei */
.buehne.tafel-daneben.streifen-unten { grid-template-rows: auto minmax(0, 1fr); }
.buehne.tafel-daneben.streifen-unten .streifen { grid-column: 1; grid-row: 1; }
.buehne.tafel-daneben.streifen-unten .tafel { grid-column: 1; grid-row: 2; }
.tafel-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tafel-knopf { min-height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid #33353f; background: #23252c; color: var(--k-text); font: inherit; font-size: .85rem; cursor: pointer; }
.tafel-knopf[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.tafel-knopf.haupt { margin-left: auto; background: #f4f2ee; color: #22252c; border-color: #f4f2ee; }
.tafel-farbe { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #33353f; cursor: pointer; padding: 0; }
.tafel-farbe.an { border-color: #fff; box-shadow: 0 0 0 2px var(--akzent); }
.tafel-trenner { width: 1px; height: 22px; background: #33353f; margin: 0 2px; }
.tafel-rahmen { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.tafel-flaeche { background: #fff; border-radius: 6px; touch-action: none; box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.tafel-flaeche:focus { outline: none; }
.tafel-auswahl-leiste { position: absolute; z-index: 2; display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #16171c; box-shadow: 0 3px 12px rgba(0,0,0,.4); }
.tafel-auswahl-leiste[hidden] { display: none; }
.tafel-auswahl-leiste .tafel-knopf { min-height: 30px; white-space: nowrap; }
.tafel-eingabe { position: absolute; min-width: 220px; max-width: 60%; font: 600 16px system-ui, sans-serif; padding: 8px; border-radius: 6px; border: 2px solid var(--akzent); background: #fff; color: #22252c; }
.tafel-eingabe.notiz { background: #ffe680; }
@media (max-width: 600px) { .tafel-knopf { padding: 0 8px; font-size: .8rem; min-height: 32px; } .tafel-knopf.haupt { margin-left: 0; } }

/* Live-Untertitel im eigenen Streifen unten auf der Bühne (--ut-platz); reicht er nicht, fallen die ältesten Zeilen oben weg */
.untertitel { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 7; width: min(900px, calc(100% - 24px)); max-height: calc(var(--ut-platz) - 10px); overflow: hidden; display: grid; align-content: end; gap: 4px; pointer-events: none; }
.untertitel[hidden] { display: none; }
.ut-zeile { margin: 0; justify-self: center; max-width: 100%; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 1.05rem; line-height: 1.35; text-align: center; overflow-wrap: anywhere; animation: ut-ein .2s ease-out; }
.ut-name { color: #f5c542; font-weight: 650; }
@keyframes ut-ein { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .ut-zeile { animation: none; } }

/* Gruppenräume */
.k-banner-gruppe { background: #2b3a55; }
.gruppen-dialog { display: grid; gap: 10px; min-width: min(520px, 80vw); }
.gruppen-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.gruppen-zeile input { flex: 1; min-width: 160px; }
.gruppen-liste { display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.gruppen-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-weight: 500; }
.gruppen-person select { width: auto; }

/* Wilma an der geschlossenen Tür */
.tuer-wilma { margin: 18px 0 10px; padding: 16px; border-radius: var(--radius-k); background: color-mix(in srgb, var(--akzent) 8%, var(--flaeche)); border: 1px solid var(--rand); display: grid; gap: 12px; }
.tuer-wilma .breit { width: 100%; }

/* Schwebendes Fenster (Document Picture-in-Picture) und Platzhalter im Hauptfenster */
.schwebe-body { margin: 0; background: var(--k-hg); overflow: hidden; }
.schwebe-wurzel { position: fixed; inset: 0; display: flex; flex-direction: column; }
.schwebe-wurzel .buehne { margin: 6px 6px 0; }
.schwebe-wurzel .k-pin { display: none; }
.schwebe-leiste { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--k-leiste); flex-wrap: wrap; }
.schwebe-knopf {
  width: 38px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center;
  background: var(--k-knopf-hover); color: var(--k-text); cursor: pointer;
}
.schwebe-knopf svg { width: 19px; height: 19px; }
.schwebe-knopf.aus { background: #4a2228; color: #ffb4b4; }
.schwebe-knopf.an { background: #f5c542; color: #1b1b1b; }
.schwebe-knopf.gefahr { background: #d93a3a; color: #fff; }
.schwebe-knopf:hover { filter: brightness(1.15); }
.schwebe-luecke { flex: 1; }
.schwebe-hinweis {
  height: 30px; padding: 0 10px; border: 0; border-radius: 15px; cursor: pointer;
  background: var(--akzent); color: var(--akzent-text); font: inherit; font-size: .8rem; font-weight: 600;
}
.schwebe-hinweis[hidden], .schwebe-aufnahme[hidden] { display: none; }
.schwebe-aufnahme { display: inline-flex; align-items: center; gap: 6px; color: #ff8a8a; font-size: .8rem; font-weight: 600; }
.schwebe-platz { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--k-text-2); text-align: center; }
.schwebe-video { position: fixed; width: 2px; height: 2px; left: -10px; bottom: 0; opacity: 0; pointer-events: none; }

/* Video-Datei teilen: kleiner Player beim Teilenden */
.video-teilen {
  position: fixed; left: 12px; bottom: calc(88px + var(--sicher-unten)); z-index: 30;
  width: min(360px, calc(100vw - 24px)); display: grid; gap: 6px; padding: 8px;
  background: var(--k-leiste); color: var(--k-text); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.vt-kopf { display: flex; align-items: center; gap: 8px; }
.vt-titel { flex: 1; min-width: 0; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-video { width: 100%; max-height: 210px; border-radius: 8px; background: #000; }
.video-teilen.nur-ton .vt-video { height: 44px; background: transparent; }
.vt-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-hinweis { font-size: .75rem; color: var(--k-text-2); }
.video-teilen.eingeklappt .vt-video, .video-teilen.eingeklappt .vt-fuss { display: none; }
.video-teilen.eingeklappt .vt-klappen svg { transform: rotate(180deg); }

/* Webinar: Überschrift „Publikum“ in der Teilnehmerliste; Vorraum nur mit Namen */
.tn-gruppe { list-style: none; margin: 14px 4px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k-text-2); }
#ansicht-vorraum.nur-name .vorraum { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* Sprachwahl für Gäste (oben rechts, nicht in der Konferenz) */
.sprachwahl { position: fixed; top: calc(10px + var(--sicher-oben)); right: calc(12px + var(--sicher-rechts)); z-index: 20; }
.sprachwahl select { min-height: 32px; padding: 2px 8px; font-size: .85rem; border-radius: 8px; }
body:has(#ansicht-konferenz:not([hidden])) .sprachwahl { display: none; }

/* Kompaktes Gespräch im Wilma-Overlay (start.js kompakt): schmal wie am Handy, ohne Sprachwahl und schwebendes Fenster */
.k-gross { width: auto; padding: 0 10px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
body.kompakt .sprachwahl, body.kompakt #k-schweben, body.kompakt #k-zweit { display: none !important; }

/* Zweiter Bildschirm (zweitbildschirm.html, js/raum/zweitbildschirm.js): nur die Gesprächspartner, ohne Bedienung */
.zweit-body { margin: 0; background: var(--k-hg); overflow: hidden; }
.zweit-wurzel .buehne { margin: 6px; }
.zweit-wurzel .k-pin { display: none; }
.zweit-wurzel:not(.maus) { cursor: none; }
.zweit-hinweis { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; color: var(--k-text-2); font-size: 1.15rem; z-index: 10; background: var(--k-hg); }
.zweit-hinweis[hidden] { display: none; }
.zweit-knoepfe { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 20; opacity: 0; transition: opacity .3s; }
.zweit-knoepfe[hidden] { display: none; }
.zweit-wurzel.maus .zweit-knoepfe, .zweit-knoepfe:focus-within { opacity: 1; }
.zweit-knoepfe button { padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 11, 14, .75); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.zweit-knoepfe button[hidden] { display: none; }
.zweit-knoepfe button:hover { background: rgba(40, 42, 50, .9); }
.k-kopf-knopf.an { color: var(--akzent); }
.v-zweit { margin-top: 10px; }

/* Zeigen auf einem geteilten Bildschirm (js/raum/zeigen.js): Knopf an der Freigabe, Zeichenfläche darüber */
.k-zeigen { position: absolute; top: 8px; right: 50px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 0; background: rgba(10, 11, 14, .72); color: #fff; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.k-zeigen[hidden] { display: none; }
.k-zeigen svg { width: 16px; height: 16px; }
.k-zeigen:hover { background: rgba(40, 42, 50, .92); }
.kachel.zeigt .k-zeigen { background: #ff3b30; }
.kachel.zeigt { box-shadow: 0 0 0 3px #ff3b30; }
.zeige-flaeche { position: absolute; inset: 0; z-index: 5; cursor: crosshair; touch-action: none; }
.zeige-leinwand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.zeige-status { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 8px; background: rgba(10, 11, 14, .78); color: #fff; font-size: .8rem; pointer-events: none; text-align: center; }
.zeige-status.ok { background: rgba(20, 110, 60, .85); }
.zweit-wurzel .k-zeigen { display: none; }

/* Fernhilfe (js/raum/fernhilfe.js): Anleitung im Dialog */
.fh { display: grid; gap: 10px; max-width: 34rem; }
.fh p { margin: 0; }
.fh-schritte { margin: 0; padding-left: 1.3rem; display: grid; gap: 10px; }
.fh-schritte li > * + * { margin-top: 6px; }
.fh-reihe { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-einstellung { display: grid; gap: 6px; font-size: .9rem; }
.fh-einstellung code { padding: 2px 6px; border-radius: 5px; background: rgba(127, 127, 127, .15); word-break: break-all; }
.fh-felder { display: grid; gap: 8px; }

/* Knöpfe an der Präsentation (9.11.2026): „Groß“ und „Eigenes Fenster“, unten rechts; im Streifen nur das Symbol */
.k-praes { position: absolute; right: 8px; bottom: 8px; z-index: 6; display: flex; gap: 6px; opacity: .55; transition: opacity .15s; }
.kachel:hover .k-praes, .k-praes:focus-within { opacity: 1; }
@media (hover: none) { .k-praes { opacity: .9; } }
.k-praes-knopf { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 0; background: rgba(10, 11, 14, .72); color: #fff; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.k-praes-knopf:hover { background: rgba(40, 42, 50, .92); }
.k-praes-knopf svg { width: 16px; height: 16px; }
.streifen .k-praes { right: 4px; bottom: 4px; gap: 4px; }
.streifen .k-praes-knopf { padding: 4px; }
.streifen .k-praes-knopf span { display: none; }
.schwebe-wurzel .k-praes, .zweit-wurzel .k-praes { display: none; }
