.band-buehne { position: relative; width: 100%; height: clamp(12rem, 34vh, 24rem); overflow: hidden; background: #17284c; border: 3px solid #e8cc8e; border-radius: 1rem; }
.band-buehne canvas, .band-buehne svg { display: block; width: 100%; height: 100%; }
.band-auswahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .5rem; margin-block: .8rem; }
.band-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; }
.band-aktionen .knopf { flex: 1 1 10rem; }
.band-status { min-height: 1.5em; }
.band-statuszeile { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-block: .3rem; }
.band-statuszeile [data-band-seite] { font-weight: 700; color: #f3d59a; }
.band-aktionen .band-blaettern { flex: 1 1 8rem; }
.band-ende .band-status { color: #ffe9a8; font-weight: 700; }
.band.band-grosse-schrift .band-auswahl { grid-template-columns: repeat(2,minmax(120px,1fr)); }
@media (max-width: 700px) {
  .band-buehne { height: min(25vh, 210px); }
  .band-auswahl { grid-template-columns: repeat(3,minmax(120px,1fr)); gap: 3px; margin-block: 6px; }
  .band-auswahl .knopf { padding: 6px; overflow-wrap: anywhere; }
  .band-aktionen { gap: 3px; }
  .band-aktionen .knopf { flex: 1 1 120px; padding: 6px; }
}
@media (max-width: 385px) { .band-auswahl { grid-template-columns: repeat(2,minmax(120px,1fr)); } }
@media (max-height: 650px) and (min-width: 701px) {
  .band h1 { margin: 0; }
  .band p { margin-block: 3px; }
  .band-buehne { height: 30vh; }
  .band-auswahl { grid-template-columns: repeat(3,minmax(120px,1fr)); margin-block: 6px; }
  .band-statuszeile { margin-block: 3px; }
  .band-aktionen { gap: 6px; }
  .band-aktionen .knopf { flex: 1 1 120px; padding: 6px; }
  .band.band-grosse-schrift .band-buehne { height: 20vh; }
}
@media (max-height: 419px) and (min-width: 701px) {
  .band-buehne { height: 23vh; }
  .band-auswahl .knopf, .band-aktionen .knopf { min-width: 120px; min-height: 96px; }
}

.band-buehne {container-type:size;}
.band-still {
  --foto:var(--foto-breit);--umriss:var(--umriss-breit);
  width:100%;height:100%;background:#0c1d38 var(--foto) center / contain no-repeat;
}
.band-buehne[data-stimme="frau"] {
  --foto-breit:url('bilder/band/ensemble-breit-frau.webp');--foto-hoch:url('bilder/band/ensemble-hoch-frau.webp');
  --umriss-breit:url('bilder/band/umriss-breit-frau.png');--umriss-hoch:url('bilder/band/umriss-hoch-frau.png');
}
.band-buehne[data-stimme="mann"] {
  --foto-breit:url('bilder/band/ensemble-breit-mann.webp');--foto-hoch:url('bilder/band/ensemble-hoch-mann.webp');
  --umriss-breit:url('bilder/band/umriss-breit-mann.png');--umriss-hoch:url('bilder/band/umriss-hoch-mann.png');
}
@container (max-aspect-ratio: 1/1) {
  .band-still {--foto:var(--foto-hoch);--umriss:var(--umriss-hoch);}
}
body.bf-cvi .band-buehne,body.bf-cvi .band-still {background:#000;}
body.bf-cvi .band-still::before {
  content:"";display:block;width:100%;height:100%;background:var(--bf-cvi-farbe,#ffd400);
  mask:var(--umriss) center / contain no-repeat;
}

/* Der geschlossene Vorhang füllt die echte Bühnenzelle bei jedem Format.
   Erst das vollständig gerenderte Ensemble erscheint hinter dem Vorhang. */
.band-buehne.band-laedt::after {
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    linear-gradient(90deg,transparent 48%,#290b10 49.8%,#9a4750 50.1%,transparent 52%),
    repeating-linear-gradient(90deg,#471b29 0%,#7e3740 4%,#58232d 8%,#391722 10%);
}
