/* ==================================================================
   Stage — Stylesheet
   App-Ansicht: weiße Seitenleiste, graue Bühne, darauf Werkzeugleisten,
   Screen und Panel als weiße Flächen mit leichtem Schatten. Leicht und
   fein: Haarlinien 1 px in Grau, kein Balken, Radius 0. Schwarz, Violett
   tief als einzige Auszeichnung (Toplines, Links, aktive Punkte), Violett
   für die Marker der Erläuterung. Source Sans 3, Signatur-Satz im Titel
   (Black 900 + ExtraLight 200). Raster 8/16/24/40.
================================================================== */

@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 200; src: url('../fonts/source-sans-3-v19-latin-200.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; src: url('../fonts/source-sans-3-v19-latin-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 900; src: url('../fonts/source-sans-3-v19-latin-900.woff2') format('woff2'); }

:root {
  --font-sans: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ink: #000000;
  --paper: #ffffff;
  --paper-subtle: #fafafa;
  --muted: #696969;
  --line: #e2e2e2;
  --line-strong: #bdbdbd;
  --accent: #2e0bc5;          /* Toplines, Links, aktive Punkte */
  --accent-strong: #6342f4;   /* Marker der Erläuterung, wie im Screen */
  --signal: #d1f43a;          /* Punkte der Anmerkungen im Screen */
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --stage-bg: #f2f2f2;        /* die Bühne: alles außer der Seitenleiste steht auf Grau */
  --chrome: #f9f9f9;          /* Werkzeugleisten: ganz leichtes Grau, heller als die Bühne, nicht Weiß wie der Inhalt */
  --chrome-line: #e6e6e6;
  --badge: #ededed;           /* kleine Marken: Status, Version */
  --ctl-shadow: 0 1px 1px rgba(0, 0, 0, .06);
  --radius: 3px;              /* Flächen von Stage: Leisten, Panel, Karten — der Screen bleibt eckig */
  --radius-ctl: 2px;

  --nav-width: 272px;
  --panel-width: 360px;
  --mobile-bar-height: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--stage-bg);
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Typografische Rollen ---------------------------------- */
.stage-topline {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.stage-title { font-size: 32px; line-height: 40px; font-weight: 900; letter-spacing: .005em; margin-top: 8px; }
.stage-title__sub { font-weight: 200; }
.stage-title--large { font-size: 40px; line-height: 48px; }
@media (max-width: 767px) {
  .stage-title { font-size: 26px; line-height: 32px; }
  .stage-title--large { font-size: 30px; line-height: 36px; }
}
/* Die Kopfzeile einer Ansicht: Bereich, Titel, Untertitel und Status in einer
   Zeile, alles in der Größe der Topline. Der Bereich ist schwarz, der Titel
   violett (--accent), der Untertitel grau, der Status ein Badge dahinter. */
.stage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0; min-height: 16px; }
.stage-head .stage-topline { color: var(--ink); }
.stage-head .stage-topline::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 10px; vertical-align: -1px; background: var(--line-strong); }
.stage-head__title { color: var(--accent); }
.stage-head__title .stage-title__sub { font-weight: 400; color: var(--muted); }
@media (max-width: 767px) { .stage-head .stage-topline::after { display: none; } }

/* ---------- Bedienelemente ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 24px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--small { min-height: 32px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.stage-link-button { padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.stage-field { display: block; margin-bottom: 16px; }
.stage-field__label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stage-field__input {
  display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper);
}
.stage-field__input:focus { border-color: var(--ink); outline: none; }
.stage-field__textarea { resize: vertical; min-height: 96px; }
.stage-field__input--masked { -webkit-text-security: disc; }
.stage-form__error { color: var(--accent); font-size: 14px; margin-bottom: 16px; }

/* ---------- Wortmarke (Kopf der Seitenleiste), Copyright --------------- */
.stage-wordmark { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none; font-size: 20px; line-height: 24px; letter-spacing: .01em; white-space: nowrap; }
.stage-wordmark:hover { color: var(--ink); text-decoration: none; }
.stage-wordmark__mark { display: block; }
.stage-wordmark__black { font-weight: 900; }
.stage-wordmark__light { font-weight: 200; }
/* Das Pixel-Herz: 11 × 9 Einheiten, Höhe einer Versalie, in der Schriftfarbe */
.stage-wordmark__heart { display: inline-block; width: auto; height: 14px; vertical-align: -1px; }
.stage-wordmark__mark.is-typing::after { content: ""; display: inline-block; vertical-align: -2px; width: 2px; height: 20px; margin-left: 2px; background: currentColor; }
.stage-copyright { font-size: 12px; line-height: 18px; color: var(--muted); }
.stage-copyright a { color: var(--muted); text-decoration: none; }
.stage-copyright a:hover { color: var(--accent); }

/* ---------- Zustände: Laden, Anmeldung ----------------------------- */
.stage { min-height: 100vh; }
.stage-state { padding: 64px 40px; }
.stage[data-state="ready"] .stage-state, .stage[data-state="locked"] .stage-state { display: none; }
.stage-state__text { font-weight: 200; font-size: 22px; line-height: 32px; }
/* Anmeldung: eine weiße Karte in der Mitte der grauen Bühne */
.stage-login { width: min(100% - 40px, 400px); margin: 0 auto; padding: 32px 32px 24px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.stage[data-state="locked"] { display: grid; place-items: center; padding: 40px 0; }
.stage-login .stage-title { margin-top: 0; margin-bottom: 32px; }
.stage-login__copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Raster der Anwendung ---------------------------------- */
.stage-app { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); min-height: inherit; }
.stage-nav {
  position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh;
  border-right: 1px solid var(--line); background: var(--paper); font-size: 15px; line-height: 22px;
}
.stage-nav__head { flex: none; padding: 20px 24px 16px 32px; border-bottom: 1px solid var(--line); }
/* Die Wortmarke in der Größe der Kopfzeile einer Ansicht (12/16), Herz und Cursor passend kleiner */
.stage-nav__head .stage-wordmark { display: block; margin-bottom: 24px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .02em; white-space: normal; min-height: 0; }
.stage-nav__head .stage-wordmark__heart { height: 9px; vertical-align: 0; }
.stage-nav__head .stage-wordmark__mark.is-typing::after { height: 12px; vertical-align: -1px; width: 1.5px; }
.stage-nav__version { display: block; }
.stage-nav__foot { flex: none; padding: 16px 24px 20px 32px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.stage-nav__user { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); margin-bottom: 4px; }
.stage-nav__user:empty { display: none; }
.stage-nav__user .stage-link-button { font-size: 13px; color: var(--muted); }
.stage-nav__user .stage-link-button:hover { color: var(--accent); }
.stage-version-select { width: 100%; border-radius: var(--radius-ctl); height: 28px; padding: 0 28px 0 10px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 11px, calc(100% - 10px) 11px; background-size: 5px 5px; background-repeat: no-repeat; }
.stage-nav__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 0 24px; }
.stage-nav__section { padding: 16px 24px 0 32px; }
.stage-nav__section .stage-topline { color: var(--muted); margin-bottom: 4px; }
.stage-nav__item { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; }
.stage-nav__item:hover { color: var(--accent); }
.stage-nav__item.is-active { color: var(--accent); font-weight: 600; }
.stage-mobile-bar { display: none; }

/* Oben 20 px wie der Kopf der Seitenleiste: Wortmarke und Kopfzeile stehen auf einer Linie. */
.stage-main { padding: 20px 40px 64px; min-width: 0; }

/* Schmal: oben eine weiße Leiste mit Projektname und Knopf, die Seitenleiste
   fährt von links ein. */
@media (max-width: 1023px) {
  .stage-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .stage-mobile-bar {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: var(--mobile-bar-height); padding: 0 8px 0 20px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .stage-mobile-bar__title { font-size: 16px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stage-nav { position: fixed; inset: 0; z-index: 20; height: 100vh; width: min(100%, 320px); transform: translateX(-100%); transition: transform 120ms ease-out; box-shadow: var(--shadow); }
  .stage-nav.is-open { transform: none; }
  .stage-nav-toggle { position: relative; z-index: 30; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
  .stage-nav-toggle__line { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform 120ms ease-out, opacity 120ms ease-out; }
  .stage-nav-toggle[aria-expanded="true"] { position: fixed; top: 4px; right: 8px; }
  .stage-nav-toggle[aria-expanded="true"] .stage-nav-toggle__line:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .stage-nav-toggle[aria-expanded="true"] .stage-nav-toggle__line:nth-child(3) { opacity: 0; }
  .stage-nav-toggle[aria-expanded="true"] .stage-nav-toggle__line:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .stage-main { padding: 20px 20px 64px; }
}

/* ---------- Projektstart ------------------------------------------ */
.stage-intro__text { max-width: 64ch; font-size: 22px; line-height: 32px; font-weight: 300; margin-top: 20px; }
/* Neu in dieser Version: weiße Fläche auf der Bühne */
.stage-news { margin-top: 40px; padding: 20px 24px 24px; background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 72ch; }
.stage-news__title { font-size: 20px; line-height: 28px; font-weight: 700; margin-top: 4px; }
.stage-news__text { margin-top: 12px; }
.stage-news__screens { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.stage-news__screens li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stage-news__section { font-size: 12px; line-height: 24px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage-news__empty { color: var(--muted); margin-top: 12px; }
.stage-screen__version { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.stage-comment__version { display: inline-block; padding: 0 6px; border-radius: 2px; background: var(--badge); font-size: 10px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: 1px; }
.stage-comment__jump { height: 22px; padding: 0 8px; font-size: 12px; line-height: 20px; vertical-align: 2px; }
.stage-intro__sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 40px; margin-top: 48px; }
.stage-intro__section-title { font-weight: 700; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.stage-intro__link { display: block; padding: 3px 0; color: var(--ink); text-decoration: none; }
.stage-intro__link:hover { color: var(--accent); }

/* ---------- Screen ------------------------------------------------- */
.stage-screen__head { margin-bottom: 16px; }
/* Status als dezentes Badge hinter dem Titel: hellgraue Fläche, kleine Versalien */
.stage-screen__status {
  display: inline-block; padding: 0 7px; border-radius: 2px; background: var(--badge);
  font-size: 10px; line-height: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.stage-screen__body { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) var(--panel-width); align-items: start; }
.stage-page { max-width: 68ch; }
@media (max-width: 1279px) {
  .stage-screen__body { grid-template-columns: minmax(0, 1fr); }
  .stage-panel { max-height: 60vh; position: static; }
}

/* ------------------------------------------------------------------
   Steuerelemente. Alles, womit man Stage bedient, steht auf einer
   weißen Leiste (.stage-chrome), die über der grauen Bühne schwebt, und
   sieht aus wie ein Knopf: 28 px hoch, 1-px-Rand, leichter Schatten;
   gedrückt = Schwarz. Der Screen selbst steht ohne Leiste auf der Bühne.
------------------------------------------------------------------ */
.stage-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 7px 10px; background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stage-chrome__group { display: inline-flex; align-items: center; gap: 8px; }
.stage-chrome__label { font-size: 12px; line-height: 16px; color: var(--muted); margin-right: 2px; }

.ctl {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: var(--chrome); box-shadow: var(--ctl-shadow);
  color: var(--ink); font-size: 13px; line-height: 26px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none;
  cursor: pointer; white-space: nowrap; user-select: none;
}
.ctl:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.ctl.is-active, .ctl[aria-pressed="true"], .ctl[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.ctl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segment: mehrere Knöpfe, ein Rahmen — genau einer ist gedrückt */
.ctl-segment { display: inline-flex; box-shadow: var(--ctl-shadow); }
.ctl-segment > .ctl { box-shadow: none; border-radius: 0; }
.ctl-segment > .ctl:first-child { border-radius: var(--radius-ctl) 0 0 var(--radius-ctl); }
.ctl-segment > .ctl:last-child { border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0; }
.ctl-segment > .ctl + .ctl { margin-left: -1px; }
.ctl-segment > .ctl.is-active, .ctl-segment > .ctl[aria-selected="true"] { position: relative; z-index: 1; }

/* Schalter: Spur mit rundem Knopf — aus: grau, Knopf links; an: violett, Knopf rechts */
.ctl-switch { position: relative; padding-left: 38px; }
.ctl-switch::before {
  content: ""; position: absolute; left: 9px; top: 50%; width: 22px; height: 12px; margin-top: -6px; border-radius: 6px;
  background: var(--line-strong); transition: background 120ms ease-out;
}
.ctl-switch::after {
  content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 4px;
  background: var(--paper); transition: transform 120ms ease-out;
}
.ctl-switch[aria-pressed="true"] { background: var(--chrome); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--ctl-shadow); }
.ctl-switch[aria-pressed="true"]::before { background: var(--accent-strong); }
.ctl-switch[aria-pressed="true"]::after { transform: translateX(10px); }

/* Einfahren: Knopf mit Pfeil nach rechts */
.ctl-collapse { width: 28px; padding: 0; justify-content: center; }
.ctl-collapse::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, 1px); }

/* Aufklappen: Knopf mit Pfeil */
.ctl-expand::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.ctl-expand[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

/* ---------- Der Frame: Leiste darüber, Inhalt darunter --------------- */
/* Die Leiste schwebt über dem Screen: Abstand und eigener Schatten, nicht angeklebt. */
.stage-frame { min-width: 0; }
.stage-frame__bar { margin-bottom: 12px; }
.stage-frame__stage { position: relative; min-height: 200px; }
.stage-frame__iframe { display: block; width: 1280px; height: 600px; border: 0; background: #fff; box-shadow: var(--shadow); transform-origin: 0 0; }
.stage-frame__stage.is-centered .stage-frame__iframe { margin: 0 auto; }
/* Punkt setzen: Fläche über dem Frame, Fadenkreuz, Hinweis oben */
.stage-frame__overlay { position: absolute; inset: 0; z-index: 5; cursor: crosshair; background: rgba(209, 244, 58, .08); }
.stage-frame__overlay-hint { position: sticky; top: 0; display: block; margin: 8px auto 0; width: max-content; max-width: calc(100% - 16px); padding: 4px 12px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 20px; pointer-events: none; }
.stage-pin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 0; border-radius: 11px; background: var(--signal, #d1f43a); color: var(--ink); font-size: 11px; line-height: 20px; font-weight: 700; vertical-align: 2px; }
.stage-comment__pin { cursor: pointer; margin-right: 6px; }
.stage-comment__pin:hover { background: var(--ink); color: var(--signal); }
.stage-comment-form__pin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
.stage-comment__edit-pin { font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 8px; }
.ctl-pin::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--signal, #d1f43a); }
.ctl-pin[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Das Panel: zwei Tabs auf einer Leiste, die wie die Frame-Leiste über dem
   Inhalt schwebt. Es bleibt beim Scrollen stehen und ist höchstens so hoch wie
   das Fenster (20 px Luft oben und unten), unabhängig von der Höhe des Screens;
   innen scrollt es. */
.stage-panel {
  position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  max-height: calc(100vh - 40px);
}
.stage-panel__tabs { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 10px; background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Seitenleiste eingefahren: nur die Leiste mit dem Knopf bleibt (48 px), der
   Screen nimmt den Rest; der Pfeil zeigt dann nach links. */
.stage-screen.is-panel-collapsed .stage-screen__body { grid-template-columns: minmax(0, 1fr) 48px; }
.stage-screen.is-panel-collapsed .stage-panel__tabs { justify-content: center; }
.stage-screen.is-panel-collapsed .stage-panel__tabs > .ctl-segment, .stage-screen.is-panel-collapsed .stage-panel__body { display: none; }
.ctl-collapse[aria-expanded="false"]::after { transform: rotate(-135deg) translate(-1px, 1px); }
@media (max-width: 1279px) {
  .stage-screen.is-panel-collapsed .stage-screen__body { grid-template-columns: minmax(0, 1fr); }
  .stage-screen.is-panel-collapsed .stage-panel { width: 48px; }
}
.stage-panel__tab { flex: 0 0 auto; }
.stage-panel__count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.stage-panel__tab[aria-selected="true"] .stage-panel__count { background: var(--paper); color: var(--ink); }
.stage-panel__body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; font-size: 15px; line-height: 22px; background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stage-panel__empty { color: var(--muted); }
.stage-panel__more { margin-top: 16px; }

/* Erläuterung */
.stage-prose { max-width: 68ch; }
.stage-prose > * + * { margin-top: 12px; }
.stage-prose h2 { font-size: 17px; line-height: 24px; font-weight: 700; margin-top: 24px; }
.stage-prose h3, .stage-prose h4 { font-size: 15px; line-height: 22px; font-weight: 700; margin-top: 20px; }
.stage-prose h2:first-child, .stage-prose h3:first-child { margin-top: 0; }
.stage-prose ul { padding-left: 20px; }
.stage-prose li + li { margin-top: 4px; }
.stage-prose ol { list-style: none; padding: 0; counter-reset: marker; }
.stage-prose ol > li { position: relative; padding-left: 30px; counter-increment: marker; }
.stage-prose ol > li + li { margin-top: 8px; }
#stageNotesFull ol > li { cursor: pointer; }
#stageNotesFull ol > li:hover::before { background: var(--accent); }
.stage-prose ol > li.is-hit { background: #f3f0ff; box-shadow: 0 0 0 6px #f3f0ff; }
.stage-prose ol > li::before {
  content: counter(marker); position: absolute; left: 0; top: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent-strong); color: #fff; font-size: 11px; line-height: 20px; font-weight: 700; text-align: center;
}
.stage-prose strong { font-weight: 700; }
.stage-prose code { font-family: var(--font-mono); font-size: .9em; background: #f3f3f3; padding: 0 4px; }
.stage-prose pre { padding: 12px; border: 1px solid var(--line); overflow-x: auto; font-size: 13px; line-height: 20px; }
.stage-prose pre code { background: none; padding: 0; font-size: inherit; }
.stage-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.stage-prose th, .stage-prose td { text-align: left; vertical-align: top; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.stage-prose th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage-prose blockquote { padding-left: 16px; border-left: 1px solid var(--line-strong); color: var(--muted); }
.stage-prose hr { border: 0; border-top: 1px solid var(--line); }
.stage-page.stage-prose { font-size: 16px; line-height: 24px; }
.stage-page.stage-prose h2 { font-size: 20px; line-height: 28px; margin-top: 32px; }

/* Anmerkungen */
.stage-comments__list { list-style: none; padding: 0; }
.stage-comment { padding: 12px 0; border-top: 1px solid var(--line); }
.stage-comment:first-child { padding-top: 0; border-top: 0; }
.stage-comment__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; margin-bottom: 4px; }
.stage-comment__name { font-weight: 700; }
.stage-comment__date { color: var(--muted); }
.stage-comment__text { white-space: pre-line; }
.stage-panel:not(.is-open) .stage-comment__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.stage-comment__actions { display: flex; gap: 12px; margin-top: 6px; }
.stage-comment__action { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stage-comment__action:hover { color: var(--accent); }
.stage-comment__edited { color: var(--muted); }
.stage-comment__edit { margin-top: 8px; }
.stage-comment__edit-row { display: flex; gap: 8px; margin-top: 8px; }
.stage-comment-form__as { font-size: 13px; line-height: 18px; color: var(--muted); margin-bottom: 12px; }
.stage-login__hint, .stage-login__sent p { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 16px; }
.stage-login__sent .ctl { margin-top: 16px; }
.stage-comment-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
