/* Assistent „Erste Schritte“ (web/js/designer/onboarding.js) – Designsprache des Show-Designers, siehe DESIGN.md */
.onb { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - 64px); }
.onb-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.onb-brand { display: grid; line-height: 1.2; }
.onb-brand b { font-size: 16px; }
.onb-brand small { color: var(--muted); font-size: 12.5px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.onb-st { display: grid; gap: 6px; border: 0; background: none; padding: 0; text-align: left; color: var(--dim); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.onb-st i { height: 4px; border-radius: 4px; background: var(--line-2); }
.onb-st.done { color: var(--muted); } .onb-st.done i { background: #8a6418; }
.onb-st.on { color: var(--text); } .onb-st.on i { background: var(--accent); }
.onb-st:disabled { cursor: default; }
.onb-later { color: var(--muted); border: 0; background: none; font-weight: 600; min-height: 44px; padding: 0 6px; cursor: pointer; }
.onb-later:hover { color: var(--text); }

.onb-main { width: min(1040px, 100%); margin: 0 auto; padding: 32px 24px 28px; display: grid; gap: 22px; align-content: start; }
.onb-head { display: grid; gap: 6px; }
.onb-kicker { color: var(--accent); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.onb-head h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }
.onb-head p { margin: 0; color: var(--muted); max-width: 70ch; font-size: 16px; }
.onb-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; align-content: start; }
.onb-box h2 { margin: 0; font-size: 17px; }
.onb-box h3 { margin: 4px 0 0; font-size: 15px; }
.onb-muted { margin: 0; color: var(--muted); }
.onb-small { font-size: 13px; }
.onb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.onb-list { display: grid; gap: 8px; }
.onb-hint { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.onb-hint .ic { color: var(--info); margin-top: 1px; flex: none; }
.onb-hint b { color: var(--text); }

.onb-hello { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.onb-found { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.onb-found .it { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.onb-found .it .ic { width: 28px; height: 28px; color: var(--accent); }
.onb-found .it b { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.onb-found .it span { color: var(--muted); font-size: 13.5px; }
.onb-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.onb-plan li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); }
.onb-plan li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-3); color: var(--text); font-weight: 700; font-size: 13px; }
.onb-plan li b { color: var(--text); display: block; }

.onb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.onb-dev { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); align-content: start; }
.onb-dev-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.onb-dev-h .sym, .onb-gob .sym { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-3); display: grid; place-items: center; color: var(--accent); }
.onb-dev-h .sym .ic, .onb-gob .sym .ic { width: 26px; height: 26px; }
.onb-dev-h b { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.onb-dev-h small { color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.onb-dev-h .cnt { min-width: 38px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--panel-3); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.onb-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.onb-seg button { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.onb-seg button .ic { width: 18px; height: 18px; }
.onb-seg button.on { border-color: var(--accent); background: #2a2110; color: var(--text); }
.onb-parts { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.onb-parts > span { color: var(--muted); font-size: 13px; }
.onb-part { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 10px; align-items: center; }
.onb-part b { font-size: 13.5px; } .onb-part small { color: var(--muted); }
/* Teil einer aufgeteilten Kombi-Bar (GigBAR Pars …) */
.onb-kombi { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: 13px; }
.onb-kombi .ic { width: 18px; height: 18px; flex: none; color: var(--accent); }
.onb-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid #5a4415; background: #2a2110; }
.onb-ask h3 { margin: 0 0 4px; font-size: 16px; }
.onb-ask p { margin: 0; color: var(--muted); font-size: 14px; }
.onb-ask .devs { margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.onb-choice { display: grid; gap: 8px; min-width: 220px; }

/* Aufbau (Frontansicht) */
.onb-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onb-tpl { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); text-align: left; cursor: pointer; color: var(--text); }
.onb-tpl .ic { width: 30px; height: 30px; color: var(--accent); flex: none; }
.onb-tpl b { display: block; font-size: 15px; } .onb-tpl small { color: var(--muted); font-size: 12.5px; }
.onb-tpl.on { border-color: var(--accent); background: #2a2110; }
.onb-stage { border-radius: 14px; border: 1px solid var(--line); background: #08090c; overflow: hidden; }
.onb-stage-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.onb-stage-bar .onb-side { color: var(--dim); font-size: 12.5px; font-weight: 600; padding: 0 6px; }
.onb-stage-bar .onb-side:last-child { margin-left: auto; }
.onb-stage-bar .btn { min-height: 40px; font-size: 13.5px; }
.onb-scene-wrap { overflow-x: auto; }
.onb .scene { display: block; width: 100%; min-width: 720px; height: auto; touch-action: none; }
.onb .s-wall { fill: #0b0d12; } .onb .s-floor { stroke: #3a4150; stroke-width: 2; }
.onb .o-booth { fill: #1e222b; stroke: #313744; stroke-width: 1.5; }
.onb .o-txt { fill: #6f7685; font: 600 13px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; text-anchor: middle; }
.onb .o-stand path { stroke: #59606f; stroke-width: 4; fill: none; stroke-linecap: round; } .onb .o-stand rect { fill: #59606f; }
.onb .o-stand.dim path { stroke: #3d434f; }
.onb .o-totem { fill: #c9ccd3; opacity: .28; stroke: #c9ccd3; stroke-opacity: .5; }
.onb .o-truss rect { fill: none; stroke: #6b7280; stroke-width: 2; } .onb .o-truss path { stroke: #4a5160; stroke-width: 1.5; fill: none; }
.onb .slot { fill: none; stroke: #3a4150; stroke-width: 1.5; stroke-dasharray: 4 4; }
.onb .fx { cursor: grab; }
.onb .fx .fx-bg { fill: #1e222b; stroke: #ffb020; stroke-width: 1.5; }
.onb .fx .fx-tube { fill: #2a2110; stroke: #ffb020; stroke-width: 1.5; }
.onb .fx svg { color: #ffb020; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.onb .fx .fx-no { fill: #9aa1ae; font: 600 12px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums; }
.onb .fx.sel .fx-bg, .onb .fx.sel .fx-tube { fill: #ffb020; } .onb .fx.sel svg { color: #1a1205; } .onb .fx.sel .fx-no { fill: #ffd27a; }
.onb .fx.drag { cursor: grabbing; opacity: .85; }
.onb .fx.back { opacity: .7; }
.onb-stage-cap { margin: 0; padding: 8px 12px 10px; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); }
.onb-sub { margin: 4px 0 -8px; font-size: 15px; color: var(--muted); }
.onb-order { display: grid; gap: 6px; }
.onb-order div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.onb-order span { color: var(--muted); font-variant-numeric: tabular-nums; }
.onb-viz-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.onb-viz-head b { display: block; } .onb-viz-head small { color: var(--muted); font-size: 13.5px; }
.onb-gone { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.onb-gone b { color: var(--text); }
.onb-gone .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-gone .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); font-size: 13px; cursor: pointer; }
.onb-gone .chip .ic { width: 18px; height: 18px; color: var(--muted); }
.onb-gone .chip b { color: var(--accent); font-size: 12.5px; }
.onb-qmenu { position: fixed; z-index: 50; width: 240px; display: grid; gap: 2px; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px #000; color: var(--text); }
.onb-qmenu .qm-h { display: grid; gap: 2px; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.onb-qmenu .qm-h span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.onb-qmenu .qm-t { color: var(--dim); font-size: 12px; font-weight: 700; padding: 2px 8px; }
.onb-qmenu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px; background: none; text-align: left; font-weight: 600; color: var(--text); cursor: pointer; }
.onb-qmenu button span { flex: 1; }
.onb-qmenu button .ic { width: 20px; height: 20px; color: var(--muted); }
.onb-qmenu button:hover { background: var(--panel-3); }
.onb-qmenu button.on { background: #2a2110; } .onb-qmenu button.on .ic { color: var(--accent); }
.onb-qmenu button.danger { color: #ffb0b2; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.onb-qmenu button.danger .ic { color: #ff5a5f; }

/* Gobos */
.onb-gob { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.onb-gob b { display: block; } .onb-gob small { color: var(--muted); font-size: 13px; }
.onb-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.onb-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-right: 6px; }
.onb-tag.ok { background: #10241a; color: #9fe9bf; border: 1px solid #1f5a3a; }
.onb-tag.mid { background: #2a2110; color: #ffd27a; border: 1px solid #5a4415; }
.onb-tag.no { background: var(--panel-3); color: var(--muted); border: 1px solid var(--line-2); }
.onb-switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-3); cursor: pointer; }
.onb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.onb-switch.on { background: var(--accent); border-color: var(--accent); }
.onb-switch.on::after { transform: translateX(22px); background: var(--accent-ink); }

/* Testen, erste Show, Abschluss */
.onb-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.onb-col { display: grid; gap: 10px; }
.onb-pv { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #050608; border: 1px solid var(--line); }
.onb-pv canvas, .onb-pv iframe { width: 100%; height: 100%; display: block; border: 0; }
.onb-pv .cap { position: absolute; left: 10px; bottom: 8px; color: var(--muted); font-size: 12.5px; text-shadow: 0 1px 2px #000; }
.onb-howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.onb-howto li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: 14.5px; }
.onb-howto li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.onb-howto li b { color: var(--text); }
.onb kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text); font: 600 12px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
.onb-answers { display: grid; gap: 8px; }
.onb-answers .btn { justify-content: flex-start; }
.onb-moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.onb-mood { display: grid; gap: 4px; padding: 12px 12px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); text-align: left; position: relative; overflow: hidden; color: var(--text); cursor: pointer; }
.onb-mood .ic { color: var(--accent); }
.onb-mood b { font-size: 15px; } .onb-mood small { color: var(--muted); font-size: 12.5px; }
.onb-mood i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.onb-mood.on { border-color: var(--accent); background: #2a2110; }
.onb-done { justify-items: center; text-align: center; padding: 28px 18px; }
.onb-done h1 { margin: 0; font-size: 28px; }
.onb-done-ic { width: 64px; height: 64px; border-radius: 50%; background: #10241a; border: 1px solid #1f5a3a; display: grid; place-items: center; color: #9fe9bf; }
.onb-done-ic .ic { width: 34px; height: 34px; }
.onb-sum { display: grid; gap: 6px; text-align: left; color: var(--muted); margin: 0; }
.onb-profile { display: grid; gap: 12px; text-align: left; width: min(520px, 100%); padding: 16px; border-radius: 14px; border: 1px solid #5a4415; background: #2a2110; }
.onb-profile h2 { margin: 0; font-size: 17px; } .onb-profile p { margin: 0; color: var(--muted); font-size: 14px; }
.onb-profile label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.onb-profile input { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: 15px; }
.onb-profile .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb .onb-big { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

.onb-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--panel); border-top: 1px solid var(--line); z-index: 5; }
.onb-sp { flex: 1; }
.onb-why { color: var(--dim); font-size: 13px; }
.onb .onb-next { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

@media (max-width: 860px) {
  .onb-top { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .onb-top .onb-steps { grid-column: 1 / -1; grid-row: 2; }
  .onb-st span { display: none; }
  .onb-main { padding: 22px 16px; }
  .onb-head h1 { font-size: 24px; }
  .onb-hello, .onb-split, .onb-tpls, .onb-ask { grid-template-columns: minmax(0, 1fr); }
  .onb-order div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .onb-profile .row2 { grid-template-columns: 1fr; }
  .onb-foot { padding: 10px 16px; }
  .onb-why { display: none; }
}

/* Ansicht im Designer-Rahmen: Seite scrollt, Fußleiste klebt unten */
.app .view.onb { height: auto; min-height: 100%; }
/* body.app ist auf 100vh begrenzt (overflow: hidden) – ohne eigenen Scroll-Bereich wurde der Assistent auf Laptops abgeschnitten */
body.app[data-view="onboarding"] #app-main { overflow-y: auto; }

/* Klartext-Regel (DESIGN.md): Überschriften in normaler Schreibung, nicht versal */
.onb h1, .onb h2, .onb h3 { text-transform: none; letter-spacing: normal; color: var(--text); }
.onb h2 { font-size: 17px; font-weight: 700; }
/* Schritt 3: Hinweis aus „Kurz prüfen“, eigener 3D-Aufbau (Rückmeldung #5, 16.10.2026) */
.onb-hint.check { border-color: var(--accent); color: var(--text); }
.onb-own-t { margin: 0; color: var(--muted); }
.onb-own-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.onb-hint .link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
/* Schritt 5/6: alle Autoloop-Plätze belegt -> Loop in der Kopie ersetzen; wo die Kopie liegt (16.10.2026) */
.onb-replace-in { display: grid; gap: 10px; min-width: 0; flex: 1; }
.onb-replace-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--text); }
.onb-replace-row select { flex: 1; min-width: 0; max-width: 100%; min-height: 44px; }
.onb-where { margin: 0; color: var(--muted); font-size: 13.5px; }
.onb-where b, .onb-replace b { color: var(--text); }
/* Schritt 3: Preset aus dem 3D-Visualizer – Karte über den Vorlagen, Frontansicht nur zum Ansehen (17.10.2026) */
.onb-tpl-preset { grid-column: 1 / -1; }
.onb-pre-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.onb-pre-tag .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.onb .fx.ro { cursor: default; }
.onb .o-ball { fill: #2b303b; stroke: #9aa1ae; stroke-width: 1.5; }
.onb .o-box { fill: #15181f; stroke: #313744; stroke-width: 1.5; }
.onb .o-line { stroke: #3d434f; stroke-width: 1.5; fill: none; }
