/* KOVA · Bildfolge in der Bühne (Solar-Runde 3, Punkt 1: „Ihr Dach, Modul für Modul“). Das Bild steht als Karte rechts in der Bühne, die
   Bilder liegen übereinander und blenden nur ein (fach.js), darüber Werte je Schritt und das Siegel der Abnahme. Ohne Skript steht das Bild mit
   allen Modulen da. Bewegt wird nur transform und opacity. */

.objekt.bildfolge{width:min(46vw,700px);right:var(--rand);top:calc(var(--kopf) + 3svh);bottom:7svh}
body.seite-fach:is([data-fach="solar"],[data-fach="fenster-tueren"],[data-fach="abbruch"],[data-fach="immobilien"]) .hero-text{width:min(40vw,600px)}
body.seite-fach:is([data-fach="solar"],[data-fach="fenster-tueren"],[data-fach="abbruch"],[data-fach="immobilien"]) .text.fach{width:min(38vw,560px)}
.bildfolge .halt{width:100%;height:auto;aspect-ratio:4 / 3;max-height:100%;perspective:none}
.bf-bilder{position:absolute;inset:0;overflow:hidden;isolation:isolate;border-radius:calc(var(--s-r) + 10px);background:#F3EBDD;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6),0 0 0 1px rgba(154,106,31,.12),0 60px 100px -60px rgba(60,40,10,.6),0 24px 40px -30px rgba(60,40,10,.35)}
.bf-bilder::after{content:"";position:absolute;inset:12px;z-index:6;border-radius:calc(var(--s-r) - 2px);pointer-events:none;box-shadow:inset 0 0 0 1px rgba(var(--akz-rgb),.7)}
.bf-bild{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;will-change:opacity}
.bf-bild[data-i="1"]{z-index:1}.bf-bild[data-i="2"]{z-index:2}.bf-bild[data-i="3"]{z-index:3}.bf-bild[data-i="4"]{z-index:4}
html.js .bf-bild:not([data-i="0"]){opacity:0}
html:not(.js) .bf-bild:not([data-i="3"]){display:none}

/* Werte je Schritt */
.bf-chip,.bf-siegel{position:absolute;z-index:7;display:flex;align-items:center;gap:12px;padding:12px 18px 12px 12px;border-radius:16px;font-size:13px;line-height:1.3;
  color:var(--t2);white-space:nowrap;background:linear-gradient(180deg,#FFFFFF,#F7F5F0);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 0 0 1px rgba(31,32,32,.06),0 24px 44px -22px rgba(31,32,32,.4)}
.bf-chip small{display:block;font-size:10.5px;color:var(--t3)}
.bf-chip b{display:block;font-weight:500;font-size:14.5px;color:var(--basalt)}
.bf-z{flex:none;display:grid;place-items:center;width:34px;height:39.3px;clip-path:var(--sechs);background:linear-gradient(160deg,var(--s-tief),var(--s-tief2))}
.bf-z .zi{width:19px;height:19px;stroke:#EEEBE5;stroke-width:3;--zi-a:var(--s-zweit-d)}
.c-plan{left:-5%;top:14%}
.c-zaehler{right:-4%;top:22%}
.c-strom{left:-6%;bottom:16%}
.bf-siegel{right:-3%;bottom:12%;padding:14px 20px 14px 14px;color:#1A1B1C;background:linear-gradient(160deg,var(--akz-1),var(--akz-2));
  box-shadow:0 30px 50px -24px rgba(60,40,10,.6),inset 0 1px 0 rgba(255,250,235,.6)}
.bf-siegel .zi{width:30px;height:30px;stroke:#1A1B1C;stroke-width:2.8;--zi-a:#1A1B1C}
.bf-siegel b{display:block;font-weight:600;font-size:14.5px}.bf-siegel small{display:block;font-size:11.5px;opacity:.75}
html.js .bf-chip,html.js .bf-siegel{opacity:0;visibility:hidden}
html:not(.js) .bf-chip,html:not(.js) .bf-siegel{display:none}

/* Fenster (Fenster-Runde 3, Stufe 2, „Von innen gesehen“): Maßlinien als Zeichnung über dem Bild, Hinweise und die drei Werte */
.bf-mass{position:absolute;inset:0;z-index:5;width:100%;height:100%;pointer-events:none;overflow:visible}
.bf-mass .ml{fill:none;stroke:var(--akz-2);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1}
.bf-mass .ml-ecke{stroke-width:3.5}
.bf-mass .mt{font:600 22px/1 var(--mono);fill:var(--akz-2);letter-spacing:.04em;paint-order:stroke;stroke:rgba(255,255,255,.9);stroke-width:6px}
html.js .bf-mass{opacity:0}
html:not(.js) .bf-mass{display:none}
html:not(.js) .bf-fenster .bf-bild[data-i="2"]{display:block}
html:not(.js) .bf-fenster .bf-bild[data-i="3"]{display:none}
.bf-fenster .c-aufmass{left:-5%;top:12%}
.bf-fenster .c-ral{right:-4%;top:26%}
.bf-fenster .c-werte{left:-6%;bottom:14%}
.cw{display:grid;gap:5px;margin-top:7px}
.cw>span{display:grid;grid-template-columns:46px 92px;align-items:center;gap:8px}
.cw em{font-style:normal;font-size:12px;color:var(--t2)}
.cw i{display:block;height:6px;border-radius:3px;overflow:hidden;background:rgba(31,32,32,.08)}
.cw u{display:block;height:100%;transform-origin:0 50%;background:linear-gradient(90deg,var(--akz-2),var(--akz-1))}
html.js .cw u{transform:scaleX(.22)}
.bildfolge .p-google{left:-4%;bottom:8%;z-index:7}

/* Abbruch (Abbruch-Runde 3, Stufe 2, „Vom Altbau zur freien Fläche“): ohne Skript steht die freie Fläche; die Waage mit den vier Stoffen */
html:not(.js) .bf-abbruch .bf-bild[data-i="3"]{display:none}
html:not(.js) .bf-abbruch .bf-bild[data-i="4"]{display:block}
.bf-abbruch .c-sicher{left:-5%;top:12%}
.bf-abbruch .c-waage{right:-4%;top:24%}
.bf-abbruch .bf-t{font-weight:500;font-size:22px;letter-spacing:-.02em}
.bf-stoffe{display:flex;width:150px;height:6px;margin-top:7px;transform-origin:0 50%}
.bf-stoffe i{display:block;flex:0 0 var(--w);height:100%;background:var(--c)}
html.js .bf-stoffe{transform:scaleX(0)}


/* Immobilien (Immobilien-Runde 3, Stufe 2, „Vom ersten Abend bis zum Schlüssel“): unter dem Bild die Schlüssel-Leiste mit fünf Stationen,
   der Schlüssel wandert mit den Bildern (immobilien() in fach.js). Ohne Skript steht der Abend mit allen Fenstern hell, die Leiste am Ziel. */
html:not(.js) .bf-immo .bf-bild[data-i="3"]{display:none}
html:not(.js) .bf-immo .bf-bild[data-i="4"]{display:block}
.bf-immo .bf-siegel{top:7%;bottom:auto}
.bf-immo .p-google{top:9%;bottom:auto}
.bf-weg{position:absolute;z-index:7;left:7%;right:7%;bottom:-34px;padding:15px 18px 12px;border-radius:18px;background:linear-gradient(180deg,#FFFFFF,#F1F3F5);
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 0 0 1px rgba(31,35,38,.07),0 26px 46px -24px rgba(20,24,28,.42)}
.sl-bahn{position:relative;height:42px;margin:0 38px}
.sl-spur{position:absolute;left:0;right:0;top:7px;height:2px;border-radius:1px;overflow:hidden;background:rgba(110,117,125,.22)}
.sl-spur u{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#6E757D,#C9CED4)}
.sl-stationen{position:absolute;inset:0;margin:0;padding:0;list-style:none}
.sl-stationen li{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;gap:8px;transform:translateX(-50%)}
.sl-stationen li:nth-child(2){left:25%}.sl-stationen li:nth-child(3){left:50%}.sl-stationen li:nth-child(4){left:75%}.sl-stationen li:nth-child(5){left:100%}
.sl-stationen i{display:block;width:16px;height:16px;border-radius:50%;background:#F4F6F8;box-shadow:inset 0 0 0 1.5px rgba(110,117,125,.42);transition:background .4s ease,box-shadow .4s ease}
.sl-stationen li.da i,html:not(.js) .sl-stationen i{background:linear-gradient(160deg,#E4E7EA,#8E959D);box-shadow:inset 0 0 0 1.5px rgba(78,85,92,.45)}
.sl-stationen span{font-size:11.5px;line-height:1.2;white-space:nowrap;color:var(--t3);transition:color .4s ease}
.sl-stationen li.jetzt span,html:not(.js) .sl-stationen li:last-child span{color:var(--tinte,#26292B);font-weight:500}
.sl-lauf{position:absolute;left:0;top:0;width:100%;height:16px;pointer-events:none;will-change:transform}
html:not(.js) .sl-lauf{transform:translate3d(100%,0,0)}
html:not(.js) .sl-spur u{transform:none}
.sl-schluessel{position:absolute;left:-17px;top:-9px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(160deg,#5A6168,#30363B);box-shadow:0 10px 18px -8px rgba(20,24,28,.6),inset 0 1px 0 rgba(255,255,255,.2)}
.sl-schluessel .zi{width:18px;height:18px;stroke:#EEF1F4;stroke-width:3;--zi-a:#C9CED4}
@media (max-width:900px){
  body.seite-fach:is([data-fach="solar"],[data-fach="fenster-tueren"],[data-fach="abbruch"],[data-fach="immobilien"]) :is(.hero-text,.text.fach){width:auto}
  .objekt.bildfolge{left:var(--rand);right:var(--rand);width:auto;top:calc(var(--kopf) + 6px);bottom:auto;height:auto}
  .bildfolge .halt{width:100%}
  .bf-bilder{border-radius:calc(var(--s-r) + 2px)}.bf-bilder::after{inset:8px;border-radius:calc(var(--s-r) - 6px)}
  .bf-chip,.bf-siegel{padding:8px 12px 8px 8px;gap:8px;font-size:11px;border-radius:12px}
  .bf-chip b,.bf-siegel b{font-size:12px}.bf-chip small{font-size:9.5px}
  .bf-z{width:26px;height:30px}.bf-z .zi{width:15px;height:15px}
  .bf-siegel .zi{width:22px;height:22px}
  .c-plan{left:4px;top:auto;bottom:-14px}.c-zaehler{right:4px;left:auto;top:auto;bottom:-14px}.c-strom{left:4px;bottom:-14px}.bf-siegel{right:4px;bottom:-14px}
  .bildfolge .p-google{left:auto;right:4px;bottom:-14px}
  .bf-abbruch .c-sicher{left:4px;right:auto;top:auto;bottom:-14px}.bf-abbruch .c-waage{right:4px;left:auto;top:auto;bottom:-14px}
  .bf-abbruch .bf-t{font-size:15px}.bf-stoffe{width:96px;height:4px;margin-top:4px}
  .bf-fenster .c-aufmass,.bf-fenster .c-werte{left:4px;right:auto;top:auto;bottom:-14px}.bf-fenster .c-ral{right:4px;left:auto;top:auto;bottom:-14px}
  .cw{gap:3px;margin-top:4px}.cw>span{grid-template-columns:34px 60px;gap:6px}.cw em{font-size:10px}.cw i{height:4px}
  .bf-weg{left:4px;right:4px;bottom:-24px;padding:10px 12px 8px;border-radius:13px}
  .sl-bahn{height:32px;margin:0 26px}.sl-spur{top:5px}
  .sl-stationen i{width:12px;height:12px}.sl-stationen span{font-size:10px}
  .sl-stationen li:not(.jetzt) span{opacity:0}html:not(.js) .sl-stationen li:last-child span{opacity:1}
  .sl-stationen li:first-child span{transform:translateX(30%)}.sl-stationen li:last-child span{transform:translateX(-30%)}
  .sl-lauf{height:12px}.sl-schluessel{width:26px;height:26px;left:-13px;top:-7px}.sl-schluessel .zi{width:14px;height:14px}
  .bf-immo .bf-siegel{right:4px;top:8px;bottom:auto}.bf-immo .p-google{right:auto;left:4px;top:8px;bottom:auto}
}
