/* DER SAAL
   Stil von Xinelum: schwarzer Grund, Creme, Popcorn-Gold, SF-Systemschrift.
   Apple-Muster: Musik „Jetzt läuft“ (Plakat und Band), Wetter (Karten),
   Live-Aktivitäten (Stationen), Nachrichten (Liste der Unterhaltungen, Foyer
   und Privatchats), Einstellungen (Listen, Schalter „Mitteilungen“).
   Keine Fremdschriften, keine CDNs, kein Systemblau. */

:root {
  --schwarz: #000;
  --grund-foyer: #070708;
  --karte: #121214;
  --karte-hell: #1c1c1f;
  --blase: #232327;
  --linie: rgba(255, 255, 255, .09);
  --linie-stark: rgba(255, 255, 255, .16);
  --text: #f5f5f7;
  --creme: #fbeed3;
  --leise: #a1a1a6;
  --leiser: #6e6e73;
  --gold: #e8b45a;
  --gold-hell: #f6dca8;
  --gold-tief: #a66f16;
  --gold-hauch: rgba(232, 180, 90, .14);
  --rot: #ff453a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --weich: cubic-bezier(.22, .61, .36, 1);
  --kopf-hoehe: 56px;
  --reiter-hoehe: 0px;
  --rand: 40px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--schwarz); }
body {
  background: var(--schwarz);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
img { display: block; }
button, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }
.nur-inhalt { display: contents; }

/* Die Wortmarke wie überall bei Xinelum: SF fett, gesperrt 0,42 em, Creme */
.wortmarke {
  font-weight: 700;
  letter-spacing: .42em;
  margin-right: -.42em;
  text-transform: uppercase;
  color: var(--creme);
  white-space: nowrap;
}

/* ── Anmeldung ─────────────────────────────────────────────────────────── */

body.anmeldung {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
}
body.anmeldung::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 38%;
  width: min(760px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(232, 180, 90, .17), rgba(232, 180, 90, .05) 55%, transparent);
  pointer-events: none;
  animation: licht-an 1.4s var(--weich) both;
}
.anmelde-buehne {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
}
.anmelde-logo { width: 104px; height: 104px; animation: auftritt .9s var(--weich) both; }
.anmelde-marke { font-size: 21px; margin-top: 26px; }
.anmelde-zeile { margin-top: 10px; color: var(--leise); font-size: 15px; }
.anmelde-hinweis {
  margin-top: 26px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 69, 58, .12);
  color: var(--creme);
  font-size: 14px;
}
.knopf-gold {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background-color .2s var(--weich), transform .2s var(--weich);
}
.knopf-gold:hover { background: var(--gold-hell); }
.knopf-gold:active { transform: scale(.98); }
.anmelde-fuss { margin-top: 18px; color: var(--leiser); font-size: 12px; }

@keyframes licht-an { from { opacity: 0; } to { opacity: 1; } }
@keyframes auftritt { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ── Kopfleiste ────────────────────────────────────────────────────────── */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--kopf-hoehe) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--rand), env(safe-area-inset-right)) 0 max(var(--rand), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 12px; }
.marke img { width: 30px; height: 30px; }
.marke .wortmarke { font-size: 15px; }
.kopf-rechts { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vorschau-marke {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-hell);
  border: .5px solid rgba(232, 180, 90, .45);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--leise); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--leiser); transition: background-color .4s, box-shadow .4s; }
.live[data-zustand="verbunden"] { color: var(--creme); }
.live[data-zustand="verbunden"] i { background: var(--gold); box-shadow: 0 0 10px rgba(232, 180, 90, .8); }
.live[data-zustand="verbindet"] i { animation: atmen 2.4s ease-in-out infinite; }
.live[data-zustand="getrennt"] i { background: var(--rot); }
.ich { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.abmelden {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--leise);
  transition: background-color .2s, color .2s;
}
.abmelden:hover { background: var(--karte-hell); color: var(--creme); }

/* ── Bühne: zwei Spalten am Mac, eine am iPhone ────────────────────────── */

.buehne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 680px;
  align-items: start;
}
.saal-spalte {
  min-width: 0;
  padding: 28px var(--rand) 72px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
/* Die Saalspalte richtet sich nach ihrer eigenen Breite (neben den Nachrichten wird sie schmaler). */
.saal-spalte { container-type: inline-size; }
.abschnitt {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 44px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.jetzt .abschnitt { margin-top: 4px; }
.zaehler { font-size: 15px; font-weight: 600; color: var(--leiser); font-variant-numeric: tabular-nums; }
.leer { color: var(--leise); font-size: 15px; padding: 18px 20px; }

/* ── Jetzt im Saal: das Plakat und das Band der Stationen ──────────────── */

.vorfuehrung {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  padding: 30px;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 36px;
  align-items: end;
  background: linear-gradient(180deg, #131315 0%, #0a0a0b 100%);
  box-shadow: inset 0 0 0 .5px var(--linie);
}
/* Projektorlicht von links oben: eine einzige, ruhige Lichtquelle */
.vorfuehrung::before {
  content: "";
  position: absolute;
  inset: -40% 30% 20% -25%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(232, 180, 90, .22), rgba(232, 180, 90, .06) 60%, transparent);
  animation: licht-an 1.6s var(--weich) both;
  pointer-events: none;
}
.vorfuehrung[data-lage="fehler"]::before { background: radial-gradient(closest-side, rgba(255, 69, 58, .16), transparent); }
.vorfuehrung[data-lage="ruhig"]::before { opacity: .45; }

.plakat {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(246, 220, 168, .16), transparent 60%),
    linear-gradient(180deg, #2a2014 0%, #120e08 62%, #070605 100%);
  box-shadow:
    0 28px 50px -18px rgba(0, 0, 0, .9),
    0 0 60px -10px rgba(232, 180, 90, .25),
    inset 0 0 0 .5px rgba(255, 255, 255, .14);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 12px;
  transition: box-shadow .8s var(--weich);
}
.plakat-ueber { font-size: 13px; font-weight: 600; color: var(--gold-hell); letter-spacing: .02em; }
.plakat-nummer {
  font-size: 64px;
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(170deg, var(--creme) 15%, var(--gold) 65%, #d98a2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 2px;
}
.plakat-figur {
  width: 82%;
  margin-top: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
  transition: opacity .6s var(--weich);
}
.plakat-figur.wechselt { opacity: 0; }
.plakat-fuss {
  margin-top: 10px;
  font-size: 8px;
  padding-top: 8px;
  border-top: .5px solid rgba(251, 238, 211, .18);
  width: 100%;
  text-align: center;
}
.plakat-leer { margin: auto; width: 46%; opacity: .5; }

.vorfuehrung > .plakat { grid-row: 1 / span 2; align-self: center; }
.vorfuehrung-text { min-width: 0; grid-column: 2; }
.vorfuehrung > .band { grid-column: 2; }
.vorfuehrung-titel { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--text); }
.vorfuehrung-unter { margin-top: 6px; font-size: 17px; color: var(--leise); }
.plattformen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.kapsel {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--leise);
  background: rgba(255, 255, 255, .06);
  white-space: nowrap;
}
.kapsel.gold { color: var(--gold-hell); background: var(--gold-hauch); }

.lage { margin-top: 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.lage-was { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--creme); }
.lage-wann { font-size: 15px; color: var(--leise); font-variant-numeric: tabular-nums; }
.vorfuehrung[data-lage="fehler"] .lage-was { color: var(--rot); }
.lage-notiz { margin-top: 4px; font-size: 14px; color: var(--leise); }

/* Das Band: fünf Stationen, verbunden wie ein Fortschrittsbalken */
.band {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.station { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.station::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  border-radius: 1px;
  background: var(--linie-stark);
  transition: background-color .8s var(--weich);
}
.station:last-child::after { display: none; }
.station[data-zustand="fertig"]::after, .station[data-zustand="uebersprungen"]::after { background: var(--gold); }
.punkt {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24);
  color: #000;
  transition: background-color .6s var(--weich), box-shadow .6s var(--weich);
}
.punkt svg { position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; opacity: 0; transition: opacity .4s; }
.station[data-zustand="fertig"] .punkt { background: var(--gold); box-shadow: none; }
.station[data-zustand="fertig"] .punkt .s-haken { opacity: 1; }
.station[data-zustand="fehler"] .punkt { background: var(--rot); box-shadow: none; }
.station[data-zustand="fehler"] .punkt .s-ausruf { opacity: 1; }
.station[data-zustand="uebersprungen"] .punkt { box-shadow: inset 0 0 0 1.5px rgba(232, 180, 90, .5); }
.station[data-zustand="laeuft"] .punkt { box-shadow: inset 0 0 0 2px var(--gold); }
.station[data-zustand="laeuft"] .punkt::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.station[data-zustand="laeuft"] .punkt::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 180, 90, .45), transparent);
  animation: atmen 2.8s ease-in-out infinite;
}
.station-name { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--leise); padding: 0 4px; transition: color .6s; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.station[data-zustand="laeuft"] .station-name, .station[data-zustand="fertig"] .station-name { color: var(--creme); }
.station[data-zustand="fehler"] .station-name { color: var(--rot); }
.station-zeit { margin-top: 2px; font-size: 12px; color: var(--leiser); font-variant-numeric: tabular-nums; min-height: 17px; }
.station[data-zustand="laeuft"] .station-zeit { color: var(--gold-hell); }

@keyframes atmen { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ── Programm: Vorstellungen mit Uhrzeit (wie die stündliche Wetterkarte) ── */

.vorstellungen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
}
.vorstellung {
  position: relative;
  padding: 16px 18px 17px;
  border-radius: 18px;
  background: var(--karte);
  box-shadow: inset 0 0 0 .5px var(--linie);
  display: flex;
  flex-direction: column;
  min-height: 132px;
  transition: opacity .6s var(--weich);
}
.vorstellung-tag { font-size: 12px; font-weight: 600; color: var(--leiser); min-height: 17px; }
.vorstellung-uhr { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--creme); margin-top: 2px; }
.vorstellung-titel { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); }
.vorstellung-notiz { margin-top: 2px; font-size: 13px; color: var(--leise); }
.vorstellung .kapsel { align-self: flex-start; margin-top: auto; }
.vorstellung-titel + .kapsel, .vorstellung-notiz + .kapsel { margin-top: 12px; }
.vorstellung[data-wann="naechste"] {
  background: linear-gradient(180deg, rgba(232, 180, 90, .13), rgba(232, 180, 90, .04)), var(--karte);
  box-shadow: inset 0 0 0 .5px rgba(232, 180, 90, .35);
}
.vorstellung[data-wann="naechste"] .vorstellung-uhr { color: var(--gold); }
.vorstellung[data-wann="naechste"] .vorstellung-tag { color: var(--gold-hell); }
.vorstellung[data-wann="vorbei"] { opacity: .45; }

/* ── Besetzung ─────────────────────────────────────────────────────────── */

.besetzung {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mitglied {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px 18px;
  border-radius: 18px;
  background: var(--karte);
  box-shadow: inset 0 0 0 .5px var(--linie);
  transition: background .8s var(--weich), box-shadow .8s var(--weich);
}
.mitglied[data-zustand="arbeitet"] {
  background: radial-gradient(90% 70% at 50% 0%, rgba(232, 180, 90, .14), transparent 70%), var(--karte);
  box-shadow: inset 0 0 0 .5px rgba(232, 180, 90, .3);
}
.mitglied .avatar { width: 68px; height: 68px; }
.mitglied[role="button"] { cursor: pointer; }
.mitglied[role="button"]:hover { box-shadow: inset 0 0 0 .5px var(--linie-stark); }
.mitglied[data-zustand="arbeitet"] .avatar::after { inset: -6px; }
@keyframes leuchten { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.mitglied-name { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.mitglied-beruf { margin-top: 1px; font-size: 12px; color: var(--leiser); }
.mitglied-zustand {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--leise);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mitglied-zustand b { font-weight: 600; color: var(--creme); }
.mitglied[data-zustand="arbeitet"] .mitglied-zustand b { color: var(--gold); }
.mitglied[data-zustand="frei"] .mitglied-zustand b,
.mitglied[data-zustand="alt"] .mitglied-zustand b,
.mitglied[data-zustand="unbekannt"] .mitglied-zustand b { color: var(--leise); }

/* ── Gruppierte Listen (wie in den Einstellungen) ──────────────────────── */

.gruppe {
  border-radius: 16px;
  background: var(--karte);
  box-shadow: inset 0 0 0 .5px var(--linie);
  overflow: hidden;
}
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--leiser);
  padding: 12px 16px 8px;
}
.tabelle td { padding: 12px 16px; vertical-align: top; border-top: .5px solid var(--linie); }
.tabelle .spalte-nr { width: 56px; color: var(--leiser); font-variant-numeric: tabular-nums; }
.tabelle .spalte-stand { width: 210px; }
.tabelle .spalte-wann { width: 150px; color: var(--leise); font-variant-numeric: tabular-nums; }
.tabelle tr[data-stand="fertig"] .spalte-task { color: var(--leise); }
.stand { display: inline-flex; align-items: flex-start; gap: 8px; }
.stand-zeichen { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; }
.stand-zeichen svg { width: 12px; height: 12px; }
.stand-text b { font-weight: 500; color: var(--text); }
.stand-text small { display: block; font-size: 12px; color: var(--leiser); }
[data-stand="fertig"] .stand-zeichen { background: var(--gold); color: #000; }
[data-stand="laeuft"] .stand-zeichen { box-shadow: inset 0 0 0 1.5px var(--gold); }
[data-stand="laeuft"] .stand-zeichen::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
[data-stand="wartet"] .stand-zeichen { color: var(--leise); }
[data-stand="wartet"] .stand-zeichen svg, [data-stand="frank"] .stand-zeichen svg { width: 18px; height: 18px; }
[data-stand="offen"] .stand-zeichen { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
[data-stand="frank"] .stand-zeichen { color: var(--gold-hell); }
[data-stand="frank"] .stand-text b { color: var(--gold-hell); }
[data-stand="fehler"] .stand-zeichen { background: var(--rot); color: #000; }

.paar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 20px; }
.liste li { position: relative; }
.liste li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: .5px;
  background: var(--linie);
}
.zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  transition: background-color .15s;
}
a.zeile:hover { background: rgba(255, 255, 255, .035); }
.zeile-haupt { flex: 1; min-width: 0; }
.zeile-titel { font-size: 15px; color: var(--text); line-height: 1.35; }
.zeile-titel .nr { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.zeile-unter { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 13px; color: var(--leise); }
.zeile-rechts { flex: none; font-size: 13px; color: var(--leiser); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.chevron { flex: none; width: 7px; height: 12px; opacity: .4; }
.hinweis-fehler { color: var(--leise); font-size: 13px; padding: 10px 16px 12px; border-top: .5px solid var(--linie); }

.fusszeile { margin-top: 36px; font-size: 12px; color: var(--leiser); }

/* ── Einstellung „Mitteilungen“ (wie in den Einstellungen) ─────────────── */

.schalter-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px;
  cursor: pointer;
}
.schalter-text b { display: block; font-size: 15px; font-weight: 500; color: var(--text); }
.schalter-text small { display: block; margin-top: 1px; font-size: 13px; color: var(--leiser); }
.schalter {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #39393d;
  cursor: pointer;
  transition: background-color .25s var(--weich);
}
.schalter::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .28), 0 1px 1px rgba(0, 0, 0, .16);
  transition: transform .25s var(--weich);
}
.schalter:checked { background: var(--gold); }
.schalter:checked::after { transform: translateX(20px); }
.schalter:disabled { opacity: .4; cursor: default; }
.schalter-zeile:has(.schalter:disabled) { cursor: default; }
.fussnote { margin: 8px 16px 0; font-size: 13px; line-height: 1.4; color: var(--leiser); max-width: 62ch; }

/* ── Nachrichten: Liste der Unterhaltungen und Unterhaltung ─────────────
   Muster: die App Nachrichten. Am Mac Liste und Unterhaltung nebeneinander,
   schmaler und am iPhone Liste → Unterhaltung mit Zurück. */

.chats {
  position: sticky;
  top: calc(var(--kopf-hoehe) + env(safe-area-inset-top));
  height: calc(100dvh - var(--kopf-hoehe) - env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: var(--grund-foyer);
  border-left: .5px solid var(--linie);
  min-width: 0;
}

/* Avatare: der Kreis zeigt die Figur groß (Ausschnitt ohne den Goldring der Vorlage) */
.avatar { position: relative; display: block; flex: none; border-radius: 50%; }
.avatar-kreis { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #000; }
.avatar-kreis img { width: 100%; height: 100%; transform: scale(1.24); }
.avatar-foyer .avatar-kreis { background: radial-gradient(circle at 50% 35%, #2a2014, #0d0b08 75%); box-shadow: inset 0 0 0 .5px rgba(232, 180, 90, .35); }
.avatar-foyer .avatar-kreis img { transform: scale(.78); }

.unterhaltungen {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: .5px solid var(--linie);
}
.liste-kopf { flex: none; padding: 18px 16px 10px 20px; }
.liste-kopf h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.kanalliste {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2e transparent;
}
.kanalliste li.angeheftet { padding-bottom: 6px; margin-bottom: 6px; border-bottom: .5px solid var(--linie); }
.kanal-zeile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px 9px 2px;
  border-radius: 12px;
  text-align: left;
  transition: background-color .15s;
}
.kanal-zeile:hover { background: rgba(255, 255, 255, .04); }
.kanal-zeile[aria-current="true"] { background: var(--gold-hauch); }
.ungelesen-punkt { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.ungelesen-punkt[hidden] { display: block; visibility: hidden; }
.kanal-zeile .avatar { width: 48px; height: 48px; }
.kanal-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kanal-oben { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.kanal-name { flex: none; font-size: 15px; font-weight: 600; color: var(--text); }
.kanal-lage { min-width: 0; font-size: 12px; color: var(--leiser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kanal-lage[data-lage="arbeitet"] { color: var(--gold); }
.kanal-lage[data-lage="wartet"] { color: var(--leise); }
.kanal-zeit { margin-left: auto; padding-left: 6px; flex: none; font-size: 12px; color: var(--leiser); font-variant-numeric: tabular-nums; }
.kanal-letzte {
  font-size: 13px;
  line-height: 1.3;
  color: var(--leise);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.kanal-zeile:has(.ungelesen-punkt:not([hidden])) .kanal-letzte { color: var(--text); }

/* Leuchtring: wer gerade arbeitet (Liste, Kopf, Besetzung) */
.avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 22px 3px rgba(232, 180, 90, .4);
  opacity: 0;
  transition: opacity .8s var(--weich);
  pointer-events: none;
}
[data-zustand="arbeitet"] > .avatar::after { opacity: 1; animation: leuchten 4.5s ease-in-out infinite; }
.kanal-zeile [data-zustand="arbeitet"] > .avatar::after { inset: -3px; box-shadow: 0 0 0 1.5px var(--gold), 0 0 14px 2px rgba(232, 180, 90, .35); }

/* Die Unterhaltung */
.foyer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.foyer-kopf {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: .5px solid var(--linie);
}
.zurueck {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 -4px 0 -8px;
  padding: 4px 6px;
  border-radius: 10px;
  color: var(--gold);
  font-size: 16px;
}
.zurueck svg { flex: none; }
.zurueck-zahl {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-hauch);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.kanal-kopf { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.kanal-bild { display: flex; }
.kanal-bild .avatar { width: 40px; height: 40px; }
.kanal-text { min-width: 0; }
.kanal-text h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.kanal-zustand { margin-top: 1px; font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kanal-zustand b { font-weight: 600; color: var(--creme); }
.kanal-zustand[data-lage="arbeitet"] b { color: var(--gold); }
.kanal-zustand[data-lage="frei"] b, .kanal-zustand[data-lage="alt"] b, .kanal-zustand[data-lage="unbekannt"] b { color: var(--leise); }

/* Die Reihe des Teams im Foyer-Kopf: nebeneinander, mit Zustandspunkt */
.runde { flex-basis: 100%; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; margin: 0 -2px; }
.runde::-webkit-scrollbar { display: none; }
.foyer[data-kanal="privat"] .runde { display: none; }
.runde-knopf { position: relative; flex: none; border-radius: 50%; }
.runde-knopf .avatar { width: 34px; height: 34px; }
.runde-knopf .avatar::after { display: none; }
.zustandspunkt {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--leiser);
  box-shadow: 0 0 0 2.5px var(--grund-foyer);
}
.runde-knopf[data-zustand="arbeitet"] .zustandspunkt { background: var(--gold); box-shadow: 0 0 0 2.5px var(--grund-foyer), 0 0 8px rgba(232, 180, 90, .9); }
.runde-knopf[data-zustand="wartet"] .zustandspunkt { background: var(--grund-foyer); box-shadow: inset 0 0 0 2.5px var(--gold-hell), 0 0 0 2.5px var(--grund-foyer); }
.runde-knopf[data-zustand="unbekannt"] .zustandspunkt { display: none; }
.runde-knopf:hover .avatar-kreis { box-shadow: 0 0 0 2px var(--gold-hauch); }

.kanal-hinweis {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--leiser);
  border-bottom: .5px solid var(--linie);
}
.kanal-hinweis svg { flex: none; color: var(--leise); }

.verlauf {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2e transparent;
}
.verlauf > :first-child { margin-top: auto; }
.trenner { align-self: center; margin: 18px 0 8px; font-size: 12px; font-weight: 500; color: var(--leiser); font-variant-numeric: tabular-nums; text-align: center; }
.aelter-laden { align-self: center; margin: 6px 0 4px; font-size: 13px; color: var(--gold); padding: 4px 10px; border-radius: 999px; }
.aelter-laden:hover { background: var(--gold-hauch); }

.nachricht { display: flex; align-items: flex-end; gap: 10px; margin-top: 2px; max-width: 100%; }
.nachricht.erste { margin-top: 14px; }
.nachricht .avatar { width: 44px; height: 44px; visibility: hidden; }
.nachricht.letzte .avatar { visibility: visible; }
.nachricht-koerper { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: calc(100% - 64px); }
.absender { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px 12px; font-size: 12px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.absender b { font-size: 14px; font-weight: 600; color: var(--text); }
.absender span { color: var(--leiser); overflow: hidden; text-overflow: ellipsis; }
.absender time { color: var(--leiser); font-variant-numeric: tabular-nums; }
.absender .uebergabe { flex: none; height: 18px; padding: 0 7px; font-size: 11px; font-weight: 600; }
.blase {
  padding: 8px 13px 9px;
  border-radius: 19px;
  background: var(--blase);
  color: var(--text);
  font-size: 15px;
  line-height: 1.38;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nachricht:not(.erste) .blase { border-top-left-radius: 6px; }
.nachricht:not(.letzte) .blase { border-bottom-left-radius: 6px; }
.erwaehnung { color: var(--gold); font-weight: 600; }

/* Im Privatchat ohne Avatar und Namen, wie ein Einzelgespräch in Nachrichten */
.foyer[data-kanal="privat"] .nachricht-koerper { max-width: 82%; }
.foyer[data-kanal="privat"] .absender { margin-left: 12px; }

/* Franks Nachrichten rechts in Popcorn-Gold */
.nachricht.eigen { flex-direction: row-reverse; }
.nachricht.eigen .nachricht-koerper { align-items: flex-end; max-width: 82%; }
.nachricht.eigen .absender { margin: 0 12px 3px 0; }
.nachricht.eigen .blase { background: var(--gold); color: #1b1307; }
.nachricht.eigen:not(.erste) .blase { border-top-left-radius: 19px; border-top-right-radius: 6px; }
.nachricht.eigen:not(.letzte) .blase { border-bottom-left-radius: 19px; border-bottom-right-radius: 6px; }
.nachricht.eigen .erwaehnung { color: #000; font-weight: 700; background: rgba(0, 0, 0, .09); border-radius: 5px; padding: 0 3px; margin: 0 -1px; }
.zustellung { display: flex; align-items: center; gap: 4px; margin: 3px 4px 0 0; font-size: 11px; font-weight: 500; color: var(--leiser); font-variant-numeric: tabular-nums; }
.zustellung svg { width: 12px; height: 12px; color: var(--gold); }
.zustellung[data-zugestellt="nein"] svg { display: none; }
.nachricht.eigen:not(.letzte) .zustellung span { display: none; }
.nachricht.eigen:not(.letzte) .zustellung[data-zugestellt="nein"] { display: none; }
.nachricht.neu .blase { animation: blase-neu .32s var(--weich) both; }
.nachricht.eigen.neu .blase { transform-origin: right bottom; }
.nachricht:not(.eigen).neu .blase { transform-origin: left bottom; }
@keyframes blase-neu { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

.eingabe {
  position: relative;
  flex: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: .5px solid var(--linie);
  background: rgba(7, 7, 8, .9);
}
.feld {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 4px 4px 4px 15px;
  border-radius: 20px;
  background: var(--karte-hell);
  box-shadow: inset 0 0 0 .5px var(--linie-stark);
  transition: box-shadow .2s;
}
.feld:focus-within { box-shadow: inset 0 0 0 1px rgba(232, 180, 90, .55); }
.feld textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  line-height: 22px;
  padding: 5px 0;
  max-height: 136px;
  color: var(--text);
}
.feld textarea::placeholder { color: var(--leiser); }
.senden {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #000;
  transition: background-color .2s, transform .15s, opacity .2s;
}
.senden:disabled { background: #3a3a3c; color: var(--leiser); cursor: default; }
.senden:not(:disabled):active { transform: scale(.92); }
.wach { margin-top: 8px; text-align: center; font-size: 12px; color: var(--leiser); display: flex; align-items: center; justify-content: center; gap: 6px; }
.wach::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--leiser); transition: background-color .4s, box-shadow .4s; }
.wach[data-wach="1"] { color: var(--leise); }
.wach[data-wach="1"]::before { background: var(--gold); box-shadow: 0 0 8px rgba(232, 180, 90, .8); }
.wach[data-fehler="1"] { color: var(--creme); }
.wach[data-fehler="1"]::before { background: var(--rot); box-shadow: none; }

.vorschlaege {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 6px);
  padding: 6px;
  border-radius: 16px;
  background: rgba(30, 30, 33, .9);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .8), inset 0 0 0 .5px var(--linie-stark);
  animation: aufklappen .16s var(--weich) both;
  max-height: 340px;
  overflow-y: auto;
}
@keyframes aufklappen { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.vorschlag { width: 100%; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 11px; text-align: left; }
.vorschlag .avatar { width: 32px; height: 32px; }
.vorschlag b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.vorschlag small { display: block; font-size: 12px; color: var(--leise); }
.vorschlag[aria-selected="true"], .vorschlag:hover { background: var(--gold-hauch); }
.vorschlag[aria-selected="true"] b { color: var(--gold-hell); }
.team-zeichen { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-hauch); color: var(--gold); font-weight: 700; font-size: 14px; flex: none; }

/* ── Reiter unten (nur iPhone und iPad hochkant) ───────────────────────── */

.reiter { display: none; }

/* Schmaler als 1280: Liste ODER Unterhaltung, mit Zurück (wie Nachrichten am iPhone) */
@media (max-width: 1279px) {
  .buehne { grid-template-columns: minmax(0, 1fr) 390px; }
  .chats { grid-template-columns: minmax(0, 1fr); }
  .unterhaltungen { border-right: 0; }
  .chats[data-ansicht="liste"] .foyer { display: none; }
  .chats[data-ansicht="unterhaltung"] .unterhaltungen { display: none; }
  .zurueck { display: inline-flex; }
  .kanal-zeile[aria-current="true"] { background: none; }
}

@media (max-width: 1099px) {
  :root { --rand: 24px; }
  .buehne { grid-template-columns: minmax(0, 1fr) 360px; }
  .besetzung { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .paar { grid-template-columns: minmax(0, 1fr); }
  .station-name { font-size: 12px; padding: 0 2px; }
}

@media (max-width: 899px) {
  :root { --rand: 16px; --reiter-hoehe: 50px; }
  .buehne { display: block; }
  .saal-spalte { padding-bottom: calc(var(--reiter-hoehe) + env(safe-area-inset-bottom) + 40px); }
  .chats {
    position: fixed;
    inset: calc(var(--kopf-hoehe) + env(safe-area-inset-top)) 0 calc(var(--reiter-hoehe) + env(safe-area-inset-bottom)) 0;
    height: auto;
    border-left: 0;
    background: var(--schwarz);
    z-index: 10;
  }
  body[data-reiter="saal"] .chats { display: none; }
  body[data-reiter="chats"] .saal-spalte { display: none; }
  .eingabe { padding-bottom: 10px; background: rgba(0, 0, 0, .9); }
  .zustandspunkt, .runde-knopf[data-zustand="wartet"] .zustandspunkt { box-shadow: 0 0 0 2.5px var(--schwarz); }
  .runde-knopf[data-zustand="wartet"] .zustandspunkt { background: var(--schwarz); box-shadow: inset 0 0 0 2.5px var(--gold-hell), 0 0 0 2.5px var(--schwarz); }

  .reiter {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: calc(var(--reiter-hoehe) + env(safe-area-inset-bottom));
    padding: 0 max(12px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left));
    background: rgba(18, 18, 20, .82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid var(--linie);
  }
  .reiter button {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--leiser);
    font-size: 10px;
    font-weight: 500;
    transition: color .2s;
  }
  .reiter button[aria-pressed="true"] { color: var(--gold); }
  .reiter svg { width: 26px; height: 26px; }
  .kennzahl {
    position: absolute;
    top: 4px;
    left: calc(50% + 6px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }
}

/* Saalspalte schmal (neben den Nachrichten am Mac) */
@container (min-width: 600px) and (max-width: 860px) {
  .vorfuehrung { grid-template-columns: 156px minmax(0, 1fr); gap: 0 28px; padding: 26px; }
  .plakat-nummer { font-size: 52px; }
  .vorfuehrung-titel { font-size: 30px; }
  .station-name { font-size: 12px; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
}

@media (max-width: 640px) {
  .kopf { gap: 10px; }
  .marke { gap: 10px; }
  .marke img { width: 26px; height: 26px; }
  .marke .wortmarke { font-size: 13px; }
  .ich { display: none; }
  .vorschau-marke { display: none; }
  .abschnitt { font-size: 20px; margin-top: 36px; }

  .vorfuehrung { grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 18px; padding: 18px; border-radius: 22px; align-items: start; }
  .vorfuehrung > .plakat { grid-row: auto; align-self: start; }
  .vorfuehrung-text { grid-column: 2; }
  .plakat { border-radius: 9px; padding: 9px 7px 7px; }
  .plakat-ueber { font-size: 10px; }
  .plakat-nummer { font-size: 36px; }
  .plakat-fuss { font-size: 6px; padding-top: 5px; margin-top: 6px; }
  .vorfuehrung-titel { font-size: 26px; }
  .vorfuehrung-unter { font-size: 15px; }
  .plattformen { margin-top: 10px; }
  .lage { margin-top: 12px; }
  .lage-was { font-size: 17px; }
  .lage-wann { font-size: 14px; }
  .vorfuehrung > .band { grid-column: 1 / -1; margin-top: 0; display: flex; flex-direction: column; }
  .station { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 7px 0; }
  .station::after { top: calc(50% + 15px); left: 11px; width: 2px; height: calc(100% - 30px); }
  .station-name { margin: 0; padding: 0; flex: 1; font-size: 15px; }
  .station-zeit { margin: 0; font-size: 13px; min-height: 0; }

  .vorstellungen {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--rand));
    padding: 0 var(--rand) 4px;
    scroll-padding: 0 var(--rand);
    scrollbar-width: none;
  }
  .vorstellungen::-webkit-scrollbar { display: none; }
  .vorstellung { flex: 0 0 64%; scroll-snap-align: start; min-height: 124px; }

  .besetzung { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mitglied { padding: 14px 4px 12px; border-radius: 16px; }
  .mitglied .avatar { width: 50px; height: 50px; }
  .avatar::after { inset: -4px; }
  .mitglied-name { margin-top: 10px; font-size: 13px; }
  .mitglied-beruf { display: none; }
  .mitglied-zustand { margin-top: 4px; font-size: 11px; }

  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: auto; }
  .tabelle tr { position: relative; padding: 12px 16px 12px 48px; }
  .tabelle tr + tr::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: .5px; background: var(--linie); }
  .tabelle td { padding: 0; border: 0; }
  .tabelle .spalte-nr { position: absolute; left: 16px; top: 13px; width: auto; font-size: 13px; }
  .tabelle .spalte-stand { width: auto; margin-top: 6px; font-size: 13px; display: inline-block; }
  .tabelle .spalte-wann { width: auto; float: right; margin-top: 7px; font-size: 13px; }
  .stand-text small { display: inline; margin-left: 4px; }

  .foyer-kopf { padding: 10px 16px 10px; gap: 10px; }
  .nachricht .avatar { width: 40px; height: 40px; }
  .nachricht-koerper { max-width: calc(100% - 56px); }
  /* Wie in Nachrichten am iPhone: nur der Pfeil mit der Zahl, daneben wer */
  .zurueck span { display: none; }
  .kanal-text h2 { font-size: 18px; }
  .kanal-hinweis { padding: 6px 16px; font-size: 11px; }
  .liste-kopf { padding: 14px 16px 8px 18px; }
  .liste-kopf h2 { font-size: 28px; }
  .kanal-zeile { padding: 10px 8px 10px 2px; }
  .mitteilungen .fussnote { margin-left: 4px; margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
