/* =====================================================================
   rio Studio: neue 3D-Oberfläche über der bisherigen Oberfläche
   Hell, ruhig, große Tippflächen. Alle Werte kommen aus Configurator.js.
   ===================================================================== */
.st {
    --st-bg: #f5f4f2;
    --st-paper: #fff;
    --st-ink: #1f1c1a;
    --st-ink-2: #4a433e;
    --st-muted: #7a726b;
    --st-line: #e7e3de;
    --st-wash: #f2f0ed;
    --st-go: #0d8500;
    --st-go-2: #0a6e00;
    --st-go-wash: #e9f5e6;
    --st-warn: #b3261e;
    --st-r: 12px;
    --st-r-s: 8px;
    --st-shadow: 0 1px 2px rgba(31, 28, 26, 0.06), 0 10px 30px rgba(31, 28, 26, 0.1);
    --st-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --st-hd: 56px;
    --st-bar: 76px;
    --st-panel: 392px;

    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    /* Desktop: Regal links, Bedienmenü rechts (RIO wollte es kurz links, dann doch wieder rechts) */
    grid-template-columns: minmax(0, 1fr) var(--st-panel);
    grid-template-rows: var(--st-hd) 1fr var(--st-bar);
    grid-template-areas: "hd hd" "stage panel" "bar bar";
    background: var(--st-bg);
    color: var(--st-ink-2);
    font:
        400 15px/1.45 "Rio Inter",
        Inter,
        "Helvetica Neue",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
.st *,
.st *::before,
.st *::after {
    box-sizing: border-box;
}
:where(.st) button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}
:where(.st) svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.st [hidden] {
    display: none !important;
}
.st :focus-visible {
    outline: 2px solid var(--st-go) !important;
    outline-offset: 2px;
}
html.st-on #bubble,
html.st-on .stagehint {
    display: none !important;
}
html.st-on #rioExamples {
    z-index: 4500 !important;
}
html.st-on.st-dlg #configurator {
    z-index: 4400 !important;
    background: transparent !important;
    width: 100% !important;
}
html.st-on.st-dlg #configurator > #wrapper,
html.st-on.st-dlg #configurator > .loadingOverlay {
    visibility: hidden !important;
}
html.st-2d .st {
    display: none;
}

/* ---------- Kopfzeile ---------- */
.st-hd {
    grid-area: hd;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 0 16px;
    background: var(--st-paper);
    border-bottom: 1px solid var(--st-line);
    position: relative;
    z-index: 3;
}
.st-logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1;
    background: var(--st-ink);
    color: #fff;
    border-radius: 7px;
    padding: 3px 9px 6px;
}
.st-hd__title {
    font-weight: 700;
    color: var(--st-ink);
    font-size: 16px;
}
.st-hd__tools {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.st-ib {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}
.st-ib:hover {
    background: var(--st-wash);
}
.st-ib:disabled {
    opacity: 0.35;
    cursor: default;
    background: transparent;
}
.st-ib--txt span {
    font-weight: 700;
    color: var(--st-ink);
}

/* ---------- Bühne ---------- */
.st-stage {
    grid-area: stage;
    position: relative;
    overflow: hidden;
    background: #e9e7e4;
    min-height: 0;
}
.st-3d {
    position: absolute;
    inset: 0;
}
.st-3d canvas {
    outline: none;
    cursor: grab;
}
.st-3d canvas:active {
    cursor: grabbing;
}
.v3-ov {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.v3-plus {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-go);
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.85),
        0 4px 12px rgba(13, 133, 0, 0.3);
    transition:
        transform 0.15s var(--st-ease),
        background 0.15s;
    animation: st-pop 0.25s var(--st-ease);
}
.v3-plus svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.8;
}
.v3-plus::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
}
.v3-plus:hover {
    background: var(--st-go-2);
}
.v3-plus:active {
    filter: brightness(0.9);
}
.st.is-busy .v3-plus {
    opacity: 0.4;
    pointer-events: none;
}
@keyframes st-pop {
    from {
        opacity: 0;
        scale: 0.6;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}
.v3-dim {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    font-size: 12px;
    font-weight: 700;
    color: #3d3833;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    padding: 2px 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.v3-dim--d {
} /* Tiefe wie Höhe und Breite (Wunsch RIO) */
.st-vt {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.st-vb {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-ink);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06);
}
.st-vb:hover {
    background: #fff;
}
.st-vb[aria-pressed="false"] {
    color: var(--st-muted);
}
.st-vb svg {
    width: 20px;
    height: 20px;
}
.st-toast {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translate(-50%, -8px);
    opacity: 0;
    max-width: min(520px, calc(100% - 90px));
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--st-ink);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    box-shadow: var(--st-shadow);
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s var(--st-ease);
    z-index: 3;
}
.st-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}
.st-toast.is-warn {
    background: #fff;
    color: var(--st-ink);
    border-left: 4px solid var(--st-warn);
    text-align: left;
}
.st-gesture {
    position: absolute;
    left: 12px;
    bottom: 12px;
    margin: 0;
    z-index: 2;
    pointer-events: none;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--st-ink-2);
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: opacity 0.4s;
    max-width: calc(100% - 80px);
}
.st-gesture.is-off {
    opacity: 0;
}
.st-g-touch {
    display: none;
}
@media (hover: none) {
    .st-g-touch {
        display: inline;
    }
    .st-g-desk {
        display: none;
    }
}
.st-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e9e7e4;
    color: var(--st-ink);
    font-weight: 700;
    z-index: 4;
}
.st-spin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--st-go);
    animation: st-rot 0.8s linear infinite;
}
@keyframes st-rot {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Bedienbereich ---------- */
.st-panel {
    grid-area: panel;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--st-paper);
    border-left: 1px solid var(--st-line);
}
.st-grip {
    display: none;
}
.st-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 10px 0;
    border-bottom: 1px solid var(--st-line);
}
.st-tab {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 10px;
    border: 0;
    background: none;
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.st-tab svg {
    width: 22px;
    height: 22px;
}
.st-tab[aria-selected="true"] {
    color: var(--st-ink);
    border-bottom-color: var(--st-ink);
}
.st-tab:hover {
    color: var(--st-ink);
}
.st-tabdot {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--st-go);
}
.st-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 18px 24px;
}
.st-pane {
    animation: st-fade 0.2s;
}
@keyframes st-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.st-lead {
    margin: 14px 0 4px;
    color: var(--st-ink);
    font-size: 15px;
}
.st-pluschip {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--st-go);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    vertical-align: -5px;
}
.st-field {
    padding: 14px 0;
    border-bottom: 1px solid var(--st-line);
}
.st-field:last-child {
    border-bottom: 0;
}
.st-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--st-ink);
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}
.st-sub .st-label {
    margin-top: 12px;
}
.st-val {
    font-weight: 400;
    color: var(--st-muted);
    margin-left: 4px;
}
.st-note {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--st-muted);
    line-height: 1.4;
}
.st-why {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: var(--st-r-s);
    background: var(--st-wash);
    font-size: 13px;
    color: var(--st-ink-2);
    line-height: 1.4;
}

/* Auswahl-Chips (Höhe/Tiefe) */
.st-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.st-chip {
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--st-ink);
    font-size: 14px;
}
.st-chip small {
    font-weight: 400;
    color: var(--st-muted);
}
.st-chip .st-hico {
    --w: 18px;
    width: var(--w);
    height: calc(var(--w) * var(--r, 1));
    flex: none;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}
.st-chip:hover {
    border-color: #bdb5ad;
}
.st-chip[aria-checked="true"] {
    border-color: var(--st-ink);
    background: var(--st-ink);
    color: #fff;
}
.st-chip[aria-checked="true"] small {
    color: rgba(255, 255, 255, 0.7);
}
.st-chip:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Farbfelder */
.st-sw {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.st-swb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.st-swb::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
}
.st-swb[aria-checked="true"]::after {
    border-color: var(--st-ink);
}
.st-swb:disabled {
    opacity: 0.35;
    cursor: default;
}
.st-swb.is-acryl {
    background: linear-gradient(135deg, rgba(220, 232, 236, 0.9), rgba(255, 255, 255, 0.5)) !important;
}
.st-swb.is-acryl-semi {
    background: repeating-linear-gradient(45deg, #eef1f2 0 4px, #f9fafa 4px 8px) !important;
}
.st-sw--room .st-swb {
    width: 34px;
    height: 34px;
}
/* Türmaterial: alle 8 Farben/Plexi kleiner in einer Reihe (Wunsch RIO) */
#stDoorMat {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
}
#stDoorMat .st-swb {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}
#stDoorMat .st-swb::after {
    inset: -4px;
}
.st-roomrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}
.st-roomrow > span {
    width: 44px;
    font-size: 13px;
    color: var(--st-muted);
}

/* Segmente */
.st-seg {
    display: flex;
    background: var(--st-wash);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
}
.st-seg button {
    flex: 1;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-weight: 700;
    color: var(--st-ink-2);
    font-size: 14px;
    padding: 4px 6px;
}
.st-seg button[aria-checked="true"],
.st-seg button.is-on {
    background: var(--st-paper);
    color: var(--st-ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.st-seg button:disabled {
    opacity: 0.38;
    cursor: default;
}
.st-seg--sm button {
    min-height: 36px;
    font-size: 13px;
}
.st-sub {
    margin-top: 4px;
}

/* Stepper */
.st-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
}
.st-step__name {
    width: 56px;
    font-weight: 700;
    color: var(--st-ink);
    font-size: 14px;
}
.st-step__val {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: var(--st-ink-2);
}
.st-sb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--st-ink);
}
.st-sb:hover {
    border-color: var(--st-ink);
}
.st-sb:disabled {
    opacity: 0.35;
    cursor: default;
    border-color: var(--st-line);
}
.st-quick .st-seg {
    margin-bottom: 8px;
}

/* Schalter */
.st-toggles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.st-tg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 12px 6px 8px;
    border-radius: 12px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    font-weight: 700;
    color: var(--st-ink);
    font-size: 14px;
    text-align: left;
}
.st-tg--wide {
    width: 100%;
}
.st-tg__k {
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: #d9d4ce;
    position: relative;
    flex: none;
    transition: background 0.15s;
}
.st-tg__k::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s var(--st-ease);
}
.st-tg[aria-checked="true"] .st-tg__k {
    background: var(--st-go);
}
.st-tg[aria-checked="true"] .st-tg__k::after {
    transform: translateX(16px);
}
.st-tg:disabled {
    opacity: 0.45;
    cursor: default;
}
.st-opt + .st-opt {
    margin-top: 14px;
}

/* Wände */
.st-faces {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.st-face {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    font-size: 14px;
    font-weight: 700;
    color: var(--st-ink);
    text-align: left;
}
.st-face svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.4;
}
.st-face svg .f {
    stroke: var(--st-go);
    stroke-width: 3.2;
}
.st-face svg .fa {
    fill: var(--st-go-wash);
    stroke: var(--st-go);
    stroke-width: 1.6;
}
.st-face span small {
    display: block;
    font-weight: 400;
    color: var(--st-muted);
    font-size: 12px;
}
.st-face[aria-pressed="false"] svg .f {
    stroke: #c9c2bb;
    stroke-dasharray: 2 2.4;
}
.st-face[aria-pressed="false"] svg .fa {
    fill: none;
    stroke: #c9c2bb;
    stroke-dasharray: 2 2.4;
}
.st-face:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Fach-Kopf */
.st-cubehead {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--st-line);
}
.st-cubehead > div {
    flex: 1;
}
.st-cubehead b {
    color: var(--st-ink);
    font-size: 17px;
}
.st-cubehead small {
    display: block;
    color: var(--st-muted);
    font-size: 13px;
}
.st-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--st-ink-2);
}
.st-empty svg {
    width: 150px;
    height: 100px;
    stroke: #b9b1a9;
    stroke-width: 1.6;
}
.st-empty svg .on {
    stroke: var(--st-go);
    fill: var(--st-go-wash);
    stroke-width: 2.2;
}
.st-empty svg .hand {
    fill: #fff;
    stroke: var(--st-ink);
}
.st-empty p {
    margin: 8px 0 0;
}
.st-empty b {
    color: var(--st-ink);
}

/* Regalart */
.st-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.st-types button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    border-radius: 12px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    font-weight: 700;
    font-size: 13px;
    color: var(--st-ink);
}
.st-types svg {
    width: 48px;
    height: 40px;
    stroke-width: 1.6;
}
.st-types button[aria-checked="true"] {
    border-color: var(--st-ink);
    box-shadow: inset 0 0 0 1px var(--st-ink);
}

/* Knöpfe */
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    font-weight: 700;
    color: var(--st-ink);
    font-size: 14px;
}
.st-btn:hover {
    border-color: var(--st-ink);
}
.st-btn--primary {
    background: var(--st-ink);
    border-color: var(--st-ink);
    color: #fff;
}
.st-btn--primary:hover {
    background: #000;
}
.st-cubeacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}
.st-btn--danger {
    color: #fff;
    background: var(--st-warn);
    border-color: var(--st-warn);
}
.st-btn--danger:disabled {
    color: var(--st-warn);
    background: transparent;
}
.st.is-move .st-stage {
    box-shadow: inset 0 0 0 3px var(--st-go);
}
.st-btn--danger:hover {
    border-color: var(--st-warn);
}
.st-btn:disabled {
    opacity: 0.45;
    cursor: default;
    border-color: var(--st-line);
}
.st-link {
    border: 0;
    background: none;
    padding: 8px 0 0;
    color: var(--st-go);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Leiste unten ---------- */
.st-bar {
    grid-area: bar;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 16px 0 20px;
    background: var(--st-paper);
    border-top: 1px solid var(--st-line);
    position: relative;
    z-index: 3;
}
.st-bar__dims {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--st-ink);
    font-size: 15px;
}
.st-bar__dims span {
    color: var(--st-muted);
    margin-right: 4px;
}
.st-bar__dims b {
    color: var(--st-ink);
}
@media (max-width: 899px) {
    /* Handy: wenig Platz neben dem Preis, darum zweizeilig */
    .st-bar__dims {
        display: flex;
        flex-direction: column;
        font-size: 13px;
    }
    .st-bar__dims span {
        font-size: 12px;
    }
}
.st-bar__price {
    margin-left: auto;
    text-align: right;
    position: relative;
    display: flex;
    flex-direction: column;
}
.st-bar__price b {
    font-size: 24px;
    font-weight: 900;
    color: var(--st-ink);
    line-height: 1.1;
    white-space: nowrap;
}
.st-bar__price small {
    font-size: 12px;
    color: var(--st-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
.st-delta {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.2s,
        transform 0.2s var(--st-ease);
    background: var(--st-go-wash);
    color: var(--st-go-2);
}
.st-delta.is-down {
    background: #f4ecea;
    color: #8a2a1e;
}
.st-delta.is-on {
    opacity: 1;
    transform: none;
}
.st-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--st-go);
    color: #fff !important;
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(13, 133, 0, 0.25);
}
.st-cta:hover {
    background: var(--st-go-2);
}
.st-cta:disabled {
    background: #b9c9b5;
    box-shadow: none;
    cursor: default;
}

/* ---------- Start ---------- */
.st-start,
.st-menu,
.st-tour,
.st-gap {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 28, 26, 0.38);
    padding: 16px;
    animation: st-fade 0.2s;
}
.st-start__card,
.st-tour__card,
.st-gap__card {
    width: min(640px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: var(--st-paper);
    border-radius: 20px;
    padding: 26px 24px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.st-start h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--st-ink);
    font-weight: 900;
    line-height: 1.2;
}
.st-start p {
    margin: 0 0 18px;
    color: var(--st-ink-2);
}
.st-start__types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.st-start__types button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 10px 14px;
    border-radius: 16px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    transition:
        border-color 0.15s,
        transform 0.15s var(--st-ease),
        box-shadow 0.15s;
}
.st-start__types button:hover {
    border-color: var(--st-ink);
    transform: translateY(-2px);
    box-shadow: var(--st-shadow);
}
.st-start__types svg {
    width: 72px;
    height: 60px;
    stroke-width: 1.4;
    color: var(--st-ink);
}
.st-start__types b {
    color: var(--st-ink);
    font-size: 16px;
}
.st-start__types span {
    font-size: 13px;
    color: var(--st-muted);
    line-height: 1.3;
}
.st-start .st-btn {
    width: 100%;
}

/* ---------- Menü ---------- */
.st-menu {
    align-items: flex-start;
    justify-content: flex-end;
    padding: calc(var(--st-hd) + 4px) 10px 10px;
    background: rgba(31, 28, 26, 0.18);
}
.st-menu__card {
    width: 300px;
    background: var(--st-paper);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.st-menu__card button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    text-align: left;
    font-weight: 700;
    color: var(--st-ink);
    font-size: 15px;
}
.st-menu__card button:hover {
    background: var(--st-wash);
}
.st-menu__card hr {
    border: 0;
    border-top: 1px solid var(--st-line);
    margin: 6px 4px;
}

/* ---------- Kurz erklärt ---------- */
.st-tour__card {
    width: min(440px, 100%);
    text-align: center;
}
.st-tour__step svg {
    width: 220px;
    height: 124px;
    stroke: #b9b1a9;
    stroke-width: 1.6;
}
.st-tour__step svg .ghost {
    stroke: var(--st-go);
    stroke-dasharray: 4 3;
    fill: var(--st-go-wash);
}
.st-tour__step svg .plus {
    fill: var(--st-go);
    stroke: none;
}
.st-tour__step svg .pluss {
    stroke: #fff;
    stroke-width: 2.4;
}
.st-tour__step svg .sel {
    stroke: var(--st-go);
    stroke-width: 3;
    fill: var(--st-go-wash);
}
.st-tour__step svg .bar {
    fill: #fff;
    stroke: #cfc8c1;
}
.st-tour__step svg .cta {
    fill: var(--st-go);
    stroke: none;
}
.st-tour h3 {
    margin: 6px 0 6px;
    color: var(--st-ink);
    font-size: 20px;
    font-weight: 900;
}
.st-tour p {
    margin: 0;
    color: var(--st-ink-2);
}
.st-tour__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.st-tour__dots {
    display: flex;
    gap: 6px;
    margin-right: auto;
}
.st-tour__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d2cc;
}
.st-tour__dots i.on {
    background: var(--st-ink);
}

/* ---------- Lücke ---------- */
.st-gap__card h3 {
    margin: 0 0 6px;
    color: var(--st-ink);
    font-size: 20px;
    font-weight: 900;
}
.st-gap__card p {
    margin: 0 0 14px;
}
.st-gap__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.st-gap__grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1.5px solid var(--st-line);
    background: var(--st-paper);
    font-weight: 700;
    color: var(--st-ink);
    font-size: 13px;
}
.st-gap__grid button:hover {
    border-color: var(--st-ink);
}
.st-gap__grid svg {
    width: 46px;
    height: 46px;
    stroke-width: 1.2;
}
.st-gap__grid svg .g {
    fill: var(--st-go-wash);
    stroke: var(--st-go);
    stroke-width: 1.8;
}
.st-gap__nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}
.st-gapbar {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 16px;
    border-radius: 14px;
    width: max-content;
    background: var(--st-ink);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: var(--st-shadow);
    max-width: calc(100% - 24px);
}
@media (max-width: 899px) {
    .st-gapbar {
        left: 10px;
        right: 60px;
        top: 10px;
        bottom: auto;
        transform: none;
        width: auto;
    }
}
.st-gapbar .st-btn {
    background: #fff;
    min-height: 38px;
}
.st.is-gap .st-stage {
    box-shadow: inset 0 0 0 3px var(--st-go);
}

/* ---------- Zurück aus der 2D-Ansicht ---------- */
.st-back3d {
    position: fixed;
    z-index: 4200;
    left: 12px;
    top: 56px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #1f1c1a;
    color: #fff;
    font:
        700 15px "Rio Inter",
        Inter,
        Arial,
        sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.st-back3d svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
html:not(.st-2d) .st-back3d {
    display: none;
}

/* Neues Fach: Bezeichnung und Auswahl in einer Zeile */
.st-newcube .st-row {
    margin-top: 12px;
}
.st-newcube .st-chip small {
    display: none;
}
.st-newcube .st-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.st-newcube .st-chip[hidden] {
    display: none !important;
}
.st-newcube .st-chip {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 6px 8px;
}
.st-label--head {
    margin-bottom: 2px;
}

/* Entfernen im Regal */
.v3-rem {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: st-pop 0.25s var(--st-ease);
}
.v3-rem--minus {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--st-warn);
    background: #fff;
    color: var(--st-warn);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.v3-rem--minus svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}
.v3-rem--minus:hover {
    background: var(--st-warn);
    color: #fff;
}
.v3-rem--minus::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
} /* größere Trefferfläche */
.v3-rem--trash {
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--st-warn);
    color: #fff;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.85),
        0 6px 16px rgba(0, 0, 0, 0.25);
}
.v3-rem--trash svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}
.st.is-busy .v3-rem {
    opacity: 0.4;
    pointer-events: none;
}

/* ---------- Handy ---------- */
@media (max-width: 899px) {
    .st {
        --st-hd: 52px;
        --st-bar: 68px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: var(--st-hd) minmax(0, 1fr) auto var(--st-bar);
        grid-template-areas: "hd" "stage" "panel" "bar";
        height: 100dvh;
    }
    .st-hd {
        padding: 0 4px 0 12px;
    }
    .st-hd__title {
        display: none;
    }
    .st-ib--txt span {
        display: none;
    }
    .st-panel {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--st-line);
        border-radius: 18px 18px 0 0;
        height: min(38dvh, 340px);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
        margin-top: -14px;
        position: relative;
        z-index: 2;
        transition: height 0.25s var(--st-ease);
    }
    .st.is-collapsed .st-panel {
        height: 84px;
    }
    .st.is-collapsed .st-scroll {
        visibility: hidden;
    }
    .st-grip {
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 72px;
        height: 22px;
        border: 0;
        background: none;
        z-index: 2;
        padding: 0;
    }
    .st-grip span {
        display: block;
        width: 40px;
        height: 5px;
        margin: 8px auto 0;
        border-radius: 3px;
        background: #d4cdc6;
    }
    .st-tabs {
        padding-top: 14px;
    }
    .st-tab {
        flex-direction: row;
        justify-content: center;
        gap: 6px;
        font-size: 14px;
        padding: 6px 4px 10px;
    }
    .st-tab svg {
        width: 20px;
        height: 20px;
    }
    .st-tabdot {
        top: 2px;
        right: 8px;
    }
    .st-scroll {
        padding: 0 14px 18px;
    }
    .st-vt {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    .st-vb {
        width: 40px;
        height: 40px;
    }
    #stDimsBtn {
        display: none;
    }
    .st-bar {
        gap: 10px;
        padding: 0 10px 0 14px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .st-bar__price b {
        font-size: 20px;
    }
    .st-bar__price {
        min-width: 0;
    }
    .st-bar__price small {
        max-width: 120px;
    }
    .st-bar__dims {
        display: none;
    }
    .st-bar__price {
        margin-left: 0;
        text-align: left;
        flex: 1;
    }
    .st-bar__price small {
        max-width: none;
    }
    .st-delta {
        left: 0;
        right: auto;
    }
    .st-bar__dims b {
        font-size: 13px;
    }
    .st-cta {
        min-height: 48px;
        padding: 0 14px;
        font-size: 15px;
    }
    .st-start__card {
        padding: 22px 16px 16px;
    }
    .st-start h2 {
        font-size: 21px;
    }
    .st-start__types {
        gap: 8px;
    }
    .st-start__types button {
        padding: 14px 4px 10px;
    }
    .st-start__types svg {
        width: 56px;
        height: 46px;
    }
    .st-start__types span {
        font-size: 12px;
    }
    .st-menu {
        padding-top: calc(var(--st-hd) + 2px);
    }
    .st-menu__card {
        width: min(320px, 100%);
    }
    .st-gap__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .st-faces {
        grid-template-columns: 1fr 1fr;
    }
    /* Anbauen kompakt */
    .st-lead {
        display: none;
    }
    .st-newcube {
        padding-top: 10px;
    }
    .st-newcube .st-row {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        margin-top: 8px;
    }
    .st-newcube .st-row .st-label {
        margin: 0;
    }
    .st-newcube .st-row .st-val {
        display: none;
    }
    .st-newcube .st-chips {
        gap: 6px;
    }
    .st-newcube .st-chip {
        min-height: 40px;
        padding: 4px 8px;
        gap: 6px;
        font-size: 13px;
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
    }
    .st-newcube .st-chip small {
        display: none;
    }
    .st-newcube .st-chip .st-hico {
        --w: 14px;
        border-width: 1.3px;
    }
    .st-sw--sm {
        gap: 8px;
    }
    .st-sw--sm .st-swb {
        width: 30px;
        height: 30px;
    }
    .st-sw--sm .st-swb::after {
        inset: -4px;
    }
    .v3-plus {
        width: 30px;
        height: 30px;
    }
    .v3-plus svg {
        width: 16px;
        height: 16px;
    }
    .v3-rem--minus {
        width: 26px;
        height: 26px;
    }
    .v3-rem--minus svg {
        width: 15px;
        height: 15px;
    }
}
@media (max-width: 380px) {
    .st-cta span {
        display: none;
    }
    .st-cta {
        padding: 0 14px;
    }
    .st-bar__dims span {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .st *,
    .st *::before,
    .st *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Drucken: Druckvorlage der Rechenlogik statt 3D-Oberfläche ---------- */
@media print {
    html.st-on .st,
    .st-back3d,
    .pv-badge {
        display: none !important;
    }
    html.st-on,
    html.st-on body {
        overflow: visible !important;
        height: auto !important;
    }
    html.st-on #configurator {
        position: static !important;
        width: auto !important;
        height: auto !important;
        z-index: auto !important;
    }
}

.st-unit {
    font-weight: 400;
    color: var(--st-muted);
    font-size: 12px;
}

/* Eigenes Wandfoto */
.st-photo {
    margin-top: 14px;
}
.st-photo__pick {
    cursor: pointer;
}
.st-photo__pick svg {
    width: 20px;
    height: 20px;
}
.st-photo__dims {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.st-photo__dims label,
.st-photo__pos {
    font-size: 13px;
    color: var(--st-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.st-photo__dims span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--st-ink);
}
.st-photo__dims input {
    width: 100%;
    min-width: 0;
    flex: 1;
    min-height: 40px;
    border: 1.5px solid var(--st-line);
    border-radius: 10px;
    padding: 4px 10px;
    font: inherit;
    color: var(--st-ink);
    background: var(--st-paper);
}
.st-photo__pos {
    margin-top: 12px;
}
.st-photo__pos input {
    width: 100%;
    accent-color: var(--st-go);
}

/* AR */
.st-vb--ar {
    position: relative;
}
.st-vb--ar span {
    position: absolute;
    right: -4px;
    bottom: -4px;
    background: var(--st-go);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    padding: 3px 4px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}
.st-ar .st-gap__card {
    width: min(440px, 100%);
}
.st-ar__qr {
    width: 220px;
    height: 220px;
    margin: 4px auto 12px;
}
.st-ar__qr svg {
    width: 100%;
    height: 100%;
    display: block;
}
.st-ar__view {
    position: relative;
    height: min(46dvh, 340px);
    border-radius: 14px;
    overflow: hidden;
    background: #e9e7e4;
    margin-bottom: 12px;
}
.st-ar__go {
    width: 100%;
    justify-content: center;
    gap: 10px;
    display: inline-flex;
    align-items: center;
}
.st-ar__go svg {
    width: 22px;
    height: 22px;
}
.st-xr {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    font:
        600 15px/1.4 "Rio Inter",
        Inter,
        Arial,
        sans-serif;
}
.st-xr__hint {
    position: absolute;
    left: 12px;
    right: 12px;
    top: max(12px, env(safe-area-inset-top));
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}
.st-xr__close {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #1f1c1a;
    font: inherit;
    font-weight: 900;
}

/* Vorhandenes Regal erweitern (Umbau) */
.st-umbau {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 5;
    max-width: min(520px, calc(100% - 80px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 16px;
    border-radius: 14px;
    background: var(--st-paper);
    box-shadow: var(--st-shadow);
    border-left: 4px solid var(--st-go);
    font-size: 14px;
    line-height: 1.35;
    color: var(--st-ink-2);
}
.st-umbau__txt b {
    display: block;
    color: var(--st-ink);
    font-size: 15px;
    margin-bottom: 2px;
}
.st-umbau__acts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: none;
}
.st-umbau__acts .st-link {
    padding-top: 2px;
    font-size: 13px;
    color: var(--st-muted);
}
.st-umbau.is-umbau .st-umbau__acts {
    display: none;
}
.st-btn--go {
    background: var(--st-go);
    border-color: var(--st-go);
    color: #fff;
}
.st-btn--go:hover {
    background: var(--st-go-2);
    border-color: var(--st-go-2);
}
.st-start__umbau {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    text-align: left;
    border: 1.5px dashed var(--st-line);
    border-radius: 14px;
    background: transparent;
    color: var(--st-ink-2);
    font-size: 14px;
    line-height: 1.4;
}
.st-start__umbau:hover {
    border-color: var(--st-ink);
}
.st-start__umbau b {
    color: var(--st-ink);
}
.st-start__umbau svg {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--st-go);
}
.st-start.is-umbau #stStartExamples,
.st-start.is-umbau .st-start__umbau {
    display: none;
}
#stStartBack {
    display: block;
    margin: 8px auto 0;
}
@media (max-width: 899px) {
    .st-umbau {
        left: 10px;
        right: 60px;
        top: 10px;
        max-width: none;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
        font-size: 13px;
    }
    .st-umbau__acts {
        flex-direction: row;
        gap: 12px;
    }
    #stUmbauText {
        display: none;
    }
    .st-umbau .st-btn {
        min-height: 36px;
        padding: 4px 12px;
        font-size: 13px;
    }
    .st-umbau__txt b {
        font-size: 14px;
    }
}

.st-hinge button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.st-hinge svg {
    width: 18px;
    height: 18px;
}

/* Höhe ganzer Reihen */
.st-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.st-row2 {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.st-row2 > span {
    font-size: 13px;
    color: var(--st-ink-2);
}
.st-row2 .st-seg button {
    min-height: 34px;
    font-size: 13px;
}
.st-row2.has-del {
    grid-template-columns: 74px minmax(0, 1fr) 34px;
}
.st-rowdel {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--st-line, #e2ded8);
    border-radius: 10px;
    background: transparent;
    color: var(--st-warn);
    cursor: pointer;
    padding: 0;
}
.st-rowdel svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.st-rowdel:hover {
    background: var(--st-warn);
    color: #fff;
    border-color: var(--st-warn);
}
#stUBoden {
    margin-top: 10px;
}

/* Fußleistenausschnitt */
.st-bbc .st-gap__card {
    width: min(560px, 100%);
}
.st-bbc__grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin: 6px 0 4px;
}
.st-bbc__svg {
    width: 100%;
    height: auto;
    display: block;
    background: var(--st-wash);
    border-radius: 12px;
    stroke: none;
    fill: none;
}
.st-bbc__svg text {
    stroke: none;
    font-family: inherit;
}
.st-bbc__ctrls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.st-bbc__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
}
.st-bbc__row label {
    font-weight: 700;
    color: var(--st-ink);
    font-size: 14px;
}
.st-bbc__num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--st-muted);
    font-size: 14px;
}
.st-bbc__num input {
    width: 74px;
    min-height: 40px;
    border: 1.5px solid var(--st-line);
    border-radius: 10px;
    padding: 4px 10px;
    font: inherit;
    font-weight: 700;
    color: var(--st-ink);
    text-align: right;
    background: var(--st-paper);
}
.st-bbc__row input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    accent-color: var(--st-go);
}
.st-bbc__nav {
    gap: 10px;
}
.st-link--inline {
    padding: 0;
    font-size: inherit;
}
html.st-dlg-quiet #configurator > .dlg,
html.st-dlg-quiet #configurator > .dlgBkgBlocker {
    visibility: hidden !important;
}
@media (max-width: 899px) {
    .st-bbc__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .st-bbc__svg {
        max-width: 260px;
        margin: 0 auto;
    }
    .st-bbc__nav {
        flex-direction: column-reverse;
    }
    .st-bbc__nav .st-btn {
        width: 100%;
    }
}

.st-god {
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #b3261e;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.st-menu__ver {
    margin: 8px 0 2px;
    padding: 8px 12px 0;
    border-top: 1px solid var(--st-line);
    font-size: 12px;
    color: var(--st-muted);
}

/* ---------- 1.27: „Module konfigurieren“ (Anbauen und Fach zusammen), Menü kompakter (Wunsch RIO) ---------- */
#stBrushH {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 1.39 (Wunsch RIO „Buttons im Bereich neues Fach“): Tiefen-Knöpfe so breit wie die Höhen-Knöpfe, linksbündig */
#stBrushD {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.st-tab--mod svg {
    width: 42px;
    height: 28px;
}
.st-tab svg .st-tab__plus {
    stroke: var(--st-go);
    stroke-width: 2.6;
    stroke-linecap: round;
}
.st-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--st-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-hint .st-pluschip {
    width: 18px;
    height: 18px;
    font-size: 13px;
    vertical-align: -4px;
}
.st-newcube .st-label--head {
    font-size: 14px;
    margin: 0;
}
@media (min-width: 900px) {
    .st-tabs {
        padding: 4px 10px 0;
    }
    .st-tab {
        padding: 4px 4px 6px;
        gap: 1px;
    }
    .st-tab svg {
        width: 20px;
        height: 20px;
    }
    .st-tab--mod svg {
        width: 39px;
        height: 26px;
    }
    .st-scroll {
        padding: 0 16px 16px;
    }
    .st-field {
        padding: 9px 0;
    }
    .st-label {
        margin-bottom: 5px;
    }
    .st-note {
        margin-top: 3px;
        font-size: 12.5px;
        line-height: 1.3;
    }
    .st-why {
        margin-top: 5px;
        padding: 6px 9px;
        font-size: 12.5px;
        line-height: 1.3;
    }
    .st-newcube .st-row {
        margin-top: 7px;
    }
    .st-chip,
    .st-newcube .st-chip {
        min-height: 34px;
        padding: 3px 8px;
        font-size: 13px;
        gap: 6px;
        border-radius: 9px;
    }
    .st-chip .st-hico {
        --w: 15px;
    }
    .st-sw {
        gap: 9px;
    }
    .st-swb {
        width: 32px;
        height: 32px;
    }
    .st-swb::after {
        inset: -4px;
    }
    .st-seg {
        padding: 2px;
        gap: 2px;
        border-radius: 10px;
    }
    .st-seg button {
        min-height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }
    .st-seg--sm button,
    .st-row2 .st-seg button {
        min-height: 28px;
        font-size: 12.5px;
    }
    .st-quick .st-seg {
        margin-bottom: 4px;
    }
    .st-step {
        margin: 4px 0;
        gap: 8px;
    }
    .st-step__name {
        font-size: 13px;
    }
    .st-step__val {
        font-size: 13px;
    }
    .st-sb {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .st-tg {
        min-height: 34px;
        padding: 3px 10px 3px 6px;
        font-size: 13px;
        border-radius: 9px;
        gap: 8px;
    }
    .st-tg__k {
        width: 32px;
        height: 18px;
    }
    .st-tg__k::after {
        width: 14px;
        height: 14px;
    }
    .st-tg[aria-checked="true"] .st-tg__k::after {
        transform: translateX(14px);
    }
    .st-opt + .st-opt {
        margin-top: 8px;
    }
    .st-faces {
        gap: 6px;
        margin-top: 6px;
    }
    .st-face {
        min-height: 38px;
        padding: 3px 8px;
        font-size: 13px;
        border-radius: 9px;
        gap: 8px;
    }
    .st-face svg {
        width: 24px;
        height: 24px;
    }
    .st-btn {
        min-height: 34px;
        padding: 5px 12px;
        font-size: 13px;
        border-radius: 9px;
    }
    .st-cubehead {
        padding: 9px 0;
    }
    .st-cubehead b {
        font-size: 15px;
    }
    .st-cubeacts {
        margin-top: 10px;
    }
    .st-rows {
        gap: 4px;
    }
    .st-row2.has-del {
        grid-template-columns: 74px minmax(0, 1fr) 30px;
    }
    .st-types button {
        padding: 8px 6px 6px;
    }
    .st-types svg {
        width: 40px;
        height: 32px;
    }
    .st-roomrow {
        margin-top: 5px;
    }
    .st-sw--room .st-swb {
        width: 28px;
        height: 28px;
    }
    .st-rowdel {
        width: 30px;
        height: 30px;
    }
    #stUBoden {
        margin-top: 6px;
    }
}
@media (max-width: 899px) {
    .st-tab--mod svg {
        width: 33px;
        height: 22px;
    }
    .st-hint {
        display: none;
    }
}
.st-tab--mod .st-tabdot {
    display: none;
}
@media (max-width: 899px) {
    .st-newcube #stBrushLpRow {
        display: block;
    }
    .st-newcube #stBrushLpRow[hidden] {
        display: none;
    }
}
@media (max-width: 899px) {
    .st-newcube #stBrushPlateRow .st-label {
        margin: 0;
    }
}
#stCloseup[aria-pressed="false"] {
    color: var(--st-ink);
}
#stCloseup[aria-pressed="true"] {
    background: var(--st-ink);
    color: #fff;
}

/* ---------- 1.29: ein Menü, drei Abschnitte untereinander (Wunsch RIO) ---------- */
.st-tabs {
    display: none !important;
}
.st-acc {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid var(--st-line);
    background: var(--st-paper);
    color: var(--st-ink);
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.st-acc + .st-pane + .st-acc,
.st-pane + .st-acc {
    border-top: 1px solid var(--st-line);
}
.st-acc svg {
    width: 24px;
    height: 20px;
    flex: none;
}
.st-acc[data-acc="build"] svg {
    width: 34px;
}
.st-acc span {
    flex: 1;
}
.st-acc__chev {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: -4px 4px 0 0;
    transition: transform 0.15s;
}
.st-acc[aria-expanded="false"] .st-acc__chev {
    transform: rotate(-45deg);
    margin-top: 0;
}
.st-acc:hover {
    background: var(--st-wash);
}
.st-pane {
    padding-bottom: 6px;
}
#stCubeEmpty svg {
    display: none;
}
#stCubeEmpty p {
    margin: 10px 0 4px;
    font-size: 13px;
    color: var(--st-muted);
}
@media (max-width: 899px) {
    .st-acc {
        width: calc(100% + 28px);
        margin: 0 -14px;
        padding: 10px 14px;
    }
    .st.is-collapsed .st-panel {
        height: 40px;
    }
}
.st-cubehead .st-label {
    display: none;
}
.st .st-acc,
.st .st-acc span {
    font-weight: 700;
}

/* ---------- 1.32: Menü-Reiter dunkel, Schrift und Piktogramme weiß (Wunsch RIO) ---------- */
.st .st-acc {
    background: #333;
    color: #fff;
    border-bottom-color: #1f1f1f;
}
.st .st-acc + .st-pane + .st-acc,
.st .st-pane + .st-acc {
    border-top-color: #1f1f1f;
}
.st .st-acc:hover {
    background: #474747;
}
.st .st-acc:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
.st .st-acc svg {
    fill: none;
    stroke: #fff;
}
.st .st-acc svg .st-tab__plus {
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
}

/* 1.34 Handy (Wunsch RIO): Menü tiefer, mehr Platz für das Regal; Reiter flacher */
@media (max-width: 899px) {
    .st .st-acc {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 14px;
    }
}

/* 1.35 Handy (Wunsch RIO): sind alle Abschnitte zu, schrumpft das Menü auf die Reiter, das Regal bekommt den Platz */
@media (max-width: 899px) {
    .st:not(.is-collapsed) .st-panel {
        height: auto;
        max-height: min(38dvh, 340px);
    }
    .st:not(.is-collapsed) .st-scroll {
        min-height: 0;
    }
}

/* 1.36 (Wunsch RIO): Entscheidungshilfe Ausgleichsboden oder Fußleistenausschnitt */

/* ===== Einbettung in die Craft-Seite (ab 1.37) =====
   Kopf und Logo liefert die Seite. Rueckgaengig, Wiederholen und Menue schweben oben links im Regalbild. */
.st-logo,
.st-hd__title {
    display: none !important;
}
#studio.st {
    --st-hd: 0px;
}
#studio .st-hd {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    background: transparent;
    border: 0;
    padding: 0;
    height: auto;
    gap: 6px;
}
#studio .st-hd__tools {
    margin-left: 0;
    gap: 6px;
}
#studio .st-hd .st-ib {
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06);
}
#studio .st-hd .st-ib:hover {
    background: #fff;
}
#studio .st-hd .st-ib:disabled {
    background: rgba(255, 255, 255, 0.75);
}
#studio .st-menu {
    justify-content: flex-start;
    padding: 62px 12px 12px;
}
#studio .st-bar {
    border-bottom: 1px solid var(--st-line);
}
#studio .st-cta {
    box-shadow: none;
}

/* ===== 1.38 (Wunsch RIO) ===== */
/* Modulgröße verändern: Erklärung zweizeilig rechts neben dem Knopf, Rückgängig gleich darunter */
.st-gaprow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.st-gaprow + .st-gaprow {
    margin-top: 8px;
}
.st-gaprow .st-btn {
    flex: none;
    white-space: nowrap;
}
.st-gaprow .st-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.st-gaprow .st-note {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.35;
}
.st-gap__grid button[hidden] {
    display: none;
}
#stGapNone {
    margin: 4px 0 0;
}
/* LP-Fach-Schalter im neuen Fach */
.st-newcube .st-lpfach {
    margin-top: 8px;
}
.st-toast.is-on {
    pointer-events: auto;
    cursor: pointer;
}
@media (max-width: 899px) {
    /* Regalart: kleinere Piktogramme, weniger Weißraum */
    .st-types {
        gap: 6px;
    }
    .st-types button {
        padding: 5px 4px 4px;
        gap: 1px;
        font-size: 12px;
        border-radius: 10px;
    }
    .st-types svg {
        width: 34px;
        height: 26px;
    }
    /* Farbe für das ganze Regal: Text zweizeilig links, kleinere Farbknöpfe rechts */
    .st-allmat {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }
    .st-allmat .st-label {
        margin: 0;
        line-height: 1.25;
    }
    .st-allmat .st-sw {
        gap: 8px;
    }
    .st-allmat .st-swb {
        width: 30px;
        height: 30px;
    }
    .st-allmat .st-swb::after {
        inset: -4px;
    }
    .st-newcube .st-lpfach {
        display: block;
    }
    .st-newcube .st-lpfach[hidden] {
        display: none;
    }
}
/* 1.45: Hinweis unter dem Preis, wenn eine Korpusfarbe nicht mehr lieferbar ist */
.st-bar__price small.is-warn {
    color: #b3261e;
    font-weight: 600;
}
#stRetired a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ===== 1.47 (Wunsch RIO „Info-Boxen“, „Info-Box Position“) =====
   Alle Hinweise (Umbau, kurze Meldungen) in einer Spalte links unter der Werkzeugleiste, untereinander statt
   übereinander. Gestaltung wie die Umbau-Box: weiß, grüner Rand links, dunkle Schrift; Warnungen orange.
   Hochkant, halb so breit wie bisher (260 px). */
.st-infos {
    position: absolute;
    left: 12px;
    top: 66px;
    z-index: 4;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.st-infos > * {
    pointer-events: auto;
}
.st-infos .st-umbau,
.st-infos .st-toast {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px 12px 14px;
    border-radius: 14px;
    background: var(--st-paper);
    color: var(--st-ink-2);
    border-left: 4px solid var(--st-go);
    box-shadow: var(--st-shadow);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}
.st-infos .st-umbau {
    display: block;
}
.st-infos .st-umbau[hidden] {
    display: none;
}
.st-infos .st-umbau__acts {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.st-infos .st-toast {
    transform: translateX(-8px);
    color: var(--st-ink);
}
.st-infos .st-toast:not(.is-on) {
    visibility: hidden;
    position: absolute;
}
.st-infos .st-toast.is-on {
    transform: none;
}
.st-infos .st-toast.is-warn {
    border-left-color: var(--st-warn);
}
@media (max-width: 899px) {
    .st-infos {
        left: 10px;
        right: 60px;
        top: 62px;
        width: auto;
        gap: 8px;
    }
    .st-infos .st-umbau,
    .st-infos .st-toast {
        padding: 10px 12px;
        font-size: 13px;
    }
    .st-infos .st-umbau__acts {
        margin-top: 6px;
    }
}

/* ===== 1.50 (Wunsch RIO „Aubergine order“): rote Info-Box bei ausgelaufener Korpusfarbe ===== */
.st-infos .st-retbox {
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fdecec;
    color: #5c1414;
    border: 1px solid #f3b7b7;
    border-left: 4px solid #c62828;
    box-shadow: var(--st-shadow);
    font-size: 14px;
    line-height: 1.4;
}
.st-infos .st-retbox[hidden] {
    display: none;
}
.st-infos .st-retbox b {
    color: #b71c1c;
}
.st-infos .st-retbox a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}
@media (max-width: 899px) {
    .st-infos .st-retbox {
        padding: 10px 12px;
        font-size: 13px;
    }
}
.st-infos .st-retbox b span {
    font-weight: 700;
}
.st-infos .st-retbox__contact a {
    white-space: nowrap;
}
