/* Werkbank (js/werkbank/): neue Einrichtung des Visualizers – Werkzeugleiste links, ein Bereich zur Zeit.
   Designsprache wie Show-Designer (DESIGN.md): Bühnen-Schwarz, Panels, Pult-Bernstein, große Klickflächen. */
body.wb {
  --wb-rail: 76px; --wb-panel: 380px;
  --panel-3: #1e222b; --line-2: #313744; --line-h: #4a5263; --dim: #6f7685;
  --accent-bg: #2a2110; --accent-line: #5a4415; --accent-ink: #1a1205;
}

/* ---------------------------------------------------------------- Raster: Leiste | Bereich | 3D | Eigenschaften */
body.wb .layout { grid-template-columns: var(--wb-rail) auto minmax(0, 1fr) auto; }
body.wb .wb-rail { grid-column: 1; grid-row: 1; }
body.wb .wb-panel { grid-column: 2; grid-row: 1; }
body.wb .viewport { grid-column: 3; grid-row: 1; }
body.wb .inspector { grid-column: 4; grid-row: 1; }
/* die alte Seitenleiste ist leer geräumt (Teile stecken in den Bereichen) */
body.wb aside.side, body.wb #edit-tools, body.wb #toggle-edit, body.wb #toggle-pos { display: none !important; }

/* ---------------------------------------------------------------- Werkzeugleiste */
.wb-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; background: var(--panel); border-right: 1px solid var(--line);
  overflow-y: auto; min-height: 0; }
.wb-rb { display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--muted); font-size: 11.5px; font-weight: 650; line-height: 1.15; text-align: center; cursor: pointer; min-height: 56px; }
.wb-rb .ic { width: 24px; height: 24px; }
.wb-rb:hover { color: var(--text); background: var(--panel-2); }
.wb-rb.is-on { color: var(--text); background: var(--panel-3); border-color: var(--line-2); }
.wb-rb.is-on .ic { color: var(--accent); }
.wb-rb:focus-visible, .wb-x:focus-visible, .wb-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Bereich */
.wb-panel { width: var(--wb-panel); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-height: 0; background: var(--panel);
  border-right: 1px solid var(--line); }
.wb-head { grid-row: 1; } .wb-guide { grid-row: 2; } .wb-body { grid-row: 3; } .wb-foot { grid-row: 4; }
.wb-panel[hidden] { display: none; }
.wb-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.wb-title { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.wb-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: none;
  color: var(--muted); cursor: pointer; }
.wb-x:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.wb-x .ic { width: 20px; height: 20px; }
.wb-body { overflow-y: auto; min-height: 0; }
.wb-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; padding: 14px 16px 28px; }
.wb-area[hidden] { display: none; }
.wb-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.wb-sec-h { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.wb-sec-h .muted { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; margin-left: auto; }
.wb-sub { margin: 6px 0 0; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.wb-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.wb .wb-wide { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wb .wb-wide .ic { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Geführt | Frei (Paket 2) */
.wb-mode .seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.wb-mode .ic { width: 16px; height: 16px; }
.wb-head.is-guided .wb-title { display: none; }
.wb-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.wb-step { position: relative; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font-size: 11.5px; font-weight: 650; line-height: 1.15; cursor: pointer; min-width: 0; }
.wb-step-t { max-width: 100%; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wb-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--panel-3); color: var(--muted); }
.wb-step-n .ic { width: 15px; height: 15px; }
.wb-step:hover { color: var(--text); }
.wb-step.is-done .wb-step-n { background: #10241a; color: var(--ok); }
.wb-step.is-on { color: var(--text); background: var(--accent-bg); }
.wb-step.is-on .wb-step-n { background: var(--accent); color: var(--accent-ink); }
.wb-step:not(:last-child)::after { content: ""; position: absolute; top: 20px; right: -5px; width: 6px; height: 2px; background: var(--line-2); }
.wb-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wb-guide { display: grid; gap: 8px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #2a211033, transparent); }
.wb-guide[hidden], .wb-foot[hidden] { display: none; }
.wb-q small { color: var(--accent); font-weight: 700; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.wb-q h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.25; }
.wb-q p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wb-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.wb-also-b { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-size: 12.5px; cursor: pointer; }
.wb-also-b:hover { border-color: var(--accent-line); }
.wb-also-b .ic { width: 15px; height: 15px; color: var(--accent); }
.wb-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.wb-foot .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wb-foot .wb-next { flex: 1; }
.wb-foot .ic { width: 17px; height: 17px; }
/* Abschluss */
.wb-done { width: min(480px, calc(100vw - 32px)); padding: 18px 20px 20px; }
.wb-done .dlg-head h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); }
.wb-done-x .ic { width: 20px; height: 20px; }
.wb-done-lead { margin: 6px 0 12px; }
.wb-done-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.wb-done-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 4px 10px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); }
.wb-done-list li .ic { width: 18px; height: 18px; color: var(--muted); }
.wb-done-list li.is-done .ic { color: var(--ok); }
.wb-done-list li .btn { min-height: 34px; }
.wb-done-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wb-done-acts .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.wb-done-acts .ic { width: 17px; height: 17px; }
.wb-done-free { margin-left: auto; }

/* ---------------------------------------------------------------- Location getrennt vom Setup (Paket 3) */
.wb-parts { display: grid; gap: 4px; }
.wb-part { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); }
.wb-part .ic { width: 18px; height: 18px; color: var(--accent); }
.wb-part[data-k="setup"] .ic { color: #6fb3ff; }
.wb-part span { display: grid; line-height: 1.25; min-width: 0; }
.wb-part b { font-weight: 600; font-size: 13px; }
.wb-part small { color: var(--muted); font-size: 11.5px; }
.wb-part em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--text); min-width: 22px; text-align: right; }
.wb-brief { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 0 12px; }
.wb-brief[open] { padding-bottom: 12px; }
.wb-brief summary { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; min-height: 48px; cursor: pointer; list-style: none; }
.wb-brief summary::-webkit-details-marker { display: none; }
.wb-brief summary .ic { width: 18px; height: 18px; color: var(--accent); }
.wb-brief summary span { display: grid; line-height: 1.25; }
.wb-brief summary small { color: var(--muted); font-size: 11.5px; }
.wb-field { display: grid; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.wb-field input, .wb-field textarea { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font: 13px/1.4 var(--font); }
.wb-field textarea { min-height: 72px; resize: vertical; }
.wb-field input:focus-visible, .wb-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.wb-save { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 18px 20px 16px; overflow: hidden; }
.wb-save[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.wb-save-body { overflow-y: auto; min-height: 0; padding-right: 4px; }
.wb-save .dlg-head h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); }
.wb-save-lead { margin: 6px 0 12px; }
.wb-save-body { display: grid; gap: 8px; }
.wb-save-mode { display: flex; }
.wb-save-mode .seg-btn { flex: 1; min-height: 40px; }
.wb-save-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-save-grid .wb-field { margin-top: 0; }
.wb-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.wb-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.wb-check span { display: grid; line-height: 1.3; }
.wb-check small { color: var(--muted); font-size: 12px; }
.wb-check.is-locked { opacity: .75; cursor: default; }
.wb-save-note { margin: 4px 0 0; }
.wb-save-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.wb-save-foot .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.wb-save-foot .ic { width: 17px; height: 17px; }
.wb-partbox .seg { display: flex; }
.wb-partbox .seg-btn { flex: 1; min-height: 36px; }
.wb-partbox p { margin: 6px 0 0; }
body.wb .loc-gal-foot { flex-wrap: wrap; }
.loc-gal-opt { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; cursor: pointer; }
.loc-gal-opt input { width: 17px; height: 17px; accent-color: var(--accent); }
@media (max-width: 600px) { .wb-save-grid { grid-template-columns: 1fr; } }

/* umgezogene Teile: Abstände an den Bereich anpassen */
.wb-area .preset-bar { padding: 0; border: 0; background: none; }
.wb-area .list-head { padding: 0; border: 0; position: static; background: none; }
.wb-area #fixtures { overflow: visible; }
.wb-area .room-box { padding: 0; }
.wb-area .pos-tools { padding: 0; border: 0; }
.wb-area .sect-body { padding: 0; }
.wb-aim-base .sect-note { margin: 4px 0 0; }
/* Mover-Positionen/Abgleich offen: nur deren Werkzeuge zeigen */
body.is-pos .wb-area[data-area="aim"] > section:not(.wb-aim-pos),
body.is-abg .wb-area[data-area="aim"] > section:not(.wb-aim-abg),
body.is-pos .wb-aim-pos > :not(.pos-tools):not(.wb-sec-h),
body.is-abg .wb-aim-abg > :not(.pos-tools):not(.wb-sec-h) { display: none !important; }

/* ---------------------------------------------------------------- Werkzeuge im Bereich (Seitenfenster aus raum/) */
.wb-tabs { display: flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.wb-tabs[hidden] { display: none; }
.wb-tab { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; min-height: 38px; padding: 0 4px; border-radius: 9px; border: 0; background: none; color: var(--muted);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wb-tab:hover { color: var(--text); }
.wb-tab.is-on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.wb-tool { min-height: 0; }
.wb .rs-drawer.rs-inline { position: static; inset: auto; width: auto; max-height: none; z-index: auto; background: none; border: 0;
  border-radius: 0; box-shadow: none; backdrop-filter: none; }
.wb .rs-inline .rs-drawer-head { display: none; }
.wb .rs-inline .rs-drawer-body { padding: 0; overflow: visible; }
.wb .rs-inline .rs-drawer-foot { padding: 12px 0 0; margin-top: 12px; }

/* ---------------------------------------------------------------- Kopfzeile */
/* im Menü „Mehr“ statt als eigene Knöpfe (bleiben versteckt da – app.js und der Show-Designer sprechen sie an) */
body.wb .topbar #open-plan, body.wb .topbar #toggle-dmx, body.wb .topbar #open-lib,
body.wb .topbar a[href="designer.html"], body.wb .topbar a[href="generator.html"],
body.wb .topbar #record:not([aria-pressed="true"]) { display: none !important; }
body.wb .topbar #record[aria-pressed="true"] { border-color: var(--bad); color: #ffb0b2; }
/* eine Zeile: Platz wird an Projekt, Speicher-Plätzen und Suche gespart (nur die Sprach-Leiste darf darüber stehen) */
body.wb { grid-template-columns: minmax(0, 1fr); }
body.wb .topbar { flex-wrap: nowrap; gap: 10px; min-width: 0; }
body.wb .topbar:has(.lang-bar) { flex-wrap: wrap; }
body.wb .topbar > * { flex-shrink: 0; }
body.wb .topbar label.field:has(#project) { flex-shrink: 1; min-width: 0; }
body.wb .topbar label.field:has(#project) .field-label { display: none; }
body.wb .topbar #project { min-width: 110px; max-width: 210px; }
body.wb .topbar .spacer { flex: 1 1 0; min-width: 0; }
.wb-slots { display: flex; gap: 8px; min-width: 0; flex-shrink: 1 !important; }
.wb-slot { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; max-width: 250px; min-width: 120px; flex: 0 1 auto; padding: 4px 12px 4px 5px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.wb-slot:hover { border-color: var(--line-h); }
.wb-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-slot-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.wb-slot-ic .ic { width: 19px; height: 19px; }
.wb-slot-loc .wb-slot-ic { background: var(--accent-bg); color: var(--accent); }
.wb-slot-setup .wb-slot-ic { background: #13213a; color: #6fb3ff; }
.wb-slot-tx { display: grid; line-height: 1.2; min-width: 0; }
.wb-slot-tx small { font-size: 10.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.wb-slot-tx b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-slot-st { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-slot-st.is-dirty { color: #ffd27a; }
.wb-more { display: inline-flex; align-items: center; gap: 6px; }
.wb-more .ic { width: 18px; height: 18px; }

/* Suche „Was willst du tun?“ */
.wb-find { flex: 0 1 320px !important; min-width: 44px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 12px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: 13.5px; text-align: left; cursor: pointer; }
.wb-find:hover { border-color: var(--accent-line); color: var(--text); }
.wb-find:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-find .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.wb-find-q { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb kbd { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.wb-cmd-scrim { position: fixed; inset: 0; z-index: 1150; display: grid; justify-items: center; align-items: start; padding: 12vh 12px 12px;
  background: rgba(3, 4, 6, .55); }
.wb-cmd { width: min(640px, 100%); border-radius: 16px; background: #14171d; border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden; }
.wb-cmd-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.wb-cmd-in .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.wb-cmd-in input { flex: 1; min-width: 0; min-height: 58px; border: 0; background: none; font-size: 17px; outline: none; color: var(--text); }
.wb-cmd-in input::-webkit-search-cancel-button { display: none; }
.wb-cmd-list { max-height: 56vh; overflow: auto; padding: 6px; }
.wb-cmd-g { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.wb-cmd-it { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 5px 10px;
  border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.wb-cmd-ic { width: 34px; height: 26px; display: grid; place-items: center; color: var(--muted); }
.wb-cmd-ic svg { width: 21px; height: 21px; }
.wb-cmd-ic img { width: 34px; height: 24px; border-radius: 5px; object-fit: cover; }
.wb-cmd-emo { font-size: 17px; }
.wb-cmd-tx { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wb-cmd-tx b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-cmd-tx small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-cmd-it.is-sel { background: var(--panel-3); }
.wb-cmd-it.is-sel .wb-cmd-ic { color: var(--accent); }
.wb-cmd-none { margin: 0; padding: 14px 12px; color: var(--muted); }
.wb-cmd-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* Menü */
.wb-menu { position: fixed; z-index: 1200; min-width: 250px; max-width: min(340px, calc(100vw - 16px)); padding: 6px; border-radius: 12px;
  background: #14171d; border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.wb-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.wb-mi { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 6px 10px;
  border: 0; border-radius: 9px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.wb-mi .ic { width: 19px; height: 19px; color: var(--muted); }
.wb-mi:hover:not(:disabled), .wb-mi:focus-visible { background: var(--panel-3); outline: none; }
.wb-mi:hover .ic { color: var(--accent); }
.wb-mi:disabled { opacity: .45; cursor: default; }
.wb-mi-tx { display: grid; line-height: 1.25; }
.wb-mi-tx b { font-weight: 600; }
.wb-mi-tx small { color: var(--muted); font-size: 12px; }
.wb-mi .wb-mi-on { color: var(--accent); }

/* ---------------------------------------------------------------- an der 3D-Ansicht: Ansicht/Kamera, Quelle + Nebel */
.wb-stage { position: absolute; top: 10px; z-index: 5; display: flex; align-items: center; gap: 6px; }
.wb-stage-tl { left: 10px; }
.wb-stage-tr { right: 10px; }
.wb-stage .seg { background: rgba(17, 19, 24, .82); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.wb-stage .seg-btn { min-height: 34px; }
.wb-stage .status { min-height: 36px; background: rgba(17, 19, 24, .82); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.wb-knob { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(17, 19, 24, .82); color: var(--muted); backdrop-filter: blur(8px); cursor: pointer; }
.wb-knob:hover, .wb-knob[aria-expanded="true"] { color: var(--text); border-color: var(--line-h); }
.wb-knob .ic { width: 19px; height: 19px; }
.wb-pop { position: absolute; top: calc(100% + 8px); right: 0; width: 300px; display: grid; gap: 10px; padding: 12px;
  border-radius: 14px; background: #14171d; border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.wb-pop[hidden] { display: none; }
.wb-pop-h { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wb-pop .seg { display: flex; }
.wb-pop .seg-btn { flex: 1; min-height: 38px; padding: 6px 6px; }
.wb-pop .field-slider { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.wb-pop .field-slider input { width: 100%; }
body.app-mode .wb-pop .seg:has(#src-live), body.app-mode .wb-pop .wb-pop-h { display: none !important; }
.wb-stage #status-text { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
@container (max-width: 700px) {
  .wb-stage-tl .seg:has([data-cam]) { display: none; }
  .wb-stage #status-text { max-width: 150px; }
}
/* in Aufbau, Positionen und Abgleich hat die Leiste oben eigene Blickwinkel */
body.is-edit .wb-stage, body.is-pos .wb-stage, body.is-abg .wb-stage, body.wb .viewport:has(#plan:not([hidden])) .wb-stage-tr { display: none; }

/* ---------------------------------------------------------------- Zeitachse (Tagesablauf) unten in der 3D-Ansicht */
body.wb .raum-strip { display: none !important; }
.wb-time { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; height: 64px; display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0 10px 0 6px; border-radius: 14px;
  background: rgba(17, 19, 24, .9); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.wb-time.is-zu { right: auto; height: 44px; grid-template-columns: auto; padding: 0 4px; }
.wb-time.is-zu > :not(.wb-time-fold) { display: none; }
.wb-time-fold { height: 36px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px;
  border-radius: 9px; border: 0; background: none; color: var(--dim); cursor: pointer; }
.wb-time-fold:hover { color: var(--text); background: var(--panel-2); }
.wb-time-fold .ic { width: 15px; height: 15px; }
.wb-time.is-zu .wb-time-fold { color: var(--text); padding: 0 12px; font-weight: 600; }
.wb-time.is-zu .wb-time-fold .ic { width: 17px; height: 17px; color: var(--accent); }
.wb-time-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; cursor: pointer; }
.wb-time-play.is-on { background: var(--bad); color: #fff; }
.wb-time-play .ic { width: 18px; height: 18px; }
.wb-time-axis { position: relative; height: 52px; margin: 0 24px; }
.wb-time-line { position: absolute; left: 0; right: 0; top: 21px; height: 4px; border-radius: 2px; opacity: .55;
  background: linear-gradient(90deg, #8ea3c0 0%, #ffd27a 25%, #ffb066 45%, #ff5fa8 65%, #a259ff 80%, #3cc8ff 100%); }
.wb-tm { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; padding: 0 4px; border: 0;
  background: none; color: var(--muted); cursor: pointer; }
.wb-tm-t { font-family: var(--mono); font-size: 11px; }
.wb-tm i { width: 12px; height: 12px; margin-top: 2px; border-radius: 50%; background: var(--panel-3); border: 2px solid #7c8496; }
.wb-tm b { position: absolute; top: 34px; font-size: 11.5px; font-weight: 650; white-space: nowrap; color: var(--text); display: none; }
.wb-tm:hover, .wb-tm:focus-visible { color: var(--text); outline: none; }
.wb-tm:hover b, .wb-tm:focus-visible b, .wb-tm.is-on b { display: block; }
.wb-tm:focus-visible i { box-shadow: 0 0 0 3px var(--accent); }
.wb-tm.no-time .wb-tm-t { visibility: hidden; }
.wb-tm.no-time:hover .wb-tm-t { visibility: visible; }
.wb-tm.is-on { color: #ffd27a; }
.wb-tm.is-on i { background: var(--accent); border-color: #fff; }
.wb-time-sun { position: absolute; top: 28px; width: 16px; height: 16px; transform: translateX(-50%); display: grid; place-items: center;
  color: #ffb066; pointer-events: none; }
.wb-time-sun .ic { width: 14px; height: 14px; }
.wb-time-axis:has(.wb-tm.is-on b) .wb-time-sun { opacity: .55; }
.wb-time-side { display: flex; align-items: center; gap: 8px; }
.wb-time-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); white-space: nowrap; cursor: pointer; }
.wb-time-btn:hover { border-color: var(--line-h); }
.wb-time-btn .ic { width: 17px; height: 17px; color: var(--muted); }
.wb-time-sunbtn { color: #ffb066; border-color: transparent; background: none; }
.wb-time-sunbtn .ic { color: #ffb066; }
.wb-time-n { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.wb-time-n[hidden] { display: none; }
.wb-time-n .ic { width: 16px; height: 16px; }
.wb .viewport:has(.wb-time:not(.is-zu)) .edit-msg { bottom: 84px; }
@container (max-width: 760px) {
  .wb-time-sunbtn span, .wb-time-btn span { display: none; }
  .wb-time-axis { margin: 0 14px; }
}
@container (max-width: 520px) {
  .wb-time { gap: 6px; padding-right: 6px; }
  .wb-tm .wb-tm-t { visibility: hidden; }
  .wb-tm.is-on .wb-tm-t { visibility: visible; }
  .wb-time-n { display: none !important; }
  .wb-time-axis { margin: 0 10px; }
}

/* Location-Galerie neben der Leiste statt über ihr */
body.wb .loc-gal { left: var(--wb-rail); }

/* ---------------------------------------------------------------- Handy / schmales Fenster */
@media (max-width: 1280px) {
  .wb-slot { max-width: 200px; }
  .wb-mode span { display: none; }
  .wb-find kbd { display: none; }
  .wb-more span { display: none; }
}
@media (max-width: 1100px) {
  .wb-slot-st { display: none; }
}
@media (max-width: 900px) {
  .wb-slots { display: none; }
  body.wb .topbar { gap: 6px; padding: 6px 8px; }
  body.wb .topbar .brand-name, body.wb .topbar label.field:has(#project) .field-label { display: none; }
  body.wb .topbar #project { min-width: 0; max-width: none; width: 100%; }
  body.wb .topbar label.field:has(#project) { flex: 1 1 auto; }
  .wb-find { flex: 0 0 44px !important; width: 44px; padding: 0; justify-content: center; }
  .wb-find .wb-find-q, .wb-find kbd { display: none; }
  .wb-more { width: 44px; padding: 0; justify-content: center; }
  .wb-guide { padding: 8px 14px 10px; }
  .wb-q h3 { font-size: 16px; }
  .wb-q p, .wb-also { display: none; }
  .wb-foot { padding: 8px 10px; }
  .wb-cmd-foot { display: none; }
  .wb-stage-tl .seg:has([data-cam]) { display: none; }
  .wb-stage #status-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  body.wb .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  body.wb .viewport { grid-column: 1; grid-row: 1; }
  body.wb .wb-rail { grid-column: 1; grid-row: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto;
    padding: 6px; gap: 2px; }
  .wb-rb { min-width: 68px; flex: none; }
  body.wb .wb-panel { position: fixed; left: 6px; right: 6px; bottom: 84px; width: auto; max-height: 58vh; z-index: 12; border-radius: 16px;
    border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
  body.wb .loc-gal { left: 0; }
}

/* ---------------------------------------------------------------- Film-Studio (Paket 4, js/werkbank/film.js) */
.wbf-cards { display: grid; gap: 6px; }
.wbf-card { display: grid; grid-template-columns: 22px 1fr 16px; gap: 10px; align-items: center; min-height: 56px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.wbf-card:hover { border-color: #1d4a63; }
.wbf-card > .ic:first-child { width: 20px; height: 20px; color: #3cc8ff; }
.wbf-card > .ic:last-child { width: 16px; height: 16px; color: var(--muted); }
.wbf-card span { display: grid; line-height: 1.25; }
.wbf-card b { font-weight: 650; }
.wbf-card small { color: var(--muted); font-size: 12px; }
/* während das Studio offen ist: die 3D-Ansicht liegt genau über dem Vorschau-Platz (Lage per JS) */
body.wb-film-open .viewport { position: fixed !important; z-index: 1210; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
body.wb-film-open .viewport > :not(canvas) { display: none !important; }
body.wb-film-open .dp-panel { z-index: 1300; }
.wbf { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #07080b; color: var(--text); font-size: 13px; }
.wbf-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.wbf-mark { width: 40px; height: 40px; border-radius: 11px; background: #0f2230; color: #3cc8ff; display: grid; place-items: center; }
.wbf-mark .ic { width: 22px; height: 22px; }
.wbf-ttl { display: grid; line-height: 1.2; }
.wbf-ttl b { font-size: 17px; }
.wbf-ttl small { color: var(--muted); font-size: 12.5px; }
.wbf-kinds .seg-btn { min-height: 38px; padding: 0 12px; }
.wbf-sp { flex: 1; }
.wbf-recbtn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.wbf-recbtn .ic { width: 16px; height: 16px; color: #ff5a5f; }
.wbf-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; overflow: hidden; }
.wbf-left { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; gap: 10px; padding: 14px 16px; min-height: 0; min-width: 0; overflow: hidden; }
.wbf-view { position: relative; min-height: 0; overflow: hidden; border-radius: 14px; background: repeating-conic-gradient(#0c0d11 0 25%, #0a0b0e 0 50%) 0 0 / 22px 22px; }
.wbf-slot { position: absolute; inset: 0; margin: auto; border-radius: 12px; }
.wbf-ov { position: fixed; z-index: 1211; pointer-events: none; overflow: hidden; border-radius: 12px; }
.wbf-o-title { position: absolute; inset: 30% 0 25%; display: grid; place-content: center; text-align: center; gap: 6px; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 50%, transparent); }
.wbf-o-title b { font-size: clamp(22px, 3.4vw, 46px); font-weight: 750; letter-spacing: -.01em; color: #fff; }
.wbf-o-title span { color: #ffd27a; font-size: clamp(14px, 1.6vw, 22px); font-weight: 600; }
.wbf-o-title small { color: rgba(255, 255, 255, .8); font-size: clamp(12px, 1.2vw, 16px); font-weight: 600; }
.wbf-o-cap { position: absolute; left: 4%; bottom: 7%; padding: 8px 16px; border-radius: 999px; background: rgba(10, 11, 14, .72); color: #fff; font-weight: 650;
  font-size: clamp(12px, 1.4vw, 18px); opacity: 0; }
.wbf-o-out { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(0, 0, 0, .6); opacity: 0; color: #fff; }
.wbf-o-out b { font-size: clamp(18px, 2.6vw, 36px); }
.wbf-o-out small { color: rgba(255, 255, 255, .7); }
.wbf-o-black { position: absolute; inset: 0; background: #000; opacity: 0; }
.wbf-trans { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; }
.wbf-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.wbf-play .ic { width: 22px; height: 22px; }
.wbf-play:focus-visible, .wbf-c:focus-visible, .wbf-fl:focus-visible, .wbf-scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wbf-time { font-family: var(--mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 92px; }
.wbf-scrub { position: relative; height: 14px; display: flex; gap: 2px; border-radius: 7px; cursor: pointer; touch-action: none; }
.wbf-sc { height: 100%; border-radius: 4px; opacity: .55; }
.wbf-head-mk { position: absolute; top: -5px; bottom: -5px; width: 4px; border-radius: 2px; background: #fff; transform: translateX(-2px); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }
.wbf-board { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.wbf-c { flex: 1 1 0; min-width: 132px; display: grid; grid-template-rows: auto auto; text-align: left; padding: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: inset 0 3px 0 var(--sc, #888); }
.wbf-c:hover { border-color: var(--line-h); }
.wbf-c.is-on { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--sc, #888), 0 0 0 1px var(--accent); }
.wbf-c.is-drag { opacity: .4; }
.wbf-c-img { position: relative; display: block; height: 64px; background: linear-gradient(135deg, #1a1d24, #0b0c10); }
.wbf-c-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wbf-c-fl { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(10, 11, 14, .78); display: grid; place-items: center; color: #fff; }
.wbf-c-fl .ic { width: 18px; height: 18px; }
.wbf-c-tx { padding: 7px 9px 8px; display: grid; gap: 1px; }
.wbf-c-tx b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbf-c-t { font-family: var(--mono); font-size: 11px; color: #ffd27a; font-weight: 600; }
.wbf-c-tx small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbf-add { flex: 0 0 92px; min-width: 92px; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--muted); border-style: dashed; box-shadow: none; font-weight: 600; }
.wbf-plus { font-size: 22px; line-height: 1; }
.wbf-clip { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.is-playing .wbf-clip { opacity: .45; pointer-events: none; }
.wbf-ch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wbf-ch > b { font-size: 15px; }
.wbf-ch .btn { min-height: 38px; }
.wbf-range { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.wbf-range output { justify-self: end; color: var(--text); font-family: var(--mono); font-size: 12px; }
.wbf-range input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.wbf-dur { width: 260px; }
.wbf-capt { padding: 6px 10px; }
.wbf-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.wbf-lab { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.wbf-day, .wbf-flights { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.wbf-day button { flex: none; display: grid; gap: 1px; text-align: left; min-height: 48px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); cursor: pointer; }
.wbf-day button:hover { border-color: var(--line-h); }
.wbf-day button.is-on { border-color: var(--accent); background: var(--accent-bg); }
.wbf-day span { font-family: var(--mono); font-size: 11.5px; color: #ffd27a; }
.wbf-day b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.wbf-fl { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px 6px 8px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.wbf-fl:hover { border-color: var(--line-h); }
.wbf-fl.is-on { border-color: #3cc8ff; background: #0f2230; }
.wbf-fl .ic { width: 22px; height: 22px; color: #3cc8ff; flex: none; }
.wbf-fl b { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; }
.wbf-fl small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.wbf-side { border-left: 1px solid var(--line); background: var(--panel); overflow: auto; padding: 14px 16px 30px; display: grid; gap: 22px; align-content: start; }
.wbf-sec { display: grid; gap: 10px; }
.wbf-sec > h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.wbf-sec > h3 .ic { width: 20px; height: 20px; color: #3cc8ff; }
.wbf-tracks { display: grid; gap: 6px; }
.wbf-track { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; min-height: 54px; padding: 6px 10px 6px 6px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.wbf-track:hover { border-color: var(--line-h); }
.wbf-track.is-on { border-color: #3cc8ff; background: #0f2230; }
.wbf-tk-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--panel-3); display: grid; place-items: center; color: #3cc8ff; }
.wbf-tk-ic .ic { width: 18px; height: 18px; }
.wbf-tk { display: grid; min-width: 0; }
.wbf-tk b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbf-tk small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbf-wave { width: 100%; height: 64px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); cursor: ew-resize; touch-action: none; }
.wbf-wave[hidden] { display: none; }
.wbf-bpm { display: flex; align-items: center; gap: 10px; min-height: 22px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.wbf-short { flex-basis: 100%; color: #ffd27a; font-size: 12px; }
.wbf-badge { padding: 3px 9px; border-radius: 999px; background: var(--accent-bg); color: #ffd27a; font-weight: 650; font-size: 12px; }
.wbf-up { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.wbf-up .ic { width: 17px; height: 17px; }
.wbf-fmt { display: flex; }
.wbf-fmt .seg-btn { flex: 1; min-height: 40px; padding: 0 6px; font-size: 12.5px; }
.wbf-side .wb-field { margin-top: 0; }
.wbf-side .dp-field { min-height: 48px; width: 100%; }
.wbf-rec { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(5, 6, 8, .35); pointer-events: auto; }
.wbf-rec > div { display: grid; gap: 8px; justify-items: center; padding: 18px 22px; border-radius: 14px; background: rgba(17, 19, 24, .94);
  border: 1px solid var(--line-2); min-width: 300px; position: relative; z-index: 1220; }
.wbf-rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff5a5f; animation: wbf-blink 1s infinite; }
@keyframes wbf-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wbf-rec-dot { animation: none; } }
.wbf-rec-p { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.wbf-rec-bar { width: 100%; height: 6px; border-radius: 3px; background: #2a2f3a; overflow: hidden; }
.wbf-rec-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.wbf-rec small { color: var(--muted); }
.is-rec .wbf-left > :not(.wbf-view), .is-rec .wbf-side, .is-rec .wbf-kinds, .is-rec .wbf-recbtn { pointer-events: none; opacity: .5; }
.wbf-done { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; pointer-events: auto; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  max-width: calc(100% - 24px); padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(17, 19, 24, .96); border: 1px solid #1f5a3a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.wbf-done > b { display: inline-flex; align-items: center; gap: 6px; }
.wbf-done > b .ic { width: 18px; height: 18px; color: var(--ok); }
.wbf-done .btn { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.wbf-done .btn .ic { width: 16px; height: 16px; }
.wbf-done-tip { flex-basis: 100%; margin: 0; }
@media (max-width: 1000px) {
  .wbf-main { display: block; overflow-y: auto; }
  .wbf-left { grid-template-rows: auto; overflow: visible; }
  .wbf-view { height: min(52vh, 520px); }
  .wbf-side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .wbf-kinds { order: 5; width: 100%; }
  .wbf-kinds .seg-btn { flex: 1; }
  .wbf-dur { width: 100%; }
}

/* ---------------------------------------------------------------- Prüf-Ampel, Packliste, Paket-Vergleich (Paket 5) */
.wb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wb-amp-head { display: flex; align-items: center; gap: 10px; }
.wb-amp-all { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #10241a; color: var(--ok); }
.wb-amp-all.is-warn { background: var(--accent-bg); color: #ffd27a; }
.wb-amp-all.is-bad { background: #2c1214; color: #ffb0b2; }
.wb-amp-list { display: grid; gap: 4px; }
.wb-amp { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 7px 10px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; font: inherit; }
button.wb-amp { cursor: pointer; }
button.wb-amp:hover { border-color: var(--line-h); }
button.wb-amp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-amp > .ic { width: 16px; height: 16px; color: var(--dim); }
.wb-amp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 3px #ffffff0d; }
.is-ok > .wb-amp-dot { background: var(--ok); }
.is-warn > .wb-amp-dot { background: var(--warn); }
.is-bad > .wb-amp-dot { background: var(--bad); }
.is-info > .wb-amp-dot { background: transparent; border: 2px solid var(--dim); box-sizing: border-box; }
.wb-amp-tx { display: grid; line-height: 1.3; min-width: 0; }
.wb-amp-tx b { font-size: 13px; font-weight: 650; }
.wb-amp-tx small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.wb-amp.is-bad { border-color: #5a2326; }
.wb-amp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-amp-btns .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wb-amp-btns .ic { width: 18px; height: 18px; }
.wb-amp-more { margin-top: 4px; }
.wb-cap[hidden] { display: none; }
.wb-cap { width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.wb-cap:hover { border-color: var(--line-h); }
.wb-cap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-cap > .ic:last-child { color: var(--dim); }

/* Packliste */
.wb-pack { width: min(620px, calc(100vw - 32px)); }
.wb-pack-sum { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--panel-3); font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.wb-pack-lists { display: grid; gap: 14px; }
.wb-pack-sec { display: grid; gap: 4px; }
.wb-pack-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wb-pack-h .ic { width: 16px; height: 16px; color: var(--accent); }
.wb-pk { grid-template-columns: 22px 48px minmax(0, 1fr); align-items: center; min-height: 44px; }
.wb-pk input { margin: 0; }
.wb-pk-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.wb-pk-tx { overflow-wrap: anywhere; }
.wb-pk.is-done { opacity: .55; }
.wb-pk.is-done .wb-pk-tx { text-decoration: line-through; }
.wb-pack-feier { align-items: center; }
.wb-grow { flex: 1; }
.wb-print-sheet { display: none; }
@media print {
  body.wb-printing > :not(.wb-print-sheet) { display: none !important; }
  body.wb-printing { background: #fff !important; color: #000 !important; display: block !important; height: auto !important; overflow: visible !important; }
  body.wb-printing .wb-print-sheet { display: block; color: #000; font: 12pt/1.5 -apple-system, "Segoe UI", sans-serif; }
  .wb-print-sheet h1 { font-size: 18pt; margin: 0 0 12pt; }
  .wb-print-sheet pre { font: inherit; white-space: pre-wrap; margin: 0; }
}
@media (max-width: 600px) { .wb-pack .wb-save-foot { flex-wrap: wrap; } .wb-pack .wb-grow { display: none; } .wb-pack .wb-save-foot .btn { flex: 1 1 40%; justify-content: center; } }

/* Paket-Vergleich */
body.wb-cmp-shoot .viewport { position: fixed !important; z-index: 1210; }
body.wb-cmp-shoot .viewport > :not(canvas) { display: none !important; }
.wbc { position: fixed; inset: 0; z-index: 1220; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #07080b; color: var(--text); font-size: 13px; --wipe: 50%; }
.wbc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--panel); }
.wbc-head h2 { margin: 0; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); }
.wbc-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wbc-sel { min-height: 40px; max-width: 240px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 13px var(--font); }
.wbc-vs { color: var(--muted); }
.wbc-ab { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent); color: var(--accent-ink); flex: none; }
.wbc-ab.is-b { background: #6fb3ff; color: #06121f; }
.wbc-views .seg-btn { min-height: 38px; padding: 0 12px; }
.wbc-kunde, .wbc-again { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.wbc-kunde .ic, .wbc-again .ic, .wbc-x .ic { width: 18px; height: 18px; }
.wbc.is-kunde .wbc-again { display: none; }
.wbc-x { width: 44px; height: 44px; }
.wbc-main { display: block; padding: 14px 16px 16px; min-height: 0; overflow-y: auto; }
/* feste Höhe: das Foto wird in genau diesem Seitenverhältnis gemacht */
.wbc-stage { position: relative; height: clamp(260px, 58vh, 720px); margin-bottom: 12px; overflow: hidden; border-radius: 14px; background: #0b0c10; user-select: none; }
.wbc.is-kunde .wbc-stage { height: clamp(260px, 64vh, 900px); }
.wbc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wbc-img[hidden] { display: none; }
.wbc-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--wipe)); }
.wbc-line { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px #000a; pointer-events: none; }
.wbc-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #111; font-size: 18px; font-weight: 700; box-shadow: 0 2px 10px #0008; }
.wbc-wipe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.wbc-stage:has(.wbc-wipe:focus-visible) .wbc-line span { outline: 3px solid var(--accent); }
.wbc-tag { position: absolute; top: 12px; max-width: 45%; padding: 6px 12px; border-radius: 999px; background: rgba(10, 11, 14, .78); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.wbc-tag-a { left: 12px; color: #ffd27a; }
.wbc-tag-b { right: 12px; color: #a9d2ff; }
.wbc-wait { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(10, 11, 14, .85);
  color: var(--text); pointer-events: none; }
.wbc-wait[hidden] { display: none; }
.wbc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wbc-card { display: grid; gap: 8px; align-content: start; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.wbc-card-h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.wbc-card .wb-field { margin-top: 0; }
.wbc-card .wb-field textarea { min-height: 52px; }
.wbc-card:has(.wbc-price) { grid-template-columns: 140px minmax(0, 1fr); }
.wbc-card:has(.wbc-price) > :not(.wbc-price):not(.wbc-pitch) { grid-column: 1 / -1; }
.wbc-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; }
.wbc-facts dt { color: var(--muted); }
.wbc-facts dd { margin: 0; font-family: var(--mono); font-size: 12.5px; }
.wbc-kinds { margin: 0; padding-left: 18px; color: var(--text); }
.wbc-check { display: grid; grid-template-columns: 12px 1fr; gap: 8px; align-items: start; padding: 6px 10px; border-radius: 10px; background: var(--panel-2); font-size: 12px; color: var(--muted); }
.wbc-check .wb-amp-dot { margin-top: 3px; }
.wbc-check.is-ok .wb-amp-dot { background: var(--ok); }
.wbc-check.is-warn .wb-amp-dot { background: var(--warn); }
.wbc-check.is-bad .wb-amp-dot { background: var(--bad); }
.wbc-price-big { font-size: 26px; font-weight: 750; color: #ffd27a; }
.wbc-pitch-tx { margin: 0; font-size: 15px; line-height: 1.45; }
/* Kundenansicht: ohne Eingabefelder, größere Schrift, Bild bekommt mehr Platz */
.wbc.is-kunde .wbc-pick, .wbc.is-kunde .wbc-views { display: none; }
.wbc.is-kunde .wbc-card { font-size: 15px; }
.wbc.is-kunde .wbc-card-h { font-size: 19px; }
.wbc.is-kunde .wbc-facts dd { font-size: 14px; }
@media (max-width: 900px) {
  .wbc-stage { height: min(52vh, 520px); }
  .wbc-cards { grid-template-columns: 1fr; }
  .wbc-head { gap: 8px; padding: 8px 12px; }
  .wbc-head h2 { width: 100%; order: -1; }
  .wbc-sel { max-width: 150px; }
  .wbc-again span { display: none; }
  .wbc-card:has(.wbc-price) { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .wb-amp-btns { grid-template-columns: 1fr 1fr; } }
