/* Webblickfang: Szenen der Projekt-Detailseite (Template „Projekt-Detail“, Grundlage: webblickfang-projekt-detail-v1.html).
   Haken: wbs-ref-hero, wbs-ref-story, wbs-ref-tour, wbs-ref-leist, wbs-ref-inhalt. Die Hilfsklassen "ref-…" setzt referenz.js.
   Alle Inhalte kommen aus den Feldern des Projekts; leere Felder blenden ihre Stelle aus (Klasse is-leer). */
[class*="wbs-ref-"].is-leer,[class*="wbs-ref-"] .is-leer{display:none!important}
.wbs-ref-hero img:not([src]),.wbs-ref-tour img:not([src]){display:none}

/* ---------- Hero: Text und Angaben links, die Website im Browserrahmen rechts ---------- */
.elementor .wbs-ref-hero{display:flex;align-items:center;min-height:min(100svh,920px);padding-block:clamp(116px,15vh,150px) clamp(84px,11vh,130px)}
.elementor .wbs-ref-hero::before{left:74%;top:50%;width:min(1000px,100%);aspect-ratio:1;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(109,214,204,.15),rgba(109,214,204,0))}
.elementor .wbs-ref-hero>.wb-wrap>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px clamp(30px,5vw,84px);align-items:center;width:100%}
.elementor .wbs-ref-hero .wb-stack{gap:0;min-width:0}
.elementor .wbs-ref-hero .wb-h1{font-size:clamp(2.2rem,4.1vw,3.9rem);line-height:1.04;letter-spacing:-.052em;margin-top:.55em}
.elementor .wbs-ref-hero .wb-lead{margin-top:1.5em;max-width:33rem;font-size:clamp(1rem,1.25vw,1.16rem);line-height:1.65}
.elementor .wbs-ref-hero .wb-stack>div{margin-top:clamp(24px,3.4vw,40px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.13);animation:wb-up 1.1s var(--wb-ease) .6s both}
.elementor .wbs-ref-hero .wb-stack>div>div{padding:14px 14px 14px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.elementor .wbs-ref-hero .wb-stack>div .wb-eyebrow{font-size:.7rem;color:#8c8c8c}
.elementor .wbs-ref-hero .wb-stack>div p:not(.wb-eyebrow){margin:.35em 0 0;font:500 .98rem/1.5 Inter,sans-serif;color:#F5F6F4}
.elementor .wbs-ref-hero>.wb-wrap>div>div:last-child img{max-width:100%;height:auto;border-radius:20px}
.wb-live .wbs-ref-hero .ref-bfw{perspective:1500px;animation:wb-up 1.5s var(--wb-ease) .4s both}
.ref-bf{border-radius:20px;background:#181818;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 60px 120px -50px rgba(109,214,204,.6),0 40px 80px -40px #000;overflow:hidden;will-change:transform}
.wbs-ref-hero .ref-bf{transform:rotateY(-9deg) rotateX(3deg)}
.ref-bar{display:flex;align-items:center;gap:6px;padding:11px 15px;border-bottom:1px solid rgba(255,255,255,.08);font:400 .7rem/1.65 Inter,sans-serif;color:#8c8c8c}
.ref-bar i{width:8px;height:8px;border-radius:50%;background:#333}
.ref-bar span{margin-left:8px}
.ref-bfs{position:relative;aspect-ratio:16/11.4;overflow:hidden;background:#fff}
.elementor .ref-bfs img,.elementor .wbs-ref-hero .ref-bfs img{position:absolute;left:0;top:0;width:100%;max-width:none;height:auto;display:block;border-radius:0;will-change:transform}
.ref-bfw>img{display:none!important}
@media (max-width:980px){
  .elementor .wbs-ref-hero{min-height:0}
  .elementor .wbs-ref-hero>.wb-wrap>div{grid-template-columns:minmax(0,1fr)}
  .wbs-ref-hero .ref-bf{transform:none}
}

/* ---------- Geschichte des Projekts: Ausgangslage, Aufgabe, Lösung (leere Spalten entfallen) ---------- */
.elementor .wbs-ref-story>.wb-wrap>div:last-child{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-top:1px solid rgba(24,24,24,.09);counter-reset:refs}
.elementor .wbs-ref-story>.wb-wrap>div:last-child>div{counter-increment:refs;padding:clamp(20px,2.6vw,34px) clamp(16px,2.6vw,36px) 0;border-left:1px solid rgba(24,24,24,.09)}
.elementor .wbs-ref-story>.wb-wrap>div:last-child>div.ref-erste,.elementor .wbs-ref-story>.wb-wrap>div:last-child>div:first-child{border-left:0;padding-left:0}
.elementor .wbs-ref-story .wb-eyebrow{font-size:.74rem;line-height:1;font-variant-numeric:tabular-nums}
.elementor .wbs-ref-story .wb-eyebrow::before{content:"0" counter(refs) " · "}
.elementor .wbs-ref-story .wb-h3{margin:.7em 0 .6em;font-size:clamp(1.2rem,1.8vw,1.55rem)}
@media (max-width:820px){
  .elementor .wbs-ref-story>.wb-wrap>div:last-child{grid-auto-flow:row}
  .elementor .wbs-ref-story>.wb-wrap>div:last-child>div{border-left:0;padding-left:0;padding-right:0;border-top:1px solid rgba(24,24,24,.09);padding-bottom:20px}
  .elementor .wbs-ref-story>.wb-wrap>div:last-child>div.ref-erste,.elementor .wbs-ref-story>.wb-wrap>div:last-child>div:first-child{border-top:0}
}

/* ---------- Rundgang (dunkle Insel): die Website scrollt, die Stationen folgen ---------- */
.elementor .wbs-ref-tour{padding:0}
.elementor .wbs-ref-tour>div{padding-block:clamp(64px,8vw,116px)}
.elementor .wbs-ref-tour>div>.wb-wrap{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px clamp(28px,5vw,84px);align-items:center}
.elementor .wbs-ref-tour .wb-h2{font-size:clamp(1.5rem,2.7vw,2.45rem);margin-top:.7em}
.elementor .wbs-ref-tour ul{list-style:none;margin:0;padding:0}
.elementor .wbs-ref-tour p:has(+ul),.elementor .wbs-ref-tour ul+p{display:none}
.elementor .wbs-ref-tour li{font:500 clamp(1.1rem,1.6vw,1.4rem)/1.2 Inter,sans-serif;letter-spacing:-.03em;color:#F5F6F4;padding:.35em 0}
.elementor .wbs-ref-tour>div>.wb-wrap>div:first-child>div{margin-top:clamp(20px,3.6vh,44px);padding-top:clamp(16px,2.6vh,28px);border-top:1px solid rgba(255,255,255,.13)}
.elementor .wbs-ref-tour .wb-eyebrow{color:#6DD6CC;font-size:.7rem;margin-bottom:.6em}
.elementor .wbs-ref-tour button.wb-link{display:none}
.elementor .wbs-ref-tour a.wb-link{margin-top:1.2em;color:#F5F6F4}
.elementor .wbs-ref-tour>div>.wb-wrap>div:last-child img{max-width:100%;height:auto;border-radius:20px}
.ref-trf{position:relative}
.wbs-ref-tour .ref-bf{box-shadow:0 0 0 1px rgba(255,255,255,.12),0 70px 120px -70px rgba(109,214,204,.85)}
.wbs-ref-tour .ref-bfs{aspect-ratio:auto;height:min(64vh,620px)}
.ref-trp{position:absolute;right:-14px;top:12%;bottom:12%;width:3px;border-radius:9px;background:rgba(255,255,255,.1)}
.ref-trp i{display:block;width:100%;height:100%;border-radius:9px;background:var(--wb-grad);transform-origin:top;transform:scaleY(var(--tp,0))}
/* angeheftet: zwei Bildschirmhöhen Scrollweg */
.wb-live .elementor .wbs-ref-tour.is-pin{height:200vh}
.wb-live .elementor .wbs-ref-tour.is-pin>div{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:flex;align-items:center;padding-block:72px 0;border-radius:inherit}
.wb-live .elementor .wbs-ref-tour.is-pin .wb-eyebrow{display:none}
.wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt{position:relative;min-height:8.5em}
.wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt ul{counter-reset:reft}
.wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt li{counter-increment:reft;position:absolute;inset:clamp(16px,2.6vh,28px) 0 auto;padding:0;font-size:clamp(1.3rem,2.2vw,2rem);line-height:1.15;letter-spacing:-.035em;max-width:14em;opacity:0;transform:translateY(12px);transition:opacity .6s var(--wb-ease),transform .6s var(--wb-ease)}
.wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt li::before{content:"0" counter(reft) " · " attr(data-l);display:block;font:500 .7rem/1.2 Inter,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#6DD6CC;margin-bottom:.9em}
.wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt li.s{opacity:1;transform:none}
/* ohne ganzseitigen Screenshot: kein Scrollweg, das Bild steht vollständig im Rahmen */
.wbs-ref-tour.is-flach .ref-bfs{height:auto}
.elementor .wbs-ref-tour.is-flach .ref-bfs img{position:static}
.wbs-ref-tour.is-flach .ref-trp{display:none}
@media (max-width:860px){
  .elementor .wbs-ref-tour>div>.wb-wrap{grid-template-columns:minmax(0,1fr);gap:12px}
  .wb-live .elementor .wbs-ref-tour.is-pin>div{align-items:flex-start;padding-top:86px}
  .wb-live .elementor .wbs-ref-tour.is-pin .wb-pill,.wb-live .elementor .wbs-ref-tour.is-pin a.wb-link{display:none}
  .wb-live .elementor .wbs-ref-tour.is-pin .wb-h2{margin-top:0;font-size:1.3rem}
  .wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt{margin-top:12px;padding-top:12px;min-height:5.6em}
  .wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt li{inset:12px 0 auto;font-size:1.15rem}
  .wb-live .elementor .wbs-ref-tour.is-pin .ref-sgt li::before{margin-bottom:.5em}
  .wbs-ref-tour.is-pin .ref-bfs{height:calc(100svh - 330px)}
  .ref-trp{right:-9px}
}

/* ---------- Leistungen und Ergebnis ---------- */
.elementor .wbs-ref-leist>.wb-wrap>div{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:30px clamp(30px,5vw,84px);align-items:start}
.elementor .wbs-ref-leist>.wb-wrap>div.ref-solo{grid-template-columns:minmax(0,1fr)}
.elementor .wbs-ref-leist .wb-h2{margin-top:.7em;margin-bottom:clamp(20px,3vw,36px)}
.elementor .wbs-ref-leist p:has(+ul),.elementor .wbs-ref-leist ul+p{display:none}
.elementor .wbs-ref-leist ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(18px,2.6vw,40px);counter-reset:refd}
.elementor .wbs-ref-leist li{position:relative;counter-increment:refd;border-top:1px solid rgba(24,24,24,.09);padding:18px 2.4em 22px 0;font:500 clamp(1.05rem,1.45vw,1.25rem)/1.25 Inter,sans-serif;letter-spacing:-.025em;color:#181818}
.elementor .wbs-ref-leist li::before{content:"";position:absolute;left:0;top:-1px;height:2px;width:100%;background:var(--wb-grad);transform:scaleX(0);transform-origin:left;transition:transform .8s var(--wb-ease)}
.elementor .wbs-ref-leist li:hover::before{transform:none}
.elementor .wbs-ref-leist li::after{content:"0" counter(refd);position:absolute;right:0;top:20px;font:500 .74rem/1 Inter,sans-serif;letter-spacing:0;color:#a4a9ae;font-variant-numeric:tabular-nums}
.elementor .wbs-ref-leist>.wb-wrap>div>div:last-child{position:sticky;top:max(104px,14vh);border-radius:26px;background:#100F0F;color:#F5F6F4;padding:clamp(22px,3vw,44px);overflow:hidden;box-shadow:0 50px 90px -56px rgba(109,214,204,.95)}
.elementor .wbs-ref-leist>.wb-wrap>div>div:last-child::before{content:"";position:absolute;right:-20%;top:-40%;width:90%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(109,214,204,.24),transparent)}
.elementor .wbs-ref-leist>.wb-wrap>div>div:last-child>*{position:relative}
.elementor .wbs-ref-leist>.wb-wrap>div>div:last-child .wb-eyebrow{color:#6DD6CC;font-size:.7rem}
.elementor .wbs-ref-leist>.wb-wrap>div>div:last-child>p:nth-child(2){font:500 clamp(1.6rem,3vw,2.6rem)/1.08 Inter,sans-serif;letter-spacing:-.04em;margin:.5em 0;color:#F5F6F4}
.elementor .wbs-ref-leist>.wb-wrap>div>div:last-child>p:nth-child(3){font:400 1rem/1.65 Inter,sans-serif;color:#9F9F9F;margin:.6em 0 0}
@media (max-width:900px){
  .elementor .wbs-ref-leist>.wb-wrap>div{grid-template-columns:minmax(0,1fr)}
  .elementor .wbs-ref-leist>.wb-wrap>div>div:last-child{position:static}
}
@media (max-width:560px){.elementor .wbs-ref-leist ul{grid-template-columns:minmax(0,1fr)}.elementor .wbs-ref-leist li{padding:14px 2.4em 16px 0}}
