

.c-kugel-halter { position: relative; background: #000; }

.c-flach-halter { aspect-ratio: 16 / 9; max-width: var(--player-max-b); margin-inline: auto; }

.c-kugel-halter.rund { aspect-ratio: 16 / 9; max-width: var(--player-max-b); margin-inline: auto; }

.c-kugel-buehne { container-type: inline-size; }
.c-kugel-halter.rund:not(.mehrfach) {
  aspect-ratio: auto; max-width: none; width: 100%;
  height: min(var(--player-max-h), 100cqw * 9 / 16);
}

:root {
  --player-max-h: min(70vh, 780px);
  --player-max-b: calc(var(--player-max-h) * 16 / 9);
}

.c-kugel-halter.rund .c-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-height: none; opacity: 0; pointer-events: none;
}
.c-kugel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: grab; touch-action: none;
}
.c-kugel.zieht { cursor: grabbing; }

.c-kugel-greif {
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
}
.c-kugel-greif svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-kugel-greif-text {
  position: absolute; left: 50%; top: calc(50% + 44px); transform: translateX(-50%);
  background: rgba(20, 24, 27, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
}
.c-kugel-greif.sichtbar,
.c-kugel-greif-text.sichtbar { opacity: 1; }

.c-kugel-greif-aus {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(20, 24, 27, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 12px; border-radius: 999px; font: inherit; font-size: 0.78rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.c-kugel-greif-aus.sichtbar { opacity: 1; pointer-events: auto; }
.c-kugel-greif-aus:hover { background: rgba(20, 24, 27, 0.9); }
.c-kugel-greif-aus:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (pointer: coarse) {
  .c-kugel-greif-aus { min-height: var(--tipp-ziel, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .c-kugel-greif, .c-kugel-greif-text, .c-kugel-greif-aus { transition: none; }
}

.c-kugel-leiste, .c-flach-leiste { padding: 0; container-type: inline-size; }
.c-sl {
  display: flex; align-items: center; gap: 10px; min-height: 54px;
  padding: 0 12px; box-sizing: border-box;
  background: var(--flaeche, #fff); border-top: 1px solid var(--rand, #e3e7ea);
  color: var(--text, #4a545b); font-size: 0.82rem;
}
.c-sl-spielen {
  flex: none; width: 38px; height: 38px; border: none; border-radius: 999px;
  background: var(--marke, #007A45); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.c-sl-spielen:hover { background: var(--marke-dunkel, #005C34); }
.c-sl-zeit { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-sl-jetzt { font-weight: 700; }
.c-sl-gesamt { color: var(--text-leise, #636e77); }

.c-sl-bahn { position: relative; flex: 1 1 auto; min-width: 80px; height: 28px; }
.c-sl-grund, .c-sl-gespielt, .c-sl-bereich {
  position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px; pointer-events: none;
}
.c-sl-grund { right: 0; background: var(--rand, #e3e7ea); }
.c-sl-bereich { top: 11px; height: 6px; border-radius: 3px; background: #b9dcc8; }
.c-sl-gespielt { width: 0; background: var(--marke, #007A45); }
.c-sl-marken { position: absolute; inset: 0; pointer-events: none; }
.c-sl-marke {
  position: absolute; top: 2px; width: 3px; height: 8px; margin-left: -1px;
  border-radius: 1px; background: var(--signal-ok, #007A45);
}
.c-sl-marke.mittel { background: var(--signal-warn, #b7791f); }
.c-sl-marke.schwer { background: var(--signal-gefahr, #c0392b); }
.c-sl-marke.massgeblich { top: 0; width: 4px; height: 10px; margin-left: -2px; outline: 1px solid #fff; }
.c-sl-regler {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.c-sl-regler::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.c-sl-regler::-moz-range-track { height: 28px; background: transparent; }
.c-sl-regler::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: 7px;
  border-radius: 999px; background: #fff; border: 2px solid var(--marke, #007A45); box-sizing: border-box;
}
.c-sl-regler::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 999px; background: #fff;
  border: 2px solid var(--marke, #007A45); box-sizing: border-box;
}
.c-sl-regler:focus-visible { outline: 2px solid var(--marke, #007A45); outline-offset: 2px; border-radius: 4px; }

.c-sl-tempo { flex: none; }
.c-sl-segmente {
  display: flex; flex: none; border: 1px solid var(--rand-stark, #d3d9dd);
  border-radius: 8px; overflow: hidden;
}
.c-sl-segment {
  height: 30px; min-width: 34px; padding: 0 9px; border: none;
  border-left: 1px solid var(--rand-stark, #d3d9dd); background: transparent;
  color: inherit; font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.c-sl-segment:first-child { border-left: none; }
.c-sl-segment:hover { background: var(--hover, #f5f7f8); }
.c-sl-segment.aktiv { background: var(--marke, #007A45); color: #fff; }
.c-sl-trenner { flex: none; width: 1px; height: 26px; background: var(--rand, #e3e7ea); }
.c-sl-werkzeuge { display: flex; align-items: center; gap: 4px; flex: none; }
.c-sl-knopf {
  width: 36px; height: 36px; flex: none; border: none; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.c-sl-knopf:hover { background: var(--hover, #f5f7f8); }
.c-sl-knopf.aktiv { background: var(--marke-soft, #e5f1ea); color: var(--marke-dunkel, #005C34); }
.c-sl-info { display: inline-flex; color: var(--text-leise, #636e77); cursor: help; }

.c-sl .c-ton-regler { flex: 0 1 64px; min-width: 48px; }

@container (max-width: 760px) { .c-sl-tempo, .c-sl-trenner { display: none; } }
@container (max-width: 600px) {
  .c-sl .c-ton-regler, .c-sl-gesamt, .c-sl-info { display: none; }
}

@container (max-width: 470px) {
  .c-sl { flex-wrap: wrap; row-gap: 2px; padding-block: 6px; }
  .c-sl-werkzeuge { flex: 1 1 100%; justify-content: flex-end; }
}
@media (pointer: coarse) {
  .c-sl-knopf, .c-sl-spielen { width: var(--tipp-ziel, 44px); height: var(--tipp-ziel, 44px); }
}

.c-kugel-buehne { display: block; }

.c-kugel-buehne:fullscreen,
.c-kugel-buehne.vollbild {
  display: flex; flex-direction: column; height: 100%; background: #000;
}

.c-kugel-buehne:fullscreen .c-kugel-halter.rund,
.c-kugel-buehne.vollbild .c-kugel-halter.rund {
  height: auto; flex: 1 1 auto; min-height: 0;
  width: 100%; max-width: none; aspect-ratio: auto;
}

.c-hud-buehne:fullscreen .c-sl,
.c-hud-buehne.vollbild .c-sl {
  padding: 0 16px; color: #e8ecef; background: rgba(22, 25, 27, 0.9); border-top-color: transparent;
}
.c-hud-buehne:fullscreen .c-sl-gesamt, .c-hud-buehne.vollbild .c-sl-gesamt,
.c-hud-buehne:fullscreen .c-sl-info, .c-hud-buehne.vollbild .c-sl-info { color: #c9d1d6; }
.c-hud-buehne:fullscreen .c-sl-grund, .c-hud-buehne.vollbild .c-sl-grund { background: rgba(255, 255, 255, 0.25); }
.c-hud-buehne:fullscreen .c-sl-knopf:hover, .c-hud-buehne.vollbild .c-sl-knopf:hover,
.c-hud-buehne:fullscreen .c-sl-segment:hover, .c-hud-buehne.vollbild .c-sl-segment:hover { background: rgba(255, 255, 255, 0.12); }
.c-hud-buehne:fullscreen .c-sl-knopf.aktiv, .c-hud-buehne.vollbild .c-sl-knopf.aktiv { background: rgba(0, 160, 91, 0.35); color: #fff; }
.c-hud-buehne:fullscreen .c-sl-segmente, .c-hud-buehne.vollbild .c-sl-segmente,
.c-hud-buehne:fullscreen .c-sl-segment, .c-hud-buehne.vollbild .c-sl-segment { border-color: rgba(255, 255, 255, 0.35); }

.c-hud-titel { display: none; }
.c-hud-buehne:fullscreen .c-hud-titel,
.c-hud-buehne.vollbild .c-hud-titel {
  display: flex; flex-direction: column; gap: 2px;
}

.c-kugel-hud {
  position: absolute; inset: 0; pointer-events: none;

  display: flex; flex-direction: row; align-items: flex-start;
  padding: 12px 14px; color: #fff; font-size: 0.82rem;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 24%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.c-hud-titel strong { font-size: 1.05rem; }
.c-hud-titel span { opacity: 0.85; }
.c-hud-block { display: flex; align-items: baseline; gap: 8px; margin-left: auto; }
.c-hud-wort { opacity: 0.7; text-transform: uppercase; letter-spacing: 0.6px; font-size: 0.7rem; }
.c-hud-wert { font-variant-numeric: tabular-nums; }

.c-hud-station ~ .c-hud-block { margin-left: 18px; }

.c-kugel-hud.c-hud-seiten {
  flex-direction: row;

  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  background: none;   
}
.c-hud-seite {
  display: flex; flex-direction: column; gap: 10px;

  justify-content: center;

  padding: 14px 2.6%;

  max-width: 30%;
}
.c-hud-seite-links {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.c-hud-seite-rechts {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));

  text-align: left;
}

.c-hud-band {
  display: flex; flex-direction: column; gap: 8px;
}

.c-hud-feld { display: flex; flex-direction: column; gap: 1px; }
.c-hud-feld .c-hud-wert { font-variant-numeric: tabular-nums; }

.c-hud-seiten .c-hud-wort {
  opacity: 1; text-transform: none; letter-spacing: 0;

  font-size: 0.64em; line-height: 1.2;
}
.c-hud-seiten .c-hud-wert { font-size: 1em; line-height: 1.15; }

.c-hud-seiten .c-hud-gruppe { font-size: 0.64em; }

.c-hud-gruppe {
  text-transform: uppercase; letter-spacing: 0.6px; font-size: 0.7rem;
  opacity: 0.8;
}

.c-hud-statisch { display: flex; }

.c-hud-reduziert .c-hud-seite .c-hud-statisch { display: none !important; }

.c-hud-leiste {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 14px;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 100%);
}

.c-hud-leiste-band { flex-direction: row; align-items: baseline; gap: 20px; }

.c-hud-mit-leiste .c-hud-logo {
  position: static; margin-left: auto; flex-shrink: 0;
}

.c-hud-mit-leiste .c-hud-seite { padding-top: 3.2em; }

.c-rundum-rahmen .c-kugel-halter { border-radius: var(--radius-m); overflow: hidden; }

.c-multiview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: default;
}

.c-spurwahl {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 0 0;
}
.c-spurwahl-wort {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-mute, #667); opacity: 0.8;
}

.c-spurwahl .ut-btn { padding: 3px 9px; }
.c-spurwahl .ut-btn.aktiv {
  background: var(--marke, #0b6b3a); color: #fff; border-color: transparent;
}

.c-ton { display: flex; align-items: center; gap: 6px; }
.c-ton-regler {
  flex: 0 1 90px; min-width: 56px; accent-color: var(--marke, #0b6b3a);
}

.c-ton-leiste {
  display: flex; justify-content: flex-end; padding: 6px 20px 0;
}

@media (pointer: coarse) {
  .c-ton-regler { min-height: var(--tipp-ziel, 44px); }
}

#c-toasts { position: fixed; right: 20px; bottom: var(--aime-frei, 20px); z-index: 1200; display: flex; flex-direction: column; gap: 8px; }
.c-toast {
  background: var(--text); color: #fff; border-radius: 8px; padding: 11px 16px;
  font-size: 0.9rem; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s;
  max-width: 360px;
}
.c-toast.sichtbar { opacity: 1; transform: none; }

.c-toast.fehler { background: var(--signal-gefahr, #c0392b); }
.c-toast.ok { background: var(--ut-gruen-dunkel, #0b6b3a); }

.c-kugel-schalter { padding: 8px 0 0; }
.ut-btn.c-rundum { padding: 3px 9px; }
.ut-btn.c-rundum.aktiv {
  background: var(--marke, #0b6b3a); color: #fff; border-color: transparent;
}

.c-flach-buehne { display: block; }
.c-flach-halter { position: relative; background: #000; }

.c-flach-halter > video {
  display: block; width: 100%; height: 100%; object-fit: contain;
}

.c-flach-leiste { display: block; padding: 0; }
.c-flach-halter > video { cursor: pointer; }

.c-flach-buehne:fullscreen,
.c-flach-buehne.vollbild {
  display: flex; flex-direction: column; background: #000; height: 100%;
}

.c-flach-buehne:fullscreen .c-flach-halter,
.c-flach-buehne.vollbild .c-flach-halter {
  flex: 1 1 auto; min-height: 0;
  width: 100%; max-width: none; aspect-ratio: auto;
}

.c-kugel-halter.mehrfach .c-kugel-hud {

  inset: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  background: rgba(15, 15, 15, 0.92);
  border-left: 2px solid rgba(50, 50, 50, 1);

  padding: 1.25em 0.75em;
  gap: 0;
  overflow: hidden;
}

.c-kugel-halter.mehrfach .c-hud-logo {
  position: static; order: -1;
  align-self: center;
  width: 78%; max-width: none;
  margin: 0 0 1.2em 0;
}

.c-kugel-halter.mehrfach .c-hud-seite {
  max-width: none; padding: 0;
  background: none;                 
  justify-content: flex-start;
  gap: 0;
}
.c-kugel-halter.mehrfach .c-hud-band { gap: 0; }
.c-kugel-halter.mehrfach .c-hud-feld { margin-bottom: 0.26em; }

.c-kugel-halter.mehrfach .c-hud-wort { font-size: 0.75em; line-height: 1.15; }
.c-kugel-halter.mehrfach .c-hud-wert { font-size: 1em; line-height: 1.0; }

.c-hud-logo {
  position: absolute;
  top: 1.3%; right: 2.6%;

  width: clamp(24px, 11.7%, 300px);
  height: auto;

  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9));
}

.c-spurwahl .c-spur-render {
  border-style: dashed;
  opacity: 0.85;
}
.c-spurwahl .c-spur-render.aktiv { opacity: 1; }
