/* KOVA Immobilien · Warum KOVA: Vier Unterschriften (Immobilien-Runde 3, Stufe 1; Logik bericht.js, Gegenüberstellung aus hochwertig.css).
   Ein Zustandsbericht über ein Beispielhaus auf Papier: Kopf, Ansicht des Hauses in Silberlinien mit vier Bereichen (Dach und Solar,
   Fenster und Türen, Substanz, ganzes Haus), darunter vier Zeilen mit Befund und Unterschrift. Grundzustand (ohne Skript, ruhig, Telefon,
   schmale Fenster): das fertige Blatt, darunter die vier Fachbetriebe. Ab 1180 × 720 mit Skript eine gehaltene Bühne: der Bereich, der dran ist,
   leuchtet im Silberlicht, seine Zeile füllt sich, die Unterschrift zeichnet sich; rechts der Fachbetrieb (seit 03.11. ohne
   Personennamen und Fotos, docs/50 Punkt 27: es unterschreiben KOVA Solar, KOVA Fenster & Türen, KOVA Abbruch und KOVA Immobilien). Charakter „Ruhe“ in Grau und Silber: Hellgrau, Papier,
   Schiefer, Silber, Silberlicht, weiche Rundungen, langsame Bewegung. Bewegt werden transform, opacity und stroke-dashoffset. */

.zb-warum{overflow-x:clip}
.zb-blatt{position:relative;max-width:760px;margin-top:clamp(44px,6svh,70px);padding:20px 24px 16px;border-radius:18px;color:#26292B;
  background:radial-gradient(rgba(38,41,43,.035) 1px,transparent 1.3px) 0 0/6px 6px,linear-gradient(180deg,#F9FAFB,#ECEFF2);
  box-shadow:inset 0 0 0 1px rgba(142,149,157,.35),inset 0 0 0 7px #F9FAFB,inset 0 0 0 8px rgba(142,149,157,.28),0 50px 90px -50px rgba(0,0,0,.75)}
.zb-kopf{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(110,117,125,.45)}
.zb-kopf svg{flex:none;width:22px;height:auto}
.zb-kopf b{display:block;font-weight:300;font-size:24px;letter-spacing:-.02em}
.zb-kopf small{display:block;margin-top:3px;font-size:10.5px;color:rgba(38,41,43,.55)}
.zb-kopf em{margin-left:auto;padding:4px 8px 3px;border-radius:99px;font-style:normal;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:#555B62;box-shadow:inset 0 0 0 1px rgba(142,149,157,.6)}
/* die Ansicht */
.zb-haus{display:block;width:100%;height:auto;margin-top:12px;overflow:visible}
.zb-haus path,.zb-haus rect{vector-effect:non-scaling-stroke}
.zb-boden{fill:none;stroke:rgba(38,41,43,.45);stroke-width:1.4}
.zb-f{fill:rgba(142,149,157,.06);stroke:#6E757D;stroke-width:1.4;stroke-linejoin:round}
.zb-wand{fill:rgba(142,149,157,.04)}
.zb-fe{fill:rgba(78,85,92,.12)}
.zb-tuer{fill:rgba(110,117,125,.22)}
.zb-l{fill:none;stroke:rgba(110,117,125,.7);stroke-width:1.1;stroke-linecap:round}
.zb-solar{stroke-dasharray:5 4}
.zb-zone .zb-f,.zb-zone .zb-l{transition:fill .5s ease,stroke .5s ease}
.zb-umriss{fill:none;stroke:transparent;stroke-width:2.4;stroke-dasharray:8 6;transition:stroke .5s ease}
.zb-marken circle{fill:#3B4147;stroke:#F9FAFB;stroke-width:2.5}
.zb-marken text{font:600 14px/1 "Geist Mono",ui-monospace,monospace;fill:#D8DDE2;text-anchor:middle}
/* die Zeilen */
.zb-zeilen{margin:10px 0 0;padding:0;list-style:none}
.zb-zeilen li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) 130px;gap:14px;align-items:center;padding:9px 0;border-bottom:1px dashed rgba(110,117,125,.32)}
.zb-bereich{display:flex;align-items:center;gap:9px}
.zb-bereich i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-style:normal;font-size:11px;color:#D8DDE2;background:#3B4147}
.zb-bereich b{font-weight:400;font-size:14.5px}
.zb-befund{font-size:13px;line-height:1.4;color:rgba(38,41,43,.72)}
.zb-unterschrift{display:flex;flex-direction:column;gap:2px}
.zb-unterschrift svg{width:100%;height:28px;fill:none;stroke:#26292B;stroke-width:1.5;stroke-linecap:round;overflow:visible}
.zb-unterschrift path{stroke-dasharray:1 1;stroke-dashoffset:0}
.zb-unterschrift small{padding-top:3px;border-top:1px solid rgba(38,41,43,.45);font-size:9.5px;color:rgba(38,41,43,.6)}
.zb-fuss{margin:12px 0 0;font-size:10.5px;color:rgba(38,41,43,.55)}
/* die Personen als Liste */
.zb-personen{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 40px;margin:clamp(40px,6svh,64px) 0 0;padding:0;list-style:none}
.zb-p{display:grid;grid-template-columns:96px minmax(0,1fr);gap:20px;align-items:start}
.zb-p figure{margin:0;aspect-ratio:4 / 5;border-radius:12px;overflow:hidden;background:#3B4147;box-shadow:inset 0 0 0 1px rgba(216,221,226,.3)}
.zb-p img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
/* der Fachbetrieb statt eines Fotos: sein Kristall auf Schiefer, die linke Facette in seiner Farbe */
.zb-p figure.zb-fb{display:grid;place-items:center;
  background:radial-gradient(70% 55% at 50% 42%,rgba(216,221,226,.2),rgba(216,221,226,0) 72%),linear-gradient(160deg,#4E555C,#2A2F34)}
.zb-fb svg{width:46%;height:auto;filter:drop-shadow(0 10px 14px rgba(0,0,0,.45))}
.zb-wer{display:flex;align-items:center;gap:8px;font-size:11px;color:rgba(236,238,240,.6)}
.zb-wer svg{flex:none;width:14px;height:auto}
.zb-text h3{margin-top:8px;font-weight:300;font-size:clamp(24px,2.2vw,32px);line-height:1.1;letter-spacing:-.03em;color:#F3F5F7}
.zb-text p{margin-top:8px;font-size:15px;line-height:1.6;color:rgba(236,238,240,.72)}
.zb-text .zb-sieht{margin-top:12px;font-size:11.5px;color:#D8DDE2}
.zb-ende{grid-column:1 / -1;display:block}
.zb-zusagen{display:flex;flex-wrap:wrap;gap:8px 10px;margin:14px 0 0;padding:0;list-style:none}
.zb-zusagen li{padding:8px 14px 8px 30px;position:relative;border-radius:99px;font-size:13.5px;color:#F3F5F7;background:rgba(216,221,226,.08);box-shadow:inset 0 0 0 1px rgba(216,221,226,.28)}
.zb-zusagen li::before{content:"";position:absolute;left:12px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:#D8DDE2;box-shadow:0 0 8px rgba(216,221,226,.7)}
@media (max-width:900px){
  .zb-personen{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .zb-blatt{margin-left:-6px;margin-right:-6px;padding:14px 14px 12px;border-radius:14px}
  .zb-kopf b{font-size:19px}.zb-kopf em{display:none}
  .zb-zeilen li{grid-template-columns:minmax(0,1fr) 92px;gap:4px 12px}
  .zb-befund{grid-column:1;grid-row:2;font-size:12px}
  .zb-unterschrift{grid-column:2;grid-row:1 / 3}
  .zb-p{grid-template-columns:72px minmax(0,1fr);gap:14px}
  .zb-text p{font-size:14.5px}
}

/* ── Gehaltene Bühne ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (min-width:1180px) and (min-height:720px){
  html.js:not(.ruhig) .zb-warum .kopfzeile{margin-bottom:0}
  html.js:not(.ruhig) .zb-strecke{position:relative;height:calc(var(--bh) * 4.4);margin:calc(-1 * var(--kopf)) calc(-1 * var(--rand)) 0}
  html.js:not(.ruhig) .zb-buehne{position:sticky;top:0;height:var(--bh);overflow:hidden;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    gap:clamp(40px,5vw,96px);align-items:center;padding:calc(var(--kopf) + clamp(18px,3svh,34px)) max(var(--rand),calc((100% - 1320px) / 2)) clamp(22px,3.4svh,40px)}
  html.js:not(.ruhig) .zb-blatt{margin:0;max-width:none;max-height:100%}
  html.js:not(.ruhig) .zb-haus{max-height:calc(var(--bh) - var(--kopf) - 330px)}
  /* der Bereich, der dran ist, leuchtet; die anderen ruhen */
  html.js:not(.ruhig) .zb-zone.jetzt .zb-f{fill:rgba(216,221,226,.42);stroke:#6E757D}
  html.js:not(.ruhig) .zb-zone.jetzt .zb-fe{fill:rgba(216,221,226,.75)}
  html.js:not(.ruhig) .zb-zone.jetzt .zb-l{stroke:#555B62}
  html.js:not(.ruhig) .zb-ganz.jetzt .zb-umriss,html.js:not(.ruhig) .zb-blatt.fertig .zb-umriss{stroke:#8E959D}
  html.js:not(.ruhig) .zb-blatt.fertig .zb-fe{fill:rgba(216,221,226,.75)}
  html.js:not(.ruhig) .zb-marken g{opacity:.35;transition:opacity .4s ease}
  html.js:not(.ruhig) .zb-marken g.an{opacity:1}
  /* Zeilen: erst leer, dann Befund und Unterschrift */
  html.js:not(.ruhig) .zb-zeilen li{transition:background-color .4s ease}
  html.js:not(.ruhig) .zb-zeilen li.jetzt{background:linear-gradient(90deg,rgba(216,221,226,.22),rgba(216,221,226,0))}
  html.js:not(.ruhig) .zb-zeilen li:not(.jetzt):not(.fertig) :is(.zb-befund,.zb-unterschrift small){opacity:0}
  html.js:not(.ruhig) .zb-zeilen li :is(.zb-befund,.zb-unterschrift small){transition:opacity .4s ease .3s}
  html.js:not(.ruhig) .zb-zeilen li:not(.jetzt):not(.fertig) .zb-unterschrift path{stroke-dashoffset:1}
  html.js:not(.ruhig) .zb-zeilen li .zb-unterschrift path{transition:stroke-dashoffset 1.1s ease .7s}
  /* rechts die Person, die dran ist */
  html.js:not(.ruhig) .zb-personen{display:grid;grid-template-columns:none;margin:0;gap:0;align-self:center}
  html.js:not(.ruhig) .zb-p{grid-area:1 / 1;display:flex;flex-direction:column;align-items:flex-start;gap:18px;
    opacity:0;visibility:hidden;transform:translate3d(0,-10px,0);transition:opacity .25s ease,transform .4s ease,visibility 0s linear .25s}
  html.js:not(.ruhig) .zb-p.jetzt{opacity:1;visibility:visible;transform:none;transition:opacity .6s ease .2s,transform .9s var(--s-kurve) .2s,visibility 0s}
  html.js:not(.ruhig) .zb-p.jetzt~.zb-p:not(.jetzt){transform:translate3d(0,16px,0)}
  html.js:not(.ruhig) .zb-p figure{width:150px}
  html.js:not(.ruhig) .zb-text h3{font-size:clamp(34px,3.2vw,52px)}
  html.js:not(.ruhig) .zb-text p{font-size:17px}
}
@media (min-width:1180px) and (min-height:720px) and (max-height:860px){
  html.js:not(.ruhig) .zb-p figure{width:116px}
  html.js:not(.ruhig) .zb-text p{font-size:15.5px}
  html.js:not(.ruhig) .zb-zeilen li{padding:6px 0}
}
