/* Hero: Website entsteht beim Scrollen im Monitor, danach Kamerafahrt in den Bildschirm (siehe hero.js) */

/* ---------- Aufbau im Monitor (alle Modi mit JS) ---------- */
html.hs .example-body>*,html.hs .example-phone{animation:none!important}
html.hs .monitor-screen{position:relative}
html.hs .example-body{background:color-mix(in srgb,#f6f3ed calc(var(--c,1)*100%),#fcfbf9)}
html.hs .example-bar{background:color-mix(in srgb,#f6f3ed calc(var(--c,1)*100%),#fcfbf9)}
html.hs .example-body>small,html.hs .example-body>h2,html.hs .example-body>p{width:fit-content}
html.hs .example-body>small,html.hs .example-body>h2,html.hs .example-body>p,html.hs .example-button{position:relative;z-index:1;
  clip-path:inset(-40% calc((1 - var(--r,1))*100%) -40% -4px);transform:translateY(calc((1 - var(--r,1))*6px))}
html.hs .example-body h2 em{color:color-mix(in srgb,#9a5636 calc(var(--c,1)*100%),#29221d)}
html.hs .example-button{background:color-mix(in srgb,#8c543a calc(var(--c,1)*100%),transparent);color:color-mix(in srgb,#fff calc(var(--c,1)*100%),#29221d);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,#29221d calc((1 - var(--c,1))*55%),transparent)}
html.hs .example-image{z-index:1;clip-path:inset(calc((1 - var(--r,1))*100%) 0 0 0 round 70px 70px 0 0)}
html.hs .example-image i{transform:translateY(calc((1 - var(--r,1))*70%)) rotate(-28deg);transition:none}
html.hs .example-cards{position:relative;z-index:1;opacity:var(--r,1);transform:translateY(calc((1 - var(--r,1))*8px))}
html.hs .example-phone{opacity:calc(var(--ph,1)*(1 - var(--pho,0)));
  transform:translate(calc((1 - var(--ph,1))*40px + var(--pho,0)*90px),calc((1 - var(--ph,1))*120px + var(--pho,0)*150px)) rotate(calc(5deg + (1 - var(--ph,1))*9deg + var(--pho,0)*10deg))}

/* Raster (Skizze) */
.bp{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:var(--g,0)}
.bp i,.bp b{position:absolute;background:#b968422e}
.bp i{top:0;bottom:0;width:1px;transform-origin:50% 0}
.bp i:nth-child(1){left:6%}.bp i:nth-child(2){left:28%}.bp i:nth-child(3){left:50%}.bp i:nth-child(4){left:72%}.bp i:nth-child(5){left:94%}
.bp b{left:0;right:0;height:1px;transform-origin:0 50%}
.bp b:nth-of-type(1){top:24%}.bp b:nth-of-type(2){top:52%}.bp b:nth-of-type(3){top:80%}

/* Platzhalter-Blöcke (werden aus den echten Elementen vermessen) */
.sk{position:absolute;inset:0;z-index:0;pointer-events:none}
.sk i{position:absolute;border-radius:3px;background:#e7dfd2;transform-origin:0 50%}
.sk .sk-title{background:#dfd5c5}
.sk .sk-button{background:transparent;border:1px dashed #b968427a;border-radius:2px}
.sk .sk-image{background:repeating-linear-gradient(135deg,#b968421a 0 1px,transparent 1px 9px);border:1px dashed #b968427a;border-radius:70px 70px 0 0}
.sk em{position:absolute;font-style:normal;font-family:Manrope,Arial,sans-serif;font-size:6px;letter-spacing:.12em;text-transform:uppercase;color:#b96842;white-space:nowrap;transform:translate(10px,-50%)}
.sk em.above{transform:translateY(-160%)}
.sk em:before{content:'';display:inline-block;width:10px;height:1px;background:currentColor;vertical-align:middle;margin-right:5px}
.sk em.above:before{display:none}

/* Einmaliges Zeichnen beim Laden */
html.hs-ready:not(.hs-static) .bp i{animation:bp-y 1.3s cubic-bezier(.2,.7,0,1) both}
html.hs-ready:not(.hs-static) .bp b{animation:bp-x 1.3s cubic-bezier(.2,.7,0,1) both}
html.hs-ready:not(.hs-static) .bp i:nth-child(2),html.hs-ready:not(.hs-static) .bp b:nth-of-type(2){animation-delay:.08s}
html.hs-ready:not(.hs-static) .bp i:nth-child(3),html.hs-ready:not(.hs-static) .bp b:nth-of-type(3){animation-delay:.16s}
html.hs-ready:not(.hs-static) .bp i:nth-child(4){animation-delay:.24s}html.hs-ready:not(.hs-static) .bp i:nth-child(5){animation-delay:.32s}
html.hs-ready:not(.hs-static) .sk i{animation:bp-x .9s .35s cubic-bezier(.2,.7,0,1) both}
html.hs-ready:not(.hs-static) .sk em{animation:sk-fade .6s .9s both}
@keyframes bp-y{from{transform:scaleY(0)}}
@keyframes bp-x{from{transform:scaleX(0)}}
@keyframes sk-fade{from{opacity:0}}

/* Fortschritt unten links */
.hs-meter{display:inline-block;position:relative;width:90px;height:1px;background:#29221d1f;overflow:hidden}
.hs-meter i{position:absolute;inset:0;background:var(--copper);transform-origin:0 50%;transform:scaleX(var(--m,0))}
html.hs .scene-caption{align-items:center}
html.hs-static .hs-meter{display:none}

/* ---------- Desktop: sticky Bühne + Kamerafahrt ---------- */
html.hs-full .experience-stage{position:sticky;top:0;height:100svh;min-height:560px;max-height:none}
html.hs-full .hero-copy{opacity:var(--hero-o,1)!important;transform:translateX(calc((1 - var(--hero-o,1))*-60px))!important}
html.hs-full .scene-bottom,html.hs-full .motion-toggle,html.hs-full .monitor-caption{opacity:var(--hero-o,1)}
html.hs-full .scroll-hint{display:flex!important}
html.hs-full .monitor-scene{transform-origin:0 0;top:21%;width:min(48%,700px,calc((78svh - 257px)*1.6));max-width:none}
/* Inhalt im Monitor skaliert mit der Monitorbreite, damit nichts abgeschnitten wird */
html.hs-full .monitor-screen{container-type:inline-size}
html.hs-full .example-bar{height:4.9cqw;font-size:1.13cqw;padding:0 2.4cqw}
html.hs-full .example-body{height:calc(100% - 4.9cqw);padding:4.2cqw 3.6cqw}
html.hs-full .example-body small{font-size:1.13cqw}
html.hs-full .example-body h2{font-size:5.6cqw;margin:2.2cqw 0}
html.hs-full .example-body p{font-size:1.45cqw}
html.hs-full .example-button{font-size:1.3cqw;padding:1.45cqw 1.95cqw;margin-top:1.95cqw}
html.hs-full .example-cards{font-size:1.13cqw;gap:2.4cqw;margin-top:4cqw}
html.hs-full .sk em{font-size:.97cqw}
html.hs-full .monitor{transform:rotateY(calc(-9deg*(1 - var(--flat,0)))) rotateX(calc(3deg*(1 - var(--flat,0))))}
html.hs-diving .monitor{filter:none}
html.hs-diving .monitor-screen{border-color:#211c18}
/* Beim Hineinfahren steigt die dunkle Arbeiten-Fläche im Bildschirm auf (mit runden Ecken wie die Sektion) */
.screen-dark{position:absolute;inset:0;z-index:6;background:#211c18;pointer-events:none;clip-path:inset(calc((1 - var(--dk,0))*101%) 0 0 0 round calc((1 - var(--dk,0))*28px + 2px) calc((1 - var(--dk,0))*28px + 2px) 0 0)}
html:not(.hs-full) .screen-dark{display:none}
/* Die Arbeiten schieben sich über den dunklen Bildschirm – ohne Kante dazwischen */
html.hs-full .work{position:relative;z-index:3;margin-top:calc(-1*var(--hs-stage-h,0px));border-radius:0}

/* Vermessung ohne Transformationen */
.hs-measure .monitor-scene,.hs-measure .monitor{transform:none!important}
.hs-measure .example-body>*,.hs-measure .example-image{clip-path:none!important;transform:none!important}

@media(max-width:700px){.sk em{display:none}html.hs .example-body h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.bp,.sk{display:none}}
