
        /* --- CSS STYLING --- */
        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        body {
            margin: 0;
            overflow: hidden;
            background-color: white;
            font-family: 'Wix Madefor Display', sans-serif;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        a { color: #000; text-decoration: underline; }
        a:hover { color: #555; }

        #canvas-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
        #ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }

        /* Logo Link */
        #logo-link { position: absolute; top: 20px; left: 20px; pointer-events: auto; z-index: 20; }
        /* gleiche Grösse und Lage wie Logo und Navigation der Website: 50 px, 20 px vom Rand, Abstand .42em plus Spalte (28.09.26) */
        #logo-link { display: flex; align-items: baseline; gap: calc(.42em + 10px); font-size: 50px; line-height: 1; color: #000; text-decoration: none; white-space: nowrap; }
        #logo-link .kw { font-weight: 800; letter-spacing: -.025em; }
        #logo-link .kt { font-weight: 400; }
        #header-controls .action-btn { font-weight: 500; font-size: 17px; height: 46px; box-shadow: none; }
        #btn-back { gap: 8px; background: #fff; border: 1px solid #dcdedb; }
        #btn-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
        #header-controls { top: 22px !important; }
        #logo-link .kb { display: none; }
        @media (min-width: 1400px) { #logo-link .kb { display: inline; } }
        @media (max-width: 979px) { #logo-link .kt { display: none; } }
        @media (max-width: 767px) { #logo-link { font-size: 32px; top: 16px; left: 16px; } #header-controls { top: 11px !important; right: 16px; } }
        @media (max-width: 760px) { #btn-back span { display: none; } #btn-back { min-width: 0; width: 46px; padding: 0; } }

        /* Buttons Styling */
        .action-btn {
            border: none; padding: 0 20px; height: 44px;
            border-radius: 30px; font-size: 16px;
            font-family: 'Wix Madefor Display', sans-serif; font-weight: 700;
            cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            display: flex; align-items: center; justify-content: center;
            pointer-events: auto; transition: transform 0.1s; min-width: 90px;
            background-color: #fff; color: #333;
        }
        .action-btn:active { transform: scale(0.95); }

        #btn-sensor {
            width: 44px; height: 44px; padding: 0; min-width: 0;
            border-radius: 50%; background-color: #fff; color: #333;
            font-family: 'Wix Madefor Display', sans-serif; font-size: 20px; font-weight: 700;
        }
        #btn-sensor svg { display: block; }
        #btn-sensor.active { background-color: #999; color: white; }
        #btn-sensor.hold { background-color: #333; color: white; }

        /* Sprechblase der Figur */
        #speech-bubble {
            position: absolute; display: none; max-width: min(360px, 82vw);
            background: #fff; color: #222;
            border: 1px solid #ddd; border-radius: 16px;
            padding: 12px 18px; font-size: 19px; line-height: 1.45;
            font-weight: 400;
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
            pointer-events: none; z-index: 50;
            opacity: 0; transition: opacity 0.35s;
        }
        #speech-bubble.show { opacity: 1; }
        #speech-bubble::after {
            content: ''; position: absolute; bottom: -9px; left: var(--tail-left, 26px);
            width: 0; height: 0;
            border-left: 8px solid transparent; border-right: 8px solid transparent;
            border-top: 9px solid #fff;
        }

        /* Massstab / Person / Masse Buttons */
        #btn-scale, #btn-dims, #btn-shuffle {
            width: 44px; height: 44px; padding: 0; min-width: 0;
            border-radius: 50%; background-color: #fff; color: #333;
        }
        #btn-scale svg, #btn-shuffle svg { display: block; }
        /* kurze Drehung als Rueckmeldung beim Klick */
        #btn-shuffle svg { transition: transform 0.5s cubic-bezier(.3,.9,.3,1); }
        #btn-shuffle.spin svg { transform: rotate(360deg); }
        #code-pill { display: flex; align-items: center; height: 44px; border-radius: 30px; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.15); pointer-events: auto; }
        #code-pill #btn-shuffle { box-shadow: none; background: transparent; }
        #code-copy { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 2px; border: 0; background: none; cursor: pointer; color: #333; font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; border-radius: 0 30px 30px 0; }
        #code-copy:hover #code-txt { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #FFDE00; text-underline-offset: .25em; }
        #code-copy .cc-ic { position: relative; width: 18px; height: 18px; }
        #code-copy svg { position: absolute; inset: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s ease, transform .25s ease; }
        #code-copy .i-ok { opacity: 0; transform: scale(.6); stroke-width: 2.2; }
        #code-copy.ok .i-copy { opacity: 0; transform: scale(.6); }
        #code-copy.ok .i-ok { opacity: 1; transform: none; }
        #btn-dims { font-size: 21px; font-weight: 700; }
        #btn-scale.active, #btn-dims.active { background-color: #333; color: #fff; }

        /* Bottom Bar */
        #bottom-bar {
            position: absolute; bottom: 20px; left: 20px; right: 20px;
            display: flex; justify-content: space-between; align-items: flex-end;
            pointer-events: none;
        }
        #left-controls, #right-controls { pointer-events: auto; display: flex; align-items: center; gap: 10px; height: 44px; }

        /* Set-Auswahl */
        #set-bar {
            position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
            display: flex; gap: 8px; pointer-events: auto;
            flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px);
        }
        .set-btn {
            border: none; height: 40px; padding: 0 14px;
            border-radius: 30px; font-size: 14px;
            font-family: 'Wix Madefor Display', sans-serif; font-weight: 700;
            cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.12);
            background-color: #fff; color: #333;
            transition: transform 0.1s, background-color 0.2s;
            white-space: nowrap;
        }
        .set-btn:active { transform: scale(0.95); }
        .set-btn.active { background-color: #000; color: #fff; }

        /* Kompakte Set-Auswahl (schmale Browser): ein Button, Menue klappt nach oben */
        #set-compact {
            position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%);
            display: none; flex-direction: column; align-items: center; gap: 8px;
            pointer-events: auto;
        }
        #set-menu { display: none; flex-direction: column; gap: 8px; }
        #set-menu.open { display: flex; }
        #set-menu .set-btn { min-width: 130px; }
        #set-compact-btn { min-width: 130px; }
        #set-compact-btn .chev { font-size: 11px; margin-left: 6px; }
        .cr-note { font-size: 12px; color: #999; margin: 4px 0 0; }
        /* auch bei wenig Höhe (iPhone Duo offen, Telefon quer): sonst liegen die Grössen über der Komposition */
        @media (max-width: 760px), (max-width: 1099px) and (max-height: 650px) {
            #set-bar { display: none; }
            #set-compact { display: flex; }
            .set-btn { padding: 0 11px; font-size: 13px; }
        }

        @media (min-width: 761px) { #set-compact { bottom: 20px; } }

        /* Header / Buy */
        #header-controls { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; pointer-events: auto; }
        #btn-order { background-color: #FFDE00; color: #000; }
        #btn-back { text-decoration: none; }

        /* Overlays */
        .overlay-container {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 2000;
            display: none; justify-content: center; align-items: center;
            backdrop-filter: blur(5px); pointer-events: auto;
        }
        .modal-content {
            background: white; width: 92%; max-width: 660px; max-height: 86vh;
            padding: 30px; border-radius: 15px; overflow-y: auto;
            position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            font-size: 17px; line-height: 1.55; color: #333;
        }
        .modal-content h2 { margin-top: 0; margin-bottom: 6px; font-size: 26px; color: #111; }
        .modal-content h3 { font-size: 19px; margin-top: 24px; margin-bottom: 8px; color: #444; }
        .close-btn {
            position: sticky; top: -10px; float: right; margin-bottom: -40px;
            background: white; border-radius: 50%; width: 40px; height: 40px;
            border: none; font-size: 28px; cursor: pointer; color: #888;
            line-height: 1; z-index: 10;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .close-btn:hover { color: #000; background: #f0f0f0; }

        /* Bestellformular */
        .order-intro { font-size: 16px; color: #666; margin: 0 0 6px; }
        .set-card {
            display: flex; align-items: flex-start; gap: 10px;
            border: 1.5px solid #e4e4e4; border-radius: 12px;
            padding: 10px 14px; margin-bottom: 8px; cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
        }
        .set-card:hover { border-color: #bbb; }
        .set-card.selected { border-color: #333; background: #fafafa; }
        .set-card input { margin-top: 4px; }
        .set-card .set-name { font-weight: 700; }
        .set-card .set-info { font-size: 15px; color: #666; }
        .set-card .set-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
        #order-form input[type="text"], #order-form input[type="email"], #order-form input[type="tel"] {
            width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px;
            font-family: inherit; font-size: 16px; margin: 3px 0 10px; background: #fff;
        }
        #order-form select { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 16px; margin: 3px 0 4px; background: #fff; color: inherit; }
        #order-form input:focus, #order-form select:focus { outline: none; border-color: #999; }
        .form-row2 { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
        .form-row-str { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
        .form-note { font-size: 15px; color: #888; margin: 2px 0 8px; }
        .check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 16px; margin: 12px 0; cursor: pointer; }
        .check-row input { margin-top: 3px; }
        .check-row.strong { font-weight: 700; }
        #order-total { font-weight: 700; margin: 12px 0 2px; font-size: 19px; }
        #order-total .total-note { font-weight: 400; font-size: 15px; color: #888; }
        .order-submit {
            width: 100%; background: #333; color: #fff; margin-top: 14px;
            border-radius: 30px; height: 52px; font-size: 18px;
        }
        .order-submit:disabled { background: #c2c2c2; cursor: not-allowed; transform: none !important; }
        #order-thanks { text-align: left; }
        #order-thanks h2 { margin-bottom: 14px; }
        /* Seitenleiste Bestellen */
        /* Seitenleiste Bestellen wie «Für mich»: die gelbe Fläche liegt hinten, der Konfigurator rückt nach links und wirft den Schatten, oben und unten bleibt der gelbe Rahmen (28.09.26) */
        :root { --obw: min(520px, calc(100vw - 56px)); --obm: 20px; }
        body { transition: background-color 0s 1s; }
        body.order-open { background-color: #FFDE00; transition: none; }
        #overlay-buy { display: block !important; position: fixed; inset: 0; z-index: 0; background: none; backdrop-filter: none; pointer-events: none; visibility: hidden; transition: visibility 0s 1s; }
        body.order-open #overlay-buy { visibility: visible; transition: none; }
        #overlay-buy .modal-content { position: absolute; top: 0; right: 0; bottom: 0; width: var(--obw); max-width: none; max-height: none; border-radius: 0; background: #FFDE00; color: #000; padding: calc(var(--obm) + 22px) 32px calc(var(--obm) + 60px) 36px; box-shadow: none; overscroll-behavior: contain; pointer-events: auto; }
        #overlay-buy .modal-content > * { opacity: 0; transform: translateX(40px); transition: opacity .5s ease, transform 1s cubic-bezier(.77,0,.18,1); }
        body.order-open #overlay-buy .modal-content > * { opacity: 1; transform: none; transition: opacity .6s ease .35s, transform 1s cubic-bezier(.19,1,.22,1) .25s; }
        /* bei offener Bestellung rückt die Kamera zurück und die Mitte wandert nach links, so passt das Set ganz in die Hauptfläche (28.09.26) */
        #canvas-container { z-index: 1; clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.77,0,.18,1); }
        body.order-open #canvas-container { clip-path: inset(var(--obm) var(--obw) var(--obm) 0); }
        #ui-layer { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.77,0,.18,1); }
        body.order-open #ui-layer { clip-path: inset(var(--obm) var(--obw) var(--obm) 0); }
        #logo-link { transition: top 1s cubic-bezier(.77,0,.18,1); }
        body.order-open #logo-link { top: calc(var(--obm) * 2); }
        .ob-shadow { position: fixed; top: var(--obm); bottom: var(--obm); left: -40px; right: 0; z-index: 9; pointer-events: none; box-shadow: 0 0 70px rgba(0,0,0,.26), 0 0 14px rgba(0,0,0,.1); opacity: 0; transition: opacity .5s ease, right 1s cubic-bezier(.77,0,.18,1); }
        body.order-open .ob-shadow { opacity: 1; right: var(--obw); }
        .ob-shield { position: fixed; top: 0; bottom: 0; left: 0; right: var(--obw); z-index: 11; display: none; cursor: pointer; }
        body.order-open .ob-shield { display: block; }
        body.order-open #header-controls, body.order-open #set-bar, body.order-open #set-compact, body.order-open #bottom-bar { opacity: 0; pointer-events: none; }
        #header-controls, #set-bar, #set-compact, #bottom-bar { transition: opacity .4s ease; }
        @media (max-width: 1599px) { body.order-open #logo-link .kb { display: none; } }
        @media (max-width: 1199px) { body.order-open #logo-link .kt { display: none; } }
        .ob-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 22px; }
        .ob-t { font-size: 50px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
        .ob-close { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; font-size: 20px; line-height: 1.1; cursor: pointer; color: #000; }
        .ob-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
        .ob-close:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
        /* schmal: die Leiste schiebt sich wie auf der Website darüber */
        @media (max-width: 767px) {
            :root { --obm: 16px; }
            body.order-open { background-color: #fff; }
            #overlay-buy { z-index: 2000; }
            #overlay-buy .modal-content { padding: 26px 20px 60px 22px; box-shadow: -20px 0 50px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .8s cubic-bezier(.77,0,.18,1); }
            body.order-open #overlay-buy .modal-content { transform: none; }
            body.order-open #canvas-container, body.order-open #ui-layer { transform: none; clip-path: inset(0 0 0 0); }
            body.order-open #logo-link { top: var(--obm); }
            .ob-shadow { display: none; }
            .ob-t { font-size: 40px; }
            .ob-head { flex-wrap: wrap; row-gap: 10px; }
        }
        #overlay-buy .modal-content h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: #000; margin: 0 0 4px; }
        #overlay-buy .modal-content h2 span { font-weight: 400; }
        .ob-comp { font-size: 15px; margin: 0 0 10px; color: rgba(0,0,0,.65); }
        #overlay-buy .order-intro { color: rgba(0,0,0,.75); font-size: 16px; }
        #overlay-buy .cr-note { color: rgba(0,0,0,.45); }
        #order-form { counter-reset: ob; }
        #overlay-buy .modal-content h3 { counter-increment: ob; color: #000; font-size: 20px; font-weight: 400; border-top: 1px solid rgba(0,0,0,.25); padding-top: 16px; margin-top: 26px; }
        #overlay-buy .modal-content h3::before { content: "0" counter(ob); opacity: .4; margin-right: .45em; }
        #overlay-buy .set-card { background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.14); border-radius: 6px; }
        #overlay-buy .set-card:hover { border-color: rgba(0,0,0,.45); }
        #overlay-buy .set-card.selected { background: #fff; border-color: #000; }
        #overlay-buy .set-card .set-info { color: rgba(0,0,0,.6); }
        #overlay-buy #order-form input[type="text"], #overlay-buy #order-form input[type="email"], #overlay-buy #order-form input[type="tel"] { border: 1px solid rgba(0,0,0,.18); border-radius: 6px; background: #fff; }
        #overlay-buy #order-form select { border: 1px solid rgba(0,0,0,.18); border-radius: 6px; background: #fff; }
        #overlay-buy #order-form input:focus, #overlay-buy #order-form select:focus { border-color: #000; }
        #overlay-buy .form-note { color: rgba(0,0,0,.55); }
        #overlay-buy #order-total { font-size: 21px; font-weight: 800; border-top: 1px solid #000; padding-top: 10px; margin-top: 14px; }
        #overlay-buy .order-submit { background: #000; color: #FFDE00; box-shadow: none; font-weight: 500; }
        #overlay-buy .order-submit:disabled { background: rgba(0,0,0,.22); color: rgba(0,0,0,.5); }
        #overlay-buy input[type="checkbox"], #overlay-buy input[type="radio"] { accent-color: #000; }

        /* Zeiger als Lampe: kleiner Leuchten-Cursor ueber der Szene */
        body.lamp-cursor #canvas-container,
        body.lamp-cursor #ui-layer { cursor: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'>\
<g fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' opacity='.9'>\
<circle cx='15' cy='15' r='4.4'/><path d='M15 3.4v3.6M15 23v3.6M3.4 15h3.6M23 15h3.6\
M6.8 6.8l2.6 2.6M20.6 20.6l2.6 2.6M23.2 6.8l-2.6 2.6M9.4 20.6l-2.6 2.6'/></g>\
<g fill='none' stroke='%23222222' stroke-width='1.5' stroke-linecap='round'>\
<circle cx='15' cy='15' r='4.4' fill='%23222222' fill-opacity='.12'/>\
<path d='M15 3.4v3.6M15 23v3.6M3.4 15h3.6M23 15h3.6\
M6.8 6.8l2.6 2.6M20.6 20.6l2.6 2.6M23.2 6.8l-2.6 2.6M9.4 20.6l-2.6 2.6'/></g></svg>") 15 15, crosshair; }
        body.lamp-cursor .action-btn,
        body.lamp-cursor .set-btn { cursor: pointer; }

        /* Hinweis: Zeiger ist die Lampe */
        #lamp-hint {
            position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
            background: #fff; border: 1px solid #e2e2e2; border-radius: 12px;
            padding: 9px 16px; font-size: 14px; color: #333; white-space: nowrap;
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
            opacity: 0; pointer-events: none; z-index: 45; transition: opacity 0.35s;
        }
        #lamp-hint.show { opacity: 1; }

        /* Hinweis: Werk drehen */
        #rot-hint {
            position: absolute; display: none; pointer-events: none; z-index: 40;
            background: #fff; border: 1px solid #e2e2e2; border-radius: 12px;
            padding: 8px 15px; font-size: 14px; line-height: 1.35; text-align: center;
            color: #333; box-shadow: 0 4px 15px rgba(0,0,0,0.12);
            opacity: 0; transition: opacity 0.4s;
            transform: translateX(-50%);
        }
        #rot-hint.show { opacity: 1; animation: hintFloat 2.2s ease-in-out infinite; }
        @keyframes hintFloat {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-6px); }
        }

        #overlay-loading {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.8); color: white; padding: 20px; border-radius: 10px;
            text-align: center; pointer-events: none; z-index: 3000; font-family: 'Wix Madefor Display', sans-serif;
        }

        #nogl { position: fixed; inset: 0; z-index: 9999; background: #fff; color: #000; overflow-y: auto; display: none; font-family: "Wix Madefor Display", system-ui, sans-serif; }
        body.no-webgl #nogl:not([hidden]) { display: block; }
        body.no-webgl #ui-layer, body.no-webgl #canvas-container { display: none !important; }
        #nogl .ng-in { max-width: 760px; padding: 20px 20px 80px; }
        #nogl .ng-logo { display: inline-block; font-size: 50px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: #000; text-decoration: none; }
        #nogl h2 { font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 120px 0 22px; }
        #nogl p { font-size: 20px; line-height: 1.4; margin: 0 0 18px; }
        #nogl ul { margin: 0 0 26px; padding: 0; list-style: none; font-size: 18px; line-height: 1.4; }
        #nogl li { padding: 12px 0; border-top: 1px solid #e3e5e2; }
        #nogl li:last-child { border-bottom: 1px solid #e3e5e2; }
        #nogl li b { font-weight: 700; }
        #nogl .ng-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
        #nogl .ng-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.1; padding: 13px 20px 12px; border-radius: 40px; border: 1px solid #000; color: #000; text-decoration: none; background: #fff; }
        #nogl .ng-btn.y { background: #FFDE00; border-color: #FFDE00; }
        #nogl .ng-small { margin-top: 34px; font-size: 15px; color: #6f7471; }
        @media (max-width: 767px) { #nogl .ng-logo { font-size: 36px; } #nogl h2 { font-size: 32px; margin-top: 70px; } #nogl p { font-size: 18px; } }
