/* Zwei Leben – Ein Weg: Ergänzungen, die theme.json nicht abbildet. */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

[id] {
	scroll-margin-top: 1.5rem;
}

/* Hero ------------------------------------------------------------------ */

.is-style-hero-glow {
	text-shadow:
		0 0 18px rgba(255, 255, 255, 0.75),
		0 0 42px rgba(255, 255, 255, 0.45);
}

.zlew-hero .has-gelb-color,
.zlew-hero .has-weiss-color {
	text-shadow: 0 2px 12px rgba(22, 13, 12, 0.85);
}

.zlew-hero .wp-block-image img {
	filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.55));
}

/* Dachzeile (Kicker) ---------------------------------------------------- */

.is-style-kicker {
	font-family: var(--wp--preset--font-family--breit);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Buttons --------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 0 #c9a400, 0 3px 8px rgba(22, 13, 12, 0.25);
}

/* Karten „Projektziele“ ------------------------------------------------- */

.zlew-karte .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* Galerie mit Plakaten -------------------------------------------------- */

.wp-block-gallery.is-style-plakate .wp-block-image img {
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(22, 13, 12, 0.3);
	transition: transform 0.2s ease;
}

.wp-block-gallery.is-style-plakate .wp-block-image:hover img {
	transform: translateY(-4px);
}

@media (max-width: 781px) {
	.wp-block-gallery.is-style-plakate.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2);
	}
}

/* Listen im gelben Termin-Abschnitt ------------------------------------- */

.zlew-termine li::marker {
	color: var(--wp--preset--color--tinte);
}

/* Bildspalten in Split-Abschnitten füllen die volle Höhe ------------------ */

.zlew-bildspalte {
	display: flex;
	flex-direction: column;
}

.zlew-bildspalte > .wp-block-cover {
	flex: 1 1 auto;
}

/* Hero-Buttons: gleich breit, umbrechend statt gequetscht ----------------- */

.zlew-hero .wp-block-buttons > .wp-block-button {
	flex: 1 1 200px;
}

.zlew-hero .wp-block-buttons > .wp-block-button > .wp-block-button__link {
	width: 100%;
}

/* Galerie: letzte Reihe nicht auf volle Breite ziehen --------------------- */

.wp-block-gallery.is-style-plakate {
	justify-content: center;
}

.wp-block-gallery.is-style-plakate.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}

/* Lightbox (Impressum) --------------------------------------------------- */

.zlew-lightbox {
	display: none;
}

.zlew-lightbox.alignfull,
.zlew-lightbox {
	max-width: none !important;
}

.zlew-lightbox:target,
.zlew-lightbox.is-open {
	align-items: center;
	background: rgba(22, 13, 12, 0.72);
	display: flex;
	inset: 0;
	justify-content: center;
	margin: 0 !important;
	padding: var(--wp--preset--spacing--30);
	position: fixed;
	z-index: 100000;
}

.zlew-lightbox__fenster {
	max-height: calc(100vh - 2rem);
	max-width: 560px;
	overflow-y: auto;
	width: 100%;
}

.zlew-lightbox__fenster > :first-child {
	margin-top: 0;
}

/* Im Editor bleibt der Inhalt sichtbar und bearbeitbar. */
.editor-styles-wrapper .zlew-lightbox {
	display: block;
}

.editor-styles-wrapper .zlew-lightbox::before {
	content: "Lightbox (nur im Editor sichtbar, öffnet sich über den passenden Link im Fußbereich)";
	display: block;
	font-size: 0.8rem;
	margin: 1rem 0 0.5rem;
	opacity: 0.75;
}

body.zlew-lightbox-offen {
	overflow: hidden;
}

.zlew-lightbox__schliessen .wp-block-button__link {
	background-image: none;
	box-shadow: none;
}

.zlew-lightbox__schliessen .wp-block-button__link:hover {
	box-shadow: none;
	text-decoration: underline;
}

.zlew-lightbox__fenster a:not(.wp-element-button) {
	color: var(--wp--preset--color--tinte);
}

.zlew-lightbox__fenster--breit {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 2rem);
	max-width: 960px;
}

.zlew-lightbox__fenster--breit > * {
	margin-block: 0;
}

.zlew-lightbox__iframe {
	background: #fff;
	border: 0;
	border-radius: 12px;
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

.editor-styles-wrapper .zlew-lightbox__fenster--breit {
	height: 70vh;
}
