/* B · Workflow-Schaltpult (Bauplan 2026-11-19, Etappe 1b). Nur B-Variablen aus stil.css, hell + dunkel, Handy 375 px einspaltig,
   Bedienelemente mind. 44 px, reduzierte Bewegung respektiert. Alle Klassen mit „sp-“ davor. */

main.schmal.sp-seite { max-width: 1180px; }
.sp-host { display: grid; gap: 16px; min-width: 0; }
.sp-bib, .sp-ap { display: grid; gap: 16px; min-width: 0; }
.sp-bib-kopf h1, .sp-ap-titel h1 { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.sp-bib-kopf p { margin-top: 4px; }

/* Guthaben-Zeile */
.sp-guthaben { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--linie2); border-radius: 14px; background: var(--flaeche); font-size: 13px; color: var(--tinte2); }
.sp-guthaben b { color: var(--tinte); font-size: 14px; }

/* Suche + Chips */
.sp-suchzeile { display: grid; gap: 10px; }
.sp-suche { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); color: var(--tinte); font-size: 15px; }
.sp-chips .chip { min-height: 44px; display: inline-flex; align-items: center; }

/* Kacheln */
.sp-gruppe { display: grid; gap: 10px; }
.sp-gruppe-titel { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte2); }
.sp-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.sp-kachel { display: grid; gap: 8px; align-content: start; padding: 16px; min-height: 44px; border: 1px solid var(--linie2); border-radius: 18px; background: var(--flaeche); color: var(--tinte); text-decoration: none; box-shadow: var(--schatten); transition: border-color .15s, transform .15s; }
.sp-kachel:hover { border-color: var(--kobalt); }
.sp-kachel:active { transform: scale(.99); }
.sp-kachel:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 2px; }
.sp-kachel-zeile1 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.sp-schilder { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; max-width: 100%; }
/* Kurs-Herkunft: neutral und leiser als die Zustands-Marke, darf auf schmalen Kacheln umbrechen. */
.marke.sp-kurs { background: transparent; }
.sp-kachel h3 { font-size: 17px; font-weight: 700; }
.sp-zweck { font-size: 14px; }
.sp-reihenfolge { font-size: 13px; color: var(--tinte2); }
.sp-meta { display: grid; gap: 2px; font-size: 12.5px; color: var(--tinte2); }
.sp-meta b { color: var(--tinte); font-weight: 600; }
.sp-weitere { font-size: 13px; }

/* Listen: Zuletzt gelaufen / Verlauf */
.sp-liste { display: grid; }
.sp-zeile { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linie2); font-size: 13px; min-width: 0; }
.sp-zeile:first-child { border-top: 0; }
.sp-was { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-datum, .sp-dauer { color: var(--tinte2); }
.sp-kosten { grid-column: 2 / 3; color: var(--tinte2); }
.sp-dauer { grid-column: 3 / 4; text-align: right; }
.sp-zeile-fehler { grid-column: 1 / -1; color: var(--rot); font-size: 12.5px; overflow-wrap: anywhere; }
.sp-zeile-knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-zeile-knoepfe:empty { display: none; }
.sp-zeile-knoepfe .knopf { min-height: 44px; }

/* Arbeitsplatz-Kopf */
.sp-ap-kopf { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: center; }
.sp-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--kobalt); font-weight: 600; }
.sp-zurueck { display: inline-flex; align-items: center; min-height: 44px; color: var(--kobalt); font-weight: 600; text-decoration: none; width: max-content; }
.sp-ap-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* Lange Marken (z. B. Wan 3.0 „läuft in Venice von Hand …“) dürfen umbrechen, sonst läuft das Handy waagrecht über. */
.sp-kachel-zeile1 .marke, .sp-ap-titel .marke { white-space: normal; max-width: 100%; }
.sp-ap-umschalter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sp-umschalter { display: inline-flex; border: 1px solid var(--linie); border-radius: 12px; padding: 3px; background: var(--flaeche2); }
.sp-umschalter .sp-wahl-knopf { border: 0; background: transparent; }
.sp-umschalter .sp-wahl-knopf[aria-pressed="true"] { background: var(--flaeche); box-shadow: var(--schatten); }
.sp-umschalter .sp-wahl-knopf[disabled] { opacity: .45; cursor: not-allowed; }
.sp-ap-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sp-kosten-kurz { display: grid; line-height: 1.2; }
.sp-kosten-kurz b { font-size: 18px; }
.sp-kosten-kurz span { font-size: 12px; color: var(--tinte2); }
.sp-ausfuehren, .sp-start { min-height: 48px; padding-inline: 22px; font-size: 15px; font-weight: 650; border-radius: 12px; }
.sp-rolle { font-size: 13px; padding: 10px 12px; border: 1px dashed var(--linie); border-radius: 10px; }
@media (min-width: 760px) {
  .sp-ap-kopf { grid-template-columns: 1fr auto; }
  .sp-zurueck { grid-column: 1 / -1; }
  .sp-ap-umschalter { grid-column: 1 / 2; }
  .sp-ap-rechts { grid-column: 2 / 3; grid-row: 2 / 4; justify-content: flex-end; }
}

/* Einfach-Ansicht: einspaltig, ab 1000 px zwei Spalten */
.sp-einfach { display: grid; gap: 16px; min-width: 0; }
.sp-spalte { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1000px) { .sp-einfach { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

.sp-anleitung { border: 1px solid var(--linie2); border-radius: 16px; background: var(--kobalt-hell); color: var(--tinte); padding: 0 16px; }
.sp-anleitung summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.sp-anleitung ol { padding: 0 0 12px 20px; display: grid; gap: 6px; font-size: 14px; }
.sp-fallen { padding: 0 0 14px; font-size: 13px; display: grid; gap: 4px; }
.sp-fallen ul { padding-left: 20px; display: grid; gap: 4px; }

.sp-eingaben { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--linie2); border-radius: 20px; background: var(--flaeche); box-shadow: var(--schatten); }
.sp-feld { display: grid; gap: 6px; min-width: 0; }
.sp-feld-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-text { width: 100%; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche2); color: var(--tinte); font: inherit; font-size: 15px; resize: vertical; min-height: 44px; }
.sp-deutsch { background: transparent; border-style: dashed; }
.sp-zahl { min-height: 44px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche2); color: var(--tinte); font-size: 15px; width: 100%; max-width: 220px; }
.sp-zahl.breit { max-width: 100%; }
.sp-hinweis-klein { font-size: 12.5px; color: var(--tinte3); }
.sp-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-wahl-knopf { appearance: none; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--linie2); border-radius: 12px; background: var(--flaeche2); color: var(--tinte); font-size: 14px; cursor: pointer; }
.sp-wahl-knopf[aria-pressed="true"] { border-color: var(--kobalt); background: var(--kobalt-hell); color: var(--kobalt); font-weight: 650; }
.sp-wahl-knopf:focus-visible, .sp-text:focus-visible, .sp-zahl:focus-visible, .sp-suche:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 1px; }
.sp-seeds { list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--tinte2); }
.sp-seeds b { color: var(--tinte); font-weight: 600; }
.sp-schalter { display: flex; align-items: center; gap: 10px; min-height: 44px; }

/* Läuft gerade */
.sp-laeuft { display: grid; gap: 8px; padding: 16px; border-radius: 18px; border: 1px solid var(--linie2); background: var(--flaeche); box-shadow: var(--schatten); }
.sp-laeuft.an { border-color: var(--kobalt); }
.sp-laeuft-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-laeuft-kopf h2 { font-size: 17px; font-weight: 700; }
.sp-laeuft.an .sp-laeuft-kopf h2::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--kobalt); margin-right: 8px; vertical-align: middle; animation: sppuls 1.4s ease-in-out infinite; }
.sp-laeuft .knopf { min-height: 44px; width: max-content; }
@keyframes sppuls { 50% { opacity: .3; } }

/* Ungeklärt */
.sp-klaer-liste { display: grid; gap: 12px; }
.sp-klaer-liste:empty { display: none; }
.sp-klaer { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 2px solid var(--amber); background: var(--amber-hell); color: var(--tinte); }
.sp-klaer-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-klaer-kopf h2 { font-size: 17px; font-weight: 750; }
.sp-klaer-link { font-weight: 600; }
.sp-klaer .knopf { min-height: 44px; }
.sp-klaer-form { display: grid; gap: 10px; padding-top: 4px; }

/* Fehler, Hinweis, Knöpfe */
.sp-fehler { padding: 10px 14px; border-radius: 12px; background: var(--rot-hell); color: var(--rot); font-size: 14px; overflow-wrap: anywhere; }
.sp-fehler b { font-weight: 700; }
.sp-hinweis { padding: 10px 14px; border-radius: 12px; background: var(--kobalt-hell); color: var(--tinte); font-size: 13.5px; }
.sp-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.sp-knoepfe.links { justify-content: flex-start; }
.sp-knoepfe .knopf { min-height: 44px; }

/* Bestätigung */
.sp-bestaetigung { display: grid; gap: 14px; }
.sp-betrag { display: grid; gap: 2px; }
.sp-betrag b { font-size: 28px; font-weight: 750; }
.sp-betrag span { color: var(--tinte2); font-size: 14px; }
.sp-fakten { display: grid; gap: 8px; font-size: 14px; }
.sp-fakten > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.sp-fakten dt { color: var(--tinte2); }
@media (max-width: 420px) { .sp-fakten > div { grid-template-columns: 1fr; gap: 0; } }

/* Galerie */
.sp-galerie-wrap { display: grid; gap: 8px; }
.sp-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 8px; }
.sp-erg { display: grid; gap: 4px; }
.sp-erg a { display: block; border-radius: 12px; overflow: hidden; background: var(--flaeche2); aspect-ratio: 9 / 16; }
.sp-erg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-erg figcaption { font-size: 11.5px; color: var(--tinte3); }

/* Bisheriger Weg (Runpod) */
.sp-bisher { border: 1px solid var(--linie2); border-radius: 20px; background: var(--flaeche); padding: 0 16px; }
.sp-bisher > summary { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; font-weight: 700; }
.sp-bisher[open] > summary { border-bottom: 1px solid var(--linie2); margin-bottom: 14px; }
.sp-bisher-inhalt { display: grid; gap: 16px; padding-bottom: 16px; min-width: 0; }

@media (max-width: 480px) {
  .sp-eingaben { padding: 14px; }
  .sp-ausfuehren { flex: 1; }
  .sp-zeile { grid-template-columns: 1fr auto; }
  .sp-datum { grid-column: 1 / -1; }
  .sp-kosten { grid-column: 1 / 2; }
  .sp-dauer { grid-column: 2 / 3; }
}

@media (prefers-color-scheme: dark) {
  .sp-anleitung { background: color-mix(in srgb, var(--kobalt) 14%, var(--flaeche)); }
  .sp-klaer { background: color-mix(in srgb, var(--amber) 16%, var(--flaeche)); }
  .sp-hinweis { background: color-mix(in srgb, var(--kobalt) 16%, var(--flaeche)); }
  .sp-wahl-knopf[aria-pressed="true"] { background: color-mix(in srgb, var(--kobalt) 24%, var(--flaeche)); color: var(--tinte); }
}

@media (prefers-reduced-motion: reduce) {
  .sp-kachel, .sp-kachel:active { transition: none; transform: none; }
  .sp-laeuft.an .sp-laeuft-kopf h2::before { animation: none; }
}

/* Hinweis: auf Runpod läuft noch ein Rechner (nur Sprung zur Produktion, kein Start) */
.sp-pod-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--amber); background: var(--amber-hell); color: var(--tinte); font-size: 13.5px; margin-bottom: 12px; }
.sp-pod-hinweis small { flex-basis: 100%; }
@media (prefers-color-scheme: dark) { .sp-pod-hinweis { background: color-mix(in srgb, var(--amber) 16%, var(--flaeche)); } }
.sp-wan { min-width: 0; }

/* ===================== Etappe 2: Mini-Zeichnung, Workflow-Ansicht (Leinwand) · Etappe 3: Bild aus Material ===================== */
.sp-mini { position: relative; aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; background-color: #16191D;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px); background-size: 12px 12px; }
.sp-mini svg { width: 100%; height: 100%; display: block; }
.sp-mini-marke { position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #DCE2E7; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; }

.sp-feld-zusatz { display: inline-flex; align-items: baseline; gap: 10px; }
.sp-im-workflow, .sp-link-knopf { appearance: none; border: 0; background: none; padding: 0; color: var(--kobalt); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 24px; }
.sp-im-workflow:focus-visible, .sp-link-knopf:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 2px; border-radius: 4px; }
.sp-abweichung { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }

.sp-workflow { display: grid; gap: 14px; min-width: 0; }
.sp-workflow[hidden], .sp-ap > div[hidden] { display: none; }
.sp-leinwand { min-width: 0; }
.lw-rahmen { --lw-grund: #16191D; --lw-punkt: rgba(255,255,255,.075); --lw-knoten: #22272D; --lw-kopf: #2B3138; --lw-rand: #343B43;
  --lw-tinte: #DCE2E7; --lw-tinte2: #8E99A3; --lw-kobalt: #7B96FF; --lw-feld: #1A1E23;
  position: relative; height: 70vh; min-height: 380px; overflow: hidden; border-radius: 18px; border: 1px solid var(--lw-rand);
  background-color: var(--lw-grund); background-image: radial-gradient(var(--lw-punkt) 1.2px, transparent 1.2px); background-size: 24px 24px;
  touch-action: none; cursor: grab; color: var(--lw-tinte); font-size: 12.5px; user-select: none; }
.lw-rahmen:active { cursor: grabbing; }
.lw-rahmen:focus-visible { outline: 2px solid var(--lw-kobalt); outline-offset: 2px; }
.lw-welt { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.lw-leitungen { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; overflow: visible; }
.lw-gruppe { position: absolute; border: 2px solid; border-radius: 10px; z-index: 0; }
.lw-gruppe .gt { height: 40px; padding: 0 14px; display: flex; align-items: center; font-size: 21px; font-weight: 700; color: #fff; border-radius: 8px 8px 0 0; white-space: nowrap; overflow: hidden; }
.kn { position: absolute; z-index: 2; background: var(--lw-knoten); border: 1px solid var(--lw-rand); border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.35); overflow: hidden; display: flex; flex-direction: column; }
.kn.aus { opacity: .45; }
.kn.gewaehlt { border-color: var(--lw-kobalt); box-shadow: 0 0 0 3px rgba(123,150,255,.45), 0 4px 14px rgba(0,0,0,.35); }
.kn-kopf { height: 26px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px; background: var(--lw-kopf); font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; }
.kn-aus { padding: 0 6px; border-radius: 6px; background: #444; color: #ddd; font-size: 11px; }
.kn-slots { position: relative; flex: none; }
.kn-port { position: absolute; height: 20px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--lw-tinte2); white-space: nowrap; }
.kn-port.ein { left: -5px; }
.kn-port.aus { right: -5px; }
.kn-port i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kn-werte { display: grid; gap: 2px; padding: 8px 8px 10px; min-height: 0; overflow: hidden; flex: 1; align-content: start; }
.kz { min-height: 20px; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 1px 8px; border-radius: 6px; background: var(--lw-feld); border: 1px solid transparent; }
.kz-l { color: var(--lw-tinte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-w { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; font-variant-numeric: tabular-nums; }
.kz.fest { color: #9AA3AB; }
.kz.fest .kz-w { color: #AEB6BD; }
.kz-schloss { color: #6F7983; display: inline-flex; }
.kz.offen { border-color: var(--lw-kobalt); background: rgba(123,150,255,.08); }
.kz.offen.folgt { border-style: dashed; }
.kz.offen small { color: var(--lw-tinte2); font-size: 10.5px; }
.kz.text, .kz.flaeche { grid-template-columns: 1fr; align-items: start; padding: 6px 8px; gap: 6px; }
.lw-feld, .lw-textfeld { width: 100%; min-width: 0; background: #0F1215; color: var(--lw-tinte); border: 1px solid var(--lw-kobalt); border-radius: 6px; padding: 2px 6px; font: inherit; font-size: 12.5px; }
.lw-textfeld { min-height: 220px; resize: none; line-height: 1.4; padding: 6px 8px; user-select: text; }
.lw-feld:disabled, .lw-textfeld:disabled, .lw-knopf:disabled { opacity: .7; cursor: default; }
.lw-bild { display: grid; gap: 6px; justify-items: start; }
.lw-bild img { max-width: 100%; max-height: 520px; border-radius: 8px; display: block; }
.lw-legende { position: absolute; left: 12px; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 12px; border-radius: 10px; background: rgba(22,25,29,.85); border: 1px solid var(--lw-rand); font-size: 12px; color: var(--lw-tinte2); max-width: calc(100% - 24px); }
.lw-legende span { display: inline-flex; align-items: center; gap: 6px; }
.lw-legende i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lw-l-offen { border: 1.5px solid var(--lw-kobalt); background: rgba(123,150,255,.15); }
.lw-l-fest { background: var(--lw-feld); border: 1px solid #4A525B; }
.lw-l-handy { color: var(--lw-tinte); font-weight: 600; }
.lw-l-fassung { color: #F2B36B; font-weight: 600; }
.lw-l-fassung[hidden] { display: none; }
.lw-steuer { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(22,25,29,.9); border: 1px solid var(--lw-rand); }
.lw-knopf { appearance: none; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--lw-rand); background: var(--lw-kopf); color: var(--lw-tinte); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lw-knopf:focus-visible, .lw-feld:focus-visible, .lw-textfeld:focus-visible { outline: 2px solid var(--lw-kobalt); outline-offset: 1px; }
.kz .lw-knopf { min-height: 32px; font-size: 12.5px; }
.lw-prozent { min-width: 46px; text-align: center; color: var(--lw-tinte2); font-size: 12.5px; }
.sp-galerie-klein .sp-galerie { grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); }
.sp-als-eingabe { min-height: 36px; font-size: 12px; padding: 4px 8px; }
@media (max-width: 759px) { .lw-rahmen { height: 60vh; min-height: 320px; } }

/* Bild-Feld (einfach) und Blatt „Bild aus Material wählen“ */
.sp-bild-gewaehlt { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.sp-bild-gewaehlt img { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--flaeche2); display: block; }
.sp-bildwahl { display: grid; gap: 12px; }
.sp-bildwahl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); gap: 10px; max-height: 52vh; overflow: auto; padding: 2px; }
.sp-bildwahl-kachel { appearance: none; display: grid; gap: 4px; padding: 4px; border: 2px solid var(--linie2); border-radius: 12px; background: var(--flaeche2); color: var(--tinte); cursor: pointer; text-align: left; min-height: 44px; }
.sp-bildwahl-kachel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; display: block; background: var(--flaeche); }
.sp-bildwahl-kachel.an { border-color: var(--kobalt); }
.sp-bildwahl-kachel.nackt { opacity: .55; cursor: not-allowed; }
.sp-bildwahl-kachel:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 2px; }
.sp-bildwahl-titel { font-size: 12px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow-wrap: anywhere; min-height: calc(2 * 1.3em); }
.sp-bildwahl-bild { position: relative; display: block; }
.sp-bildwahl-ohne { display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; background: var(--flaeche); color: var(--tinte2, var(--tinte)); }
.sp-bildwahl-ohne svg { width: 40%; max-width: 48px; height: auto; opacity: .7; }
.sp-bildwahl-dauer { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; background: rgba(0, 0, 0, .66); color: #fff; }
@media (prefers-reduced-motion: reduce) { .lw-welt { will-change: auto; } }

/* ---- Etappe 4: SCAIL 2 (Video) ---- */
.sp-video { width: 100%; max-height: 280px; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 12px; background: #000; display: block; }
.sp-video.breit { aspect-ratio: auto; max-height: 360px; }
.sp-video-gewaehlt { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: start; }
.sp-video-gewaehlt .sp-video { width: 132px; max-height: 236px; }
.sp-galerie.mit-video { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.sp-erg.video a.sp-link { display: inline; aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.sp-erg .sp-hinweis-klein.warn { color: var(--amber); }
.sp-vergleich summary { cursor: pointer; font-size: 13px; color: var(--kobalt); min-height: 32px; display: flex; align-items: center; }
.sp-vergleich[open] summary { margin-bottom: 6px; }
.sp-stufe-knopf { display: grid; gap: 2px; text-align: left; min-width: 150px; }
.sp-stufe-knopf small { font-size: 12px; color: var(--tinte3); font-weight: 400; }
.sp-haken { display: grid; gap: 4px; margin: 4px 0 8px; padding: 8px 14px; border: 1.5px solid var(--linie2); border-radius: 12px; background: var(--flaeche2); }
.sp-haken-zeile input { width: 20px; height: 20px; accent-color: var(--kobalt); }
.sp-haken-zeile small { margin-left: auto; }
.sp-ungeprueft { margin: 0; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--amber); background: var(--amber-hell); color: var(--tinte); font-size: 12.5px; flex-basis: 100%; }
@media (prefers-color-scheme: dark) { .sp-ungeprueft { background: color-mix(in srgb, var(--amber) 16%, var(--flaeche)); } }
.sp-teuer { display: grid; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--amber-hell); }
.sp-teuer-zeile { margin: 0; color: var(--amber); font-weight: 650; }
.sp-seed .sp-seeds li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.sp-bildwahl-kachel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; display: block; background: #000; pointer-events: none; }
.lw-video-titel { font-size: 13px; }
@media (max-width: 759px) {
  .sp-video-gewaehlt { grid-template-columns: 1fr; }
  .sp-video-gewaehlt .sp-video { width: 100%; max-height: 320px; }
  .sp-stufe-knopf { min-width: 0; flex: 1 1 140px; }
}

/* Metadaten-Arbeitsplatz: gleiche Flächen und Typografie wie die übrigen Workflows. */
.sp-meta-spalten{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:1.5rem;align-items:start}
.sp-meta-kopf{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.25rem 0}
.sp-meta-select{display:block;width:100%;min-height:2.75rem;padding:.65rem .8rem;border:1px solid var(--linie,#45484e);border-radius:.6rem;background:var(--flaeche,#202329);color:inherit;font:inherit}
.sp-meta-form .sp-feld{display:block;margin-bottom:1.25rem}.sp-meta-form .feld-label{display:block;margin-bottom:.5rem}
.sp-meta-vorschau img{display:block;max-width:100%;max-height:15rem;object-fit:contain;border-radius:.65rem;margin:.75rem 0}
.sp-meta-lauf{padding:1rem 0;border-bottom:1px solid var(--linie,#45484e)}.sp-meta-lauf p{overflow-wrap:anywhere}
.sp-meta-ablauf .sp-meta-knoten{border:1px solid var(--linie,#45484e);border-left:3px solid #7B96FF;padding:1rem;margin:1rem 0;border-radius:.6rem}
.sp-meta-ablauf .sp-meta-knoten h3{margin:0}.sp-meta-spalten .tafel{min-width:0}.sp-meta-spalten [hidden]{display:none}
@media(max-width:759px){.sp-meta-spalten{grid-template-columns:1fr}.sp-meta-kopf{align-items:stretch;flex-direction:column}.sp-meta-kopf .knopf{width:100%}}
