/*
 * Front page (template front-page.html, pattern hero-startseite, the page's content). Loaded on the
 * front page and in the editor (functions.php).
 *
 * The sections sit in the content column like the cards on every other page (2026-11-18; from
 * 2026-11-14 they ran edge to edge without gaps): the column's standard padding (seam to the
 * sidebar, page edge at the right, none on tablet/phone) and the standard 2px gap between sections
 * (custom.abschnittsabstand, global CSS). Only the opening is one piece: hero text, photo row and
 * the first section meet without a gap (below). Each section has its own colour
 * (white, Hervorhebung, Akzentfläche, Grau).
 */

/* ---------- Column ---------- */

/*
 * The column's own colour (custom.startseiteHintergrund) shows in the gaps between the sections.
 * Only inside the padding: the seam stays clear for the open Dienste group's fill, which reaches
 * over it to meet the hero (accordion.css). Only on the front end (body.home): the editor canvas
 * has no sidebar to meet.
 */
body.home .startseite-spalte {
	background-color: var(--wp--custom--startseite-hintergrund);
	background-clip: content-box;
}

/*
 * Hero and the first section read as one opening: no section gap between the hero (template) and the
 * page content. On phones/tablets the content starts with "Unsere Angebote" (moved up 2026-11-19, so
 * the services come before the self-description); on desktop that group is hidden and "Wer wir sind"
 * is the first visible section. Stronger than the global gap rule.
 */
.startseite-spalte > .wp-block-post-content:has(> .startseite-arbeit:first-child, > .startseite-angebote:first-child) {
	margin-block-start: 0;
}

/* Desktop: the hidden Angebote group is still the first child, so "Wer wir sind" would get the gap. */
@media (min-width: 1281px) {
	.startseite-spalte > .wp-block-post-content > .startseite-angebote:first-child + .startseite-arbeit {
		margin-block-start: 0;
	}
}

/*
 * The hairline under the header, edge to edge at every size, as on the pages with a coloured column
 * (back 2026-11-19, review: from 2026-11-18 the header met the hero's white band directly). Same
 * line as there (dienstleiste.css: part of the header's grey background image, so it reaches the
 * screen edges and comes back with the sliding header). No "Gemeindepsychiatrisches Zentrum" bar
 * any more (2026-11-18, git history).
 */
body.home .wp-site-blocks > header {
	border-image: linear-gradient(to top, color-mix(in srgb, var(--wp--preset--color--contrast) 20%, var(--wp--preset--color--accent-3)) 1px, var(--wp--preset--color--accent-3) 1px) fill 0 / / 0 100vw;
}

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

/*
 * Figma node 14648:3175 (2026-11-18): a white band with the heading at the top left and the intro
 * text at the bottom left, "Kontakt aufnehmen" as a Weiterlink at the bottom right; then
 * a strip of eight photos from the services, without gaps. Hero, strip and the first section
 * below meet without the section gap (Column, above). Until 2026-11-18: three photos and a
 * full-width button (variant "H2"); before that one random photo behind a white paper (git history).
 */
.wp-block-group.hero-startseite > * {
	margin: 0;
}

/*
 * The white band: spacing|50 all round (the page edge, as in the mock). Phones: heading, text and
 * the link stacked, the link at the right like the other Weiterlinks on phones.
 */
.hero-text {
	display: grid;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
}

/* The grid gap spaces them; as strong as the flow layout's gap rule, which added margins on top. */
.wp-block-group.hero-text > * {
	margin: 0;
}

/*
 * Widths in em, so the lines break as in the mock whatever the size: the heading in three lines
 * ("… beim / Weinsberger Hilfsverein e.V. / in Heilbronn."), the text in about four.
 */
.hero-text > h1 {
	max-width: 15em;
}

.hero-text > p:not(.hero-weiter) {
	max-width: 28em;
}

.hero-text > .hero-weiter {
	justify-self: end;
}

/*
 * Phones and small tablets (mobile mock, Figma node 14650:3217): heading and text close together,
 * then a wide white room before the link, so the band breathes like the desktop one.
 */
@media (max-width: 781px) {
	.hero-text {
		row-gap: var(--wp--preset--spacing--30);
	}

	.hero-text > .hero-weiter {
		margin-block-start: var(--wp--preset--spacing--80);
	}
}

/*
 * From 782px: heading at the top, text and link on one line at the bottom, with a wide empty room
 * between them (spacing|80 at least, as in the mock: the band is roomy on purpose). The link keeps
 * its one line; the text column gives way on narrow desktops.
 */
@media (min-width: 782px) {
	.hero-text {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto minmax(var(--wp--preset--spacing--80), 1fr) auto;
		row-gap: 0;
		align-items: end;
	}

	.hero-text > h1 {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.hero-text > p:not(.hero-weiter) {
		grid-column: 1;
		grid-row: 3;
	}

	.hero-text > .hero-weiter {
		grid-column: 2;
		grid-row: 3;
		white-space: nowrap;
	}
}

/*
 * The photo strip: eight photos in one row that scrolls sideways. Desktop shows four, tablets
 * three, each fitted to the width (none cut off; the rest scroll in); phones one and three
 * quarters, slightly wider than tall and about as tall as half the screen width (mobile mock), so
 * the cut-off photo says "swipe". Snaps photo by photo. No scrollbar under the photos
 * (the buttons below, a trackpad, or the arrow keys once the strip has focus: functions.php makes
 * it focusable). The selectors match core's gallery rules in strength.
 */
.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos {
	--sichtbar: 1.75;
	flex-wrap: nowrap;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos::-webkit-scrollbar {
	display: none;
}

/* The focus ring inside the strip: outside it would sit over the band and the section below. */
.hero-startseite .wp-block-gallery.hero-fotos:focus-visible {
	outline-offset: -3px;
}

@media (min-width: 600px) {
	.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos {
		--sichtbar: 3;
	}
}

@media (min-width: 1281px) {
	.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos {
		--sichtbar: 4;
	}
}

.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos > figure.wp-block-image:not(#individual-image) {
	flex: 0 0 calc(100% / var(--sichtbar));
	width: auto;
	margin: 0;
	scroll-snap-align: start;
}

.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos > figure.wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 11 / 10;
	object-fit: cover;
}

@media (min-width: 600px) {
	.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos > figure.wp-block-image img {
		aspect-ratio: 4 / 3;
	}
}

/* A wide photo whose subject sits left of centre (Empfang, 1332: the panorama would cut her in half). */
.hero-startseite .wp-block-gallery.has-nested-images.hero-fotos > figure.fokus-links img {
	object-position: 25% 50%;
}

/*
 * Back/forward chevrons (review 2026-11-19, m's sketch: minimal, no circle; built by
 * assets/js/hero-fotos.js, which wraps the strip in .hero-fotos-rahmen, so none of this applies
 * without the script). Each button is a full-height band at the strip's edge, spacing|60 wide (64px
 * at 1440 as in m's mock; a big tap target), with m's slim white chevron (theme icon, functions.php)
 * centred in it, a quarter of the photos' height as in the sketch. At rest nothing but the chevron
 * (a faint shadow keeps it readable on a white sky). Hovering a chevron's band (or pressing it, or
 * keyboard focus) darkens that band only: 20% black at the strip's edge fading out towards the
 * photos' middle (m, after trying a stronger fade on all bands and a blurred flat rectangle).
 * 100ms like every hover. Both always show: the strip loops
 * (hero-fotos.js).
 */
.hero-fotos-rahmen {
	position: relative;
}

/*
 * No swiping through the photos: a touch on the strip only scrolls the page (a sideways swipe was
 * easy to set off while scrolling down on phones). The chevrons do the paging.
 */
.hero-fotos-rahmen > .wp-block-gallery.hero-fotos {
	touch-action: pan-y;
}

/* Inside the frame the strip is no longer a child of the hero, whose "> *" rule kept core's gallery margin off. */
.wp-block-group.hero-startseite .hero-fotos-rahmen > .wp-block-gallery.hero-fotos {
	margin: 0;
}

.hero-fotos-rahmen > .hero-blaettern {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--preset--spacing--60);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hero-fotos-rahmen > .hero-blaettern-weiter {
	inset-inline: auto 0;
}

/* The shade: the whole band, darkest at the strip's edge (to right on the back band, to left on the forward one). */
.hero-fotos-rahmen > .hero-blaettern::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent), transparent);
	opacity: 0;
}

.hero-fotos-rahmen > .hero-blaettern.hero-blaettern-weiter::before {
	background: linear-gradient(to left, color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent), transparent);
}

.hero-fotos-rahmen > .hero-blaettern > svg {
	position: relative;
	width: auto;
	height: 25%;
	fill: currentColor;
	filter: drop-shadow(0 0 1px color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent));
}

@media (hover: hover) {
	.hero-fotos-rahmen > .hero-blaettern:hover::before {
		opacity: 1;
	}
}

/* Touch screens have no hover: there the shade only shows while a chevron is pressed. */
.hero-fotos-rahmen > .hero-blaettern:is(:active, :focus-visible)::before {
	opacity: 1;
}

/* White ring inside the band: the theme's navy ring would vanish on the shade and the photos. */
.hero-fotos-rahmen > .hero-blaettern:focus-visible {
	outline-color: var(--wp--preset--color--base);
	outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {
	.hero-fotos-rahmen > .hero-blaettern::before {
		transition: opacity 0.1s;
	}
}

/* ---------- Wer wir sind ---------- */

/*
 * The building drawing (it used to sit in the hero and in the sidebar) beside the text, its right
 * edge towards the text. Stacked (phones, small tablets): above the heading at the right, reaching
 * the right screen edge, small enough to leave the text close to the top.
 */
.startseite-zeichnung {
	margin: 0;
}

.startseite-zeichnung img {
	display: block;
	width: 100%;
	max-width: 18rem;
	height: auto;
	margin-inline-start: auto;
}

@media (max-width: 781px) {
	.startseite-zeichnung {
		margin-inline-end: calc(-1 * var(--wp--preset--spacing--50));
	}

	/* Smaller on phones (mobile mock: about half the screen), so the text starts higher. */
	.startseite-zeichnung img {
		width: min(52vw, 18rem);
	}
}

.startseite-arbeit .wp-block-heading {
	margin-block-end: 0;
}

/*
 * "Mehr über uns", "Alle Beiträge": a plain text link to another page (the arrow comes from the
 * theme's rule for links to other pages, functions.php). Right-aligned once stacked on phones,
 * where it ends the section like a button would.
 */
.startseite-weiter {
	margin-block-start: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.startseite-weiter {
		text-align: right;
		margin-inline-start: auto;
	}
}

/* ---------- Unsere Angebote (phones and tablets) ---------- */

/*
 * The Dienste accordion in its own grey section with a heading, so the section and the closed groups
 * read as one surface. Closed groups are transparent (the page grey shows through on other pages):
 * the accordion brings that grey itself, in case the section gets another colour.
 */
.startseite-angebote > .wp-block-heading {
	margin-block: 0;
}

.startseite-angebote .wp-block-accordion {
	background-color: var(--wp--preset--color--accent-3);
}

/*
 * The list ends the section (no bottom padding, set on the block) and the next section follows
 * without the section gap: an open last group then meets "Wer wir sind" directly instead of over a
 * grey strip (2026-11-19).
 */
.startseite-spalte > .wp-block-post-content > .startseite-angebote + * {
	margin-block-start: 0;
}

/* ---------- Aktuelles ---------- */

/*
 * Aktuelles and Stellen: heading with "Alle Beiträge" / "Alle offenen Stellen" at its right; on
 * phones the link moves below the list, where the reader arrives after the last entry.
 */
.wp-block-group:is(.startseite-aktuelles, .startseite-stellen) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"titel weiter"
		"liste liste";
	align-items: baseline;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.wp-block-group:is(.startseite-aktuelles, .startseite-stellen) > * {
	margin: 0;
}

:is(.startseite-aktuelles, .startseite-stellen) > .wp-block-heading {
	grid-area: titel;
}

:is(.startseite-aktuelles, .startseite-stellen) > .wp-block-query {
	grid-area: liste;
}

:is(.startseite-aktuelles, .startseite-stellen) > .startseite-weiter {
	grid-area: weiter;
}

@media (max-width: 781px) {
	.wp-block-group:is(.startseite-aktuelles, .startseite-stellen) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"titel"
			"liste"
			"weiter";
	}
}

/*
 * From small tablets up: three posts side by side, photo on top (3:2), then date and title; no
 * dividers. Phones keep the list with a thumbnail beside the text (post-template.css). !important:
 * the block writes the photo's 11rem width, 4:3 and flex-basis inline.
 */
@media (min-width: 782px) {
	.startseite-aktuelles .wp-block-post-template {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--40);
	}

	/* As specific as post-template.css's divider spacing for post lists, which this undoes. */
	.wp-block-group.startseite-aktuelles .wp-block-post-template > li,
	.wp-block-group.startseite-aktuelles .wp-block-post-template.ganzer-eintrag > li + li {
		--eintrag-oben: 0px;
		margin: 0;
		padding-top: 0;
		border-top: 0;
	}

	.startseite-aktuelles .wp-block-post-template > li > .wp-block-group {
		flex-direction: column;
		gap: var(--wp--preset--spacing--30);
	}

	/* Whole words, as in the design: three columns are wide enough for the titles. */
	.startseite-aktuelles .wp-block-post-title {
		hyphens: manual;
	}

	.startseite-aktuelles .wp-block-post-template > li > .wp-block-group > .wp-block-post-featured-image {
		flex-basis: auto !important;
		width: 100% !important;
		min-height: 0;
		aspect-ratio: 3 / 2;
	}
}

/* ---------- Spenden ---------- */

/*
 * Mock of 2026-11-18: the two cards (group "spenden-karten", above the columns since 2026-11-18, so
 * they are not squeezed into the 60% column), then two columns (Columns block "spenden-spalten",
 * 60/40: the right one needs room for the Spenden button's label on one line at 1440px): the quote
 * left; right, bottom-aligned with it, the Spendenkonto and the Spenden button. Each card is a
 * Media & Text block (KiP, KOMPASS): a square photo left (it grows taller if the text needs more
 * room), white text right at a comfortable reading width with the name, the description and a
 * Weiterlink at the bottom right (the only link). Until then: photo cards 3:2 side by side with a
 * white label below and an outline button (variant "S1", git history).
 */
.startseite-spenden h2 {
	max-width: 22em;
}

/*
 * The cards' group is the container: narrower cards (phones, tablets up to about 780px of screen)
 * stack photo over text. The text track is as wide as running text gets (the global 38rem cap) plus
 * the card padding; the photo takes everything else, but at least 40% of the card. So wide cards
 * show more photo instead of empty white beside the capped text (2026-11-19; until then a fixed 15rem
 * square that cropped the photos narrow).
 */
.spenden-karten {
	--spenden-text: calc(38rem + 2 * var(--wp--preset--spacing--40));
	--spenden-foto: max(40cqw, 100cqw - var(--spenden-text));
	container-type: inline-size;
}

/*
 * Side by side (Media & Text writes its 35% inline, hence !important). The cards run the full width of
 * the section, so their right edge is the Spenden button's below. The photo is at least as tall as
 * 3:2 of its width (the photos are about 3:2, so little is cropped); longer text makes it taller.
 * Core gives filled media a 250px minimum height; this replaces it.
 */
@container (width >= 46rem) {
	.wp-block-media-text.spenden-karte {
		grid-template-columns: var(--spenden-foto) minmax(0, 1fr) !important;
	}

	.wp-block-media-text.spenden-karte > .wp-block-media-text__media {
		min-height: calc(var(--spenden-foto) / 1.5);
	}
}

/* Core's 0 8% padding is meant for wide media/text pairs; the card has the edge of the theme's cards. */
.wp-block-media-text.spenden-karte > .wp-block-media-text__content {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--40);
}

.spenden-karte > .wp-block-media-text__content > * {
	margin: 0;
}

.spenden-karte > .wp-block-media-text__content > p {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* The Weiterlink sits at the bottom right, however long the description is. */
.spenden-karte > .wp-block-media-text__content > p.is-style-weiter {
	max-width: none; /* out of the running-text cap, so it reaches the card's right edge */
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--30);
}

/*
 * Core's stacking (is-stacked-on-mobile) only kicks in below 600px of screen; this follows the card.
 * Stacked, the photo is a 2:1 band on phones and 5:2 on wider cards, so the section stays short
 * (2026-11-19; 3:2 made it very long on phones).
 */
@container (width < 46rem) {
	.wp-block-media-text.spenden-karte {
		grid-template-columns: 100% !important;
	}

	.wp-block-media-text.spenden-karte > .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 1;
		min-height: 0;
		aspect-ratio: 2 / 1;
	}

	.wp-block-media-text.spenden-karte > .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 2;
		padding: var(--wp--preset--spacing--30);
	}
}

@container (34rem <= width < 46rem) {
	.wp-block-media-text.spenden-karte > .wp-block-media-text__media {
		aspect-ratio: 5 / 2;
	}

	.wp-block-media-text.spenden-karte > .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--40);
	}
}

/*
 * Stacked columns (core stacks them below 782px): the Spenden button comes right after the quote and
 * the Spendenkonto goes below it as the detail, so the call to action isn't pushed down the page.
 */
@media (max-width: 781px) {
	.spenden-spalten > .wp-block-column:last-child {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--40);
	}

	.spenden-spalten > .wp-block-column:last-child > .wp-block-buttons {
		order: -1;
		margin-block-start: 0 !important; /* the block's inline gap above it, meant for desktop */
	}
}

/*
 * Quote with a black line at its left, the name and role below it: one citation, two lines (name,
 * line break, role), the first line set like the text, the role small in Montserrat capitals.
 * The capitals are small caps, not text-transform: ::first-line can switch small caps off for the
 * name, but browsers ignore text-transform there. Montserrat has no real small caps, so the browser
 * makes them from capitals at about 70% size; the font size is set so they come out at about
 * "Klein" (14px).
 */
.wp-block-quote.startseite-zitat {
	/* Not margin-block-start: that is the column's gap above the quote. */
	margin-inline: 0;
	margin-block-end: 0;
	padding: 0 0 0 var(--wp--preset--spacing--30);
	border-left: 2px solid var(--wp--preset--color--contrast);
}

.startseite-zitat cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1.25rem;
	font-style: normal;
	font-weight: 500;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.startseite-zitat cite::first-line {
	font-family: var(--wp--preset--font-family--merriweather);
	font-size: var(--wp--preset--font-size--medium-plus);
	font-weight: 400;
	font-variant-caps: normal;
	letter-spacing: 0;
}

/* ---------- So erreichen Sie uns ---------- */

/*
 * The map fills its half of the section edge to edge, the text half has its own padding. Side by side
 * the map is as tall as the text but at least 90% of its width, cropped (it has ~9% empty margin
 * around the labels, so that much can go) and at most 1.2 times its width; a taller section shows the
 * map's paper grey below it (the same rules as the white sections, image.css).
 */
.startseite-karte {
	margin: 0;
	background-color: var(--wp--preset--color--accent-5);
}

.startseite-karte img {
	display: block;
	width: 100%;
}

@media (min-width: 782px) {
	.startseite-kontakt .wp-block-column:has(> .startseite-karte) {
		display: flex;
	}

	.startseite-karte {
		position: relative;
		flex: 1 0 auto;
		container-type: inline-size;
	}

	.startseite-karte::before {
		content: "";
		display: block;
		padding-top: 90%;
	}

	.startseite-karte img {
		position: absolute;
		inset: 0;
		height: 100%;
		max-height: 120cqw;
	}
}

/* ---------- BWF teaser ---------- */

/*
 * "Mehr als ein Dach über dem Kopf." (Figma mock 2026-11-17): the photo fills the section, the
 * heading in white sits on it at the top left, the text and an outline button on a mint box at the
 * bottom right (lime until 2026-11-19: lime is for calls to action). Phones: the photo (square, the
 * face at the top) with the heading at its bottom, the mint box below it.
 * A dark shade from the heading's corner keeps the white heading readable on light parts of a photo.
 */
.wp-block-group.startseite-fototeaser {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"foto"
		"kasten";
}

/* As strong as the flow layout's gap rule, which put a strip of grey above the box. */
.wp-block-group.startseite-fototeaser > * {
	margin: 0;
}

.startseite-fototeaser > .wp-block-image {
	grid-area: foto;
	position: relative;
}

.startseite-fototeaser > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 0%;
}

.startseite-fototeaser > .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.4), rgb(0 0 0 / 0) 30%);
	pointer-events: none;
}

.startseite-fototeaser > .wp-block-heading {
	grid-area: foto;
	align-self: end;
	position: relative;
	max-width: 5.2em;
	margin: var(--wp--preset--spacing--50);
	text-wrap: wrap;
}

.startseite-fototeaser > .fototeaser-kasten {
	grid-area: kasten;
}

.fototeaser-kasten > p {
	text-wrap: wrap;
}

/*
 * From small tablets up: one cell; the photo fills the whole section (absolute, so its own height
 * doesn't size the section), the box sits at the bottom right, a page edge away from the edges.
 */
@media (min-width: 782px) {
	.wp-block-group.startseite-fototeaser {
		grid-template-areas: "alles";
		min-height: clamp(32rem, 46vw, 46rem);
	}

	.startseite-fototeaser > .wp-block-image {
		position: absolute;
		inset: 0;
	}

	/* Cropped from the bottom only: the face is near the photo's top, and tablets (the section about
	   2:1, wider than the 3:2 photo) cut it off at 30%. */
	.startseite-fototeaser > .wp-block-image img {
		aspect-ratio: auto;
		object-position: 40% 0%;
	}

	.startseite-fototeaser > .wp-block-image::after {
		/* Just a small soft shade in the corner behind the heading (the mock has no gradient over the photo). */
		background: radial-gradient(ellipse 38% 42% at 0 0, rgb(0 0 0 / 0.4), rgb(0 0 0 / 0));
	}

	.startseite-fototeaser > .wp-block-heading {
		grid-area: alles;
		align-self: start;
	}

	/* Stronger than the flow layout's "no bottom margin on the last block". */
	.wp-block-group.startseite-fototeaser > .fototeaser-kasten {
		grid-area: alles;
		position: relative;
		align-self: end;
		justify-self: end;
		width: clamp(24rem, 43%, 34rem);
		margin: var(--wp--preset--spacing--50);
	}
}
