/* SVB-ROSE · "Schicht für Schicht" – Leistungsfinder unter dem Hero */
html,body{overflow-x:clip!important}
.svb-layers{position:relative;background:var(--ink-950);color:var(--stone-50);--layers-steps:6}
.svb-layers__pin{position:relative}
.svb-layers__inner{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center;padding-block:var(--section-y)}
.svb-layers__intro{display:flex;flex-direction:column;gap:20px;margin-bottom:28px}
.svb-layers__title{margin:0;font-family:var(--font-display);font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);font-weight:500;color:var(--stone-50);max-width:14ch}
.svb-layers__title em{font-style:normal;color:var(--green-400)}
.svb-layers__lead{margin:0;font-size:17px;line-height:1.55;color:#C9C6BE;max-width:44ch}

/* Liste: echte Links, für Google und KI lesbar */
.svb-layers__list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(245,243,239,.14)}
.svb-layers__item{border-bottom:1px solid rgba(245,243,239,.14)}
.svb-layers__link{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:4px 14px;align-items:baseline;padding:16px 4px;color:inherit;text-decoration:none;transition:background .3s,padding .3s}
.svb-layers__num{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;color:var(--stone-500);transition:color .3s}
.svb-layers__name{font-family:var(--font-display);font-size:20px;line-height:1.25;font-weight:500;color:#D9D6CF;transition:color .3s}
.svb-layers__arrow{font-size:14px;color:var(--stone-500);transition:transform .3s,color .3s}
.svb-layers__desc{grid-column:2/4;margin:0;font-size:14.5px;line-height:1.5;color:#9F9C94;max-height:0;opacity:0;overflow:hidden;transition:max-height .45s,opacity .35s}
.svb-layers__item.is-active .svb-layers__link{background:rgba(127,192,91,.07);padding-inline:14px}
.svb-layers__item.is-active .svb-layers__num{color:var(--green-400)}
.svb-layers__item.is-active .svb-layers__name{color:var(--stone-50)}
.svb-layers__item.is-active .svb-layers__arrow{color:var(--green-400);transform:translateX(4px)}
.svb-layers__item.is-active .svb-layers__desc{max-height:80px;opacity:1}
.svb-layers__link:hover .svb-layers__name,.svb-layers__link:focus-visible .svb-layers__name{color:var(--stone-50)}
.svb-layers__link:focus-visible{outline:2px solid var(--green-400);outline-offset:2px}

/* Bühne */
.svb-layers__stage{position:relative;height:min(82vh,700px)}

.svb-layers__caption{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:10px;white-space:nowrap;font-family:var(--font-mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--stone-500)}
.svb-layers__bar{width:120px;height:2px;background:rgba(245,243,239,.15);position:relative;overflow:hidden}
.svb-layers__bar i{position:absolute;inset:0;background:var(--green-400);transform-origin:left;transform:scaleX(var(--p,0))}
.svb-layers__final{position:absolute;left:50%;top:6%;transform:translate(-50%,8px);text-align:center;font-family:var(--font-display);font-size:22px;font-weight:500;color:var(--stone-50);opacity:0;transition:opacity .5s,transform .5s;white-space:nowrap}
.svb-layers__final em{font-style:normal;color:var(--green-400)}
.svb-layers.is-complete .svb-layers__final{opacity:1;transform:translate(-50%,0)}

/* Scroll-Pin nur auf großen Bildschirmen mit Bewegung */
@media (min-width:1000px) and (prefers-reduced-motion:no-preference){
  .svb-layers.is-pinned{height:calc(100vh + var(--layers-steps) * 55vh)}
  .svb-layers.is-pinned .svb-layers__pin{position:sticky;top:0;height:100vh;display:flex;align-items:center}
  .svb-layers.is-pinned .svb-layers__inner{width:100%;padding-block:40px}
}
@media (max-width:999px){
  .svb-layers__inner{grid-template-columns:1fr;gap:24px}
  .svb-layers__stage{height:440px;order:-1}
  .svb-layers__desc{max-height:none;opacity:1}
  .svb-layers__final{font-size:18px}
  .svb-layers__caption{display:none}
}

/* Haus als Explosionszeichnung */
.svb-house__svg{position:absolute;inset:0 0 28px 0;width:100%;height:calc(100% - 28px);overflow:visible}
.svb-house .hp{transition:filter .45s}
.svb-house .hp polygon,.svb-house .hp path{stroke-linejoin:round;transition:fill .45s,stroke .45s}
.svb-house .f-top{fill:#3A4139;stroke:rgba(245,243,239,.30);stroke-width:1}
.svb-house .f-left{fill:#2A3029;stroke:rgba(245,243,239,.22);stroke-width:1}
.svb-house .f-right{fill:#1E231D;stroke:rgba(245,243,239,.18);stroke-width:1}
.svb-house .f-top.roof{fill:#454D44}
.svb-house .ln{fill:none;stroke:rgba(245,243,239,.38);stroke-width:1.2;stroke-linecap:round;transition:stroke .45s}
.svb-house .ln-soft{stroke:rgba(245,243,239,.16)}
.svb-house .win{stroke:rgba(245,243,239,.5)}
.svb-house .pipe{fill:none;stroke:#7FA6C9;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.svb-house .pipe-b{stroke:#C98A6A}
.svb-house .stain{fill:rgba(15,17,15,.35);stroke:none;transition:fill .45s}
.svb-house .lbl{opacity:0;transition:opacity .4s}
.svb-house .lbl-dot{fill:var(--green-400)}
.svb-house .lbl-ln{stroke:rgba(127,192,91,.7);stroke-width:1.2;stroke-dasharray:3 3}
.svb-house .lbl-num{font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;fill:var(--green-400)}
.svb-house .lbl-txt{font-family:var(--font-body);font-size:14px;font-weight:600;fill:var(--stone-50)}
.svb-house .ping{opacity:0;transition:opacity .35s}
.svb-house .ping-c{fill:var(--green-400)}
.svb-house .ping-r{fill:none;stroke:var(--green-400);stroke-width:2;transform-box:fill-box;transform-origin:center}
/* abgelöstes Teil: Beschriftung sichtbar */
.svb-house .hp.is-out .lbl{opacity:.85}
/* aktives Teil: hell wie ein Messbild */
.svb-house .hp.is-active{filter:drop-shadow(0 0 22px rgba(127,192,91,.45))}
.svb-house .hp.is-active .f-top{fill:var(--stone-50);stroke:var(--ink-700)}
.svb-house .hp.is-active .f-left{fill:#DCD8D0;stroke:var(--ink-700)}
.svb-house .hp.is-active .f-right{fill:#BDB8AE;stroke:var(--ink-700)}
.svb-house .hp.is-active .ln{stroke:rgba(31,35,31,.55)}
.svb-house .hp.is-active .stain{fill:rgba(75,142,44,.45)}
.svb-house .hp.is-active .stain-mold{fill:rgba(46,54,39,.55)}
.svb-house .hp.is-active .lbl{opacity:1}
.svb-house .hp.is-active .lbl-txt{fill:var(--green-300)}
.svb-house .hp.is-active .ping{opacity:1}
.svb-house .hp.is-active .ping-r{animation:svbPing 1.6s ease-out infinite}
.svb-house.is-complete .hp .lbl{opacity:1}
.svb-house.is-complete .hp .f-top{stroke:rgba(127,192,91,.6)}
@keyframes svbPing{0%{transform:scale(.5);opacity:.9}100%{transform:scale(2.6);opacity:0}}
@media (max-width:999px){
  .svb-house .svb-layers__stage{height:min(118vw,500px)}
  .svb-house__svg{inset:0;height:100%;transform:scale(1.22);transform-origin:50% 52%}
  .svb-house .lbl{display:none}
  .svb-house .svb-layers__final{top:0}
}

/* Feuchte: Wand im Querschnitt */
.svb-wall__svg{position:absolute;inset:0 0 28px 0;width:100%;height:calc(100% - 28px);overflow:visible}
.svb-wall .w-face{stroke-linejoin:round;stroke-width:1;transition:fill .5s,stroke .5s}
.svb-wall .w-front{fill:#39403A;stroke:rgba(245,243,239,.32)}
.svb-wall .w-end{fill:#1F241F;stroke:rgba(245,243,239,.2)}
.svb-wall .w-top{fill:#4A524A;stroke:rgba(245,243,239,.28)}
.svb-wall .w-mauer .w-front{fill:#5A3F35}
.svb-wall .w-mauer .w-end{fill:#3A2923}
.svb-wall .w-mauer .w-top{fill:#6E5045}
.svb-wall .w-anstrich .w-front{fill:#D9D5CC;stroke:rgba(15,17,15,.35)}
.svb-wall .w-anstrich .w-end{fill:#A9A59C}
.svb-wall .w-anstrich .w-top{fill:#ECE9E3}
.svb-wall .w-innen .w-front{fill:#8D897F}
.svb-wall .w-innen .w-end{fill:#5F5C55}
.svb-wall .w-innen .w-top{fill:#A29E94}
.svb-wall .w-joint{fill:none;stroke:rgba(20,14,12,.55);stroke-width:1.4}
.svb-wall .w-grain{fill:rgba(245,243,239,.18)}
.svb-wall .w-water{fill:url(#w-wet);will-change:transform}
.svb-wall .w-water--end{opacity:.8}
.svb-wall .w-salt{fill:#F5F3EF;opacity:0;transition:opacity .6s}
.svb-wall .w-mold{fill:#1F2A1A;opacity:0;transition:opacity .7s}
.svb-wall .w-drop{fill:#8CC4EE;opacity:0;transition:opacity .6s}
.svb-wall .w-probe{opacity:0;transition:opacity .4s}
.svb-wall .w-probe__c{fill:var(--green-400)}
.svb-wall .w-probe__r{fill:none;stroke:var(--green-400);stroke-width:2;transform-box:fill-box;transform-origin:center}
.svb-wall .w-lbl{opacity:0;transition:opacity .45s}
.svb-wall .w-lbl line{stroke:rgba(127,192,91,.7);stroke-width:1.2;stroke-dasharray:3 3}
.svb-wall .w-lbl__name{font-family:var(--font-body);font-size:13px;font-weight:600;fill:var(--stone-50)}
.svb-wall .w-lbl__state{font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;fill:#7FB7E6;opacity:0;transition:opacity .4s}
.svb-wall .w-ground polygon{fill:#2A2620;stroke:rgba(245,243,239,.12)}
.svb-wall .w-ground .w-ground__side{fill:#1A1713}
.svb-wall.is-split .w-lbl{opacity:1}
.svb-wall.show-salt .w-salt{opacity:.85}
.svb-wall.show-mold .w-mold{opacity:.9}
.svb-wall.show-mold .w-drop{opacity:.9}
.svb-wall.show-probe .w-probe{opacity:1}
.svb-wall.show-probe .w-probe__r{animation:svbPing 1.6s ease-out infinite}
.svb-wall.show-probe .w-lbl__state{opacity:1}
.svb-wall .wl.is-active .w-lbl__name{fill:var(--green-300)}
.svb-wall .wl.is-active{filter:drop-shadow(0 0 18px rgba(78,155,214,.45))}
.svb-wall:not(.is-pinned) .wl,.svb-wall:not(.is-pinned) .w-water{transition:transform .9s cubic-bezier(.2,.8,.2,1)}
@media (max-width:999px){
  .svb-wall .svb-layers__stage{height:min(100vw,440px);order:-1}
  .svb-wall__svg{inset:0;height:100%}
  .svb-wall .w-lbl__name{font-size:15px}
  .svb-wall .w-lbl__state{font-size:13px}
}

.svb-house .svb-layers__final{top:0;left:0;transform:translate(0,8px);text-align:left}
.svb-house.is-complete .svb-layers__final{transform:none}
.svb-house.is-complete .svb-layers__caption{opacity:0}

/* Handy: Bühne klebt oben, Liste scrollt darunter und steuert die Animation */
@media (max-width:999px) and (prefers-reduced-motion:no-preference){
  .svb-layers.is-mscroll .svb-layers__stage{position:sticky;top:0;z-index:3;background:var(--ink-950);align-self:stretch;width:100%;box-shadow:0 18px 24px -12px var(--ink-950)}
  .svb-layers.is-mscroll .svb-layers__inner{display:flex;flex-direction:column;gap:8px}
  .svb-layers.is-mscroll .svb-layers__list{padding-bottom:28vh}
  .svb-layers.is-mscroll .svb-layers__item{opacity:.45;transition:opacity .3s}
  .svb-layers.is-mscroll .svb-layers__item.is-active{opacity:1}
  .svb-layers.is-mscroll .svb-layers__caption{display:flex;bottom:4px}
  .svb-house.is-mscroll .svb-layers__stage{height:min(96vw,400px)}
  .svb-wall.is-mscroll .svb-layers__stage{height:min(92vw,380px)}
  .svb-house.is-mscroll .svb-house__svg{transform:none}
  .svb-layers.is-mscroll .svb-layers__final{display:none}
}
