.live-auswahl .live-pfeil { display: flex; flex: none; }
.live-auswahl { max-width: 100%; flex-wrap: wrap; }
.live-auswahl #routerbahn { min-width: 0; }
.live-auswahl .router { width: var(--live-routerbreite); }
.live-auswahl .router-text { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.live-auswahl .router[aria-pressed="true"] .router-text { background: var(--live-gewaehlt); }
.live-auswahl button:focus-visible { outline: var(--fokus) solid var(--live-signal); outline-offset: calc(-1 * var(--fokus)); }
#rundgang { display: inline-flex; flex: none; align-items: center; gap: var(--abstand-2); }
#automatik-ring { width: var(--icon); height: var(--icon); flex: none; fill: none; stroke-width: 2; transform: rotate(-90deg); }
#automatik-ring[hidden] { display: none; }
.automatik-grund { stroke: var(--live-spur); }
#automatik-fortschritt { stroke: var(--live-signal); }
.live-auswahl, .live-werkzeuge, .live-lagen, .live-zoom, #abspielen { transition: opacity var(--dauer-mittel) var(--ease-aus); }
.live-auswahl .router-text { background: var(--live-tafel); }
[data-bedienung="verborgen"] :is(.live-auswahl, .live-werkzeuge, .live-lagen, .live-zoom, #abspielen) { opacity: 0; pointer-events: none; }
[data-bedienung="verborgen"] :is(.live-auswahl, .live-werkzeuge, .live-lagen, .live-zoom, #abspielen):focus-within { opacity: 1; pointer-events: auto; }
/* Während des Ladens bleibt ein anderer Router wählbar, auch nach der Ruhefrist. */
#live-bild[data-zustand="laden"] .live-auswahl { opacity: 1; pointer-events: auto; }
#bauteile { flex: none; }
.live-auswahl #abspielen { flex-basis: 100%; justify-content: flex-end; margin-top: 0; }
@media (max-width: 899px) {
  .live-auswahl { margin-inline: var(--live-rand); }
  #rundgang { grid-column: 2 / -1; grid-row: 2; justify-self: end; }
  #bauteile { grid-column: 1 / 2; grid-row: 2; justify-self: start; }
  .live-auswahl #abspielen { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
  .live-bild .live-lagen, .live-bild .live-zoom { grid-area: 1 / 1; }
  .live-bild .live-lagen { justify-self: start; margin: var(--live-rand); margin-bottom: calc(var(--live-rand) + var(--knopfhoehe) + var(--abstand-2)); max-width: calc(100% - 2 * var(--live-rand)); }
  .live-bild .live-zoom { margin: var(--live-rand); }
  .live-bild .live-werkzeuge { justify-self: start; margin: var(--live-rand); max-width: calc(100% - 2 * (var(--knopfhoehe) + var(--abstand-2)) - 2 * var(--live-rand)); }
  .live-bild .live-lagen .lagenknopf, .live-bild .live-zoom .knopf { color: var(--live-text); background: var(--live-tafel); }
  /* Die vollständige Live-Seite trennt Auswahl, Bühne und Bedienung in eigene Zeilen.
     So verdrängt das Abspieltempo keinen Ersatztext, und sechs Knöpfe bleiben bei 360 px erreichbar. */
  .live-seite .live-bild { grid-template-rows: auto auto auto auto auto; }
  .live-seite .live-auswahl { grid-area: 1 / 1; margin: 0 0 var(--abstand-2); }
  .live-seite .live-auswahl #abspielen { color: var(--text-stark); }
  .live-seite .live-bild:fullscreen .live-auswahl #abspielen { color: var(--live-text); }
  .live-seite .live-buehne { grid-area: 2 / 1; }
  .live-seite #fortschritt { grid-area: 2 / 1; }
  .live-seite .live-bild .live-werkzeuge { grid-area: 3 / 1; margin: var(--abstand-2) 0; gap: var(--abstand-1); max-width: calc(100% - 2 * (var(--knopfhoehe) + var(--abstand-1))); }
  .live-seite .live-bild .live-zoom { grid-area: 3 / 1; margin: var(--abstand-2) 0; gap: var(--abstand-1); }
  .live-seite .live-bild .live-lagen { grid-area: 4 / 1; margin: 0; max-width: 100%; }
  .live-seite .live-tafel { grid-area: 5 / 1; }
  .live-seite .live-bild:fullscreen { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
  .live-seite .live-bild:fullscreen .live-buehne { height: 100%; min-height: 0; }
}
/* B13 A4: Kacheln mit kleinem Umrissbild und Zähler. Gewählt heißt heller Rahmen, unterstrichener fetter Name und heller
   Grund der Textzeile; nichts davon hängt an Rot gegen Grün. Der Fokusring bleibt die Signalfarbe. */
.live-auswahl .router { position: relative; }
.live-auswahl .router-bild { display: block; width: 100%; height: var(--live-kachelbild); overflow: hidden; background: var(--live-tafel); border-radius: var(--radius-klein); }
.live-auswahl .router-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.live-auswahl .router-nr { position: absolute; top: 0; right: var(--abstand-1); padding: 0 var(--abstand-1); border-radius: var(--radius-klein); background: var(--live-tafel); color: var(--live-text-leise); font-size: var(--groesse-klein); pointer-events: none; }
.live-auswahl .router[aria-pressed="true"]:not(:focus-visible) { outline: var(--fokus) solid var(--live-rahmen); outline-offset: calc(-1 * var(--fokus)); }
.live-auswahl .router[aria-pressed="true"] strong { text-decoration: underline; text-underline-offset: .2em; }
/* Mit Bildern bekommt auch das Auge eines Live-Laufs die Bildhöhe; Bahn und Signal laufen auf halber Bildhöhe dahinter. */
#routerbahn[data-bilder] .router-auge { height: var(--live-kachelbild); }
#routerbahn[data-bilder] #routerwahl::before, #routerbahn[data-bilder] #router-signal { top: calc(var(--live-kachelbild) / 2 - var(--spur) / 2); }
/* Schmal: Bild links, Text rechts, damit die Leiste kaum höher wird. */
@media (max-width: 599px) {
  #routerbahn[data-bilder] .router { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; justify-items: start; column-gap: var(--abstand-2); text-align: start; }
  #routerbahn[data-bilder] .router-auge { justify-self: center; }
  .live-auswahl .router-bild { width: 4.5rem; height: 3rem; }
  #routerbahn[data-bilder] .router-auge { height: 3rem; }
  #routerbahn[data-bilder] #routerwahl::before, #routerbahn[data-bilder] #router-signal { top: calc(1.5rem - var(--spur) / 2); }
}
