/* Vorstandssitzung — Übersicht, Sitzungsblatt und Konferenzraum. */

.sec-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-kopf h1 { font-size: 22px; }

.sitz-liste { display: flex; flex-direction: column; gap: 10px; }

.sitz-karte {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.sitz-karte .wann {
  display: grid;
  place-items: center;
  min-width: 54px;
  padding: 6px 4px;
  border-radius: 10px;
  background: var(--line, #F0ECEA);
  line-height: 1.1;
}
.sitz-karte .wann b { font-size: 20px; }
.sitz-karte .wann span { font-size: 12px; color: var(--ink-soft, #5B6169); }
.sitz-karte .txt { flex: 1; min-width: 0; }
.sitz-karte .tt { font-weight: 600; }
.sitz-karte .sub { font-size: 13px; color: var(--ink-soft, #5B6169); }

.zust { font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.zust.geplant { background: #F1EDEB; color: #5C5350; }
.zust.laeuft  { background: #E7F3ED; color: #2E7D5B; }
.zust.beendet { background: #F0ECEA; color: #8E8480; }

.sitz-kopf h1 { font-size: 22px; }
.sitz-kopf .sub { color: var(--ink-soft, #5B6169); margin-bottom: 12px; }
.sitz-kopf .to { margin: 0 0 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.sitz-kopf .hinweis { color: var(--ink-soft, #5B6169); font-size: 14px; }
.sitz-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

.sitz-anwesend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.sitz-anwesend .lbl { color: var(--ink-soft, #5B6169); }
.sitz-anwesend .wer { display: inline-flex; align-items: center; gap: 6px; }

.praesenz { width: 100%; border-collapse: collapse; font-size: 14px; }
.praesenz td { padding: 6px 8px; border-top: 1px solid var(--line, #EEE); }
.praesenz .fi { color: var(--ink-soft, #5B6169); }
.aufn-liste { display: flex; flex-direction: column; gap: 8px; }
.aufn { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.aufn .txt { flex: 1; min-width: 160px; }
.aufn .st { color: var(--ink-soft, #5B6169); font-size: 13px; }
.zust.abgebrochen { background: #FDECEE; color: #B00014; }
.zust.gefragt { background: #FCF1E2; color: #C77716; }

.praesenz .gr { color: #B00014; font-size: 13px; }

/* Der Knopf sitzt in der Ecke der Kachel und ist bewusst zurückhaltend —
   jemanden aus einer Sitzung zu nehmen soll kein Griff nebenbei sein. */
.sitz-kachel .raus {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 17px; line-height: 1;
  background: rgba(0, 0, 0, .5); color: #fff;
  opacity: 0; transition: opacity .15s ease, background-color .15s ease;
}
.sitz-kachel:hover .raus, .sitz-kachel .raus:focus-visible { opacity: 1; }
.sitz-kachel .raus:hover { background: #E2001A; }
/* Auf Geräten ohne Zeigegerät gibt es kein Darüberfahren — dort steht er fest. */
@media (hover: none) { .sitz-kachel .raus { opacity: .8; } }

.praesenz .ze { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------------- Raum */

.sitz-raum {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: #14100F;
  color: #fff;
}
.sitz-raum .kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
}
.sitz-raum .kopf .tt { font-weight: 600; }
.sitz-raum .kopf .anz { font-size: 13px; opacity: .75; }

/* Die Kacheln teilen sich die Fläche selbst auf: je mehr Teilnehmer, desto
   schmaler — ohne feste Stufen, weil die Zahl bis zuletzt offen ist. */
.sitz-gitter {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
  overflow: auto;
  align-content: start;
}

.sitz-kachel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #2A2422;
}
.sitz-kachel video { width: 100%; height: 100%; object-fit: cover; }
.sitz-kachel .nam {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .55);
}

.sitz-raum .leiste {
  display: flex; justify-content: center; gap: 18px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
  /* Die Leiste darf nie schrumpfen und nie verdeckt werden: Wer den Raum
     nicht verlassen kann, sitzt fest — auf dem Telefon der schlimmste Fall. */
  flex: none;
  position: relative;
  z-index: 2;
  background: #14100F;
}

/* Der Güte-Knopf trägt zwei Zeilen: oben, was hinausgeht, darunter, was
   hereinkommt. Ein Wort wie „1080p" braucht kleinere Schrift als ein Sinnbild,
   sonst steht es über den Rand. */
.rundknopf.guete {
  grid-auto-flow: row;
  align-content: center;
  gap: 1px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.rundknopf.guete small { font-size: 10px; font-weight: 400; opacity: .7; }

/* Wer den Bildschirm zeigt, bekommt die ganze Breite. In einer Kachel unter
   vielen wäre ein geteiltes Dokument nicht mehr zu lesen. */
.sitz-kachel.zeigt {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  max-height: 62vh;
}
/* Beim Bildschirm zählt der ganze Inhalt, nicht der Bildausschnitt — deshalb
   hier einpassen statt anschneiden. */
.sitz-kachel.zeigt video { object-fit: contain; background: #000; }

/* ----------------------------------------------------- Zustimmung/Aufnahme */

/* Der Balken ist nicht wegklickbar: Solange aufgezeichnet wird, muss das zu
   sehen sein — nicht nur einmal beim Start. */
.sitz-hinweis {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 12px 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, .14);
}
.sitz-hinweis[hidden] { display: none; }
.sitz-hinweis .txt { flex: 1; min-width: 220px; }
.sitz-hinweis .btns { display: flex; gap: 8px; }

/* Die ausstehende eigene Entscheidung ist der einzige Zustand, der wirklich
   etwas von einem will — deshalb der einzige, der sich farblich vordrängt. */
.sitz-hinweis.gefragt { background: #4A3410; border: 1px solid #C77716; }
.sitz-hinweis.laeuft  { background: #4A1620; border: 1px solid #E2001A; }

.sitz-hinweis .punkt {
  width: 11px; height: 11px; border-radius: 50%;
  background: #E2001A; flex: none;
  animation: sitz-puls 1.6s ease-in-out infinite;
}
@keyframes sitz-puls { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .sitz-hinweis .punkt { animation: none; }
}

.btn.klein { padding: 6px 12px; font-size: 13px; }
.sitz-hinweis .btn.ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45);
}

@media (max-width: 520px) {
  /* Zwei Kacheln nebeneinander: Bei einer Vorstandsrunde waere eine Spalte
     eine Bildergalerie zum Scrollen — man will die Runde sehen, nicht blättern.
     Wer den Bildschirm zeigt, bekommt trotzdem die volle Breite. */
  .sitz-gitter { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 0 8px 8px; }
  .sitz-kachel.zeigt { max-height: 44vh; }
  .sitz-raum .kopf { padding: 10px 12px; }
  .sitz-raum .leiste { gap: 10px; padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
  .rundknopf { width: 50px; height: 50px; font-size: 19px; }
  .sitz-hinweis { margin: 0 8px 8px; font-size: 13px; }
}

/* Wahl beim Ansetzen: Haken links, Erklärung daneben. Die Erklärung gehört
   dazu — „fragen oder ansagen" sagt für sich genommen nichts. */
.modal .kasten {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; margin-top: 4px;
  border: 1px solid var(--rule, #E5E0DD); border-radius: 10px;
  cursor: pointer;
}
.modal .kasten input { margin-top: 3px; flex: none; }
.modal .kasten small { display: block; margin-top: 3px; color: var(--ink-2, #5C5350); }

/* --------------------------------------------------- Bestätigung der Aufnahme */

/* Liegt über allem und lässt sich nicht wegklicken: Es geht nicht weiter,
   ohne dass die Frage beantwortet ist. */
.sitz-frage {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 8, 8, .72);
}
.sitz-frage .kern {
  width: min(460px, 100%);
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: #241E1C;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.sitz-frage h2 { font-size: 19px; margin: 12px 0 8px; }
.sitz-frage p { font-size: 14.5px; line-height: 1.5; color: #D8D2CF; }
/* Der Zähler ist der Grund, warum hier nicht getrödelt wird — er darf
   auffallen, ohne zu blinken. */
.sitz-frage .zahl {
  display: inline-block;
  min-width: 1.6em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.sitz-frage .knoepfe {
  display: flex; flex-direction: column; gap: 10px; margin-top: 18px;
}
.sitz-frage .btn.gross { padding: 13px 20px; font-size: 15.5px; }
.sitz-frage .btn.ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  padding: 11px 20px;
}
.sitz-frage .punkt.gross {
  width: 15px; height: 15px; border-radius: 50%;
  background: #E2001A; margin: 0 auto;
  animation: sitz-puls 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sitz-frage .punkt.gross { animation: none; }
}
