/* === STIL: lagerfeuer ===
   Dunkle Nacht, Teal + Gold (Hausfarben). Ruhig, damit das Feuer wirkt.
   Alles ohne fremde Dateien — laeuft auch offline in der PWA. */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: #070a12;
  color: #dbe1ef;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}

body {
  display: flex; flex-direction: column;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

/* --- Glut im Hintergrund: das Feuer atmet, flackert und wirft Funken --- */
.glut {
  position: fixed; inset: auto 0 -30vh 0; height: 85vh; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 50% 100%, #ff8c3a3d 0%, transparent 62%),
    radial-gradient(ellipse 62% 52% at 50% 100%, #f0a86836 0%, #e8c26a18 38%, transparent 72%);
  animation: atmen 5s ease-in-out infinite;
}
/* Zweite Schicht, langsamer und versetzt — das macht das Flackern lebendig */
.glut::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 34% 30% at 50% 100%,
    #ffb15c2e 0%, transparent 58%);
  animation: atmen 3.3s ease-in-out infinite reverse;
}
@keyframes atmen {
  0%, 100% { opacity: .55; transform: scale(1)    translateY(0); }
  35%      { opacity: .8;  transform: scale(1.03) translateY(-4px); }
  50%      { opacity: .95; transform: scale(1.07) translateY(0); }
  70%      { opacity: .72; transform: scale(1.02) translateY(-2px); }
}

/* Aufsteigende Funken — ruhig, nie aufdringlich */
.funken { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden; }
.funken i {
  position: absolute; bottom: -12px; width: 3px; height: 3px;
  border-radius: 99px; background: #f0a868; opacity: 0;
  animation: steigen linear infinite;
}
@keyframes steigen {
  0%   { opacity: 0;   transform: translateY(0) scale(.6); }
  12%  { opacity: .85; }
  70%  { opacity: .45; }
  100% { opacity: 0;   transform: translateY(-78vh) translateX(var(--drift)) scale(.2); }
}
@media (prefers-reduced-motion: reduce) {
  .glut, .glut::after, .funken i { animation: none; }
}

/* --- Stand-Marke oben rechts, ziehbar --- */
.stand {
  position: fixed; top: 10px; right: 12px; z-index: 40;
  font-size: 10.5px; letter-spacing: 1px; color: #5c6579;
  background: #0d1424cc; border: 1px solid #1c2740;
  border-radius: 999px; padding: 5px 11px;
  cursor: grab; user-select: none; backdrop-filter: blur(6px);
}
.stand:active { cursor: grabbing; }

/* --- Kopf --- */
/* Reichlich Luft oben: die Stand-Marke sitzt fest in der Ecke und darf
   dem Titel nicht ins Wort fallen. */
.kopf { position: relative; z-index: 2; text-align: center; padding: 52px 16px 4px; }
.kopf h1 {
  margin: 0; font-size: 22px; letter-spacing: 5px; font-weight: 600;
  color: #e8c26a;
  text-shadow: 0 0 26px #e8c26a33;
}
.unter { margin: 7px 0 0; font-size: 12px; letter-spacing: 1.4px; color: #6b7488; }

/* --- Der Kreis: wer sitzt am Feuer --- */
.kreis {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 22px 14px 10px;
}
.platz {
  width: 96px; padding: 12px 6px 10px; text-align: center;
  border: 1px solid #1c2740; border-radius: 18px;
  background: linear-gradient(#0e1524cc, #0a1019cc);
  transition: transform .25s, border-color .25s, box-shadow .25s, opacity .25s;
}
.platz .bild { font-size: 32px; line-height: 1.1; display: block; }
.platz .name {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: 1.3px; color: #8b93a7;
}
.platz .neben-name {
  display: block; margin-top: 2px;
  font-size: 9px; letter-spacing: .6px; color: #5c6579;
  line-height: 1.25;
}
.platz .modell {
  display: block; margin-top: 5px;
  font-size: 8.5px; letter-spacing: 1.1px; color: #3f4a63;
  text-transform: uppercase;
}
.platz.spricht .modell, .platz.denkt .modell { color: var(--farbe); opacity: .8; }
.platz .tut {
  display: block; margin-top: 3px; height: 12px;
  font-size: 9.5px; letter-spacing: 1px; color: #4d566b;
}

/* spricht gerade: gluehen + huepfen */
.platz.spricht {
  transform: translateY(-8px) scale(1.07);
  border-color: var(--farbe);
  box-shadow: 0 0 26px -4px var(--farbe), inset 0 0 20px -12px var(--farbe);
}
.platz.spricht .bild { animation: huepf .55s ease-in-out infinite; }
.platz.spricht .tut { color: var(--farbe); }
@keyframes huepf {
  0%, 100% { transform: translateY(0)   scale(1); }
  50%      { transform: translateY(-5px) scale(1.1); }
}

/* denkt gerade: langsames Pulsen */
.platz.denkt { border-color: var(--farbe); opacity: .85; }
.platz.denkt .bild { animation: puls 1.3s ease-in-out infinite; }
.platz.denkt .tut { color: var(--farbe); }
@keyframes puls { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* hoert zu (Mensch spricht) */
.platz.hoert { border-color: #2b3852; }

/* wartet: ein anderer hat den Redestab — dieser hier hoert nur zu */
.platz.wartet { opacity: .38; border-color: #16203a; }
.platz.wartet .bild { animation: none; filter: grayscale(.5); }

/* --- Was gesagt wurde --- */
.verlauf {
  position: relative; z-index: 2; flex: 1;
  overflow-y: auto; padding: 8px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 720px; width: 100%; margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.zug {
  border-left: 2px solid var(--farbe);
  padding: 7px 0 7px 13px;
  animation: rein .3s ease-out;
}
@keyframes rein { from { opacity: 0; transform: translateY(6px); } }
.zug .wer {
  font-size: 10.5px; letter-spacing: 1.6px; color: var(--farbe);
  text-transform: uppercase;
}
.zug .wer .uhr { color: #4d566b; margin-left: 7px; letter-spacing: .5px; }
.zug .text { margin-top: 4px; font-size: 15px; line-height: 1.6; color: #dbe1ef; }
/* Der zuletzt Gesagte hebt sich leicht ab — das Auge findet die Stelle */
.zug:last-of-type .text { color: #eef2fb; }
.zug.vorlaeufig .text { color: #6b7488; font-style: italic; }

/* --- Steuerung unten --- */
.steuer {
  position: relative; z-index: 3;
  padding: 12px 16px 20px; text-align: center;
  background: linear-gradient(to top, #070a12 60%, transparent);
}
.knopf {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e8c26a55; background: #131c2e;
  color: #e8c26a; font-size: 15px; letter-spacing: 1.6px;
  transition: all .22s; -webkit-tap-highlight-color: transparent;
}
.knopf:hover { border-color: #e8c26a; background: #182238; }
.knopf .knopf-bild { font-size: 19px; }
.knopf.laeuft {
  border-color: #5eead4; color: #5eead4;
  box-shadow: 0 0 24px -6px #5eead4;
}
.knopf.laeuft .knopf-bild { animation: puls 1.1s ease-in-out infinite; }

.neben {
  margin-top: 13px; display: flex; justify-content: center;
  align-items: center; gap: 9px; flex-wrap: wrap;
}
.klein {
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid #1c2740; background: transparent;
  color: #6b7488; font-size: 11px; letter-spacing: 1px;
}
.klein:hover { border-color: #2b3852; color: #8b93a7; }
.lage { font-size: 10.5px; letter-spacing: 1.2px; color: #4d566b; }
.lage.warnung { color: #f0a868; }

/* Mikro-Taste: offen = Teal, zugehalten = deutlich rot. Kein Zweifel,
   ob die Runde gerade mithört. */
.klein.mikro { border-color: #5eead455; color: #5eead4; }
.klein.mikro.zu {
  border-color: #ff6b6b; color: #ff6b6b; background: #2a1216;
}

/* Schlanke Rollbalken — der dicke weisse Strich stoert das dunkle Bild. */
.verlauf, .blatt-leib { scrollbar-width: thin; scrollbar-color: #2b3852 transparent; }
.verlauf::-webkit-scrollbar, .blatt-leib::-webkit-scrollbar { width: 7px; }
.verlauf::-webkit-scrollbar-track,
.blatt-leib::-webkit-scrollbar-track { background: transparent; }
.verlauf::-webkit-scrollbar-thumb,
.blatt-leib::-webkit-scrollbar-thumb {
  background: #24314d; border-radius: 99px;
}
.verlauf::-webkit-scrollbar-thumb:hover,
.blatt-leib::-webkit-scrollbar-thumb:hover { background: #35476d; }

/* --- Logbuch-Blatt --- */
.blatt {
  position: fixed; inset: 0; z-index: 60;
  background: #050810f2; backdrop-filter: blur(7px);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.blatt-kopf {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px 14px; border-bottom: 1px solid #1c2740;
}
.blatt-kopf b { font-size: 15px; letter-spacing: 2px; color: #e8c26a; }
.blatt-kopf span { flex: 1; font-size: 11px; letter-spacing: 1px; color: #6b7488; }
.blatt-leib {
  flex: 1; overflow-y: auto; padding: 16px 20px 28px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 720px; width: 100%; margin: 0 auto;
}
.blatt-leib .zug { animation: none; }

/* --- Steckbrief: wer ist das, welches Modell, welche Stimme --- */
.platz.klickbar { cursor: pointer; }
.platz.klickbar:hover { border-color: var(--farbe); }

.blatt-leib.steck { gap: 18px; }
.steck-text {
  margin: 0; font-size: 14.5px; line-height: 1.6; color: #b9c2d6;
  border-left: 2px solid var(--farbe); padding-left: 14px;
}
.feld { display: flex; flex-direction: column; gap: 7px; }
.feld > span {
  font-size: 11px; letter-spacing: 1.3px; color: #6b7488;
  text-transform: uppercase;
}
.feld select {
  padding: 11px 13px; border-radius: 12px; font-size: 14px;
  border: 1px solid #1c2740; background: #0c1220; color: #dbe1ef;
}
.feld select:focus { outline: none; border-color: var(--farbe); }
.feld input[type=range] { accent-color: var(--farbe); height: 26px; }
.taufe {
  display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px;
  align-items: end;
}
.taufe .feld.schmal input { width: 62px; text-align: center; }
.taufe button { height: 42px; white-space: nowrap; }
@media (max-width: 560px) {
  .taufe { grid-template-columns: 1fr 1fr; }
  .taufe button { grid-column: 1 / -1; }
}
.steck-knoepfe {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 4px;
}

@media (max-width: 420px) {
  .platz { width: 88px; }
  .kopf h1 { font-size: 19px; letter-spacing: 3.5px; }
}

/* --- Das Plus: neue Rolle ans Feuer holen --- */
.platz.plus {
  border-style: dashed; border-color: #24314d; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
}
.platz.plus:hover { border-color: #5eead4; }
.platz.plus .bild { font-size: 26px; color: #5c6579; }
.platz.plus:hover .bild { color: #5eead4; }
.platz.plus .name { color: #4d566b; }

/* Eingabefelder im Blatt (neue Rolle) */
.feld input, .feld textarea {
  padding: 11px 13px; border-radius: 12px; font-size: 14px;
  border: 1px solid #1c2740; background: #0c1220; color: #dbe1ef;
  font-family: inherit; resize: vertical;
}
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--farbe); }
.klein.gross { padding: 10px 20px; font-size: 12.5px;
  border-color: #5eead455; color: #5eead4; }
.klein.weg { border-color: #ff6b6b44; color: #ff6b6b99; }
.klein.weg:hover { border-color: #ff6b6b; color: #ff6b6b; }

/* --- Vollbild-Knopf in der Ecke --- */
.ecke {
  position: fixed; top: 44px; right: 12px; z-index: 40;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 1px solid #1c2740; background: #0d1424cc; color: #5c6579;
  font-size: 15px; line-height: 1; backdrop-filter: blur(6px);
}
.ecke:hover { border-color: #e8c26a88; color: #e8c26a; }

/* --- Lebenszeichen unten: was gerade passiert --- */
.puls {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 10px; min-height: 14px;
}
.puls .funke {
  width: 6px; height: 6px; border-radius: 99px; background: #24314d;
  transition: background .3s;
}
.puls.taetig .funke {
  background: var(--farbe); box-shadow: 0 0 9px var(--farbe);
  animation: funkeln 1.1s ease-in-out infinite;
}
.puls.taetig .lage { color: var(--farbe); }
.puls.warnung .funke { background: #f0a868; box-shadow: 0 0 9px #f0a868; }
@keyframes funkeln {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* Zweite Reihe erscheint nur auf Wunsch.
   .neben setzt display:flex — das schlaegt [hidden]. Darum ausdruecklich. */
.neben.mehr-fach { margin-top: 8px; }
[hidden] { display: none !important; }

/* --- Der Plan --- */
.blatt-leib.plan {
  display: grid; gap: 16px; max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.spalte {
  border: 1px solid #1c2740; border-radius: 16px;
  background: #0b111ec9; padding: 14px 15px 16px;
}
.spalte h3 {
  margin: 0 0 12px; font-size: 12px; letter-spacing: 1.6px;
  color: #8b93a7; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.spalte h3 em {
  margin-left: auto; font-style: normal; font-size: 11px;
  color: #4d566b; background: #131c2e; border-radius: 99px; padding: 2px 8px;
}
.spalte ul { margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 11px; }
.spalte li { border-left: 2px solid #24314d; padding-left: 11px; }
.spalte li b { display: block; font-size: 13.5px; font-weight: 500; color: #dbe1ef; }
.spalte li span { display: block; margin-top: 2px; font-size: 11.5px;
  color: #6b7488; line-height: 1.45; }
.spalte.fertig li  { border-left-color: #5eead4; }
.spalte.arbeit li  { border-left-color: #e8c26a; }
.spalte.geplant li { border-left-color: #8b9cf0; }
.spalte.nicht li   { border-left-color: #ff6b6b66; }
.spalte.nicht li b { color: #8b93a7; }

/* --- Zeile unter dem Chat: wer denkt, wer spricht (wie bei WhatsApp) --- */
.tut-zeile {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  padding: 2px 0 4px 13px;
  font-size: 12px; letter-spacing: .6px; color: var(--farbe);
  animation: rein .25s ease-out;
}
.tut-zeile .punkte { display: inline-flex; gap: 3px; }
.tut-zeile .punkte i {
  width: 5px; height: 5px; border-radius: 99px; background: var(--farbe);
  animation: tippen 1.2s ease-in-out infinite;
}
.tut-zeile .punkte i:nth-child(2) { animation-delay: .18s; }
.tut-zeile .punkte i:nth-child(3) { animation-delay: .36s; }
@keyframes tippen {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Plan-Punkte lassen sich zwischen den Spalten ziehen */
.spalte li { cursor: grab; transition: opacity .2s, transform .2s; }
.spalte li:active { cursor: grabbing; }
.spalte li:hover { transform: translateX(2px); }
.spalte li.zieht-mich { opacity: .35; }
.spalte ul { min-height: 42px; }

/* --- Die Bibliothek: schon gebaute Rollen zurueckholen --- */
.regal { display: flex; flex-direction: column; gap: 9px; }
.regal-titel { font-size: 11px; letter-spacing: 1.3px; color: #6b7488;
  text-transform: uppercase; }
.regal-reihe { display: flex; gap: 9px; flex-wrap: wrap; }
.regal-karte {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 13px; border-radius: 13px; cursor: pointer; max-width: 240px;
  border: 1px solid #1c2740; background: #0c1220; color: #dbe1ef;
  font-family: inherit;
}
.regal-karte:hover { border-color: var(--farbe); }
.regal-karte .bild { font-size: 19px; }
.regal-karte .wer { font-size: 13px; color: var(--farbe); }
.regal-karte .wozu { font-size: 11px; color: #6b7488; line-height: 1.35; }

/* Plan-Text direkt bearbeitbar */
.spalte li b[contenteditable]:focus,
.spalte li span[contenteditable]:focus {
  outline: none; background: #131c2e; border-radius: 6px;
  box-shadow: 0 0 0 4px #131c2e;
}

/* --- Git-Fenster --- */
.git-lage { display: flex; flex-direction: column; gap: 1px;
  border: 1px solid #1c2740; border-radius: 14px; overflow: hidden; }
.git-zeile { display: flex; gap: 14px; align-items: baseline;
  padding: 10px 14px; background: #0b111e; }
.git-zeile:nth-child(even) { background: #0d1424; }
.git-zeile span { flex: 0 0 190px; font-size: 11px; letter-spacing: 1.2px;
  color: #6b7488; text-transform: uppercase; }
.git-zeile b { font-size: 13.5px; font-weight: 500; color: #dbe1ef;
  word-break: break-all; }
.git-dateien { margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 4px; }
.git-dateien li { font-size: 12px; color: #8b93a7;
  font-family: ui-monospace, Menlo, monospace; }

/* --- Anhang-Korb: was mit der naechsten Frage mitgeht --- */
.anhang-korb {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 720px; width: 100%; margin: 0 auto; padding: 6px 16px 10px;
}
.anhang-titel { font-size: 10.5px; letter-spacing: 1.1px; color: #6b7488;
  text-transform: uppercase; }
.anhang-reihe { display: flex; gap: 7px; flex-wrap: wrap; }
.anhang-karte {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  border: 1px solid #24314d; background: #0c1220; font-size: 12px;
}
.anhang-karte i { font-style: normal; }
/* Video-Pakete aus dem Spiegel ans Feuer legen (Stufe 1, 20.07.) */
.paket-wahl {
  position: relative; z-index: 2;
  max-width: 720px; width: 100%; margin: 0 auto; padding: 6px 16px 10px;
}
.paket-wahl .titel { font-size: 10.5px; letter-spacing: 1.1px; color: #6b7488;
  text-transform: uppercase; display: block; margin-bottom: 7px; }
.paket-liste { display: flex; flex-direction: column; gap: 6px;
  max-height: 240px; overflow: auto; }
.paket-karte {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 13px; border-radius: 13px; text-align: left; cursor: pointer;
  border: 1px solid #24314d; background: #0c1220; color: #cfd6e6;
  font-size: 13px; font-family: inherit;
}
.paket-karte:hover { border-color: #3d5170; background: #101932; }
.paket-karte b { font-weight: 500; }
.paket-karte small { margin-left: auto; color: #6b7488; font-size: 11.5px;
  white-space: nowrap; }
.paket-leer { font-size: 12.5px; color: #6b7488; line-height: 1.6; }
.anhang-karte b { font-weight: 500; color: #b9c2d6; }
body.zieht-drueber::after {
  content: 'ans Feuer legen'; position: fixed; inset: 12px; z-index: 90;
  border: 2px dashed #5eead4; border-radius: 22px; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; letter-spacing: 2px; color: #5eead4;
  background: #05081099;
}

/* --- Anhaenge an der eigenen Nachricht: Heiner sieht, was er schickte --- */
.zug-anhaenge { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 9px; }
.zug-bild {
  display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid #24314d; line-height: 0;
}
.zug-bild img { max-width: 210px; max-height: 160px; display: block; }
.zug-bild:hover { border-color: var(--farbe); }
.zug-datei {
  display: inline-flex; align-items: center; padding: 7px 13px;
  border-radius: 99px; border: 1px solid #24314d; background: #0c1220;
  font-size: 12px; color: #b9c2d6; text-decoration: none;
}
.zug-datei:hover { border-color: var(--farbe); color: #dbe1ef; }

/* --- Bildschirm-Freigabe --- */
.klein.an { border-color: #5eead4; color: #5eead4; }
.schirm-ecke {
  position: fixed; right: 14px; bottom: 14px; z-index: 45;
  width: 260px; border-radius: 14px; overflow: hidden;
  border: 1px solid #24314d; background: #0a1019ee;
  backdrop-filter: blur(6px);
}
.schirm-ecke video { width: 100%; display: block; background: #05080f; }
.schirm-fuss {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 8px 10px; border-top: 1px solid #1c2740;
}
.schirm-fuss span { flex: 1; font-size: 10.5px; letter-spacing: 1px;
  color: #5eead4; }
.schirm-fuss .klein { padding: 4px 10px; font-size: 10.5px; }
@media (max-width: 560px) { .schirm-ecke { width: 180px; } }

/* --- Sanfter Auftakt: die Seite kommt aus dem Dunkel, kein harter Schnitt --- */
@keyframes auftakt {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes aufgehen {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
body { animation: auftakt .5s ease-out both; }
.kopf   { animation: aufgehen .6s ease-out .05s both; }
.kreis  { animation: aufgehen .6s ease-out .16s both; }
.steuer { animation: aufgehen .6s ease-out .26s both; }
.glut   { animation: auftakt 1.6s ease-out both, atmen 5s ease-in-out infinite; }

/* Vorschau-Ecke: anfassen und hinschieben */
.schirm-ecke { cursor: grab; }
.schirm-ecke.zieht { cursor: grabbing; box-shadow: 0 8px 34px -8px #000; }
.schirm-ecke .schirm-fuss { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  body, .kopf, .kreis, .steuer, .glut { animation: none; }
}

/* --- Die Tafel: was die KIs selbst hinstellen --- */
.tafel { margin-top: 10px; }
.tafel iframe {
  width: 100%; height: 150px; border: 1px solid #24314d; border-radius: 12px;
  background: #0c1220; display: block;
}
.tafel-fuss { display: block; margin-top: 5px; font-size: 10.5px;
  letter-spacing: 1.1px; color: #4d566b; text-transform: uppercase; }

/* --- Mehrere Bildschirme --- */
.schirm-bilder { display: grid; gap: 3px; grid-template-columns: 1fr; }
.schirm-bilder:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
.schirm-eins { position: relative; line-height: 0; }
.schirm-eins video { width: 100%; display: block; background: #05080f; }
.schirm-zu {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 6px; cursor: pointer; line-height: 1;
  border: 1px solid #24314d; background: #0a1019cc; color: #8b93a7;
  font-size: 13px; padding: 0;
}
.schirm-zu:hover { border-color: #ff6b6b; color: #ff6b6b; }

/* Zumachen-Kreuz fuer eingeblendete Kaesten */
.zumachen {
  position: absolute; top: 8px; right: 10px;
  width: 24px; height: 24px; border-radius: 8px; cursor: pointer;
  border: 1px solid #24314d; background: #0c1220; color: #6b7488;
  font-size: 15px; line-height: 1; padding: 0;
}
.zumachen:hover { border-color: #ff6b6b; color: #ff6b6b; }
.paket-wahl { position: relative; }

/* --- Bühnen --- */
.buehne-reihe { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.buehne-karte {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid #1c2740; background: #0c1220; color: #dbe1ef;
}
.buehne-karte:hover { border-color: var(--farbe); }
.buehne-karte span { font-size: 20px; }
.buehne-karte b { font-size: 14px; color: var(--farbe); }
.buehne-karte small { font-size: 11px; color: #6b7488; }
.buehne-hin {
  display: inline-flex; margin-top: 9px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--farbe); background: #0c1220; text-decoration: none;
  font-size: 12px; color: var(--farbe);
}
.buehne-hin:hover { background: #131c2e; }

/* --- Werkbank-Spur im Chat: was der Kopf im Browser getan hat --- */
.werk-spur { display: flex; flex-direction: column; gap: 3px; margin-top: 9px;
  padding: 9px 12px; border-radius: 12px; border: 1px solid #1c3a2a;
  background: #0b1a12; }
.werk-kopf { font-size: 10.5px; letter-spacing: 1.2px; color: #8bf0a8;
  text-transform: uppercase; margin-bottom: 3px; }
.werk-schritt { font-size: 12.5px; color: #9fb3a6;
  font-family: ui-monospace, Menlo, monospace; }
.werk-schritt.fehler { color: #f0a868; }
.klein.weg.gross { padding: 9px 16px; }
