
/* Umbau: große Vorher-Nachher-Regler (20.11.) */
.vs{position:relative;width:100%;aspect-ratio:var(--a);overflow:hidden;background:#111;touch-action:pan-y;cursor:ew-resize;user-select:none;-webkit-user-select:none}
.vs img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.vs-vor{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--p)) 0 0)}
.vs-griff{position:absolute;top:0;bottom:0;left:var(--p);width:2px;margin-left:-1px;background:var(--hell);pointer-events:none;box-shadow:0 0 18px rgba(0,0,0,.35)}
.vs-griff i{position:absolute;top:50%;left:50%;width:62px;height:62px;margin:-31px 0 0 -31px;border-radius:50%;background:var(--hell);box-shadow:0 8px 28px rgba(0,0,0,.4);transition:transform .25s ease}
.vs-griff i::before,.vs-griff i::after{content:"";position:absolute;top:50%;width:10px;height:10px;margin-top:-5px;border-left:2px solid #000;border-bottom:2px solid #000}
.vs-griff i::before{left:15px;transform:rotate(45deg)}.vs-griff i::after{right:15px;transform:rotate(-135deg)}
.vs.zieht .vs-griff i,.vs:hover .vs-griff i{transform:scale(1.08)}
.vs-wort{position:absolute;top:clamp(14px,2.4vw,30px);padding:7px 14px;background:rgba(0,0,0,.55);font-size:13px;letter-spacing:.14em;text-transform:uppercase;pointer-events:none;transition:opacity .3s}
.vs-a{left:clamp(14px,2.4vw,30px)}.vs-b{right:clamp(14px,2.4vw,30px)}
.vs.nur-nach .vs-a,.vs.nur-vor .vs-b{opacity:0}
.vs-r{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.vs:has(.vs-r:focus-visible) .vs-griff i{outline:3px solid var(--licht);outline-offset:4px}
/* Hero */
.ub-held{position:relative;background:#000}
.ub-held .vs{aspect-ratio:auto;height:calc(var(--buehne) - var(--kopfhoehe));min-height:460px}
.ub-held .vs::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.82),rgba(0,0,0,0) 52%),linear-gradient(90deg,rgba(0,0,0,.5),rgba(0,0,0,0) 48%);pointer-events:none}
.ub-held .vs-griff{z-index:2}.ub-held .vs-wort{z-index:2}
.ub-held-text{position:absolute;left:0;right:0;bottom:0;z-index:3;padding-bottom:clamp(30px,7vh,80px);pointer-events:none}
.ub-held-text h1{max-width:12ch}.ub-held-text .lead{max-width:44ch;color:var(--hell)}
.ub-hinweis{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 40px;padding-top:22px;padding-bottom:clamp(50px,8vw,110px);color:var(--hell-leise);font-size:15px}
.ub-hinweis p{margin:0}.ub-erst{max-width:60ch}
.ub-pfeil{display:inline-block;width:26px;height:10px;margin-right:12px;vertical-align:middle;background:linear-gradient(var(--licht),var(--licht)) center/100% 2px no-repeat;position:relative}
/* Beispiele */
.ub-b{margin-bottom:clamp(70px,11vw,160px)}
.ub-b .vs{max-height:88vh}
.ub-t{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.3fr);gap:8px clamp(20px,4vw,60px);align-items:baseline;margin-top:clamp(20px,3vw,36px)}
.ub-t .plan{margin:0}.ub-t h2{margin:0;font-size:clamp(28px,3.2vw,48px)}.ub-t p:last-child{margin:0;color:var(--hell-leise);max-width:58ch}
/* Abschluss: groß, über einem Nachher-Bild, einladender Knopf (Leon 20.11.) */
.ub-ende{position:relative;min-height:calc(var(--buehne) - var(--kopfhoehe));display:flex;align-items:flex-end;overflow:hidden;background:#000}
.ub-ende-bild{position:absolute;inset:0}
.ub-ende-bild img{width:100%;height:100%;object-fit:cover;transform:scale(1.06);transition:transform 2.4s cubic-bezier(.2,.7,.2,1)}
.ub-ende::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,#000 4%,rgba(0,0,0,.72) 42%,rgba(0,0,0,.2) 100%),linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,0) 60%);pointer-events:none}
.ub-ende-in{position:relative;z-index:1;width:100%;padding-top:clamp(120px,22vh,260px);padding-bottom:clamp(60px,12vh,140px)}
.ub-ende h2{margin:0 0 .35em;font-size:clamp(54px,10.5vw,190px);font-weight:200;line-height:.94;letter-spacing:-.01em}
.ub-ende .lead{max-width:40ch;margin:0 0 clamp(30px,5vh,52px);color:var(--hell);font-size:clamp(18px,1.6vw,24px)}
.ub-ende-in>*{opacity:0;transform:translateY(26px);transition:opacity 1s ease,transform 1.2s cubic-bezier(.2,.7,.2,1)}
.ub-ende-in>*:nth-child(2){transition-delay:.12s}.ub-ende-in>*:nth-child(3){transition-delay:.28s}.ub-ende-in>*:nth-child(4){transition-delay:.42s}
.ub-ende.da .ub-ende-in>*{opacity:1;transform:none}.ub-ende.da .ub-ende-bild img{transform:scale(1)}
.ub-cta{display:flex;flex-wrap:wrap;align-items:center;gap:18px 34px}
.ub-knopf{display:inline-flex;align-items:center;gap:22px;min-height:78px;padding:0 38px 0 42px;background:var(--hell);color:#000;font-size:clamp(19px,1.5vw,23px);text-decoration:none;box-shadow:0 18px 50px rgba(227,178,122,.18);transition:background-color .3s ease,box-shadow .3s ease}
.ub-knopf i{position:relative;width:34px;height:2px;background:currentColor;transition:width .35s cubic-bezier(.2,.7,.2,1)}
.ub-knopf i::after{content:"";position:absolute;right:0;top:50%;width:11px;height:11px;margin-top:-6px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
.ub-knopf:hover,.ub-knopf:focus-visible{background:var(--licht);box-shadow:0 18px 60px rgba(227,178,122,.38)}
.ub-knopf:hover i,.ub-knopf:focus-visible i{width:52px}
.ub-tel{color:var(--hell-leise);font-size:16px;text-underline-offset:5px}
.ub-tel:hover{color:var(--hell)}
@media (max-width:860px){.ub-ende{min-height:0}.ub-ende-in{padding-top:clamp(200px,48vw,320px)}.ub-knopf{width:100%;justify-content:space-between;min-height:68px;padding:0 26px}}
@media (prefers-reduced-motion:reduce){.ub-ende-in>*,.ub-ende-bild img{opacity:1;transform:none;transition:none}}
@media (max-width:860px){
 .ub-held .vs{height:auto;min-height:0;aspect-ratio:4/5}
 .ub-held .vs::after{display:none}
 .ub-held-text{position:static;padding-top:26px;padding-bottom:0}
 .ub-held .vs-griff i,.vs-griff i{width:52px;height:52px;margin:-26px 0 0 -26px}
 .ub-b .vs{aspect-ratio:4/3}
 .ub-t{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.vs-griff i{transition:none}}
