/* ═══════════════════════════════════════════════════════════════════════════
   NEUES KUNDENPORTAL — Variante B „Content-Studio" (Welle 1, 2026-10-24)

   Gestaltungsvorlage: `_entwuerfe/kundenportal-uebersicht/b/app.css` (Marvin:
   „Setz es um"). Dunkel zuerst, Hell gleichwertig.

   ⚠️ JEDE Regel steht unter `.studio` — das alte Portal (`style.css`) bleibt
   unberührt, auch wenn beide Dateien auf derselben Seite liegen (die Seiten 2–6
   zeigen in Welle 1 die alten Abschnitte im neuen Rahmen). Eigene Tokens heissen
   `--st-*`; `tests/public/token-namespace.test.js` hält beides.

   Die Schrift (Biennale) liefert `style.css` aus (`/fonts/biennale/*.otf`).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- Tokens: Dunkel ist Standard ---------- */
.studio {
  --st-coco: #7243e8;
  --st-coco-hell: #8e81ef;
  --st-peppa: #f73b65;
  --st-carlo: #f5bf4a;
  --st-schwarz: #1c1a1a;
  --st-weiss: #f7f7ff;
  --st-creme: #fffaee;
  --st-nacht: #121114;

  /* Flächen wie in den Apps (`packages/ui/src/staff-shell/staff-shell.css`, dunkel): Seite = --background,
     Navigation und Karten = --card, Flächen darin = --muted, Nebentext = --muted-foreground, Linien Weiss
     10 %/17 %. Neutral grau — Farbe tragen nur Akzent und Chips (Marvin, Entwurf Runde 12). */
  --st-bg: #0a0a0a;
  --st-nav-bg: #171717;
  --st-s1: #171717;
  --st-s2: #262626;
  --st-s3: #303030;
  --st-flaeche-tief: #0f0f0f;
  /* Die Dokument-Bühne (Vereinbarung, Rechnung): Bühne = Karte, das Blatt hebt sich ab. */
  --st-buehne-fl: #171717;
  --st-dok: #1d1d1d;
  --st-kachel: #262626;
  --st-linie: rgba(255, 255, 255, 0.1);
  --st-linie-2: rgba(255, 255, 255, 0.17);
  --st-text: #fafafa;
  --st-text-2: rgba(250, 250, 250, 0.76);
  --st-text-3: #a1a1a1;
  --st-akzent: #7243e8;
  --st-akzent-hover: #8159f2;
  --st-akzent-ink: #b0a6f8;
  --st-ring: #8e81ef;
  --st-balken: #8e81ef;
  --st-chip-coco-bg: rgba(142, 129, 239, 0.17);
  --st-chip-coco-fg: #bdb4fa;
  --st-chip-carlo-bg: rgba(245, 191, 74, 0.15);
  --st-chip-carlo-fg: #f7cd73;
  --st-chip-peppa-bg: rgba(247, 59, 101, 0.16);
  --st-chip-peppa-fg: #ff8aa5;
  --st-chip-gruen-bg: rgba(64, 196, 140, 0.15);
  --st-chip-gruen-fg: #6ddcaa;
  --st-chip-neutral-bg: rgba(255, 255, 255, 0.08);
  --st-chip-neutral-fg: rgba(250, 250, 250, 0.76);
  /* Diagramm-Reihen in fester Reihenfolge (validierte Palette des Entwurfs, Insights) und „live". */
  --st-serie-1: #3987e5;
  --st-serie-2: #d95926;
  --st-serie-3: #199e70;
  --st-serie-4: #c98500;
  --st-live: #22c55e;
  --st-schatten: 0 10px 30px rgba(0, 0, 0, 0.35);
  --st-schatten-gross: 0 24px 60px rgba(0, 0, 0, 0.5);
  --st-schleier: rgba(0, 0, 0, 0.62);
  --st-fokus: #b0a6f8;
  --st-tip-bg: #f7f7ff;
  --st-tip-fg: #1c1a1a;
  --st-marke-bg: #f7f7ff;
  --st-marke-fg: #1c1a1a;
  --st-flaeche: #121212;
  --st-r: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] .studio {
  /* Papier-Leiter der Apps (staff-shell.css, hell): Seite = --background, Navigation und Karten = --card,
     Flächen darin = --muted, Nebentext = --muted-foreground (#5d5d5d). Weiss bleibt nur das Dokument. */
  --st-bg: #fffaee;
  --st-nav-bg: #f7f3ea;
  --st-s1: #f7f3ea;
  --st-s2: #eae6de;
  --st-s3: #e0dcd3;
  --st-flaeche-tief: #eae6de;
  --st-buehne-fl: #f7f3ea;
  --st-dok: #ffffff;
  --st-kachel: #ffffff;
  --st-linie: rgba(28, 26, 26, 0.13);
  --st-linie-2: rgba(28, 26, 26, 0.22);
  --st-text: #1c1a1a;
  --st-text-2: rgba(28, 26, 26, 0.76);
  --st-text-3: #5d5d5d;
  --st-akzent: #7243e8;
  --st-akzent-hover: #5f31d8;
  --st-akzent-ink: #5b2fd0;
  --st-ring: #7243e8;
  --st-balken: #7243e8;
  --st-chip-coco-bg: rgba(114, 67, 232, 0.11);
  --st-chip-coco-fg: #5328c9;
  --st-chip-carlo-bg: rgba(245, 191, 74, 0.26);
  --st-chip-carlo-fg: #7a4f00;
  --st-chip-peppa-bg: rgba(247, 59, 101, 0.12);
  --st-chip-peppa-fg: #b8123b;
  --st-chip-gruen-bg: rgba(28, 150, 98, 0.12);
  --st-chip-gruen-fg: #0f6b44;
  --st-chip-neutral-bg: rgba(28, 26, 26, 0.06);
  --st-chip-neutral-fg: rgba(28, 26, 26, 0.72);
  --st-serie-1: #2a78d6;
  --st-serie-2: #eb6834;
  --st-serie-3: #1baf7a;
  --st-serie-4: #eda100;
  --st-live: #16a34a;
  --st-schatten: 0 1px 2px rgba(28, 26, 26, 0.05), 0 10px 28px rgba(28, 26, 26, 0.07);
  --st-schatten-gross: 0 24px 60px rgba(28, 26, 26, 0.18);
  --st-schleier: rgba(28, 26, 26, 0.42);
  --st-fokus: #7243e8;
  --st-tip-bg: #1c1a1a;
  --st-tip-fg: #f7f7ff;
  --st-marke-bg: #1c1a1a;
  --st-marke-fg: #f7f7ff;
  --st-flaeche: #efebe3;
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
.studio {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: "Biennale", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Der Team-Streifen (`TeamAnsichtBanner`, fest oben) bleibt stehen — der Rahmen
   rückt um seine Höhe nach unten (`--team-banner-h` aus style.css). */
.studio.studio--team { top: var(--team-banner-h); }
.studio *, .studio *::before, .studio *::after { box-sizing: border-box; }
.studio button, .studio input, .studio select, .studio textarea { font: inherit; color: inherit; }
.studio button { cursor: pointer; }
.studio a { color: inherit; }
.studio h1, .studio h2, .studio h3, .studio p, .studio ol, .studio ul { margin: 0; }
.studio ol, .studio ul { padding: 0; list-style: none; }
.studio :focus-visible { outline: 2px solid var(--st-fokus); outline-offset: 2px; }
.studio .st-ic { width: 18px; height: 18px; flex: none; }
.studio .st-tab { font-variant-numeric: tabular-nums; }
.studio .st-klein { font-size: 12.5px; }
.studio .st-gedimmt { color: var(--st-text-3); }
.studio .st-leer { color: var(--st-text-3); }

/* Eigene Scrollbalken überall — schmal, rund, im Ton der Linien (Runde 13g/13i). Wo `::-webkit-scrollbar` greift,
   gelten nur sie: ein gesetztes `scrollbar-width`/`scrollbar-color` schaltete sie in Chrome ab, deshalb steht dort
   `auto`. Firefox kennt nur die zwei Eigenschaften und bekommt dieselbe Farbe, schmal. */
.studio ::-webkit-scrollbar { width: 10px; height: 10px; }
.studio ::-webkit-scrollbar-track { background: transparent; }
.studio ::-webkit-scrollbar-thumb { background: var(--st-linie-2); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
.studio ::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--st-text) 32%, transparent); border: 3px solid transparent; background-clip: padding-box; }
.studio ::-webkit-scrollbar-corner { background: transparent; }
@supports selector(::-webkit-scrollbar) {
  .studio * { scrollbar-width: auto; scrollbar-color: auto; }
}
@supports not selector(::-webkit-scrollbar) {
  .studio * { scrollbar-width: thin; scrollbar-color: var(--st-linie-2) transparent; }
}

/* Datenschutz-Band (Runde 13v): oben über dem Rahmen, an der Stelle des Team-Bands, ruhig. */
.studio .st-dsband { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 20px; background: var(--st-s2); border-bottom: 1px solid var(--st-linie); color: var(--st-text-2); font-size: 12.5px; line-height: 1.4; }
.studio .st-dsband > .st-ic { width: 15px; height: 15px; color: var(--st-chip-gruen-fg); }
.studio .st-dsband b { color: var(--st-text); font-weight: 600; }
@media (max-width: 719px) {
  .studio .st-dsband { padding: 8px 16px; font-size: 12px; }
  .studio .st-dsband-mehr { display: none; }
}

/* ---------- Schale: Navigation · Hauptbereich · Leiste ---------- */
.studio .st-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--st-nav-w, 252px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.studio .st-mobilkopf, .studio .st-tabbar { display: none; }
.studio .st-haupt {
  grid-column: 2;
  grid-row: 1;
  overflow-y: auto;
  overflow-x: hidden;
  outline: none;
  scroll-behavior: smooth;
  position: relative;
}

/* ---------- Navigation ---------- */
.studio .st-nav {
  grid-column: 1;
  grid-row: 1;
  background: var(--st-nav-bg);
  border-right: 1px solid var(--st-linie);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px 14px;
  overflow-y: auto;
  overflow-x: hidden;
}
.studio .st-nav-oben { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding-left: 6px; }
.studio .st-nav-marke { display: flex; align-items: center; border-radius: 6px; color: var(--st-text); }
.studio .st-nav-logo { height: 21px; width: auto; }
.studio .st-nav-mark { height: 34px; width: 34px; display: none; }
.studio .st-nummer { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; color: var(--st-text-3); background: none; border: 0; padding: 2px 0; border-radius: 4px; max-width: 100%; }
.studio .st-nummer .st-ic { width: 13px; height: 13px; }
.studio .st-nummer:hover { color: var(--st-text); }
/* Drei Abschnitte mit Überschrift: Kampagne · Content · Verwaltung (Marvin, Entwurf Runde 10). */
.studio .st-nav-liste { display: grid; }
.studio .st-nav-gruppe + .st-nav-gruppe { margin-top: 16px; }
.studio .st-nav-gruppe-name { display: block; padding: 0 10px 5px; font-size: 11px; font-weight: 400; letter-spacing: 0.02em; color: color-mix(in srgb, var(--st-text-3) 62%, transparent); }
.studio .st-nav-gruppe-liste { display: grid; gap: 1px; }
/* Schlank (Marvin: „zu klobig … vor allem der Text"): 13,5 px, 34 px Zeilen, feine Icons; aktiv nur Fläche und eine
   Stufe dicker, kein Seitenbalken. Hover mischt die Textfarbe ein — `--st-s1` ist die Farbe der Navigation. Seit
   Runde 13e (2026-10-29) Medium, aktiv Semibold; die Gruppen-Überschrift blasser. */
.studio .st-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--st-text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background 0.15s, color 0.15s;
}
.studio .st-nav-link .st-ic { width: 17px; height: 17px; stroke-width: 1.6; color: var(--st-text-3); transition: color 0.15s; }
.studio .st-nav-link:hover { background: color-mix(in srgb, var(--st-text) 5%, transparent); color: var(--st-text); }
.studio .st-nav-link:hover .st-ic { color: var(--st-text-2); }
.studio .st-nav-link[aria-current="page"] { background: var(--st-s2); color: var(--st-text); font-weight: 600; }
.studio .st-nav-link[aria-current="page"] .st-ic { color: var(--st-text); }
.studio .st-nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--st-akzent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.studio .st-nav-unten { margin-top: auto; display: grid; gap: 12px; }
.studio .st-kontakt-knopf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--st-s1);
  border: 1px solid var(--st-linie);
  text-align: left;
  width: 100%;
  min-width: 0;
}
.studio .st-kontakt-knopf:hover { border-color: var(--st-linie-2); }
.studio .st-kontakt-text { display: grid; min-width: 0; line-height: 1.3; }
.studio .st-kontakt-text b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-kontakt-text small { color: var(--st-text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* „Dein Kontakt zur Kampagne" IN der Karte über dem Namen (Runde 13u) — als eigene Überschrift darüber wirkte er verloren. */
.studio .st-kontakt-text .st-kontakt-label { font-size: 10.5px; margin-bottom: 1px; }
.studio .st-einst { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio .st-mini-feld { display: grid; gap: 4px; font-size: 11.5px; color: var(--st-text-3); min-width: 0; margin: 0; }
/* Das Symbol links im Feld zeigt den gewählten Wert: Flagge der Sprache, Mond oder Sonne (Runde 13u). */
.studio .st-feld-mit-icon { position: relative; display: block; min-width: 0; }
.studio .st-feld-mit-icon > .st-ic, .studio .st-feld-mit-icon > .st-flagge { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.studio .st-feld-mit-icon > .st-ic { width: 14px; height: 14px; color: var(--st-text-2); }
.studio .st-flagge { width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--st-text) 14%, transparent); }
.studio .st-auswahl.st-auswahl--icon { padding-left: 31px; }

/* Eingeklappt: fest gewählt, oder automatisch unter 1100 px ohne Wahl. */
.studio .st-shell[data-nav="zu"] { --st-nav-w: 76px; }
.studio .st-shell[data-nav="zu"] .st-nav { padding-inline: 12px; }
.studio .st-shell[data-nav="zu"] .st-nav-oben { flex-direction: column; padding-left: 0; gap: 10px; }
.studio .st-shell[data-nav="zu"] .st-nav-logo,
.studio .st-shell[data-nav="zu"] .st-nav-gruppe-name,
.studio .st-shell[data-nav="zu"] .st-nav-text,
.studio .st-shell[data-nav="zu"] .st-kontakt-text,
.studio .st-shell[data-nav="zu"] .st-einst { display: none; }
.studio .st-shell[data-nav="zu"] .st-nav-mark { display: block; }
.studio .st-shell[data-nav="zu"] .st-nav-gruppe + .st-nav-gruppe { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--st-linie); }
.studio .st-shell[data-nav="zu"] .st-nav-link { justify-content: center; padding: 0; }
.studio .st-shell[data-nav="zu"] .st-nav-link .st-badge { position: absolute; top: 1px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.studio .st-shell[data-nav="zu"] .st-kontakt-knopf { justify-content: center; padding: 6px; }
@media (max-width: 1099px) {
  .studio .st-shell:not([data-nav]) { --st-nav-w: 76px; }
  .studio .st-shell:not([data-nav]) .st-nav { padding-inline: 12px; }
  .studio .st-shell:not([data-nav]) .st-nav-oben { flex-direction: column; padding-left: 0; gap: 10px; }
  .studio .st-shell:not([data-nav]) .st-nav-logo,
  .studio .st-shell:not([data-nav]) .st-nav-gruppe-name,
  .studio .st-shell:not([data-nav]) .st-nav-text,
  .studio .st-shell:not([data-nav]) .st-kontakt-text,
  .studio .st-shell:not([data-nav]) .st-einst { display: none; }
  .studio .st-shell:not([data-nav]) .st-nav-mark { display: block; }
  .studio .st-shell:not([data-nav]) .st-nav-gruppe + .st-nav-gruppe { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--st-linie); }
  .studio .st-shell:not([data-nav]) .st-nav-link { justify-content: center; padding: 0; }
  .studio .st-shell:not([data-nav]) .st-nav-link .st-badge { position: absolute; top: 1px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .studio .st-shell:not([data-nav]) .st-kontakt-knopf { justify-content: center; padding: 6px; }
}

/* ---------- Telefon: Kopf oben, Leiste unten ---------- */
.studio .st-mobilkopf { align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--st-linie); background: var(--st-nav-bg); }
.studio .st-mk-marke { display: flex; color: var(--st-text); }
.studio .st-mk-mark { width: 30px; height: 30px; }
.studio .st-mk-text { flex: 1; min-width: 0; display: grid; }
.studio .st-mk-titel { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-tabbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--st-linie);
  background: var(--st-nav-bg);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.studio .st-tab-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 5px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--st-text-3);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 10px;
  min-width: 0;
}
.studio .st-tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.studio .st-tab-link .st-ic { width: 21px; height: 21px; }
.studio .st-tab-link[aria-current="page"] { color: var(--st-text); }
.studio .st-tab-link[aria-current="page"] .st-ic { color: var(--st-coco-hell); }
.studio .st-tab-link .st-badge { position: absolute; top: 2px; left: calc(50% + 5px); min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; margin: 0; }

/* Ohne Kampagne (Fehler, noch nicht freigegeben): nur Marke und Einstellungen. */
.studio .st-shell--ohne-nav .st-nav-unten { margin-top: auto; }

@media (max-width: 719px) {
  .studio .st-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .studio .st-nav { display: none; }
  .studio .st-mobilkopf { display: flex; grid-row: 1; grid-column: 1; }
  .studio .st-haupt { grid-row: 2; grid-column: 1; }
  .studio .st-tabbar { display: grid; grid-row: 3; grid-column: 1; }
}

/* ---------- Seiten-Gerüst ---------- */
.studio .st-seite {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 36px 72px;
  display: grid;
  gap: 30px;
  animation: st-rein 0.22s ease both;
}
.studio .st-seite > * { min-width: 0; }
.studio .st-seite--hinweis { padding-bottom: 0; }
/* Impressum · Datenschutz (`components/Rechtslinks.js`): unten in der Navigation und im „Mehr"-Menü. Eingeklappt
   fallen sie weg wie die Einstellungen; unter der Karte (`--karte`) nur am Telefon, wo es ohne Kampagne keine
   Navigation gibt. */
.studio .st-rechtslinks { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 0 6px; font-size: 11.5px; color: var(--st-text-3); }
.studio .st-rechtslinks a { color: inherit; text-decoration: none; border-radius: 4px; }
.studio .st-rechtslinks a:hover { color: var(--st-text); text-decoration: underline; }
.studio .st-dlg .st-rechtslinks { margin-top: 12px; padding: 0; }
.studio .st-shell[data-nav="zu"] .st-nav .st-rechtslinks { display: none; }
@media (max-width: 1099px) { .studio .st-shell:not([data-nav]) .st-nav .st-rechtslinks { display: none; } }
.studio .st-rechtslinks--karte { display: none; }
@keyframes st-rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.studio .st-seiten-kopf { display: grid; gap: 4px; }
.studio .st-seiten-kopf h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.studio .st-block { display: grid; gap: 12px; min-width: 0; }
.studio .st-block-kopf { display: flex; align-items: baseline; gap: 10px; }
.studio .st-block-kopf h2 { font-size: 17px; font-weight: 600; }
.studio .st-zaehler { color: var(--st-text-3); font-weight: 500; font-size: 13px; }
/* Icon-Kachel vor Überschriften (Runde 13, wie `SectionIconPill` der Apps) und der Weg auf die Unterseite rechts. */
.studio .st-pille { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-pille .st-ic { width: 16px; height: 16px; }
.studio .st-pille--klein { width: 28px; height: 28px; border-radius: 7px; }
.studio .st-pille--klein .st-ic { width: 15px; height: 15px; }
.studio .st-block-kopf--pille { align-items: center; }
.studio .st-block-kopf--pille > .st-pille { margin-right: -2px; }
.studio .st-mehr { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--st-akzent-ink); text-decoration: none; white-space: nowrap; border-radius: 4px; }
.studio .st-mehr .st-ic { width: 14px; height: 14px; }
.studio .st-mehr:hover { text-decoration: underline; }
.studio .st-karte { background: var(--st-s1); border: 1px solid var(--st-linie); border-radius: var(--st-r); }
.studio .st-karte-titel { font-size: 15px; font-weight: 600; }
.studio .st-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--st-text-3); min-width: 0; }
.studio .st-eyebrow svg { width: 14px; height: 14px; flex: none; }
.studio .st-eyebrow-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.studio .st-leer-karte { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: var(--st-text-2); }
.studio .st-leer-karte--ok .st-ic { color: var(--st-chip-gruen-fg); width: 20px; height: 20px; }
.studio .st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.studio .st-hinweis { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--st-r); background: var(--st-s1); border: 1px solid var(--st-linie-2); color: var(--st-text-2); }
.studio .st-hinweis b { flex: 1; font-weight: 600; color: var(--st-text); }
.studio .st-gedaempft > :not(.st-hinweis) { opacity: 0.5; filter: saturate(0.25); }

@media (max-width: 719px) {
  .studio .st-seite { padding: 18px 16px 40px; gap: 24px; }
  .studio .st-rechtslinks--karte { display: flex; justify-content: center; margin-top: -16px; padding: 0 16px 20px; }
  .studio .st-seiten-kopf h1 { font-size: 24px; }
}

/* ---------- Knöpfe ---------- */
.studio .st-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
.studio .st-knopf--haupt { background: var(--st-akzent); color: #fff; }
.studio .st-knopf--haupt:hover { background: var(--st-akzent-hover); }
.studio .st-knopf--neben { background: var(--st-s2); border-color: var(--st-linie); color: var(--st-text); }
.studio .st-knopf--neben:hover { background: var(--st-s3); }
.studio .st-knopf--still { color: var(--st-text-2); }
.studio .st-knopf--still:hover { background: var(--st-s2); color: var(--st-text); }
.studio .st-knopf--klein { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.studio .st-knopf--klein .st-ic { width: 16px; height: 16px; }
.studio .st-knopf--icon { width: 40px; padding: 0; }
.studio .st-knopf--icon.st-knopf--klein { width: 32px; }
.studio .st-knopf:disabled { opacity: 0.35; cursor: default; }
/* Zwei Knöpfe: 1/3 Neben, 2/3 Haupt (Marvin, UI-Regeln). */
.studio .st-knopfreihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.studio .st-knopfreihe > .st-knopf { width: 100%; min-width: 0; }

/* ---------- Chips: gedämpfte Fläche, kräftige Schrift ---------- */
.studio .st-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--st-chip-neutral-bg);
  color: var(--st-chip-neutral-fg);
  line-height: 1;
  vertical-align: middle;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio .st-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.studio .st-chip--ohne-punkt::before { display: none; }
.studio .st-chip--coco { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-chip--carlo { background: var(--st-chip-carlo-bg); color: var(--st-chip-carlo-fg); }
.studio .st-chip--peppa { background: var(--st-chip-peppa-bg); color: var(--st-chip-peppa-fg); }
.studio .st-chip--gruen { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }

/* ---------- Auswahlfelder ---------- */
.studio .st-auswahl {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 9px;
  background: var(--st-s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23908c9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--st-linie);
  color: var(--st-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  min-width: 0;
  box-shadow: none;
}
.studio .st-auswahl:hover { border-color: var(--st-linie-2); }
.studio .st-auswahl:focus { border-color: var(--st-coco-hell); box-shadow: none; outline: none; }
.studio .st-auswahl:focus-visible { outline: 2px solid var(--st-fokus); outline-offset: 2px; }
.studio .st-auswahl--klein { height: 32px; font-size: 13px; }

/* ---------- Avatare & Monogramme ---------- */
.studio .st-stapel { display: inline-flex; align-items: center; flex: none; }
.studio .st-mono {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  background: var(--st-s3);
  color: var(--st-text);
  flex: none;
  border: 1px solid transparent;
  background-size: cover;
  background-position: center;
}
.studio .st-mono--marke { background-color: var(--st-marke-bg); color: var(--st-marke-fg); }
.studio .st-mono--logo { background-color: #fff; background-size: contain; background-repeat: no-repeat; border-color: var(--st-linie); }
.studio .st-mono--person { border-radius: 50%; background-color: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-mono--gross { width: 52px; height: 52px; font-size: 16px; }
.studio .st-mono--klein { width: 28px; height: 28px; font-size: 10.5px; }
.studio .st-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--st-s1);
  margin-left: -8px;
  background: var(--st-s3) center / cover no-repeat;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--st-text-2);
  flex: none;
}
.studio .st-stapel--gross .st-mono, .studio .st-stapel--gross .st-avatar { width: 36px; height: 36px; }
.studio .st-stapel--gross .st-avatar { border-color: rgba(20, 18, 24, 0.9); }
.studio .st-mobilkopf .st-avatar { border-color: var(--st-nav-bg); }

/* ---------- Übersicht: Kopf wie die Pitch Decks (7b W3.1) ----------
   Ruhig und leicht getönt (Violett nur 6 % über der Karte, kein Verlauf); rechts die Kampagnennummer und das
   Creator-Foto 3:4 mit dem Logo der Marke an der Ecke; die Kennzahl-Kacheln greifen von unten in den Kopf. */
.studio .st-hero-bereich { position: relative; display: grid; }
.studio .st-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: var(--st-text);
  background: color-mix(in srgb, var(--st-akzent) 6%, var(--st-s1));
  border: 1px solid color-mix(in srgb, var(--st-akzent) 14%, var(--st-linie));
}
.studio .st-hero-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 30px 36px; }
.studio .st-hero-bereich--kacheln .st-hero-inhalt { padding-bottom: 86px; }
.studio .st-hero-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.studio .st-hero-text .st-hstatus { margin-top: auto; }
.studio .st-hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--st-text-3); line-height: 20px; }
/* Die Nummer hinter der Augenbraue (Runde 13k). */
.studio .st-hero-oben { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.studio .st-hero-trenner { color: var(--st-text-3); }
.studio .st-hero-oben .st-nummer { padding: 0; line-height: 20px; }
.studio .st-hero-titel { font-size: 40px; line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; overflow-wrap: anywhere; }
/* Der Zeitraum als Pille: Kalender in Akzent, Datum 16 px/600, dahinter die Restlaufzeit (Runde 13k). */
.studio .st-hero-zeit {
  display: inline-flex;
  align-self: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 6px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-text) 6%, transparent);
  border: 1px solid var(--st-linie);
  font-size: 16px;
  color: var(--st-text);
}
.studio .st-hero-zeit .st-ic { width: 18px; height: 18px; color: var(--st-akzent-ink); }
.studio .st-hero-zeit b { font-weight: 600; letter-spacing: -0.005em; }
.studio .st-hero-zeit span { padding-left: 10px; border-left: 1px solid var(--st-linie-2); font-size: 13.5px; color: var(--st-text-2); }
.studio .st-hero-rechts { display: grid; justify-items: end; }
.studio .st-hero-paar { position: relative; align-self: start; margin: 0 2px 0 30px; }
.studio .st-hero-creator {
  display: block;
  width: 176px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 20px;
  border: 1px solid var(--st-linie);
  box-shadow: var(--st-schatten);
}
.studio .st-hero-logo {
  position: absolute;
  left: -30px;
  bottom: -14px;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  border: 1px solid var(--st-linie);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-akzent) 6%, var(--st-s1)), var(--st-schatten);
}
/* Ein Logo ist auf Weiss gezeichnet — in beiden Darstellungen. */
.studio .st-hero-logo--bild {
  background-color: #fff;
  background-position: center;
  background-size: 72% auto;
  background-repeat: no-repeat;
  border-color: rgba(28, 26, 26, 0.1);
}
/* Stand: drei Phasen mit eigenem Balken, rechts der nächste Schritt. */
.studio .st-hstatus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--st-text) 3%, transparent);
  border: 1px solid var(--st-linie);
}
.studio .st-hstatus-phasen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 14px; }
.studio .st-hph { display: grid; gap: 8px; align-content: center; min-width: 0; }
.studio .st-hph-balken { display: block; height: 6px; border-radius: 3px; background: var(--st-linie-2); overflow: hidden; }
.studio .st-hph-balken i { display: block; height: 100%; border-radius: 3px; background: var(--st-akzent); }
.studio .st-hph--erledigt .st-hph-balken i { background: var(--st-chip-gruen-fg); }
.studio .st-hph-kopf { display: flex; align-items: center; gap: 7px; font-size: 13.5px; min-width: 0; }
.studio .st-hph-kopf b { font-weight: 600; }
.studio .st-hph--offen .st-hph-kopf b { font-weight: 500; color: var(--st-text-2); }
.studio .st-hph-punkt { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--st-linie-2); display: grid; place-items: center; flex: none; }
.studio .st-hph-punkt .st-ic { width: 11px; height: 11px; stroke-width: 3; }
.studio .st-hph--erledigt .st-hph-punkt { background: var(--st-chip-gruen-fg); border-color: var(--st-chip-gruen-fg); color: var(--st-s1); }
.studio .st-hph--aktiv .st-hph-punkt { border-color: var(--st-akzent); box-shadow: 0 0 0 3px var(--st-chip-coco-bg); }
.studio .st-hph--aktiv .st-hph-punkt::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--st-akzent); }
.studio .st-hph-jetzt { font-size: 11px; font-weight: 600; color: var(--st-chip-coco-fg); background: var(--st-chip-coco-bg); border-radius: 999px; padding: 1px 7px; }
.studio .st-hstatus-weiter {
  position: relative;
  display: grid;
  align-self: center;
  align-content: center;
  gap: 2px;
  min-width: 150px;
  padding: 0 26px 0 18px;
  border-left: 1px solid var(--st-linie);
  color: inherit;
  text-decoration: none;
}
.studio .st-hstatus-weiter span { font-size: 12px; color: var(--st-text-3); }
.studio .st-hstatus-weiter b { font-size: 14px; font-weight: 600; }
.studio .st-hstatus-weiter .st-ic { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--st-akzent-ink); transition: translate 0.15s; }
.studio .st-hstatus-weiter:hover .st-ic { translate: 3px -50%; }
.studio .st-hero-storno { margin-top: 6px; }
.studio .st-hero-storno .st-chip { background: var(--st-s3); color: var(--st-text); }
/* Die Kacheln: Reichweite und Aufrufe nur mit Zahl, das Budget immer — drei Spalten, auch wenn eine fehlt. */
.studio .st-hero-kpis { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: -58px 36px 0; }
.studio .st-hero-kpi {
  display: grid;
  gap: 2px;
  align-content: start;
  min-width: 0;
  padding: 16px 18px 14px;
  border-radius: 18px;
  color: var(--st-text);
  text-decoration: none;
  background: var(--st-kachel);
  border: 1px solid var(--st-linie);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, translate 0.15s;
}
:root[data-theme="light"] .studio .st-hero-kpi { box-shadow: 0 18px 40px rgba(28, 26, 26, 0.08); }
.studio .st-hero-kpi:hover { border-color: var(--st-linie-2); translate: 0 -2px; }
.studio .st-hero-kpi-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-text-3); }
.studio .st-hero-kpi-label .st-ic { width: 14px; height: 14px; }
.studio .st-hero-kpi-wert { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-hero-kpi .st-skel { margin-top: 8px; }
.studio .st-hero-kpi-sub { font-size: 11.5px; color: var(--st-text-3); }
@media (max-width: 1100px) {
  .studio .st-hero-creator { width: 140px; border-radius: 18px; }
  .studio .st-hero-logo { width: 66px; height: 66px; left: -24px; font-size: 22px; }
}
@media (max-width: 1000px) {
  .studio .st-hero-titel { font-size: 34px; }
  .studio .st-hstatus { grid-template-columns: minmax(0, 1fr); }
  .studio .st-hstatus-weiter { border-left: 0; border-top: 1px solid var(--st-linie); padding: 12px 26px 0 0; }
}
@media (max-width: 860px) {
  .studio .st-hero-paar { display: none; }
  .studio .st-hero-rechts { display: none; }
}
/* Telefon: ohne Foto, Logo und Nummer (die steht im Mobilkopf), Phasen ohne Untertext. */
@media (max-width: 719px) {
  .studio .st-hero { border-radius: 18px; }
  .studio .st-hero-inhalt { padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .studio .st-hero-bereich--kacheln .st-hero-inhalt { padding-bottom: 70px; }
  .studio .st-hero-rechts { display: none; }
  .studio .st-hero-titel { font-size: 26px; }
  .studio .st-hstatus { padding: 12px; }
  .studio .st-hstatus-phasen { gap: 10px; }
  .studio .st-hph-kopf { font-size: 12px; }
  .studio .st-hph-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .studio .st-hph-punkt, .studio .st-hph-jetzt { display: none; }
  /* Die Nummer steht am Telefon im Mobilkopf — nicht zweimal. */
  .studio .st-hero-oben .st-nummer, .studio .st-hero-trenner { display: none; }
  .studio .st-hero-zeit { font-size: 14px; gap: 8px; padding: 6px 12px 6px 10px; }
  .studio .st-hero-zeit span { font-size: 12.5px; padding-left: 8px; }
  .studio .st-hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: -52px 12px 0; }
  .studio .st-hero-kpi:last-child { grid-column: 1 / -1; }
  .studio .st-hero-kpi { padding: 12px 14px; }
  .studio .st-hero-kpi-wert { font-size: 20px; }
}

/* ---------- Übersicht: Wartet auf dich ---------- */
/* Eine Karte voll, zwei je halb, drei je ein Drittel, ab vier blättert die Reihe (7b W3.1). */
.studio .st-warte-reihe {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.studio .st-warte-karte {
  scroll-snap-align: start;
  display: block;
  container: st-warte / inline-size;
  background: var(--st-s1);
  border: 1px solid var(--st-linie);
  border-radius: 16px;
  transition: border-color 0.15s;
  min-width: 0;
}
.studio .st-warte-karte:hover { border-color: var(--st-linie-2); }
.studio .st-warte-bild {
  position: relative;
  width: 96px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--st-s3);
  display: grid;
  place-items: center;
  color: var(--st-text-3);
}
.studio .st-warte-bild svg { width: 28px; height: 28px; }
.studio .st-warte-bild:disabled { cursor: default; }
.studio .st-warte-bild--angaben { background: var(--st-s2); }
.studio .st-warte-bild--angaben svg { width: 64px; height: 64px; }
.studio .st-warte-bild--beleg { background: var(--st-s2); padding: 10px 8px; }
.studio .st-mini-seite {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  background: #fff;
  color: #1c1a1a;
  border-radius: 3px;
  padding: 8px 7px;
  display: grid;
  gap: 4px;
  align-content: start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.studio .st-mini-seite .st-mini-logo { width: 34px; height: auto; margin-bottom: 4px; }
.studio .st-mini-seite i { display: block; height: 3px; border-radius: 2px; background: #e6e2ec; }
.studio .st-mini-seite i.st-kurz { width: 60%; }
.studio .st-mini-seite b { margin-top: 6px; font-size: 7.5px; text-align: right; white-space: nowrap; overflow: hidden; }
.studio .st-warte-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 2px 0; }
.studio .st-warte-titel { font-size: 15.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.studio .st-warte-sub { font-size: 12.5px; color: var(--st-text-3); margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-warte-hinweis { margin-top: auto; font-size: 12.5px; color: var(--st-text-3); }
.studio .st-warte-innen { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 8px 14px; padding: 12px; height: 100%; }
.studio .st-warte-innen > :first-child { grid-row: 1 / span 2; }
.studio .st-warte-aktion { grid-column: 2; align-self: end; }
.studio .st-warte-extra { display: none; }
/* Breit (eine oder zwei Karten über die volle Breite): Knopf rechts, eine Zusatzzeile nutzt die Breite. */
@container st-warte (min-width: 560px) {
  .studio .st-warte-innen { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; }
  .studio .st-warte-innen > :first-child { grid-row: auto; }
  .studio .st-warte-aktion { grid-column: 3; align-self: center; }
  .studio .st-warte-titel { font-size: 18px; }
  .studio .st-warte-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--st-linie); }
}
.studio .st-warte-extra-label { font-size: 12.5px; font-weight: 600; color: var(--st-text-2); }
.studio .st-warte-extra-text { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-warte-schritte { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.studio .st-warte-schritte li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--st-text-3); }
.studio .st-warte-schritte li > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--st-s3); color: var(--st-text-2); }
.studio .st-warte-schritte li > span .st-ic { width: 12px; height: 12px; stroke-width: 3; }
.studio .st-warte-schritte li.st-ist-erledigt > span { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-warte-schritte li.st-ist-aktiv { color: var(--st-text); font-weight: 600; }
.studio .st-warte-schritte li.st-ist-aktiv > span { background: var(--st-akzent); color: #fff; }
@media (max-width: 719px) { .studio .st-warte-reihe { grid-auto-columns: 88%; } }

/* ---------- Übersicht: Als Nächstes · Angaben ---------- */
/* Accounts (7b W3.2): ein Konto über die volle Breite, mehrere nebeneinander. */
.studio .st-konten { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
/* Gleiche Spezifität wie die Reihe — muss NACH ihr stehen, sonst bleibt die leere zweite Spalte. */
.studio .st-konten--eins { grid-template-columns: minmax(0, 1fr); }
.studio .st-konto { display: grid; gap: 16px; padding: 18px 20px; align-content: start; }
.studio .st-konto-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.studio .st-konto-bild { position: relative; width: 52px; height: 52px; }
.studio .st-konto-bild img, .studio .st-konto-mono { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--st-s2); font-weight: 700; color: var(--st-text-2); }
.studio .st-konto-plattform { position: absolute; right: -5px; bottom: -4px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--st-s2); color: var(--st-text); box-shadow: 0 0 0 2.5px var(--st-s1); }
.studio .st-konto-plattform svg { width: 14px; height: 14px; }
.studio .st-konto-name { display: grid; gap: 2px; min-width: 0; }
.studio .st-konto-name b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-konto-name small { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-konto-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--st-linie); }
.studio .st-konto-werte div { display: grid; gap: 3px; min-width: 0; }
.studio .st-konto-werte dt { font-size: 12px; color: var(--st-text-3); }
.studio .st-konto-werte dd { margin: 0; display: grid; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.studio .st-konto-werte dd small { font-size: 11.5px; font-weight: 400; color: var(--st-text-3); letter-spacing: 0; }
@media (max-width: 719px) {
  .studio .st-konten { grid-template-columns: minmax(0, 1fr); }
  .studio .st-konto-kopf { grid-template-columns: auto minmax(0, 1fr); }
  .studio .st-konto-kopf .st-knopf { grid-column: 1 / -1; justify-self: start; }
}
.studio .st-spalte { display: grid; gap: 16px; align-content: stretch; min-width: 0; }
.studio .st-naechstes { display: grid; gap: 6px; padding: 18px 8px 8px; align-content: start; }
.studio .st-naechstes .st-karte-titel { padding: 0 12px 4px; }
.studio .st-naechstes > .st-block-kopf { padding: 0 12px 6px; }
.studio .st-naechstes > .st-block-kopf h2 { font-size: 15px; }
.studio .st-naechstes .st-skel-zeilen { padding: 8px 12px; }
.studio .st-zeilen { display: grid; }
.studio .st-termin-zeile {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 12px;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}
.studio .st-termin-zeile:hover { background: var(--st-s2); }
.studio .st-termin-zeile + .st-termin-zeile::before { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--st-linie); }
.studio .st-termin-zeile:hover::before, .studio .st-termin-zeile:hover + .st-termin-zeile::before { opacity: 0; }
.studio .st-termin-datum { display: grid; justify-items: center; align-content: center; width: 52px; height: 56px; border-radius: 12px; background: var(--st-s2); line-height: 1.1; }
.studio .st-termin-datum b { font-size: 19px; font-weight: 700; }
.studio .st-termin-datum small { font-size: 10.5px; color: var(--st-text-3); font-weight: 500; }
.studio .st-termin-text { display: grid; gap: 3px; min-width: 0; }
.studio .st-termin-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-zeilen-pfeil { color: var(--st-text-3); width: 16px; height: 16px; }
.studio .st-ring { flex: none; }
.studio .st-ring-spur { stroke: var(--st-s3); }
.studio .st-ring-wert { stroke: var(--st-ring); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.studio .st-ring-text { fill: var(--st-text); font-size: 15px; font-weight: 700; font-family: inherit; }
.studio .st-kpi-label { display: flex; align-items: center; gap: 8px; color: var(--st-text-3); font-size: 13px; font-weight: 500; }
.studio .st-kpi-label .st-ic { width: 16px; height: 16px; }
.studio .st-angaben { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 20px; }
.studio .st-angaben .st-karte-titel { white-space: nowrap; }
.studio .st-angaben .st-schritte { justify-content: flex-end; }
.studio .st-angaben-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; min-width: 0; }
.studio .st-angaben-kopf > .st-pille { grid-row: span 2; }
.studio .st-schritte { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.studio .st-schritt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--st-text-2); }
.studio .st-schritt-punkt { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.studio .st-schritt-punkt .st-ic { width: 12px; height: 12px; stroke-width: 3; }
.studio .st-schritt--erledigt .st-schritt-punkt { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-schritt--offen .st-schritt-punkt { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-schritt--offen { color: var(--st-text); font-weight: 600; }
@media (max-width: 1000px) {
  .studio .st-angaben { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .studio .st-angaben .st-knopf { justify-self: start; }
  .studio .st-angaben .st-karte-titel { white-space: normal; }
  .studio .st-angaben .st-schritte { justify-content: flex-start; }
}
@media (max-width: 719px) {
  .studio .st-termin-zeile { grid-template-columns: 48px minmax(0, 1fr) 16px; row-gap: 6px; }
  .studio .st-termin-zeile .st-termin-datum { grid-row: 1 / span 2; width: 48px; }
  .studio .st-termin-zeile .st-chip { grid-column: 2; grid-row: 2; justify-self: start; }
  .studio .st-termin-zeile .st-zeilen-pfeil { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- Übersicht: Inhalte als 9:16-Karten, Freigaben-Leiste, Abrechnung · Dokumente (Runde 13) ---------- */
.studio .st-karten-reihe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 196px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.studio .st-karten-reihe > * { scroll-snap-align: start; }
.studio .st-karten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.studio .st-karte916 {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--st-s2);
  border: 1px solid var(--st-linie);
  padding: 0;
  text-align: left;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.studio .st-karte916:hover { transform: translateY(-2px); box-shadow: var(--st-schatten); }
.studio .st-karte916-bild { position: absolute; inset: 0; display: block; }
.studio .st-karte916-bild > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio .st-karte916-leer { position: absolute; inset: 0; display: grid; place-items: center; color: var(--st-text-3); }
.studio .st-karte916-leer svg { width: 30px; height: 30px; }
.studio .st-karte916-oben { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.studio .st-karte916-rechts { margin-left: auto; display: inline-flex; }
.studio .st-karte916-oben .st-chip { height: 22px; font-size: 11px; padding: 0 8px; background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.studio .st-karte916-unten { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 12px; display: grid; gap: 8px; background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0)); }
.studio .st-karte916-titel { display: grid; gap: 2px; min-width: 0; }
.studio .st-karte916-titel b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.studio .st-karte916-titel small { font-size: 12px; color: rgba(255, 255, 255, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-karte916-werte { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.studio .st-karte916-werte > span { display: inline-flex; align-items: center; gap: 4px; }
.studio .st-karte916-werte .st-ic { width: 13px; height: 13px; opacity: 0.85; }
.studio .st-karte916-werte b { font-weight: 600; }
/* Marken im Bild (Format, Herkunft): dunkle, unscharfe Fläche, weisse Schrift. */
.studio .st-bildmarke { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.studio .st-bildmarke .st-ic { width: 12px; height: 12px; }
.studio .st-bildmarke .st-ins-live-punkt { width: 6px; height: 6px; box-shadow: none; }
/* Freigaben als schmale Leiste: Anteile als Balken, Legende, „Alle". */
.studio .st-fg-leiste { display: grid; grid-template-columns: auto auto minmax(120px, 1fr) auto auto; align-items: center; gap: 12px 22px; padding: 14px 18px; }
.studio .st-fg-leiste h2 { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; margin-left: -10px; }
.studio .st-fg-balken { display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; }
.studio .st-fg-balken i { display: block; min-width: 6px; }
.studio .st-fg-balken--warte, .studio .st-fg-legende--warte i { background: var(--st-chip-coco-fg); }
.studio .st-fg-balken--arbeit, .studio .st-fg-legende--arbeit i { background: var(--st-chip-carlo-fg); }
.studio .st-fg-balken--frei, .studio .st-fg-legende--frei i { background: var(--st-chip-gruen-fg); }
.studio .st-fg-legende { display: flex; gap: 16px; flex-wrap: wrap; }
.studio .st-fg-legende a { display: inline-flex; align-items: center; gap: 6px; color: var(--st-text-2); text-decoration: none; font-size: 13px; white-space: nowrap; }
.studio .st-fg-legende a:hover { color: var(--st-text); }
.studio .st-fg-legende i { width: 8px; height: 8px; border-radius: 50%; }
.studio .st-fg-legende b { color: var(--st-text); font-weight: 600; }
.studio .st-fg-leiste .st-mehr { margin-left: 0; }
/* Abrechnung und Dokumente nebeneinander — steht nur einer da, nimmt er die Breite. */
.studio .st-mini-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.studio .st-mini-raster:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.studio .st-mini-raster:empty { display: none; }
.studio .st-mini-block { padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.studio .st-mini-block .st-block-kopf h2 { font-size: 15px; }
.studio .st-mini-block .st-reihe { padding: 10px 12px 10px 10px; }
@media (max-width: 1100px) {
  .studio .st-fg-leiste { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .studio .st-fg-leiste .st-fg-legende { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 719px) {
  .studio .st-karten-reihe { grid-auto-columns: 46%; }
  .studio .st-mini-raster { grid-template-columns: minmax(0, 1fr); }
  .studio .st-fg-leiste { grid-template-columns: auto minmax(0, 1fr) auto; }
  .studio .st-fg-balken { grid-column: 1 / -1; grid-row: 2; }
  .studio .st-fg-leiste .st-fg-legende { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { .studio .st-karte916:hover { transform: none; } }

/* ---------- Zustände: Fehler, noch nicht freigegeben, Skelett ---------- */
.studio .st-zustand-karte {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 24px;
  margin-top: 8vh;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.studio .st-zustand-karte h1 { font-size: 20px; font-weight: 600; }
.studio .st-zustand-karte p { color: var(--st-text-2); margin-bottom: 6px; }
.studio .st-zustand-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); display: grid; place-items: center; }
.studio .st-zustand-icon--fehler { background: var(--st-chip-peppa-bg); color: var(--st-chip-peppa-fg); }
.studio .st-zustand-icon .st-ic { width: 24px; height: 24px; }
.studio .st-skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--st-s2) 0%, var(--st-s3) 50%, var(--st-s2) 100%);
  background-size: 200% 100%;
  animation: st-schimmer 1.4s ease-in-out infinite;
  max-width: 100%;
  flex: none;
}
.studio .st-skel--rund { border-radius: 999px; }
@keyframes st-schimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.studio .st-skel-hero { height: 320px; border-radius: 24px; width: 100%; }
.studio .st-skel-stapel { display: grid; gap: 8px; align-content: center; min-width: 0; }
.studio .st-skel-zeilen { display: grid; gap: 14px; }
.studio .st-skel-zeile { display: flex; align-items: center; gap: 14px; }
.studio .st-skel-karte { padding: 16px; }
@media (prefers-reduced-motion: reduce) {
  .studio .st-skel, .studio .st-seite { animation: none; }
}

/* ---------- Kleine Dialoge (dürfen abdunkeln) ---------- */
.studio .st-dlg-ebene {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--st-schleier);
  animation: st-blende 0.15s ease both;
}
@keyframes st-blende { from { opacity: 0; } to { opacity: 1; } }
.studio .st-dlg {
  width: min(440px, 100%);
  max-height: calc(100% - 16px);
  overflow: auto;
  background: var(--st-s1);
  border: 1px solid var(--st-linie-2);
  border-radius: 18px;
  box-shadow: var(--st-schatten-gross);
  display: grid;
  animation: st-hoch 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes st-hoch { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.studio .st-dlg-kopf { padding: 18px 14px 4px 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.studio .st-dlg-titel { font-size: 18px; font-weight: 600; line-height: 1.3; outline: none; padding-top: 4px; }
.studio .st-dlg-koerper { padding: 8px 22px 18px; color: var(--st-text-2); display: grid; gap: 12px; }
.studio .st-dlg-fuss { padding: 14px 22px 18px; border-top: 1px solid var(--st-linie); }
.studio .st-dlg-ebene--sheet { place-items: end stretch; padding: 0; }
.studio .st-dlg-ebene--sheet .st-dlg { width: 100%; max-width: none; border-radius: 22px 22px 0 0; animation-name: st-hoch-sheet; padding-bottom: env(safe-area-inset-bottom); }
@keyframes st-hoch-sheet { from { transform: translateY(40px); } to { transform: none; } }
.studio .st-kontakt-karte { display: flex; align-items: center; gap: 14px; }
.studio .st-kontakt-karte b { display: block; color: var(--st-text); font-size: 16px; font-weight: 600; }
.studio .st-kontakt-karte small { color: var(--st-text-3); }
.studio .st-kontakt-zeilen { display: grid; gap: 6px; }
.studio .st-kontakt-zeile {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 8px 12px;
  border-radius: 12px;
  background: var(--st-s2);
  color: var(--st-text);
}
.studio .st-kontakt-zeile > .st-ic { color: var(--st-text-3); }
.studio .st-kontakt-wert { display: grid; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-kontakt-wert small { font-size: 11.5px; color: var(--st-text-3); }
/* Die Adresse kürzt mit Auslassung — ein Grid-Kind trägt `text-overflow` nur selbst. */
.studio .st-kontakt-wert > span, .studio .st-kontakt-wert > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-kontakt-wert a { text-decoration: none; }
.studio .st-mehr-liste { display: grid; gap: 4px; }
.studio .st-mehr-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  background: none;
  border: 0;
  color: var(--st-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  width: 100%;
  min-width: 0;
}
.studio .st-mehr-link:hover, .studio .st-mehr-link[aria-current="page"] { background: var(--st-s2); }
.studio .st-mehr-link small { color: var(--st-text-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.studio .st-mehr-kontakt { flex-wrap: wrap; height: auto; min-height: 48px; padding-block: 8px; row-gap: 2px; }
.studio .st-mehr-kontakt .st-kontakt-label { flex-basis: 100%; order: -1; margin-left: 0; font-size: 11px; }
.studio .st-dlg .st-einst { margin-top: 4px; }

/* ---------- Toasts ---------- */
.studio .st-toasts {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 32px);
}
.studio .st-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--st-tip-bg);
  color: var(--st-tip-fg);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 13.5px;
  box-shadow: var(--st-schatten-gross);
  animation: st-runter 0.2s ease both;
}
@keyframes st-runter { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.studio .st-toast .st-ic { width: 16px; height: 16px; color: #13744b; }
.studio .st-toast--info .st-ic { color: var(--st-coco); }
:root[data-theme="light"] .studio .st-toast .st-ic { color: #6ddcaa; }
:root[data-theme="light"] .studio .st-toast--info .st-ic { color: var(--st-coco-hell); }
@media (max-width: 719px) { .studio .st-toasts { top: 64px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Welle 2 (2026-10-24): Seite „Inhalte" und Leistungs-Panel
   Vorlage: `app.css` des Entwurfs, Abschnitte Werkzeugleiste, Board, Tabellen,
   Panels.
   ═══════════════════════════════════════════════════════════════════════════ */
.studio .st-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.studio .st-nowrap { white-space: nowrap; }
.studio .st-r { text-align: right; }
.studio .st-seiten-sub { color: var(--st-text-3); font-size: 14px; }

/* ---------- Werkzeugleiste ---------- */
.studio .st-segment { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--st-s1); border: 1px solid var(--st-linie); }
.studio .st-segment button {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--st-text-2);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.studio .st-segment button .st-ic { width: 16px; height: 16px; }
.studio .st-segment button:hover { color: var(--st-text); }
.studio .st-segment button[aria-selected="true"] { background: var(--st-s3); color: var(--st-text); font-weight: 600; }
/* ---------- Board ---------- */
.studio .st-board-kasten { position: relative; overflow-x: auto; padding-bottom: 8px; }
.studio .st-board { display: grid; grid-template-columns: repeat(var(--st-spalten, 4), minmax(212px, 1fr)); gap: 14px; align-items: start; }
.studio .st-spalte { background: var(--st-nav-bg); border: 1px solid var(--st-linie); border-radius: 16px; padding: 10px; display: grid; gap: 10px; min-width: 0; }
.studio .st-spalte-kopf { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; font-weight: 600; font-size: 13px; }
.studio .st-spalte-kopf .st-zaehler { margin-left: auto; }
.studio .st-spalte-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--st-text-3); flex: none; }
.studio .st-spalte--freigabe .st-spalte-punkt { background: var(--st-coco-hell); }
.studio .st-spalte--bereit .st-spalte-punkt { background: var(--st-carlo); }
.studio .st-spalte--veroeffentlicht .st-spalte-punkt { background: var(--st-chip-gruen-fg); }
.studio .st-spalte--storniert { opacity: 0.7; }
.studio .st-spalte--storniert .st-lk-titel { text-decoration: line-through; text-decoration-color: var(--st-text-3); }
/* Storniert zählt nie (B2): der Betrag steht durchgestrichen da. */
.studio .st-lk--storniert .st-lk-betrag { text-decoration: line-through; color: var(--st-text-3); }
/* Kontext (B1): eine Leistung aus einer anderen Vereinbarung, die nur für ihre
   passenden Add-ons dasteht — gedämpft, ohne eigenen Betrag. */
.studio .st-lk--kontext { opacity: 0.62; }
.studio .st-lk--kontext:hover { opacity: 0.85; }
.studio .st-spalte-leer { padding: 14px; text-align: center; color: var(--st-text-3); font-size: 13px; border: 1px dashed var(--st-linie-2); border-radius: 12px; }
.studio .st-lk {
  display: grid;
  gap: 7px;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  background: var(--st-s1);
  border: 1px solid var(--st-linie);
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.studio button.st-lk:hover { border-color: var(--st-linie-2); transform: translateY(-1px); box-shadow: var(--st-schatten); }
.studio .st-lk--skel { gap: 10px; }
/* Die ruhige Art-Kachel: die Nutzlast trägt keine Vorschaubilder. */
.studio .st-lk-kachel { display: grid; place-items: center; height: 64px; border-radius: 8px; background: var(--st-s2); color: var(--st-text-3); }
.studio .st-lk-kachel svg { width: 24px; height: 24px; }
.studio .st-lk-kopf { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-text-3); font-weight: 500; min-width: 0; }
.studio .st-lk-handle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.studio .st-lk-zusatz { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--st-s2); color: var(--st-text-2); flex: none; }
.studio .st-lk-titel { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.studio .st-lk-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--st-text-2); }
.studio .st-lk-addon { font-size: 12px; color: var(--st-text-3); }
.studio .st-lk-frist { display: flex; }
.studio .st-lk-marken { display: flex; gap: 6px; padding-top: 9px; margin-top: 2px; border-top: 1px solid var(--st-linie); }
.studio .st-marke { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--st-text-3); opacity: 0.38; }
.studio .st-marke .st-ic { width: 15px; height: 15px; }
.studio .st-marke--an { opacity: 1; color: var(--st-text-2); background: var(--st-s2); }
.studio .st-marke--coco { opacity: 1; color: var(--st-chip-coco-fg); background: var(--st-chip-coco-bg); }
.studio .st-marke--gruen { opacity: 1; color: var(--st-chip-gruen-fg); background: var(--st-chip-gruen-bg); }
@media (max-width: 719px) {
  .studio .st-board { grid-template-columns: repeat(var(--st-spalten, 4), 78%); }
}

/* ---------- Listen (Runde 13f/13t): Bänder, Datumskachel → Vorschau → Titel → Status → Betrag ---------- */
/* Wie die Web-Fassung des Angebots. Auf dem Telefon rutschen die Status-Chips unter den Titel. */
.studio .st-seiten-kopf--schalter { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.studio .st-seiten-kopf--schalter > div:first-child { display: grid; gap: 4px; }
.studio .st-lz-karte { padding: 14px; display: grid; gap: 14px; min-width: 0; }
.studio .st-lz-gruppe { display: grid; gap: 4px; }
.studio .st-lz-band { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 9px; background: var(--st-s2); border: 1px solid var(--st-linie); }
.studio .st-lz-band > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--st-text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.studio .st-lz-band-rechts { font-size: 12px; color: var(--st-text-3); white-space: nowrap; }
.studio .st-lz-band-rechts b { color: var(--st-text-2); font-weight: 600; }
.studio .st-lz-liste { display: grid; }
.studio .st-lz-liste > li + li { border-top: 1px solid var(--st-linie); }
.studio .st-lz { width: 100%; display: grid; grid-template-columns: 52px 48px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 8px; background: none; border: 0; text-align: left; border-radius: 10px; color: var(--st-text); }
.studio .st-lz:hover { background: color-mix(in srgb, var(--st-text) 4%, transparent); }
.studio .st-lz-tag { position: relative; justify-self: center; width: 44px; height: 46px; border-radius: 10px; background: var(--st-s2); border: 1px solid var(--st-linie); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.studio .st-lz-tag b { font-size: 17px; font-weight: 700; }
.studio .st-lz-tag small { font-size: 11px; color: var(--st-text-3); font-weight: 500; }
.studio .st-lz-tag--haken { color: var(--st-chip-gruen-fg); background: var(--st-chip-gruen-bg); border-color: transparent; }
.studio .st-lz-tag--haken .st-ic { width: 20px; height: 20px; }
.studio .st-lz-marke { position: absolute; right: -9px; bottom: -8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2.5px var(--st-s1); background: var(--st-s2); }
.studio .st-lz-marke .st-plattform, .studio .st-lz-marke .st-plattform svg { width: 22px; height: 22px; border-radius: 7px; }
.studio .st-lz-marke > .st-ic { width: 13px; height: 13px; stroke-width: 2.5; }
/* Gruppen-Marke der Freigaben: deckende Fläche in der Farbe der Gruppe (Runde 13t). */
.studio .st-lz-marke--warte { background: color-mix(in srgb, var(--st-chip-coco-fg) 24%, var(--st-s2)); color: var(--st-chip-coco-fg); }
.studio .st-lz-marke--arbeit { background: color-mix(in srgb, var(--st-chip-carlo-fg) 24%, var(--st-s2)); color: var(--st-chip-carlo-fg); }
.studio .st-lz-marke--frei { background: color-mix(in srgb, var(--st-chip-gruen-fg) 24%, var(--st-s2)); color: var(--st-chip-gruen-fg); }
.studio .st-lz-bild { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: var(--st-s2); display: grid; place-items: center; color: var(--st-text-3); }
.studio .st-lz-bild img { width: 100%; height: 100%; object-fit: cover; }
.studio .st-lz-bild svg { width: 20px; height: 20px; }
.studio .st-lz-text { display: grid; gap: 2px; min-width: 0; }
.studio .st-lz-text b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.studio .st-lz-text small { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-lz-status { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.studio .st-lz-betrag { font-weight: 600; white-space: nowrap; text-align: right; }
.studio .st-lz-betrag small { display: block; font-size: 11.5px; font-weight: 400; color: var(--st-text-3); }
.studio .st-lz-pfeil { width: 16px; height: 16px; color: var(--st-text-3); }
.studio .st-lz-zeile--storniert .st-lz-text b, .studio .st-lz-zeile--storniert .st-lz-betrag { text-decoration: line-through; text-decoration-color: var(--st-text-3); color: var(--st-text-3); }
.studio .st-lz-zeile--kontext .st-lz { opacity: 0.62; }
.studio .st-lz-zusaetze { display: grid; gap: 6px; padding: 0 8px 12px calc(52px + 48px + 28px + 8px); }
.studio .st-lz-zusatz { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--st-s2); border: 1px solid var(--st-linie); }
.studio .st-lz-zusatz-pfeil { color: var(--st-text-3); font-size: 13px; line-height: 1; }
.studio .st-lz-zusatz-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.studio .st-lz-zusatz-text b { font-weight: 600; font-size: 13px; }
.studio .st-lz-zchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--st-text-2); padding: 1px 7px; border-radius: 999px; background: var(--st-s3); }
.studio .st-lz-zchip .st-ic { width: 11px; height: 11px; }
.studio .st-lz-zusatz-betrag { font-weight: 500; font-size: 13px; color: var(--st-text-2); white-space: nowrap; }
.studio .st-lz-zusatz--storniert .st-lz-zusatz-text b, .studio .st-lz-zusatz--storniert .st-lz-zusatz-betrag { text-decoration: line-through; color: var(--st-text-3); }
/* Abrechnung: Summenblock unter den Positionen (Runde 13h). */
.studio .st-summenblock { border-radius: 10px; border: 1px solid var(--st-linie); overflow: hidden; }
.studio .st-summenblock > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 13.5px; }
.studio .st-summenblock > div + div { border-top: 1px solid var(--st-linie); }
.studio .st-summenblock--unter { color: var(--st-text-3); font-size: 12.5px !important; padding-left: 26px !important; }
.studio .st-summenblock--hinweis { color: var(--st-text-3); font-size: 12.5px !important; }
.studio .st-summenblock--gesamt { background: var(--st-s2); font-weight: 600; font-size: 15px !important; }
.studio .st-summenblock--gesamt small { font-weight: 400; color: var(--st-text-3); font-size: 11.5px; }
@media (max-width: 719px) {
  .studio .st-lz-karte { padding: 8px; }
  .studio .st-lz { grid-template-columns: 48px 44px minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 4px; }
  .studio .st-lz > .st-lz-tag, .studio .st-lz > .st-lz-bild { grid-row: 1 / span 2; }
  .studio .st-lz > .st-lz-text { grid-column: 3; grid-row: 1; align-self: end; }
  .studio .st-lz > .st-lz-status { grid-column: 3 / -1; grid-row: 2; align-self: start; justify-content: flex-start; }
  .studio .st-lz > .st-lz-status:empty { display: none; }
  .studio .st-lz > .st-lz-betrag { grid-column: 4; grid-row: 1; }
  .studio .st-lz-tag { width: 40px; height: 42px; }
  .studio .st-lz-zusaetze { padding-left: 0; }
}

/* ---------- Leistungs-Panel: feste Fläche links, Panel rechts ---------- */
.studio .st-ebene { position: absolute; inset: 0; z-index: 40; display: flex; outline: none; }
.studio .st-flaeche { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--st-flaeche); animation: st-blende 0.2s ease both; }
.studio .st-telefon {
  position: relative;
  height: min(100cqh, 100cqw * 16 / 9, 760px);
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 0;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--st-schatten-gross);
}
.studio .st-telefon img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.studio .st-bild-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 18, 24, 0.6); color: #fff; }
.studio .st-bild-play .st-ic { width: 22px; height: 22px; fill: currentColor; }
.studio .st-vorschau-skel { border-radius: 12px; }
.studio .st-leer-flaeche { display: grid; justify-items: center; gap: 10px; color: var(--st-text-3); text-align: center; }
.studio .st-leer-flaeche svg { width: 36px; height: 36px; stroke-width: 1.5; }
.studio .st-panel {
  width: 520px;
  flex: none;
  background: var(--st-s1);
  border-left: 1px solid var(--st-linie);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: st-rein-rechts 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes st-rein-rechts { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.studio .st-panel-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 16px 16px 24px; border-bottom: 1px solid var(--st-linie); }
.studio .st-panel-kopf .st-stapel { margin-top: 2px; }
.studio .st-panel-titel { font-size: 19px; font-weight: 600; line-height: 1.25; outline: none; overflow-wrap: anywhere; }
.studio .st-panel-kopf .st-chips { margin-top: 6px; }
.studio .st-panel-x { margin-top: -4px; }
.studio .st-panel-koerper { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px 8px; overscroll-behavior: contain; }
.studio .st-panel-fuss { padding: 14px 24px; border-top: 1px solid var(--st-linie); background: var(--st-s1); }
.studio .st-knopfreihe--eins { grid-template-columns: minmax(0, 1fr); }
.studio .st-text { color: var(--st-text-2); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.studio .st-reihen { display: grid; gap: 8px; }
.studio .st-reihe {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--st-s2);
  border: 1px solid var(--st-linie);
  width: 100%;
  min-width: 0;
  text-align: left;
  color: var(--st-text);
  transition: border-color 0.15s;
}
.studio button.st-reihe:hover { border-color: var(--st-linie-2); }
.studio .st-reihe--statisch { cursor: default; }
.studio .st-reihe-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--st-s3); display: grid; place-items: center; color: var(--st-text-2); flex: none; }
.studio .st-reihe-icon--coco { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-reihe-icon--gruen { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-reihe-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.studio .st-reihe-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-reihe-text small { color: var(--st-text-3); font-size: 12.5px; }
.studio .st-fehlt { padding: 16px 0 20px; color: var(--st-text-3); font-size: 12.5px; }
/* Die Insights-Galerie ist die des alten Panels (`InsightsSection`) — nur ihr
   Rahmen ist hier ein Abschnitt; ihre Bausteine stylt `style.css`. */
.studio .st-insights { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 759px) {
  .studio .st-flaeche { display: none; }
  .studio .st-panel { width: 100%; border-left: 0; }
  .studio .st-panel-koerper { padding: 0 16px 8px; }
  .studio .st-panel-kopf { padding: 14px 10px 14px 16px; }
  .studio .st-panel-fuss { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .studio .st-panel, .studio .st-flaeche { animation: none; }
  .studio button.st-lk:hover { transform: none; }
}

/* ---------- Leistungs-Panel Runde 13 (2026-10-29): Rahmen wie die App-Panels ----------
   Panel auf Kartengrund mit leichtem Schatten, nur der Kopf auf Seitengrund; Felder und Kacheln eine Stufe heller.
   Links der Betrachter wie im Management: Kopf mit Icon-Kachel und Umschaltern, Unterkopf mit Info und Werkzeug,
   die Bühne rechnet die Höhe der Vorschau aus dem, was darunter steht (Thumbnails direkt an der Vorschau). */
.studio { --st-feld: color-mix(in srgb, var(--st-text) 4%, var(--st-s1)); --st-panel-schatten: -18px 0 44px rgba(0, 0, 0, 0.5); }
:root[data-theme="light"] .studio { --st-feld: color-mix(in srgb, var(--st-text) 3%, var(--st-s1)); --st-panel-schatten: -18px 0 44px rgba(28, 26, 26, 0.12); }
.studio .st-flaeche--r13 { background: var(--st-flaeche-tief); }
.studio .st-panel--r13 { background: var(--st-s1); box-shadow: var(--st-panel-schatten); position: relative; z-index: 1; }
.studio .st-panel--r13 .st-panel-fuss { background: var(--st-s1); display: grid; gap: 10px; }
.studio .st-panel-kopf2 { background: var(--st-bg); padding: 16px 20px 0 24px; }
.studio .st-kopf2-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.studio .st-kopf2-zeile .st-stapel { margin-top: 2px; }
.studio .st-kopf2-text { display: grid; gap: 3px; min-width: 0; }
.studio .st-augenbraue { font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-panel--r13 .st-panel-titel { font-size: 20px; font-weight: 600; line-height: 1.2; }
.studio .st-panel--r13 .st-panel-koerper { padding: 0 24px 8px; }
/* Stepper: Kartengrund, Trennlinie zum Kopf, je Phase eine gleich dicke Unterkante (Runde 13e). */
.studio .st-phasen { display: flex; margin: 16px -20px 0 -24px; padding: 0; background: var(--st-s1); border-top: 1px solid var(--st-linie); }
.studio .st-phase { flex: 1 1 0; min-width: 0; text-align: center; padding: 12px 8px 8px; font-size: 12px; line-height: 1.25; color: var(--st-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 3px solid color-mix(in srgb, var(--st-text) 6%, transparent); }
.studio .st-phase--fertig { border-bottom-color: color-mix(in srgb, var(--st-akzent) 45%, transparent); }
.studio .st-phase--jetzt { border-bottom-color: var(--st-akzent); color: var(--st-text); font-weight: 500; }
.studio .st-phase--storno { border-bottom-color: var(--st-chip-peppa-fg); color: var(--st-chip-peppa-fg); font-weight: 500; }
.studio .st-phase--aus { opacity: 0.5; }
/* Sektionen mit Icon-Kachel, Trenner über die volle Breite */
.studio .st-sektion { margin: 0 -24px; padding: 18px 24px; border-bottom: 1px solid var(--st-linie); display: grid; gap: 14px; min-width: 0; }
.studio .st-sektion:last-child { border-bottom: 0; }
.studio .st-sektion-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.studio .st-sektion-kopf h3 { font-size: 13px; font-weight: 600; line-height: 1.2; }
.studio .st-sektion-zusatz { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.studio .st-unterblock { display: grid; gap: 8px; }
/* Felder wie im Management */
.studio .st-mfelder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studio .st-mfelder--kompakt { gap: 8px 10px; }
.studio .st-mfeld { display: grid; gap: 6px; min-width: 0; }
.studio .st-mfelder--kompakt .st-mfeld { gap: 4px; }
.studio .st-mfeld-label { display: flex; align-items: baseline; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-text-3); }
.studio .st-mfeld-wert { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; border-radius: 8px; background: var(--st-feld); border: 1px solid var(--st-linie); font-size: 13.5px; min-width: 0; }
.studio .st-mfelder--kompakt .st-mfeld-wert { min-height: 32px; font-size: 13px; padding: 0 9px; }
.studio .st-mfeld-wert > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-mfeld-wert > .st-ic { width: 15px; height: 15px; color: var(--st-text-3); }
.studio .st-mfeld-mit-zeichen { display: inline-flex; align-items: center; gap: 8px; }
.studio .st-mfeld-wert--text { align-items: flex-start; padding: 9px 8px 9px 11px; }
.studio .st-mfeld-wert--text > span, .studio .st-textfeld-inhalt { white-space: pre-wrap; overflow: visible; line-height: 1.55; font-size: 13.5px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.studio .st-textfeld--zu .st-textfeld-inhalt { max-height: calc(1.55em * 4); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.studio .st-feld-icon { margin-left: auto; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--st-text-3); }
.studio .st-feld-icon:hover { color: var(--st-text); background: var(--st-s2); }
.studio .st-feld-icon .st-ic { width: 15px; height: 15px; }
.studio .st-mehr-knopf { justify-self: start; }
.studio .st-mehr-knopf .st-ic { transition: transform 0.15s; }
.studio .st-gedreht { transform: rotate(180deg); }
.studio .st-frist { font-weight: 500; }
.studio .st-frist--bald { color: var(--st-chip-carlo-fg); }
.studio .st-frist--ueber { color: var(--st-chip-peppa-fg); }
.studio .st-frist--ok { color: var(--st-text-3); font-weight: 400; }
.studio .st-panel--r13 .st-reihe { background: var(--st-feld); }
/* Kennzahlen mit Icons, gruppiert; die Kacheln füllen die Breite (2 → 50/50, 4 → 2×2, 5 → 3 + 2) */
.studio .st-metrik { background: var(--st-feld); border: 1px solid var(--st-linie); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.studio .st-metrik-kopf { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--st-text-3); min-width: 0; }
.studio .st-metrik-kopf .st-ic { width: 14px; height: 14px; flex: none; }
.studio .st-metrik-kopf span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-metrik > b { font-size: 18px; font-weight: 600; margin-top: 2px; }
.studio .st-metrik--klein { padding: 8px 10px; }
.studio .st-metrik--klein > b { font-size: 15px; }
.studio .st-metrik--berechnet small { font-size: 10.5px; color: var(--st-text-3); }
.studio .st-metrik--berechnet .st-metrik-kopf .st-ic { color: var(--st-chip-coco-fg); }
.studio .st-summen4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.studio .st-kpi-gruppe { display: grid; gap: 8px; }
.studio .st-kpi-raster { display: flex; flex-wrap: wrap; gap: 8px; }
.studio .st-kpi-raster > .st-metrik { flex: 1 1 calc(33.333% - 6px); }
.studio .st-kpi-raster--4 > .st-metrik, .studio .st-kpi-raster--2 > .st-metrik { flex-basis: calc(50% - 4px); }
.studio .st-kpi-gruppe--interaktion .st-kpi-raster--5 > .st-metrik:first-child { flex-basis: 100%; }
.studio .st-kpi-gruppe--interaktion .st-kpi-raster--5 > .st-metrik:not(:first-child) { flex-basis: calc(50% - 4px); }
.studio .st-kpi-notiz { font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--st-text-3); }
.studio .st-quellbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--st-s1); border: 1px solid var(--st-linie); border-radius: 10px; }
.studio .st-quellbox > div { display: grid; gap: 4px; align-content: start; padding: 10px 12px; min-width: 0; }
.studio .st-quellbox > div + div { border-left: 1px solid var(--st-linie); }
.studio .st-quellbox b { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
/* Betrachter */
.studio .st-viewer2 { width: 100%; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.studio .st-v-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--st-linie); flex-wrap: wrap; min-height: 57px; }
.studio .st-v-titel { font-size: 15px; font-weight: 600; }
.studio .st-v-schalter { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.studio .st-segment--klein { padding: 2px; border-radius: 9px; }
.studio .st-segment--klein button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.studio .st-segment button[aria-pressed="true"] { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); font-weight: 600; }
.studio .st-segment--klein .st-ic { width: 14px; height: 14px; }
.studio .st-v-unterkopf { display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--st-linie); }
.studio .st-v-info { display: flex; align-items: center; gap: 9px; min-width: 0; }
.studio .st-v-info > svg { width: 16px; height: 16px; color: var(--st-text-3); flex: none; }
.studio .st-v-info b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-v-info small { display: block; font-size: 11.5px; color: var(--st-text-3); }
.studio .st-v-knoepfe { margin-left: auto; display: flex; gap: 6px; }
.studio .st-stage { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 20px 14px; }
.studio .st-stage > .st-viewer, .studio .st-stage > .st-viewer-mitte { flex: 1 1 0; min-height: 0; width: 100%; padding: 0; }
.studio .st-v-flaeche { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.studio .st-phone-knopf { padding: 0; border: 0; cursor: pointer; }
.studio .st-phone-knopf > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio .st-phone--hell { background: #fff; }
.studio .st-phone-leer { position: absolute; inset: 0; display: grid; place-items: center; color: var(--st-text-3); }
/* Thumbnails direkt unter der Vorschau, mit Nummer bzw. Uhrzeit */
.studio .st-strip { max-width: 100%; overflow-x: auto; flex: none; }
.studio .st-strip ul { display: flex; gap: 8px; justify-content: center; padding: 2px 2px 4px; width: max-content; min-width: 100%; }
.studio .st-strip-thumb { width: 64px; display: flex; flex-direction: column; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--st-linie); background: var(--st-s1); text-align: left; }
.studio .st-strip-thumb:hover { border-color: var(--st-linie-2); }
.studio .st-strip-thumb[aria-current="true"] { border-color: var(--st-text-2); box-shadow: 0 0 0 1px var(--st-linie-2); }
.studio .st-strip-bild { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--st-s2); color: var(--st-text-3); }
.studio .st-strip-bild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio .st-strip-bild > .st-ic { width: 16px; height: 16px; }
.studio .st-strip-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.studio .st-strip-play .st-ic { width: 14px; height: 14px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.studio .st-strip-badge { position: absolute; top: 4px; right: 4px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--st-chip-carlo-fg); color: #1c1a1a; font-size: 10.5px; font-weight: 700; }
.studio .st-strip-badge .st-ic { width: 10px; height: 10px; }
.studio .st-strip-label { display: block; font-size: 10px; padding: 4px 6px; border-top: 1px solid var(--st-linie); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--st-text-2); }
.studio .st-strip--skelett .st-strip-thumb { border-style: dashed; cursor: default; }
/* Video: Punkte auf der Zeitleiste, wo Rückmeldungen hängen */
.studio .st-video-spur { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.studio .st-video-spur > .st-video-balken { width: 100%; }
.studio .st-video-marken { position: absolute; left: 7px; right: 7px; top: 50%; height: 0; pointer-events: none; }
.studio .st-video-marke { position: absolute; top: 0; width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #0c0b0e; background: var(--st-chip-carlo-fg); transform: translate(-50%, -50%); pointer-events: auto; }
.studio .st-video-marke:hover { transform: translate(-50%, -50%) scale(1.25); }
/* Leeres Material als Skelett; Events mit Event-Karte */
.studio .st-skelett { background: var(--st-s1); box-shadow: inset 0 0 0 1px var(--st-linie); display: grid; grid-template-rows: auto 1fr auto; padding: 18px 16px; }
.studio .st-skelett i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--st-s2) 0%, var(--st-s3) 50%, var(--st-s2) 100%); background-size: 200% 100%; animation: st-schimmer 1.6s ease-in-out infinite; }
.studio .st-skelett i.st-kurz { width: 55%; }
.studio .st-skelett-oben { display: flex; gap: 8px; }
.studio .st-skelett-oben i { flex: 1; height: 4px; }
.studio .st-skelett-unten { display: grid; gap: 8px; }
.studio .st-skelett-mitte { display: grid; place-items: center; align-content: center; gap: 8px; padding: 0 18px; text-align: center; color: var(--st-text-3); }
.studio .st-skelett-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--st-s2); margin-bottom: 4px; }
.studio .st-skelett-icon svg { width: 24px; height: 24px; }
.studio .st-skelett-mitte b { font-size: 15px; font-weight: 600; color: var(--st-text); }
.studio .st-skelett-mitte small { font-size: 12.5px; line-height: 1.45; max-width: 220px; }
.studio .st-strip--skelett .st-strip-bild { background: linear-gradient(90deg, var(--st-s2) 0%, var(--st-s3) 50%, var(--st-s2) 100%); background-size: 200% 100%; animation: st-schimmer 1.6s ease-in-out infinite; }
.studio .st-event { width: min(100%, 420px); display: grid; justify-items: start; gap: 12px; padding: 28px; border-radius: 18px; background: var(--st-s1); border: 1px solid var(--st-linie); box-shadow: var(--st-schatten); }
.studio .st-event-tag { display: grid; justify-items: center; min-width: 74px; padding: 10px 12px; border-radius: 14px; background: var(--st-s2); border: 1px solid var(--st-linie); }
.studio .st-event-tag b { font-size: 30px; font-weight: 700; line-height: 1.1; }
.studio .st-event-tag small { font-size: 11.5px; color: var(--st-text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.studio .st-event-art { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--st-text-3); }
.studio .st-event-art .st-ic { width: 14px; height: 14px; }
.studio .st-event h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.studio .st-event-hinweis { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--st-text-3); width: 100%; padding-top: 12px; border-top: 1px solid var(--st-linie); }
.studio .st-event-hinweis .st-ic { width: 14px; height: 14px; }
/* Menüs (Herunterladen) */
.studio .st-dl { position: relative; }
.studio .st-dl > .st-knopf { gap: 2px; }
.studio .st-dl > .st-knopf .st-ic + .st-ic { width: 12px; height: 12px; }
.studio .st-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--st-s1); border: 1px solid var(--st-linie-2); box-shadow: var(--st-schatten); display: grid; gap: 2px; }
.studio .st-menue > button { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 0; background: none; font-size: 13px; text-align: left; }
.studio .st-menue > button:hover { background: var(--st-s2); }
.studio .st-menue > button .st-ic { width: 15px; height: 15px; color: var(--st-text-3); }
.studio .st-menue small { grid-column: 2; font-size: 11.5px; color: var(--st-text-3); }
.studio .st-ins-dl { min-width: 290px; padding: 0 6px 6px; overflow: hidden; }
.studio .st-menue-titel { display: block; padding: 8px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-text-3); }
.studio .st-dl-schritte { display: flex; margin: 0 -6px 4px; }
.studio .st-dl-schritte .st-phase { padding: 10px 8px 8px; }
.studio .st-dl-schritte button { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 0; border: 0; background: none; font-size: inherit; color: var(--st-text-2); }
.studio .st-dl-schritte .st-ic { width: 13px; height: 13px; color: var(--st-akzent); }
.studio .st-menue > .st-dl-eintrag { grid-template-columns: 18px minmax(0, 1fr) 14px; row-gap: 1px; }
.studio .st-dl-eintrag > b { font-weight: 500; }
/* Rückmeldungen: alle Dateien, die gezeigte zuerst; Fäden als Karten */
.studio .st-sektion--rm { gap: 12px; }
.studio .st-rm-liste { display: grid; gap: 14px; }
.studio .st-rm-gruppe { display: grid; gap: 8px; }
.studio .st-rm-gruppe-kopf { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--st-text-2); font-size: 12.5px; text-align: left; }
.studio .st-rm-gruppe-kopf img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.studio .st-rm-gruppe-kopf[aria-current="true"] b { color: var(--st-text); }
.studio .st-rm-aktuell { margin-left: auto; font-size: 11px; color: var(--st-chip-coco-fg); }
.studio .st-km-faden { display: grid; border-radius: 12px; background: var(--st-feld); border: 1px solid var(--st-linie); overflow: hidden; }
.studio .st-km { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
.studio .st-km--antwort { padding-left: 54px; border-top: 1px solid var(--st-linie); position: relative; }
.studio .st-km--antwort::before { content: ''; position: absolute; left: 28px; top: 0; height: 22px; width: 14px; border-left: 1.5px solid var(--st-linie-2); border-bottom: 1.5px solid var(--st-linie-2); border-bottom-left-radius: 8px; }
.studio .st-km-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--st-s3); color: var(--st-text); }
.studio .st-km--kunde .st-km-av { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-km-inhalt { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.studio .st-km-kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; width: 100%; }
.studio .st-km-rolle { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--st-s2); color: var(--st-text-3); }
.studio .st-km--kunde .st-km-rolle { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-km-kopf time { margin-left: auto; font-size: 11.5px; color: var(--st-text-3); }
.studio .st-km p { font-size: 13.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.studio .st-km-marke { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; margin-right: 4px; border-radius: 6px; border: 0; background: var(--st-chip-carlo-bg); color: var(--st-chip-carlo-fg); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.studio .st-km-marke .st-ic { width: 10px; height: 10px; }
.studio .st-km-antworten { font-size: 12px; }
.studio .st-rm-leer { display: grid; justify-items: center; gap: 6px; padding: 20px 16px; border-radius: 12px; border: 1px dashed var(--st-linie-2); text-align: center; color: var(--st-text-3); }
.studio .st-rm-leer .st-ic { width: 22px; height: 22px; }
.studio .st-rm-leer b { color: var(--st-text-2); font-size: 13.5px; font-weight: 600; }
.studio .st-rm-leer small { font-size: 12.5px; max-width: 320px; }
/* Fuss der Freigabe: Eingabe fest unten, darunter Zurück 40 % | Freigeben 60 % */
.studio .st-fg-fuss { display: grid; gap: 10px; }
.studio .st-rm-eingabe { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--st-feld); border: 1px solid var(--st-linie-2); transition: border-color 0.15s, box-shadow 0.15s; }
.studio .st-rm-eingabe:focus-within { border-color: color-mix(in srgb, var(--st-akzent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-akzent) 18%, transparent); }
.studio .st-rm-ziel { display: flex; flex-wrap: wrap; gap: 5px; }
.studio .st-rm-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--st-s2); border: 1px solid var(--st-linie); color: var(--st-text-2); font-size: 11.5px; }
.studio .st-rm-chip .st-ic { width: 13px; height: 13px; color: var(--st-text-3); }
.studio .st-rm-chip-x { display: grid; place-items: center; width: 18px; height: 18px; margin-right: -4px; border: 0; border-radius: 50%; background: none; color: var(--st-text-3); }
.studio .st-rm-zeit[aria-pressed="true"] { background: var(--st-chip-carlo-bg); border-color: transparent; color: var(--st-chip-carlo-fg); }
.studio .st-rm-zeit[aria-pressed="true"] .st-ic { color: inherit; }
.studio textarea.st-rm-text { min-height: 44px; max-height: 140px; field-sizing: content; resize: none; background: transparent; border: 0; padding: 2px; box-shadow: none; }
.studio textarea.st-rm-text:focus { box-shadow: none; }
.studio .st-rm-fuss { display: flex; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px solid var(--st-linie); }
.studio .st-rm-fuss > .st-knopf { margin-left: auto; }
.studio .st-rm-als { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-rm-als b { color: var(--st-text-2); }
.studio .st-rm-name { height: 32px; max-width: 200px; font-size: 13px; padding: 0 10px; }
.studio .st-knopfreihe--40 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.studio .st-knopfreihe--40.st-knopfreihe--eins { grid-template-columns: minmax(0, 1fr); }
.studio .st-kopf2-linie { margin: 16px -20px 0 -24px; border-top: 1px solid var(--st-linie); }
.studio .st-v-flaeche--pdf { padding: 0; align-items: stretch; }
.studio .st-v-flaeche--pdf > * { flex: 1; min-width: 0; }
.studio .st-v-flaeche--pdf > .st-leer-flaeche { flex: none; align-self: center; margin: auto; }
.studio .st-mobil-buehne { margin: 0 -16px; height: min(94svh, 860px); background: var(--st-flaeche-tief); }
@media (max-width: 759px) {
  .studio .st-panel--r13 { box-shadow: none; }
  .studio .st-panel-kopf2 { padding: 14px 10px 0 16px; }
  .studio .st-phasen { margin: 12px -10px 0 -16px; overflow-x: auto; }
  .studio .st-phase { font-size: 11px; padding: 10px 6px 7px; }
  .studio .st-panel--r13 .st-panel-koerper { padding: 0 16px 8px; }
  .studio .st-sektion { margin: 0 -16px; padding: 16px; }
  .studio .st-mfelder { grid-template-columns: minmax(0, 1fr); }
  .studio .st-kpi-raster > .st-metrik { flex-basis: calc(50% - 4px); }
  .studio .st-summen4 { gap: 6px; }
  .studio .st-metrik--klein { padding: 6px 8px; }
  .studio .st-metrik--klein > b { font-size: 13.5px; }
  .studio .st-metrik--klein .st-metrik-kopf span { display: none; }
  .studio .st-v-kopf, .studio .st-v-unterkopf { padding-left: 12px; padding-right: 12px; }
  .studio .st-stage { padding: 10px 6px 12px; }
  .studio .st-mobil-buehne .st-viewer { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio .st-skelett i, .studio .st-strip--skelett .st-strip-bild { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Welle 3 (2026-10-24): Seite „Freigaben" und Review-Studio
   Vorlage: `app.css` des Entwurfs, Abschnitte Freigaben (`.fz`) und
   Review-Studio (`.ebene-studio`).
   ═══════════════════════════════════════════════════════════════════════════ */
.studio .st-ic--voll { fill: currentColor; stroke: none; }

/* ---------- Freigaben (Runde 13): Gruppen als Bänder bzw. Spalten, je mit Icon in ihrer Farbe ---------- */
.studio .st-fg-band-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.studio .st-fg-band-icon .st-ic { width: 14px; height: 14px; }
.studio .st-fg-band--warte .st-fg-band-icon, .studio .st-fg-gruppe--warte .st-fg-band-icon { color: var(--st-chip-coco-fg); }
.studio .st-fg-band--arbeit .st-fg-band-icon, .studio .st-fg-gruppe--arbeit .st-fg-band-icon { color: var(--st-chip-carlo-fg); }
.studio .st-fg-band--frei .st-fg-band-icon, .studio .st-fg-gruppe--frei .st-fg-band-icon { color: var(--st-chip-gruen-fg); }

/* ---------- Review-Studio: Vollbild mit eigener fester Fläche ---------- */
.studio .st-review {
  display: grid;
  background: var(--st-s1);
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "buehne kopf" "buehne koerper" "buehne fuss";
  animation: st-blende 0.2s ease both;
}

/* Betrachter: Pfeile links/rechts, der Rahmen in der Mitte */
.studio .st-viewer { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 0 20px 18px; min-height: 0; min-width: 0; }
.studio .st-viewer > .st-leer-flaeche { grid-column: 1 / -1; justify-self: center; }
.studio .st-viewer > .st-leer-flaeche .st-ic { width: 36px; height: 36px; }
.studio .st-viewer-pfeil { border-radius: 50%; }
.studio .st-viewer-mitte { height: 100%; min-height: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.studio .st-viewer-mitte--voll { align-items: stretch; }
.studio .st-viewer-mitte--voll > .st-leer-flaeche { align-self: center; }
.studio .st-phone-kasten { flex: 1; min-height: 0; width: 100%; container-type: size; display: flex; align-items: center; justify-content: center; }
.studio .st-phone {
  position: relative;
  height: min(100cqh, 100cqw * 16 / 9, 760px);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--st-schatten-gross);
  touch-action: pan-y;
}
.studio .st-phone--datei { border-radius: 10px; }
.studio .st-phone > img, .studio .st-phone > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio .st-phone--datei > img, .studio .st-phone--datei > video { object-fit: contain; }
.studio .st-phone-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 10, 14, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  z-index: 3;
  transition: transform 0.15s, background 0.15s;
}
.studio .st-phone-play:hover { transform: translate(-50%, -50%) scale(1.05); background: rgba(114, 67, 232, 0.85); }
.studio .st-phone-play .st-ic { width: 24px; height: 24px; margin-left: 3px; }
.studio .st-datei-info { font-size: 12.5px; color: var(--st-text-3); }

/* Beitrag: Story/Reel — Absender oben, Caption unten, auf dem Motiv */
.studio .st-ig { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-size: 12px; z-index: 2; pointer-events: none; }
.studio .st-ig button { pointer-events: auto; }
.studio .st-ig-oben { background: linear-gradient(rgba(0, 0, 0, 0.5), transparent); padding-bottom: 24px; }
.studio .st-ig-unten { padding: 48px 48px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.66)); display: grid; gap: 4px; justify-items: start; }
.studio .st-ig-segmente { display: flex; gap: 3px; padding: 10px 10px 0; }
.studio .st-ig-segmente span { flex: 1; height: 2.5px; background: rgba(255, 255, 255, 0.35); border-radius: 2px; overflow: hidden; }
.studio .st-ig-segmente i { display: block; height: 100%; background: #fff; }
.studio .st-ig-wer { display: flex; align-items: center; gap: 8px; padding: 9px 10px; line-height: 1.25; min-width: 0; }
.studio .st-ig-wer img, .studio .st-ig-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.8); flex: none; }
.studio .st-ig-avatar { display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); font-size: 10.5px; font-weight: 700; }
.studio .st-ig-wer b { font-size: 12.5px; font-weight: 600; display: block; }
.studio .st-ig-wer small { display: block; font-size: 10.5px; opacity: 0.88; }
.studio .st-ig-schiene { position: absolute; right: 10px; bottom: 96px; display: grid; gap: 20px; }
.studio .st-ig-schiene .st-ic { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.studio .st-ig-caption {
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.studio .st-ig-caption b { font-weight: 600; }
.studio .st-ig-caption--auf { -webkit-line-clamp: unset; display: block; max-height: 40cqh; overflow-y: auto; }
.studio .st-ig-mehr { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, 0.78); font-weight: 600; font-size: 12px; border-radius: 4px; }

/* Beitrag: Feed — Kopf, Motiv 4:5, Aktionen, Caption darunter */
.studio .st-phone--feed { display: flex; align-items: center; background: #000; }
.studio .st-feed { width: 100%; display: grid; color: #f5f5f5; }
.studio .st-feed .st-ig-wer img, .studio .st-feed .st-ig-avatar { border-color: rgba(255, 255, 255, 0.3); }
.studio .st-feed-motiv { position: relative; aspect-ratio: 4 / 5; background: #0a0a0a; overflow: hidden; }
.studio .st-feed-motiv > img, .studio .st-feed-motiv > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio .st-feed-aktionen { display: flex; gap: 14px; padding: 10px 12px 4px; }
.studio .st-feed-aktionen .st-ic { width: 20px; height: 20px; }
.studio .st-feed-luecke { flex: 1; }
.studio .st-feed-caption { padding: 2px 12px 12px; display: grid; gap: 2px; justify-items: start; font-size: 12px; }
.studio .st-feed-caption .st-ig-caption { text-shadow: none; }
.studio .st-feed-caption .st-ig-mehr { color: rgba(245, 245, 245, 0.6); }

/* Video: eigene Leiste unter dem Rahmen */
.studio .st-video-steuer { display: flex; align-items: center; gap: 10px; width: min(100%, 380px); }
.studio .st-video-steuer .st-ic { width: 14px; height: 14px; }
.studio .st-video-zeit { font-size: 12.5px; color: var(--st-text-2); min-width: 78px; text-align: right; }
.studio .st-video-balken {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(to right, var(--st-coco-hell) var(--st-p, 0%), var(--st-linie-2) var(--st-p, 0%));
  cursor: pointer;
}
.studio .st-video-balken::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--st-coco-hell); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.studio .st-video-balken::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--st-coco-hell); }

/* Rechte Spalte: Abschnitte, Caption, Script, Verlauf */
.studio .st-review .st-panel-kopf { border-bottom: 1px solid var(--st-linie); }
.studio .st-script { line-height: 1.6; color: var(--st-text-2); padding: 12px 14px; border-radius: 12px; background: var(--st-s2); overflow-wrap: anywhere; }
.studio .st-script ul, .studio .st-script ol { padding-left: 18px; list-style: disc; }
.studio .st-script p + p, .studio .st-script p + ul, .studio .st-script ul + p { margin-top: 8px; }
.studio .st-verlauf { display: grid; gap: 0; }
.studio .st-verlauf li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--st-linie); }
.studio .st-verlauf li:last-child { border-bottom: 0; }
.studio .st-verlauf time { color: var(--st-text-3); white-space: nowrap; }

/* Rückmeldung: Faden, Antworten, Zeitmarken, Eingabe */
.studio .st-rolle { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--st-s2); color: var(--st-text-2); }
.studio .st-link-knopf { background: none; border: 0; padding: 2px 0; color: var(--st-akzent-ink); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; }
.studio .st-link-knopf .st-ic { width: 14px; height: 14px; }
.studio .st-link-knopf:hover { text-decoration: underline; }
.studio .st-eingabe { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--st-s2); border: 1px solid var(--st-linie); margin: 4px 0 0; }
.studio .st-eingabe .st-eingabefeld { background: var(--st-s1); }
.studio .st-als { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-als b { color: var(--st-text); font-weight: 600; }
.studio .st-feld { display: grid; gap: 6px; font-size: 12.5px; color: var(--st-text-3); font-weight: 500; margin: 0; text-transform: none; letter-spacing: 0; }
.studio .st-eingabefeld {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--st-s2);
  border: 1px solid var(--st-linie);
  color: var(--st-text);
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  box-shadow: none;
}
.studio .st-eingabefeld:hover { border-color: var(--st-linie-2); }
.studio .st-eingabefeld:focus { border-color: var(--st-coco-hell); outline: none; box-shadow: 0 0 0 3px var(--st-chip-coco-bg); }
.studio textarea.st-eingabefeld { min-height: 76px; }
.studio .st-feld-fehler { color: var(--st-chip-peppa-fg); font-size: 12.5px; font-weight: 500; }
/* iOS zoomt bei Feldern unter 16 px — auf dem Telefon die volle Größe. */
@media (max-width: 719px), (pointer: coarse) {
  .studio .st-eingabefeld { font-size: 16px; }
}

/* Fuß: Entscheidung, Erfolg, ruhige Hinweise */
.studio .st-review-hinweis { display: flex; align-items: center; gap: 8px; color: var(--st-text-2); font-size: 13px; }
.studio .st-review-hinweis .st-ic { color: var(--st-text-3); width: 16px; height: 16px; }
.studio .st-erfolg { display: flex; align-items: center; gap: 12px; padding: 4px 0; animation: st-rein 0.25s ease both; }
.studio .st-erfolg-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); display: grid; place-items: center; flex: none; }
.studio .st-erfolg-icon .st-ic { stroke-width: 2.5; }
.studio .st-erfolg b { display: block; font-size: 15px; font-weight: 600; }
.studio .st-erfolg small { color: var(--st-text-3); font-size: 12.5px; }
.studio .st-dlg-stark { color: var(--st-text); font-weight: 600; }

@media (max-width: 1099px) {
  .studio .st-review { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Telefon: Betrachter oben, Panel darunter, Leiste fest unten — EINE Rolle. */
@media (max-width: 759px) {
  .studio .st-review { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .studio .st-viewer { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; padding: 0 8px 12px; }
  .studio .st-viewer-pfeil { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio .st-review, .studio .st-erfolg { animation: none; }
}

/* ═══ Welle 4 (2026-10-24): Ergebnisse, Abrechnung, Dokumente, Dokument-Panel ═══ */

/* ---------- Summen (Ergebnisse, Übersicht) ---------- */
.studio .st-summen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.studio .st-summe { display: grid; gap: 8px; padding: 18px 20px; color: inherit; text-decoration: none; min-width: 0; }
.studio a.st-summe:hover { border-color: var(--st-linie-2); }
.studio .st-summe-wert { font-size: 30px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Diagramm: Reichweite je Inhalt ---------- */
.studio .st-diagramm-karte { padding: 20px 22px 16px; display: grid; gap: 16px; min-width: 0; }
.studio .st-diagramm { position: relative; width: 100%; min-width: 0; }
.studio .st-diagramm svg { display: block; overflow: visible; }
.studio .st-diag-gitter { stroke: var(--st-linie); stroke-width: 1; }
.studio .st-diag-achse { fill: var(--st-text-3); font-size: 11.5px; font-family: inherit; font-variant-numeric: tabular-nums; }
.studio .st-diag-label { fill: var(--st-text-2); font-size: 12.5px; font-weight: 500; font-family: inherit; }
.studio .st-diag-balken { fill: var(--st-akzent); transition: opacity 0.15s; }
.studio .st-diag-treffer { fill: transparent; }
.studio .st-diag-zeile { outline: none; }
.studio .st-diag-zeile[role="button"] { cursor: pointer; }
.studio .st-diagramm:has(.st-diag-zeile--aktiv) .st-diag-zeile:not(.st-diag-zeile--aktiv) .st-diag-balken { opacity: 0.45; }
.studio .st-diag-zeile:focus-visible .st-diag-treffer { stroke: var(--st-fokus); stroke-width: 2; }
.studio .st-diag-tip { position: absolute; transform: translate(-50%, -100%); background: var(--st-tip-bg); color: var(--st-tip-fg); font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; box-shadow: var(--st-schatten); }

/* ---------- Kacheln je Inhalt ---------- */
.studio .st-erg-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.studio .st-erg { display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-align: left; padding: 0; color: inherit; transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.studio button.st-erg:hover { border-color: var(--st-linie-2); transform: translateY(-1px); }
.studio .st-erg-bild { position: relative; display: grid; place-items: center; height: 190px; background: var(--st-s3); color: var(--st-text-3); }
.studio .st-erg-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.studio .st-erg-bild > svg { width: 32px; height: 32px; }
.studio .st-erg-chip { position: absolute; left: 10px; top: 10px; }
.studio .st-erg-chip .st-chip { backdrop-filter: blur(8px); background: rgba(14, 12, 18, 0.66); color: #fff; }
.studio .st-erg-chip .st-chip--gruen { color: #7fe3b6; }
.studio .st-erg-text { display: grid; gap: 8px; padding: 14px 16px 16px; align-content: start; min-width: 0; }
.studio .st-erg-text strong { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.studio .st-erg-metriken { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 10px; border-top: 1px solid var(--st-linie); }
.studio .st-erg-metriken > span { display: grid; min-width: 0; }
.studio .st-erg-metriken small { font-size: 11.5px; color: var(--st-text-3); }
.studio .st-erg-metriken b { font-size: 15px; font-weight: 600; }

/* ---------- Seite „Insights" (7b W4, 2026-10-27) — Aufbau nach dem Entwurf `vereinbarung-neu/app.css` (`.ins-*`) ---------- */
/* Umbrüche nach der Breite der Seite, nicht des Fensters — die Navigation ist 76 oder 252 px breit (wie W5.1 Freigaben). */
.studio .st-seite--insights { container: st-insights / inline-size; }
.studio .st-ins-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.studio .st-ins-kopf > div { display: grid; gap: 4px; min-width: 0; }
.studio .st-ins-live-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-live) 25%, transparent); flex: none; }

/* Vier KPIs */
.studio .st-ins-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.studio .st-ins-kpi { display: grid; gap: 4px; padding: 18px 20px; align-content: start; min-width: 0; }
.studio .st-ins-kpi-kopf { display: flex; align-items: center; gap: 10px; color: var(--st-text-2); font-size: 13.5px; font-weight: 500; }
.studio .st-ins-kpi-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.studio .st-ins-kpi-icon .st-ic { width: 17px; height: 17px; }
.studio .st-ins-kpi-icon--coco { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); }
.studio .st-ins-kpi-icon--carlo { background: var(--st-chip-carlo-bg); color: var(--st-chip-carlo-fg); }
.studio .st-ins-kpi-icon--peppa { background: var(--st-chip-peppa-bg); color: var(--st-chip-peppa-fg); }
.studio .st-ins-kpi-icon--gruen { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-ins-kpi-wert { font-size: 32px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-ins-kpi-sub { font-size: 12.5px; color: var(--st-text-3); }

/* Auswertung: Tafeln im Raster — Reichweite breit, je Kennzahl eine eigene Skala, Reihen in `--st-serie-1..4` */
.studio .st-ins-dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.studio .st-ins-tafel { padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.studio .st-ins-tafel--breit { grid-column: span 2; }
.studio .st-ins-tafel-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.studio .st-ins-tafel-sub { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-ins-balken { fill: var(--st-balken); }
/* Vor dem Messen (Server-Render, 640 px) schrumpft das Diagramm mit, statt das Telefon quer scrollen zu lassen. */
.studio .st-ins-tafel .st-diagramm svg { max-width: 100%; height: auto; }
.studio .st-ins-top-inhalt { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0; border: 0; background: none; text-align: left; color: inherit; border-radius: 10px; }
.studio button.st-ins-top-inhalt { cursor: pointer; }
.studio .st-ins-top-bild { position: relative; display: grid; place-items: center; width: 60px; border-radius: 10px; overflow: hidden; background: var(--st-s3); color: var(--st-text-3); }
.studio .st-ins-top-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio .st-ins-top-text { display: grid; gap: 4px; min-width: 0; }
.studio .st-ins-top-text b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.studio .st-ins-top-zahlen { display: grid; margin: 0; }
.studio .st-ins-top-zahlen div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--st-linie); }
.studio .st-ins-top-zahlen dt { color: var(--st-text-3); font-size: 13px; }
.studio .st-ins-top-zahlen dd { font-weight: 600; margin: 0; }
.studio .st-ins-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0; font-size: 12.5px; color: var(--st-text-2); }
.studio .st-ins-legende li { display: inline-flex; align-items: center; gap: 6px; }
.studio .st-ins-legende b { color: var(--st-text); font-weight: 600; }
.studio .st-ins-farbe { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.studio .st-ins-farbe--1 { background: var(--st-serie-1); }
.studio .st-ins-farbe--2 { background: var(--st-serie-2); }
.studio .st-ins-farbe--3 { background: var(--st-serie-3); }
.studio .st-ins-farbe--4 { background: var(--st-serie-4); }
.studio .st-ins-stapel-liste { display: grid; gap: 14px; }
.studio .st-ins-stapel-zeile { display: grid; gap: 6px; min-width: 0; }
.studio .st-ins-stapel-name { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; min-width: 0; }
.studio .st-ins-stapel-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-ins-stapel-name span { color: var(--st-text-3); }
.studio .st-ins-stapel { display: flex; gap: 2px; height: 14px; min-width: 3px; }
.studio .st-ins-stapel i { display: block; min-width: 3px; flex-basis: 0; transition: opacity 0.15s; }
.studio .st-ins-stapel i:last-child { border-radius: 0 4px 4px 0; }
.studio .st-ins-stapel:hover i:not(:hover) { opacity: 0.55; }
.studio .st-ins-vergleich { display: grid; gap: 5px; }
.studio .st-ins-vergleich + .st-ins-vergleich { margin-top: 2px; }
.studio .st-ins-vergleich-name { font-size: 12.5px; color: var(--st-text-3); }
.studio .st-ins-vergleich-balken { display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: center; gap: 10px; }
.studio .st-ins-vergleich-balken b { font-size: 12.5px; font-weight: 600; text-align: right; }
.studio .st-ins-spur { display: block; height: 10px; }
.studio .st-ins-spur i { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; }
.studio .st-ins-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.studio .st-ins-mini { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--st-s2); min-width: 0; }
.studio .st-ins-mini span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--st-text-3); }
.studio .st-ins-mini .st-ic { width: 14px; height: 14px; }
.studio .st-ins-mini b { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.studio .st-ins-mini small { font-size: 11.5px; color: var(--st-text-3); }
.studio .st-ins-fuss { font-size: 12px; color: var(--st-text-3); }
@container st-insights (max-width: 930px) {
  .studio .st-ins-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio .st-ins-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container st-insights (max-width: 650px) {
  .studio .st-ins-dash { grid-template-columns: minmax(0, 1fr); }
  .studio .st-ins-tafel--breit { grid-column: auto; }
  .studio .st-ins-tafel { padding: 16px; }
}
@container st-insights (max-width: 490px) {
  .studio .st-ins-kpis { gap: 10px; }
  .studio .st-ins-kpi { padding: 14px; }
  .studio .st-ins-kpi-wert { font-size: 24px; }
  .studio .st-ins-kpi-kopf { font-size: 12.5px; gap: 8px; }
  .studio .st-ins-kpi-icon { width: 28px; height: 28px; }
}

/* Runde 13t: Herkunft als kompakte Leiste, die unten am Rand stehen bleibt (X schliesst); Stand-Zeile am Seitenende. */
.studio .st-herkunft-leiste { position: sticky; bottom: 16px; z-index: 4; justify-self: center; width: min(100%, 760px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid var(--st-linie-2); background: var(--st-s1); box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28); }
.studio .st-herkunft-leiste--api { border-color: color-mix(in srgb, var(--st-chip-gruen-fg) 32%, transparent); background: color-mix(in srgb, var(--st-chip-gruen-fg) 10%, var(--st-s1)); }
.studio .st-hl-logo { width: 32px; height: 32px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; flex: none; }
.studio .st-hl-logo svg { width: 32px; height: 32px; display: block; }
.studio .st-hl-logo--neutral { background: var(--st-s3); color: var(--st-text-2); }
.studio .st-hl-logo--neutral .st-ic { width: 16px; height: 16px; }
.studio .st-hl-text { display: grid; gap: 1px; min-width: 0; }
.studio .st-hl-text b { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.studio .st-hl-text b .st-ic { width: 13px; height: 13px; stroke-width: 3; color: var(--st-chip-gruen-fg); }
.studio .st-hl-text span { font-size: 12px; color: var(--st-text-2); line-height: 1.4; }
.studio .st-ins-stand-seite { display: flex; align-items: center; gap: 8px; margin-top: -12px; font-size: 12px; color: var(--st-text-3); line-height: 1.45; }
.studio .st-ins-stand-seite b { color: var(--st-text-2); font-weight: 600; }
.studio .st-ins-stand-seite > .st-ic { width: 14px; height: 14px; flex: none; }
.studio .st-ins-stand-logo { width: 16px; height: 16px; border-radius: 5px; overflow: hidden; flex: none; }
.studio .st-ins-stand-logo svg { width: 16px; height: 16px; display: block; }
@media (max-width: 719px) {
  .studio .st-herkunft-leiste { bottom: 12px; gap: 10px; padding: 8px 8px 8px 10px; }
  .studio .st-ins-stand-seite { align-items: flex-start; }
}

/* ---------- Export der Insights (7b W4.2, 2026-10-27) — Entwurf `app.css` `.ins-export*` ---------- */
.studio .st-ins-export { display: grid; gap: 10px; }
.studio .st-ins-export-liste { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; max-height: min(320px, 42vh); overflow: auto; }
.studio .st-ins-export-liste legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--st-text); }
.studio .st-ins-export-inhalt { display: grid; grid-template-columns: 18px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--st-s2); color: var(--st-text); cursor: pointer; }
.studio .st-ins-export-inhalt--fest { grid-template-columns: 34px minmax(0, 1fr) auto; cursor: default; }
.studio .st-ins-export-inhalt input { accent-color: var(--st-akzent); width: 16px; height: 16px; margin: 0; }
.studio .st-ins-export-inhalt:has(input:not(:checked)) .st-ins-export-bild, .studio .st-ins-export-inhalt:has(input:not(:checked)) .st-ins-export-name { opacity: 0.5; }
.studio .st-ins-export-bild { position: relative; display: grid; place-items: center; width: 34px; max-height: 60px; border-radius: 6px; overflow: hidden; background: var(--st-s3); color: var(--st-text-3); }
.studio .st-ins-export-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio .st-ins-export-bild .st-ic { width: 14px; height: 14px; }
.studio .st-ins-export-name { display: grid; gap: 1px; min-width: 0; }
.studio .st-ins-export-name b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-ins-export-name small { font-size: 11.5px; color: var(--st-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-ins-export-wahl { display: grid; grid-template-columns: 18px 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--st-linie); border-radius: 12px; cursor: pointer; color: var(--st-text); transition: border-color 0.15s, background 0.15s; }
.studio .st-ins-export-wahl:has(input:checked) { border-color: var(--st-coco-hell); background: var(--st-chip-coco-bg); }
.studio .st-ins-export-wahl input { accent-color: var(--st-akzent); width: 18px; height: 18px; margin: 0; }
.studio .st-ins-export-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.studio .st-ins-export-icon .st-ic { width: 20px; height: 20px; }
.studio .st-ins-export-icon--pdf { background: var(--st-chip-peppa-bg); color: var(--st-chip-peppa-fg); }
.studio .st-ins-export-icon--xlsx { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-ins-export-wahl-text { display: grid; gap: 2px; }
.studio .st-ins-export-wahl-text small { color: var(--st-text-3); font-size: 12.5px; line-height: 1.4; }
.studio .st-ins-export-hinweis { color: var(--st-chip-peppa-fg); font-size: 12.5px; }
.studio .st-ins-export-fuss { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--st-text-3); }
.studio .st-ins-export-fuss .st-ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ---------- Abrechnung ---------- */
.studio .st-provision { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 0; color: var(--st-text-2); font-size: 13.5px; margin-top: 12px; }
.studio .st-provision .st-ic { width: 16px; height: 16px; color: var(--st-text-3); flex: none; }
.studio .st-text-peppa { color: var(--st-chip-peppa-fg); }

/* ---------- Dokumente ---------- */
.studio .st-dok-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.studio .st-dok { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 16px; text-align: left; align-items: center; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.studio .st-dok:hover { border-color: var(--st-linie-2); transform: translateY(-1px); }
.studio .st-dok-seite { width: 92px; aspect-ratio: 1 / 1.414; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); padding: 11px 10px; display: grid; gap: 5px; align-content: start; color: #1c1a1a; }
.studio .st-dok-seite .st-dok-logo { width: 38px; height: auto; margin-bottom: 6px; }
.studio .st-dok-seite i { display: block; height: 3px; background: #e5e1ea; border-radius: 2px; }
.studio .st-dok-seite i.st-kurz { width: 62%; }
.studio .st-dok-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.studio .st-dok-text strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.studio .st-notizen { display: flex; gap: 12px; padding: 16px 18px; align-items: flex-start; }
.studio .st-notizen .st-ic { width: 16px; height: 16px; color: var(--st-text-3); flex: none; margin-top: 3px; }
@media (max-width: 719px) {
  .studio .st-dok { grid-template-columns: 72px minmax(0, 1fr); }
  .studio .st-dok-seite { width: 72px; }
  .studio .st-summe-wert { font-size: 24px; }
  .studio .st-summe { padding: 14px 16px; }
  .studio .st-summen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .studio .st-diagramm-karte { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio button.st-erg:hover, .studio .st-dok:hover { transform: none; }
}

/* ---------- Dokument-Panel: das PDF auf der festen Fläche ---------- */
.studio .st-ebene--dok { z-index: 41; }
.studio .st-pdf-mobil { height: min(70vh, 560px); }
.studio .st-pdf-mobil > .pdfv { border-radius: 12px; overflow: hidden; border: 1px solid var(--st-linie); }
.studio .st-positionen { display: grid; gap: 6px; counter-reset: st-pos; margin: 0; padding: 0; list-style: none; }
.studio .st-positionen li { counter-increment: st-pos; display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--st-s2); }
.studio .st-positionen li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.studio .st-positionen li::before { content: counter(st-pos); color: var(--st-text-3); font-weight: 600; min-width: 14px; }
.studio .st-knopfreihe .dok-form > .st-knopf { width: 100%; }
.studio .st-reihe-icon > svg:not(.st-ic) { width: 18px; height: 18px; }

/* ---------- Herkunft und Rhythmus der Insights (2026-10-25) ---------- */
/* `InsightsHerkunft` steht im Leistungs-Panel (über `InsightMediaListe`) und einmal auf „Ergebnisse"; hier die Farben
   des Studios statt der des alten Portals. Maße des Zeichens (29 px, 15 px Freiraum) aus `style.css`. */
.studio .insights-herkunft { color: var(--st-text-3); }
.studio .insights-herkunft-zeichen, .studio .insights-herkunft-quelle { color: var(--st-text); }
.studio .st-herkunft { padding: 16px 18px; }

/* ═══ Rabatt-Code im Leistungs-Panel (2026-10-24) ═══ */
.studio .st-code-block { display: grid; gap: 6px; }
.studio .st-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed var(--st-chip-coco-fg); background: var(--st-chip-coco-bg); color: var(--st-text); text-align: left; transition: background 0.15s; }
.studio .st-code:hover { background: var(--st-s2); }
.studio .st-code .st-ic { width: 20px; height: 20px; color: var(--st-chip-coco-fg); flex: none; }
.studio .st-mono-code { font-size: 24px; font-weight: 700; letter-spacing: 0.08em; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 719px) { .studio .st-mono-code { font-size: 20px; } }

/* ── Seite „Vereinbarung“ — seit 7b W6.1 (2026-10-27) Dokument + Begleiter nach dem Entwurf `vereinbarung-neu/vertrag-b.css`
   (Präfix dort `vtb-`, hier `st-vb-`). Links die Unterlagen, in der Mitte das Blatt auf der Bühne, rechts der Begleiter.
   Das Blatt folgt der Darstellung: hell weiss (`--st-dok`), dunkel dunkel — Farben nur aus Tokens. ── */
.studio .st-seite--vereinbarung { max-width: 1560px; gap: 22px; }

/* Kopf: Marke × Creator */
.studio .st-vb-held {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 26px; align-items: center;
  padding: 18px 22px; border-radius: 20px; border: 1px solid var(--st-linie); background: var(--st-s1);
}
.studio .st-vb-held-bilder { position: relative; flex: none; margin-left: 16px; }
.studio .st-vb-held-creator {
  display: grid; place-items: center; width: 58px; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid var(--st-linie);
  background: var(--st-s3) center 30% / cover no-repeat; color: var(--st-text-2); font-weight: 700; font-size: 15px;
}
.studio .st-vb-held-marke {
  position: absolute; left: -16px; bottom: -8px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background-color: var(--st-s1);
  font-weight: 700; font-size: 12px; letter-spacing: 0.03em; border: 1px solid var(--st-linie); box-shadow: 0 0 0 3px var(--st-s1);
}
.studio .st-vb-held-marke--logo { background: #fff center / contain no-repeat; }
.studio .st-vb-held-text { display: grid; gap: 3px; min-width: 0; }
.studio .st-vb-held-text h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.studio .st-vb-held-x { color: var(--st-text-3); font-weight: 400; }
.studio .st-vb-held-text p { color: var(--st-text-2); font-size: 13.5px; }
.studio .st-vb-held-fakten { display: flex; flex-wrap: wrap; margin: 0; }
.studio .st-vb-held-fakten div { display: grid; gap: 2px; padding: 2px 20px; border-left: 1px solid var(--st-linie); }
.studio .st-vb-held-fakten dt { font-size: 12px; color: var(--st-text-3); }
.studio .st-vb-held-fakten dd { margin: 0; font-size: 16px; font-weight: 600; display: grid; }
.studio .st-vb-held-fakten div:first-child dd { font-size: 20px; letter-spacing: -0.01em; }
.studio .st-vb-held-fakten dd small { font-size: 12px; font-weight: 500; color: var(--st-akzent-ink); }
.studio .st-vb-held-fakten dd small.st-vb-held-geld { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; color: var(--st-text-3); cursor: help; }
.studio .st-vb-held-geld .st-ic { width: 12px; height: 12px; }
.studio .st-vb-skel-betrag { width: 120px; height: 24px; }

/* Raster: Unterlagen · Bühne · Begleiter */
.studio .st-vb-raster { display: grid; grid-template-columns: 72px minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.studio .st-vb-raster--fest { grid-template-columns: 248px minmax(0, 1fr) 380px; }
.studio .st-vb-raster > * { min-width: 0; }

/* Unterlagen: eingeklappt 72 px (nur Miniaturen); beim Hovern oder mit Tastatur fährt die Leiste über das Dokument aus. */
.studio .st-vb-unterlagen { position: sticky; top: 18px; z-index: 6; }
.studio .st-vb-unterlagen-innen {
  width: 72px; display: grid; gap: 4px; padding: 6px; border-radius: 16px; border: 1px solid transparent; overflow: hidden;
  transition: width 0.18s ease, background-color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.studio .st-vb-unterlagen:hover .st-vb-unterlagen-innen, .studio .st-vb-unterlagen:focus-within .st-vb-unterlagen-innen,
.studio .st-vb-unterlagen.ist-fest .st-vb-unterlagen-innen { width: 248px; }
.studio .st-vb-unterlagen:not(.ist-fest):hover .st-vb-unterlagen-innen,
.studio .st-vb-unterlagen:not(.ist-fest):focus-within .st-vb-unterlagen-innen { background: var(--st-s1); border-color: var(--st-linie-2); box-shadow: var(--st-schatten-gross); }
.studio .st-vb-unterlagen-kopf { display: flex; align-items: center; gap: 8px; width: 236px; padding: 0 0 4px 8px; }
.studio .st-vb-unterlagen-kopf .st-knopf[aria-pressed="true"] { color: var(--st-akzent-ink); }
.studio .st-vb-unterlagen-kopf .st-eyebrow, .studio .st-vb-unterlagen .st-vb-unterlage-text { opacity: 0; transition: opacity 0.12s; }
.studio .st-vb-unterlagen:hover .st-eyebrow, .studio .st-vb-unterlagen:focus-within .st-eyebrow, .studio .st-vb-unterlagen.ist-fest .st-eyebrow,
.studio .st-vb-unterlagen:hover .st-vb-unterlage-text, .studio .st-vb-unterlagen:focus-within .st-vb-unterlage-text,
.studio .st-vb-unterlagen.ist-fest .st-vb-unterlage-text { opacity: 1; }
.studio .st-vb-unterlage {
  display: grid; grid-template-columns: 52px; gap: 12px; align-items: center; width: 58px; padding: 2px;
  border-radius: 12px; border: 1px solid transparent; background: none; text-align: left; color: inherit;
}
.studio .st-vb-unterlagen:hover .st-vb-unterlage, .studio .st-vb-unterlagen:focus-within .st-vb-unterlage,
.studio .st-vb-unterlagen.ist-fest .st-vb-unterlage { width: 234px; padding: 8px; grid-template-columns: 52px minmax(0, 1fr); }
.studio .st-vb-unterlage:hover { background: var(--st-s2); }
.studio .st-vb-unterlage[aria-current="true"] { background: var(--st-s2); border-color: color-mix(in srgb, var(--st-akzent) 55%, var(--st-linie)); }
.studio .st-vb-unterlage .st-vb-unterlage-text { display: none; }
.studio .st-vb-unterlagen:hover .st-vb-unterlage-text, .studio .st-vb-unterlagen:focus-within .st-vb-unterlage-text,
.studio .st-vb-unterlagen.ist-fest .st-vb-unterlage-text { display: grid; gap: 1px; min-width: 0; }
.studio .st-vb-unterlage-text b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-vb-unterlage-text small { color: var(--st-text-3); font-size: 12px; }
.studio .st-vb-mini {
  width: 52px; height: 70px; border-radius: 9px; background: var(--st-dok); border: 1px solid var(--st-linie-2);
  display: grid; align-content: start; gap: 5px; padding: 11px 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.studio .st-vb-mini i { display: block; height: 3px; border-radius: 2px; background: var(--st-linie-2); }
.studio .st-vb-mini i:first-child { height: 5px; background: var(--st-text-3); }
.studio .st-vb-mini i.st-kurz { width: 60%; }
.studio .st-vb-mini--web { place-items: center; align-content: center; padding: 0; background: var(--st-s2); color: var(--st-akzent-ink); box-shadow: none; }
.studio .st-vb-mini--web .st-ic { width: 22px; height: 22px; }

/* Auswahl: dieselben Unterlagen als breites Dropdown über dem Blatt — nur, wo die Leiste keinen Platz hat (unten). */
.studio .st-vb-wahl { display: none; position: relative; }
.studio .st-vb-wahl-knopf {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px 8px 14px;
  border-radius: 12px; border: 1px solid var(--st-linie); background: var(--st-s1); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.studio .st-vb-wahl-knopf:hover, .studio .st-vb-wahl-knopf[aria-expanded="true"] { border-color: var(--st-linie-2); }
.studio .st-vb-wahl-knopf:focus-visible { outline: 2px solid var(--st-fokus); outline-offset: 2px; }
.studio .st-vb-wahl-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.studio .st-vb-wahl-text b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .st-vb-wahl-text small { color: var(--st-text-3); font-size: 12px; }
.studio .st-vb-wahl-pfeil { width: 16px; height: 16px; flex: none; color: var(--st-text-3); transition: transform 0.15s; }
.studio .st-vb-wahl-knopf[aria-expanded="true"] .st-vb-wahl-pfeil { transform: rotate(180deg); }
.studio .st-vb-wahl-liste {
  position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 4px); display: grid; gap: 2px; margin: 0; padding: 6px;
  list-style: none; max-height: min(70vh, 520px); overflow-y: auto;
  border-radius: 12px; background: var(--st-s1); border: 1px solid var(--st-linie-2); box-shadow: var(--st-schatten);
}
.studio .st-vb-wahl-liste:focus { outline: none; }
.studio .st-vb-wahl-opt {
  display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 9px; border: 1px solid transparent; cursor: pointer;
}
.studio .st-vb-wahl-opt.ist-aktiv { background: var(--st-s2); }
.studio .st-vb-wahl-opt[aria-selected="true"] { border-color: color-mix(in srgb, var(--st-akzent) 55%, var(--st-linie)); }
.studio .st-vb-wahl-opt .st-vb-mini { flex: none; width: 36px; height: 48px; gap: 4px; padding: 8px 6px; border-radius: 7px; }
.studio .st-vb-wahl-opt .st-vb-mini--web { padding: 0; }
.studio .st-vb-wahl-opt .st-vb-mini--web .st-ic { width: 18px; height: 18px; }
.studio .st-vb-wahl-haken { width: 16px; height: 16px; flex: none; color: var(--st-akzent-ink); }

/* Bühne: das Blatt auf seiner Fläche */
.studio .st-vb-buehne { background: var(--st-buehne-fl); border: 1px solid var(--st-linie); border-radius: 18px; min-width: 0; scroll-margin-top: 12px; }
.studio .st-vb-buehne-kopf {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--st-linie); border-radius: 18px 18px 0 0;
  background: color-mix(in srgb, var(--st-buehne-fl) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.studio .st-vb-buehne-titel { display: grid; min-width: 0; }
.studio .st-vb-buehne-titel b { font-weight: 600; }
.studio .st-vb-buehne-titel small { color: var(--st-text-3); font-size: 12px; }
.studio .st-vb-web-hinweis { margin: 18px 24px 0; align-items: flex-start; font-size: 13px; }
.studio .st-vb-web-hinweis .st-ic { margin-top: 1px; color: var(--st-akzent-ink); }
.studio .st-vb-seiten { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; padding: 26px 24px 32px; }
.studio .st-vb-seiten > .st-leer-karte { width: 100%; }

/* Das Blatt im Rechnungslayout (Vorbild `packages/ui/src/InvoiceTemplate.tsx`) */
.studio .st-vb-blatt {
  position: relative; width: 100%; max-width: 820px; aspect-ratio: 1 / 1.414; display: flex; flex-direction: column;
  padding: 46px 50px 26px; border-radius: 6px; background: var(--st-dok); color: var(--st-text); border: 1px solid var(--st-linie);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.16); font-size: 12.5px; line-height: 1.5;
}
.studio .st-vb-blatt--laedt { display: grid; place-items: center; }
.studio .st-vb-iv-kopf { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }
.studio .st-vb-iv-titel { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.studio .st-vb-iv-sub { margin-top: 8px; color: var(--st-text-2); }
.studio .st-vb-iv-notiz { margin-top: 4px; font-size: 11.5px; color: var(--st-text-3); }
.studio .st-vb-iv-aussteller { text-align: right; display: grid; justify-items: end; }
.studio .st-vb-iv-klein { font-size: 11px; color: var(--st-text-3); }
.studio .st-vb-iv-fett { font-weight: 700; }
.studio .st-vb-iv-zeile { display: block; }
.studio .st-vb-iv-parteien { display: flex; gap: 24px; margin-top: 34px; align-items: flex-start; border-radius: 6px; }
.studio .st-vb-iv-empfaenger { flex: 1 1 45%; min-width: 0; border-radius: 6px; }
.studio .st-vb-iv-kunden-ust { margin-top: 8px; font-size: 11px; color: var(--st-text-3); }
.studio .st-vb-iv-kunden-ust b { color: var(--st-text); font-weight: 600; }
.studio .st-vb-iv-tabellen { flex: 1 1 55%; min-width: 0; display: grid; gap: 10px; }
.studio .st-vb-iv-tab-titel { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.studio .st-vb-iv-tab { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; font-size: 11.5px; }
.studio .st-vb-iv-tab td { padding: 4px 7px; overflow-wrap: anywhere; vertical-align: top; }
.studio .st-vb-iv-tab td:first-child { width: 40%; background: var(--st-chip-coco-bg); font-weight: 700; }
.studio .st-vb-iv-tab td:last-child { background: color-mix(in srgb, var(--st-text) 5%, transparent); }
.studio .st-vb-iv-tab tr.st-vb-iv-fehlt td:last-child { color: var(--st-chip-peppa-fg); background: var(--st-chip-peppa-bg); font-weight: 600; }
.studio .st-vb-iv-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; margin: 22px 0 0; font-size: 11.5px; }
.studio .st-vb-iv-band dt { background: var(--st-chip-coco-bg); font-weight: 700; padding: 5px 7px; }
.studio .st-vb-iv-band dd { margin: 0; padding: 5px 7px 0; overflow-wrap: anywhere; }
.studio .st-vb-iv-zeilen { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 12px; table-layout: fixed; }
.studio .st-vb-iv-zeilen th { background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); font-weight: 700; text-align: left; padding: 6px 6px; }
.studio .st-vb-iv-zeilen td { padding: 8px 6px 7px; vertical-align: top; }
.studio .st-vb-iv-zeilen td b { font-weight: 700; }
.studio .st-vb-iv-zeilen td small { display: block; color: var(--st-text-3); font-size: 11px; margin-top: 1px; }
.studio .st-vb-iv-zeilen tbody tr:last-child td { border-bottom: 1px solid var(--st-linie-2); }
.studio .st-vb-iv-nr { width: 6%; }
.studio .st-vb-iv-termin-spalte { width: 22%; }
.studio .st-vb-iv-zeilen th.st-vb-iv-r { width: 18%; text-align: right; }
.studio .st-vb-iv-r { text-align: right; font-variant-numeric: tabular-nums; }
.studio .st-vb-iv-gruppe td { background: color-mix(in srgb, var(--st-chip-coco-bg) 55%, transparent); color: var(--st-chip-coco-fg); font-weight: 700; padding: 4px 6px; }
.studio .st-vb-iv-zusatz td { padding-top: 0; color: var(--st-text-2); }
.studio .st-vb-iv-zusatz b { font-weight: 600; }
.studio .st-vb-iv-zusatz small { padding-left: 20px; }
.studio .st-vb-iv-pfeil { color: var(--st-text-3); margin: 0 6px 0 4px; }
.studio .st-vb-iv-storniert td { color: var(--st-text-3); }
.studio .st-vb-iv-storniert td.st-vb-iv-r { text-decoration: line-through; }
.studio .st-vb-iv-termin { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.studio .st-vb-iv-summe { margin: 18px 0 0 auto; width: 58%; background: color-mix(in srgb, var(--st-text) 5%, transparent); font-size: 12px; }
.studio .st-vb-iv-summe > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.studio .st-vb-iv-summe .st-vb-iv-total { background: color-mix(in srgb, var(--st-text) 14%, transparent); font-weight: 700; font-size: 13px; padding: 7px 9px; }
.studio .st-vb-iv-summe .st-vb-iv-nach { background: var(--st-dok); }
.studio .st-vb-iv-text { margin-top: 16px; font-size: 12px; line-height: 1.6; }
.studio .st-vb-iv-text p + p { margin-top: 9px; }
.studio .st-vb-iv-bedingungen { margin-top: 30px; font-size: 12.5px; }
.studio .st-vb-vorformatiert { white-space: pre-line; }
.studio .st-vb-iv-abschnitt { margin-top: 26px; font-size: 15px; font-weight: 700; }
.studio .st-vb-iv-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 18px 0 6px; }
.studio .st-vb-iv-felder small { display: block; color: var(--st-text-3); font-size: 11px; margin-bottom: 2px; }
.studio .st-vb-iv-felder b { display: block; min-height: 19px; border-bottom: 1px solid var(--st-linie-2); padding-bottom: 3px; font-weight: 600; }
.studio .st-vb-iv-unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: auto; padding-top: 40px; }
.studio .st-vb-iv-unterschriften i { display: block; height: 1px; background: var(--st-text); margin-bottom: 5px; }
.studio .st-vb-iv-unterschriften small { color: var(--st-text-3); font-size: 11px; }
.studio .st-vb-iv-fuss {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--st-linie); font-size: 10.5px; color: var(--st-text-3);
}
.studio .st-vb-iv-unterschriften + .st-vb-iv-fuss { margin-top: 24px; }
.studio .st-vb-iv-fuss b { color: var(--st-text-2); }
.studio .st-vb-iv-seite { white-space: nowrap; }
.studio .st-vb-stempel {
  display: inline-block; margin: 14px 0 0 4px; transform: rotate(-6deg); padding: 6px 12px; border: 2px solid var(--st-chip-gruen-fg);
  border-radius: 8px; color: var(--st-chip-gruen-fg); font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.1; text-align: center; pointer-events: none;
}
.studio .st-vb-stempel small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.studio .st-vb-mark { position: relative; outline: 2px solid var(--st-akzent); outline-offset: 6px; background: color-mix(in srgb, var(--st-akzent) 7%, transparent); }
.studio .st-vb-mark::after {
  content: attr(data-mark-text); position: absolute; left: -6px; top: -32px; padding: 2px 8px; border-radius: 6px;
  background: var(--st-akzent); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.studio .st-vb-link { border: 0; background: none; padding: 0; color: var(--st-akzent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.studio .st-vb-agb { display: grid; gap: 16px; margin-top: 26px; }
.studio .st-vb-agb h4 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin: 0 0 4px; }
.studio .st-vb-agb p { color: var(--st-text-2); }
.studio .st-vb-agb-nr {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--st-chip-coco-bg); color: var(--st-chip-coco-fg); font-size: 11px; font-weight: 700;
}
.studio .st-vb-platzhalter { margin: auto; display: grid; justify-items: center; gap: 10px; max-width: 360px; text-align: center; color: var(--st-text-2); }
.studio .st-vb-platzhalter > .st-ic { width: 36px; height: 36px; color: var(--st-text-3); }
.studio .st-vb-platzhalter .st-vb-iv-titel { font-size: 22px; color: var(--st-text); }

/* Das farbige Plattform-Zeichen am Termin (`StudioPlattform.js`) */
.studio .st-plattform { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; overflow: hidden; flex: none; }
.studio .st-plattform svg { width: 18px; height: 18px; display: block; }
.studio .st-plattform--ohne { background: var(--st-chip-carlo-bg); color: var(--st-chip-carlo-fg); }
.studio .st-plattform--ohne .st-ic { width: 12px; height: 12px; }

/* Begleiter rechts */
.studio .st-vb-begleiter { position: sticky; top: 18px; display: grid; gap: 12px; }
.studio .st-vb-karte {
  display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: var(--st-s1);
  border: 1px solid color-mix(in srgb, var(--st-akzent) 45%, var(--st-linie));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-akzent) 9%, transparent), var(--st-schatten);
  max-height: calc(100vh - 150px); overflow: auto; overscroll-behavior: contain;
}
.studio .st-vb-karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio .st-vb-liste { display: grid; gap: 8px; }
.studio .st-vb-zeile {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--st-s2); border: 1px solid var(--st-linie);
}
.studio .st-vb-zeile-text { display: grid; gap: 1px; min-width: 0; }
.studio .st-vb-name { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.studio .st-vb-zus { display: flex; align-items: center; gap: 4px; color: var(--st-text-3); font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.studio .st-vb-zus .st-ic { width: 12px; height: 12px; }
.studio .st-vb-zeile--erledigt { padding-block: 8px; }
.studio .st-vb-zeile--erledigt .st-schritt-punkt { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-vb-zeile--offen { border-color: color-mix(in srgb, var(--st-akzent) 55%, transparent); background: color-mix(in srgb, var(--st-akzent) 6%, var(--st-s2)); }
.studio .st-vb-zeile--offen .st-schritt-punkt { background: var(--st-akzent); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-akzent) 20%, transparent); }
.studio .st-vb-zeile--offen .st-vb-name { font-weight: 600; }
.studio .st-vb-zeile--spaeter { background: transparent; border: 1px dashed var(--st-linie-2); color: var(--st-text-2); }
.studio .st-vb-zeile--spaeter .st-schritt-punkt { background: var(--st-s3); color: var(--st-text-3); }
.studio .st-vb-naechstes { grid-column: 1 / -1; display: grid; gap: 8px; padding: 4px 0 2px; }
.studio .st-vb-naechstes h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.studio .st-vb-naechstes p { color: var(--st-text-2); font-size: 13.5px; line-height: 1.5; }
.studio .st-vb-naechstes > .st-knopf { justify-self: stretch; margin-top: 4px; }
.studio .st-vb-po { display: flex; align-items: center; gap: 8px; }
.studio .st-vb-fall { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; background: var(--st-s2); }
.studio .st-vb-fall h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.studio .st-vb-fall p { color: var(--st-text-2); font-size: 13.5px; margin: 4px 0 10px; }
.studio .st-vb-fall-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--st-chip-neutral-bg); color: var(--st-chip-neutral-fg); }
.studio .st-vb-fall--gruen .st-vb-fall-icon { background: var(--st-chip-gruen-bg); color: var(--st-chip-gruen-fg); }
.studio .st-vb-kontakt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 6px; }
.studio .st-vb-kontakt-text { display: grid; min-width: 0; }
.studio .st-vb-kontakt-text b { font-weight: 600; font-size: 13.5px; }
.studio .st-vb-kontakt-text small { color: var(--st-text-3); font-size: 12px; }

/* Breiten: unter 1400 px stehen die Unterlagen als Auswahl über dem Blatt, unter 960 px kommt der Begleiter nach unten. */
@media (max-width: 1399px) {
  .studio .st-vb-raster, .studio .st-vb-raster--fest { grid-template-columns: minmax(0, 1fr) 340px; }
  .studio .st-vb-unterlagen { position: static; grid-column: 1; grid-row: 1; }
  .studio .st-vb-unterlagen-innen { display: none; }
  .studio .st-vb-wahl { display: block; }
  /* Runde 13: die Auswahl steht im Kopf der Bühne an der Stelle des Titels — schmal, die Werkzeuge rechts; bricht der
     Kopf um, läuft sie über die volle Breite und die Werkzeuge rechtsbündig darunter. */
  .studio .st-vb-buehne-kopf > .st-vb-wahl { flex: 1 1 260px; min-width: 0; }
  .studio .st-vb-buehne-kopf > .st-vb-buehne-titel { display: none; }
  .studio .st-vb-buehne-kopf > .st-knopf { margin-left: auto; }
  .studio .st-vb-buehne-kopf .st-vb-wahl-knopf { min-height: 40px; padding: 6px 8px 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--st-text) 4%, transparent); }
  .studio .st-vb-buehne { grid-column: 1; grid-row: 2; }
  .studio .st-vb-begleiter { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 1240px) {
  .studio .st-vb-held { grid-template-columns: auto minmax(0, 1fr); }
  .studio .st-vb-held-fakten { grid-column: 1 / -1; }
  .studio .st-vb-held-fakten div:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 959px) {
  .studio .st-vb-raster, .studio .st-vb-raster--fest { grid-template-columns: minmax(0, 1fr); }
  .studio .st-vb-begleiter { position: static; grid-column: 1; grid-row: 3; }
  .studio .st-vb-karte { max-height: none; overflow: visible; }
}
@media (max-width: 719px) {
  .studio .st-vb-held { padding: 14px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .studio .st-vb-held-creator { width: 48px; border-radius: 10px; }
  .studio .st-vb-held-marke { width: 30px; height: 30px; left: -12px; font-size: 10px; border-radius: 8px; }
  .studio .st-vb-held-text h1 { font-size: 21px; }
  .studio .st-vb-held-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .studio .st-vb-held-fakten div, .studio .st-vb-held-fakten div:first-child { padding: 0; border-left: 0; }
  .studio .st-vb-buehne-kopf { padding: 10px 12px; }
  .studio .st-vb-web-hinweis { margin: 12px 12px 0; }
  .studio .st-vb-seiten { padding: 12px; gap: 14px; }
  .studio .st-vb-blatt { aspect-ratio: auto; padding: 22px 18px 16px; font-size: 12px; }
  .studio .st-vb-iv-kopf, .studio .st-vb-iv-parteien { flex-direction: column; gap: 16px; }
  .studio .st-vb-iv-aussteller { text-align: left; justify-items: start; }
  .studio .st-vb-iv-titel { font-size: 23px; }
  .studio .st-vb-iv-parteien { margin-top: 40px; }
  .studio .st-vb-iv-empfaenger, .studio .st-vb-iv-tabellen { flex: none; width: 100%; }
  .studio .st-vb-iv-zeilen { font-size: 11px; }
  .studio .st-vb-iv-termin-spalte { width: 28%; }
  .studio .st-vb-iv-zeilen th.st-vb-iv-r { width: 27%; }
  .studio .st-vb-iv-r { white-space: nowrap; }
  .studio .st-vb-iv-termin { display: grid; justify-items: start; gap: 3px; }
  .studio .st-vb-iv-nr { width: 0; padding: 0 !important; overflow: hidden; font-size: 0; }
  .studio .st-vb-iv-summe { width: 100%; }
  .studio .st-vb-stempel { font-size: 12px; }
  .studio .st-vb-iv-fuss { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Annahme von Angebot und Zusatz (7b W7.2, 2026-10-27) — `StudioFormularAnnahme.js`, am Ende des Dokuments auf der
   Bühne, so breit wie das Blatt. Felder und Haken nach dem Entwurf `vereinbarung-neu/vertrag.css` (`.vt-feld`, `.vt-haken`). ── */
.studio .st-an {
  width: 100%; max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-radius: 18px; background: var(--st-s1);
  border: 1px solid color-mix(in srgb, var(--st-akzent) 45%, var(--st-linie));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-akzent) 9%, transparent), var(--st-schatten);
  scroll-margin-top: 72px;
}
.studio .st-an[hidden] { display: none; }
.studio .st-an-kopf { display: grid; gap: 4px; }
.studio .st-an-kopf h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; outline: none; }
.studio .st-an-kopf p { color: var(--st-text-2); font-size: 13.5px; line-height: 1.5; }
.studio .st-an-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.studio .st-an-breit { grid-column: 1 / -1; display: grid; }
.studio .st-an-pflicht { color: var(--st-chip-peppa-fg); font-weight: 600; }
.studio .st-an-feld--fehler .st-eingabefeld { border-color: var(--st-chip-peppa-fg); }
.studio .st-an-erklaerungen { display: grid; gap: 10px; }
.studio .st-an-haken {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--st-s2); border: 1px solid var(--st-linie);
}
.studio .st-an-haken:hover { border-color: var(--st-linie-2); }
.studio .st-an-haken-text { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 0; margin: 0; cursor: pointer; line-height: 1.5; font-size: 13.5px; color: var(--st-text); }
.studio .st-an-haken-text input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--st-akzent); flex: none; }
.studio .st-an-haken--fehlt { border-color: var(--st-chip-peppa-fg); }
.studio .st-an-agb { flex: none; white-space: nowrap; }
.studio .st-an-summe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 12px 2px 0; border-top: 1px solid var(--st-linie); }
.studio .st-an-summe span { color: var(--st-text-3); }
.studio .st-an-summe b { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.studio .st-an-meldung { display: flex; align-items: flex-start; gap: 8px; color: var(--st-chip-peppa-fg); font-size: 13px; font-weight: 500; }
.studio .st-an-meldung .st-ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.studio .st-an-fuss { display: flex; justify-content: flex-end; }
.studio .st-an-fuss .st-knopf--haupt { min-width: 240px; justify-content: center; }
@media (max-width: 719px) {
  .studio .st-an { padding: 16px; gap: 14px; }
  .studio .st-an-felder { grid-template-columns: minmax(0, 1fr); }
  .studio .st-an-haken { flex-direction: column; align-items: stretch; gap: 8px; }
  .studio .st-an-agb { align-self: flex-start; margin-left: 30px; }
  .studio .st-an-fuss .st-knopf--haupt { width: 100%; min-width: 0; }
}
/* ── Vereinbarung: Rechnungsdaten im Begleiter — 7b W7.4 (2026-10-27), Entwurf `vereinbarung-neu/vertrag-b.js:vbBRechnung`
   (dort `vt-po`, `vt-diff`, `vtb-felder`). Das Formular steht im offenen Schritt, die Rechnung auf der Bühne lebt mit. ── */
.studio .st-vbr { display: grid; gap: 12px; margin-top: 4px; }
.studio .st-vbr-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studio .st-vbr-feld { min-width: 0; }
.studio .st-vbr-feld--breit { grid-column: 1 / -1; }
.studio .st-vbr-feld .st-eingabefeld { background: var(--st-s1); }
.studio .st-vbr-feld .st-eingabefeld[readonly] { opacity: 0.75; cursor: default; }
.studio .st-vbr-feld--fehler .st-eingabefeld { border-color: var(--st-chip-peppa-fg); }
.studio .st-vbr-feld-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.studio .st-vbr-feld-kopf .st-ic { width: 13px; height: 13px; color: var(--st-text-3); flex: none; }
.studio .st-vbr-pflicht { color: var(--st-chip-peppa-fg); font-weight: 600; }
.studio .st-vbr-stand { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--st-text-3); }
.studio .st-vbr-stand--ok, .studio .st-vbr-stand--ok .st-ic { color: var(--st-chip-gruen-fg); }
.studio .st-vbr-feld-hinweis { color: var(--st-text-3); font-size: 12px; font-weight: 400; }
.studio .st-vbr-feld-hinweis--fehlt { color: var(--st-chip-peppa-fg); font-weight: 500; }
.studio .st-vbr-po { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--st-s2); border: 1px solid var(--st-linie); }
.studio .st-vbr-po--fehlt { border-color: color-mix(in srgb, var(--st-akzent) 60%, var(--st-linie)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-akzent) 10%, transparent); }
.studio .st-vbr-po-text { color: var(--st-text-2); font-size: 13px; line-height: 1.5; }
.studio .st-vbr-po-text .st-chip { margin-right: 4px; vertical-align: 1px; }
.studio .st-vbr-hinweis { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.studio .st-vbr-hinweis > .st-ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.studio .st-vbr-hinweis > div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.studio .st-vbr-hinweis p { color: var(--st-text-2); }
.studio .st-vbr-hinweis--warn { background: var(--st-chip-carlo-bg); }
.studio .st-vbr-hinweis--warn > .st-ic { color: var(--st-chip-carlo-fg); }
.studio .st-vbr-hinweis--info { background: var(--st-chip-coco-bg); }
.studio .st-vbr-hinweis--info > .st-ic { color: var(--st-akzent-ink); }
.studio .st-vbr-hinweis .st-vb-link { justify-self: start; overflow-wrap: anywhere; }
.studio .st-vbr-diff { display: grid; gap: 4px; margin: 2px 0; list-style: none; padding: 0; }
.studio .st-vbr-diff li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.studio .st-vbr-diff li > span { color: var(--st-text-3); min-width: 108px; }
.studio .st-vbr-diff s { color: var(--st-text-3); overflow-wrap: anywhere; }
.studio .st-vbr-diff b { overflow-wrap: anywhere; }
.studio .st-vbr-diff .st-ic { width: 13px; height: 13px; color: var(--st-text-3); }
.studio .st-vbr-laedt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.studio .st-vbr > .st-knopf--haupt { justify-self: stretch; }
.studio .st-vbr-grund { display: flex; align-items: flex-start; gap: 6px; }
.studio .st-vbr-grund .st-ic { width: 13px; height: 13px; flex: none; margin-top: 2px; }
/* Auf dem Blatt: was seit der Bestätigung anders ist. */
.studio .st-vb-iv-neu, .studio .st-vb-iv-tab tr.st-vb-iv-neu td:last-child { background: var(--st-chip-carlo-bg); color: var(--st-chip-carlo-fg); font-weight: 600; border-radius: 4px; }
.studio .st-vb-iv-url { overflow-wrap: anywhere; color: var(--st-text-2); }
@media (max-width: 719px) {
  .studio .st-vbr-felder { grid-template-columns: minmax(0, 1fr); }
}
/* ── Unterschrift des Kundenvertrags — 7b W7.3 (2026-10-27), Entwurf `vereinbarung-neu/vertrag.css` (`.vt-felder-an`,
   `.vt-dokfelder`, `.vt-pad`). Der Vertrag ist ein PDF und damit immer Papier: die Felder darüber tragen feste Farben wie
   im Entwurf, nicht die Tokens der Darstellung — gelb = Pflicht und leer, grün = ausgefüllt. ── */
.studio .st-sig-buehne { width: 100%; max-width: 820px; display: grid; gap: 14px; }
/* Die PDF-Seiten selbst (`StudioPdfSeiten.js`) teilen Vertrag, Angebot und Zusatz (2026-10-29, `.st-pdf-buehne`). */
.studio .st-pdf-buehne { width: 100%; max-width: 820px; display: grid; }
.studio .st-pdf-seiten, .studio .st-pdf-seiten .react-pdf__Document { width: 100%; display: grid; gap: 26px; justify-items: center; }
.studio .st-pdf-seite {
  position: relative; max-width: 100%; background: #fff; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.16);
}
.studio .st-pdf-seite canvas { display: block; border-radius: 4px; }
.studio .st-sig-ebene { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.studio .st-sig-feld { position: absolute; display: flex; align-items: center; pointer-events: auto; border-radius: 3px; color: var(--st-schwarz); }
.studio .st-sig-feld--offen { background: rgba(245, 191, 74, 0.24); box-shadow: 0 0 0 1.5px #e0a21a; }
.studio .st-sig-feld--voll, .studio .st-sig-feld--stempel { background: rgba(28, 150, 98, 0.1); box-shadow: 0 0 0 1.5px #1c9662; }
.studio .st-sig-feld--frei { background: rgba(28, 26, 26, 0.03); outline: 1px dashed rgba(28, 26, 26, 0.4); }
.studio .st-sig-feld--fehler { background: rgba(247, 59, 101, 0.12); box-shadow: 0 0 0 2px #d61f4b; }
.studio .st-sig-feld-tag {
  position: absolute; left: -1px; top: -2px; transform: translateY(-100%); display: inline-flex; align-items: center; gap: 3px;
  max-width: max(100%, 120px); padding: 0 6px; border-radius: 4px 4px 0 0; background: #e0a21a; color: #1c1a1a;
  font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap; pointer-events: none;
}
.studio .st-sig-feld-tag > span { overflow: hidden; text-overflow: ellipsis; }
.studio .st-sig-feld-tag .st-ic { width: 10px; height: 10px; flex: none; stroke-width: 3; }
.studio .st-sig-feld--voll .st-sig-feld-tag, .studio .st-sig-feld--stempel .st-sig-feld-tag { background: #1c9662; color: #fff; }
.studio .st-sig-feld--frei .st-sig-feld-tag { background: #5d5d5d; color: #fff; }
.studio .st-sig-feld--fehler .st-sig-feld-tag { background: #d61f4b; color: #fff; }
.studio .st-sig-eingabe {
  width: 100%; height: 100%; padding: 0 4px; border: 0; border-radius: 3px; background: transparent;
  color: var(--st-schwarz); line-height: 1.2; resize: none;
}
.studio textarea.st-sig-eingabe { padding-top: 2px; }
.studio .st-sig-eingabe:focus { outline: 2px solid var(--st-coco); outline-offset: 1px; }
.studio .st-sig-eingabe:disabled { opacity: 1; cursor: default; -webkit-text-fill-color: var(--st-schwarz); }
.studio .st-sig-haken {
  display: grid; place-items: center; padding: 0; border: 1.5px solid var(--st-schwarz); border-radius: 2px;
  background: #fff; color: var(--st-schwarz); cursor: pointer;
}
.studio .st-sig-haken .st-ic { width: 80%; height: 80%; stroke-width: 3; }
.studio .st-sig-haken:focus-visible { outline: 2px solid var(--st-coco); outline-offset: 2px; }
.studio .st-sig-feld--offen .st-sig-haken { background: rgba(245, 191, 74, 0.35); }
.studio .st-sig-feld--fehler .st-sig-haken { background: rgba(247, 59, 101, 0.18); }
.studio .st-sig-wert { padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--st-schwarz); }
.studio .st-sig-bild { height: 100%; max-width: 100%; object-fit: contain; object-position: left center; }
.studio .st-sig-legende { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--st-text-2); }
.studio .st-sig-legende .st-ic { width: 15px; height: 15px; color: var(--st-chip-gruen-fg); }
.studio .st-sig-legende-punkt { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.studio .st-sig-legende-punkt + .st-sig-legende-punkt, .studio .st-sig-legende-punkt--voll { margin-left: 8px; }
.studio .st-sig-legende-punkt--offen { background: rgba(245, 191, 74, 0.4); box-shadow: inset 0 0 0 1.5px #e0a21a; }
.studio .st-sig-legende-punkt--voll { background: rgba(28, 150, 98, 0.2); box-shadow: inset 0 0 0 1.5px #1c9662; }
.studio .st-sig-pdf-fehler { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Begleiter: Felder-Liste, Name, Zeichnung, Code */
.studio .st-sig { display: grid; gap: 14px; margin-top: 4px; min-width: 0; }
.studio .st-sig > * { min-width: 0; }
.studio .st-sig-text { color: var(--st-text-2); font-size: 13.5px; line-height: 1.5; }
.studio .st-sig-text b { color: var(--st-text); font-weight: 600; }
.studio .st-sig-gezeichnet, .studio .st-sig-quittung { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; }
.studio .st-sig-gezeichnet .st-ic, .studio .st-sig-quittung .st-ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--st-chip-gruen-fg); }
.studio .st-sig--fertig { gap: 8px; }
.studio .st-sig--fertig .st-knopf { justify-self: stretch; margin-top: 6px; }
.studio .st-sig-wer { display: grid; gap: 10px; }
.studio .st-sig-wer-titel { font-size: 13.5px; font-weight: 600; }
.studio .st-sig-wer-namen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.studio .st-sig-haken-zeile { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--st-text-2); cursor: pointer; }
.studio .st-sig-haken-zeile input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--st-akzent); }
.studio .st-sig-felder {
  display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--st-chip-carlo-bg);
  border: 1px solid color-mix(in srgb, var(--st-carlo) 40%, transparent);
}
.studio .st-sig-felder-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--st-chip-carlo-fg); }
.studio .st-sig-felder-kopf > span { display: inline-flex; align-items: center; gap: 6px; }
.studio .st-sig-felder-kopf .st-ic { width: 15px; height: 15px; }
.studio .st-sig-felder-kopf small { font-size: 12px; font-weight: 500; color: var(--st-text-2); }
.studio .st-sig-felder-liste { display: grid; gap: 4px; }
.studio .st-sig-felder-zeile {
  width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 9px; border: 0; background: var(--st-s1); color: var(--st-text); text-align: left; font-size: 13px;
}
.studio .st-sig-felder-zeile:hover { background: var(--st-s2); }
.studio .st-sig-felder-zeile small { color: var(--st-text-3); font-size: 12px; white-space: nowrap; }
.studio .st-sig-felder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .st-sig-felder-punkt { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.studio .st-sig-felder-punkt .st-ic { width: 11px; height: 11px; stroke-width: 3; }
.studio .st-sig-felder-zeile--offen .st-sig-felder-punkt { background: rgba(245, 191, 74, 0.3); box-shadow: inset 0 0 0 1.5px #e0a21a; }
.studio .st-sig-felder-zeile--voll .st-sig-felder-punkt { background: #1c9662; color: #fff; }
.studio .st-sig-felder-zeile--frei .st-sig-felder-punkt { box-shadow: inset 0 0 0 1.5px var(--st-linie-2); }
.studio .st-sig-felder-zeile--fehler { box-shadow: inset 0 0 0 1.5px var(--st-chip-peppa-fg); }
.studio .st-sig-zeichnen { position: relative; }
.studio .st-sig-pad-wrap { position: relative; border-radius: 12px; border: 1px dashed #cfc9da; background: #fff; }
.studio .st-sig-pad-wrap::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 30px; border-bottom: 1px solid #dcd8e2; pointer-events: none; }
.studio .st-sig-pad { display: block; width: 100%; max-width: 100%; height: 140px; border-radius: 12px; touch-action: none; cursor: crosshair; }
.studio .st-sig-clear {
  position: absolute; right: 8px; top: 8px; padding: 4px 10px; border: 0; border-radius: 8px; background: none;
  color: #4a474f; font-size: 12.5px; font-weight: 500;
}
.studio .st-sig-clear:hover:not(:disabled) { background: #f1eef6; color: #1c1a1a; }
.studio .st-sig-clear:disabled { visibility: hidden; }
.studio .st-sig-pad-hinweis {
  position: absolute; left: 14px; bottom: 9px; display: inline-flex; align-items: center; gap: 6px;
  color: #8a8790; font-size: 12.5px; pointer-events: none;
}
.studio .st-sig-pad-hinweis .st-ic { width: 14px; height: 14px; }
.studio .st-sig-datum { display: flex; align-items: center; gap: 6px; }
.studio .st-sig-datum .st-ic { width: 14px; height: 14px; flex: none; }
.studio .st-sig-code { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--st-linie); }
.studio .st-sig-code-eingabe { font-size: 20px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.studio .st-sig-fehler { color: var(--st-chip-peppa-fg); font-size: 13px; font-weight: 500; }
.studio .st-sig-team { display: flex; align-items: center; gap: 6px; color: var(--st-text-2); font-size: 13px; }
.studio .st-sig-team .st-ic { width: 14px; height: 14px; flex: none; }
.studio .st-sig-fuss {
  position: sticky; bottom: -16px; z-index: 2; display: grid; gap: 8px; margin: 0 -12px; padding: 12px 12px 14px;
  border-top: 1px solid var(--st-linie); background: color-mix(in srgb, var(--st-akzent) 6%, var(--st-s2));
}
.studio .st-sig-knopf { justify-self: stretch; }
.studio .st-sig-recht { line-height: 1.45; }
/* Ohne innere Scroll-Fläche (Begleiter unter dem Dokument) klebt der Fuss am Fensterrand. */
@media (max-width: 959px) {
  .studio .st-sig-fuss { bottom: 0; }
}
/* ── Vereinbarung · Formular der Vertragspartei im Begleiter — 7b W7.1 (2026-10-27), nach dem Entwurf
   `vereinbarung-neu/vertrag-b.css` (`vtb-wahl`) und `vertrag.css` (`vt-formular`, `vt-suche`, `vt-ust`). Präfix `st-fp-`. ── */
.studio .st-fp { display: grid; gap: 16px; margin-top: 4px; }
.studio .st-fp-team { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--st-s2); color: var(--st-text-2); font-size: 13px; }
.studio .st-fp-team .st-ic { width: 15px; height: 15px; flex: none; }
.studio .st-fp-teil { display: grid; gap: 10px; }
.studio .st-fp-teil + .st-fp-teil { padding-top: 14px; border-top: 1px solid var(--st-linie); }
.studio .st-fp-teil h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.studio .st-fp-satz { color: var(--st-text-2); font-size: 13px; line-height: 1.5; margin-top: -4px; }
.studio .st-fp-teil.ist-gesperrt .st-fp-feldsatz { opacity: 0.5; }
.studio .st-fp-sperre { display: flex; align-items: center; gap: 6px; color: var(--st-text-3); font-size: 13px; }
.studio .st-fp-sperre .st-ic { width: 14px; height: 14px; }
.studio .st-fp-feldsatz { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }

/* Grundlage wählen */
.studio .st-fp-wahlen { display: grid; gap: 8px; }
.studio .st-fp-wahl {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 12px; align-items: start; width: 100%; text-align: left;
  padding: 12px; border-radius: 14px; border: 1px solid var(--st-linie); background: var(--st-s2); color: inherit; font: inherit; cursor: pointer;
}
.studio .st-fp-wahl:hover:not(:disabled) { border-color: var(--st-linie-2); }
.studio .st-fp-wahl:focus-visible { outline: 2px solid var(--st-fokus); outline-offset: 2px; }
.studio .st-fp-wahl:disabled { cursor: default; }
.studio .st-fp-wahl.ist-gewaehlt { border-color: var(--st-akzent); background: var(--st-chip-coco-bg); }
.studio .st-fp-wahl-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--st-s3); color: var(--st-text-2); }
.studio .st-fp-wahl-icon .st-ic { width: 17px; height: 17px; }
.studio .st-fp-wahl.ist-gewaehlt .st-fp-wahl-icon { background: var(--st-akzent); color: #fff; }
.studio .st-fp-wahl-text { display: grid; gap: 3px; min-width: 0; }
.studio .st-fp-wahl-text b { font-weight: 600; font-size: 14px; }
.studio .st-fp-wahl-text small { color: var(--st-text-2); font-size: 12.5px; line-height: 1.45; }
.studio .st-fp-wahl-punkt { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--st-linie-2); margin-top: 2px; }
.studio .st-fp-wahl.ist-gewaehlt .st-fp-wahl-punkt { border: 5px solid var(--st-akzent); background: #fff; }

/* Hinterlegte Firma */
.studio .st-fp-firma { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--st-s2); border: 1px solid var(--st-linie); }
.studio .st-fp-firma-name { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.studio .st-fp-firma address { display: grid; font-style: normal; color: var(--st-text-2); font-size: 13.5px; line-height: 1.5; }
.studio .st-fp-kennungen { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--st-linie); margin: 0; }
.studio .st-fp-kennungen div { display: grid; gap: 1px; }
.studio .st-fp-kennungen dt { font-size: 11.5px; color: var(--st-text-3); }
.studio .st-fp-kennungen dd { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.studio .st-fp-kennungen dd .st-ic { width: 13px; height: 13px; color: var(--st-text-3); }
.studio .st-fp-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio .st-fp-knoepfe .st-fp-breit { grid-column: 1 / -1; height: 44px; font-size: 15px; }

/* Felder */
.studio .st-fp-formular { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.studio .st-fp-feld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.studio .st-fp-feld--breit { grid-column: 1 / -1; }
.studio .st-fp-label { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 12.5px; color: var(--st-text-3); font-weight: 500; }
.studio .st-fp-label small { font-size: 11.5px; font-weight: 400; color: var(--st-text-3); }
.studio .st-fp-label small::before { content: "· "; }
.studio .st-fp-pflicht { color: var(--st-chip-peppa-fg); font-weight: 600; }
.studio .st-fp-hinweis { display: flex; align-items: flex-start; gap: 6px; color: var(--st-text-3); font-size: 12.5px; line-height: 1.45; }
.studio .st-fp-hinweis .st-ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.studio .st-fp-feld--fehler .st-eingabefeld, .studio .st-fp-feld--fehler .st-auswahl { border-color: var(--st-chip-peppa-fg); }
.studio .st-fp-feld .st-auswahl { width: 100%; }
.studio .st-fp-feldsatz:disabled .st-eingabefeld, .studio .st-fp-feldsatz:disabled .st-auswahl { opacity: 0.7; cursor: default; }
.studio .st-fp-haken { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--st-s1); border: 1px solid var(--st-linie); font-size: 13px; line-height: 1.45; color: var(--st-text-2); cursor: pointer; }
.studio .st-fp-haken input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--st-akzent); flex: none; }

/* Suche (Firma) und Adress-Vorschläge */
.studio .st-fp-suche { position: relative; }
.studio .st-fp-pop {
  position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 4px); display: grid; gap: 2px; padding: 6px;
  border-radius: 12px; background: var(--st-s1); border: 1px solid var(--st-linie-2); box-shadow: var(--st-schatten);
}
.studio .st-fp-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 9px; background: none; text-align: left; color: inherit; font: inherit; font-size: 13.5px; cursor: pointer;
}
.studio .st-fp-opt:hover, .studio .st-fp-opt.ist-aktiv, .studio .st-fp-opt:focus-visible { background: var(--st-s2); }
.studio .st-fp-opt > span:first-child { display: grid; gap: 1px; min-width: 0; }
.studio .st-fp-opt small { color: var(--st-text-3); font-size: 12px; }
.studio .st-fp-quelle { flex: none; font-size: 11px; font-weight: 600; color: var(--st-chip-coco-fg); background: var(--st-chip-coco-bg); border-radius: 999px; padding: 2px 8px; }
.studio .st-fp-pop-fuss { padding: 4px 10px 2px; color: var(--st-text-3); font-size: 12px; }

/* „Meinst du …?" */
.studio .st-fp-treffer { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--st-chip-coco-bg); font-size: 13px; line-height: 1.45; }
.studio .st-fp-treffer > .st-ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--st-akzent-ink); }
.studio .st-fp-treffer > div { display: grid; gap: 4px; min-width: 0; }
.studio .st-fp-treffer span { color: var(--st-text-2); }
.studio .st-fp-treffer.ist-bestaetigt { background: var(--st-chip-gruen-bg); }
.studio .st-fp-treffer.ist-bestaetigt > .st-ic { color: var(--st-chip-gruen-fg); }
.studio .st-fp-treffer-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* USt-IdNr: Prüfung */
.studio .st-fp-ust-box { display: grid; gap: 4px; }
.studio .st-fp-ust { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.45; font-weight: 500; }
.studio .st-fp-ust .st-ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.studio .st-fp-ust--pruefe { color: var(--st-text-2); }
.studio .st-fp-ust--ok { color: var(--st-chip-gruen-fg); }
.studio .st-fp-ust--offen { color: var(--st-chip-carlo-fg); }
.studio .st-fp-ust-bereinigt { color: var(--st-text-3); font-size: 12px; }
.studio .st-fp-kreis { width: 13px; height: 13px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--st-linie-2); border-top-color: var(--st-akzent-ink); animation: st-fp-dreh 0.8s linear infinite; flex: none; }
@keyframes st-fp-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .studio .st-fp-kreis { animation: none; } }

/* Fuß */
.studio .st-fp-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--st-chip-carlo-bg); color: var(--st-text); font-size: 13px; line-height: 1.45; }
.studio .st-fp-warn .st-ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--st-chip-carlo-fg); }
.studio .st-fp-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.studio .st-fp-fuss .st-knopf--haupt { min-width: 150px; }
@media (max-width: 719px) {
  .studio .st-fp-formular { grid-template-columns: minmax(0, 1fr); }
  .studio .st-fp-fuss .st-knopf--haupt { flex: 1; }
}
