/* A single real document stays in the phone from the first reveal through exploration. */
.reference-scene{position:relative;z-index:6;background:#080a09;color:var(--paper);height:240svh;--reference-h:100svh;--reference-surface-w:min(430px,100vw);isolation:isolate;overflow-anchor:none}
.reference-sticky{height:var(--reference-h);position:sticky;top:0;overflow:hidden;background:#080a09}
.reference-intro{position:absolute;z-index:2;top:clamp(38px,11svh,120px);left:var(--gutter);right:var(--gutter);text-align:center;opacity:0;pointer-events:none}
.reference-intro>[data-intro-part]{opacity:0;will-change:opacity,transform}
.reference-intro .eyebrow{justify-content:center;font-size:10px;margin:0 0 22px}
.reference-intro h2{font-size:clamp(40px,7vw,76px);line-height:1;margin:0 0 17px}
.reference-intro>p:last-of-type{font-size:13px;line-height:1.6;max-width:480px;margin:0 auto 14px;color:#b7bab2}
.reference-enter{position:relative;pointer-events:auto;font:500 12px/1.4 var(--body);padding:10px 0;background:transparent;border:0;border-bottom:1px solid currentColor;color:var(--paper);cursor:pointer}
.reference-enter:disabled{opacity:.5;cursor:wait}
.reference-phone{position:absolute;left:50%;top:0;width:calc(var(--reference-surface-w) + 24px);height:calc(var(--reference-h) + 24px);padding:12px;background:linear-gradient(120deg,#767c73,#0c100c 3%,#010302 94%,#535c50);border-radius:46px;box-shadow:inset 0 0 0 1px #889182,0 20px 60px #000b;transform:translate(-50%,-50%) scale(.4);transform-origin:center;opacity:0;will-change:transform;pointer-events:none}
.reference-phone:after{content:'';position:absolute;left:1px;right:1px;top:1px;bottom:1px;border:1px solid #a4ac9c44;border-radius:inherit;pointer-events:none}
.reference-display{position:relative;width:100%;height:100%;border-radius:36px;overflow:hidden;background:#211d22}
.reference-display iframe{border:0;display:block;width:var(--reference-surface-w);height:var(--reference-h);background:#211d22;max-width:none}
.reference-island{position:absolute;top:21px;left:50%;width:24%;height:23px;max-width:105px;transform:translateX(-50%);border-radius:20px;background:#030504;pointer-events:none;box-shadow:inset 0 -1px 1px #c7d7bc33}
.reference-island:after{content:'';position:absolute;right:10px;top:7px;width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#567875,#102526 38%,#020303 75%)}
.reference-loading{position:absolute;left:0;right:0;top:45%;padding:18px;text-align:center;font-size:13px;color:#cbc6c0}
/* The active reference owns the complete viewport above later stacking contexts. */
.reference-scene[data-active=true]{z-index:10000}
.reference-scene[data-active=true] .reference-sticky{position:fixed;inset:0 auto auto 0;z-index:100;height:var(--reference-h);margin:0}
.reference-scene[data-state=exploring] .reference-sticky{background:#211d22}
.reference-scene[data-state=exploring] .reference-phone{pointer-events:auto;box-shadow:none}
.reference-scene[data-state=exploring] .reference-island{opacity:0}
.reference-scene:not([data-state=scroll]) .reference-intro{visibility:hidden}
.reference-scene[data-state=complete]{height:var(--reference-complete-h,100svh)}
.reference-scene[data-state=complete] .reference-sticky{position:relative;inset:auto;height:var(--reference-complete-h,100svh)}
.reference-choice{position:absolute;z-index:3;top:clamp(28px,6svh,65px);left:var(--gutter);right:var(--gutter);text-align:center;color:var(--paper)}
.reference-choice[hidden],.reference-outro[hidden]{display:none!important}
.reference-choice .eyebrow{justify-content:center;font-size:10px;margin:0 0 18px}
.reference-choice h2{font-size:clamp(34px,5vw,58px);line-height:1.02;margin:0 0 16px}
.reference-choice>p:not(.eyebrow){font-size:13px;line-height:1.6;max-width:480px;margin:0 auto 20px;color:#bec4ba}
.reference-choice-actions{display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:wrap}
.reference-choice .button{font-size:13px;min-height:48px;padding:14px 20px;gap:24px}
.reference-return,.reference-resume{font:500 12px/1.4 var(--body);background:none;color:var(--paper);cursor:pointer;border:0;border-bottom:1px solid currentColor;min-height:44px;padding:10px 0}
.reference-return{display:flex;gap:20px;align-items:center}
.reference-resume{margin-top:15px;color:#b8bfb2;font-size:11px;border-bottom-color:#65705e}
.reference-choice-status{min-height:1em;font-size:11px!important;margin:12px auto 0!important}
.reference-choice button:disabled{opacity:.5;cursor:wait}
body.reference-open>.header,body.reference-open>.footer,body.reference-open #inhalt>:not(.reference-scene){visibility:hidden}
html.reference-locked,html.reference-locked body{overflow:hidden!important;overscroll-behavior:none!important;scroll-behavior:auto!important}
.reference-outro{background:#080a09;color:var(--paper);padding:0 var(--gutter);text-align:center;position:absolute;top:var(--reference-outro-top,360px);left:0;right:0;z-index:2;opacity:0;pointer-events:none}
.reference-scene[data-state=complete] .reference-outro{pointer-events:auto}
.reference-outro h2{font-size:clamp(35px,6vw,64px);line-height:1.05;margin:0 0 20px}
.reference-outro p{font-size:14px;line-height:1.7;max-width:540px;margin:0 auto;color:#b8bdb2}
.reference-conversion{margin-top:24px}
.reference-conversion>p{color:var(--paper)}
.reference-conversion .text-link{margin-top:16px;font-size:13px;gap:24px;min-height:44px}
.reference-scene[data-reduced=true]:not([data-state=complete]){height:100svh}
.reference-scene[data-reduced=true] .reference-intro{top:35px}
@media(max-height:680px){.reference-intro{top:32px}.reference-intro .eyebrow{margin-bottom:12px}.reference-intro h2{font-size:36px}.reference-intro>p:last-of-type{font-size:11px;max-width:360px}}
@media print{.reference-scene{display:none}.reference-outro{background:white;color:black}}

@media(max-width:540px){.reference-choice-actions{gap:8px;flex-direction:column}.reference-choice h2{font-size:36px}.reference-choice>p:not(.eyebrow){margin-bottom:15px}.reference-resume{margin-top:8px}}
@media(max-height:680px){.reference-choice{top:20px}.reference-choice .eyebrow{margin-bottom:10px}.reference-choice h2{font-size:29px;margin-bottom:12px}.reference-choice>p:not(.eyebrow){font-size:11px;margin-bottom:10px}.reference-choice .button{min-height:42px;padding:10px 15px}.reference-return,.reference-resume{min-height:36px;padding:7px 0}.reference-resume{margin-top:4px}}

.reference-choice:focus,.reference-outro:focus{outline:none}
