/* Bühne des Teleprompters – gemeinsam für Viewer und Controller-Vorschau. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.tp-stage {
  --tp-size: 56px;
  --tp-lh: 1.4;
  --tp-width: 82%;
  --tp-weight: 400;
  --tp-align: left;
  --tp-marker: 30%;
  --tp-bg: #000;
  --tp-fg: #fff;
  --tp-muted: rgba(255, 255, 255, 0.42);
  --tp-cue-bg: rgba(245, 158, 11, 0.18);
  --tp-cue-fg: #fbbf24;
  --tp-marker-color: #f59e0b;
  position: relative;
  overflow: hidden;
  background: var(--tp-bg);
  color: var(--tp-fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--tp-size);
  line-height: var(--tp-lh);
  font-weight: var(--tp-weight);
  text-align: var(--tp-align);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  contain: strict;
}
.tp-stage.theme-light {
  --tp-bg: #ffffff;
  --tp-fg: #0b0b0b;
  --tp-muted: rgba(0, 0, 0, 0.42);
  --tp-cue-bg: rgba(194, 65, 12, 0.12);
  --tp-cue-fg: #b45309;
  --tp-marker-color: #d97706;
}
.tp-stage.font-serif {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.tp-scroll {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.tp-inner {
  position: relative;
  width: var(--tp-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.tp-line { margin: 0 0 0.3em; }
.tp-text { overflow-wrap: break-word; hyphens: manual; }
.tp-text strong { font-weight: 800; }
.tp-text em { font-style: italic; }
.tp-li .tp-text::before {
  content: "•";
  color: var(--tp-muted);
  margin-right: 0.4em;
}
.tp-gap { height: 0.75em; }

.tp-h {
  margin: 0.25em 0 0.45em;
  padding-bottom: 0.18em;
  border-bottom: 0.045em solid var(--tp-muted);
}
.tp-h-kicker {
  display: block;
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tp-muted);
  line-height: 1.2;
  margin-bottom: 0.5em;
}
.tp-h1 .tp-h-text { font-size: 1.05em; font-weight: 800; line-height: 1.1; }
.tp-h2 .tp-h-text, .tp-h3 .tp-h-text { font-size: 0.72em; font-weight: 700; line-height: 1.15; }

.tp-sep {
  border: 0;
  border-top: 0.06em solid var(--tp-muted);
  margin: 0.5em 0 0.7em;
}

.tp-pause {
  height: calc(var(--pause, 1.6) * 0.62em);
  display: flex;
  align-items: center;
  margin: 0.15em 0;
}

.tp-cue {
  display: inline-block;
  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  background: var(--tp-cue-bg);
  color: var(--tp-cue-fg);
  vertical-align: middle;
  margin: 0 0.35em 0 0;
  white-space: nowrap;
}
.tp-text .tp-cue { margin: 0 0.15em; position: relative; top: -0.15em; }
.tp-cues { display: flex; flex-wrap: wrap; gap: 0.25em; margin-bottom: 0.15em; }
.tp-stage.cues-hidden .tp-cue:not(.tp-cue-pause),
.tp-stage.cues-hidden .tp-cues { display: none; }

.tp-marker {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--tp-marker);
  height: 0;
  pointer-events: none;
  z-index: 2;
  border-top: 2px solid color-mix(in srgb, var(--tp-marker-color) 35%, transparent);
  transform: translateY(-1px);
}
.tp-marker::before,
.tp-marker::after {
  content: "";
  position: absolute;
  top: -11px;
  border: 11px solid transparent;
}
.tp-marker::before { left: 0; border-left: 16px solid var(--tp-marker-color); }
.tp-marker::after { right: 0; border-right: 16px solid var(--tp-marker-color); }
.tp-stage.marker-hidden .tp-marker { display: none; }

.tp-empty {
  color: var(--tp-muted);
  font-size: 0.55em;
  font-weight: 400;
}
