/* =========================================================
   Hochwasser – Eigenvorsorge · Geschichten (Unity-WebGL-Seite)
   Gestaltung identisch zur Startseite: Fonts, Farben, Textbox,
   Menü-Button, Menü-Overlay, Pfeil-Icon.
   Die Scroll-/Unity-Mechanik (Spacer, Stage-Wrapper, Canvas)
   ist unverändert aus wgl3d.css übernommen.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-Regular.woff2") format("woff2");       font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-RegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-SemiBold.woff2") format("woff2");      font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-Bold.woff2") format("woff2");          font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-BoldItalic.woff2") format("woff2");    font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "BaWueSerif"; src: url("../fonts/BaWueSerifWeb-Regular.woff2") format("woff2");      font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSerif"; src: url("../fonts/BaWueSerifWeb-Bold.woff2") format("woff2");         font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens (wie Startseite) ---------- */
:root {
	--teal:   #4f9da4;
	--green:  #6fac84;
	--yellow: #fffc01;
	--ink:    #1d1d1b;
	--white:  #ffffff;
	--ease:   cubic-bezier(.45, 0, .2, 1);

	/* Textbox-Maße: 617 px Breite auf der 3840er-Bühne ≙ 308 px auf Full HD.
	   Hier fließend: 16 vw, aber zwischen 320 und 460 px. */
	--card-w: clamp(320px, 22vw, 460px);
	--card-r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
	margin: 0; padding: 0;
	overscroll-behavior-y: none;
	font-family: "BaWueSans", "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
html { overflow-y: scroll; }

/* ---------- Hintergrund + Unity-Canvas (unverändert) ---------- */
#bgDiv {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(180deg, var(--teal) 0%, var(--green) 100%);
	z-index: -10;
}
#unity-canvas {
	background: transparent; display: block;
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	z-index: -9;
}
@supports (height: 100svh) {
	#bgDiv, #unity-canvas { height: 100svh; }
}

/* ---------- Smartphone: Standbilder statt Unity-Szene ---------- */
.ewf-stills-wrap {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	z-index: -9; overflow: hidden; pointer-events: none;
}
@supports (height: 100svh) {
	.ewf-stills-wrap { height: 100svh; }
}
.ewf-stills-wrap img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 50%;
	opacity: 0; visibility: hidden;
}

/* ---------- Vignette über der Szene (Info-Stages) ---------- */
.scene-vignette {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	opacity: 0;
	background:
		linear-gradient(90deg,  rgba(38, 78, 118, .78) 0%, rgba(38, 78, 118, .35) 12%, rgba(38, 78, 118, 0) 34%),
		linear-gradient(270deg, rgba(38, 78, 118, .78) 0%, rgba(38, 78, 118, .35) 12%, rgba(38, 78, 118, 0) 34%),
		linear-gradient(0deg,   rgba(20, 60, 100, .55) 0%, rgba(20, 60, 100, 0) 22%);
}

/* ---------- Scroll-Mechanik (unverändert) ---------- */
.scroll-spacer { height: var(--scroll-height, 5000px); position: relative; }

.stage-wrapper {
	position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1;
	opacity: 0; pointer-events: none;
	filter: blur(var(--panel-blur-out, 0px));
}
.stage-wrapper.active { pointer-events: auto; }
.stage-wrapper[data-stage="0"] { opacity: 1; --panel-offset: 0px; --panel-blur-out: 0px; pointer-events: auto; }

/* ---------- Textbox (= .card der Startseite) ---------- */
.stage-wrapper .card {
	position: absolute; right: 5%; top: 50%;
	width: var(--card-w);
	transform: translateY(calc(-50% + var(--panel-offset, 40px)));
}
.card {
	background: var(--white); color: var(--ink);
	border-radius: var(--card-r) var(--card-r) var(--card-r) 0;   /* unten links eckig */
	box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
	display: flex; flex-direction: column;
	max-height: 86vh;
}
.card-head {
	position: relative; flex: none;
	display: flex; align-items: center;          /* Headline vertikal zentriert */
	background: var(--yellow);
	border-radius: var(--card-r) var(--card-r) 0 0;
	padding: 1.3rem 1.7rem 1.1rem;
	min-height: 5.8rem;
}
.card-head h3 {
	margin: 0;
	font-family: "BaWueSerif", Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.12;
}
/* gelbe Welle unter dem Kopf */
.card-wave {
	position: absolute; left: 0; right: 0; top: 100%;
	display: block; width: 100%; height: 30px;
	fill: var(--yellow); z-index: 1;
}
/* Kopf mit Foto (Info-Stages): Welle in Weiß über die Bildunterkante */
.card-head--img {
	padding: 0; min-height: 0; background: none; overflow: hidden;
}
.card-head--img img { display: block; width: 100%; height: auto; }
.card-head--img .card-wave { top: auto; bottom: -1px; fill: var(--white); }

.card-body {
	padding: 2.3rem 1.7rem 2rem;
	font-size: clamp(.85rem, .95vw, .95rem); line-height: 1.45;
	overflow-y: auto;
}
.card-head--img + .card-body { padding-top: 1.1rem; }
.card-body h4 { margin: 0 0 .6em; font-size: 1.05em; font-weight: 700; }
.card-body p  { margin: 0 0 .9em; }
.card-body p:last-child { margin-bottom: 0; }
.card-body u  { text-underline-offset: 3px; }

/* Link mit BW-Pfeil (wie „Geschichte starten") */
.cta {
	display: flex; align-items: center; gap: .7rem;
	margin-top: 1.5rem;
	font-weight: 700; font-size: 1em; line-height: 1.3;
	color: var(--ink); text-decoration: none;
}
.cta .arrow { width: 1.4em; height: 1.1em; flex: none; fill: var(--ink); transition: transform .3s var(--ease); }
.cta .label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cta:hover .arrow { transform: translateX(5px); }

/* ---------- Info-Marker (gelbes „i" in der Szene) ---------- */
.info-marker {
	position: absolute;
	left: var(--x, 40%); top: var(--y, 55%);
	width: clamp(56px, 5.4vw, 104px);
	transform: translate(-50%, -100%);   /* Spitze zeigt auf den Punkt */
	pointer-events: none; z-index: 1;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
	animation: marker-bob 2.4s ease-in-out infinite;
	opacity: 0; scale: .6;
	transition: opacity .4s var(--ease), scale .4s cubic-bezier(.34, 1.4, .64, 1);
}
.stage-wrapper.is-settled .info-marker { opacity: 1; scale: 1; transition-delay: .35s; }
.info-marker svg { display: block; width: 100%; height: auto; fill: var(--yellow); }
.info-marker text {
	fill: var(--ink);
	font-family: "BaWueSerif", Georgia, serif; font-weight: 700;
	font-size: 82px;
}
@keyframes marker-bob {
	0%, 100% { transform: translate(-50%, -100%); }
	50%      { transform: translate(-50%, calc(-100% - 8px)); }
}

/* ©-Badge auf Header-Fotos: klappt bei Hover/Fokus zum Bildnachweis auf */
.card-credit {
	position: absolute; left: .7rem; bottom: 1.6rem; z-index: 2;
	display: inline-flex; align-items: center;
	height: 1.3rem; max-width: 1.3rem;
	border-radius: .65rem;
	background: var(--yellow); color: var(--ink);
	font-size: .72rem; font-weight: 700; line-height: 1; white-space: nowrap;
	overflow: hidden; cursor: default;
	transition: max-width .35s var(--ease);
}
.card-credit__icon { flex: none; width: 1.3rem; text-align: center; }
.card-credit__text { padding-right: .7rem; opacity: 0; transition: opacity .25s var(--ease) .1s; }
.card-credit:hover, .card-credit:focus-within { max-width: 20rem; }
.card-credit:hover .card-credit__text, .card-credit:focus-within .card-credit__text { opacity: 1; }

/* ---------- Figuren (Overlay) ---------- */

.stage-overlay { position: absolute; pointer-events: none; z-index: 1; display: flex; align-items: flex-end; }
.stage-overlay[data-pos="left"]  { left: 4%;  bottom: 0; height: 62vh; }
.stage-overlay[data-pos="right"] { right: 4%; bottom: 0; height: 62vh; }
.stage-overlay img { display: block; height: 100%; width: auto; }
.stage-overlay img.is-flipped { transform: scaleX(-1); }   /* Figur gespiegelt, Blick nach rechts */
/* Größenangleich: Kopfgröße als Maßstab (Berger Pose 1–3 = 100 %) */
.stage-overlay img[src*="gutachterin"]  { height: 108%; }
.stage-overlay img[src*="sachkundiger"] { height: 100%; }

/* ---------- Preloader ---------- */
.preloader {
	position: fixed; inset: 0; z-index: 50;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	background: linear-gradient(180deg, var(--teal) 0%, var(--green) 100%);
	color: var(--white); text-align: center;
	transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { width: min(520px, 90vw); }
.preloader-kicker {
	margin: 0 0 .6rem;
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	opacity: .85;
}
.preloader-title {
	margin: 0 0 2rem;
	font-family: "BaWueSerif", Georgia, serif; font-weight: 700;
	font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.1;
}
.preloader-bar {
	height: 10px; width: 100%;
	background: rgba(255, 255, 255, .28);
	border-radius: 5px 5px 5px 0;      /* wie die Textbox: unten links eckig */
	overflow: hidden;
}
.preloader-fill {
	height: 100%; width: 0;
	background: var(--yellow);
	transition: width .25s var(--ease);
}
.preloader-text { margin: 1rem 0 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.preloader.is-error .preloader-fill { background: #e2564a; width: 100% !important; }


.menu {
	position: fixed; left: 48px; top: 48px; z-index: 30;
	width: 32px; height: 23px; padding: 0;
	background: none; border: 0; cursor: pointer;
}
.menu svg { display: block; width: 100%; height: 100%; fill: var(--white); overflow: visible; transition: fill .4s var(--ease); }
.menu.is-dark svg { fill: var(--ink); }
.menu .bar { transition: width .3s var(--ease); }
.menu:hover .bar--short, .menu:focus-visible .bar--short { width: 854px; }
.menu:focus-visible { outline: 2px solid var(--yellow); outline-offset: 8px; }

/* ---------- Menü-Overlay ---------- */
.nav {
	position: fixed; inset: 0; z-index: 40;
	visibility: hidden; pointer-events: none;
	transition: visibility 0s linear .6s;
}
.nav.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.nav-dim { position: absolute; inset: 0; background: rgba(64, 150, 158, .82); opacity: 0; transition: opacity .5s var(--ease); }
.nav.is-open .nav-dim { opacity: 1; }
.nav-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: 57vw; min-width: 520px;
	transform: translateX(-102%); transition: transform .6s var(--ease);
	overflow-y: auto;
}
.nav.is-open .nav-panel { transform: none; transition-delay: .05s; }
.nav-wave { position: fixed; left: 0; top: 0; width: 57vw; min-width: 520px; height: 100%; fill: var(--yellow); }
.nav-inner { position: relative; min-height: 100%; padding: 7vw 3rem 6rem 7.75vw; color: var(--ink); }

.nav-close { position: fixed; left: 38px; top: 38px; width: 32px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-close svg { display: block; width: 100%; height: 100%; fill: var(--ink); transition: transform .3s var(--ease); }
.nav-close:hover svg, .nav-close:focus-visible svg { transform: rotate(90deg); }

.nav-title {
	margin: 0 0 .4vw;
	font-weight: 700; font-size: clamp(1.6rem, 2.2vw, 2.7rem); line-height: 1; letter-spacing: .01em;
	text-transform: uppercase;
}
.nav-list { list-style: none; margin: 0 0 2.4vw; padding: 0; }
.nav-list a {
	position: relative; display: inline-block;
	padding: .65vw 0 .65vw 2.5vw;
	font-size: clamp(1.05rem, 1.46vw, 1.8rem); line-height: 1.3; font-style: italic;
	color: #2f5f6c; text-decoration: none;
	transition: color .25s var(--ease);
}
.nav-list a::before {
	content: ""; position: absolute; left: 0; top: 50%;
	width: 1.35vw; height: 1.1vw; min-width: 18px; min-height: 15px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='128 196 786 632'%3E%3Cpath d='M597 196 914 512 597 828 537 768 750 555H128V469H750L537 256L597 196Z'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='128 196 786 632'%3E%3Cpath d='M597 196 914 512 597 828 537 768 750 555H128V469H750L537 256L597 196Z'/%3E%3C/svg%3E") no-repeat center / contain;
	transform: translateY(-50%); transition: transform .3s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a.is-current { color: var(--ink); font-weight: 700; outline: none; }
.nav-list a:hover::before, .nav-list a:focus-visible::before { transform: translateY(-50%) translateX(6px); }

/* Impressum | Datenschutz: unten, zentriert über der gelben Fläche (wie Startseite) */
.nav-footer {
	position: absolute; left: 0; bottom: 2.9vw; width: 50.5vw;
	display: flex; justify-content: center; gap: 1.1vw;
	font-size: clamp(.7rem, .78vw, 1rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.nav-footer a { color: var(--ink); text-decoration: none; }
.nav-footer a:hover, .nav-footer a:focus-visible { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: max(1px, .07em); }

/* ---------- Scroll-Hinweis (erster Frame) ---------- */
.scroll-hint {
	position: fixed; left: 50%; bottom: 28px; z-index: 5;
	transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	color: var(--ink); pointer-events: none;
	font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-hint__arrow {
	width: 26px; height: 22px; fill: currentColor;
	transform: rotate(90deg);
	animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-hint-bounce {
	0%, 100% { translate: 0 0; opacity: 1; }
	50%      { translate: 0 8px; opacity: .55; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.stage-wrapper .card {
		width: 90vw; right: 5vw; top: auto; bottom: 4vh;
		transform: translateY(var(--panel-offset, 40px));
		max-height: 60vh;
	}
	.card-body { max-height: 34vh; font-size: .95rem; }
	.card-head { padding: 1rem 1.3rem .8rem; min-height: 0; }
	.card-body { padding: 1.8rem 1.3rem 1.5rem; }
	.card-head--img img { max-height: 22vh; object-fit: cover; }
	.card-slides { max-height: 22vh; }
	.card-head--img .card-slide img { max-height: none; }

	.stage-overlay[data-pos="left"], .stage-overlay[data-pos="right"] { height: 42vh; left: 2%; bottom: auto; top: 10vh; }

	.menu { left: 20px; top: 20px; width: 30px; height: 21px; }
	.nav-panel, .nav-wave { width: 100%; min-width: 0; }
	.nav-wave { display: none; }
	.nav-panel { background: var(--yellow); }
	.nav-inner { padding: 5.5rem 1.5rem 4.5rem; }
	.nav-title { margin-bottom: .4rem; }
	.nav-list { margin-bottom: 1.8rem; }
	.nav-list a { padding: .45rem 0 .45rem 2.2rem; }
	.nav-footer { width: 100%; bottom: 1.6rem; gap: 1rem; }
	.scroll-hint { bottom: 16px; }
	.nav-close { left: 16px; top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.info-marker, .scroll-hint__arrow { animation: none; }
	.nav, .nav-dim, .nav-panel, .cta .arrow, .nav-close svg { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- Bildwechsel im Kopf der Info-Boxen ---------- */
.card-slides { flex: 1 1 100%; width: 100%; position: relative; aspect-ratio: 1132 / 532; overflow: hidden; background: #d9dedf; }
.card-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.card-slide.is-active { opacity: 1; }
.card-head--img .card-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .card-slide { transition-duration: .01s; } }

/* verlinkte Menü-Überschriften */
.nav-title a { color: inherit; text-decoration: none; }
.nav-title a:hover, .nav-title a:focus-visible { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: max(1px, .07em); outline: none; }

/* Menü-Button überall gleich groß und gleich positioniert (wie im Wissenspool) */
.menu { left: clamp(16px, 3vw, 48px); top: 42px; width: 32px; height: 23px; }
@media (max-width: 781px) { .menu { left: 16px; top: 36px; width: 28px; height: 20px; } }

/* „i“ als Link zum Wissenspool-Beitrag (neuer Tab) */
.info-marker--link { display: block; pointer-events: auto; cursor: pointer; }
.stage-wrapper:not(.active):not([data-stage="0"]) .info-marker--link { pointer-events: none; }
.stage-wrapper.is-settled .info-marker--link:hover, .stage-wrapper.is-settled .info-marker--link:focus-visible { scale: 1.12; transition-delay: 0s; }
.info-marker--link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Kein Fokus-Rahmen nach Mausklick – nur bei Tastatur-Bedienung (:focus-visible) */
:focus:not(:focus-visible) { outline: none !important; }

/* Tablet (Touch, 769–1366px): Info-Karten breiter und Text größer */
@media (min-width: 769px) and (max-width: 1366px) and (pointer: coarse) {
	.stage-wrapper .card { width: min(440px, 48vw); }
	.card-body { font-size: 1rem; }
	.card-body p { font-size: 1rem; }
}
/* Smartphone: „Scrollen“-Hinweis würde die Karte überdecken */
@media (max-width: 768px) { .scroll-hint { display: none; } }

/* Text-Links wie im Wissenspool: dünn unterstrichen, beim Mouse-over kräftiger (abhängig von der Schriftgröße) */
.cta .label, .card-body p a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s var(--ease); }
.cta:hover .label, .cta:focus-visible .label, .card-body p a:hover, .card-body p a:focus-visible { text-decoration-thickness: max(2px, .12em); }

/* ---------- Smartphone: normale Seite – Block für Block (Bild des Hauses, darunter die Textbox) ---------- */
html.ewf-stills, html.ewf-stills #bgDiv { background: #fff; }
html.ewf-stills .menu svg, html.ewf-stills .menu.is-dark svg { fill: var(--ink); }
html.ewf-stills .scene-vignette, html.ewf-stills .scroll-hint, html.ewf-stills .scroll-spacer { display: none; }

html.ewf-stills .stage-wrapper {
	position: relative; inset: auto; width: 100%; height: auto;
	opacity: 1 !important; filter: none !important; pointer-events: auto;
}
/* Bild des Hauses: feste Höhe, Bild etwas höher → Parallax-Spielraum */
html.ewf-stills .m-scene {
	position: relative; overflow: hidden;
	height: min(132vw, 72svh); background: #cfe3f0;
}
html.ewf-stills .m-scene > img {
	position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 130%;
	object-fit: cover; will-change: transform;
}
/* Figur unten links im Bild */
html.ewf-stills .m-scene .stage-overlay {
	position: absolute; left: 16px; right: auto; top: auto; bottom: 0;
	height: 55%; z-index: 1;
}
html.ewf-stills .m-scene .stage-overlay img[src*="gutachterin"] { height: 104%; }
/* „i“ mittig im Bild */
html.ewf-stills .m-scene .info-marker {
	left: 50%; top: 50%; width: 50px; z-index: 2;
	opacity: 1; scale: 1;
}

/* Textbox: volle Breite, im Fluss, Schrift/Abstände wie auf der Startseite */
html.ewf-stills .stage-wrapper .card {
	position: relative; left: auto; right: auto; top: auto; bottom: auto;
	width: auto; max-height: none; transform: none;
	margin-top: -26px; z-index: 2;          /* gelber Kopf überlappt das Bild leicht */
	border-radius: 0;
	box-shadow: 0 -12px 24px rgba(0, 0, 0, .16), 0 12px 24px rgba(0, 0, 0, .16);   /* Schatten oben und unten */
}
html.ewf-stills .card-head { padding: 24px 22px 14px; min-height: 0; border-radius: 0; }
/* Foto in der Info-Box: mit Rand auf Höhe des Fließtexts, rundum abgerundet, ohne Welle */
html.ewf-stills .card-head--img { border-radius: 0; overflow: visible; }
html.ewf-stills .card-slides { border-radius: 14px; overflow: hidden; }
html.ewf-stills .card-head--img .card-wave { display: none; }
html.ewf-stills .card-head--img .card-credit { left: calc(var(--m-pad, 22px) + .7rem); bottom: .7rem; }
html.ewf-stills .card-head h3 { font-size: 26px; line-height: 1.12; }
html.ewf-stills .card-wave { height: 32px; }
html.ewf-stills .card-body {
	max-height: none; overflow: visible;
	font-size: 16px; line-height: 1.5; padding: 40px 22px 32px;
}
html.ewf-stills .card-body p { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
html.ewf-stills .card-body p:last-child { margin-bottom: 0; }
html.ewf-stills .card-body h4 { font-size: 16px; line-height: 1.35; margin-bottom: 10px; }
html.ewf-stills .card-head--img { padding: 22px var(--m-pad, 22px) 0; --m-pad: 22px; }
html.ewf-stills .card-head--img + .card-body { padding-top: 16px; }
html.ewf-stills .card-head--img img, html.ewf-stills .card-slides { max-height: 16vh; }
html.ewf-stills .cta { margin-top: 22px; font-size: 16px; gap: 12px; }
html.ewf-stills .cta .arrow { width: 22px; height: 18px; }


/* Tablet im Hochformat (Block-Ansicht): Text auf angenehme Zeilenlänge begrenzen, etwas größer */
@media (min-width: 600px) {
	html.ewf-stills .m-scene { height: min(100vw, 70svh); }
	html.ewf-stills .card-head, html.ewf-stills .card-body { padding-left: max(32px, calc((100% - 640px) / 2)); padding-right: max(32px, calc((100% - 640px) / 2)); }
	html.ewf-stills .card-head--img { --m-pad: max(32px, calc((100% - 640px) / 2)); padding: 28px var(--m-pad) 0; }
	html.ewf-stills .card-head h3 { font-size: 32px; }
	html.ewf-stills .card-body, html.ewf-stills .card-body p, html.ewf-stills .card-body h4, html.ewf-stills .cta { font-size: 18px; }
	html.ewf-stills .card-head--img img, html.ewf-stills .card-slides { max-height: 30vh; }
	html.ewf-stills .m-scene .info-marker { width: 64px; }
	html.ewf-stills .m-scene .stage-overlay { left: 6%; }
}

/* „Scrollen“-Hinweis ist klickbar → nächster Frame */
button.scroll-hint { background: none; border: 0; padding: 8px 12px; margin: 0; font-family: inherit; cursor: pointer; pointer-events: auto; }
button.scroll-hint:hover .scroll-hint__arrow { animation-play-state: paused; }
button.scroll-hint:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Punkte-Navigation links (nur 3D-Ansicht) */
.story-dots {
	/* linke Kante der Punkte bündig mit dem Menü-Button (Punkt 10 px mittig in 22 px → 6 px Versatz) */
	position: fixed; left: calc(clamp(16px, 3vw, 48px) - 6px); top: 50%; transform: translateY(-50%); z-index: 6;
	display: flex; flex-direction: column;
	/* Abstand: großzügig, bei vielen Frames so, dass alle Punkte in ~64 % der Höhe passen */
	gap: clamp(4px, calc((64vh - var(--n, 13) * 22px) / var(--n, 13)), 12px);
}
.story-dot {
	position: relative; display: block; width: 22px; height: 22px; padding: 0; margin: 0;
	background: none; border: 0; cursor: pointer;
}
.story-dot::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
	border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .25s var(--ease), background .25s var(--ease);
}
.story-dot:hover::before { transform: scale(1.3); }
.story-dot.is-active::before { background: var(--yellow); transform: scale(1.45); }
.story-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 50%; }
/* Titel des Abschnitts beim Mouse-over */
.story-dot__label {
	position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%);
	white-space: nowrap; pointer-events: none;
	background: var(--ink); color: var(--white); font-size: .78rem; font-weight: 700; line-height: 1;
	padding: 6px 9px; border-radius: 4px; opacity: 0;
	transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.story-dot:hover .story-dot__label, .story-dot:focus-visible .story-dot__label { opacity: 1; transform: translate(0, -50%); }
html.ewf-stills .story-dots { display: none; }
@media (max-width: 781px) { .story-dots { left: 10px; } }
