/**
 * Teleprompter – Aussehen der App.
 *
 * Aufbau der Datei:
 *   1. Schriften und Grundlage
 *   2. Farben, Schriften und Maße als Variablen (:root)
 *   3. Kopf: Schriftzug, Textwahl, Schaltergruppen
 *   4. Statuszeile: Signal, Fortschritt, Uhr
 *   5. Bühne: Text, Lesemarke, Countdown
 *   6. Laufwerk: Start, Tempo, Dauer
 *   7. Textliste, Editor, Anleitung, Ablagefläche
 *   8. Schmale Bildschirme und reduzierte Bewegung
 *
 * Gestaltet wie ein kleines Studio-Pult: dunkel, Bernstein als einzige Farbe, Rot nur für das Aufnahmesignal.
 * Bewusst nur dunkel – ein Teleprompter leuchtet neben der Linse.
 */

/* Schriften liegen im Repository, es wird nichts von fremden Servern geladen. Lizenz: SIL Open Font License 1.1, siehe assets/fonts/LIZENZ.md */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

/* Grundlage */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
/* Layout: Studio-Pult. Oben Kennung, Skriptwahl und Werkzeuge, darunter eine schmale Statuszeile (Signal, Fortschritt je Absatz, Timecode),
   in der Mitte die Lesebühne mit Lesemarke, unten das Laufwerk. Bewusst nur dunkel: ein Teleprompter leuchtet neben der Linse. */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --flaeche: #141415;
  --flaeche-2: #1e1e20;
  --linie: #2c2c2f;
  --text: #f6f4ef;
  --leise: #918f8a;
  --gedimmt: #56544f;
  --marke: #ffb224;
  --auf-marke: #1b1300;
  --signal: #ff4d3d;
  --lesen: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wort: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gross: 34px;
  --r: 12px;
}
html,
body {
  height: 100%;
}
html {
  overflow: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--lesen);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
body > * {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  box-sizing: border-box;
}
svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button {
  font: 500 15px var(--lesen);
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
button:hover:not(:disabled) {
  background: var(--flaeche-2);
  border-color: #3a3a3e;
}
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (pointer: coarse) {
  button {
    min-height: 44px;
  }
}

/* Kopf */
.kopf {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
}
.wort {
  font: italic 400 30px/1 var(--wort);
  letter-spacing: 0.005em;
}
.wort em {
  font-style: inherit;
  color: var(--marke);
}
.kopf2 {
  display: flex;
  align-items: flex-end;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.gruppe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.etikett {
  font: 500 10.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leise);
}
.gruppe.rechts {
  flex-direction: row;
  margin-left: auto;
  gap: 8px;
}
.seg {
  display: inline-flex;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 3px;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  min-height: 34px;
  color: var(--leise);
  padding: 0 13px;
}
.seg button:hover:not(:disabled) {
  background: var(--flaeche-2);
  color: var(--text);
}
.seg button[aria-pressed='true'] {
  background: var(--flaeche-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px #3a3a3e;
}
.seg output {
  font: 500 13px var(--mono);
  color: var(--text);
  min-width: 2.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
@media (pointer: coarse) {
  .seg button {
    min-height: 40px;
  }
}

/* Statuszeile */
.stand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--linie);
  font: 500 12px var(--mono);
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.signal i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gedimmt);
}
.signal[data-art='fertig'] {
  color: var(--marke);
}
.signal[data-art='fertig'] i {
  background: var(--marke);
  box-shadow: 0 0 12px var(--marke);
}
.signal[data-art='gleich'] {
  color: var(--marke);
}
.signal[data-art='gleich'] i {
  background: var(--marke);
}
.signal[data-art='live'] {
  color: var(--text);
}
.signal[data-art='live'] i {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 77, 61, 0.18);
  animation: puls 1.6s ease-in-out infinite;
}
@keyframes puls {
  50% {
    box-shadow: 0 0 0 7px rgba(255, 77, 61, 0);
  }
}
.zaehler {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gang {
  flex: 1 1 auto;
  display: flex;
  gap: 3px;
  min-width: 24px;
  align-items: center;
}
.gang i {
  flex: 1 1 0;
  height: 3px;
  border-radius: 2px;
  background: var(--linie);
  transition: background 0.3s;
}
.gang i.durch {
  background: var(--leise);
}
.gang i.jetzt {
  background: var(--marke);
}
.gang i {
  position: relative;
  overflow: hidden;
}
.gang i.jetzt {
  background: var(--linie);
}
.gang i.jetzt::after {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(var(--f, 1));
  background: linear-gradient(90deg, #ff9a1f, var(--marke));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 178, 36, 0.7);
}
/* Uhr: Ring zeigt die verstrichene gegen die geschätzte Sprechzeit, Ziffern rollen beim Wechsel */
.uhrwerk {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 4px 2px 4px 8px;
  min-height: 0;
  border-radius: 10px;
  margin-right: -2px;
}
.uhrwerk:hover:not(:disabled) {
  background: var(--flaeche);
  border: 0;
}
.uhrwerk small {
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leise);
}
.uhrwerk svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
  transform: rotate(-90deg);
  overflow: visible;
}
.uhrwerk .bahn {
  stroke: var(--linie);
}
.uhrwerk .zeiger {
  stroke: var(--marke);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--ring, 0) * 100);
  transition:
    stroke-dashoffset 0.35s linear,
    stroke 0.4s;
  filter: drop-shadow(0 0 5px rgba(255, 178, 36, 0.75));
}
.uhrwerk[data-ueber] .zeiger {
  stroke: var(--signal);
  filter: drop-shadow(0 0 5px rgba(255, 77, 61, 0.75));
}
.tc {
  flex: 0 0 auto;
  display: inline-flex;
  font: 500 22px/1 var(--mono);
  color: var(--text);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.tc b {
  font-weight: 500;
  display: inline-block;
  width: 0.62em;
  text-align: center;
  overflow: hidden;
  height: 1.1em;
  line-height: 1.1em;
}
.tc b.neu {
  animation: rolle 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tc b.punkt {
  width: 0.38em;
}
[data-art='live'] ~ .uhrwerk .tc b.punkt {
  animation: blink 1s steps(2, jump-none) infinite;
}
[data-art='live'] ~ .uhrwerk .tc {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}
@keyframes rolle {
  from {
    transform: translateY(55%);
    opacity: 0;
    filter: blur(2px);
  }
  to {
    transform: none;
    opacity: 1;
    filter: none;
  }
}
@keyframes blink {
  50% {
    opacity: 0.4;
  }
}
body.aufnahme .kopf,
body.aufnahme .kopf2 {
  display: none;
}
body.aufnahme .stand {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Bühne */
.buehne {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-block: 10px 14px;
  isolation: isolate;
  overflow-x: clip;
}
/* Lichtschein dort, wo die Linse sitzt: ruhig im Stand, atmet, sobald es läuft */
.buehne::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -34%;
  width: min(100%, 70rem);
  height: 70%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 1.2s;
  background: radial-gradient(
    48% 46% at 50% 42%,
    rgba(255, 178, 36, 0.13),
    rgba(255, 120, 60, 0.05) 48%,
    transparent 74%
  );
}
body.live .buehne::before {
  opacity: 1;
  animation: atem 5.5s ease-in-out infinite;
}
@keyframes atem {
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.06);
  }
}
.text {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Die Lesestelle hält die App selbst fest (neuVermessen); der Browser soll beim Umbruch nicht mitschieben. */
  overflow-anchor: none;
  position: relative;
  scrollbar-width: none;
  padding-left: 34px;
}
.text::-webkit-scrollbar {
  display: none;
}
.text p {
  margin: 0 auto 0.9em;
  font-size: var(--gross);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: pre-line;
  max-width: 29em;
  text-wrap: pretty;
}
.text .tipp,
.text .hinweis {
  font: 400 12.5px/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--leise);
  max-width: calc(var(--gross) * 29);
  margin: 0 auto 1.4em;
}
.text.laufend {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--blende, 7%),
    #000 84%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--blende, 7%), #000 84%, transparent 100%);
}
.text.laufend::after {
  content: '';
  display: block;
  height: 70vh;
}
/* Schärfe ziehen wie am Objektiv: nur der aktuelle Absatz ist scharf und hell */
.text.laufend p {
  color: var(--gedimmt);
  transition:
    color 0.6s,
    text-shadow 0.9s;
}
.text.laufend p.aktuell {
  color: var(--text);
  text-shadow: 0 0 34px rgba(255, 236, 200, 0.16);
}
.text.laufend p.aktuell + p {
  color: #8f8c86;
}
.zeile {
  display: block;
  transition:
    color 0.5s,
    text-shadow 0.5s;
}
/* Gelesene Zeilen des aktuellen Absatzes treten zurück: die Zeile an der Lesemarke ist die hellste */
.text.laufend p.aktuell .zeile.gelesen {
  color: #9d9a94;
  text-shadow: none;
}
.text:not(.laufend) p:first-child {
  animation: herein 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.text:not(.laufend) p:first-child {
  text-shadow: 0 0 34px rgba(255, 236, 200, 0.12);
}
@keyframes herein {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.text.laufend p.tipp {
  color: var(--leise);
}
.text .tipp + .tipp {
  margin-top: -1em;
}
/* Lesemarke: hier wird gelesen, möglichst nah an der Linse */
.lesemarke {
  position: absolute;
  left: 8px;
  top: calc(var(--hoehe, 0.16) * 100%);
  width: 22px;
  height: 22px;
  margin-top: calc(var(--gross) * 0.25);
  color: var(--marke);
  opacity: 0.55;
  border-radius: 6px;
  transition:
    opacity 0.5s,
    top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.3s;
  cursor: ns-resize;
  touch-action: none;
}
/* größere Greiffläche und eine feine Leselinie, die beim Verschieben aufleuchtet */
.lesemarke::before {
  content: '';
  position: absolute;
  inset: -12px -8px;
}
.lesemarke::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 50%;
  width: min(82rem, 100vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 178, 36, 0.55), rgba(255, 178, 36, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.lesemarke:hover::after,
.lesemarke:focus-visible::after,
.lesemarke.zieht::after {
  opacity: 1;
}
.lesemarke.zieht {
  transition: opacity 0.5s;
  opacity: 1;
}
.lesemarke:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: 4px;
}
.buehne:not(.laeuft-modus) .lesemarke {
  pointer-events: none;
}
body.live .lesemarke {
  opacity: 1;
}
.lesemarke svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(255, 178, 36, 0.8));
}
body.live .lesemarke {
  animation: wink 1.8s ease-in-out infinite;
}
body.zug-schub .lesemarke {
  animation-duration: 0.45s;
}
body.zug-schub .lesemarke svg {
  filter: drop-shadow(-9px 0 0 rgba(255, 178, 36, 0.5)) drop-shadow(-18px 0 0 rgba(255, 178, 36, 0.22))
    drop-shadow(0 0 8px rgba(255, 178, 36, 0.8));
}
body.zug-brems .lesemarke {
  animation: none;
  transform: scale(0.78);
  opacity: 0.6;
}
body.zug .signal {
  color: var(--marke);
}
@keyframes wink {
  50% {
    transform: translateX(4px);
    opacity: 0.75;
  }
}
.buehne:not(.laeuft-modus) .lesemarke {
  top: 0;
}
.zahl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(3px);
}
.zahl span {
  font: 500 min(34vw, 220px)/1 var(--mono);
  color: var(--marke);
  font-variant-numeric: tabular-nums;
  animation: tick 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  text-shadow: 0 0 60px rgba(255, 178, 36, 0.55);
}
.zahl svg {
  position: absolute;
  width: min(62vw, 400px);
  height: min(62vw, 400px);
  stroke-width: 1.2;
  transform: rotate(-90deg);
  overflow: visible;
}
.zahl svg .bahn {
  stroke: var(--linie);
}
.zahl svg .zeiger {
  stroke: var(--marke);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: kreis 1s linear forwards;
  filter: drop-shadow(0 0 8px rgba(255, 178, 36, 0.8));
}
@keyframes kreis {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes tick {
  0% {
    transform: scale(1.25);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Laufwerk */
.fuss {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  transition: opacity 0.3s;
}
.fuss button {
  min-height: 54px;
  font-size: 16px;
}
.fuss .rund {
  flex: 0 0 54px;
  padding: 0;
}
.fuss .haupt {
  flex: 0 1 17rem;
  background: linear-gradient(180deg, #ffc350, var(--marke) 55%, #f5a511);
  border-color: #ffc350;
  color: var(--auf-marke);
  font-weight: 600;
  font-size: 17px;
  box-shadow:
    0 10px 34px -14px rgba(255, 178, 36, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    filter 0.2s;
}
.fuss .haupt:active:not(:disabled) {
  transform: scale(0.985);
}
.fuss .haupt:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffc350, var(--marke) 55%, #f5a511);
  border-color: #ffd27a;
  filter: brightness(1.06);
  box-shadow:
    0 14px 40px -12px rgba(255, 178, 36, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.fuss .haupt svg {
  fill: currentColor;
  stroke: none;
}
.fuss .luecke {
  flex: 1 1 0;
  min-width: 0;
}
.tempo {
  display: inline-flex;
  align-items: center;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 3px;
  gap: 2px;
}
.tempo button {
  border: 0;
  background: transparent;
  min-height: 46px;
  flex: 0 0 46px;
  padding: 0;
  border-radius: 9px;
}
.tempo output {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.6em;
  font: 500 17px var(--mono);
  font-variant-numeric: tabular-nums;
}
.tempo output small {
  font: 500 9.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leise);
}
.tasten {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font: 400 11.5px var(--mono);
  color: var(--gedimmt);
  letter-spacing: 0.03em;
}
.tasten kbd {
  font: inherit;
  color: var(--leise);
  border: 1px solid var(--linie);
  border-radius: 5px;
  padding: 1px 5px;
}
@media (pointer: coarse), (max-width: 640px) {
  .tasten {
    display: none;
  }
}
body.ruhig .fuss {
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 640px) {
  .wort {
    font-size: 26px;
  }
  .gruppe.rechts {
    margin-left: 0;
  }
  .kopf2 {
    gap: 10px 14px;
  }
  .fuss .haupt {
    flex-basis: 100%;
  }
  .text {
    padding-left: 26px;
  }
  .lesemarke,
  .lesemarke svg {
    width: 18px;
    height: 18px;
  }
  .zaehler {
    display: none;
  }
}

/* Eigener Text */
.bearbeiten {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 18px 14px;
}
.bearbeiten label {
  font: 500 10.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leise);
}
.bearbeiten p {
  margin: 0;
  color: var(--leise);
  font-size: 14px;
}
textarea {
  flex: 1 1 auto;
  min-height: 0;
  font: 400 17px/1.5 var(--lesen);
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 16px;
  resize: none;
}
textarea::placeholder {
  color: var(--gedimmt);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Kopf rechts, Sprachwahl, Anleitung */
.kopf .ecke {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.kopf .ecke button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--leise);
}
.kopf .ecke button:hover:not(:disabled) {
  color: var(--text);
}
#sprache {
  font: 500 12px var(--mono);
  letter-spacing: 0.1em;
}
.hilfe {
  position: fixed;
  inset: 0;
  z-index: 20;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(6px);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.hilfe .blatt {
  width: 100%;
  max-width: 36rem;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow:
    0 30px 80px -20px #000,
    0 0 0 1px rgba(255, 178, 36, 0.06);
  animation: herein 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hilfe h2 {
  font: italic 400 30px/1.1 var(--wort);
  margin: 0 0 4px;
  text-wrap: balance;
}
.hilfe .unter {
  color: var(--leise);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.hilfe ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: s;
}
.hilfe li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  counter-increment: s;
  font-size: 15px;
  line-height: 1.5;
  color: #d9d6d0;
}
.hilfe li::before {
  content: counter(s);
  font: 500 12px var(--mono);
  color: var(--marke);
  border: 1px solid rgba(255, 178, 36, 0.4);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hilfe li b {
  color: var(--text);
  font-weight: 600;
  display: block;
}
.hilfe kbd {
  font: 500 12px var(--mono);
  color: var(--text);
  border: 1px solid var(--linie);
  border-radius: 5px;
  padding: 1px 6px;
  background: var(--flaeche-2);
}
.hilfe .klein {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
  color: var(--leise);
  font-size: 13.5px;
  line-height: 1.5;
}
.hilfe .zu {
  margin-top: 18px;
  width: 100%;
  min-height: 48px;
}

/* Kopf in einer Zeile: Textwahl, Modus, Schrift – rechts Sprache, Anleitung, Vollbild */
.kopf .kopf2 {
  margin: 0;
  align-items: center;
  gap: 10px;
}
.seg .a-klein {
  font-size: 13px;
  font-weight: 600;
  min-width: 38px;
}
.seg .a-gross {
  font-size: 19px;
  font-weight: 600;
  min-width: 38px;
}
output.neu {
  animation: rolle 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wahl {
  position: relative;
  min-width: 0;
}
#wahl-auf {
  max-width: 100%;
  min-height: 42px;
  padding: 0 12px 0 14px;
  font-weight: 600;
}
#wahl-auf #wahl-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}
#wahl-auf [data-icon] {
  display: inline-flex;
}
#wahl-auf .blatt-zeichen {
  color: var(--marke);
}
#wahl-auf .winkel {
  color: var(--leise);
  transition: transform 0.25s;
}
#wahl-auf[aria-expanded='true'] .winkel {
  transform: rotate(180deg);
}
.liste {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  left: 0;
  width: min(23rem, calc(100vw - 32px));
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 24px 60px -18px #000,
    0 0 0 1px rgba(255, 178, 36, 0.05);
  animation: herein 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.liste ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(52vh, 24rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.liste li {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-radius: 11px;
}
.liste li:hover,
.liste li:focus-within {
  background: var(--flaeche-2);
}
.liste button {
  border: 0;
  background: transparent;
}
.liste button:hover:not(:disabled) {
  background: transparent;
}
.liste .eintrag {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 10px;
  justify-content: start;
  text-align: left;
  padding: 9px 6px 9px 10px;
  min-height: 52px;
  white-space: normal;
}
.liste .eintrag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  background: transparent;
  grid-row: 1/3;
}
.liste li[aria-current='true'] .eintrag i {
  background: var(--marke);
  box-shadow: 0 0 10px var(--marke);
}
.liste .eintrag b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.liste .eintrag small {
  font: 400 11.5px var(--mono);
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
.liste .stift {
  flex: 0 0 44px;
  padding: 0;
  color: var(--leise);
}
.liste .stift:hover:not(:disabled) {
  color: var(--text);
}
.liste #neu,
.liste #datei {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  min-height: 46px;
  border-radius: 11px;
}
.liste #neu {
  margin-top: 6px;
  color: var(--marke);
  position: relative;
}
.liste #neu::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: -4px;
  border-top: 1px solid var(--linie);
}
.liste #datei {
  color: var(--leise);
}
.liste #neu:hover:not(:disabled),
.liste #datei:hover:not(:disabled) {
  background: var(--flaeche-2);
  color: var(--text);
}
/* Bearbeiten */
.bearbeiten input {
  font: 600 20px var(--lesen);
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.bearbeiten input:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: 2px;
}
.bearbeiten input::placeholder {
  color: var(--gedimmt);
  font-weight: 400;
}
.bearbeiten .mass {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.bearbeiten .mass #mass {
  font: 500 12px var(--mono);
  color: var(--marke);
  font-variant-numeric: tabular-nums;
}
.fuss .heikel {
  color: var(--leise);
}
.fuss .heikel:hover:not(:disabled) {
  color: var(--signal);
  border-color: rgba(255, 77, 61, 0.5);
}
.fuss .heikel[data-sicher] {
  color: var(--signal);
  border-color: var(--signal);
}
/* Anleitung noch nicht geöffnet: kleiner Leuchtpunkt */
#hilfe-auf {
  position: relative;
}
#hilfe-auf.neu::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marke);
  box-shadow: 0 0 0 0 rgba(255, 178, 36, 0.6);
  animation: ruf 2s ease-out infinite;
}
@keyframes ruf {
  to {
    box-shadow: 0 0 0 9px rgba(255, 178, 36, 0);
  }
}
@media (max-width: 760px) {
  .kopf {
    gap: 10px 12px;
  }
  .kopf .ecke {
    margin-left: auto;
  }
  .kopf .ecke button span {
    display: none;
  }
  .kopf .ecke button {
    padding: 0;
    min-width: 42px;
  }
  .wahl {
    flex: 1 1 9rem;
  }
  #wahl-auf {
    width: 100%;
    justify-content: flex-start;
  }
  #wahl-auf .winkel {
    margin-left: auto;
  }
  .kopf .kopf2 {
    flex: 1 1 100%;
    order: 3;
    justify-content: space-between;
  }
}
.hilfe .von {
  margin: 16px 0 0;
  text-align: center;
  font: 400 12px var(--mono);
  color: var(--leise);
  letter-spacing: 0.03em;
}
.hilfe .von a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--marke);
  padding-bottom: 1px;
}
.hilfe .von a:hover {
  color: var(--marke);
}

body.mitte .text p {
  text-align: center;
}
@media (pointer: coarse) {
  .seg button {
    min-height: 44px;
  }
}
/* Handy: sobald der Text läuft, gehört der Bildschirm dem Text */
@media (max-width: 760px) {
  .kopf .wort {
    order: 1;
  }
  .kopf .ecke {
    order: 2;
  }
  .kopf .wahl {
    order: 3;
    flex: 1 1 100%;
  }
  .kopf .kopf2 {
    order: 4;
    gap: 8px;
  }
  .kopf .kopf2 .seg:first-child {
    flex: 1 1 auto;
  }
  .kopf .kopf2 .seg:first-child button {
    flex: 1 1 0;
  }
  body.modus-lauf[data-art='live'] .kopf,
  body.modus-lauf[data-art='gleich'] .kopf {
    display: none;
  }
  body.modus-lauf[data-art='live'] .stand,
  body.modus-lauf[data-art='gleich'] .stand {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .stand {
    gap: 12px;
  }
  .uhrwerk small {
    display: none;
  }
  .tc {
    font-size: 20px;
  }
  .fuss button {
    min-height: 56px;
  }
  .fuss .rund {
    flex-basis: 56px;
  }
  .tempo {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .tempo button {
    flex-basis: 52px;
    min-height: 48px;
  }
  .fuss .luecke {
    display: none;
  }
  .liste {
    width: calc(100vw - 32px);
  }
  .hilfe .blatt {
    padding: 22px 20px 18px;
  }
}

.nur-schmal {
  display: none !important;
}
.gesten {
  display: none;
  flex: 1 1 100%;
  order: -1;
  margin: 0 0 2px;
  font: 400 11.5px/1.5 var(--mono);
  color: var(--leise);
  letter-spacing: 0.02em;
  text-align: center;
}
@media (pointer: coarse) {
  .gesten {
    display: block;
  }
}
@media (max-width: 760px) {
  .nur-breit {
    display: none !important;
  }
  .nur-schmal {
    display: inline-flex !important;
  }
  .kopf .ecke {
    gap: 6px;
  }
  .kopf .ecke button {
    min-width: 40px;
    min-height: 40px;
  }
  .seg .a-klein,
  .seg .a-gross {
    min-width: 36px;
  }
  .seg output {
    min-width: 2.2em;
  }
}

/* Dauer bei diesem Tempo; ein Klick nimmt eine Wunschdauer entgegen */
.tempo #dauer {
  flex: 0 0 auto;
  min-width: 4.6em;
  padding: 0 12px;
  flex-direction: column;
  gap: 0;
  font: 500 17px var(--mono);
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--linie);
  border-radius: 0 9px 9px 0;
}
.tempo #dauer small {
  font: 500 9.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leise);
}
.tempo #dauer:hover:not(:disabled) {
  background: var(--flaeche-2);
}
.tempo input {
  width: 4.8em;
  min-height: 46px;
  margin-left: 2px;
  text-align: center;
  font: 500 17px var(--mono);
  color: var(--text);
  background: var(--flaeche-2);
  border: 1px solid var(--marke);
  border-radius: 9px;
  padding: 0 6px;
}
.tempo input:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: 2px;
}
/* Die Zeit wird knapp: Bernstein und ruhiger Puls. Überzogen: Rot. */
.uhrwerk[data-knapp] .tc {
  color: var(--marke);
  animation: knapp 1s ease-in-out infinite;
}
.uhrwerk[data-knapp] .zeiger {
  animation: knapp 1s ease-in-out infinite;
}
.uhrwerk[data-ueber] .tc {
  color: var(--signal);
}
@keyframes knapp {
  50% {
    opacity: 0.55;
  }
}
@media (max-width: 760px) {
  .tempo #dauer {
    min-width: 3.9em;
    padding: 0 6px;
  }
  /* Das Eingabefeld ist nie breiter als die Anzeige, die es ersetzt – sonst bricht die Zeile um. */
  .tempo input {
    width: 4.1em;
    margin-left: 0;
    padding: 0 2px;
  }
  .tempo output {
    min-width: 3.2em;
  }
}

/* Textdatei hineinziehen */
.ablage {
  position: fixed;
  inset: 0;
  z-index: 30;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(5px);
  pointer-events: none;
}
.ablage p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 56px;
  border: 1.5px dashed var(--marke);
  border-radius: 22px;
  color: var(--text);
  font: italic 400 30px/1.2 var(--wort);
  text-align: center;
  box-shadow: 0 0 80px -20px rgba(255, 178, 36, 0.5);
}
.ablage svg {
  width: 34px;
  height: 34px;
  color: var(--marke);
}

/* Schiene der Lesemarke: eine feine Skala wie am Schärfering eines Objektivs. Sie zeigt, dass sich der Pfeil verschieben lässt. */
.buehne.laeuft-modus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 4%;
  height: 56%;
  width: 8px;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.4s;
  margin-top: calc(var(--gross) * 0.25 + 11px);
  background:
    repeating-linear-gradient(to bottom, #55534f 0 1px, transparent 1px 40px) left top/8px 100% no-repeat,
    repeating-linear-gradient(to bottom, #3a3a3d 0 1px, transparent 1px 8px) left top/4px 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.buehne.laeuft-modus:has(.lesemarke:hover)::after,
.buehne.laeuft-modus:has(.lesemarke.zieht)::after,
.buehne.laeuft-modus:has(.lesemarke:focus-visible)::after {
  opacity: 1;
}
body.live .buehne.laeuft-modus::after {
  opacity: 0.35;
}
@media (max-width: 760px) {
  .lesemarke {
    left: 6px;
  }
  .buehne.laeuft-modus::after {
    width: 6px;
    background-size:
      6px 100%,
      3px 100%;
  }
  .fuss #stoppuhr {
    flex: 1 1 auto;
  }
}

/* Countdown an oder aus */
.fuss .cd {
  flex: 0 0 auto;
  padding: 0 13px;
  font: 500 13px var(--mono);
  letter-spacing: 0.08em;
  color: var(--marke);
}
.fuss .cd[aria-pressed='false'] {
  color: var(--gedimmt);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.bearbeiten {
  max-width: 54rem;
}
#fuss-bearbeiten {
  max-width: 54rem;
}
@media (max-width: 760px) {
  /* Rücksprung, Countdown und Tempo passen ab 375 Pixel Breite in eine Zeile. */
  .fuss .cd {
    padding: 0 8px;
    min-width: 52px;
  }
  .fuss .rund {
    flex-basis: 46px;
  }
  .tempo button {
    flex-basis: 44px;
  }
}

/* Schriftgröße direkt eintippen */
.seg input {
  width: 3.1em;
  min-height: 34px;
  text-align: center;
  font: 500 13px var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0;
}
.seg input:hover {
  background: var(--flaeche-2);
}
.seg input:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: -2px;
  background: var(--flaeche-2);
}
.seg input.neu {
  animation: rolle 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (pointer: coarse) {
  .seg input {
    font-size: 16px;
    min-height: 44px;
    width: 2.9em;
  }
}

/* Alles löschen, was diese Seite auf dem Gerät gespeichert hat */
.hilfe .leeren {
  margin-top: 10px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--leise);
  background: transparent;
  border-color: var(--linie);
}
.hilfe .leeren:hover:not(:disabled) {
  color: var(--signal);
  border-color: rgba(255, 77, 61, 0.5);
  background: transparent;
}
.hilfe .leeren[data-sicher] {
  color: var(--signal);
  border-color: var(--signal);
}

/* Rechtliches: klein, aber immer mit einem Klick erreichbar */
.recht {
  margin: 10px 0 0;
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font: 400 11.5px var(--mono);
  letter-spacing: 0.03em;
  color: var(--gedimmt);
}
.recht a {
  color: var(--leise);
  text-decoration: none;
  padding: 4px 0;
}
.recht a:hover,
.recht a:focus-visible {
  color: var(--marke);
}
body.aufnahme .recht {
  display: none;
}
@media (max-width: 760px) {
  .recht {
    justify-content: center;
    margin-top: 8px;
  }
  body.modus-lauf[data-art='live'] .recht,
  body.modus-lauf[data-art='gleich'] .recht {
    display: none;
  }
}

/* Wo die Texte bleiben: dort gesagt, wo man sie anlegt */
.liste .lokal {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 6px 0 0;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--linie);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--leise);
}
.liste .lokal [data-icon] {
  display: inline-flex;
  color: var(--marke);
  margin-top: 1px;
}
.liste .lokal svg {
  width: 15px;
  height: 15px;
}
.ohne-js {
  padding: 24px;
  color: #f6f4ef;
}

/* Reihenfolge der eigenen Texte */
.liste .ordnung {
  display: flex;
  gap: 2px;
  margin: 2px 2px 6px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--linie);
  border-radius: 10px;
}
.liste .ordnung button {
  flex: 1 1 0;
  min-height: 34px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--leise);
}
.liste .ordnung button[aria-pressed='true'] {
  background: var(--flaeche-2);
  color: var(--text);
}
/* In der Liste liegt der Fokusrahmen innen, damit ihn die runde Ecke nicht abschneidet. */
.liste button:focus-visible {
  outline-offset: -2px;
}
@media (pointer: coarse) {
  .liste .ordnung button {
    min-height: 40px;
  }
}

/* Kamera: das eigene Bild liegt abgedunkelt hinter dem Text, eine kleine Leiste zeigt die Aufnahme */
.spiegel {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #000;
  opacity: 0;
  filter: brightness(0.5) saturate(0.9);
  transition: opacity 0.6s;
  pointer-events: none;
}
.spiegel.gespiegelt {
  transform: scaleX(-1);
}
body.kamera .spiegel {
  opacity: 1;
}
body.kamera .buehne::before {
  display: none;
}
/* Über dem Bild braucht der Text einen dunklen Hof, damit er vor hellen Stellen lesbar bleibt. */
body.kamera .text p {
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(0, 0, 0, 0.8);
}
/* Eingebettet ohne Kamera-Erlaubnis: sichtbar, aber erkennbar nicht verfügbar */
.kopf .ecke #kamera[aria-disabled='true'] {
  opacity: 0.38;
}
.kopf .ecke #kamera[aria-disabled='true']:hover {
  color: var(--leise);
  background: var(--flaeche);
  border-color: var(--linie);
}
.kopf .ecke #kamera[aria-pressed='true'] {
  color: var(--marke);
  border-color: rgba(255, 178, 36, 0.5);
}
.rec {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%) translateZ(0);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 5px 5px 14px;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text);
  background: rgba(14, 14, 15, 0.84);
  border: 1px solid var(--linie);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.rec[data-art='bereit'] {
  padding-right: 14px;
  color: var(--leise);
}
.rec i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gedimmt);
}
.rec[data-art='laeuft'] i {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 77, 61, 0.18);
  animation: knapp 1.2s ease-in-out infinite;
}
.rec[data-art='pause'] i {
  background: var(--marke);
}
.rec-zeit {
  font-variant-numeric: tabular-nums;
}
.rec button {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--flaeche-2);
}
@media (pointer: coarse) {
  .rec button {
    min-height: 44px;
  }
}
.kamera-hinweis {
  /* Unten über der Bedienleiste, damit die Zeile an der Lesemarke frei bleibt; deckend und in eigener Ebene,
     damit Text und Lesemarke nicht hindurchscheinen (Safari zeichnet maskierte Flächen sonst darüber). */
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  max-width: 34rem;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 6px 12px 14px;
  color: var(--text);
  background: #1b1311;
  border: 1px solid rgba(255, 77, 61, 0.45);
  border-radius: 14px;
  box-shadow: 0 18px 44px -14px #000;
  transform: translateZ(0);
  animation: herein 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kamera-hinweis p {
  flex: 1 1 auto;
  margin: 1px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
}
.kh-zeichen svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--signal);
}
.kamera-hinweis button {
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 36px;
  margin: -6px 0 -6px 0;
  padding: 0;
  color: var(--leise);
  background: transparent;
  border: 0;
}
.kamera-hinweis button:hover:not(:disabled) {
  color: var(--text);
  background: transparent;
}
@media (pointer: coarse) {
  .kamera-hinweis button {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Fertige Aufnahme: ansehen, sichern oder schließen */
.aufnahme video {
  display: block;
  width: 100%;
  max-height: 52vh;
  margin-top: 14px;
  border-radius: 12px;
  background: #000;
}
#aufnahme-mass {
  margin: 10px 0 0;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.06em;
  color: var(--leise);
}
.aufnahme .knoepfe {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.aufnahme .knoepfe button {
  flex: 1 1 0;
  min-height: 48px;
  margin-top: 0;
  width: auto;
  white-space: normal;
}
.aufnahme #aufnahme-zu[data-sicher] {
  color: var(--signal);
  border-color: var(--signal);
}
.aufnahme #aufnahme-sichern {
  background: linear-gradient(180deg, #ffc350, var(--marke) 55%, #f5a511);
  border-color: #ffc350;
  color: var(--auf-marke);
  font-weight: 600;
}

/* Mini-Fenster: im Hauptfenster ein Platzhalter, solange der Text woanders schwebt */
body.mini-offen > :not(.mini-platz) {
  display: none !important;
}
.mini-platz {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.mini-platz .mini-bild svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.2;
  color: var(--marke);
  filter: drop-shadow(0 0 18px rgba(255, 178, 36, 0.5));
}
.mini-platz .mini-titel {
  margin: 0;
  max-width: 30rem;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.mini-platz .mini-unter {
  margin: 0;
  max-width: 30rem;
  color: var(--leise);
}
.mini-platz .haupt {
  min-height: 52px;
  padding: 0 26px;
  margin-top: 6px;
  font-weight: 600;
  color: var(--auf-marke);
  background: linear-gradient(180deg, #ffc350, var(--marke) 55%, #f5a511);
  border-color: #ffc350;
}

/* Im Mini-Fenster selbst: nur Text und das Nötigste zum Bedienen */
.mini-groesse {
  display: none;
}
html[data-fenster='mini'] .mini-groesse {
  display: inline-flex;
}
html[data-fenster='mini'] body {
  padding: 8px 10px;
}
html[data-fenster='mini'] body > * {
  max-width: none;
}
html[data-fenster='mini'] .kopf,
html[data-fenster='mini'] .recht,
html[data-fenster='mini'] .tasten,
html[data-fenster='mini'] .gesten,
html[data-fenster='mini'] [data-menue],
html[data-fenster='mini'] .mini-platz {
  display: none !important;
}
html[data-fenster='mini'] .stand {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
html[data-fenster='mini'] .buehne {
  margin-block: 4px 6px;
}
html[data-fenster='mini'] .fuss {
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
}
html[data-fenster='mini'] .fuss button {
  min-height: 40px;
}
html[data-fenster='mini'] .fuss .haupt {
  flex: 1 1 auto;
  font-size: 15px;
}
html[data-fenster='mini'] .zahl span {
  font-size: clamp(36px, 46vh, 160px);
}
html[data-fenster='mini'] .zahl svg {
  width: clamp(56px, 70vh, 300px);
  height: clamp(56px, 70vh, 300px);
}
/* Schmaler Streifen: nur Text, Start und der Knopf für die große Ansicht */
html[data-fenster='mini'][data-groesse='klein'] .stand,
html[data-fenster='mini'][data-groesse='klein'] .fuss .tempo,
html[data-fenster='mini'][data-groesse='klein'] .fuss .cd,
html[data-fenster='mini'][data-groesse='klein'] #anfang,
html[data-fenster='mini'][data-groesse='klein'] #stoppuhr,
html[data-fenster='mini'][data-groesse='klein'] .fuss .luecke {
  display: none !important;
}
html[data-fenster='mini'][data-groesse='klein'] .mini-groesse span {
  display: none;
}
html[data-fenster='mini'][data-groesse='klein'] .mini-groesse {
  min-width: 44px;
  padding: 0;
}
