/* ==========================================================================
   Portfolio Silvan Varadi
   Stil wie Lebenslauf und Motivationsschreiben: Schieferblau, Sand, Hellgrau,
   Roboto (Text, Name) und Ubuntu (Überschriften).
   Farben, Schriften und Abstände stehen in theme.json.
   ========================================================================== */

:root {
	--radius: 14px;
	--schatten: 0 24px 50px -28px rgb(27 42 53 / 0.35);
	--weich: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
}

/* ---------- Seitenübergänge (View Transitions, ohne JavaScript) ---------- */
@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.35s;
}

/* ---------- Kopfzeile: Schieferblau wie im Briefkopf ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--schiefer);
	color: #fff;
	transition: box-shadow 0.3s;
}

@supports (animation-timeline: scroll()) {
	.site-header {
		animation: kopf-schatten linear both;
		animation-timeline: scroll();
		animation-range: 0 120px;
	}
	@keyframes kopf-schatten {
		to { box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.6); }
	}
}

/* Die Vorlage legt einen Rahmen um die Kopfzeile: der Rahmen muss kleben, sonst scrollt sie weg */
.wp-site-blocks > :has(> .site-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > :has(> .site-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > :has(> .site-header) { top: 46px; } }

.marke {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
}

.marke svg {
	width: 34px;
	height: auto;
	display: block;
	color: #fff;
}

.marke__name {
	font-family: var(--wp--preset--font-family--grundschrift);
	font-weight: 400;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
}

.marke__name b {
	color: var(--wp--preset--color--sand);
	font-weight: 400;
}

.site-header .wp-block-navigation a {
	color: #fff;
	text-decoration: none;
	position: relative;
	padding-block: 0.35em;
}

.site-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--sand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--weich);
}

.site-header .wp-block-navigation a:hover::after,
.site-header .wp-block-navigation .current-menu-item a::after {
	transform: scaleX(1);
}

/* Handy-Menü (04.12.): Nachtblau mit Schiefer-Schein oben, grosse Einträge in der Überschriftenschrift mit Nummer,
   kommen nacheinander von unten herein. WordPress setzt sonst weissen Grund (höhere Spezifität, darum .site-header davor). */
.site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background:
		radial-gradient(90% 50% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--schiefer) 70%, transparent), transparent 75%),
		var(--wp--preset--color--nacht);
	color: #fff;
	padding: 1rem var(--wp--style--root--padding-right, 1.25rem) 2rem var(--wp--style--root--padding-left, 1.25rem);
	animation: menue-auf 0.35s var(--weich) both;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	/* genau an der Stelle des Menü-Symbols (Abstand des Containers abgezogen) */
	top: -0.125rem;
	right: -0.6rem;
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgb(255 255 255 / 0.25);
	color: #fff;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 6rem;
	align-items: stretch !important;
	min-height: calc(100dvh - 3rem);
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	align-items: stretch !important;
	gap: 0 !important;
	counter-reset: menue;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	counter-increment: menue;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
	animation: menue-eintrag 0.5s var(--weich) both;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.06s; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.12s; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	width: 100%;
	padding-block: 1.1rem;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(2rem, 10vw, 3rem);
	line-height: 1;
	letter-spacing: 0.01em;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a::before {
	content: counter(menue, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--grundschrift);
	font-weight: 400;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--sand);
	min-width: 1.6rem;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a::after { display: none; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item a { color: var(--wp--preset--color--sand); }
/* Unten: Beruf als Sand-Etikett, wie im Einstieg */
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::after {
	content: "Interactive Media Designer";
	margin-top: auto;
	align-self: flex-start;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.45em 0.8em;
	animation: menue-eintrag 0.5s 0.2s var(--weich) both;
}
@keyframes menue-auf { from { opacity: 0; } }
@keyframes menue-eintrag { from { opacity: 0; transform: translateY(1.2rem); } }
@media (prefers-reduced-motion: reduce) {
	.site-header .wp-block-navigation__responsive-container.is-menu-open,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::after { animation: none; }
}

/* ---------- Dunkle Bereiche (Einstieg, Kontakt, Fusszeile) ---------- */
.ist-dunkel {
	background: var(--wp--preset--color--schiefer);
	color: #fff;
}

.ist-dunkel :where(h1, h2, h3, h4, p, a:not(.wp-element-button)) {
	color: #fff;
}

.ist-dunkel .ueberzeile {
	color: var(--wp--preset--color--sand);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: rgb(255 255 255 / 0.55);
	background: transparent;
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--sand);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--schiefer);
}

.wp-block-button__link {
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--weich);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* ---------- Einstieg ---------- */
.einstieg {
	position: relative;
	overflow: hidden;
}

.einstieg__beruf {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: clamp(1.05rem, 1.6vw, 1.4rem);
	display: inline-block;
	padding-bottom: 0.6rem;
	border-bottom: 4px solid var(--wp--preset--color--sand);
	margin-top: var(--wp--preset--spacing--30) !important;
}

.einstieg__satz {
	max-width: 34ch;
	opacity: 0.92;
}

.einstieg__bild img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.25));
}

/* Gestaffeltes Erscheinen beim Laden */
.erscheint > * {
	animation: rein 0.9s var(--weich) both;
}
.erscheint > *:nth-child(2) { animation-delay: 0.08s; }
.erscheint > *:nth-child(3) { animation-delay: 0.16s; }
.erscheint > *:nth-child(4) { animation-delay: 0.24s; }
.erscheint > *:nth-child(5) { animation-delay: 0.32s; }

.einstieg__bild {
	animation: bild-rein 1.2s 0.2s var(--weich) both;
}

@keyframes rein {
	from { opacity: 0; transform: translateY(1.25rem); }
}

@keyframes bild-rein {
	from { opacity: 0; transform: translateY(2rem) scale(0.97); }
}

/* Collage bewegt sich beim Scrollen leicht (Parallax, ohne JS) */
@supports (animation-timeline: scroll()) {
	.einstieg__bild img {
		animation: parallax linear both;
		animation-timeline: scroll();
		animation-range: 0 700px;
	}
	@keyframes parallax {
		to { transform: translateY(-60px) rotate(-1deg); }
	}
}

/* ---------- Abschnittstitel wie im Lebenslauf ---------- */
.abschnitt-titel,
.wp-block-post-content h2:not(.ueberzeile) {
	text-transform: uppercase;
}

.ueberzeile {
	font-family: var(--wp--preset--font-family--grundschrift) !important;
	font-size: var(--wp--preset--font-size--klein) !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--text-leise);
}

/* ---------- Sand-Etikett (wie die Datumsfelder im Lebenslauf) ---------- */
.etikett,
.etiketten a,
.etiketten span:not(.wp-block-post-terms__separator) {
	display: inline-block;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--schiefer) !important;
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	padding: 0.3em 0.7em;
	text-decoration: none;
	line-height: 1.3;
}

.etiketten {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.etiketten .wp-block-post-terms__separator {
	display: none;
}

/* ---------- Projektkarten ---------- */
.projekt-karte {
	position: relative;
}

.projekt-karte .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--wp--preset--color--flaeche);
	box-shadow: var(--schatten);
	transition: box-shadow 0.5s var(--weich), transform 0.5s var(--weich);
}

.projekt-karte .wp-block-post-featured-image img {
	transition: transform 0.8s var(--weich);
}

.projekt-karte:hover .wp-block-post-featured-image,
.projekt-karte:focus-within .wp-block-post-featured-image {
	transform: translateY(-6px);
	box-shadow: 0 36px 60px -30px rgb(27 42 53 / 0.5);
}

.projekt-karte:hover .wp-block-post-featured-image img,
.projekt-karte:focus-within .wp-block-post-featured-image img {
	transform: scale(1.035);
}

.projekt-karte .wp-block-post-title a {
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--sand), var(--wp--preset--color--sand));
	background-size: 0 3px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.45s var(--weich);
}

.projekt-karte:hover .wp-block-post-title a {
	background-size: 100% 3px;
}

/* ganze Karte klickbar */
.projekt-karte .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.projekt-karte .etiketten {
	position: relative;
	z-index: 2;
}

.projekt-meta {
	color: var(--wp--preset--color--text-leise);
	font-size: var(--wp--preset--font-size--klein);
}

.projekt-karte__pfeil {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
	color: var(--wp--preset--color--schiefer);
}

.projekt-karte__pfeil::after {
	content: "→";
	transition: transform 0.35s var(--weich);
}

.projekt-karte:hover .projekt-karte__pfeil::after {
	transform: translateX(5px);
}

/* ---------- Schwerpunkte ---------- */
.schwerpunkt {
	border-top: 4px solid var(--wp--preset--color--sand);
	padding-top: var(--wp--preset--spacing--30);
}

.schwerpunkt__nr {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	color: var(--wp--preset--color--sand);
	font-size: 1rem;
	margin: 0;
}

/* ---------- Sand-Box mit Sprechblasen-Spitze (wie "Über mich" im Lebenslauf) ---------- */
.sand-box {
	position: relative;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
}

.sand-box::before {
	content: "";
	position: absolute;
	top: -22px;
	left: 18%;
	width: 0;
	height: 0;
	border-left: 22px solid transparent;
	border-bottom: 22px solid var(--wp--preset--color--sand);
}

.sand-box :where(h2, h3, p, a) {
	color: var(--wp--preset--color--nacht);
}

/* ---------- Kurzinfo-Leiste der Fallstudie ---------- */
.projekt-infos {
	background: var(--wp--preset--color--weiss);
	border-radius: var(--radius);
	box-shadow: var(--schatten);
}

.projekt-infos .projekt-label {
	display: inline-block;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--schiefer);
	font-weight: 500;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.2em 0.6em;
	margin: 0;
}

.projekt-infos .projekt-wert {
	margin: 0.5rem 0 0;
	font-weight: 500;
	color: var(--wp--preset--color--schiefer);
}

/* Titelbild der Fallstudie */
.fallstudie-titelbild img {
	box-shadow: var(--schatten);
}

/* Entscheide */
.entscheid {
	background: var(--wp--preset--color--weiss);
	border-radius: var(--radius);
	border-top: 4px solid var(--wp--preset--color--sand);
}

.entscheid__nr {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	color: var(--wp--preset--color--sand);
	font-size: 2.25rem;
	line-height: 1;
	margin: 0;
}

/* ---------- Bildstil: Browser-Rahmen ---------- */
.wp-block-image.is-style-browser {
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--schatten);
}

.wp-block-image.is-style-browser::before {
	content: "";
	display: block;
	height: 38px;
	background:
		radial-gradient(circle at 20px 19px, #F2CE96 5px, transparent 6px),
		radial-gradient(circle at 38px 19px, #D5DADF 5px, transparent 6px),
		radial-gradient(circle at 56px 19px, #D5DADF 5px, transparent 6px),
		var(--wp--preset--color--hintergrund);
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

/* Lange Screenshots: Ausschnitt oben, beim Überfahren scrollt die ganze Seite durch */
.wp-block-image.is-style-browser img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
	transition: object-position 9s ease-in-out;
	cursor: ns-resize;
}

.wp-block-image.is-style-browser:hover img {
	object-position: bottom;
}

.wp-block-image.is-style-browser figcaption {
	margin: 0;
	padding: 0.7rem 1rem;
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--text-leise);
	border-top: 1px solid var(--wp--preset--color--linie);
}

/* ---------- Bildstil: Handy-Rahmen ---------- */
.wp-block-image.is-style-handy {
	max-width: 300px;
	margin-inline: auto;
	padding: 9px;
	border-radius: 42px;
	background: var(--wp--preset--color--nacht);
	box-shadow: var(--schatten);
}

.wp-block-image.is-style-handy img {
	display: block;
	width: 100%;
	border-radius: 33px;
}

.wp-block-image.is-style-handy figcaption {
	color: #fff;
	font-size: var(--wp--preset--font-size--klein);
	text-align: center;
	margin-bottom: 0.2rem;
}

/* Bilder ohne Rahmen (z.B. Screens mit eigenem Handy) */
.wp-block-image.ohne-rahmen img {
	filter: drop-shadow(0 24px 30px rgb(27 42 53 / 0.25));
}

.wp-block-image figcaption {
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--text-leise);
	text-align: center;
}

/* ---------- Werdegang (Datum im Sand-Feld wie im Lebenslauf) ---------- */
.werdegang__eintrag {
	border-top: 1px solid var(--wp--preset--color--linie);
}

.werdegang__datum {
	display: inline-block;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--schiefer);
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.45em 0.8em;
	white-space: nowrap;
}

.werdegang__titel {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	color: var(--wp--preset--color--schiefer);
	margin: 0;
}

/* ---------- Kontakt-Kreise (wie im Briefkopf) ---------- */
.kontakt-zeile {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.kontakt-zeile__kreis {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--schiefer);
}

.kontakt-zeile__kreis svg {
	width: 22px;
	height: 22px;
}

.kontakt-zeile strong {
	display: block;
}

/* ---------- Fusszeile ---------- */
.site-footer {
	background: var(--wp--preset--color--nacht);
	color: rgb(255 255 255 / 0.75);
}

.site-footer a {
	color: rgb(255 255 255 / 0.85);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--sand);
}

/* Vorheriges / nächstes Projekt */
.projekt-navigation a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--gross);
}

/* ---------- Einblenden beim Scrollen (scroll-driven, ohne JS) ---------- */
@supports (animation-timeline: view()) {
	.einblenden,
	.projekt-karte,
	.werdegang__eintrag,
	.entscheid {
		animation: einblenden linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 40%;
	}

	@keyframes einblenden {
		from {
			opacity: 0;
			transform: translateY(2.5rem);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}

/* ---------- Weniger Bewegung, wenn im System so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Fokus sichtbar für Tastatur ---------- */
:focus-visible {
	outline: 3px solid var(--wp--preset--color--sand);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 781px) {
	.einstieg__bild {
		margin-top: var(--wp--preset--spacing--40);
	}
}

/* ---------- Porträt-Platzhalter ---------- */
.portraet-platzhalter {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	background:
		linear-gradient(160deg, rgb(255 255 255 / 0.06), transparent 60%),
		var(--wp--preset--color--schiefer);
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1rem;
	color: rgb(255 255 255 / 0.6);
	font-size: var(--wp--preset--font-size--klein);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	box-shadow: var(--schatten);
}

.portraet-platzhalter svg {
	width: 28%;
	color: #fff;
}

/* ---------- Kontaktliste ---------- */
.kontakt-liste {
	display: grid;
	gap: 1.1rem;
}

.kontakt-zeile {
	text-decoration: none;
	color: inherit;
}

.kontakt-zeile__wert {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kontakt-zeile:hover .kontakt-zeile__kreis {
	background: var(--wp--preset--color--sand);
}

.kontakt-zeile .kontakt-zeile__kreis {
	transition: background-color 0.25s;
}

/* Abstände zwischen Kopf, Inhalt und Fuss: keine Lücken */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
}

/* Fallstudie: Info-Leiste liegt über dem dunklen Kopf */
.projekt-infos {
	position: relative;
	z-index: 2;
}

.fallstudie-titelbild {
	margin-bottom: var(--wp--preset--spacing--60) !important;
}

@media (max-width: 781px) {
	.portraet-platzhalter {
		aspect-ratio: 1;
		max-width: 260px;
	}
}

/* ==========================================================================
   Mehr Bewegung (angelehnt an Portfolios mit viel Motion, aber nur CSS)
   ========================================================================== */

/* ---------- Name: Buchstaben gleiten aus einer Maske ---------- */
.einstieg__name {
	font-family: var(--wp--preset--font-family--grundschrift);
	font-weight: 300;
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.01em;
	font-size: clamp(3.5rem, 9vw, 7.5rem);
	margin: 0;
	color: #fff;
}

.einstieg__name .zeile {
	display: block;
	overflow: hidden;
	padding-bottom: 0.06em;
}

.einstieg__name .zeile:first-child {
	color: var(--wp--preset--color--sand);
}

.einstieg__name .b {
	display: inline-block;
	animation: buchstabe 1s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: calc(0.15s + var(--i) * 0.045s);
}

@keyframes buchstabe {
	from { transform: translateY(105%) rotate(6deg); }
}

.erscheint--spaet > * { animation-delay: 0.7s; }
.erscheint--spaet > *:nth-child(2) { animation-delay: 0.8s; }
.erscheint--spaet > *:nth-child(3) { animation-delay: 0.9s; }

/* Einstieg-Text gleitet beim Scrollen nach oben und blendet aus */
@supports (animation-timeline: scroll()) {
	.einstieg__text {
		animation: text-weg linear both;
		animation-timeline: scroll();
		animation-range: 0 600px;
	}
	@keyframes text-weg {
		to { transform: translateY(-80px); opacity: 0.2; }
	}
}

/* ---------- Projektkarussell im Einstieg ---------- */
.karussell {
	--dauer: 4s;
	position: relative;
	transform-origin: center;
	animation: bild-rein 1.2s 0.3s var(--weich) both;
}

.karussell__buehne {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.55);
	background: var(--wp--preset--color--nacht);
}

.karussell__bild {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation: wechsel calc(var(--dauer) * var(--n)) infinite;
	animation-delay: calc(var(--dauer) * var(--i));
}

.karussell__bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: ken-burns calc(var(--dauer) * var(--n)) infinite linear;
	animation-delay: calc(var(--dauer) * var(--i));
}

.karussell__titel {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
	background: var(--wp--preset--color--nacht);
	color: #fff;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--klein);
	text-decoration: none;
}

.karussell__titel span {
	color: var(--wp--preset--color--sand);
}

/* Sichtbar während 1/n der Zeit, weiche Überblendung */
@keyframes wechsel {
	0% { opacity: 0; z-index: 1; }
	4% { opacity: 1; z-index: 2; }
	25% { opacity: 1; z-index: 2; }
	29% { opacity: 0; z-index: 1; }
	100% { opacity: 0; }
}

@keyframes ken-burns {
	0% { transform: scale(1.08); }
	30% { transform: scale(1); }
	100% { transform: scale(1); }
}

.karussell__punkte {
	display: flex;
	gap: 0.4rem;
	margin-top: 1rem;
	justify-content: flex-end;
}

.karussell__punkte span {
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background: rgb(255 255 255 / 0.25);
	overflow: hidden;
	position: relative;
}

.karussell__punkte span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--sand);
	transform: scaleX(0);
	transform-origin: left;
	animation: punkt calc(var(--dauer) * var(--n)) infinite linear;
	animation-delay: calc(var(--dauer) * var(--i));
}

@keyframes punkt {
	0% { transform: scaleX(0); }
	25% { transform: scaleX(1); }
	25.01%, 100% { transform: scaleX(0); }
}

/* Karussell wächst beim Scrollen, wie ein Zoom ins Projekt */
@supports (animation-timeline: scroll()) {
	.karussell__buehne {
		animation: zoom-rein linear both;
		animation-timeline: scroll();
		animation-range: 0 650px;
	}
	@keyframes zoom-rein {
		to { transform: scale(1.12) translateY(40px); border-radius: 6px; }
	}
}

/* ---------- Laufband ---------- */
.laufband {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
	overflow: hidden;
	padding-block: 1.1rem;
	margin-top: 0 !important;
	max-width: none !important;
}

.laufband__spur {
	display: flex;
	width: max-content;
	animation: laufband 38s linear infinite;
}

.laufband__spur > div {
	display: flex;
	align-items: center;
	gap: 2.2rem;
	padding-right: 2.2rem;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(1.1rem, 2vw, 1.6rem);
	text-transform: uppercase;
	white-space: nowrap;
}

.laufband__stern {
	color: var(--wp--preset--color--schiefer);
	font-size: 0.8em;
}

.laufband:hover .laufband__spur {
	animation-play-state: paused;
}

@keyframes laufband {
	to { transform: translateX(-50%); }
}

/* ---------- Grosser Lauftext, bewegt sich mit dem Scrollen ---------- */
.lauftext-gross {
	/* clip statt hidden: hidden macht den Bereich zum Scroll-Container, dann läuft die Zeile nicht mit */
	overflow: clip;
	background: var(--wp--preset--color--weiss);
	padding-top: var(--wp--preset--spacing--60);
	max-width: none !important;
	margin-top: 0 !important;
}

.lauftext-gross__zeile {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(4rem, 13vw, 12rem);
	line-height: 0.9;
	white-space: nowrap;
	color: var(--wp--preset--color--schiefer);
	/* Anfang bündig mit Logo und Inhalt */
	padding-left: max(var(--wp--preset--spacing--40), (100vw - 1240px) / 2);
	width: max-content;
}

.lauftext-gross__zeile i {
	font-style: normal;
	color: var(--wp--preset--color--sand);
	font-size: 0.5em;
	vertical-align: middle;
}

@supports (animation-timeline: view()) {
	.lauftext-gross__zeile {
		animation: quer linear both;
		animation-timeline: view();
		/* erst bewegen, wenn die Zeile ganz im Bild ist: vorher steht "Webdesign" vollständig da */
		animation-range: contain 30% exit 100%;
	}
	@keyframes quer {
		from { transform: translateX(0); }
		to { transform: translateX(-16%); }
	}
}

/* ---------- Aussage: Wort für Wort beim Scrollen ---------- */
.aussage-bereich {
	margin-top: 0 !important;
}

.aussage {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 500;
	font-size: clamp(1.75rem, 3.6vw, 3.1rem);
	line-height: 1.25;
	color: var(--wp--preset--color--schiefer);
	margin-top: var(--wp--preset--spacing--30);
	view-timeline: --aussage block;
}

@supports (animation-timeline: view()) {
	.aussage .w {
		animation: wort linear both;
		animation-timeline: --aussage;
		animation-range:
			cover calc(18% + var(--i) / var(--n) * 38%)
			cover calc(22% + var(--i) / var(--n) * 38%);
	}
	@keyframes wort {
		from { opacity: 0.15; }
		to { opacity: 1; }
	}
}

/* ---------- Bilder in Fallstudien: Vorhang öffnet sich beim Scrollen ---------- */
@supports (animation-timeline: view()) {
	.wp-block-post-content .wp-block-image:not(.is-style-handy),
	.fallstudie-titelbild {
		animation: vorhang linear both;
		animation-timeline: view();
		animation-range: entry 5% entry 70%;
	}
	@keyframes vorhang {
		from { clip-path: inset(12% 6% 12% 6% round 24px); transform: scale(0.96); }
		to { clip-path: inset(0 0 0 0 round 14px); transform: none; }
	}
}

/* ==========================================================================
   Einstieg als Bühne: riesiger Name, schwebende Karte, Zoom beim Scrollen
   ========================================================================== */

:root {
	--kopf: 74px;
}

.buehne {
	position: relative;
	height: 230vh;
	margin-top: 0 !important;
	max-width: none !important;
	view-timeline: --buehne block;
}

.buehne__fest {
	position: sticky;
	top: var(--kopf);
	height: calc(100vh - var(--kopf));
	min-height: 560px;
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr auto auto;
	box-sizing: border-box;
	padding: 1.25rem var(--wp--preset--spacing--40) 1.5rem;
	isolation: isolate;
}

/* Sand-Schimmer folgt der Maus, dazu feines Korn */
.buehne__fest::before {
	content: "";
	position: absolute;
	inset: -10%;
	z-index: -2;
	background:
		radial-gradient(38% 45% at var(--mx, 70%) var(--my, 40%), rgb(242 206 150 / 0.22), transparent 70%),
		radial-gradient(60% 60% at 15% 110%, rgb(27 42 53 / 0.9), transparent 70%);
	animation: schimmer 14s ease-in-out infinite alternate;
}

.buehne__fest::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.08;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}

@keyframes schimmer {
	to { transform: translate(-3%, 2%) scale(1.05); }
}

/* Riesiger Name über die ganze Breite */
.buehne__name {
	grid-row: 3;
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	font-family: var(--wp--preset--font-family--grundschrift);
	font-weight: 300;
	text-transform: uppercase;
	font-size: clamp(3.5rem, 12.6vw, 15rem);
	line-height: 0.8;
	letter-spacing: -0.01em;
	gap: 0.25em;
	max-width: 100%;
	color: #fff;
	white-space: nowrap;
	position: relative;
	z-index: 1;
}

.buehne__name .zeile {
	display: block;
	overflow: hidden;
	padding: 0.04em 0 0.02em;
}

.buehne__name .zeile:first-child { color: var(--wp--preset--color--sand); }

.buehne__name .b {
	display: inline-block;
	animation: buchstabe 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: calc(0.1s + var(--i) * 0.05s);
}

/* Fuss: Satz und Hinweis zum Scrollen */
.buehne__fuss {
	grid-row: 4;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	padding-top: 1.1rem;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	margin-top: 1.1rem;
}

.buehne__satz {
	margin: 0;
	max-width: 46ch;
	font-size: var(--wp--preset--font-size--gross);
	line-height: 1.45;
}

.buehne__runter {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	font-weight: 500;
}

.buehne__runter .pfeil {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
	animation: wippen 2s ease-in-out infinite;
}

@keyframes wippen {
	50% { transform: translateY(6px); }
}

/* --- Ohne Scroll-Animationen (z.B. Firefox): normale Höhe --- */
@supports not (animation-timeline: view()) {
	.buehne { height: auto; }
	.buehne__fest { position: relative; top: 0; }
}

/* --- Handy: alles untereinander, kein Zoom --- */
@media (max-width: 781px) {
	.buehne { height: auto; }
	.buehne__fest {
		position: relative;
		top: 0;
		height: auto;
		min-height: 0;
		grid-template-rows: auto auto auto auto;
		gap: 1.5rem;
	}
	.buehne__name {
		flex-direction: column;
		align-items: flex-start;
		font-size: 21vw;
		line-height: 0.85;
	}
	.buehne__fuss {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* ==========================================================================
   Einstieg: gespiegelte Collage, beim Scrollen fliegt man hindurch
   ========================================================================== */

/* Lange Bühne nur, wo die Scroll-Animation läuft (sonst leere Fläche auf dem Handy und in Firefox) */
@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.buehne { height: 150vh; }
	}
}

.buehne__fest {
	/* Ein Raster mit Kopfzeile: Spalte 1240px */
	--breite: min(1240px, 100vw - 2 * var(--wp--preset--spacing--40));
	--namegr: calc(var(--breite) / 6.8);
	/* Collagen-Einheit: so gross, dass sie zwischen Info-Zeile und Name passt */
	--frei: calc(100vh - var(--kopf) - var(--namegr) * 0.88 - 235px);
	--u: max(0.45vw, min(1.15vw, calc(var(--frei) / 18.5)));
	--cy: calc(52px + var(--frei) / 2);
	grid-template-rows: 1fr auto auto auto;
	justify-items: center;
}

.buehne__fest > :not(.collage) { width: var(--breite); }

.buehne__name {
	justify-content: flex-start;
	gap: 0.23em;
	font-size: var(--namegr);
}

.collage {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.collage__flug {
	position: absolute;
	left: calc(50% + var(--x) * var(--u));
	top: calc(var(--cy) + var(--y) * var(--u));
	width: 0;
	height: 0;
}

.kachel {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(var(--w) * var(--u));
	height: calc(var(--h) * var(--u));
	translate:
		calc(-50% + var(--px, 0) * var(--t) * -16px)
		calc(-50% + var(--py, 0) * var(--t) * -11px);
	rotate: var(--dreh, 0deg);
	outline: 1px solid transparent;
	backface-visibility: hidden;
	display: block;
	border-radius: calc(var(--u) * 0.55);
	overflow: hidden;
	background: var(--wp--preset--color--nacht);
	/* Kontaktschatten an der Kante + weicher Schatten, damit überlappende helle Flächen sich trennen */
	box-shadow: 0 2px 6px rgb(0 0 0 / 0.22), 0 10px 22px -8px rgb(0 0 0 / 0.32), 0 22px 44px -20px rgb(0 0 0 / 0.35);
	pointer-events: auto;
	animation: kachel-rein 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: calc(0.45s + var(--i) * 0.12s);
}

.kachel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	transition: transform 0.7s var(--weich);
}

/* Hover (04.12.): ganze Kachel hebt sich leicht an, statt das Bild darin zu zoomen (das schnitt Logo und Ränder ab).
   Eigene Eigenschaft scale, damit sie sich nicht mit translate/rotate und der Einflug-Animation (transform) beisst. */
.kachel {
	transition: scale 0.6s var(--weich), box-shadow 0.6s var(--weich);
}
.kachel:hover {
	scale: 1.03;
	box-shadow: 0 4px 10px rgb(0 0 0 / 0.22), 0 18px 34px -10px rgb(0 0 0 / 0.38), 0 36px 64px -24px rgb(0 0 0 / 0.42);
}
.kachel--mitte:hover { scale: 1.015; }
@media (prefers-reduced-motion: reduce) {
	.kachel:hover, .kachel--mitte:hover { scale: none; }
}

.kachel--mitte {
	z-index: 2;
	border-radius: calc(var(--u) * 0.7);
	box-shadow: 0 28px 60px -28px rgb(0 0 0 / 0.42), 0 0 0 1px rgb(255 255 255 / 0.08);
}

/* Handy-Screenshot: dunkler Rahmen wie ein Gerät */
.kachel--handy {
	border: calc(var(--u) * 0.32) solid #0E171E;
	border-radius: calc(var(--u) * 1.15);
}

/* Screen mit eigenem Geräterahmen: ohne Kasten */
.kachel--frei {
	background: none;
	box-shadow: none;
	overflow: visible;
}
.kachel--frei img {
	object-fit: contain;
	filter: drop-shadow(0 16px 20px rgb(0 0 0 / 0.3));
}

@keyframes kachel-rein {
	from { opacity: 0; transform: translateY(70px) scale(0.86); }
}

/* Ausschnitt aus einem Projekt: Karte mit hellem Grund */
.kachel--karte {
	/* kein heller Grund: würde an gedrehten Kanten als Haarlinie durchscheinen */
	background: transparent;
	border-radius: calc(var(--u) * 0.6);
	box-shadow: 0 2px 6px rgb(0 0 0 / 0.24), 0 10px 22px -8px rgb(0 0 0 / 0.34), 0 22px 44px -20px rgb(0 0 0 / 0.35);
}

/* Sprach- und Währungsschalter aus dem Shop, als echter Baustein */
.kachel--schalter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(var(--u) * 0.5);
	padding: 0 calc(var(--u) * 0.5);
	background: #fff;
	border-radius: 999px;
	font-size: calc(var(--u) * 0.62);
	font-weight: 500;
	color: #3B2A20;
	text-decoration: none;
}
.kachel__gruppe { display: flex; align-items: center; gap: calc(var(--u) * 0.15); }
.kachel__gruppe + .kachel__gruppe { padding-left: calc(var(--u) * 0.5); border-left: 1px solid #E4DDD5; }
.kachel__gruppe b {
	padding: calc(var(--u) * 0.18) calc(var(--u) * 0.38);
	border-radius: 999px;
	font-weight: 500;
	line-height: 1;
	color: #8A7B70;
}
.kachel__gruppe b.an { background: #7A1E1E; color: #fff; }

/* --- Durchfliegen beim Scrollen --- */
@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.collage__flug {
			animation: durchfliegen linear both;
			animation-timeline: --buehne;
			/* Collage bleibt sichtbar, bis die Bühne fast weg ist (keine leere Fläche) */
			animation-range: contain 0% exit 85%;
		}
		/* Kachel wächst je nach Tiefe und fliegt von der Mitte weg nach aussen.
		   Sie blendet aus, bevor sie unscharf wird. */
		@keyframes durchfliegen {
			0% { opacity: 1; }
			45% { opacity: 1; }
			100% {
				opacity: 0;
				transform:
					translate(calc(var(--x) * var(--u) * (var(--s) - 1)), calc(var(--y) * var(--u) * (var(--s) - 1)))
					scale(var(--s));
			}
		}

		/* Vorhang: Name und Texte gehen beim Scrollen nach links und rechts auseinander,
		   während die Collage durch die Mitte heranfliegt. Mit "translate", damit die
		   Erscheinen-Animationen (transform) unberührt bleiben. */
		@media (prefers-reduced-motion: no-preference) {
			.buehne__name .zeile,
			.buehne__beruf,
			.vorhang > * {
				/* langsamer: kürzerer Weg, gleichmässiges Tempo */
				animation: vorhang-links cubic-bezier(0.3, 0, 0.7, 1) both;
				animation-timeline: --buehne;
				/* erst, wenn unten das Laufband hereinkommt (Ende der Bühne) */
				/* bis zum Schluss: die Hälften erreichen den Rand erst, wenn die Bühne oben verschwindet */
				animation-range: exit 38% exit 100%;
			}
			.buehne__name .zeile + .zeile,
			.vorhang--rechts > * { animation-name: vorhang-rechts; }
			.buehne__fuss {
				animation: vorhang-linie linear both;
				animation-timeline: --buehne;
				animation-range: exit 38% exit 70%;
			}
			@keyframes vorhang-links { to { translate: -40vw 0; } }
			@keyframes vorhang-rechts { to { translate: 40vw 0; } }
			@keyframes vorhang-linie { to { border-top-color: transparent; } }
		}
	}
}

/* --- Handy: nur die mittlere Kachel, kein Durchfliegen --- */
@media (max-width: 781px) {
	.buehne__fest { --breite: calc(100vw - 2 * var(--wp--preset--spacing--40)); }
	.buehne__name {
		flex-direction: column;
		gap: 0;
		font-size: calc(var(--breite) / 3.4);
	}
	.collage {
		position: relative;
		inset: auto;
		width: var(--breite);
		aspect-ratio: 16 / 10;
		grid-row: 2;
	}
	.collage__flug { display: none; }
	.collage__flug:has(.kachel--mitte) {
		display: block;
		inset: 0;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}
	.kachel--mitte {
		width: 100%;
		height: 100%;
		translate: none;
		border-radius: var(--radius);
	}
}

/* Beruf als Sand-Etikett über dem Namen (wie die Datumsfelder im Lebenslauf) */
.buehne__beruf {
	grid-row: 2;
	margin: 0 0 calc(var(--namegr) * 0.12);
	position: relative;
	z-index: 1;
}
.buehne__beruf span {
	display: inline-block;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
	font-size: var(--wp--preset--font-size--klein);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 0.4em 0.85em;
	border-radius: 3px;
}

@media (max-width: 781px) {
	.collage { grid-row: 1; }
	.buehne__fest { grid-template-rows: auto; }
}

/* ==========================================================================
   Projektwelten: jedes Projekt in Bildschirmgrösse, mit eigenen Farben.
   Takt pro Projekt: Welt bleibt stehen (Screenshot scrollt durch),
   danach schiebt sich die nächste Welt darüber.
   ========================================================================== */

.welten {
	max-width: none !important;
	margin-top: 0 !important;
	position: relative;
}

.welt {
	/* Höhe = Standzeit + Zeit für das Darüberschieben der nächsten Welt */
	--hoehe: 290vh;
	height: var(--hoehe);
	position: relative;
	view-timeline: --welt block;
	color: var(--text);
}

.welt + .welt { margin-top: -100vh; }

.welt__buehne {
	position: sticky;
	top: var(--kopf);
	height: calc(100vh - var(--kopf));
	min-height: 600px;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(70% 90% at 75% 40%, var(--hg2), transparent 70%),
		var(--hg);
}
.welt + .welt .welt__buehne { box-shadow: 0 -30px 60px -30px rgb(0 0 0 / 0.35); }

/* Stimmung: Schlüsselbild des Projekts, gross und weich */
.welt__stimmung {
	position: absolute;
	inset: -12%;
	z-index: -2;
	background-size: cover;
	background-position: center;
	filter: blur(60px) saturate(1.3);
	opacity: 0.45;
	transform: scale(1.1);
}
.welt--hell .welt__stimmung { opacity: 0.35; }

.welt__buehne::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, var(--hg) 18%, color-mix(in srgb, var(--hg) 55%, transparent) 52%, transparent 90%);
	pointer-events: none;
}

/* Riesiger Projektname im Hintergrund, wandert quer */
.welt__riesig {
	position: absolute;
	left: 0;
	bottom: -0.17em;
	z-index: -1;
	margin: 0;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: 19vw;
	line-height: 1;
	white-space: nowrap;
	text-transform: uppercase;
	color: var(--akzent);
	opacity: 0.08;
	pointer-events: none;
}

.welt__inhalt {
	height: 100%;
	width: min(1240px, 100% - 2 * var(--wp--preset--spacing--40));
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) 1.6fr;
	align-items: center;
	gap: var(--wp--preset--spacing--60);
}

/* Text */
.welt__nr {
	margin: 0 0 1.2rem;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.1em;
	color: var(--akzent);
}
.welt__nr span { color: var(--leise); }

.welt__titel {
	margin: 0;
	font-size: clamp(2.6rem, 5vw, 5rem);
	line-height: 1;
	color: var(--text);
	letter-spacing: -0.01em;
}
.welt__titel a { color: inherit; text-decoration: none; }

.welt__zeile {
	margin: 1rem 0 0;
	font-size: var(--wp--preset--font-size--gross);
	color: var(--leise);
	line-height: 1.35;
}

.welt__fakten {
	margin: 2rem 0 0;
	display: grid;
	gap: 0.9rem;
	border-top: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
	padding-top: 1.2rem;
}
.welt__fakten div { display: grid; gap: 0.15rem; }
.welt__fakten dt {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--akzent);
	font-weight: 500;
}
.welt__fakten dd { margin: 0; color: var(--text); }

.welt__link {
	margin-top: 2.2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
}
.welt__link .pfeil {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--akzent);
	color: var(--hg);
	font-size: 1.2rem;
	transition: transform 0.35s var(--weich);
}
.welt__link:hover .pfeil { transform: translateX(6px); }

/* Bild-Komposition */
.welt__bild {
	position: relative;
	align-self: center;
}

.welt__browser {
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 50px 90px -35px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.06);
}

.welt__leiste {
	display: flex;
	gap: 6px;
	padding: 10px 14px;
	background: #EEF0F2;
}
.welt__leiste i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #D3D7DB;
}

.welt__fenster {
	aspect-ratio: 16 / 9.4;
	max-height: calc(100vh - var(--kopf) - 220px);
	overflow: hidden;
	container-type: size;
	width: 100%;
}

.welt__lang {
	display: block;
	width: 100%;
	height: auto;
}

.welt__handy {
	position: absolute;
	right: -3%;
	bottom: -9%;
	width: 19%;
	border-radius: 22px;
	border: 5px solid #0E171E;
	box-shadow: 0 40px 60px -25px rgb(0 0 0 / 0.6);
	z-index: 3;
}

.welt__detail {
	position: absolute;
	z-index: 2;
	border-radius: 12px;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(0 0 0 / 0.05);
	background: #fff;
}
.welt__detail--0 { left: -8%; top: 30%; width: 22%; --tiefe: 1.4; }
.welt__detail--1 { right: 18%; top: -10%; width: 21%; --tiefe: 0.8; }

/* Scan2Cook: vier Handy-Screens nebeneinander, versetzt */
.welt__handys {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3%;
	align-items: center;
}
.welt__handys img {
	width: 100%;
	max-height: calc(100vh - var(--kopf) - 160px);
	object-fit: contain;
	filter: drop-shadow(0 30px 30px rgb(59 40 18 / 0.3));
	--tiefe: calc(0.6 + var(--i) * 0.35);
}
.welt__handys img:nth-child(even) { margin-top: 12%; }

/* --- Bewegung, gesteuert durch das Scrollen --- */
@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		/* Langer Screenshot scrollt im Fenster durch, während die Welt steht */
		.welt__lang {
			animation: seite-durch linear both;
			animation-timeline: --welt;
			animation-range: contain 0% contain 46%;
		}
		@keyframes seite-durch {
			from { transform: translateY(0); }
			to { transform: translateY(calc(-100% + 100cqh)); }
		}

		/* Details, Handy und Screens schweben unterschiedlich schnell */
		.welt__detail,
		.welt__handys img,
		.welt__handy {
			animation: schweben linear both;
			animation-timeline: --welt;
			animation-range: entry 0% contain 100%;
		}
		.welt__handy { --tiefe: 1; }
		@keyframes schweben {
			from { translate: 0 calc(var(--tiefe, 1) * 90px); }
			to { translate: 0 calc(var(--tiefe, 1) * -90px); }
		}

		/* Text kommt mit, wenn die Welt hereinschiebt */
		.welt__text > * {
			animation: welt-text linear both;
			animation-timeline: --welt;
			animation-range: entry 35% entry 100%;
		}
		.welt__text > :nth-child(2) { animation-range: entry 42% entry 100%; }
		.welt__text > :nth-child(3) { animation-range: entry 50% entry 100%; }
		.welt__text > :nth-child(n+4) { animation-range: entry 58% entry 100%; }
		@keyframes welt-text {
			from { opacity: 0; transform: translateY(50px); }
		}

		.welt__riesig {
			animation: riesig-quer linear both;
			animation-timeline: --welt;
			animation-range: cover 0% cover 100%;
		}
		@keyframes riesig-quer {
			from { transform: translateX(10%); }
			to { transform: translateX(-35%); }
		}

		/* Welt tritt zurück, während die nächste darüberschiebt */
		.welt:not(:last-child) .welt__inhalt {
			animation: welt-zurueck linear both;
			animation-timeline: --welt;
			animation-range: contain 52% contain 100%;
		}
		@keyframes welt-zurueck {
			to { transform: scale(0.9) translateY(-4%); opacity: 0.3; filter: blur(4px); }
		}
	}
}

/* --- Ohne Scroll-Animationen: normale Abfolge --- */
@supports not (animation-timeline: view()) {
	.welt { height: auto; }
	.welt + .welt { margin-top: 0; }
	.welt__buehne { position: relative; top: 0; }
}

/* --- Tablet: Text oben, Bild unten --- */
@media (max-width: 920px) and (min-width: 782px) {
	.welt__inhalt {
		grid-template-columns: 1fr;
		align-content: center;
		gap: var(--wp--preset--spacing--40);
	}
	.welt__fakten, .welt__detail { display: none; }
	.welt__titel { font-size: 2.6rem; }
	.welt__link { margin-top: 1rem; }
	.welt__bild { width: 62%; justify-self: center; }
}

/* --- Handy: untereinander, ohne Stehenbleiben --- */
@media (max-width: 781px) {
	.welt { height: auto; }
	.welt + .welt { margin-top: 0; }
	.welt__buehne {
		position: relative;
		top: 0;
		height: auto;
		min-height: 0;
		padding: var(--wp--preset--spacing--60) 0 calc(var(--wp--preset--spacing--60) + 2rem);
	}
	.welt__inhalt {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--50);
	}
	.welt__detail { display: none; }
	.welt__fenster { max-height: none; }
	.welt__handy { width: 26%; bottom: -12%; border-width: 3px; border-radius: 14px; }
	.welt__riesig { font-size: 30vw; }
}

/* --- Projektwelt mit Ablauf (Scan2Cook): Handys ziehen beim Scrollen seitlich durch --- */
.welt__bild:has(.welt__ablauf) {
	/* Bildbereich reicht bis an den rechten Bildschirmrand, links weich ausgeblendet */
	margin-right: calc((min(1240px, 100vw - 2 * var(--wp--preset--spacing--40)) - 100vw) / 2);
	overflow: hidden;
	padding-block: 40px;
	container-type: inline-size;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 90px);
	mask-image: linear-gradient(90deg, transparent, #000 90px);
}

.welt__ablauf {
	--hoehe-handy: min(calc(100vh - var(--kopf) - 230px), 46vw);
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: clamp(1.5rem, 3vw, 3rem);
	width: max-content;
}

.ablauf__schritt {
	display: grid;
	gap: 1rem;
	justify-items: start;
}
.ablauf__schritt:nth-child(even) { margin-top: 5vh; }

.ablauf__geraet {
	position: relative;
	display: block;
	height: var(--hoehe-handy);
	aspect-ratio: 585 / 1181;
	filter: drop-shadow(0 30px 34px rgb(59 40 18 / 0.28));
}
.ablauf__geraet img {
	width: 100%;
	height: 100%;
	display: block;
}

.ablauf__text {
	font-size: 0.95rem;
	color: var(--text);
	font-weight: 500;
}
.ablauf__text b {
	color: var(--akzent);
	font-family: var(--wp--preset--font-family--titelschrift);
	margin-right: 0.3rem;
}

/* Scan-Linie über dem Kühlschrank */
.ablauf__schritt--scan .ablauf__geraet::after {
	content: "";
	position: absolute;
	left: 14%;
	right: 14%;
	top: 30%;
	height: 3px;
	border-radius: 3px;
	background: var(--akzent);
	box-shadow: 0 0 18px 4px color-mix(in srgb, var(--akzent) 70%, transparent);
	animation: scan-linie 2.6s ease-in-out infinite alternate;
}
@keyframes scan-linie {
	to { top: 58%; }
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.welt__ablauf {
			animation: ablauf-quer linear both;
			animation-timeline: --welt;
			animation-range: contain 0% contain 50%;
		}
		@keyframes ablauf-quer {
			to { transform: translateX(calc(-100% + 100cqw - 180px)); }
		}
	}
}

@media (max-width: 781px) {
	.welt__bild:has(.welt__ablauf) {
		-webkit-mask-image: none;
		mask-image: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-right: calc(-1 * var(--wp--preset--spacing--40));
		padding-bottom: 1rem;
	}
	.welt__ablauf { --hoehe-handy: 420px; }
	.ablauf__schritt { scroll-snap-align: start; }
	.ablauf__schritt:nth-child(even) { margin-top: 0; }
}

/* ==========================================================================
   Alle Projekte: Verzeichnis nach den Projektwelten
   ========================================================================== */
.projekt-index {
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--hintergrund);
	padding: var(--wp--preset--spacing--60) 0;
	max-width: none !important;
	margin-top: 0 !important;
}

.projekt-index__innen {
	width: min(1240px, 100% - 2 * var(--wp--preset--spacing--40));
	margin: 0 auto;
}

.projekt-index__kopf { margin-bottom: var(--wp--preset--spacing--50); }
.projekt-index__kopf .ueberzeile { margin: 0 0 0.5rem; }
.projekt-index__kopf .abschnitt-titel { margin: 0; }

.projekt-index__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.projekt-index__zeile {
	position: relative;
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1.3fr) 200px minmax(0, 1fr) 2.5rem; /* ohne Zeitraum (04.12., Silvan) */
	align-items: center;
	gap: 1rem;
	padding: 1.6rem 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--linie);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: background-color 0.3s, padding 0.4s var(--weich);
}

.projekt-index__nr {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	color: var(--wp--preset--color--sand);
	font-size: 1.1rem;
}

.projekt-index__titel {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(1.4rem, 2.6vw, 2.2rem);
	color: var(--wp--preset--color--schiefer);
	line-height: 1.1;
}

.projekt-index__art,
.projekt-index__zeit {
	color: var(--wp--preset--color--text-leise);
	font-size: var(--wp--preset--font-size--klein);
}

.projekt-index__pfeil {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--linie);
	transition: background-color 0.3s, border-color 0.3s, transform 0.35s var(--weich);
}

/* Vorschaubild erscheint beim Überfahren */
.projekt-index__vorschau {
	width: 200px;
	height: 125px;
	margin-block: -45px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 25px 50px -20px rgb(27 42 53 / 0.45);
	opacity: 0;
	transform: scale(0.8) rotate(-3deg);
	transition: opacity 0.3s, transform 0.45s var(--weich);
	pointer-events: none;
	z-index: 2;
}

@media (hover: hover) {
	.projekt-index__zeile:hover {
		background: var(--wp--preset--color--weiss);
		padding-left: 1.25rem;
	}
	.projekt-index__zeile:hover .projekt-index__pfeil {
		background: var(--wp--preset--color--sand);
		border-color: var(--wp--preset--color--sand);
		transform: rotate(-45deg);
	}
	.projekt-index__zeile:hover .projekt-index__vorschau {
		opacity: 1;
		transform: scale(1) rotate(-3deg);
	}
}

.projekt-index__mehr { margin: var(--wp--preset--spacing--50) 0 0; }

@media (max-width: 781px) {
	.projekt-index__zeile {
		grid-template-columns: 2.5rem 1fr 2.5rem;
		row-gap: 0.25rem;
	}
	.projekt-index__titel { grid-column: 2; }
	.projekt-index__pfeil { grid-column: 3; grid-row: 1 / span 2; }
	.projekt-index__art { grid-column: 2; grid-row: 2; }
	.projekt-index__zeit, .projekt-index__vorschau { display: none; }
}

/* Ohne weitere Projekte: nur der Knopf, mittig */
.projekt-index--leer { padding-block: var(--wp--preset--spacing--50); }
.projekt-index--leer .projekt-index__mehr { margin: 0; text-align: center; }

/* ==========================================================================
   Essence Origin: Schaufenster. Produktkarten fächern sich beim Scrollen auf,
   Sprach- und Währungsschalter springen von selbst um.
   ========================================================================== */
.welt__bild--schaufenster { container-type: inline-size; }

.schaufenster {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 2.2rem;
}

.schalter {
	display: flex;
	gap: 0.8rem;
	justify-self: end;
}

.schalter__gruppe {
	position: relative;
	display: flex;
	padding: 4px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--text) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
	isolation: isolate;
}
.schalter__gruppe b {
	width: 3.1rem;
	padding: 0.45rem 0;
	text-align: center;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	font-weight: 500;
	color: var(--leise);
	animation: schalter-an-4 calc(var(--n) * 1.6s) infinite;
	/* negativ: alle starten sofort, Eintrag i ist um i Takte versetzt */
	animation-delay: calc((var(--i) - var(--n)) * 1.6s);
}
/* Kartenfächer */
.faecher {
	position: relative;
	width: 100%;
	height: calc(24cqw * 1.74 + 3rem);
	max-height: calc(100vh - var(--kopf) - 330px);
}

.faecher__karte {
	--mitte: calc(var(--i) - (var(--n) - 1) / 2);
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 24cqw;
	max-height: 100%;
	aspect-ratio: 328 / 569;
	object-fit: cover;
	border-radius: 10px;
	background: #F6F6F6;
	box-shadow: 0 30px 50px -20px rgb(0 0 0 / 0.6);
	transform-origin: 50% 120%;
	translate: -50% 0;
	transform: translateX(calc(var(--mitte) * 82%)) rotate(calc(var(--mitte) * 6deg)) translateY(calc(var(--mitte) * var(--mitte) * 4%));
	transition: transform 0.5s var(--weich), box-shadow 0.5s;
	z-index: calc(10 - var(--mitte) * var(--mitte));
}

.schaufenster__familien {
	width: 62%;
	border-radius: 12px;
	box-shadow: 0 30px 60px -25px rgb(0 0 0 / 0.55);
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		/* zuerst als Stapel, beim Scrollen fächern die Karten auf */
		.faecher__karte {
			animation: auffaechern linear both;
			animation-timeline: --welt;
			animation-range: entry 60% contain 40%;
		}
		@keyframes auffaechern {
			from { transform: translateX(calc(var(--mitte) * 6%)) rotate(calc(var(--mitte) * 2deg)) translateY(4%); }
		}
		.schaufenster__familien {
			animation: schweben linear both;
			animation-timeline: --welt;
			animation-range: entry 0% contain 100%;
			--tiefe: 0.7;
		}
	}
}

/* Jeder Eintrag leuchtet der Reihe nach auf: Hintergrund und Schrift in einer Animation */
.schalter__gruppe b {
	border-radius: 999px;
	animation-name: schalter-an-4;
}
.schalter__gruppe:last-child b { animation-name: schalter-an-2; }
@keyframes schalter-an-4 {
	0%, 21% { background: var(--akzent); color: var(--hg); }
	25%, 96% { background: transparent; color: var(--leise); }
	100% { background: var(--akzent); color: var(--hg); }
}
@keyframes schalter-an-2 {
	0%, 46% { background: var(--akzent); color: var(--hg); }
	50%, 96% { background: transparent; color: var(--leise); }
	100% { background: var(--akzent); color: var(--hg); }
}

/* ==========================================================================
   Wyna-Informatik: Eine Seite, drei Geräte. Desktop wird beim Scrollen
   zum Tablet und zum Handy, die Ansichten blenden ineinander.
   ========================================================================== */
.welt__bild--geraete { container-type: inline-size; }

.geraete {
	position: relative;
	height: min(66cqw, calc(100vh - var(--kopf) - 200px));
	display: grid;
	place-items: center;
}

.geraet {
	--b: 0px;
	position: relative;
	width: 100cqw;
	height: 62.5cqw;
	max-height: 100%;
	border-radius: 12px;
	border: var(--b) solid #0E171E;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 50px 90px -35px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08);
	display: flex;
	flex-direction: column;
}

.geraet__leiste {
	display: flex;
	gap: 6px;
	padding: 10px 14px;
	background: #EEF0F2;
	flex: none;
}
.geraet__leiste i { width: 10px; height: 10px; border-radius: 50%; background: #D3D7DB; }

.geraet__screen {
	position: relative;
	flex: 1;
}

.geraet__bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.geraet__bild--tablet,
.geraet__bild--handy { opacity: 0; }

.geraete__namen {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3rem;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 2rem;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--leise);
}
.geraete__namen span:first-child { color: var(--akzent); }

.geraete__detail {
	position: absolute;
	right: -4%;
	bottom: 6%;
	width: 46%;
	border-radius: 12px;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
	opacity: 0;
	z-index: 3;
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.geraet,
		.geraet__leiste,
		.geraet__bild--desktop,
		.geraet__bild--tablet,
		.geraet__bild--handy,
		.geraete__namen span,
		.geraete__detail {
			animation-timeline: --welt;
			animation-range: contain 0% contain 52%;
			animation-timing-function: linear;
			animation-fill-mode: both;
		}
		.geraet { animation-name: geraet-form; }
		@keyframes geraet-form {
			0%, 12% { width: 100cqw; height: 62.5cqw; border-radius: 12px; --b: 0px; }
			38%, 52% { width: 46cqw; height: 61cqw; border-radius: 26px; --b: 12px; }
			78%, 100% { width: 27cqw; height: 58cqw; border-radius: 38px; --b: 9px; }
		}
		.geraet__leiste { animation-name: leiste-weg; }
		@keyframes leiste-weg {
			0%, 12% { margin-top: 0; opacity: 1; }
			30%, 100% { margin-top: -30px; opacity: 0; }
		}
		.geraet__bild--desktop { animation-name: ansicht-1; }
		.geraet__bild--tablet { animation-name: ansicht-2; }
		.geraet__bild--handy { animation-name: ansicht-3; }
		@keyframes ansicht-1 { 0%, 18% { opacity: 1; } 30%, 100% { opacity: 0; } }
		@keyframes ansicht-2 { 0%, 18% { opacity: 0; } 30%, 58% { opacity: 1; } 70%, 100% { opacity: 0; } }
		@keyframes ansicht-3 { 0%, 58% { opacity: 0; } 70%, 100% { opacity: 1; } }

		.geraete__namen span:nth-child(1) { animation-name: name-1; }
		.geraete__namen span:nth-child(2) { animation-name: name-2; }
		.geraete__namen span:nth-child(3) { animation-name: name-3; }
		@keyframes name-1 { 0%, 24% { color: var(--akzent); } 25%, 100% { color: var(--leise); } }
		@keyframes name-2 { 0%, 24% { color: var(--leise); } 25%, 64% { color: var(--akzent); } 65%, 100% { color: var(--leise); } }
		@keyframes name-3 { 0%, 64% { color: var(--leise); } 65%, 100% { color: var(--akzent); } }

		.geraete__detail { animation-name: detail-rein; }
		@keyframes detail-rein {
			0%, 80% { opacity: 0; transform: translateY(40px) scale(0.92); }
			100% { opacity: 1; transform: none; }
		}
	}
}

/* Ohne Scroll-Animationen und auf dem Handy: alle drei Ansichten nebeneinander */
@supports not (animation-timeline: view()) {
	.geraete__namen { display: none; }
}
@media (max-width: 781px) {
	.geraete { height: auto; }
	.geraet { width: 100%; height: auto; aspect-ratio: 16 / 10; }
	.geraete__namen, .geraete__detail { display: none; }
	.faecher { height: 60vw; max-height: none; }
	.faecher__karte {
		width: 27vw;
		transform: translateX(calc(var(--mitte) * 46%)) rotate(calc(var(--mitte) * 5deg)) translateY(calc(var(--mitte) * var(--mitte) * 4%));
	}
	.schalter { justify-self: center; }
}

/* Rahmenbreite des Geräts weich animierbar */
@property --b {
	syntax: "<length>";
	inherits: true;
	initial-value: 0px;
}

/* Feinschliff: Duftfamilien als kleine Karte unten rechts, Google-Bewertung neben dem Handy */
@media (min-width: 782px) {
	.schaufenster { padding-bottom: 4rem; }
	.schaufenster__familien {
		position: absolute;
		right: -6%;
		bottom: -2rem;
		width: 40%;
		z-index: 20;
		rotate: 3deg;
	}
	.geraete__detail { right: -12%; bottom: 14%; width: 42%; }
}

/* --- Geräte wie echte Geräte: Rahmen mit Kante, passende innere Ecken, Kamera --- */
@property --r {
	syntax: "<length>";
	inherits: true;
	initial-value: 12px;
}

.geraet {
	--r: 12px;
	border: 0;
	padding: var(--b);
	border-radius: var(--r);
	background: linear-gradient(145deg, #2A3238, #0B1116 45%, #1A2127);
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.16),
		inset 0 0 0 2px #05090C,
		0 0 0 1px rgb(0 0 0 / 0.5),
		0 50px 90px -35px rgb(0 0 0 / 0.65);
	overflow: visible;
}

/* Glasfläche: Fensterleiste und Bildschirm zusammen, innere Ecken = äussere Ecken minus Rand,
   alles darin wird an den runden Ecken abgeschnitten */
.geraet__glas {
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: max(3px, var(--r) - var(--b));
	overflow: hidden;
	background: #fff;
}
.geraet__leiste { align-items: center; }
.geraet__screen { position: relative; flex: 1; overflow: hidden; }

.geraet__adresse {
	flex: 0 1 46%;
	height: 14px;
	margin: 0 auto;
	border-radius: 7px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #DADDE1;
}

/* Kamera: Pille beim Handy, Punkt beim Tablet */
.geraet__kamera {
	position: absolute;
	z-index: 4;
	left: 50%;
	top: calc(var(--b) + 7px);
	translate: -50% 0;
	width: 0;
	height: 0;
	border-radius: 999px;
	background: #05090C;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
	opacity: 0;
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.geraet__kamera {
			animation: kamera linear both;
			animation-timeline: --welt;
			animation-range: contain 0% contain 52%;
		}
		/* Tablet: kleiner Punkt im Rand oben, Handy: Pille im Bildschirm */
		@keyframes kamera {
			0%, 30% { opacity: 0; width: 6px; height: 6px; top: 3px; }
			38%, 58% { opacity: 1; width: 6px; height: 6px; top: 3px; }
			66% { opacity: 0; width: 6px; height: 6px; top: 3px; }
			74% { opacity: 0; width: 30%; height: 15px; top: calc(var(--b) + 7px); }
			80%, 100% { opacity: 1; width: 30%; height: 15px; top: calc(var(--b) + 7px); }
		}
		@keyframes geraet-form {
			0%, 12% { width: 100cqw; height: 62.5cqw; --r: 12px; --b: 0px; }
			38%, 52% { width: 46cqw; height: 61cqw; --r: 24px; --b: 12px; }
			78%, 100% { width: 27cqw; height: 58cqw; --r: 42px; --b: 7px; }
		}
	}
}

/* Statusleiste des Handys: Uhrzeit, Empfang, Akku */
.geraet__status {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	top: 0;
	height: 26px;
	padding: 0 9% 0 11%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #0F1A22;
	color: #fff;
	font-size: 10px;
	opacity: 0;
}
.geraet__status b { font-weight: 600; letter-spacing: 0.02em; }
.geraet__status span { display: flex; align-items: flex-end; gap: 1.5px; }
.geraet__status i { width: 2.5px; background: #fff; border-radius: 1px; }
.geraet__status i:nth-child(1) { height: 4px; }
.geraet__status i:nth-child(2) { height: 6px; }
.geraet__status i:nth-child(3) { height: 8px; }
.geraet__status em {
	width: 15px;
	height: 7px;
	margin-left: 4px;
	border: 1px solid rgb(255 255 255 / 0.7);
	border-radius: 2px;
	background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box;
	padding: 1px;
	align-self: center;
}
.geraet__bild--handy { top: 26px; height: calc(100% - 26px); }

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.geraet__status {
			animation: status-an linear both;
			animation-timeline: --welt;
			animation-range: contain 0% contain 52%;
		}
		@keyframes status-an {
			0%, 66% { opacity: 0; }
			72%, 100% { opacity: 1; }
		}
		/* Pille mittig in der Statusleiste */
		@keyframes kamera {
			0%, 30% { opacity: 0; width: 6px; height: 6px; top: 3px; }
			38%, 58% { opacity: 1; width: 6px; height: 6px; top: 3px; }
			66% { opacity: 0; width: 6px; height: 6px; top: 3px; }
			74% { opacity: 0; width: 28%; height: 16px; top: calc(var(--b) + 5px); }
			80%, 100% { opacity: 1; width: 28%; height: 16px; top: calc(var(--b) + 5px); }
		}
	}
}

/* Fensterleiste: feste Höhe, verschwindet beim Verwandeln vollständig */
.geraet__leiste { box-sizing: border-box; height: 34px; padding-block: 0; }
.geraet__glas { background: #0F1A22; }
@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		@keyframes leiste-weg {
			0%, 12% { margin-top: 0; opacity: 1; }
			30%, 100% { margin-top: -34px; opacity: 0; }
		}
	}
}

/* Handy-Kamera wie beim Galaxy S24+: kleiner runder Punkt mittig in der Statusleiste */
@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		@keyframes kamera {
			0%, 30% { opacity: 0; width: 6px; height: 6px; top: 3px; }
			38%, 58% { opacity: 1; width: 6px; height: 6px; top: 3px; }
			66% { opacity: 0; width: 6px; height: 6px; top: 3px; }
			74% { opacity: 0; width: 11px; height: 11px; top: calc(var(--b) + 7.5px); }
			80%, 100% { opacity: 1; width: 11px; height: 11px; top: calc(var(--b) + 7.5px); }
		}
	}
}
.geraet__kamera {
	background: radial-gradient(circle at 35% 35%, #2B3A48 0 18%, #05090C 40%);
	box-shadow: 0 0 0 1.5px #000, inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

/* Handy-Kamera fest in der Mitte der Statusleiste (verrutscht nicht beim Scrollen) */
.geraet__status .geraet__loch {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #2B3A48 0 18%, #05090C 40%);
	box-shadow: 0 0 0 1.5px #000;
}
/* Der bewegliche Punkt ist nur noch die Tablet-Kamera im Rahmen */
@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		@keyframes kamera {
			0%, 30% { opacity: 0; }
			38%, 58% { opacity: 1; }
			66%, 100% { opacity: 0; }
		}
	}
}
.geraet__kamera { width: 6px; height: 6px; top: 3px; }

/* ==========================================================================
   Pendenzia: Ein Auftrag läuft durch. Oben die Schritte, darunter wechseln
   beim Scrollen die Bildschirme: Terminal, Auftrag, Handy der Kundin, Rechnung.
   ========================================================================== */
.auftrag {
	position: relative;
	display: grid;
	gap: 1.4rem;
}

.auftrag__schritte {
	counter-reset: schritt;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, auto) 1fr;
	align-items: center;
	column-gap: 0.6rem;
	row-gap: 1rem;
}
.auftrag__schritt { display: contents; }

.auftrag__marke {
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--akzent) 45%, transparent);
	color: var(--akzent);
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	counter-increment: schritt;
}
.auftrag__marke::before {
	content: counter(schritt, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: 0.75rem;
	opacity: 0.7;
}

/* Erklärung des aktiven Schritts, alle übereinander in derselben Zeile */
.auftrag__text {
	grid-row: 2;
	grid-column: 1 / -1;
	margin: 0;
	color: var(--leise);
	font-size: 1.05rem;
	line-height: 1.4;
	opacity: 0;
}

.auftrag__browser {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 50px 90px -35px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(0 0 0 / 0.06);
}

.auftrag__fenster {
	position: relative;
	aspect-ratio: 16 / 10;
	max-height: calc(100vh - var(--kopf) - 280px);
	width: 100%;
	overflow: hidden;
	container-type: size;
	background: #F6F7F9;
}

.auftrag__screen {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto;
	opacity: 0;
}
.auftrag__screen--1 { height: 100%; object-fit: cover; object-position: top; }
/* Ohne Bewegung: der Auftrag steht */
.auftrag__screen--2 { opacity: 1; }

.auftrag__handy {
	position: absolute;
	z-index: 3;
	right: -5%;
	bottom: -7%;
	width: 23%;
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top;
	border-radius: 26px;
	border: 6px solid #0E171E;
	box-shadow: 0 40px 70px -25px rgb(15 42 74 / 0.55);
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.auftrag__marke,
		.auftrag__text,
		.auftrag__screen,
		.auftrag__handy {
			animation-timeline: --welt;
			animation-range: contain 0% contain 52%;
			animation-timing-function: linear;
			animation-fill-mode: both;
		}

		/* Schritte: aktiv = gefüllt, erledigt = Linie, noch nicht = leise */
		.auftrag__schritt:nth-child(1) .auftrag__marke { animation-name: marke-1; }
		.auftrag__schritt:nth-child(2) .auftrag__marke { animation-name: marke-2; }
		.auftrag__schritt:nth-child(3) .auftrag__marke { animation-name: marke-3; }
		.auftrag__schritt:nth-child(4) .auftrag__marke { animation-name: marke-4; }
		@keyframes marke-1 {
			0%, 24% { background: var(--akzent); color: #fff; border-color: var(--akzent); }
			25%, 100% { background: transparent; color: var(--akzent); border-color: color-mix(in srgb, var(--akzent) 45%, transparent); }
		}
		@keyframes marke-2 {
			0%, 24% { background: transparent; color: var(--leise); border-color: color-mix(in srgb, var(--leise) 35%, transparent); }
			25%, 49% { background: var(--akzent); color: #fff; border-color: var(--akzent); }
			50%, 100% { background: transparent; color: var(--akzent); border-color: color-mix(in srgb, var(--akzent) 45%, transparent); }
		}
		@keyframes marke-3 {
			0%, 49% { background: transparent; color: var(--leise); border-color: color-mix(in srgb, var(--leise) 35%, transparent); }
			50%, 74% { background: var(--akzent); color: #fff; border-color: var(--akzent); }
			75%, 100% { background: transparent; color: var(--akzent); border-color: color-mix(in srgb, var(--akzent) 45%, transparent); }
		}
		@keyframes marke-4 {
			0%, 74% { background: transparent; color: var(--leise); border-color: color-mix(in srgb, var(--leise) 35%, transparent); }
			75%, 100% { background: var(--akzent); color: #fff; border-color: var(--akzent); }
		}

		.auftrag__schritt:nth-child(1) .auftrag__text { animation-name: text-1; }
		.auftrag__schritt:nth-child(2) .auftrag__text { animation-name: text-2; }
		.auftrag__schritt:nth-child(3) .auftrag__text { animation-name: text-3; }
		.auftrag__schritt:nth-child(4) .auftrag__text { animation-name: text-4; }
		@keyframes text-1 { 0%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-8px); } }
		@keyframes text-2 { 0%, 25% { opacity: 0; transform: translateY(8px); } 28%, 47% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-8px); } }
		@keyframes text-3 { 0%, 50% { opacity: 0; transform: translateY(8px); } 53%, 72% { opacity: 1; transform: none; } 75%, 100% { opacity: 0; transform: translateY(-8px); } }
		@keyframes text-4 { 0%, 75% { opacity: 0; transform: translateY(8px); } 78%, 100% { opacity: 1; transform: none; } }

		/* Bildschirme: Terminal, dann der Auftrag (scrollt durch), dann die Rechnung (scrollt zum QR-Teil) */
		.auftrag__screen--1 { animation-name: screen-1; }
		.auftrag__screen--2 { animation-name: screen-2; }
		.auftrag__screen--3 { animation-name: screen-3; }
		@keyframes screen-1 {
			0%, 21% { opacity: 1; transform: none; }
			27%, 100% { opacity: 0; transform: scale(0.97); }
		}
		@keyframes screen-2 {
			0%, 21% { opacity: 0; transform: translateY(6%); }
			27% { opacity: 1; transform: translateY(0); }
			58%, 74% { opacity: 1; transform: translateY(calc(-100% + 100cqh)); }
			79%, 100% { opacity: 0; transform: translateY(calc(-100% + 100cqh)); }
		}
		@keyframes screen-3 {
			0%, 74% { opacity: 0; transform: translateY(6%); }
			80% { opacity: 1; transform: translateY(0); }
			97%, 100% { opacity: 1; transform: translateY(calc(-100% + 100cqh)); }
		}

		/* Handy der Kundin kommt beim Schritt "Abholbereit" */
		.auftrag__handy { animation-name: handy-rein; }
		@keyframes handy-rein {
			0%, 49% { opacity: 0; transform: translateY(70px) rotate(4deg); }
			56%, 74% { opacity: 1; transform: none; }
			80%, 100% { opacity: 0; transform: translateY(40px); }
		}
	}
}

/* Ohne Scroll-Animationen und auf dem Handy: Schritte als Liste, Auftrag und Handy stehen */
@supports not (animation-timeline: view()) {
	.auftrag__schritte { grid-template-columns: 1fr; }
	.auftrag__marke, .auftrag__text { grid-row: auto; grid-column: 1; justify-self: start; }
	.auftrag__text { opacity: 1; margin-bottom: 0.6rem; }
}
@media (max-width: 781px) {
	.auftrag__schritte { grid-template-columns: auto 1fr; column-gap: 0.8rem; row-gap: 0.6rem; }
	.auftrag__marke, .auftrag__text { grid-row: auto; opacity: 1; }
	.auftrag__marke { grid-column: 1; justify-self: start; }
	.auftrag__text { grid-column: 2; font-size: 0.95rem; }
	.auftrag__fenster { max-height: none; }
	.auftrag__handy { right: -2%; bottom: -10%; width: 26%; border-width: 4px; border-radius: 18px; }
}

/* ==========================================================================
   Pendenzia: Wand aus echten Bildschirmen, schräg im Raum. Zeigt den Umfang:
   jeder Bereich der App eine Kachel, hell und dunkel, Desktop und Handy.
   Spalten laufen beim Scrollen gegeneinander, man fliegt darüber.
   ========================================================================== */
.welt__bild--wand { position: relative; align-self: stretch; }
.welt:has(.wand) .welt__text { position: relative; z-index: 2; }
/* Pendenzia hat zwei Phasen (Wand, dann Highlights) und bleibt deshalb länger stehen */
.welt:has(.wand) { --hoehe: 680vh; }

.wand {
	position: absolute;
	z-index: 1;
	top: -12%;
	bottom: -12%;
	left: -130px;
	width: 100vw;
	overflow: hidden;
	perspective: 1700px;
	perspective-origin: 20% 45%;
	/* weicher Übergang zum Text */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
	mask-image: linear-gradient(90deg, transparent 0, #000 14%);
	pointer-events: none;
}

.wand__ebene {
	position: absolute;
	top: 50%;
	left: 4%;
	display: flex;
	align-items: flex-start;
	gap: 26px;
	transform-origin: 0 50%;
	transform: translateY(-50%) rotateX(42deg) rotateZ(-26deg);
	transform-style: preserve-3d;
}

.wand__spalte {
	flex: none;
	width: 400px;
	display: flex;
	flex-direction: column;
	gap: 26px;
	--r: 1;
}
.wand__spalte:nth-child(even) { margin-top: -180px; --r: -1; }
.wand__spalte--handy { width: 188px; margin-top: 90px; }

.wand__kachel {
	position: relative;
	margin: 0;
	border-radius: 10px;
	background: #fff;
	box-shadow:
		0 0 0 1px rgb(15 42 74 / 0.08),
		0 30px 50px -20px rgb(15 42 74 / 0.35);
}
.wand__kachel img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top left;
	border-radius: inherit;
}
.wand__spalte--handy .wand__kachel {
	border-radius: 24px;
	border: 5px solid #0E171E;
	background: #0E171E;
}
.wand__spalte--handy .wand__kachel img { aspect-ratio: 390 / 844; border-radius: 19px; }

.wand__kachel figcaption {
	position: absolute;
	left: 14px;
	bottom: -13px;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	/* ruhig (03.12.): weiss mit dunkler Schrift statt kräftigem Blau, damit die Wand nicht vom Titel ablenkt */
	background: rgb(255 255 255 / 0.94);
	color: #1B2A35;
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: 0 0 0 1px rgb(15 23 42 / 0.06), 0 6px 16px -6px rgb(15 23 42 / 0.25);
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.wand__spalte {
			animation: wand-lauf linear both;
			animation-timeline: --welt;
			animation-range: entry 0% contain 8.6%;
		}
		@keyframes wand-lauf {
			from { translate: 0 calc(var(--r) * 480px); }
			to { translate: 0 calc(var(--r) * -620px); }
		}
		/* Die ganze Wand dreht sich beim Durchfliegen leicht auf */
		.wand__ebene {
			animation: wand-flug linear both;
			animation-timeline: --welt;
			animation-range: entry 0% contain 8.6%;
		}
		@keyframes wand-flug {
			from { transform: translateY(-50%) translateX(6%) rotateX(48deg) rotateZ(-30deg); }
			to { transform: translateY(-50%) translateX(-8%) rotateX(36deg) rotateZ(-20deg); }
		}
	}
}

@media (max-width: 781px) {
	.welt__bild--wand { position: relative; padding-top: 92vw; }
	.wand { top: 0; bottom: auto; height: 92vw; left: -10vw; width: 120vw; -webkit-mask-image: none; mask-image: none; }
	.wand__ebene { left: 0; transform: translateY(-50%) scale(0.5) rotateX(42deg) rotateZ(-26deg); }
}

/* --- Zweite Phase: Wand tritt zurück, die Highlights kommen nacheinander nach vorn.
   Jedes in eigener Form: Tablet, Handy, Papier, Karte aus der App --- */
.highlights {
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
}
.highlight {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 1.6rem;
	opacity: 0;
}
/* Hochformat (Handy, Papier): Text links, Bild rechts */
.highlight--handy,
.highlight--papier {
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2.5rem;
}

.highlight__text { max-width: 26rem; }
.highlight__nr {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	color: var(--akzent);
}
.highlight__titel {
	margin: 0;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(1.6rem, 2.4vw, 2.3rem);
	line-height: 1.1;
	color: var(--text);
}
.highlight__zeile {
	margin: 0.7rem 0 0;
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--leise);
}

.highlight__bild img { display: block; }

.highlight--tablet .highlight__bild img {
	height: min(50vh, 430px);
	width: auto;
	aspect-ratio: 1180 / 820;
	object-fit: cover;
	border: 14px solid #0E171E;
	border-radius: 30px;
	box-shadow: 0 50px 90px -35px rgb(15 42 74 / 0.55);
}
.highlight--handy .highlight__bild img {
	height: min(64vh, 560px);
	width: auto;
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top;
	border: 8px solid #0E171E;
	border-radius: 38px;
	box-shadow: 0 50px 90px -35px rgb(15 42 74 / 0.6);
}
.highlight--papier .highlight__bild img {
	height: min(66vh, 580px);
	width: auto;
	background: #fff;
	rotate: -3deg;
	box-shadow: 0 2px 4px rgb(15 42 74 / 0.08), 0 40px 70px -30px rgb(15 42 74 / 0.45);
}
.highlight--karte .highlight__bild img {
	width: min(100%, 640px);
	max-height: 50vh;
	object-fit: cover;
	object-position: top;
	border-radius: 16px;
	box-shadow: 0 0 0 1px rgb(15 42 74 / 0.06), 0 50px 90px -35px rgb(15 42 74 / 0.45);
}

@supports (animation-timeline: view()) {
	@media (min-width: 782px) {
		.highlights,
		.highlight,
		.highlight__bild,
		.highlight__text {
			animation-timeline: --welt;
			animation-timing-function: linear;
			animation-fill-mode: both;
		}
		/* Wand tritt zurück, wenn die Highlights kommen */
		.wand {
			animation: wand-weg linear both;
			animation-timeline: --welt;
			animation-range: contain 5.2% contain 11.2%;
		}
		@keyframes wand-weg {
			to { opacity: 0.18; filter: blur(3px); }
		}
		/* Längere Welt: erst zurücktreten, wenn die nächste wirklich kommt (ab ca. 83 %) */
		.welt:has(.wand):not(:last-child) .welt__inhalt { animation-range: contain 82.8% contain 100%; }

		/* Kommt im Winkel der Wand und richtet sich auf */
		.highlights { animation-name: highlights-rein; animation-range: contain 5.2% contain 11.2%; }
		@keyframes highlights-rein {
			from { opacity: 0; transform: perspective(1700px) translateY(18%) rotateX(42deg) rotateZ(-26deg) scale(0.72); }
			35% { opacity: 1; }
			to { opacity: 1; transform: none; }
		}

		.highlight,
		.highlight__bild,
		.highlight__text { animation-range: contain var(--von) contain var(--bis); }
		.highlight { animation-name: highlight-an; }
		@keyframes highlight-an {
			0% { opacity: 0; }
			12%, 88% { opacity: 1; }
			100% { opacity: 0; }
		}
		.highlight--erstes { animation-name: highlight-erstes; }
		@keyframes highlight-erstes { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
		.highlight--letztes { animation-name: highlight-letztes; }
		@keyframes highlight-letztes { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }

		/* Bild steigt auf und wandert langsam weiter, Text folgt etwas versetzt */
		.highlight__bild { animation-name: highlight-bild; }
		@keyframes highlight-bild {
			from { transform: translateY(70px) scale(0.95); }
			20% { transform: translateY(0) scale(1); }
			to { transform: translateY(-40px) scale(1); }
		}
		.highlight__text { animation-name: highlight-text; }
		@keyframes highlight-text {
			from { transform: translateY(30px); }
			25% { transform: none; }
			to { transform: translateY(-15px); }
		}
	}
}
@supports not (animation-timeline: view()) {
	.highlights { display: none; }
}
@media (max-width: 781px) {
	.highlights { position: relative; inset: auto; display: grid; gap: 3rem; margin-top: 2.5rem; }
	.highlight { position: relative; inset: auto; opacity: 1; grid-template-columns: 1fr; gap: 1.2rem; }
	.highlight__bild { justify-self: center; }
	.highlight--tablet .highlight__bild img { height: auto; width: 100%; border-width: 9px; border-radius: 20px; }
	.highlight--handy .highlight__bild img { height: 70vh; }
	.highlight--papier .highlight__bild img { height: auto; width: 82vw; }
	.highlight--karte .highlight__bild img { max-height: none; }
}

/* Platzhalter im Editor für reine Code-Teile (Collage, Projektwelten) */
.silvan-platzhalter {
	padding: 2rem;
	border: 2px dashed currentColor;
	border-radius: 12px;
	opacity: 0.7;
	text-align: center;
	font-size: 0.95rem;
}

/* ---------- Fallstudie: Ablauf in Schritten, Technik, Selbst ausprobieren ---------- */
.ablauf-schritt h3 {
	margin-top: 0.3rem;
}

.technik-liste {
	padding-left: 1.1rem;
	margin-top: var(--wp--preset--spacing--40);
}

.technik-liste li + li {
	margin-top: 0.6rem;
}

.selbst-ausprobieren {
	background: var(--wp--preset--color--weiss);
	border-radius: var(--radius);
	border-top: 4px solid var(--wp--preset--color--sand);
	box-shadow: var(--schatten);
}

.selbst-ausprobieren h2 {
	margin-top: 0.3rem;
}

/* Handy: Bild immer vor dem Text, sonst stehen zwei Bilder direkt untereinander */
@media (max-width: 781px) {
	.ablauf-schritt > .wp-block-column:has(> figure) {
		order: -1;
	}
}

/* ---------- Elemente erscheinen einzeln beim Scrollen, alle Seiten (assets/js/einblenden.js) ---------- */
.ab {
	opacity: 0;
	transform: translateY(2rem);
	transition: opacity 0.7s ease-out, transform 0.9s var(--weich);
}

.ab[data-richtung="links"] { transform: translateX(-3.5rem); }
.ab[data-richtung="rechts"] { transform: translateX(3.5rem); }
.ab.ab-klein { transform: translateY(0.6rem) scale(0.85); transition-duration: 0.45s, 0.5s; }

.ab.da {
	opacity: 1;
	transform: none;
}

/* Wo das Skript übernimmt, die ältere Variante (nur Chrome, ganze Abschnitte) nicht zusätzlich laufen lassen */
.ab-bereich,
.ab:is(.einblenden, .projekt-karte, .werdegang__eintrag, .entscheid),
.ab-fertig:is(.einblenden, .projekt-karte, .werdegang__eintrag, .entscheid) {
	animation: none;
}

/* ==========================================================================
   Kopf der Fallstudie (02.12.): Text links, Titelbild rechts, ragt in den hellen Bereich.
   Darunter eine ruhige Info-Leiste ohne Karte.
   ========================================================================== */
.single-projekt {
	--ueberhang: clamp(4rem, 9vw, 9rem);
}

.fallstudie-kopf {
	position: relative;
	z-index: 1;
}

.fallstudie-kopf .wp-block-post-excerpt__excerpt {
	max-width: 34ch;
}

.fallstudie-kopf__spalten > .wp-block-column:last-child {
	align-self: flex-end;
}

/* Negativer Abstand unten: der dunkle Bereich endet vor dem Bild, das Bild ragt in den hellen Bereich */
.fallstudie-kopf__bild {
	margin: 0 0 calc(-1 * (var(--ueberhang) + var(--wp--preset--spacing--60))) !important;
	animation: bild-rein 1.2s 0.25s var(--weich) both;
}

.fallstudie-kopf__bild img {
	border-radius: var(--radius);
	box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.55);
}

.projekt-knoepfe {
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--30);
}

.projekt-knoepfe:empty {
	display: none;
}

.projekt-knopf {
	margin: 0;
}

/* Info-Leiste */
.single-projekt .projekt-infos {
	margin-top: calc(var(--ueberhang) + var(--wp--preset--spacing--50)) !important;
	background: none;
	box-shadow: none;
	border-radius: 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
	padding-inline: 0 !important;
	row-gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)) !important;
}

.single-projekt .projekt-infos .projekt-angabe {
	border-left: 2px solid var(--wp--preset--color--sand);
	padding-left: 1rem;
}

.single-projekt .projekt-infos .projekt-label {
	background: none;
	padding: 0;
	font-size: var(--wp--preset--font-size--klein);
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--text-leise);
}

.single-projekt .projekt-infos .projekt-wert {
	margin-top: 0.35rem;
	line-height: 1.45;
}

@media (max-width: 781px) {
	.single-projekt {
		--ueberhang: 2.5rem;
	}
	.fallstudie-kopf__spalten {
		gap: var(--wp--preset--spacing--50) !important;
	}
}

/* Computer: Info-Leiste links neben dem überragenden Titelbild, zwei Spalten (gleich breit wie die Textspalte) */
@media (min-width: 782px) {
	.single-projekt .projekt-infos {
		margin-top: var(--wp--preset--spacing--50) !important;
		max-width: calc(min(100%, 1240px) * 0.42) !important;
		margin-left: calc((100% - min(100%, 1240px)) / 2) !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		min-height: var(--ueberhang);
		border-bottom: none;
		padding-top: 0 !important;
	}
}

/* Freigestelltes Titelbild (Anhang-Feld "freigestellt"): Fenster und Schatten sind schon im Bild.
   contain mit !important: der Block setzt inline object-fit:cover im 16:10-Rahmen, das schnitt oben die Fensterleiste ab (04.12.) */
.ist-freigestellt img,
.fallstudie-kopf__bild.ist-freigestellt img {
	border-radius: 0;
	box-shadow: none;
	background: none;
	object-fit: contain !important;
	object-position: 50% 100%;
}

/* Bilder in den Entscheid-Karten: eigener Rahmen im Bild, etwas über den Kartenrand hinaus */
.entscheid__bild {
	margin: calc(-0.5 * var(--wp--preset--spacing--40)) calc(-0.5 * var(--wp--preset--spacing--40)) 0.5rem !important;
}

.entscheid__bild img {
	display: block;
	width: 100%;
	height: auto;
}

/* Auf der Übersicht: dunkle Fläche wie im Kopf der Fallstudie, Bild mit Luft */
.projekt-karte .wp-block-post-featured-image.ist-freigestellt {
	background: var(--wp--preset--color--schiefer);
}

/* 04.12.: Fläche in den Farben des Projekts (Variablen aus silvan_karten_farben), ein Hauch der Projektwelt */
.projekt-karte .wp-block-post-featured-image.ist-freigestellt[style*="--k-hg"] {
	background:
		radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--k-akzent) 45%, transparent), transparent 70%),
		radial-gradient(55% 60% at 8% 100%, color-mix(in srgb, var(--k-akzent2, var(--k-akzent)) 32%, transparent), transparent 70%),
		linear-gradient(150deg, var(--k-hg2), var(--k-hg));
}

.projekt-karte .ist-freigestellt img {
	padding: 6% 5% 3%;
}

/* Im Kopf: freigestelltes Bild etwas grösser, wächst nach links und oben in den leeren Raum */
.fallstudie-kopf__bild.ist-freigestellt img {
	transform: scale(1.14);
	transform-origin: 75% 100%;
}

@media (max-width: 781px) {
	.fallstudie-kopf__bild.ist-freigestellt img {
		transform: none;
	}
}

/* ==========================================================================
   Kopf mit freigestelltem Titelbild (Pendenzia, 02.12. abends): Bild gross bis an den rechten Fensterrand,
   mittig neben dem Text, läuft unten und links weich in den dunklen Grund aus, Lichtschein dahinter.
   Kein Überhang in den hellen Bereich; Angaben darunter in einer Zeile.
   ========================================================================== */
.fallstudie-kopf:has(.ist-freigestellt) {
	overflow: clip;
	padding-bottom: var(--wp--preset--spacing--50) !important;
}

.fallstudie-kopf:has(.ist-freigestellt)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60% 70% at 78% 52%, rgb(120 160 220 / 0.22), transparent 70%),
		radial-gradient(35% 45% at 92% 30%, rgb(242 206 150 / 0.08), transparent 70%);
}

.fallstudie-kopf:has(.ist-freigestellt) .fallstudie-kopf__spalten > .wp-block-column:last-child {
	align-self: center;
}

.fallstudie-kopf__bild.ist-freigestellt {
	margin: 0 !important;
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%), linear-gradient(to right, transparent 0, #000 14%);
	mask-image: linear-gradient(to bottom, #000 62%, transparent 97%), linear-gradient(to right, transparent 0, #000 14%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.fallstudie-kopf__bild.ist-freigestellt img {
	transform: none;
}

@media (min-width: 782px) {
	/* bis an den rechten Fensterrand (Inhalt höchstens 1240px breit) */
	.fallstudie-kopf__bild.ist-freigestellt {
		width: calc(100% + max(var(--wp--style--root--padding-right, 0px), (100vw - 1240px) / 2)) !important;
		max-width: none !important;
	}

	.single-projekt:has(.fallstudie-kopf__bild.ist-freigestellt) .projekt-infos {
		margin-top: var(--wp--preset--spacing--50) !important;
		margin-left: auto !important;
		max-width: min(100%, 1240px) !important;
		min-height: 0;
		padding-top: 0 !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
		border-bottom: 1px solid var(--wp--preset--color--linie);
		grid-template-columns: none !important;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--40);
	}
}

@media (min-width: 782px) {
	/* grösser, wächst nach links in die Lücke neben dem Text; linker Rand nur kurz ausgeblendet */
	.fallstudie-kopf__bild.ist-freigestellt {
		-webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 98%), linear-gradient(to right, transparent 0, #000 7%);
		mask-image: linear-gradient(to bottom, #000 66%, transparent 98%), linear-gradient(to right, transparent 0, #000 7%);
	}
	.fallstudie-kopf__bild.ist-freigestellt {
		margin-left: -14% !important;
		width: calc(114% + max(var(--wp--style--root--padding-right, 0px), (100vw - 1240px) / 2)) !important;
	}
	.fallstudie-kopf:has(.ist-freigestellt) .fallstudie-kopf__spalten > .wp-block-column:first-child {
		position: relative;
		z-index: 1;
	}
}

@media (min-width: 782px) {
	/* straffer, damit die Angaben-Zeile noch im ersten Bild steht; Verlauf unten später, Handy bleibt sichtbar */
	.fallstudie-kopf:has(.ist-freigestellt) {
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-bottom: var(--wp--preset--spacing--30) !important;
	}
	.fallstudie-kopf__bild.ist-freigestellt {
		/* nur unten (dort ist das Dashboard abgeschnitten), links und oben klare Fensterkante */
		-webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
		mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
	}
	.single-projekt:has(.fallstudie-kopf__bild.ist-freigestellt) .projekt-infos {
		margin-top: var(--wp--preset--spacing--40) !important;
	}
}

/* ==========================================================================
   Browser- und Handy-Rahmen nachgeschärft (02.12. abends)
   ========================================================================== */
/* Leiste in eigener Farbe: in der Farbe des Seitengrunds verschwand sie, das Fenster wirkte oben eckig */
.wp-block-image.is-style-browser::before {
	background:
		radial-gradient(circle at 20px 19px, #F2CE96 5px, transparent 6px),
		radial-gradient(circle at 38px 19px, #C9CFD6 5px, transparent 6px),
		radial-gradient(circle at 56px 19px, #C9CFD6 5px, transparent 6px),
		#E4E8EC;
	border-bottom-color: #D5DAE0;
}

/* Handy: schmaler Rand, leichte Kante, kleiner */
.wp-block-image.is-style-handy {
	max-width: 260px;
	padding: 7px;
	border-radius: 40px;
	box-shadow: var(--schatten), inset 0 0 0 1.5px rgb(255 255 255 / 0.12);
}

.wp-block-image.is-style-handy img {
	border-radius: 33px;
}

/* Handy neben einem Browser-Fenster: schiebt sich über dessen rechten unteren Rand */
@media (min-width: 782px) {
	.wp-block-columns:has(.is-style-browser):has(.handy-gekuerzt) > .wp-block-column:has(.handy-gekuerzt) {
		position: relative;
		z-index: 1;
		margin-left: -9%;
		align-self: flex-end;
	}
	.wp-block-columns:has(.is-style-browser):has(.handy-gekuerzt) .is-style-handy {
		margin: 0 0 -2rem;
		box-shadow: 0 40px 70px -25px rgb(20 30 45 / 0.45), inset 0 0 0 2px #2c3640, inset 0 0 0 3px #0b0f13;
	}
}

/* Handy-Bild mit wenig Inhalt (Klasse "handy-gekuerzt" am Bildblock): unten gekürzt statt leerer Fläche */
.wp-block-image.is-style-handy.handy-gekuerzt img {
	aspect-ratio: 9 / 15.5;
	object-fit: cover;
	object-position: top;
}

@media (min-width: 782px) {
	.wp-block-columns:has(.is-style-browser):has(.handy-gekuerzt) .is-style-handy {
		max-width: 240px;
	}
}


/* ==========================================================================
   Geräterahmen nach Vorlage (02.12. abends): Fenster mit grauer Leiste, grauen Punkten und Adressfeld,
   Handy mit Statusleiste (Uhrzeit, Kamera, Empfang, Akku). Gilt für alle Projekte.
   ========================================================================== */
.wp-block-image.is-style-browser {
	border-radius: 16px;
	box-shadow: var(--schatten), 0 0 0 1px rgb(15 23 42 / 0.14);
}

.wp-block-image.is-style-browser::before {
	height: 40px;
	background:
		radial-gradient(circle at 22px 20px, #C9CED4 5.5px, transparent 6.5px),
		radial-gradient(circle at 41px 20px, #C9CED4 5.5px, transparent 6.5px),
		radial-gradient(circle at 60px 20px, #C9CED4 5.5px, transparent 6.5px),
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22400%22%20height%3D%2222%22%3E%3Crect%20x%3D%220.75%22%20y%3D%220.75%22%20width%3D%22398.5%22%20height%3D%2220.5%22%20rx%3D%2210.25%22%20fill%3D%22%23fff%22%20stroke%3D%22%23D3D8DE%22%20stroke-width%3D%221.5%22/%3E%3C/svg%3E") center / min(46%, 400px) 22px no-repeat,
		#EEF0F2;
	border-bottom: 1px solid #DDE1E5;
}

.wp-block-image.is-style-handy {
	position: relative;
	padding: 8px;
	border-radius: 44px;
	background: #10161c;
	box-shadow: var(--schatten), inset 0 0 0 2px #2c3640, inset 0 0 0 3px #0b0f13;
}

/* Statusleiste: Teil des Bildschirms, darunter das Bild */
.wp-block-image.is-style-handy::before {
	content: "";
	display: block;
	height: 34px;
	border-radius: 36px 36px 0 0;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2218%22%3E%3Ctext%20x%3D%220%22%20y%3D%2214%22%20font-family%3D%22-apple-system%2CSegoe%20UI%2CRoboto%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2214.5%22%20font-weight%3D%22600%22%20fill%3D%22%23fff%22%3E9%3A41%3C/text%3E%3C/svg%3E") 24px 9px / 44px 18px no-repeat,
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%2216%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%227.5%22%20fill%3D%22%2305080b%22/%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%223%22%20fill%3D%22%231b2633%22/%3E%3C/svg%3E") center 9px / 16px 16px no-repeat,
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2246%22%20height%3D%2214%22%3E%3Crect%20x%3D%220%22%20y%3D%229%22%20width%3D%223%22%20height%3D%224%22%20rx%3D%221%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224.5%22%20y%3D%226.5%22%20width%3D%223%22%20height%3D%226.5%22%20rx%3D%221%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%229%22%20y%3D%223.5%22%20width%3D%223%22%20height%3D%229.5%22%20rx%3D%221%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2221.75%22%20y%3D%221.75%22%20width%3D%2220%22%20height%3D%2210.5%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%2224%22%20y%3D%224%22%20width%3D%2211%22%20height%3D%226%22%20rx%3D%221.5%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2243%22%20y%3D%225%22%20width%3D%222%22%20height%3D%224%22%20rx%3D%221%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E") right 20px top 11px / 46px 14px no-repeat,
		#141b22;
}

.wp-block-image.is-style-handy img {
	border-radius: 0 0 36px 36px;
}


/* Weisse Leiste (Wunsch), Adressfeld hellgrau */
.wp-block-image.is-style-browser::before {
	background:
		radial-gradient(circle at 22px 20px, #D0D5DB 5.5px, transparent 6.5px),
		radial-gradient(circle at 41px 20px, #D0D5DB 5.5px, transparent 6.5px),
		radial-gradient(circle at 60px 20px, #D0D5DB 5.5px, transparent 6.5px),
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22400%22%20height%3D%2222%22%3E%3Crect%20x%3D%220.75%22%20y%3D%220.75%22%20width%3D%22398.5%22%20height%3D%2220.5%22%20rx%3D%2210.25%22%20fill%3D%22%23F1F3F5%22%20stroke%3D%22%23E1E5EA%22%20stroke-width%3D%221.5%22/%3E%3C/svg%3E") center / min(46%, 400px) 22px no-repeat,
		#fff;
	border-bottom-color: #E6E9ED;
}


/* Leiste kompakter, Adressfeld zurückhaltend (ohne Rand, schmaler) */
.wp-block-image.is-style-browser::before {
	height: 32px;
	background:
		radial-gradient(circle at 18px 16px, #D5DAE0 4.5px, transparent 5.5px),
		radial-gradient(circle at 33px 16px, #D5DAE0 4.5px, transparent 5.5px),
		radial-gradient(circle at 48px 16px, #D5DAE0 4.5px, transparent 5.5px),
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22400%22%20height%3D%2218%22%3E%3Crect%20width%3D%22400%22%20height%3D%2218%22%20rx%3D%229%22%20fill%3D%22%23F2F4F6%22/%3E%3C/svg%3E") center / min(36%, 340px) 18px no-repeat,
		#fff;
}


/* Statusleiste als Teil des Bildschirms (wie Samsung S24): Farbe des oberen Bildrands, oben abgerundet wie unten.
   Farbe und Schriftfarbe setzt assets/js/handy-statusleiste.js; Kamera als Loch im Bildschirm. */
.wp-block-image.is-style-handy {
	--statusfarbe: #f6f7f9;
	--statustext: #111418;
	padding: 7px;
	border-radius: 42px;
}

.wp-block-image.is-style-handy::before {
	height: 32px;
	border-radius: 35px 35px 0 0;
	background: radial-gradient(circle at 50% 16px, #05080b 6.5px, transparent 7px), var(--statusfarbe);
}

.wp-block-image.is-style-handy::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 7px;
	right: 7px;
	height: 32px;
	pointer-events: none;
	background: var(--statustext);
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2218%22%3E%3Ctext%20x%3D%220%22%20y%3D%2214%22%20font-family%3D%22-apple-system%2CSegoe%20UI%2CRoboto%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2214.5%22%20font-weight%3D%22600%22%20fill%3D%22%23000%22%3E9%3A41%3C/text%3E%3C/svg%3E") 26px 8px / 44px 18px no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2246%22%20height%3D%2214%22%3E%3Crect%20x%3D%220%22%20y%3D%229%22%20width%3D%223%22%20height%3D%224%22%20rx%3D%221%22/%3E%3Crect%20x%3D%224.5%22%20y%3D%226.5%22%20width%3D%223%22%20height%3D%226.5%22%20rx%3D%221%22/%3E%3Crect%20x%3D%229%22%20y%3D%223.5%22%20width%3D%223%22%20height%3D%229.5%22%20rx%3D%221%22/%3E%3Crect%20x%3D%2221.75%22%20y%3D%221.75%22%20width%3D%2220%22%20height%3D%2210.5%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%2224%22%20y%3D%224%22%20width%3D%2211%22%20height%3D%226%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2243%22%20y%3D%225%22%20width%3D%222%22%20height%3D%224%22%20rx%3D%221%22/%3E%3C/svg%3E") right 22px top 10px / 46px 14px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2218%22%3E%3Ctext%20x%3D%220%22%20y%3D%2214%22%20font-family%3D%22-apple-system%2CSegoe%20UI%2CRoboto%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2214.5%22%20font-weight%3D%22600%22%20fill%3D%22%23000%22%3E9%3A41%3C/text%3E%3C/svg%3E") 26px 8px / 44px 18px no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2246%22%20height%3D%2214%22%3E%3Crect%20x%3D%220%22%20y%3D%229%22%20width%3D%223%22%20height%3D%224%22%20rx%3D%221%22/%3E%3Crect%20x%3D%224.5%22%20y%3D%226.5%22%20width%3D%223%22%20height%3D%226.5%22%20rx%3D%221%22/%3E%3Crect%20x%3D%229%22%20y%3D%223.5%22%20width%3D%223%22%20height%3D%229.5%22%20rx%3D%221%22/%3E%3Crect%20x%3D%2221.75%22%20y%3D%221.75%22%20width%3D%2220%22%20height%3D%2210.5%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%2224%22%20y%3D%224%22%20width%3D%2211%22%20height%3D%226%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2243%22%20y%3D%225%22%20width%3D%222%22%20height%3D%224%22%20rx%3D%221%22/%3E%3C/svg%3E") right 22px top 10px / 46px 14px no-repeat;
}

.wp-block-image.is-style-handy img {
	border-radius: 0 0 35px 35px;
}

/* Knöpfe (03.12.): immer in der Hauptfarbe Sand, auch die Variante mit Rahmen; beim Darüberfahren etwas dunkler */
.wp-block-button .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
	border: 1.5px solid var(--wp--preset--color--sand);
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #E5B874;
	border-color: #E5B874;
	color: var(--wp--preset--color--nacht);
}

/* Zweitknopf (is-style-outline): Rahmen in Sand, ohne Fläche; auf dunklem Grund Schrift in Sand, auf hellem dunkel
   (Sand auf Hell wäre kaum lesbar). Beim Darüberfahren füllt er sich mit Sand. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--schiefer);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--sand);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
}

/* Zweitknopf beim Darüberfahren: nicht füllen, Rahmen und Schrift werden dunkler */
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: transparent;
	border-color: #E5B874;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--nacht);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #E5B874;
}

/* Zweitknopf auf hellem Grund: Sand allein ist zu blass, darum dunklerer Sandton und 2px */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
	border-color: #DDAA5C;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #C9913C;
}

/* auf dunklem Grund bleibt das helle Sand */
.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
	border-color: var(--wp--preset--color--sand);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #E5B874;
}

/* Zweitknopf auf hellem Grund: Schrift ebenfalls im Sandton, dunkel genug zum Lesen */
.wp-block-button.is-style-outline .wp-block-button__link {
	color: #B07624;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #93611A;
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--sand);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #E5B874;
}

/* Zweitknopf auf hellem Grund: Schrift in derselben Farbe wie der Rahmen */
.wp-block-button.is-style-outline .wp-block-button__link {
	color: #DDAA5C;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #C9913C;
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--sand);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #E5B874;
}

/* Zweitknopf auf hellem Grund: Rahmen und Schrift im selben dunkleren Sandton (lesbar auf Weiss) */
.wp-block-button.is-style-outline .wp-block-button__link {
	color: #B07624;
	border-color: #B07624;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #93611A;
	border-color: #93611A;
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #E5B874;
	border-color: #E5B874;
}

/* Zweitknopf auf hellem Grund (03.12.): zartes Sand als Fläche, dunkle Schrift, ohne sichtbaren Rahmen;
   beim Darüberfahren etwas kräftiger. Auf dunklem Grund bleibt Rahmen + Schrift in Sand. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--sand-hell);
	border-color: var(--wp--preset--color--sand-hell);
	color: var(--wp--preset--color--nacht);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #F3D9AE;
	border-color: #F3D9AE;
	color: var(--wp--preset--color--nacht);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
}

.ist-dunkel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: transparent;
	color: #E5B874;
	border-color: #E5B874;
}

/* Video im Handy-Rahmen (03.12., Pendenzia "Auftritt"): gleicher Rahmen wie .is-style-handy, ohne Statusleiste
   (das Video hat eigenen Inhalt bis oben). Bildunterschrift als Absatz darunter, Klasse bildunterschrift. */
.wp-block-video.handy-video {
	max-width: 300px;
	margin-inline: auto;
	padding: 7px;
	border-radius: 42px;
	background: #10161c;
	box-shadow: var(--schatten), inset 0 0 0 2px #2c3640, inset 0 0 0 3px #0b0f13;
}

.wp-block-video.handy-video video {
	display: block;
	width: 100%;
	border-radius: 35px;
}

.bildunterschrift {
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--text-leise);
}

/* Logo auf weisser Fläche, wie ein Muster */
.wp-block-image.logo-pendenzia {
	padding: 2.5rem 2rem;
	background: #fff;
	border-radius: 14px;
	width: fit-content;
}

/* Handy: Ablauf-Bilder gleiten von der Seite herein und machten die Seite vor dem Einblenden breiter als den
   Bildschirm (waagrechtes Scrollen). Seitlich abschneiden, Schatten bleibt sichtbar. */
@media (max-width: 781px) {
	.ablauf-schritt {
		overflow-x: clip;
		overflow-clip-margin: 24px;
	}
}

/* ==========================================================================
   Ende der Fallstudie: Karte "Nächstes Projekt" (03.12.), dunkel wie der Kopf, ganze Karte klickbar
   ========================================================================== */
.weiter {
	max-width: 1240px;
	margin: var(--wp--preset--spacing--70) auto;
	padding-inline: var(--wp--style--root--padding-left, 1.5rem);
	box-sizing: content-box;
}

.weiter__zurueck {
	display: inline-flex;
	gap: 0.4rem;
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--text-leise);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--klein);
	letter-spacing: 0.02em;
}

.weiter__zurueck:hover {
	color: var(--wp--preset--color--schiefer);
}

.weiter__karte {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: var(--wp--preset--spacing--50);
	overflow: hidden;
	padding: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	border-radius: var(--radius);
	background: var(--wp--preset--color--schiefer);
	color: #fff;
	text-decoration: none;
	box-shadow: var(--schatten);
	isolation: isolate;
}

.weiter__karte::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(55% 80% at 80% 50%, rgb(120 160 220 / 0.2), transparent 70%);
}

.weiter__text {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.weiter__ueberzeile {
	color: var(--wp--preset--color--sand);
	font-size: var(--wp--preset--font-size--klein);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.weiter__titel {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.05;
	color: #fff;
}

.weiter__pfeil {
	display: inline-block;
	color: var(--wp--preset--color--sand);
	transition: transform 0.4s var(--weich);
}

.weiter__auszug {
	max-width: 36ch;
	color: rgb(255 255 255 / 0.78);
	line-height: 1.55;
}

.weiter__bild {
	display: block;
	margin-right: calc(-1 * var(--wp--preset--spacing--10, 0px));
	transition: transform 0.6s var(--weich);
	transform-origin: 70% 60%;
}

.weiter__bild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius) 0 0 var(--radius);
	box-shadow: 0 30px 60px -25px rgb(0 0 0 / 0.55);
}

.weiter__bild.ist-freigestellt img {
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
}

.weiter__karte:hover .weiter__bild,
.weiter__karte:focus-visible .weiter__bild {
	transform: scale(1.04);
}

.weiter__karte:hover .weiter__pfeil,
.weiter__karte:focus-visible .weiter__pfeil {
	transform: translateX(0.4rem);
}

.weiter__karte:focus-visible {
	outline: 3px solid var(--wp--preset--color--sand);
	outline-offset: 4px;
}

@media (max-width: 781px) {
	.weiter__karte {
		grid-template-columns: 1fr;
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) 0;
	}
	.weiter__bild img {
		border-radius: var(--radius) var(--radius) 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.weiter__bild,
	.weiter__pfeil {
		transition: none;
	}
}

/* Bild unten und rechts bündig an den Kartenrand, Text mittig daneben; weniger Abstand zum Kontakt */
.weiter {
	margin-bottom: var(--wp--preset--spacing--60);
}

.weiter__karte {
	align-items: end;
	padding: var(--wp--preset--spacing--50) 0 0 var(--wp--preset--spacing--50);
}

.weiter__text {
	align-self: center;
	padding-bottom: var(--wp--preset--spacing--50);
}

.weiter__bild {
	transform-origin: 100% 100%;
}

.weiter__bild img {
	border-radius: var(--radius) 0 0 0;
}

@media (max-width: 781px) {
	.weiter__karte {
		padding: var(--wp--preset--spacing--40) 0 0 var(--wp--preset--spacing--40);
	}
	.weiter__text {
		padding: 0 var(--wp--preset--spacing--40) 0 0;
	}
	.weiter__bild img {
		border-radius: var(--radius) 0 0 0;
	}
}

/* "← Alle Projekte" (03.12.): ohne Unterstrich; beim Darüberfahren nur der Text unterstrichen, der Pfeil rückt nach links */
.zurueck-link {
	text-decoration: none !important;
}

.zurueck-link__pfeil {
	display: inline-block;
	transition: transform 0.3s var(--weich);
}

.zurueck-link__text {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.3em;
	text-decoration-thickness: 1.5px;
	transition: text-decoration-color 0.25s;
}

.zurueck-link:hover .zurueck-link__text,
.zurueck-link:focus-visible .zurueck-link__text {
	text-decoration-color: currentColor;
}

.zurueck-link:hover .zurueck-link__pfeil,
.zurueck-link:focus-visible .zurueck-link__pfeil {
	transform: translateX(-0.25rem);
}

/* Etiketten (UX/UI …) leicht abgerundet: 2px, weil sie kleiner sind als die Knöpfe (4px) und sonst runder wirken */
.etiketten a,
.etiketten span:not(.wp-block-post-terms__separator) {
	border-radius: 2px;
}

/* Projektwelten (03.12.): Zeile zum Alleingang unter der Unterzeile, Knopf mit Text statt runder Pfeil
   (der runde Pfeil unter "01 / 04" sah aus wie "nächstes Projekt" in einem Karussell) */
.welt__allein {
	margin: 0.9rem 0 0;
	max-width: 34ch;
	color: var(--text);
	font-weight: 500;
	line-height: 1.45;
}

.welt__link {
	gap: 0.6rem;
	padding: 0.95rem 1.5rem;
	border-radius: 6px;
	background: var(--akzent);
	color: var(--knopf-schrift, var(--hg));
	font-weight: 600;
	box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--akzent) 80%, transparent);
	transition: background 0.25s, box-shadow 0.25s;
}

.welt__link .pfeil {
	display: inline-block;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: 1.05em;
}

.welt__link:hover,
.welt__link:focus-visible {
	background: color-mix(in srgb, var(--akzent) 86%, #000);
}

.welt__link:hover .pfeil,
.welt__link:focus-visible .pfeil {
	transform: translateX(4px);
}

.welt__link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--akzent) 50%, transparent);
	outline-offset: 3px;
}

/* Technik in der Angabenzeile als Sand-Etiketten (03.12.), Schrift etwas grösser als die kleinen Etiketten,
   damit sie neben den Texten der anderen Angaben nicht zu leicht wirken */
.projekt-infos .projekt-wert.als-etiketten {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.55rem;
}
.projekt-infos .als-etiketten .etikett {
	font-size: 0.9rem;
	border-radius: 2px;
}

/* Logo-Entwürfe und Logo-System in Fallstudien (03.12., Essence Origin): gleiche Rundung wie die Fensterbilder,
   das Logo-System auf weissem Blatt mit zarter Kante */
.logo-entwurf img,
.logo-system img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.logo-system img {
	box-shadow: 0 0 0 1px rgb(15 42 74 / 0.06), 0 30px 60px -35px rgb(15 42 74 / 0.35);
}

/* Langer Handy-Screenshot (Klasse handy-lang, 03.12.): Bildschirmausschnitt oben, beim Überfahren scrollt die
   ganze Seite durch wie beim Browser-Rahmen; langsamer, weil Handy-Seiten viel länger sind */
.wp-block-image.is-style-handy.handy-lang img {
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top;
	transition: object-position 16s ease-in-out;
	cursor: ns-resize;
}
.wp-block-image.is-style-handy.handy-lang:hover img {
	object-position: bottom;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-image.is-style-handy.handy-lang img { transition: none; }
}

/* App-Screens mit eigenem Handy-Rahmen im Bild (03.12., Scan2Cook): ohne CSS-Rahmen, schmal und mittig. Kein drop-shadow:
   er wurde in Chromium an Kanten abgeschnitten (helle Rechtecke neben den Handys).
   Seiten aus der Dokumentation (doku-bild) wie die Logo-Entwürfe mit Rundung und zarter Kante */
.handy-bild img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin-inline: auto;
}
.handy-bild figcaption {
	text-align: center;
}
.doku-bild img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgb(15 42 74 / 0.06), 0 30px 60px -35px rgb(15 42 74 / 0.35);
}

/* Filter der Projektübersicht (03.12.): Projektarten als Etiketten, aktive in Sand, sonst umrandet.
   Die Etiketten auf Karten und in der Fallstudie führen zur gefilterten Übersicht. */
.projekt-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: var(--wp--preset--spacing--60);
}
.projekt-filter__art {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.55em 1em;
	border: 1px solid rgb(59 77 90 / 0.25);
	border-radius: 2px;
	color: var(--wp--preset--color--schiefer);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s;
}
.projekt-filter__art:hover,
.projekt-filter__art:focus-visible {
	border-color: var(--wp--preset--color--schiefer);
}
.projekt-filter__art.ist-aktiv {
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
}
.projekt-filter__zahl {
	font-size: 0.8em;
	opacity: 0.6;
}
.etiketten a {
	transition: filter 0.2s;
}
.etiketten a:hover,
.etiketten a:focus-visible {
	filter: brightness(0.93);
}

/* Porträt (03.12.): Foto in der synchronisierten Vorlage "Porträt" (Start und Über mich), gerundet wie der Platzhalter */
.portraet-bild img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--schatten);
}
@media (max-width: 781px) {
	.portraet-bild { max-width: 260px; }
}

/* Icons im Stil des Lebenslaufs (03.12., inc/icons.php) */
.silvan-icon { display: block; width: 100%; height: auto; }
.kontakt-zeile__kreis svg.silvan-icon { width: 30px; height: 30px; }
/* Hover nicht mehr in Sand: die Icons haben selbst Sand, sie würden darin verschwinden */
.kontakt-zeile:hover .kontakt-zeile__kreis { background: #fff; transform: scale(1.06); }
.kontakt-zeile .kontakt-zeile__kreis { transition: transform 0.25s; }
.schwerpunkt__icon { display: block; width: 52px; margin-bottom: 0.4rem; }
.werkzeug-liste {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1.1rem 1.5rem;
}
.werkzeug-liste li { display: flex; align-items: center; gap: 0.85rem; font-weight: 500; }
.werkzeug-liste .silvan-icon { flex: none; width: 40px; }

/* Weitere Arbeiten (04.12.): jede Arbeit eine eigene kleine Welt, Hintergrund in der Farbe des Projekts */
.arbeit-welt {
	margin-top: var(--wp--preset--spacing--60) !important;
	padding-block: var(--wp--preset--spacing--60);
	background: var(--welt-grund, #fff);
}
.arbeit-welt + .arbeit-welt { margin-top: 0 !important; }
.arbeit-welt .ueberzeile { color: var(--welt-akzent, inherit); }
.welt-cuberion { --welt-grund: #EEECFE; --welt-akzent: #5B4FE8; }
.welt-gotomo { --welt-grund: #F6F1EA; --welt-akzent: #9A7B4F; }

/* Weitere Arbeiten: Bewegung (04.12., 2. Fassung, ohne Schrift im Hintergrund).
   Handys: Die Reihe bleibt am Computer stehen (sticky), die Handys steigen als Stapel in der Mitte auf und fächern sich
   beim Weiterscrollen auf ihre Plätze aus. Bildpaare fliegen von links und rechts herein, Titel öffnet sich von unten.
   Nur mit scroll-driven animations und ab 782px; sonst ruhig sichtbar. einblenden.js lässt [class*="welt-"] aus. */
.arbeit-welt { position: relative; overflow: clip; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.arbeit-welt .einblenden:not(p, h2) { animation: none; }

		.arbeit-welt h2:not(.welt-titel) {
			animation: arbeit-titel linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 90%;
		}
		@keyframes arbeit-titel {
			from { clip-path: inset(0 0 100% 0); transform: translateY(0.6em); }
			to { clip-path: inset(0 0 -10% 0); transform: none; }
		}
		.arbeit-welt :is(.ueberzeile, p):not(.welt-etikett, .welt-unterzeile, .welt-satz) {
			animation: arbeit-text linear both;
			animation-timeline: view();
			animation-range: entry 10% entry 100%;
		}
		@keyframes arbeit-text {
			from { opacity: 0; transform: translateY(40px); }
		}

		/* Bildpaare: links und rechts herein */
		.arbeit-welt .wp-block-group:has(> .doku-bild, > .is-style-browser) > figure {
			animation: arbeit-links linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 40%;
		}
		.arbeit-welt .wp-block-group:has(> .doku-bild, > .is-style-browser) > figure:nth-child(2) { animation-name: arbeit-rechts; }
		@keyframes arbeit-links { from { opacity: 0; transform: translateX(-30vw) rotate(-6deg) scale(0.85); } }
		@keyframes arbeit-rechts { from { opacity: 0; transform: translateX(30vw) rotate(6deg) scale(0.85); } }

		@media (min-width: 782px) {
			.arbeit-welt .wp-block-group:has(> .handy-bild) {
				view-timeline: --handys block;
				min-height: 210vh;
				grid-template-columns: none;
				grid-auto-flow: column;
				grid-auto-columns: minmax(0, 1fr);
				align-items: start;
				justify-items: center;
			}
			.arbeit-welt .wp-block-group:has(> .handy-bild) > figure {
				position: sticky;
				top: 12vh;
				animation: arbeit-faecher linear both;
				animation-timeline: --handys;
				animation-range: entry 30% contain 55%;
			}
			.arbeit-welt .wp-block-group:has(> .handy-bild) > figure img { max-height: 72vh; max-width: 100%; width: auto; height: auto; margin-inline: auto; }
			/* Weg zur Mitte (Stapel) und Drehung im Stapel, je nach Platz in der Reihe */
			.arbeit-welt .handy-bild:first-child:nth-last-child(3) { --x: 105%; --d: -9deg; }
			.arbeit-welt .handy-bild:nth-child(2):nth-last-child(2) { --x: 0%; --d: 0deg; z-index: 2; }
			.arbeit-welt .handy-bild:nth-child(3):last-child { --x: -105%; --d: 9deg; }
			.arbeit-welt .handy-bild:first-child:nth-last-child(4) { --x: 160%; --d: -12deg; }
			.arbeit-welt .handy-bild:nth-child(2):nth-last-child(3) { --x: 55%; --d: -4deg; z-index: 2; }
			.arbeit-welt .handy-bild:nth-child(3):nth-last-child(2) { --x: -55%; --d: 4deg; z-index: 2; }
			.arbeit-welt .handy-bild:nth-child(4):last-child { --x: -160%; --d: 12deg; }
			.arbeit-welt .handy-bild:first-child:nth-last-child(5) { --x: 210%; --d: -14deg; }
			.arbeit-welt .handy-bild:nth-child(2):nth-last-child(4) { --x: 105%; --d: -7deg; z-index: 2; }
			.arbeit-welt .handy-bild:nth-child(3):nth-last-child(3) { --x: 0%; --d: 0deg; z-index: 3; }
			.arbeit-welt .handy-bild:nth-child(4):nth-last-child(2) { --x: -105%; --d: 7deg; z-index: 2; }
			.arbeit-welt .handy-bild:nth-child(5):last-child { --x: -210%; --d: 14deg; }
			@keyframes arbeit-faecher {
				0% { opacity: 0; transform: translate(var(--x, 0), 40vh) rotate(var(--d, 0)) scale(0.8); }
				30% { opacity: 1; transform: translate(var(--x, 0), 0) rotate(var(--d, 0)) scale(0.9); }
				75% { transform: translate(0, 0) rotate(calc(var(--d, 0) * 0.3)) scale(1); }
				100% { transform: none; }
			}
		}
	}
}

/* Weitere Arbeiten: Erklärung unter jedem Handy (Schritt + Satz), erscheint, wenn die Reihe aufgefächert ist */
.arbeit-welt .handy-bild figcaption {
	margin-top: var(--wp--preset--spacing--30);
	text-align: left;
	font-size: 0.95rem;
	line-height: 1.45;
	max-width: 15rem;
	margin-inline: auto;
}
.arbeit-welt .handy-bild figcaption strong {
	display: block;
	margin-bottom: 0.2em;
	color: var(--welt-akzent);
	font-family: var(--wp--preset--font-family--titelschrift);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 782px) {
		.arbeit-welt .wp-block-group:has(> .handy-bild) > figure img { max-height: 62vh; }
		.arbeit-welt .handy-bild figcaption {
			animation: arbeit-erklaerung linear both;
			animation-timeline: --handys;
			animation-range: contain 30% contain 50%;
		}
		.arbeit-welt .handy-bild:nth-child(2) figcaption { animation-range: contain 33% contain 53%; }
		.arbeit-welt .handy-bild:nth-child(3) figcaption { animation-range: contain 36% contain 56%; }
		.arbeit-welt .handy-bild:nth-child(4) figcaption { animation-range: contain 39% contain 59%; }
		.arbeit-welt .handy-bild:nth-child(5) figcaption { animation-range: contain 42% contain 62%; }
		@keyframes arbeit-erklaerung { from { opacity: 0; transform: translateY(24px); } }
	}
}

/* Weitere Arbeiten: Kopf jeder Welt (04.12.). Links riesiger Titel in der Projektfarbe, Buchstabe für Buchstabe,
   rechts die Aufgaben als leicht gedrehte Karten. Dahinter ein weicher Farbkreis und ein Punktraster, die beim
   Scrollen langsam wandern. */
.welt-kopf {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: center;
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.welt-kopf::before,
.welt-kopf::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}
.welt-kopf::before {
	right: -8%;
	top: 50%;
	width: min(42rem, 60vw);
	aspect-ratio: 1;
	translate: 0 -50%;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--welt-akzent) 32%, transparent), transparent 65%);
	filter: blur(10px);
}
.welt-kopf::after {
	left: -2rem;
	bottom: 0;
	width: 14rem;
	height: 9rem;
	background-image: radial-gradient(color-mix(in srgb, var(--welt-akzent) 45%, transparent) 1.6px, transparent 1.6px);
	background-size: 16px 16px;
	opacity: 0.6;
}
.welt-etikett {
	display: inline-block;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0.35em 0.8em;
	background: var(--welt-akzent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.welt-titel {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-size: clamp(3rem, 7.4vw, 8rem) !important;
	line-height: 0.92 !important;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--welt-akzent) !important;
}
.welt-titel .zeile { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: 0.06em; }
.welt-titel .b { display: inline-block; }
.welt-unterzeile {
	margin-top: var(--wp--preset--spacing--30) !important;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-size: clamp(1.3rem, 2.2vw, 1.9rem) !important;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--schiefer);
}
.welt-satz { max-width: 34rem; margin-top: var(--wp--preset--spacing--30) !important; }

.welt-aufgaben {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--30);
}
.welt-aufgabe {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.1rem 1.3rem;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--welt-akzent) 45%, transparent);
	border-left: 4px solid var(--welt-akzent);
}
.welt-aufgabe:nth-child(1) { rotate: -1.5deg; margin-right: 2rem; }
.welt-aufgabe:nth-child(2) { rotate: 1deg; margin-left: 2rem; }
.welt-aufgabe:nth-child(3) { rotate: -0.5deg; margin-right: 1rem; }
.welt-aufgabe__nr {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--welt-akzent);
	opacity: 0.45;
}
.welt-aufgabe__text { font-size: 0.98rem; line-height: 1.45; }
.welt-aufgabe__text strong {
	display: block;
	margin-bottom: 0.15em;
	font-family: var(--wp--preset--font-family--titelschrift);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--schiefer);
}
@media (max-width: 900px) {
	.welt-kopf { grid-template-columns: 1fr; }
	.welt-aufgabe { margin-inline: 0 !important; }
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.welt-kopf { view-timeline: --kopf block; }
		.welt-titel .b {
			animation: welt-buchstabe linear both;
			animation-timeline: --kopf;
			animation-range: entry calc(10% + var(--i) * 5%) entry calc(45% + var(--i) * 5%);
		}
		@keyframes welt-buchstabe { from { transform: translateY(105%) rotate(8deg); } }
		.welt-etikett, .welt-unterzeile, .welt-satz {
			animation: arbeit-text linear both;
			animation-timeline: --kopf;
			animation-range: entry 20% entry 90%;
		}
		.welt-unterzeile { animation-range: entry 40% cover 45%; }
		.welt-satz { animation-range: entry 55% cover 50%; }
		.welt-aufgabe {
			animation: welt-karte linear both;
			animation-timeline: --kopf;
			animation-range: entry calc(30% + var(--i) * 15%) cover calc(40% + var(--i) * 6%);
		}
		@keyframes welt-karte { from { opacity: 0; transform: translateX(18vw) rotate(8deg); } }
		.welt-kopf::before {
			animation: welt-kreis linear both;
			animation-timeline: --kopf;
			animation-range: cover 0% cover 100%;
		}
		@keyframes welt-kreis { from { transform: translateY(25%) scale(0.7); } to { transform: translateY(-20%) scale(1.15); } }
		.welt-kopf::after {
			animation: welt-punkte linear both;
			animation-timeline: --kopf;
			animation-range: cover 0% cover 100%;
		}
		@keyframes welt-punkte { from { transform: translateY(60px); } to { transform: translateY(-60px); } }
	}
}

/* Weitere Arbeiten: Welten über die volle Breite, ohne leere Angabenzeile davor (04.12.) */
.wp-block-post-content > .arbeit-welt {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding-inline: max(var(--wp--style--root--padding-left, 1.5rem), calc((100vw - 1240px) / 2)) !important;
}
.wp-block-post-content > .arbeit-welt:first-child { margin-top: 0 !important; }
.wp-block-post-content > .arbeit-welt:last-child { margin-bottom: 0 !important; }
body:has(.arbeit-welt) .projekt-infos { display: none; }
body:has(.arbeit-welt) .wp-block-post-content { margin-top: 0 !important; }

/* Weitere Arbeiten: Übergang zur nächsten Welt (04.12.). Die nächste Welt liegt 100vh über dem Ende der vorherigen
   und öffnet sich wie ein Portal: ein Kreis in ihrer Farbe wächst von unten in der Mitte, bis er den Bildschirm füllt.
   Die vorherige Welt tritt dabei zurück (kleiner, dunkler). Ohne scroll-driven animations: Welten einfach untereinander. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.wp-block-post-content > .arbeit-welt:not(:last-child) {
			padding-bottom: calc(var(--wp--preset--spacing--60) + 100vh);
		}
		.wp-block-post-content > .arbeit-welt + .arbeit-welt {
			margin-top: -100vh !important;
			z-index: 2;
			animation: welt-portal linear both;
			animation-timeline: view();
			animation-range: entry 40% entry 100%;
		}
		@keyframes welt-portal {
			0% { clip-path: circle(0 at 50% 0); }
			55% { clip-path: circle(38vmax at 50% 0); }
			99% { clip-path: circle(130vmax at 50% 0); }
			100% { clip-path: circle(2000vmax at 50% 0); }
		}
		/* vorherige Welt: Inhalt am Ende tritt zurück */
		.wp-block-post-content > .arbeit-welt:not(:last-child) > :last-child {
			animation: welt-zurueck-klein linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}
		@keyframes welt-zurueck-klein {
			to { transform: scale(0.88) translateY(-6%); opacity: 0.25; filter: blur(3px); }
		}
	}
}

/* Weitere Arbeiten: "Sonst noch" als grosse Aufzählung (04.12.). Jede Zeile gleitet abwechselnd von links/rechts
   herein und füllt sich beim Scrollen von blass zur Projektfarbe, darunter eine Linie, die sich aufzieht. */
.welt-mehr-bereich { margin-top: var(--wp--preset--spacing--70, 8rem); }
.welt-mehr-titel {
	font-size: 0.85rem !important;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--welt-akzent);
	margin-bottom: var(--wp--preset--spacing--30) !important;
}
.welt-mehr { list-style: none; margin: 0; padding: 0; }
.welt-mehr li {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 1.5rem;
	padding: 1.1rem 0;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(1.8rem, 4.6vw, 4.2rem);
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--wp--preset--color--schiefer);
}
.welt-mehr li::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: color-mix(in srgb, var(--welt-akzent) 35%, transparent);
	transform-origin: left;
}
.welt-mehr li:nth-child(even) { padding-left: 12%; }
.welt-mehr li:nth-child(even)::after { transform-origin: right; }
.welt-mehr__nr { font-size: 0.32em; color: var(--welt-akzent); letter-spacing: 0.05em; translate: 0 -0.9em; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.welt-mehr li {
			animation: mehr-links linear both;
			animation-timeline: view();
			animation-range: entry 10% cover 45%;
		}
		.welt-mehr li:nth-child(even) { animation-name: mehr-rechts; }
		@keyframes mehr-links {
			from { transform: translateX(-25vw); opacity: 0; color: color-mix(in srgb, var(--welt-akzent) 25%, transparent); }
			60% { opacity: 1; }
			to { color: var(--welt-akzent); }
		}
		@keyframes mehr-rechts {
			from { transform: translateX(25vw); opacity: 0; color: color-mix(in srgb, var(--welt-akzent) 25%, transparent); }
			60% { opacity: 1; }
			to { color: var(--welt-akzent); }
		}
		.welt-mehr li::after {
			animation: mehr-linie linear both;
			animation-timeline: view();
			animation-range: entry 30% cover 50%;
		}
		@keyframes mehr-linie { from { transform: scaleX(0); } }
	}
}

/* Weitere Arbeiten: Teile innerhalb einer Welt (04.12., Gotomo: Medinspect, Rägeboge) */
.welt-teil { margin-top: var(--wp--preset--spacing--70, 8rem); }
.welt-teil__marke {
	font-size: 0.85rem !important;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--welt-akzent);
	margin: 0 !important;
}
.welt-zwischentitel {
	margin-top: 0.3em !important;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-size: clamp(2rem, 4.2vw, 3.6rem) !important;
	line-height: 1 !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--schiefer);
}
.welt-teil__text { max-width: 40rem; }
.welt-teil__text--breit { max-width: 46rem; }
.welt-teil__kopf {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: center;
	margin-bottom: var(--wp--preset--spacing--60);
}
.med-video { margin: 0; justify-self: center; }
.med-video video {
	display: block;
	max-height: 78vh;
	width: auto;
	max-width: 100%;
	/* Das Video hat einen eigenen Handy-Rahmen auf schwarzem Grund: Ecken abschneiden */
	clip-path: inset(1% 3% round 15% / 7.5%);
	filter: drop-shadow(0 30px 40px rgba(60, 40, 10, 0.25));
}
@media (max-width: 900px) { .welt-teil__kopf { grid-template-columns: 1fr; } .med-video video { max-height: 70vh; } }

/* Varianten: breiter Streifen, zieht beim Scrollen seitlich durch */
.varianten-lauf { margin-top: var(--wp--preset--spacing--60); overflow: hidden; border-radius: var(--radius); }
.varianten-bild { margin: 0; }
.varianten-bild img { display: block; width: 240%; max-width: none; }
.varianten-lauf__text { margin-top: var(--wp--preset--spacing--30) !important; font-size: 0.95rem; color: var(--wp--preset--color--text-leise); }

/* Rägeboge: fünf lange Seiten nebeneinander, scrollen beim Scrollen gegeneinander */
.moodboard-bild { margin-block: var(--wp--preset--spacing--50) !important; }
.seiten-lauf {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--50);
}
.seiten-lauf .seite {
	margin: 0;
	height: min(72vh, 46rem);
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 25px 45px -25px rgba(60, 40, 10, 0.45);
}
.seiten-lauf .seite:nth-child(even) { margin-top: 3rem; }
.seiten-lauf .seite img { display: block; width: 100%; height: auto; }
@media (max-width: 781px) {
	.seiten-lauf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; }
	.seiten-lauf .seite { scroll-snap-align: start; height: 70vh; }
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.welt-zwischentitel, .welt-teil__marke {
			animation: arbeit-titel linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 90%;
		}
		.med-video {
			animation: arbeit-rechts linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 40%;
		}
		.varianten-lauf { view-timeline: --varianten block; }
		.varianten-bild img {
			animation: varianten-durch linear both;
			animation-timeline: --varianten;
			animation-range: cover 10% cover 90%;
		}
		@keyframes varianten-durch { from { transform: translateX(0); } to { transform: translateX(-58.3%); } }
		.seiten-lauf { view-timeline: --seiten block; }
		.seiten-lauf .seite img {
			animation: seite-runter linear both;
			animation-timeline: --seiten;
			animation-range: cover 5% cover 95%;
		}
		.seiten-lauf .seite:nth-child(even) img { animation-name: seite-hoch; }
		@keyframes seite-runter { from { transform: translateY(0); } to { transform: translateY(calc(-100% + min(72vh, 46rem))); } }
		@keyframes seite-hoch { from { transform: translateY(calc(-100% + min(72vh, 46rem))); } to { transform: translateY(0); } }
		.seiten-lauf .seite {
			animation: arbeit-text linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 60%;
		}
	}
}

/* Weitere Arbeiten: Welt Fotografie (04.12.), dunkel. Serie 1 legt sich beim Scrollen Bild über Bild (sticky Stapel),
   Serie 2 fliegt verwischt herein und wird scharf. */
.welt-foto { --welt-grund: #141414; --welt-akzent: #E9E4DA; color: #D6D2CA; }
.welt-foto :is(.welt-unterzeile, .welt-zwischentitel, .welt-mehr li) { color: #F4F1EB !important; }
.welt-foto .welt-etikett { color: #141414; }
.welt-foto .welt-titel { font-size: clamp(3rem, 6.4vw, 7rem) !important; }
.welt-foto .welt-aufgabe { background: #222; color: #D6D2CA; box-shadow: 0 18px 40px -18px #000; }
.welt-foto .welt-aufgabe__text strong { color: #F4F1EB; }
.welt-foto .welt-kopf::after { opacity: 0.25; }

.foto-stapel { margin-top: var(--wp--preset--spacing--50); }
.foto-stapel figure { margin: 0 0 var(--wp--preset--spacing--40); }
.foto-stapel img, .foto-bewegung img { display: block; width: 100%; height: auto; border-radius: 6px; }
@media (min-width: 782px) {
	.foto-stapel figure {
		position: sticky;
		top: 12vh;
		height: 76vh;
		margin: 0 auto 18vh;
		width: fit-content;
	}
	.foto-stapel figure img { height: 76vh; width: auto; max-width: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px #000; }
	.foto-stapel figure:last-child { margin-bottom: 0; }
}
.foto-bewegung { margin-top: var(--wp--preset--spacing--50); }
.foto-bewegung__spur { display: grid; gap: var(--wp--preset--spacing--40); }
.foto-bewegung figure { margin: 0; position: relative; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@media (min-width: 782px) {
			.foto-stapel figure {
				animation: foto-zurueck linear both;
				animation-timeline: view();
				animation-range: contain 0% exit 100%;
			}
			.foto-stapel figure:last-child { animation: none; }
			@keyframes foto-zurueck { to { transform: scale(0.86); filter: brightness(0.35); } }
		}
	}
}

/* Fotografie: technische Daten unter den Bildern */
.welt-foto .foto-daten {
	margin-top: 0.6rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	color: #9C978E;
	text-align: left;
	font-variant-numeric: tabular-nums;
}

/* Fotografie, Serie Bewegung (04.12., 2. Fassung): Vollbild-Galerie quer zum Scrollen. Die Bilder stehen
   bildschirmhoch nebeneinander, die Reihe bleibt stehen und fährt beim Scrollen nach links durch; die Daten liegen
   unten links auf dem Bild. Sonst (Handy, ohne scroll-driven animations) untereinander. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 782px) {
		.foto-bewegung {
			view-timeline: --bewegung block;
			height: 520vh;
			margin-inline: calc(50% - 50vw) !important;
			width: 100vw;
			max-width: 100vw !important;
		}
		.foto-bewegung__spur {
			position: sticky;
			top: 0;
			height: 100vh;
			display: flex;
			gap: 0;
			width: max-content;
			animation: bewegung-quer linear both;
			animation-timeline: --bewegung;
			animation-range: contain 0% contain 100%;
		}
		@keyframes bewegung-quer { to { transform: translateX(calc(-100% + 100vw)); } }
		.foto-bewegung figure { height: 100vh; overflow: hidden; }
		.foto-bewegung figure img {
			height: 100vh;
			width: auto;
			max-width: none;
			border-radius: 0;
			animation: bewegung-zoom linear both;
			animation-timeline: --bewegung;
			animation-range: contain 0% contain 100%;
		}
		@keyframes bewegung-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
		.welt-foto .foto-bewegung .foto-daten {
			position: absolute;
			left: 2rem;
			bottom: 2rem;
			margin: 0;
			padding: 0.45em 0.8em;
			background: rgba(0, 0, 0, 0.55);
			backdrop-filter: blur(6px);
			color: #F4F1EB;
			border-radius: 3px;
		}
	}
}

/* ===== Weitere Arbeiten: Welten "Logos" und "Grafik" (04.12.) =====
   Logos: dunkel mit Gold. Das SV-Logo setzt sich aus seinen Teilen zusammen (Block silvan/logo-bau), die Entwicklung
   läuft als Bildfolge an Ort (.entwicklung-folge), Anwendungen, Malaika-Logos mit Wisch, Anwendungen fächern auf.
   Grafik: hell mit Koralle. Karikatur als Bildfolge, Emojis springen einzeln auf, Ägypten-Scheibe dreht sich,
   Tierverschmelzungen öffnen sich rund, Schriftzüge ziehen quer durch. Bewegung nur mit scroll-driven animations und
   ab 782px; sonst stehen alle Bilder ruhig untereinander. */
.welt-logos { --welt-grund: #101012; --welt-akzent: #D4AF5A; color: #CFCAC0; }
.welt-logos :is(.welt-unterzeile, .welt-zwischentitel) { color: #F4F1EB !important; }
.welt-logos .welt-etikett { color: #101012; }
.welt-logos .welt-aufgabe { background: #1D1D20; color: #CFCAC0; box-shadow: 0 18px 40px -18px #000; }
.welt-logos .welt-aufgabe__text strong { color: #F4F1EB; }
.welt-logos .welt-kopf::after { opacity: 0.25; }
.welt-logos figcaption { color: #B3AC9F; }
.welt-grafik { --welt-grund: #FFF3E3; --welt-akzent: #E4572E; }
.welt-aufgabe:nth-child(4) { rotate: 1.2deg; margin-left: 1rem; }

.arbeit-welt figcaption strong { color: var(--welt-akzent); margin-right: 0.4em; }
.folge-einleitung { margin-top: var(--wp--preset--spacing--60) !important; max-width: 36rem; }

/* SV-Logo setzt sich zusammen */
.logo-bau__buehne { position: relative; display: grid; place-items: center; }
.logo-bau__zeichen { width: min(100%, 26rem); height: auto; overflow: visible; position: relative; z-index: 1; }
.logo-bau__teil--v { fill: #F4F1EB; }
.logo-bau__teil--s { fill: var(--welt-akzent); }
.logo-bau__teil { transform-box: fill-box; transform-origin: center; }
.logo-bau__schein {
	position: absolute; inset: 10%; border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 175, 90, 0.35), transparent 65%);
	filter: blur(30px);
}

/* Bildfolge, ruhig: Bilder untereinander */
.entwicklung-folge { display: grid; gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--40); }
.entwicklung-folge figure { margin: 0; }
.entwicklung-folge img { border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.entwicklung-folge figcaption { margin-top: 0.8rem; font-size: 0.95rem; }

/* Anwendungen des SV-Logos und Tierverschmelzungen: ein grosses Bild, darunter zwei */
:is(.logo-anwendung, .tier-reihe) { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--60); }
:is(.logo-anwendung, .tier-reihe) figure { margin: 0; }
:is(.logo-anwendung, .tier-reihe) figure:first-child { grid-column: 1 / -1; }
:is(.logo-anwendung, .tier-reihe) img { width: 100%; border-radius: 6px; }
.arbeit-welt :is(.logo-anwendung, .bild-faecher, .aegypten-screens) figcaption { margin-top: 0.6rem; font-size: 0.95rem; }

/* Malaika: drei Logos nebeneinander, Anwendungen als Fächer */
.logo-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wp--preset--spacing--30); margin-top: var(--wp--preset--spacing--50); }
.logo-reihe figure { margin: 0; }
.bild-faecher { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wp--preset--spacing--40); align-items: end; margin-top: var(--wp--preset--spacing--50); }
.bild-faecher figure { margin: 0; }
.bild-faecher img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px -25px #000; }
.wisch-bild img { width: 100%; border-radius: 6px; }

/* Emojis */
.emoji-raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.6rem 0.4rem; margin-top: var(--wp--preset--spacing--50); }
.emoji-raster figure { margin: 0; }
.emoji-raster img { width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(80, 40, 10, 0.18)); }
@media (max-width: 781px) { .emoji-raster { grid-template-columns: repeat(6, 1fr); } }

/* Ägypten */
.scheibe img { width: min(100%, 34rem); margin-inline: auto; display: block; border-radius: 50%; clip-path: circle(49.6%); filter: drop-shadow(0 30px 40px rgba(150, 70, 0, 0.35)); }
.aegypten-screens { display: grid; grid-template-columns: 1.9fr 1fr; grid-template-areas: "a b" "c b"; gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--60); align-items: start; }
.aegypten-screens figure { margin: 0; }
.aegypten-screens figure:nth-child(1) { grid-area: a; }
.aegypten-screens figure:nth-child(2) { grid-area: b; }
.aegypten-screens figure:nth-child(3) { grid-area: c; }
.aegypten-screens img { width: 100%; border-radius: 6px; box-shadow: 0 25px 50px -25px rgba(120, 60, 0, 0.45); }
@media (max-width: 781px) { .aegypten-screens { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; } }

/* Merch: Varianten und Shirt nebeneinander */
.merch-paar { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--wp--preset--spacing--40); align-items: center; margin-top: var(--wp--preset--spacing--50); }
.merch-paar figure { margin: 0; }
.merch-paar img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(80, 30, 10, 0.5); }
.merch-paar figcaption { margin-top: 0.6rem; font-size: 0.95rem; }
@media (max-width: 781px) { .merch-paar { grid-template-columns: 1fr; } }

/* Schriftzüge */
.schrift-lauf { margin-top: var(--wp--preset--spacing--50); }
.schrift-lauf__spur { display: grid; gap: var(--wp--preset--spacing--40); }
.schrift-lauf figure { margin: 0; }
.schrift-lauf img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(80, 30, 10, 0.5); }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 782px) {
		.wp-block-post-content .arbeit-welt :is(.scheibe, .schrift-lauf__spur > figure) { animation: none; }
		/* SV-Logo: Bühne bleibt stehen, die Teile fliegen von aussen auf ihren Platz */
		.wp-block-post-content .arbeit-welt .logo-bau { view-timeline: --logo-bau block; height: 240vh; }
		.wp-block-post-content .arbeit-welt .logo-bau__buehne { position: sticky; top: 14vh; height: 72vh; }
		.wp-block-post-content .arbeit-welt .logo-bau__teil {
			animation: logo-teil linear both;
			animation-timeline: --logo-bau;
			animation-range: contain calc(var(--i) * 4%) contain calc(55% + var(--i) * 4%);
		}
		@keyframes logo-teil {
			from { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.6); }
			40% { opacity: 1; }
			to { opacity: 1; transform: none; }
		}
		.wp-block-post-content .arbeit-welt .logo-bau__schein { animation: logo-schein linear both; animation-timeline: --logo-bau; animation-range: contain 50% contain 85%; }
		@keyframes logo-schein { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1.1); } }
		.wp-block-post-content .arbeit-welt .logo-bau-kopf { align-items: start; }
		.wp-block-post-content .arbeit-welt .logo-bau-kopf > .welt-teil__text { position: sticky; top: 30vh; }

		/* Bildfolge an Ort: alle Bilder in derselben Zelle, eines blendet ins nächste */
		.wp-block-post-content .arbeit-welt .entwicklung-folge { view-timeline: --folge block; height: 330vh; grid-template-columns: 1fr; gap: 0; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge:has(> :nth-child(6)) { height: 560vh; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge:not(:has(> :nth-child(3))) { height: 240vh; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(1):nth-last-child(2) { --von: 0%; --bis: 55%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(2):last-child { --von: 45%; --bis: 85%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > figure {
			grid-area: 1 / 1;
			position: sticky; top: 12vh;
			height: 76vh;
			display: flex; flex-direction: column; align-items: center; justify-content: center;
			animation: folge-bild linear both;
			animation-timeline: --folge;
			animation-range: contain var(--von) contain var(--bis);
		}
		.wp-block-post-content .arbeit-welt .entwicklung-folge > figure img { max-height: 68vh; width: auto; max-width: 100%; object-fit: contain; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > figure:first-child { animation-name: folge-erst; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > figure:last-child { animation-name: folge-letzt; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(1):nth-last-child(3) { --von: 0%; --bis: 38%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(2):nth-last-child(2) { --von: 30%; --bis: 72%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(3):last-child { --von: 64%; --bis: 90%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(1):nth-last-child(6) { --von: 0%; --bis: 20%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(2):nth-last-child(5) { --von: 15%; --bis: 37%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(3):nth-last-child(4) { --von: 32%; --bis: 54%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(4):nth-last-child(3) { --von: 49%; --bis: 71%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(5):nth-last-child(2) { --von: 66%; --bis: 88%; }
		.wp-block-post-content .arbeit-welt .entwicklung-folge > :nth-child(6):last-child { --von: 83%; --bis: 95%; }
		@keyframes folge-bild {
			0% { opacity: 0; transform: translateY(6vh) rotate(-2deg) scale(0.94); }
			25%, 75% { opacity: 1; transform: none; }
			100% { opacity: 0; transform: translateY(-4vh) scale(1.03); }
		}
		@keyframes folge-erst { 0%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4vh) scale(1.03); } }
		@keyframes folge-letzt { 0% { opacity: 0; transform: translateY(6vh) rotate(-2deg) scale(0.94); } 60%, 100% { opacity: 1; transform: none; } }

		/* Anwendungen: grosses Bild wächst auf, die zwei kleinen kommen von links und rechts */
		.wp-block-post-content .arbeit-welt :is(.logo-anwendung, .tier-reihe) > figure { animation: arbeit-links linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
		.wp-block-post-content .arbeit-welt :is(.logo-anwendung, .tier-reihe) > figure:nth-child(3) { animation-name: arbeit-rechts; }
		.wp-block-post-content .arbeit-welt .logo-anwendung > figure:first-child { animation-name: anwendung-gross; animation-range: entry 0% cover 45%; }
		@keyframes anwendung-gross { from { opacity: 0.2; transform: scale(0.78); filter: brightness(0.4); } }

		/* Tierverschmelzungen: öffnen sich rund vom Kopf her */
		.wp-block-post-content .arbeit-welt .tier-reihe > figure:first-child { animation-name: tier-rund; animation-range: entry 10% cover 50%; }
		.wp-block-post-content .arbeit-welt .tier-reihe > figure:nth-child(2) { animation-name: tier-rund; --mx: 45%; --my: 35%; }
		.wp-block-post-content .arbeit-welt .tier-reihe > figure:nth-child(3) { animation-name: tier-rund; --mx: 50%; --my: 30%; animation-range: entry 10% cover 45%; }
		@keyframes tier-rund { from { clip-path: circle(0% at var(--mx, 42%) var(--my, 32%)); transform: scale(1.15); } to { clip-path: circle(110% at var(--mx, 42%) var(--my, 32%)); transform: none; } }

		/* Malaika: die drei Logos werden von links nach rechts aufgedeckt, wie genäht */
		.wp-block-post-content .arbeit-welt .logo-reihe > figure { animation: logo-wisch linear both; animation-timeline: view(); }
		.wp-block-post-content .arbeit-welt .logo-reihe > figure:nth-child(1) { animation-range: entry 20% cover 40%; }
		.wp-block-post-content .arbeit-welt .logo-reihe > figure:nth-child(2) { animation-range: entry 40% cover 50%; }
		.wp-block-post-content .arbeit-welt .logo-reihe > figure:nth-child(3) { animation-range: entry 60% cover 60%; }
		@keyframes logo-wisch { from { clip-path: inset(0 100% 0 0); transform: translateY(20px); } to { clip-path: inset(0 0 0 0); transform: none; } }
		.wp-block-post-content .arbeit-welt .wisch-bild { animation: logo-wisch linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }

		/* Anwendungen fächern aus einem Stapel in der Mitte auf */
		.wp-block-post-content .arbeit-welt .bild-faecher > figure { animation: arbeit-faecher linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
		.wp-block-post-content .arbeit-welt .bild-faecher > figure:nth-child(1) { --x: 105%; --d: -10deg; }
		.wp-block-post-content .arbeit-welt .bild-faecher > figure:nth-child(2) { --x: 0%; --d: 0deg; z-index: 2; }
		.wp-block-post-content .arbeit-welt .bild-faecher > figure:nth-child(3) { --x: -105%; --d: 10deg; }

		/* Emojis springen nacheinander auf */
		.wp-block-post-content .arbeit-welt .emoji-raster > figure { animation: emoji-auf linear both; animation-timeline: view(); animation-range: entry calc(var(--e, 0) * 5%) entry calc(40% + var(--e, 0) * 5%); }
		.wp-block-post-content .arbeit-welt .emoji-raster > figure:nth-child(12n+2) { --e: 1; } .emoji-raster > figure:nth-child(12n+3) { --e: 2; }
		.wp-block-post-content .arbeit-welt .emoji-raster > figure:nth-child(12n+4) { --e: 3; } .emoji-raster > figure:nth-child(12n+5) { --e: 4; }
		.wp-block-post-content .arbeit-welt .emoji-raster > figure:nth-child(12n+6) { --e: 5; } .emoji-raster > figure:nth-child(12n+7) { --e: 6; }
		.wp-block-post-content .arbeit-welt .emoji-raster > figure:nth-child(12n+8) { --e: 7; } .emoji-raster > figure:nth-child(12n+9) { --e: 8; }
		.wp-block-post-content .arbeit-welt .emoji-raster > figure:nth-child(12n+10) { --e: 9; } .emoji-raster > figure:nth-child(12n+11) { --e: 10; }
		.wp-block-post-content .arbeit-welt .emoji-raster > figure:nth-child(12n) { --e: 11; }
		@keyframes emoji-auf {
			0% { opacity: 0; transform: translateY(60px) scale(0) rotate(-35deg); }
			60% { opacity: 1; transform: translateY(-8px) scale(1.2) rotate(6deg); }
			100% { opacity: 1; transform: none; }
		}

		/* Ägypten: die Scheibe dreht sich beim Scrollen, die Screens kommen nacheinander */
		.wp-block-post-content .arbeit-welt .scheibe img { animation: scheibe-dreh linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
		@keyframes scheibe-dreh { from { transform: rotate(-50deg) scale(0.8); } 50% { transform: rotate(0deg) scale(1); } to { transform: rotate(30deg) scale(1.04); } }
		.wp-block-post-content .arbeit-welt .aegypten-screens > figure { animation: arbeit-text linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
		.wp-block-post-content .arbeit-welt .aegypten-screens > figure:nth-child(2) { animation-name: arbeit-rechts; }

		.wp-block-post-content .arbeit-welt .merch-paar > figure { animation: arbeit-links linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
		.wp-block-post-content .arbeit-welt .merch-paar > figure:nth-child(2) { animation-name: arbeit-rechts; }
		/* Schriftzüge ziehen quer durch: volle Breite, die Reihe wandert beim Scrollen nach links */
		.wp-block-post-content .arbeit-welt .schrift-lauf { width: 100vw; margin-inline: calc(50% - 50vw) !important; max-width: none !important; overflow: clip; padding-block: 4vh; }
		.wp-block-post-content .arbeit-welt .schrift-lauf__spur {
			display: flex; gap: 3vw; width: max-content;
			animation: schrift-quer linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
		.wp-block-post-content .arbeit-welt .schrift-lauf__spur > figure { height: 62vh; }
		.wp-block-post-content .arbeit-welt .schrift-lauf__spur img { height: 62vh; width: auto; max-width: none; }
		.wp-block-post-content .arbeit-welt .schrift-lauf__spur > figure:nth-child(2) { margin-top: 6vh; rotate: 1.5deg; }
		.wp-block-post-content .arbeit-welt .schrift-lauf__spur > figure:nth-child(1) { rotate: -1.5deg; }
		@keyframes schrift-quer { from { transform: translateX(60vw); } to { transform: translateX(calc(-100% + 95vw)); } }
	}
}
.icon-handy img { width: min(100%, 22rem) !important; margin-inline: auto; display: block; border-radius: 18px; }

/* Weitere Arbeiten: Welt "Aperol Spritz" (04.12.): heller Grund wie im Clip, Orange als Akzent. Das Startbild spielt
   beim Klick das Video ab (.video-start, inc/inhalt-bloecke.php), darunter zieht ein Filmstreifen aus Standbildern quer durch. */
.welt-aperol { --welt-grund: #F3F1F4; --welt-akzent: #EE5A1E; }
.video-start { position: relative; margin-top: var(--wp--preset--spacing--50) !important; }
.video-start img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 40px 80px -40px rgba(120, 40, 0, 0.55); }
.video-start__knopf {
	position: absolute; left: 50%; top: 50%; translate: -50% -50%;
	width: clamp(4.5rem, 9vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--welt-akzent); color: #fff; display: grid; place-items: center;
	box-shadow: 0 0 0 0 rgba(238, 90, 30, 0.5); animation: video-puls 2.4s ease-out infinite;
	transition: scale 0.25s ease;
}
.video-start__knopf svg { width: 42%; margin-left: 8%; }
.video-start__knopf:hover, .video-start__knopf:focus-visible { scale: 1.08; }
@keyframes video-puls { to { box-shadow: 0 0 0 2.2rem rgba(238, 90, 30, 0); } }
@media (prefers-reduced-motion: reduce) { .video-start__knopf { animation: none; } }
.video-start__hinweis { display: block; margin-top: 0.7rem; font-size: 0.85rem; opacity: 0.7; }
.video-start iframe { position: absolute; inset: 0 0 auto 0; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; background: #000; }
.video-start.laeuft .video-start__knopf { display: none; }
.film-lauf img { border-radius: 6px; box-shadow: 0 25px 50px -25px rgba(120, 40, 0, 0.45); }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 782px) {
		.wp-block-post-content .arbeit-welt .film-lauf .schrift-lauf__spur { gap: 1.5vw; }
		.wp-block-post-content .arbeit-welt .film-lauf .schrift-lauf__spur > figure { height: 40vh; rotate: none; margin-top: 0; }
		.wp-block-post-content .arbeit-welt .film-lauf .schrift-lauf__spur > figure:nth-child(even) { margin-top: 8vh; }
		.wp-block-post-content .arbeit-welt .film-lauf .schrift-lauf__spur img { height: 40vh; }
	}
}

/* Kopf der Fallstudie in den Farben des Projekts (04.12., Filter in functions.php) */
.fallstudie-kopf.kopf-farbig {
	background:
		radial-gradient(55% 75% at 80% 45%, color-mix(in srgb, var(--k-akzent) 30%, transparent), transparent 70%),
		radial-gradient(45% 60% at 5% 100%, color-mix(in srgb, var(--k-akzent2) 22%, transparent), transparent 70%),
		linear-gradient(150deg, var(--k-hg2), var(--k-hg)) !important;
}
.fallstudie-kopf.kopf-farbig::before { background: none !important; }

/* Stimmungsbild im Kopf der Projektübersicht (04.12.): Titelbilder als Fächer rechts neben dem Titel */
.projekte-kopf {
	position: relative;
	overflow: clip;
}
.projekte-stimmung {
	display: none;
}
@media (min-width: 1000px) {
	.projekte-stimmung {
		display: block;
		position: absolute;
		top: 50%;
		right: max(2vw, calc((100vw - 1240px) / 2 - 3rem));
		width: min(44vw, 680px);
		aspect-ratio: 1.45;
		translate: 0 -50%;
		/* ganzer Fächer = eine Fläche (Bilder sind freigestellt, ihr transparenter Rand lag sonst über dem Nachbarn) */
		z-index: 2;
	}
	.projekte-stimmung__bild {
		position: absolute;
		width: 58%;
		left: calc(var(--i) * 14%);
		top: calc(var(--i) * 9%);
		rotate: calc(-6deg + var(--i) * 4deg);
		pointer-events: none;
		/* weich: länger, sanft an- und auslaufend, Karten leicht nacheinander */
		transition: translate .95s cubic-bezier(.4, 0, .2, 1), rotate .95s cubic-bezier(.4, 0, .2, 1);
		transition-delay: calc(var(--i) * 45ms);
		/* backwards statt both: sonst hält die Animation translate fest und der Hover springt statt zu gleiten */
		animation: stimmung-auf .9s cubic-bezier(.2, .8, .2, 1) backwards;
		animation-delay: calc(.15s + var(--i) * .12s);
	}
	.projekte-stimmung__bild::before {
		content: "";
		position: absolute;
		inset: 10% 5%;
		z-index: -1;
		background: radial-gradient(closest-side, color-mix(in srgb, var(--schein) 55%, transparent), transparent);
		filter: blur(28px);
	}
	.projekte-stimmung__bild img {
		display: block;
		width: 100%;
		height: auto;
		filter: drop-shadow(0 20px 26px rgb(0 0 0 / .35));
	}
	/* nur wenn der Zeiger auf einem sichtbaren Bild liegt (Klasse setzt projekte-stimmung.js); keine Bewegung nach oben (sonst abgeschnitten) */
	.projekte-stimmung.ist-aktiv .projekte-stimmung__bild {
		translate: calc((var(--i) - 0.8) * 1.15rem) calc(var(--i) * -0.15rem);
		rotate: calc(-6.3deg + var(--i) * 5.2deg);
	}
	.projekte-kopf .erscheint {
		position: relative;
		z-index: 1;
	}
	/* Kopf mindestens so hoch wie der Fächer samt Drehung, sonst schneidet overflow: clip die oberste Ecke ab */
	.projekte-kopf {
		min-height: calc(min(44vw, 680px) / 1.45 + 5rem);
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.projekte-kopf > :not(.projekte-stimmung) { width: 100%; }
	/* Text links schmaler, damit er nicht an den Fächer stösst */
	.projekte-kopf .erscheint > p.has-gross-font-size { max-width: min(36rem, calc(100vw - min(44vw, 680px) - 12rem)); }
}
@keyframes stimmung-auf {
	from { opacity: 0; translate: 2.5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	.projekte-stimmung__bild { animation: none; transition: none; }
}

/* Banner in Fallstudien (04.12., FM Daveincid): Raster aus gleich grossen Bannern (Patreon-Stufen, Titelbilder)
   und ein Laufband aus der Monatsreihe, das beim Scrollen quer durchzieht. Ohne Scroll-Animation (Firefox, Handy,
   reduzierte Bewegung) lässt sich das Laufband von Hand seitlich wischen. */
.banner-raster img,
.banner-lauf img,
.banner-gross img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 30px 60px -32px rgb(20 8 45 / 0.55);
}
.banner-raster figcaption,
.banner-gross figcaption { margin-top: 0.6rem; font-size: 0.85rem; opacity: 0.7; }
.banner-lauf {
	width: 100vw;
	max-width: none !important;
	margin-inline: calc(50% - 50vw) !important;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: var(--wp--preset--spacing--30);
}
.banner-lauf::-webkit-scrollbar { display: none; }
.banner-lauf__spur {
	display: flex;
	gap: clamp(1rem, 2vw, 2rem);
	width: max-content;
	padding-inline: max(var(--wp--style--root--padding-left, 1.25rem), calc((100vw - 1240px) / 2));
}
.banner-lauf__spur > figure { margin: 0; width: clamp(16rem, 34vw, 30rem); flex: none; }
.banner-lauf__spur > figure:nth-child(even) { margin-top: clamp(1rem, 3vw, 3rem); }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 782px) {
		.banner-lauf { overflow: clip; }
		.banner-lauf__spur {
			animation: banner-quer linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
		@keyframes banner-quer { from { transform: translateX(20vw); } to { transform: translateX(calc(-100% + 90vw)); } }
	}
}

/* Kontaktseite (04.12.): Bühne über die ganze Höhe, grosser Titel, Regionen als Etiketten, Porträt mit Sand-Sprechblase ("Ich freue mich, von Ihnen zu hören."),
   E-Mail und LinkedIn als grosse Karten (gleiche synchronisierte Vorlage "Kontakt-Angaben", nur hier als Karten). */
.seiten-buehne {
	position: relative;
	overflow: clip;
	min-height: calc(100svh - 76px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		radial-gradient(60% 55% at 85% 30%, color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--wp--preset--color--nacht) 80%, transparent), transparent 75%),
		var(--wp--preset--color--schiefer) !important;
}
/* im Flex-Aufbau sonst so schmal wie der Inhalt (wegen margin-inline: auto des Layouts) */
.seiten-buehne > * { width: 100%; }
.seiten-buehne__titel {
	font-size: clamp(2.8rem, 7.5vw, 6.5rem) !important;
	line-height: 0.92 !important;
	text-transform: uppercase;
	margin-block: 0.15em 0.35em !important;
	letter-spacing: -0.01em;
}
.seiten-buehne__region {
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: 0.6rem !important;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.7;
}
.seiten-buehne .etiketten { margin-top: 0 !important; }
.seiten-buehne .etiketten span.etikett { font-size: 1rem; padding: 0.45em 0.85em; }

/* Porträt leicht gedreht, Sprechblase überlappt unten links */
.seiten-buehne__bild { position: relative; }
.seiten-buehne__bild .portraet-bild { max-width: 380px; margin: 0 0 0 auto !important; rotate: 2deg; }
.seiten-buehne__bild .portraet-bild img { box-shadow: 0 40px 80px -40px rgb(10 20 30 / 0.7); }
.seiten-buehne__blase {
	position: relative;
	width: fit-content;
	max-width: 24rem;
	margin: -3.5rem 0 0 auto !important;
	translate: -38% 0;
	rotate: -1.5deg;
	box-shadow: 0 30px 60px -30px rgb(10 20 30 / 0.6);
}
.seiten-buehne__blase p { margin: 0; font-size: 1.2rem; line-height: 1.4; font-weight: 500; }

/* Karten */
:is(.seiten-buehne__karten, .kontakt-aufruf__karten) .kontakt-liste { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--wp--preset--spacing--40); }
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 1.25rem;
	padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
	padding-right: 4.5rem;
	border-radius: var(--radius);
	border: 1px solid rgb(255 255 255 / 0.18);
	background: rgb(255 255 255 / 0.04);
	transition: background-color 0.3s, border-color 0.3s, translate 0.3s var(--weich), box-shadow 0.3s;
}
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile strong {
	display: block;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
	margin-bottom: 0.3rem;
}
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile__wert {
	display: block;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(1.15rem, 2.2vw, 1.6rem);
	line-height: 1.2;
	overflow-wrap: anywhere;
}
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile::after {
	content: "↗";
	position: absolute;
	right: clamp(1.25rem, 3vw, 2rem);
	top: 50%;
	translate: 0 -50%;
	font-size: 1.6rem;
	transition: translate 0.3s var(--weich);
}
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:hover,
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:focus-visible {
	translate: 0 -4px;
	border-color: var(--wp--preset--color--sand);
	box-shadow: 0 30px 60px -35px rgb(10 20 30 / 0.7);
}
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:hover::after,
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:focus-visible::after { translate: 4px calc(-50% - 4px); }
/* E-Mail als Hauptweg: Sand gefüllt */
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:first-child {
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--nacht);
}
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:first-child strong { color: var(--wp--preset--color--schiefer); }
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:first-child .kontakt-zeile__kreis { background: var(--wp--preset--color--nacht); }
:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile:first-child:hover { background: #f6d9ab; }

@media (max-width: 781px) {
	.seiten-buehne { min-height: 0; }
	.seiten-buehne__bild .portraet-bild { max-width: 240px; margin: var(--wp--preset--spacing--40) auto 0 0 !important; }
	.seiten-buehne__blase { translate: none; margin: -2rem 0 0 1.5rem !important; }
	/* Adresse ganz auf einer Zeile: ohne Kreis, etwas kleiner */
	:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile { grid-template-columns: 1fr; padding-right: 3.25rem; }
	:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile__kreis { display: none; }
	:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile__wert { font-size: 1.05rem; }
	:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile::after { right: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
	:is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile, :is(.seiten-buehne, .kontakt-aufruf) .kontakt-zeile::after { transition: none; }
}

/* Über mich (04.12.): Bühne wie Kontakt, Karten "Was mich antreibt" mit Link zum Projekt, Werdegang als Zeitlinie, Werkzeuge als dunkles Band */
.ueber-seite .seiten-buehne__titel { font-size: clamp(2.2rem, 4.4vw, 4.1rem) !important; line-height: 0.98 !important; hyphens: manual; }
.ueber-seite .seiten-buehne__blase { width: fit-content; max-width: 22rem; }

.antrieb-raster { align-items: stretch; }
.antrieb-karte {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-top: 4px solid var(--wp--preset--color--sand);
	border-radius: 0 0 14px 14px;
	padding: var(--wp--preset--spacing--40) !important;
	box-shadow: 0 24px 50px -32px rgb(27 42 53 / 0.45);
	transition: translate 0.3s, box-shadow 0.3s;
}
.antrieb-karte:hover { translate: 0 -4px; box-shadow: 0 34px 60px -30px rgb(27 42 53 / 0.5); }
.antrieb-karte .schwerpunkt__nr { font-size: 2.6rem; line-height: 1; }
.antrieb-karte h3 { font-family: var(--wp--preset--font-family--titelschrift); text-transform: uppercase; color: var(--wp--preset--color--schiefer); }
.antrieb-karte__link { margin-top: auto !important; padding-top: var(--wp--preset--spacing--30); }
.antrieb-karte__link a { font-weight: 700; color: var(--wp--preset--color--schiefer); text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--sand); }
.antrieb-karte__link a span { display: inline-block; transition: translate 0.25s; }
.antrieb-karte:hover .antrieb-karte__link a span { translate: 4px 0; }

/* Zeitlinie: Linie mit Punkten in eigener Spalte links, aktuelle Stelle als Karte rechts davon (Punkt bleibt auf der Linie) */
.zeitlinie { position: relative; }
/* Linie als Stück je Station: vom eigenen Punkt bis zum nächsten, nach dem letzten Punkt keine Linie */
.zeitlinie .werdegang__eintrag > .wp-block-column:first-child::before {
	content: ""; position: absolute; z-index: -2; left: calc(0.5rem - 1px);
	top: calc(var(--wp--preset--spacing--40) + 1.05rem); bottom: calc(-1 * (var(--wp--preset--spacing--40) + 1.05rem));
	width: 2px; background: var(--wp--preset--color--linie);
}
.zeitlinie .werdegang__eintrag.ist-aktuell > .wp-block-column:first-child::before { background: linear-gradient(var(--wp--preset--color--sand), var(--wp--preset--color--linie)); }
.zeitlinie .werdegang__eintrag:last-child > .wp-block-column:first-child::before { content: none; }
.zeitlinie .werdegang__eintrag {
	position: relative; isolation: isolate; border-top: 0;
	padding-left: calc(2.25rem + var(--wp--preset--spacing--40)) !important;
	padding-right: var(--wp--preset--spacing--40) !important;
}
.zeitlinie .werdegang__eintrag::before {
	content: ""; position: absolute; left: 0; top: calc(var(--wp--preset--spacing--40) + 0.55rem);
	width: 1rem; height: 1rem; border-radius: 50%; box-sizing: border-box;
	background: var(--wp--preset--color--hell, #F2F3F4); border: 2px solid var(--wp--preset--color--schiefer);
}
.zeitlinie .werdegang__eintrag.ist-aktuell::before {
	background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--sand);
	box-shadow: 0 0 0 5px rgb(242 206 150 / 0.3);
}
.zeitlinie .werdegang__eintrag.ist-aktuell::after {
	content: ""; position: absolute; z-index: -1; inset: 0 0 0 2.25rem;
	background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -34px rgb(27 42 53 / 0.45);
}

/* Werkzeuge als dunkles Band */
.werkzeug-band { background: var(--wp--preset--color--nacht); color: #fff; }
.werkzeug-band .abschnitt-titel { color: #fff; }
.werkzeug-band .werkzeug-liste li {
	background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 12px; padding: 0.7rem 0.9rem; transition: border-color 0.25s, background 0.25s;
}
.werkzeug-band .werkzeug-liste li:hover { border-color: var(--wp--preset--color--sand); background: rgb(242 206 150 / 0.08); }
.werkzeug-band + * { margin-top: 0 !important; }
.werkzeug-band .werkzeug-liste { gap: 0.75rem; }
.werkzeug-band .werkzeug-liste .silvan-icon { width: 32px; }

@media (max-width: 781px) {
	.zeitlinie .werdegang__eintrag { padding-left: calc(1.75rem + var(--wp--preset--spacing--30)) !important; padding-right: var(--wp--preset--spacing--30) !important; }
	.zeitlinie .werdegang__eintrag.ist-aktuell::after { left: 1.75rem; }
	.werkzeug-band .werkzeug-liste { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
	.werkzeug-band .werkzeug-liste li { padding: 0.6rem 0.7rem; gap: 0.6rem; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
	.antrieb-karte, .antrieb-karte__link a span, .werkzeug-band .werkzeug-liste li { transition: none; }
}

/* Kontaktaufruf (04.12.): gleiche grosse Karten wie die Kontaktseite, auf allen Seiten (Vorlage 117) */
.kontakt-aufruf {
	background:
		radial-gradient(55% 70% at 90% 0%, color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent), transparent 70%),
		var(--wp--preset--color--schiefer) !important;
}
.kontakt-aufruf__titel {
	font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
	line-height: 1.04 !important;
	text-transform: uppercase;
	margin: 0.2em 0 0 !important;
}
.kontakt-aufruf .wp-block-column > p.has-gross-font-size { margin: 0; }

/* Über mich auf der Startseite (04.12.): Porträt gedreht mit Sprechblase, Fakten, Link */
.start-ueber .seiten-buehne__bild .portraet-bild { max-width: 400px; margin: 0 auto !important; }
.start-ueber .seiten-buehne__blase { width: fit-content; max-width: 20rem; translate: -20% 0; }
.start-ueber__satz {
	font-family: var(--wp--preset--font-family--titelschrift);
	font-weight: 700;
	font-size: clamp(1.45rem, 2.2vw, 1.95rem);
	line-height: 1.25;
	color: var(--wp--preset--color--schiefer);
	margin-top: 0.4em !important;
}
.fakten-liste {
	list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--40) !important;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	border-top: 1px solid var(--wp--preset--color--linie);
}
.fakten-liste li { padding: 1rem 1rem 0 0; font-weight: 500; line-height: 1.35; color: var(--wp--preset--color--schiefer); }
.fakten-liste li + li { padding-left: 1rem; border-left: 1px solid var(--wp--preset--color--linie); }
.fakten-liste strong {
	display: block; margin-bottom: 0.35rem;
	font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
	color: color-mix(in srgb, var(--wp--preset--color--schiefer) 65%, #fff);
}
.start-ueber__link { margin-top: var(--wp--preset--spacing--40) !important; }
.start-ueber__link a {
	display: inline-flex; align-items: center; gap: 0.6rem;
	background: var(--wp--preset--color--schiefer); color: #fff; text-decoration: none; font-weight: 700;
	padding: 0.85rem 1.3rem; border-radius: 999px; transition: background 0.25s;
}
.start-ueber__link a span { display: inline-block; color: var(--wp--preset--color--sand); transition: translate 0.25s; }
.start-ueber__link a:hover { background: var(--wp--preset--color--nacht); }
.start-ueber__link a:hover span { translate: 4px 0; }
@media (max-width: 781px) {
	.start-ueber .seiten-buehne__bild .portraet-bild { max-width: 260px; margin: 0 !important; }
	.start-ueber .seiten-buehne__blase { translate: none; }
	.fakten-liste { grid-template-columns: 1fr; }
	.start-ueber__link a { font-size: 0.95rem; padding: 0.8rem 1.1rem; }
	.fakten-liste li, .fakten-liste li + li { padding: 0.8rem 0; border-left: 0; border-bottom: 1px solid var(--wp--preset--color--linie); }
}
@media (prefers-reduced-motion: reduce) { .start-ueber__link a, .start-ueber__link a span { transition: none; } }

/* Schwerpunkte mit Belegen (04.12.): unten je Pendenzia, Essence Origin und ein drittes Projekt als Link */
.schwerpunkt.mit-belegen { display: flex; flex-direction: column; height: 100%; }
.schwerpunkt__belege {
	margin-top: auto !important; padding-top: var(--wp--preset--spacing--30);
	display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
}
.schwerpunkt__belege span {
	flex-basis: 100%; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
	color: color-mix(in srgb, var(--wp--preset--color--schiefer) 60%, #fff); margin-bottom: 0.15rem;
}
.schwerpunkt__belege a {
	font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--schiefer);
	padding: 0.3em 0.75em; border: 1px solid var(--wp--preset--color--linie); border-radius: 999px;
	transition: background 0.2s, border-color 0.2s;
}
.schwerpunkt__belege a:hover, .schwerpunkt__belege a:focus-visible { background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--sand); }
@media (prefers-reduced-motion: reduce) { .schwerpunkt__belege a { transition: none; } }

/* Arbeitsweise (04.12.): Satz und Schwerpunkte in einem Abschnitt, Satz als Überschrift, Karten als Beleg darunter */
.arbeitsweise .aussage { box-sizing: border-box; max-width: 1240px !important; margin-inline: auto !important; padding-right: clamp(0px, 10vw, 9rem); }

/* Rechtstexte (Datenschutz, Impressum, 04.12.): ruhige Zwischentitel, gut lesbare Zeilen */
.rechtstext { max-width: none; }
.rechtstext h2 {
	font-size: 1.35rem !important; text-transform: none; letter-spacing: 0;
	margin-top: var(--wp--preset--spacing--50) !important; margin-bottom: 0.4rem !important;
	padding-top: var(--wp--preset--spacing--30); border-top: 1px solid var(--wp--preset--color--linie);
}
.rechtstext p, .rechtstext li { font-size: 1.02rem; line-height: 1.65; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext .datenschutz-intro { font-size: 1.25rem; line-height: 1.55; }
.rechtstext a { text-decoration-color: var(--wp--preset--color--sand); text-underline-offset: 3px; }
