/* Lofttüren Konfigurator 3D · Sand / Stahl / Gold · Space Grotesk */
.ltk{
	--sand:#ECE6DB;--sand-2:#E3DCCE;--sand-3:#D6CDBB;--white:#FBF9F5;
	--steel:#23272B;--steel-2:#3A4046;--steel-3:#7A8187;--line:rgba(35,39,43,.12);
	--gold:#B8925A;--gold-2:#D4B27C;--ok:#3f7d5a;--err:#a8402f;
	--r:14px;--sheet:440px;
	font-family:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;color:var(--steel);background:var(--sand);
	display:grid;grid-template-rows:auto auto minmax(0,1fr);height:calc(100vh - var(--ltk-offset,0px));min-height:640px;
	font-size:15px;line-height:1.45;box-sizing:border-box;overflow:hidden;position:relative;
}
.ltk *,.ltk *::before,.ltk *::after{box-sizing:border-box}
.ltk button{font-family:inherit;cursor:pointer}
.ltk input,.ltk textarea{font-family:inherit;font-size:15px;color:var(--steel)}
.ltk svg{display:block}
.ltk h3{font-size:22px;font-weight:600;letter-spacing:-.01em;margin:0 0 6px}
.ltk h4{font-size:13px;font-weight:600;color:var(--steel-3);margin:22px 0 8px;letter-spacing:.02em}
.ltk-lead{margin:0 0 14px;color:var(--steel-2);font-size:14px;max-width:60ch}
.ltk-note{font-size:13px;color:var(--steel-3);margin:12px 0 0}

/* ---------- Header ---------- */
.ltk-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;background:var(--white);border-bottom:1px solid var(--line)}
.ltk-logo{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:var(--steel)}
.ltk-logo svg{height:34px;width:auto}
.ltk-logo__a{font:700 34px 'Space Grotesk',sans-serif;fill:var(--steel);letter-spacing:-.03em}
.ltk-logo__b{font:400 34px 'Space Grotesk',sans-serif;fill:var(--steel);letter-spacing:.06em}
.ltk-logo__bar{fill:var(--gold)}
.ltk-logo small{font-size:11px;color:var(--steel-3);letter-spacing:.08em;padding-left:2px}
.ltk-head__cta{display:flex;align-items:center;gap:12px}
.ltk-head__tag{font-size:13px;color:var(--steel-3)}
@media (max-width:640px){.ltk-head__tag{display:none}.ltk-head{padding:10px 14px}.ltk-logo svg{height:28px}}

/* ---------- Buttons ---------- */
.ltk-btn{display:inline-flex;align-items:center;gap:8px;border:1.5px solid transparent;border-radius:10px;padding:11px 18px;font-size:15px;font-weight:600;transition:transform .12s,background .15s,border-color .15s}
.ltk-btn:active{transform:translateY(1px)}
.ltk-btn--gold{background:var(--gold);color:var(--white)}.ltk-btn--gold:hover{background:#a8834f}
.ltk-btn--dark{background:var(--steel);color:var(--white)}.ltk-btn--dark:hover{background:var(--steel-2)}
.ltk-btn--ghost{background:transparent;border-color:var(--line);color:var(--steel)}.ltk-btn--ghost:hover{border-color:var(--steel)}
.ltk-btn--sm{padding:8px 14px;font-size:14px}.ltk-btn--lg{padding:14px 24px;font-size:16px;width:100%;justify-content:center}
.ltk-btn:disabled{opacity:.45;cursor:default}
.ltk-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}

/* ---------- Produkttypen ---------- */
.ltk-types{display:flex;gap:4px;padding:8px 14px;background:var(--white);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ltk-types::-webkit-scrollbar{display:none}
.ltk-type{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:106px;padding:10px 12px 9px;border:0;background:transparent;border-radius:10px;color:var(--steel-2);font-size:13px;position:relative}
.ltk-type svg{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ltk-type:hover{background:var(--sand)}
.ltk-type.is-on{color:var(--steel);font-weight:600}
.ltk-type.is-on::after{content:"";position:absolute;left:18px;right:18px;bottom:2px;height:2.5px;background:var(--gold);border-radius:2px}

/* ---------- Main ---------- */
.ltk-main{display:grid;grid-template-columns:minmax(0,1fr) var(--sheet);min-height:0}
.ltk-stage{position:relative;min-height:0;background:radial-gradient(120% 80% at 50% 30%,#f2ede4 0%,var(--sand) 60%,var(--sand-2) 100%)}
.ltk-canvas{position:absolute;inset:0}
.ltk-canvas canvas{width:100%!important;height:100%!important;display:block;touch-action:none;outline:none}
.ltk-dims{position:absolute;inset:0;pointer-events:none;display:none}
.ltk-dims line{stroke:var(--steel);stroke-width:1.5}
.ltk-dims circle{fill:var(--gold)}
.ltk-dims text{font:600 13px 'Space Grotesk',sans-serif;fill:var(--steel);text-anchor:middle;paint-order:stroke;stroke:var(--sand);stroke-width:4px;stroke-linejoin:round}
.ltk-stage__hint{position:absolute;left:18px;top:14px;font-size:12px;color:var(--steel-3);pointer-events:none}
.ltk-stage__tools{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px}
.ltk-tool{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:0;color:var(--steel-3);font-size:11px;width:76px}
.ltk-tool i{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--white);box-shadow:0 6px 18px -8px rgba(35,39,43,.4);border:1.5px solid transparent;transition:border-color .15s,color .15s}
.ltk-tool i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ltk-tool i b{font-size:14px}
.ltk-tool:hover i{border-color:var(--gold-2)}
.ltk-tool.is-on{color:var(--gold)}.ltk-tool.is-on i{border-color:var(--gold);color:var(--gold)}
.ltk-pricebar{position:absolute;left:16px;right:110px;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--steel);color:var(--white);border-radius:12px;padding:12px 16px;box-shadow:0 18px 40px -18px rgba(0,0,0,.5)}
.ltk-pricebar b{font-size:24px;font-weight:700;letter-spacing:-.02em;display:block;line-height:1.1}
.ltk-pricebar span{display:block;font-size:12px;color:#aeb5bb;margin-top:3px}
.ltk-pricebar em{display:inline-block;font-style:normal;font-size:11px;color:var(--gold-2);background:rgba(212,178,124,.16);padding:2px 8px;border-radius:99px;margin-top:6px}
.ltk-pricebar small{display:block;font-size:12px;color:var(--gold-2);margin-top:4px}
.ltk-pricebar__btns{display:flex;gap:8px;flex-shrink:0}
.ltk-pricebar .ltk-btn--ghost{color:var(--white);border-color:rgba(255,255,255,.25)}

/* ---------- Sheet ---------- */
.ltk-sheet{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;background:var(--white);border-left:1px solid var(--line);min-height:0}
.ltk-sheet__grip{display:none}
.ltk-tabs{display:flex;gap:2px;padding:10px 12px 0;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.ltk-tabs::-webkit-scrollbar{display:none}
.ltk-tab{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:9px 12px 11px;border:0;background:transparent;font-size:13.5px;color:var(--steel-3);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.ltk-tab i{font-style:normal;font-size:11px;width:18px;height:18px;border-radius:50%;background:var(--sand-2);display:grid;place-items:center;color:var(--steel-2)}
.ltk-tab.is-on{color:var(--steel);font-weight:600;border-bottom-color:var(--gold)}.ltk-tab.is-on i{background:var(--gold);color:var(--white)}
.ltk-tabbody{overflow-y:auto;padding:20px 22px 28px;overscroll-behavior:contain}
.ltk-sheet__nav{display:flex;justify-content:space-between;gap:10px;padding:12px 22px;border-top:1px solid var(--line);background:var(--white)}

/* ---------- Bausteine ---------- */
.ltk-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ltk-grid--3{grid-template-columns:repeat(2,1fr)}
.ltk-grid--5{grid-template-columns:repeat(4,1fr)}
.ltk-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:14px 14px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--white);transition:border-color .15s,box-shadow .15s}
.ltk-card:hover{border-color:var(--steel-3)}
.ltk-card.is-on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,146,90,.18)}
.ltk-card__icon{color:var(--steel);height:34px;display:flex;align-items:center}
.ltk-card__icon svg{width:64px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ltk-card__t b{display:block;font-size:14.5px;font-weight:600;line-height:1.25}
.ltk-card__t small{display:block;font-size:12.5px;color:var(--steel-3);margin-top:3px;line-height:1.35}
.ltk-card em{font-style:normal;font-size:12.5px;color:var(--gold);font-weight:600;margin-top:auto}
.ltk-card__chk{position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;background:var(--gold);color:var(--white);display:grid;place-items:center;opacity:0;transform:scale(.6);transition:opacity .15s,transform .15s}
.ltk-card__chk svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:3}
.ltk-card.is-on .ltk-card__chk{opacity:1;transform:scale(1)}
.ltk-brand{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--steel-3);border:1px solid var(--line);padding:3px 8px;border-radius:99px}
.ltk-chips{display:flex;flex-wrap:wrap;gap:8px}
.ltk-chip{padding:9px 14px;border-radius:99px;border:1.5px solid var(--line);background:var(--white);font-size:14px;color:var(--steel-2);transition:all .15s}
.ltk-chip:hover{border-color:var(--steel-3)}
.ltk-chip.is-on{background:var(--steel);color:var(--white);border-color:var(--steel)}
.ltk-chip--sm{padding:6px 11px;font-size:13px}
.ltk-specs{margin-top:18px;padding:14px 16px;background:var(--sand);border-radius:12px;font-size:13.5px}
.ltk-specs p{margin:0 0 10px;color:var(--steel-2)}
.ltk-specs dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
.ltk-specs dl div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dashed var(--line);padding:3px 0}
.ltk-specs dt{color:var(--steel-3)}.ltk-specs dd{margin:0;font-weight:600;text-align:right}
.ltk-range{margin:12px 0 16px}
.ltk-range label{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:14px;font-weight:600}
.ltk-range label input[type=number]{width:96px;margin-left:auto;text-align:right;border:1.5px solid var(--line);border-radius:8px;padding:6px 8px;font-weight:600;font-size:15px}
.ltk-range label u{text-decoration:none;color:var(--steel-3);font-weight:400;font-size:13px}
.ltk-range input[type=range]{width:100%;margin:8px 0 2px;accent-color:var(--gold);height:28px}
.ltk-range__mm{display:flex;justify-content:space-between;font-size:11px;color:var(--steel-3)}
.ltk-presets{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--steel-3)}
.ltk-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ltk-toggles{display:grid;gap:8px}
.ltk-toggle{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;transition:border-color .15s}
.ltk-toggle:hover{border-color:var(--steel-3)}
.ltk-toggle.is-on{border-color:var(--gold);background:rgba(184,146,90,.06)}
.ltk-toggle input{position:absolute;opacity:0;width:0;height:0}
.ltk-toggle i{flex:0 0 40px;width:40px;height:22px;border-radius:99px;background:var(--sand-3);position:relative;transition:background .15s}
.ltk-toggle i::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--white);transition:left .15s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.ltk-toggle.is-on i{background:var(--gold)}.ltk-toggle.is-on i::after{left:21px}
.ltk-toggle--radio i{width:22px;flex-basis:22px;border-radius:50%}.ltk-toggle--radio i::after{width:10px;height:10px;top:6px;left:6px;opacity:0}.ltk-toggle--radio.is-on i::after{left:6px;opacity:1}
.ltk-toggle div{flex:1}.ltk-toggle b{display:block;font-size:14px;font-weight:600}.ltk-toggle small{display:block;font-size:12.5px;color:var(--steel-3)}
.ltk-toggle em{font-style:normal;font-size:12.5px;color:var(--gold);font-weight:600;white-space:nowrap}
.ltk-muster{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.ltk-muster__i{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px 6px;border:1.5px solid var(--line);border-radius:10px;background:var(--white);color:var(--steel);font-size:11.5px}
.ltk-muster__i svg{width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:2.2}
.ltk-muster__i.is-on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,146,90,.18)}
.ltk-swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ltk-swatch{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px;border:1.5px solid var(--line);border-radius:10px;background:var(--white);text-align:left}
.ltk-swatch i{width:100%;height:40px;border-radius:6px;border:1px solid rgba(0,0,0,.08)}
.ltk-swatch__ral{background:conic-gradient(#c33,#e93,#dc3,#3a3,#36c,#93c,#c33)}
.ltk-swatch b{font-size:12.5px}.ltk-swatch small{font-size:11px;color:var(--steel-3)}
.ltk-swatch.is-on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,146,90,.18)}
.ltk-finish{width:26px;height:26px;border-radius:50%;border:1px solid rgba(0,0,0,.1)}
.ltk-finish--schwarz{background:linear-gradient(135deg,#333,#0a0a0a)}.ltk-finish--inox,.ltk-finish--silber{background:linear-gradient(135deg,#f2f2f2,#9a9a9a)}.ltk-finish--gold{background:linear-gradient(135deg,#e2c48b,#a57d3e)}
.ltk-field{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--steel-3);margin:10px 0}
.ltk-field input,.ltk-field textarea{border:1.5px solid var(--line);border-radius:10px;padding:11px 12px;background:var(--white)}
.ltk-field input:focus,.ltk-field textarea:focus{outline:none;border-color:var(--gold)}
.ltk-hp{position:absolute;left:-9999px}
.ltk-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--steel-2);margin:8px 0 14px}
.ltk-form__err{color:var(--err);font-size:13px;min-height:18px;margin-bottom:6px}
.ltk-summary{border:1.5px solid var(--line);border-radius:12px;padding:14px 16px;margin-top:10px}
.ltk-summary__head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.ltk-summary__head span{font-weight:700;font-size:18px}
.ltk-summary dl{margin:0;display:grid;gap:4px;font-size:13.5px}
.ltk-summary dl div{display:grid;grid-template-columns:110px 1fr;gap:8px;border-bottom:1px dashed var(--line);padding:4px 0}
.ltk-summary dt{color:var(--steel-3)}.ltk-summary dd{margin:0}
.ltk-summary__act{margin-top:12px}
.ltk-lines{margin-top:10px;font-size:13px}.ltk-lines summary{cursor:pointer;color:var(--gold);font-weight:600}
.ltk-lines ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px}
.ltk-lines li{display:flex;justify-content:space-between;gap:10px;color:var(--steel-2)}
.ltk-lines li.is-sum{border-top:1px solid var(--line);padding-top:6px;font-weight:700;color:var(--steel)}
.ltk-items{display:grid;gap:8px;margin-bottom:10px}
.ltk-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;font-size:13.5px}
.ltk-item.is-editing{border-color:var(--gold)}
.ltk-item div{flex:1}.ltk-item b{display:block}.ltk-item small{color:var(--steel-3)}
.ltk-item span{font-weight:700;white-space:nowrap}
.ltk-ico{border:0;background:var(--sand);width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--steel-2)}
.ltk-ico svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.ltk-total{display:flex;justify-content:space-between;align-items:baseline;padding:12px 16px;background:var(--steel);color:var(--white);border-radius:12px;margin-top:10px}
.ltk-total b{font-size:20px}
.ltk-done{display:flex;gap:12px;align-items:center;background:rgba(63,125,90,.1);border:1.5px solid var(--ok);color:var(--ok);padding:16px;border-radius:12px;margin-top:14px}
.ltk-done svg{width:28px;height:28px;flex:0 0 28px;fill:none;stroke:currentColor;stroke-width:2.5}
.ltk-done p{margin:0;color:var(--steel)}

/* ---------- Mobil: Bottom-Sheet ---------- */
@media (max-width:900px){
	.ltk{height:calc(100vh - var(--ltk-offset,0px));min-height:560px}
	.ltk-main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;position:relative}
	.ltk-stage{min-height:0}
	.ltk-stage__tools{right:8px;top:auto;bottom:112px;transform:none;flex-direction:row;gap:4px;left:8px;justify-content:center}
	.ltk-tool{width:60px;font-size:10px}.ltk-tool i{width:40px;height:40px}
	.ltk-pricebar{left:10px;right:10px;bottom:10px;padding:10px 12px}
	.ltk-pricebar b{font-size:19px}.ltk-pricebar span{display:none}
	.ltk-pricebar .ltk-btn--ghost{display:none}
	.ltk-stage__hint{font-size:11px;left:12px;top:10px}
	.ltk-sheet{border-left:0;border-top:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -12px 30px -18px rgba(0,0,0,.35);max-height:52%;transition:max-height .3s ease}
	.ltk-sheet:not(.is-open){max-height:98px}
	.ltk-sheet:not(.is-open) .ltk-tabbody,.ltk-sheet:not(.is-open) .ltk-sheet__nav{display:none}
	.ltk-sheet__grip{display:block;border:0;background:transparent;padding:10px 0 2px;width:100%}
	.ltk-sheet__grip span{display:block;width:44px;height:4px;border-radius:2px;background:var(--sand-3);margin:0 auto}
	.ltk-tabs{padding-top:4px}
	.ltk-tabbody{padding:16px 16px 22px}
	.ltk-sheet__nav{padding:10px 16px}
	.ltk-grid,.ltk-grid--3{grid-template-columns:1fr 1fr}
	.ltk-muster{grid-template-columns:repeat(5,1fr)}
}
@media (max-width:420px){.ltk-grid,.ltk-grid--3{grid-template-columns:1fr}.ltk-swatches{grid-template-columns:repeat(2,1fr)}.ltk-grid--5{grid-template-columns:repeat(2,1fr)}.ltk-row{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.ltk *{transition:none!important}}

/* ---------- Hinweise, Tipp, Upload ---------- */
.ltk-stage__notice{position:absolute;left:16px;right:16px;top:44px;z-index:3;background:var(--white);border:1.5px solid var(--gold);border-radius:12px;padding:12px 16px;font-size:13.5px;color:var(--steel);box-shadow:0 12px 30px -16px rgba(0,0,0,.35)}
.ltk-tip{margin-top:18px;padding:12px 14px;background:rgba(184,146,90,.1);border-left:3px solid var(--gold);border-radius:8px;font-size:13.5px;color:var(--steel-2)}
.ltk-upload{margin:6px 0 14px}
.ltk-upload__drop{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 14px;border:1.5px dashed var(--gold);border-radius:12px;background:rgba(184,146,90,.05);cursor:pointer;text-align:center;color:var(--steel)}
.ltk-upload__drop:hover{background:rgba(184,146,90,.12)}
.ltk-upload__drop svg{width:26px;height:26px;fill:none;stroke:var(--gold);stroke-width:2.2}
.ltk-upload__drop b{font-size:14px}.ltk-upload__drop small{font-size:12px;color:var(--steel-3)}
.ltk-upload__list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ltk-upload__item{position:relative;width:84px;height:84px;border-radius:10px;overflow:hidden;border:1.5px solid var(--line)}
.ltk-upload__item img{width:100%;height:100%;object-fit:cover;display:block}
.ltk-upload__item button{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:var(--steel);color:var(--white);font-size:14px;line-height:1;display:grid;place-items:center;cursor:pointer}
/* ---------- Warenkorb / Preset ---------- */
.ltk-cart{margin:14px 0 8px;display:grid;gap:6px}.ltk-cart small{font-size:12px;color:var(--steel-3)}
.ltk-preset-json{width:100%;font:11px/1.4 monospace;border:1.5px solid var(--line);border-radius:8px;padding:8px;margin:8px 0}
