/* CompactGreens Konfigurator V2 — Design-Tokens, mobile-first (Punkt 6/9) */

:root {
    --green-900: oklch(28% 0.07 155);
    --green-700: oklch(45% 0.11 155);
    --green-600: oklch(52% 0.13 152);
    --green-100: oklch(95% 0.03 150);
    --surface: oklch(97.5% 0.008 110);
    --surface-card: oklch(99.5% 0.004 110);
    --ink: oklch(22% 0.02 140);
    --ink-soft: oklch(45% 0.015 140);
    --line: oklch(90% 0.01 120);
    --amber: oklch(75% 0.14 75);
    --danger: oklch(55% 0.19 25);

    --font-display: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-card: 0 1px 2px oklch(20% 0.02 140 / 0.05), 0 8px 24px oklch(20% 0.02 140 / 0.07);
    --dur: 240ms;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    overflow-x: clip;
}

h1, h2, h3, .grow-count, .stepper-label { font-family: var(--font-display); }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- Topbar */
#topbar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    background: var(--surface-card);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-home { display: flex; align-items: center; }
.brand-logo { height: 26px; width: auto; display: block; flex: none; }
.brand-tag {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--green-600); background: var(--green-100); padding: 3px 8px; border-radius: 99px;
}

.mode-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; color: var(--ink-soft); cursor: pointer; user-select: none; }
.mode-switch input { position: absolute; opacity: 0; }
.switch-track {
    width: 44px; height: 24px; border-radius: 99px; background: var(--line);
    position: relative; transition: background var(--dur) var(--ease); flex: none;
}
.switch-thumb {
    position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform var(--dur) var(--ease);
}
.mode-switch input:checked + .switch-track { background: var(--amber); }
.mode-switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.mode-switch input:focus-visible + .switch-track { outline: 2px solid var(--green-600); outline-offset: 2px; }

/* Betreiber-Werkzeuge: nur mit ?debug=1 sichtbar */
.operator-only { display: none; }
body.operator .operator-only { display: revert; }
body.operator .mode-switch.operator-only { display: flex; }
body.operator .icon-btn.operator-only { display: grid; place-items: center; }
body.operator .debug-badge.operator-only {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 99px;
    background: var(--amber); color: oklch(30% 0.05 75);
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface-card); font-size: 16px; transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--green-600); transform: translateY(-1px); }
/* ---------------------------------------------------------------- Layout */
#layout {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#stage {
    position: relative;
    background:
        radial-gradient(120% 90% at 30% 20%, oklch(99% 0.01 120) 0%, transparent 60%),
        linear-gradient(175deg, oklch(96.5% 0.015 130) 0%, oklch(92% 0.025 140) 100%);
    transition: filter 600ms var(--ease), background 600ms;
}
#stage.mood-light {
    background:
        radial-gradient(120% 90% at 30% 20%, oklch(45% 0.03 280) 0%, transparent 60%),
        linear-gradient(175deg, oklch(38% 0.03 270) 0%, oklch(26% 0.04 280) 100%);
}

#gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#gl-canvas.dragging { cursor: grabbing; }

@media (max-width: 860px) {
    /* Touch wird kontrolliert aufgeteilt: sanft drehen, schnell scrollen; zwei Finger drehen immer. */
    #gl-canvas { touch-action: none; cursor: default; }
}

/* ---- Werkzeug-Cluster: eine Leiste statt vier schwebender Inseln ---- */
#stage-tools {
    position: absolute; top: 12px; right: 14px; z-index: 7;
    display: flex; flex-direction: column; gap: 6px;
    padding: 5px; border-radius: 99px;
    background: oklch(99% 0.005 110 / 0.72); backdrop-filter: blur(8px);
    border: 1px solid var(--line);
}
.tool-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: transparent; font-size: 16px; line-height: 1;
    display: grid; place-items: center; color: var(--ink);
    transition: background var(--dur), transform var(--dur) var(--ease);
}
.tool-btn:hover { background: oklch(92% 0.02 140 / 0.7); transform: scale(1.06); }
.tool-btn.active { background: var(--green-700); }

#tool-popover {
    position: absolute; top: 12px; right: 60px; z-index: 7;
    padding: 10px 12px; border-radius: var(--radius);
    background: oklch(99% 0.005 110 / 0.94); backdrop-filter: blur(10px);
    border: 1px solid var(--line); box-shadow: var(--shadow-card);
    animation: panel-in 180ms var(--ease);
}
#tool-popover[hidden] { display: none; }
.tool-panel { display: none; flex-direction: column; gap: 8px; }
.tool-panel.visible { display: flex; }
.tool-title {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ink-soft);
}
#context-switch { display: flex; gap: 4px; }
#context-switch button {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: none;
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
    transition: background var(--dur), color var(--dur), border-color var(--dur);
}
#context-switch button:hover { color: var(--ink); border-color: var(--green-600); }
#context-switch button.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* dunkle Licht-Stimmung */
#stage.mood-light #stage-tools,
#stage.mood-light #tool-popover { background: oklch(30% 0.02 270 / 0.75); border-color: transparent; }
#stage.mood-light .tool-btn,
#stage.mood-light .tool-title,
#stage.mood-light #context-switch button { color: oklch(88% 0.01 270); }
#stage.mood-light #context-switch button { border-color: oklch(45% 0.02 270); }

/* Kulissen-Hintergründe je Szene */
body[data-scene="living"] #stage {
    background:
        radial-gradient(120% 90% at 30% 20%, oklch(97% 0.015 85) 0%, transparent 60%),
        linear-gradient(175deg, oklch(94.5% 0.02 80) 0%, oklch(89% 0.03 75) 100%);
}
body[data-scene="kitchen"] #stage {
    background:
        radial-gradient(120% 90% at 30% 20%, oklch(98% 0.005 220) 0%, transparent 60%),
        linear-gradient(175deg, oklch(95.5% 0.008 220) 0%, oklch(91% 0.012 230) 100%);
}

/* 360°-Hinweis-Chip — verschwindet nach dem ersten Drehen */
#stage-hint {
    position: absolute; left: 14px; bottom: 12px; z-index: 5;
    padding: 7px 13px; border-radius: 99px; pointer-events: none;
    background: oklch(20% 0.02 140 / 0.55); color: #fff;
    font-size: 12px; font-weight: 500; backdrop-filter: blur(6px);
    transition: opacity 500ms var(--ease);
}
#stage-hint.seen { opacity: 0; }
.hint-short { display: none; }
#stage.mood-light #stage-hint { background: oklch(90% 0.01 120 / 0.2); }

/* ---------------------------------------------------------------- Panel */
#panel {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border-left: 1px solid var(--line);
    min-height: 0;
}

#panel-content {
    flex: 1;
    overflow: visible;
    padding: 20px 22px 26px;
    animation: panel-in 320ms var(--ease);
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Stepper */
#stepper-holder { padding: 14px 18px 0; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper-line { flex: 1; height: 1px; background: var(--line); }
.stepper-item {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; color: var(--ink-soft); font-size: 12px; font-weight: 600;
    padding: 4px; border-radius: var(--radius-sm);
}
.stepper-item:disabled { opacity: 0.45; cursor: default; }
.stepper-num {
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    background: var(--line); font-size: 11px; transition: background var(--dur), color var(--dur);
}
.stepper-item.active .stepper-num { background: var(--green-700); color: #fff; }
.stepper-item.done .stepper-num { background: var(--green-100); color: var(--green-700); }
.stepper-item.active { color: var(--ink); }
.stepper-label { display: none; }
.stepper-item.active .stepper-label { display: inline; }

/* Step-Inhalte */
.step-head { margin-bottom: 18px; }
.step-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--green-900); }
.step-head p { margin-top: 6px; color: var(--ink-soft); line-height: 1.5; }

.section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--ink-soft); margin: 20px 0 10px;
}
.section-label.center { text-align: center; }

/* Größen-Schritt (Punkt 3) */
.grow-control {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px;
}
.grow-btn {
    width: 52px; height: 52px; border-radius: 50%; font-size: 26px; font-weight: 600;
    border: 1px solid var(--line); background: var(--surface-card); color: var(--ink);
    transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.grow-btn:hover:not(:disabled) { transform: scale(1.08); border-color: var(--green-600); }
.grow-btn:active:not(:disabled) { transform: scale(0.94); }
.grow-btn:disabled { opacity: 0.35; cursor: default; }
.grow-plus { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.grow-plus:hover:not(:disabled) { background: var(--green-600); }

.grow-display { text-align: center; }
.grow-count { display: block; font-size: 40px; font-weight: 700; line-height: 1; color: var(--green-900); }
.grow-unit { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

.grow-hint { margin-top: 10px; font-size: 13px; color: var(--green-700); font-weight: 500; }

.model-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.model-chip {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; text-align: center;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-card);
    font-size: 13px; transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease);
}
.model-chip span { font-size: 11px; color: var(--ink-soft); }
.model-chip:hover { transform: translateY(-2px); }
.model-chip.active { border-color: var(--green-700); background: var(--green-100); }

.spec-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px;
}
.spec-strip div {
    background: var(--surface); border-radius: var(--radius-sm); padding: 10px; text-align: center;
    display: flex; flex-direction: column; gap: 2px;
}
.spec-strip span { font-size: 11px; color: var(--ink-soft); }
.spec-strip strong { font-size: 15px; }

.info-note {
    margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--green-100); color: var(--green-900); font-size: 13px; line-height: 1.5;
}
.info-note.b2b { background: var(--surface); border: 1px dashed var(--line); color: var(--ink-soft); }
.info-note a { color: var(--green-700); font-weight: 600; }

/* Deckel-Schritt (Punkt 6) */
.preset-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preset-card {
    display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 10px 12px; font-size: 12px; font-weight: 600; text-align: left;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface-card);
    transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.preset-card:hover { border-color: var(--green-600); transform: translateY(-1px); }
.preset-card[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-100); }
.preset-card:focus-visible { outline: 2px solid var(--green-700); outline-offset: 3px; }
.preset-name { min-width: 0; line-height: 1.3; }
.preset-dots { display: flex; flex-shrink: 0; padding-right: 2px; }
.preset-dots i { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-card); }
.preset-dots i + i { margin-left: -4px; }

.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
    width: 44px; height: 44px; border-radius: 50%; background: var(--sw);
    border: 2px solid rgb(0 0 0 / 0.08);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.swatch:hover { transform: scale(1.14); box-shadow: 0 4px 12px rgb(0 0 0 / 0.18); }
.swatch:active { transform: scale(0.95); }
.swatch:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }

.hint-tap { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

.pot-selected {
    border: 1.5px solid var(--green-600); border-radius: var(--radius); padding: 12px 14px;
    background: var(--green-100); display: flex; flex-direction: column; gap: 10px;
    animation: panel-in 240ms var(--ease);
}
.pot-selected > span { font-size: 13px; font-weight: 600; color: var(--green-900); }

.link-btn { background: none; border: none; color: var(--green-700); font-weight: 600; font-size: 13px; text-align: left; padding: 0; }
.link-btn:hover { text-decoration: underline; }

.custom-row {
    display: flex; gap: 12px; align-items: flex-start; margin-top: 16px;
    border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
    cursor: pointer; transition: border-color var(--dur), background var(--dur);
    font-size: 14px; line-height: 1.45;
}
.custom-row small { color: var(--ink-soft); }
.custom-row.active { border-color: var(--green-700); background: var(--green-100); }
.custom-row input { margin-top: 3px; accent-color: var(--green-700); width: 17px; height: 17px; flex: none; }

/* Front & Licht (Punkt 7) */
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-card {
    display: flex; align-items: center; gap: 12px; padding: 11px 13px; text-align: left;
    border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface-card);
    transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease);
}
.option-card:hover { transform: translateX(3px); border-color: var(--green-600); }
.option-card.active { border-color: var(--green-700); background: var(--green-100); }
.option-swatch { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid rgb(0 0 0 / 0.08); flex: none; }
.option-swatch.light-warm { background: linear-gradient(135deg, #fff1e2, #ffce9e); }
.option-card.static { cursor: default; }
.option-card.static:hover { transform: none; }
.option-info { display: flex; flex-direction: column; gap: 1px; }
.option-info small { color: var(--ink-soft); font-size: 12px; }

.engraving-input {
    width: 100%; margin-top: 10px; padding: 11px 13px; font-size: 15px; font-family: var(--font-display);
    border: 1.5px solid var(--green-600); border-radius: var(--radius-sm); background: var(--surface-card);
    color: var(--ink);
}
.engraving-input:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }

.dim-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 18px; }
.dim-row input { flex: 1; accent-color: var(--green-700); }

/* Übersicht / Preise (Punkt 10) */
.price-box {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--surface-card); box-shadow: var(--shadow-card);
}
.price-line {
    display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px;
    font-size: 14px; border-bottom: 1px solid var(--line);
}
.price-line.free span:last-child { color: var(--green-700); font-weight: 700; }
.price-line.subtotal { color: var(--ink-soft); }
.price-line.discount { color: var(--green-700); font-weight: 600; background: var(--green-100); }
.price-line.total { font-family: var(--font-display); font-weight: 700; font-size: 17px; border-bottom: none; background: var(--surface); }

.legal-note { margin-top: 10px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.legal-note.center { text-align: center; }

/* Buttons */
.btn-primary {
    width: 100%; margin-top: 16px; padding: 15px 18px;
    background: var(--green-700); color: #fff; border: none; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
    box-shadow: 0 6px 18px oklch(45% 0.11 155 / 0.35);
    transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 10px 24px oklch(45% 0.11 155 / 0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    width: 100%; margin-top: 8px; padding: 12px 16px;
    background: var(--surface-card); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius);
    font-weight: 600; font-size: 14px; transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.btn-ghost:hover { border-color: var(--green-600); transform: translateY(-1px); }
.btn-ghost.subtle { border: none; color: var(--ink-soft); }

.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.step-nav .btn-ghost, .step-nav .btn-primary { width: auto; margin-top: 0; flex: 1; }
.step-nav span { flex: 1; }

.btn-skip {
    width: 100%; margin-top: 10px; padding: 8px; background: none; border: none;
    color: var(--ink-soft); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
}
.btn-skip:hover { color: var(--green-700); }

/* Preis-Ticker */
#price-ticker {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 20px; border-top: 1px solid var(--line); background: var(--surface-card);
}
.ticker-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticker-model {
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.promo-badge {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
    background: var(--amber); color: oklch(30% 0.05 75); padding: 2px 8px; border-radius: 99px;
}
.ticker-amount { display: flex; align-items: baseline; gap: 8px; }
.ticker-amount s { color: var(--ink-soft); font-size: 13px; }
.ticker-amount strong { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--green-900); }

/* Navigation unten rechts (Simons Feedback) */
.ticker-nav { display: flex; gap: 8px; flex: none; align-items: stretch; }
.btn-nav-back {
    padding: 11px 14px; background: var(--surface-card); color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--radius);
    font-weight: 600; font-size: 13.5px; white-space: nowrap;
    transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.btn-nav-back:hover { border-color: var(--green-600); transform: translateY(-1px); }
.btn-nav-next {
    padding: 11px 20px; background: var(--green-700); color: #fff;
    border: none; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap;
    box-shadow: 0 5px 15px oklch(45% 0.11 155 / 0.35);
    transition: transform var(--dur) var(--ease), background var(--dur);
}
.btn-nav-next:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-nav-next:active { transform: translateY(0); }

.delta-chip {
    position: absolute; right: 18px; top: -14px;
    padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700;
    animation: delta-fly 1.4s var(--ease) forwards; pointer-events: none;
}
.delta-chip.plus { background: var(--green-700); color: #fff; }
.delta-chip.minus { background: var(--line); color: var(--ink); }
@keyframes delta-fly {
    0% { opacity: 0; transform: translateY(8px); }
    18% { opacity: 1; transform: translateY(-4px); }
    75% { opacity: 1; transform: translateY(-14px); }
    100% { opacity: 0; transform: translateY(-26px); }
}

/* Bestellbestätigung */
#confirm-view {
    position: fixed; inset: 0; z-index: 50; background: var(--surface);
    overflow-y: auto; display: none;
}
#confirm-view.open { display: block; animation: panel-in 400ms var(--ease); }
.confirm-inner { max-width: 640px; margin: 0 auto; padding: 48px 22px 60px; text-align: center; }
.confirm-badge {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--green-700); color: #fff; font-size: 34px; display: grid; place-items: center;
    box-shadow: 0 10px 30px oklch(45% 0.11 155 / 0.4);
    animation: badge-pop 600ms var(--ease);
}
@keyframes badge-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.confirm-inner h1 { font-size: 30px; letter-spacing: -0.02em; color: var(--green-900); }
.confirm-sub { margin-top: 8px; color: var(--ink-soft); line-height: 1.5; }

.timeline { display: flex; flex-direction: column; gap: 0; text-align: left; margin-top: 4px; }
.tl-item {
    position: relative; padding: 0 0 22px 34px;
}
.tl-item::before {
    content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-item i {
    position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--surface-card); border: 3px solid var(--line);
}
.tl-item.done i { border-color: var(--green-700); background: var(--green-700); }
.tl-item strong { display: block; font-size: 14px; }
.tl-item span { font-size: 13px; color: var(--ink-soft); }

.config-link-box {
    margin-top: 26px; padding: 18px; border: 1.5px dashed var(--green-600); border-radius: var(--radius);
    background: var(--green-100); text-align: left; display: flex; flex-direction: column; gap: 8px;
}
.config-link-box p { font-size: 13px; color: var(--ink-soft); }
.config-link-box code {
    display: block; font-size: 11px; word-break: break-all; background: var(--surface-card);
    padding: 8px 10px; border-radius: var(--radius-sm); max-height: 52px; overflow: hidden;
}

/* Analytics-Panel */
.panel-head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-head-row h3 { font-size: 16px; }
.panel-head-row small { font-weight: 400; color: var(--ink-soft); }
.funnel-row { display: grid; grid-template-columns: 78px 1fr 64px; align-items: center; gap: 8px; margin: 7px 0; font-size: 12.5px; }
.funnel-bar { height: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; width: 100%; background: var(--green-600); border-radius: 99px; transform-origin: left; transition: transform 400ms var(--ease); }
.funnel-time { text-align: right; color: var(--ink-soft); }
.event-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.event-row { display: flex; gap: 8px; font-size: 11.5px; padding: 5px 8px; background: var(--surface); border-radius: 6px; }
.event-row code { color: var(--green-700); font-weight: 600; flex: none; }
.event-row span { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Radial-Menü am Topf (Simons Feedback) */
#radial-menu { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
#radial-menu .color-bubble {
    position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
    background: var(--sw); border: 2.5px solid #fff;
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
    transform: scale(0); transition: transform 220ms var(--ease);
    pointer-events: none; cursor: pointer; padding: 0;
}
#radial-menu.open .color-bubble { transform: scale(1); pointer-events: auto; }
#radial-menu.open .color-bubble:hover { transform: scale(1.18); }

/* Intro für Kaltbesucher (Schritt 1) */
.intro-details {
    margin-bottom: 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
    padding: 9px 13px; font-size: 13px; color: var(--ink-soft);
}
.intro-details summary { cursor: pointer; font-weight: 600; color: var(--green-700); }
.intro-details p { margin-top: 8px; line-height: 1.55; }

/* Deckel-Recap in der Übersicht */
.lid-recap {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px; font-size: 12.5px;
}
.recap-label { font-weight: 600; color: var(--ink-soft); }
.recap-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface); border-radius: 99px; padding: 3px 9px 3px 4px; font-weight: 600;
}
.recap-chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); border: 1px solid rgb(0 0 0 / 0.1); }

/* ---- Design-Schritt: drei Abschnitte in einem Schritt ---- */
.section-jump {
    position: sticky; top: -1px; z-index: 4;
    display: flex; gap: 6px; margin: -4px 0 18px;
    padding: 8px 0; background: var(--surface-card);
}
.section-jump button {
    flex: 1; padding: 7px 6px; border: 1.5px solid var(--line); border-radius: 99px;
    background: var(--surface-card); font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
    transition: border-color var(--dur), background var(--dur), color var(--dur);
}
.section-jump button:hover { border-color: var(--green-600); color: var(--ink); }
.section-jump button.active { background: var(--green-100); border-color: var(--green-700); color: var(--green-900); }

.design-section {
    padding: 18px 0 24px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 46px;
}
.design-section:last-of-type { border-bottom: none; }
.section-title {
    display: flex; align-items: center; gap: 9px;
    font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--green-900);
}
.section-num {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--line); color: var(--ink-soft);
    font-size: 12px; font-weight: 700;
    transition: background var(--dur), color var(--dur);
}
.design-section.in-view .section-num { background: var(--green-700); color: #fff; }
.section-lead { margin: 6px 0 4px; color: var(--ink-soft); line-height: 1.5; font-size: 14px; }

/* Live-Farbübersicht + Undo im Deckel-Abschnitt */
.tally-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin: 12px 0 4px; min-height: 30px;
}
.tally-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tally-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px 4px 5px; border-radius: 99px;
    background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.tally-chip i {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--sw); border: 1px solid rgb(0 0 0 / 0.12);
}
.undo-btn {
    flex: none; padding: 6px 12px; border-radius: 99px;
    border: 1.5px solid var(--line); background: var(--surface-card);
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
    transition: border-color var(--dur), color var(--dur), transform var(--dur) var(--ease);
}
.undo-btn:hover { border-color: var(--green-600); color: var(--green-900); transform: translateY(-1px); }

/* Zeitraffer-Steuerung im Werkzeug-Popover */
#growth-controls { display: flex; align-items: center; gap: 10px; }
#growth-controls button {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: var(--green-700); color: #fff; font-size: 11px; flex: none;
}
#growth-controls input { width: 118px; accent-color: var(--green-700); }
#growth-week { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); min-width: 110px; }
#stage.mood-light #growth-week { color: oklch(85% 0.01 270); }


@media (max-width: 860px) {
    #growth-controls input { width: 92px; }
    #growth-week { min-width: 96px; font-size: 11px; }

    /* 360°-Hinweis kurz halten, damit er das Modell nicht verdeckt */
    .hint-long { display: none; }
    .hint-short { display: inline; }
    #stage-hint { left: 12px; bottom: 10px; padding: 5px 11px; font-size: 11px; opacity: 0.75; }
}

.ar-top strong { font-family: var(--font-display); font-size: 16px; color: var(--green-900); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ Mobile (P6) */
@media (max-width: 860px) {
    #stage, #panel { min-width: 0; }
    #panel {
        border-left: none; border-top: 1px solid var(--line);
        border-radius: 18px 18px 0 0; margin-top: -18px; z-index: 10;
        box-shadow: 0 -8px 30px rgb(0 0 0 / 0.08);
    }
    #stepper-holder { padding-top: 10px; }
    #panel-content { padding: 14px 16px 20px; }
    .brand-tag { display: none; }
    .brand-logo { height: 22px; }
    .mode-switch #mode-label { font-size: 11px; }
    .step-head h2 { font-size: 21px; }
    .grow-btn { width: 46px; height: 46px; }
    .swatch { width: 48px; height: 48px; }   /* Touch-Targets ≥ 44px */
    .model-chips { grid-template-columns: repeat(2, 1fr); }
    #price-ticker { padding: 10px 14px; flex-wrap: wrap; }
    .ticker-nav { margin-left: auto; }
    .ticker-amount strong { font-size: 18px; }
    .btn-nav-back { padding: 10px 12px; font-size: 13px; }
    .btn-nav-next { padding: 10px 15px; font-size: 14px; }
}

/* Reduced Motion (Punkt 5/9) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
