/* Live-Ansicht (live.js). Nur Design-Tokens aus app.css, alle Klassen mit Präfix "live-".
   Leitidee: ein ruhiger Bühnenmonitor – der Akkord ist das Einzige, was aus 3 m zählt. */

.live {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text);
  font-family: var(--schrift);
}

.live [hidden] {
  display: none !important;
}

/* nur für Screenreader */
.live-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.live :focus-visible {
  outline: 3px solid var(--abschnitt);
  outline-offset: 2px;
}

/* ---------- Knöpfe ---------- */

.live-knopf,
.live-knopf-leise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--schrift);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.live-knopf {
  border: 1px solid var(--rand);
  background: var(--flaeche);
  color: var(--text);
}

.live-knopf:hover {
  background: var(--flaeche-2);
}

.live-knopf:active {
  transform: scale(0.97);
}

.live-knopf-leise {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-leise);
}

.live-knopf-leise:hover {
  background: var(--flaeche-2);
  color: var(--text);
}

.live-knopf-haupt {
  background: var(--akkord);
  border-color: var(--akkord);
  color: var(--hintergrund);
}

.live-knopf-haupt:hover {
  background: var(--akkord);
  filter: brightness(1.08);
}

.live-knopf:disabled,
.live-knopf-leise:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.live-knopf svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex: none;
}

.live-knopf-rund {
  width: 48px;
  padding: 0;
  border-radius: 50%;
}

/* Knopf mit Symbol (iPhone-App: Einstellungen als Regler-Symbol) */
.live-knopf-leise svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.live-knopf-symbol {
  min-width: 48px;
  padding: 0 0.75rem;
}

/* Segment-Umschalter (Akkorde/Stimmgerät, Einstellungen) */
.live-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--flaeche-2);
}

.live-segment button {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-leise);
  font: 600 1rem/1.2 var(--schrift);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.live-segment button:hover {
  color: var(--text);
}

.live-segment button[aria-pressed="true"] {
  background: var(--flaeche);
  color: var(--text);
  /* feiner Ring: im dunklen Schema liegen flaeche und flaeche-2 nah beieinander */
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-leise) 40%, transparent), var(--schatten);
}

/* ---------- Kopf ---------- */

.live-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.live-kopf > .live-segment button {
  min-height: 48px;
  padding: 0 1.4rem;
  font-size: 1.05rem;
}

.live-kopf-rechts {
  display: flex;
  gap: 0.25rem;
}

/* ---------- Einstellungen ---------- */

.live-einstellungen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}

.live-einstellung {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.live-einstellung-titel {
  font-weight: 700;
}

.live-einstellung-hilfe {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-leise);
}

.live-regler {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  color: var(--text-leise);
  font-size: 0.875rem;
}

.live-regler input[type="range"] {
  flex: 1;
  min-height: 44px;
  accent-color: var(--akkord);
}

.live-einstellungen-zu {
  grid-column: 1 / -1;
  justify-self: end;
}

.live[data-modus="stimmgeraet"] .live-nur-akkorde {
  display: none;
}

/* ---------- Fehler ---------- */

.live-fehler {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--fehler);
  border-left-width: 6px;
  border-radius: var(--radius);
  background: var(--flaeche);
}

.live-fehler strong {
  display: block;
  color: var(--fehler);
  font-size: 1.1rem;
}

.live-fehler p {
  margin: 0.35rem 0 0;
  line-height: 1.5;
  max-width: 60ch;
}

.live-fehler-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ---------- Bühne ---------- */

.live-buehne {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(22rem, 54vh, 50rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--rand);
  border-radius: calc(var(--radius) * 2);
  background: var(--flaeche);
  overflow: hidden;
}

.live-start,
.live-warten,
.live-akkordbereich,
.live-stimmgeraet {
  display: none;
}

.live[data-phase="aus"] .live-start {
  display: flex;
}

.live[data-modus="akkorde"][data-phase="bereit"] .live-warten {
  display: flex;
}

.live[data-modus="akkorde"][data-phase="aktiv"] .live-akkordbereich,
.live[data-modus="akkorde"][data-phase="pause"] .live-akkordbereich {
  display: grid;
}

.live[data-modus="stimmgeraet"]:not([data-phase="aus"]) .live-stimmgeraet {
  display: flex;
}

/* Startbildschirm: ein großer Knopf, darunter die Quelle */
.live-start {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.live-zuhoeren {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: clamp(9.5rem, 24vmin, 13rem);
  aspect-ratio: 1;
  margin: 1.25rem 0 0.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--akkord);
  color: var(--hintergrund);
  font: 700 1.4rem/1 var(--schrift);
  cursor: pointer;
  /* zwei weiche Ringe wie Schallwellen */
  box-shadow:
    0 0 0 0.7rem color-mix(in srgb, var(--akkord) 14%, transparent),
    0 0 0 1.5rem color-mix(in srgb, var(--akkord) 6%, transparent),
    var(--schatten);
  transition: transform 0.15s, box-shadow 0.3s;
}

.live-zuhoeren svg {
  width: 2.6rem;
  height: 2.6rem;
  fill: currentColor;
}

.live-zuhoeren:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 0 0.9rem color-mix(in srgb, var(--akkord) 16%, transparent),
    0 0 0 1.9rem color-mix(in srgb, var(--akkord) 7%, transparent),
    var(--schatten);
}

.live-zuhoeren:active {
  transform: scale(0.97);
}

.live-zuhoeren:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.live-quellen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.live-quellen-titel {
  color: var(--text-leise);
  font-weight: 600;
}

.live-quellen-hinweis {
  max-width: 46ch;
  margin: 0;
  color: var(--text-leise);
  line-height: 1.5;
}

.live-datei-wahl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.live-datei-wahl label {
  position: relative;
}

.live-datei-wahl label:focus-within {
  outline: 3px solid var(--abschnitt);
  outline-offset: 2px;
}

.live-datei-wahl input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.live-datei-name {
  color: var(--text-leise);
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bereitschaft: ein Ring, der mit dem Pegel atmet */
.live-warten {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.live-ohr {
  --live-pegel: 0;
  position: relative;
  width: clamp(8rem, 22vmin, 12rem);
  aspect-ratio: 1;
  margin-bottom: 0.5rem;
}

.live-ohr::before,
.live-ohr span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.live-ohr::before {
  border: 2px solid var(--rand);
}

.live-ohr span {
  background: color-mix(in srgb, var(--akkord) 22%, transparent);
  border: 3px solid var(--akkord);
  transform: scale(calc(0.25 + var(--live-pegel) * 0.75));
  transition: transform 0.08s linear;
}

.live-warten-text {
  margin: 0;
  font: 700 clamp(2rem, 5.5vw, 3.4rem)/1.1 var(--schrift-akkord);
  letter-spacing: -0.01em;
}

.live-warten-hilfe {
  margin: 0;
  color: var(--text-leise);
}

/* ---------- Akkordanzeige ---------- */

.live-akkordbereich {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
}

.live-anzeige {
  container-type: inline-size;
  min-width: 0;
}

.live-akkord {
  display: flex;
  align-items: baseline;
  min-height: 1em;
  color: var(--akkord);
  font-family: var(--schrift-akkord);
  font-weight: 800;
  /* aus 3 m lesbar: so groß, wie Breite und Höhe hergeben */
  /* 40cqi: auch der breiteste Name („C♯maj7“ ≈ 2,1 em) passt noch in die Spalte */
  font-size: clamp(5rem, min(40cqi, 44vh), 24rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  white-space: nowrap;
  transition: color 0.6s, opacity 0.6s;
}

.live-akkord-vorzeichen {
  display: inline-block;
  font-size: 0.55em;
  transform: translateY(-0.55em);
  margin-left: 0.02em;
  letter-spacing: 0;
}

.live-akkord-zusatz {
  font-size: 0.46em;
  font-weight: 700;
  margin-left: 0.06em;
  letter-spacing: -0.01em;
}

.live-akkord-leer {
  color: var(--text-leise);
  opacity: 0.5;
}

.live-akkord-neu {
  animation: live-auftauchen 0.22s ease-out;
}

@keyframes live-auftauchen {
  from {
    opacity: 0.3;
    transform: translateY(0.03em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.live-sicherheit {
  width: min(100%, 26rem);
  height: 5px;
  margin: clamp(0.75rem, 2vh, 1.25rem) 0 1rem;
  border-radius: 3px;
  background: var(--flaeche-2);
  overflow: hidden;
}

.live-sicherheit span {
  display: block;
  height: 100%;
  background: var(--akkord);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease-out;
}

.live-tonart,
.live-alternativen {
  margin: 0.25rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.4;
  color: var(--text-leise);
}

.live-tonart {
  color: var(--text);
  font-weight: 600;
}

.live-alternativen b {
  color: var(--text);
  font-weight: 700;
}

.live-pause-marke {
  display: none;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--rand);
  border-radius: 999px;
  color: var(--text-leise);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Band-Modus: kleine Marke über dem Akkord, damit klar ist, warum die App sich anders verhält */
.live-band-marke {
  display: none;
  width: fit-content;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--flaeche-2);
  color: var(--abschnitt);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.live[data-band="an"] .live-band-marke {
  display: block;
}

.live[data-phase="pause"] .live-band-marke {
  display: none;
}

/* „Gleich: G“ – der nächste Akkord laut gelernter Folge, gut lesbar, aber klar kleiner als „jetzt“ */
.live-gleich {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.35rem 0 0;
  color: var(--text);
}

.live-gleich[hidden] {
  display: none;
}

.live-gleich-titel {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-leise);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-gleich-name {
  font-family: var(--schrift-akkord);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--abschnitt);
}

/* „Lied lernen“ */
.live-lernen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.live-lernen[hidden] {
  display: none;
}

.live-lernen-text {
  flex: 1 1 14rem;
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
  line-height: 1.4;
}

.live-lernen[data-zustand="lernt"] .live-lernen-text {
  color: var(--text);
  font-weight: 600;
}

.live[data-modus="stimmgeraet"] .live-lernen {
  display: none;
}

/* Pause: letzter Akkord bleibt blass stehen */
.live[data-phase="pause"] .live-pause-marke {
  display: block;
}

.live[data-phase="pause"] .live-akkord {
  color: var(--text-leise);
  opacity: 0.4;
}

.live[data-phase="pause"] .live-sicherheit,
.live[data-phase="pause"] .live-alternativen,
.live[data-phase="pause"] .live-griff-bild {
  opacity: 0.35;
  transition: opacity 0.6s;
}

/* Griffbild */
.live-griff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
}

.live-griff-bild {
  width: min(100%, 21rem);
  color: var(--text);
}

.live[data-griffbild="klavier"] .live-griff-bild {
  width: min(100%, 28rem);
}

.live-griff-bild svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46vh;
}

/* Punkte und Barré in Akkordfarbe, Raster in Textfarbe */
.live-griff-bild .griff-punkte,
.live-griff-bild .klavier-punkte {
  color: var(--akkord);
}

.live-griff figcaption .live-segment button {
  min-height: 40px;
  padding: 0 0.9rem;
  font-size: 0.9rem;
}

/* ---------- Stimmgerät ---------- */

.live-stimmgeraet {
  --live-nadel-farbe: var(--text);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.live-stimm-note {
  font: 800 clamp(4.5rem, min(22vh, 24vw), 11rem) / 0.95 var(--schrift-akkord);
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.2s, opacity 0.3s;
}

.live-stimm-note sub {
  font-size: 0.3em;
  font-weight: 600;
  color: var(--text-leise);
  vertical-align: baseline;
  margin-left: 0.08em;
  letter-spacing: 0;
}

.live-skala {
  display: block;
  width: min(92vw, 32rem, 58vh);
  height: auto;
  overflow: visible;
}

.live-skala-bogen {
  fill: none;
  stroke: var(--flaeche-2);
  stroke-width: 12;
  stroke-linecap: round;
}

.live-skala-gruen {
  fill: none;
  stroke: var(--gut);
  stroke-width: 12;
}

.live-skala-strich {
  stroke: var(--text-leise);
  stroke-width: 2;
  stroke-linecap: round;
}

.live-skala-strich-lang {
  stroke: var(--text);
  stroke-width: 3;
}

.live-skala-text {
  fill: var(--text-leise);
  font: 600 13px var(--schrift);
}

.live-nadel {
  transform-box: view-box;
  transform-origin: 150px 160px;
  transform: rotate(var(--live-nadel-winkel, 0deg));
  transition: transform 0.12s ease-out, opacity 0.3s;
}

.live-nadel line {
  stroke: var(--live-nadel-farbe);
  stroke-width: 4;
  stroke-linecap: round;
}

.live-nadel circle {
  fill: var(--live-nadel-farbe);
}

.live-stimm-hinweis {
  min-height: 2.6rem;
  margin: 0.5rem 0 0;
  color: var(--text-leise);
  font-size: 1.1rem;
}

.live-stimm-hinweis strong {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--text);
}

.live[data-stimm-zone="passt"] .live-stimmgeraet {
  --live-nadel-farbe: var(--gut);
}

.live[data-stimm-zone="passt"] .live-stimm-note,
.live[data-stimm-zone="passt"] .live-stimm-hinweis strong {
  color: var(--gut);
}

.live[data-stimm-zone="tief"] .live-stimm-hinweis strong,
.live[data-stimm-zone="hoch"] .live-stimm-hinweis strong {
  color: var(--warnung);
}

/* Ton verklingt: Anzeige kurz blass stehen lassen */
.live[data-stimm-frisch="nein"] .live-stimm-note,
.live[data-stimm-frisch="nein"] .live-nadel {
  opacity: 0.4;
}

.live-saiten {
  display: flex;
  gap: clamp(0.4rem, 2vw, 1rem);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.live-saiten li {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 9vw, 3.6rem);
  aspect-ratio: 1;
  border: 2px solid var(--rand);
  border-radius: 50%;
  color: var(--text-leise);
  font: 700 1.3rem/1 var(--schrift-akkord);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.live-saite-nr {
  position: absolute;
  bottom: -1.35rem;
  font: 500 0.75rem/1 var(--schrift);
  color: var(--text-leise);
}

.live-saiten li[data-naechste] {
  border-color: var(--warnung);
  color: var(--text);
}

.live-saiten li[data-naechste="passt"] {
  border-color: var(--gut);
  background: color-mix(in srgb, var(--gut) 18%, transparent);
}

.live-stimm-frequenz {
  margin: 2rem 0 0;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}

/* ---------- Steuerleiste ---------- */

.live-steuerung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background: var(--flaeche);
}

.live[data-phase="aus"] .live-steuerung {
  display: none;
}

.live-status {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 10rem;
  min-width: 0;
}

.live-status-text {
  color: var(--text-leise);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-pegel {
  display: block;
  width: min(100%, 16rem);
  height: 6px;
  border-radius: 3px;
  background: var(--flaeche-2);
  overflow: hidden;
}

.live-pegel span {
  display: block;
  height: 100%;
  background: var(--gut);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.06s linear;
}

.live-pegel span[data-laut="zu"] {
  background: var(--warnung);
}

.live-datei-steuerung {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 2 1 18rem;
}

.live-position {
  flex: 1;
  min-width: 6rem;
  min-height: 44px;
  accent-color: var(--akkord);
}

.live-zeit {
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-aufnehmen svg {
  fill: var(--fehler);
}

.live-aufnehmen.live-nimmt-auf {
  border-color: var(--fehler);
  color: var(--fehler);
  font-variant-numeric: tabular-nums;
}

.live-aufnehmen.live-nimmt-auf svg {
  animation: live-blinken 1.2s ease-in-out infinite;
}

@keyframes live-blinken {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Aufnahme ---------- */

.live-aufnahme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rand);
  border-left: 6px solid var(--akkord);
  border-radius: var(--radius);
  background: var(--flaeche);
}

.live-aufnahme-kopf span {
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
  margin-left: 0.35rem;
}

.live-aufnahme audio {
  flex: 1 1 16rem;
  max-width: 26rem;
  min-height: 44px;
}

.live-aufnahme-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-aufnahme-hinweis {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-leise);
}

.live-aufnahme-hinweis:empty {
  display: none;
}

/* iPhone-App: wie es mit der Aufnahme weitergeht */
.live-aufnahme-mac {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-leise);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Meldung als Knopf (iPhone-App: „Neue Version – tippen zum Aktualisieren“) */
.live-meldung-aktion {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

/* ---------- Verlauf als Taktleiste: | C | G | Am ‖ ---------- */

.live-verlauf {
  display: grid;
  gap: 0.35rem;
}

.live[data-phase="aus"][data-verlauf="leer"] .live-verlauf,
.live[data-modus="stimmgeraet"] .live-verlauf {
  display: none;
}

.live-verlauf-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-verlauf-kopf h2 {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-verlauf-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.live-verlauf-liste {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0.35rem 0 0.75rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.live-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 4.75rem;
  padding: 0.4rem 1rem 0.45rem;
  border-left: 2px solid var(--text-leise);
}

.live-chip:last-child {
  border-right: 2px solid var(--text-leise);
}

.live-chip-name {
  font: 800 1.5rem/1.1 var(--schrift-akkord);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.live-chip-dauer {
  color: var(--text-leise);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live[data-phase="aktiv"] .live-chip-jetzt {
  background: color-mix(in srgb, var(--akkord) 9%, transparent);
}

.live[data-phase="aktiv"] .live-chip-jetzt .live-chip-name {
  color: var(--akkord);
}

/* Pause = Schlussstrich (dünn + dick), dann Abstand */
.live-trenner {
  flex: none;
  position: relative;
  width: 1.75rem;
}

.live-trenner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-left: 2px solid var(--text-leise);
  border-right: 4px solid var(--text-leise);
}

.live-verlauf-leer {
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  color: var(--text-leise);
}

/* ---------- Vollbild ---------- */

.live:fullscreen {
  height: 100%;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  overflow: auto;
  background: var(--hintergrund);
}

.live:fullscreen .live-buehne {
  flex: 1 1 auto;
  min-height: 0;
}

/* ---------- Anpassung an Bildschirme ---------- */

/* Hochformat (iPad hoch) und schmale Fenster: Griffbild unter den Akkord */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .live-akkordbereich {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .live-anzeige {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .live-akkord {
    justify-content: center;
    font-size: clamp(5rem, min(44cqi, 32vh), 22rem);
  }

  .live-griff-bild svg {
    max-height: 30vh;
  }
}

/* Handy */
@media (max-width: 520px) {
  .live {
    gap: 0.75rem;
  }

  .live-kopf > .live-segment {
    flex: 1 1 100%;
  }

  .live-kopf > .live-segment button {
    flex: 1;
    padding: 0 0.75rem;
  }

  .live-kopf-rechts {
    width: 100%;
    justify-content: flex-end;
  }

  .live-buehne {
    min-height: 24rem;
    border-radius: var(--radius);
  }

  .live-einstellungen {
    padding: 1rem;
  }

  .live-steuerung > .live-knopf {
    flex: 1 1 auto;
  }

  .live-chip-name {
    font-size: 1.25rem;
  }
}

/* Laptop quer, wenig Höhe: Bühne nicht höher als der Bildschirm */
@media (orientation: landscape) and (max-height: 700px) {
  .live-buehne {
    min-height: clamp(18rem, 70vh, 40rem);
  }

  .live-akkord {
    font-size: clamp(4.5rem, min(36cqi, 40vh), 18rem);
  }
}

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