/* Scroll-Buehne ("Eine Tour. Alle Perspektiven Ihres Projekts."): gemeinsames Layout der Propidado-Startseite und der Projektseiten (Abschnitt als Buehne).
   Verhalten: stage.js. Wurzel .pstage, Perspektiven .showcase-panel in .showcase (Spur), Kopf .section-head, Titel .perspective-titles.
   Ohne Skript, auf Smartphones, in kleinen Fenstern und bei reduzierter Bewegung gilt die Grundlage (Abschnitte untereinander); die Skript-Variante setzt
   .pstage-on an der Wurzel (Breite >= 981 px, Hoehe >= 680 px, keine reduzierte Bewegung): die Seite scrollt normal, die Scrollposition schiebt die
   Perspektiven von rechts herein. Kein Abfangen von Mausrad oder Touch. Farben/Schatten kommen aus Variablen der Seite (mit Rueckfallwerten). */

/* Grundlage */
.pstage{scroll-margin-top:var(--header-h,76px)}
.pstage .scrolly-viewport{width:min(100% - 40px,1180px);margin-inline:auto}
.pstage .showcase-panel.is-embed{position:relative}
.pstage .showcase-shield{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;touch-action:pan-y}
.pstage .showcase-shield span{position:absolute;right:14px;bottom:14px;padding:7px 14px;border-radius:999px;background:rgba(23,36,59,.86);color:#fff;font-size:13px;font-weight:600;opacity:0;transition:opacity .2s}
.pstage .showcase-panel:hover .showcase-shield span,.pstage .showcase-shield:focus-visible span{opacity:1}
.pstage .showcase-shield:focus-visible{outline:3px solid var(--blue,#2563eb);outline-offset:-3px}
.pstage .showcase-panel.is-interactive .showcase-shield{display:none}
.pstage .showcase-release{display:none;position:absolute;top:12px;right:12px;z-index:3;padding:7px 14px;border:1px solid var(--line,#dce1e6);border-radius:999px;background:#fff;color:var(--navy,#17243b);font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 10px rgba(23,36,59,.18)}
.pstage .showcase-panel.is-interactive .showcase-release{display:block}
@media (max-width:620px){.pstage .scrolly-viewport{width:min(100% - 28px,1180px)}}

/* Gepinnte Variante: Scrollweg je Perspektive = --pstage-step (kompakt 65 / normal 85 / lang 110 svh, gesetzt von stage.js) */
.pstage-on{padding:0}
.pstage-on .scrolly{height:calc(var(--panels,6) * var(--pstage-step,85svh))}
.pstage-on .scrolly-sticky{position:sticky;top:var(--header-h,76px);height:calc(100svh - var(--header-h,76px));display:flex;flex-direction:column;overflow:clip;padding-top:18px}
.pstage-on .scrolly-sticky .section-head{display:block;text-align:center;margin-bottom:10px}
.pstage-on .scrolly-sticky .section-head h2{margin:2px 0 0;font-size:clamp(28px,3.4vw,42px)}
.pstage-on .scrolly-sticky .section-head p:not(.eyebrow){display:block;margin:8px auto 0;max-width:900px;font-size:17px;line-height:1.5}
.pstage-on .scrolly-viewport{flex:1;min-height:0;width:100%;margin:0;overflow:clip}
.pstage-on .showcase{display:grid;grid-auto-flow:column;grid-auto-columns:100%;gap:0;width:100%;height:100%;min-height:0;transform:translate3d(var(--shift,0%),0,0);will-change:transform}
.pstage-on .showcase-panel{display:flex!important;flex-direction:column;animation:none!important;min-width:0;min-height:0;height:100%;padding-block:0;padding-inline:max(20px,calc((100% - 1180px)/2))}
.pstage-on .perspective-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.pstage-on .perspective-body{flex:1;min-height:0;box-shadow:var(--shadow,0 24px 70px rgba(23,36,59,.14))}
.pstage-on .showcase-panel.is-embed .perspective-body{display:block}
.pstage-on .showcase-embed{display:block;width:100%;height:100%;min-height:0}
.pstage-on .perspective-body>*{min-height:0}
/* kompakter Kopf und einblendende Perspektiventitel (Hoehe fuer den laengsten Namen reserviert, Titel uebereinander gestapelt) */
/* Vollbild-Zoom (Option zoom, Klasse .pstage-zoom): Rahmen -> Vollbild -> Rahmen; Faktor --pz, Eckenradius --pr und --pz-t setzt stage.js */
.pstage-on.pstage-zoom .scrolly{height:calc(var(--panels,6) * var(--pstage-step,85svh) + 2 * var(--pstage-zoom,70svh))}
.pstage-on.pstage-zoom .scrolly-sticky{width:100vw;margin-left:calc(50% - 50vw);background:var(--pstage-surface,#fff);transform:scale(var(--pz,1));transform-origin:50% 50%;border-radius:var(--pr,0);box-shadow:0 24px 70px rgba(23,36,59,calc(.22 * (1 - var(--pz-t,1))));will-change:transform}
.pstage-on.pstage-zoom .showcase-panel{padding-inline:max(20px,calc((100% - 1440px)/2))}
.pstage-on .scrolly-sticky .section-head{max-width:980px}
.pstage-on .scrolly-sticky .section-head .eyebrow{margin-bottom:6px}
.pstage-on .perspective-titles{display:grid;justify-items:center;margin:10px 0 14px}
.pstage-on .perspective-titles__item{grid-area:1/1;margin:0;max-width:100%;font-family:var(--display,inherit);font-size:clamp(26px,2.8vw,38px);font-weight:600;line-height:1.15;color:var(--navy,#17243b);text-align:center;opacity:0}

/* Hintergrundbild mit Parallax hinter der Buehne: haengt am Fenster (sticky) und driftet langsamer als der Abschnitt (stage.js, startStageBackground);
   nur Zugabe: ohne Skript, auf Smartphones (Breite < 761 px) und bei reduzierter Bewegung gibt es kein Bild. --pstage-veil: Abdeckung fuer die Lesbarkeit. */
.pstage-bg{display:none}
.pstage.pstage-bg-on{isolation:isolate}
.pstage.pstage-bg-on .pstage-bg{display:block;position:sticky;top:0;height:100svh;margin-bottom:-100svh;overflow:hidden;z-index:-1;pointer-events:none}
.pstage-bg__img{position:absolute;left:0;right:0;top:calc(var(--erl-r,0) * -1%);width:100%;height:calc(100% + var(--erl-r,0) * 2%);max-width:none;object-fit:cover;object-position:60% 50%;transform:translate3d(0,var(--my,0px),0);will-change:transform}
.pstage-bg::after{content:"";position:absolute;inset:0;background:var(--pstage-veil,linear-gradient(180deg,rgba(243,245,247,.9),rgba(243,245,247,.8) 50%,rgba(243,245,247,.9)))}

/* Projektseite: Abschnitt als Buehne (Markup aus landing-render.js, Wurzel .pstage[data-stage]); nur dort wirksam (Attribut data-stage), die Startseite hat eigene Grundregeln */
.pstage-intro{margin:0 0 32px}
.pstage .pstage-head{text-align:center;margin:0 auto 18px;max-width:960px}
.pstage .pstage-head h2{margin:2px 0 0}
.pstage .pstage-eyebrow{margin:0 0 6px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.pstage .pstage-lead{margin:8px auto 0;max-width:900px;opacity:.85}
.pstage-nav ul{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px}
.pstage-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 10px;border-radius:10px;color:inherit;text-decoration:none;font-size:14px;font-weight:600}
.pstage-nav a:hover{background:rgba(127,127,127,.12)}
.pstage-nav a[aria-current="true"]{background:rgba(127,127,127,.2)}
.pstage-nav a:focus-visible{outline:3px solid var(--blue,#2563eb);outline-offset:2px}
.pstage[data-stage]:not(.pstage-on) .perspective-titles{display:none}
.pstage[data-stage]:not(.pstage-on) .showcase{position:relative;display:grid;gap:44px}
.pstage[data-stage]:not(.pstage-on) .showcase-panel{display:block;padding:0;scroll-margin-top:calc(var(--header-h,76px) + 12px)}
.pstage[data-stage]:not(.pstage-on) .perspective-title{margin:0 0 14px;font-size:clamp(26px,3vw,38px);line-height:1.15}
.pstage[data-stage]:not(.pstage-on) .showcase-embed{width:100%;height:min(75vh,720px);border:0;display:block}
/* ein einzelnes Modul (nur mit Vollbild-Zoom): der Abschnittstitel genuegt, der Perspektiventitel bleibt nur fuer Hilfstechniken */
.pstage[data-stage-single] .perspective-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.pstage[data-stage] .perspective-body{position:relative;border-radius:14px;overflow:hidden;background:#fff}
.pstage[data-stage] .showcase-embed{border:0}

/* Inhaltsperspektiven (Option stage.content): Text- und Bildbloecke im gewohnten Zeilenraster, ohne weissen Rahmen (Farben kommen von Seite/Abschnitt).
   Gepinnt steht der Inhalt mittig in der Flaeche; Bilder bleiben ganz sichtbar (contain, Obergrenze --pstage-body-h aus stage.js), zu hoher Inhalt scrollt in sich. */
.pstage[data-stage] .perspective-content{border-radius:0;overflow:visible;background:transparent;box-shadow:none}
.pstage[data-stage]:not(.pstage-on) .showcase-panel[data-auto-title] .perspective-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.pstage-on .perspective-content{display:flex;flex-direction:column;justify-content:center;gap:24px;box-sizing:border-box;padding-bottom:24px;overflow-x:clip;overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin}
.pstage-on .perspective-content:focus-visible{outline:3px solid var(--blue,#2563eb);outline-offset:-3px}
.pstage-on .perspective-content .content-grid{width:min(100%,1120px);margin:0 auto}
.pstage-on .perspective-content .content-grid+.content-grid{margin-top:0}
.pstage-on .perspective-content .content-column{justify-content:center}
.pstage-on .perspective-content .rich-text{font-size:clamp(1.05em,1.7vw,1.45em)}
.pstage-on .perspective-content figure img{display:block;width:100%;height:auto;max-height:calc(var(--pstage-body-h,60svh) - 24px);object-fit:contain}
.pstage-on .perspective-content figure.fig-sized img{width:100%}
