/**
 * HIMML – globale Styles (Frontend und Editor).
 *
 * Aufbau:
 *  1. Tokens, die theme.json nicht abbilden kann
 *  2. Grundlagen
 *  3. Kopfbereich und dunkler Seitenanfang („Sky“)
 *  4. Himml-Zeichen (Wasserzeichen, dunkle Sektionen)
 *  5. Sektionen der Startseite
 *  5b. Inhaltsseiten (Seitenkopf-Einleitung, Fließtext, Weiterlesen)
 *  6. Fußbereich
 *  7. Bewegung (Reveal) und Hilfsklassen
 *
 * Varianten einzelner Blöcke (is-style-*) stehen in assets/css/blocks/.
 */

/* 0. Ersatzschrift ------------------------------------------------------
 * Museo Sans selbst kommt aus theme.json (fontFace, WordPress schreibt das
 * @font-face in den Kopf). Bis die Datei da ist, zeigt der Browser Arial,
 * auf Breite und Zeilenhöhe von Museo Sans 300 bzw. 700 gestreckt. So
 * springt beim Wechsel keine Zeile um (kein Layout-Shift). Werte mit
 * fontTools aus den Schriftdateien berechnet (Fließtext-Mischung, hhea).
 */
@font-face {
	font-family: "museo-sans-fallback";
	src: local("Arial"), local("ArialMT");
	font-weight: 100 600;
	size-adjust: 102.15%;
	ascent-override: 86.42%;
	descent-override: 22.47%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "museo-sans-fallback";
	src: local("Arial Bold"), local("Arial-BoldMT");
	font-weight: 700 900;
	size-adjust: 97.95%;
	ascent-override: 92.07%;
	descent-override: 23.43%;
	line-gap-override: 0%;
}

/* 1. Tokens ------------------------------------------------------------ */
:root {
	--himml-muted: var(--wp--preset--color--muted);
	--himml-ease: var(--wp--custom--ease, cubic-bezier(.2, .7, .2, 1));
	--himml-header-height: var(--wp--custom--header-height, 132px);
	--himml-rose-line: url("../images/brand/himml-zeichen-linie.svg");
	--himml-rose-dark: url("../images/brand/himml-zeichen-linie-10.svg") right -10vw center / min(62vw, 820px) auto no-repeat fixed;
}

@media (max-width: 760px) {
	:root {
		--himml-header-height: var(--wp--custom--header-height-mobile, 100px);
		--himml-rose-dark: url("../images/brand/himml-zeichen-linie-10.svg") right -35vw center / 105vw auto no-repeat fixed;
		/* Lesbarkeit auf dem Handy: Museo Sans 300 wirkt dort klein und dünn.
		 * Kleine Größen eine Stufe größer, gedämpfter Text in Fließtextfarbe. */
		--wp--preset--font-size--x-small: 15px;
		--wp--preset--font-size--small: 17px;
		--wp--preset--color--muted: var(--wp--preset--color--body);
	}

	/* Buttons: theme.json setzt 17px, die fluide Typografie macht daraus 14px. */
	:root :where(.wp-element-button, .wp-block-button__link) {
		font-size: 16.5px;
	}
}

/* Sektions-Farben: gedämpfter Text passend zum Grund. */
[class*="is-style-section-night"] {
	--himml-muted: #b9c6e0;
}

[class*="is-style-section-stone"] {
	--himml-muted: #d9dce1;
}

/* 2. Grundlagen -------------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Bilder aus älteren Beiträgen tragen feste Breiten (width="800"): nie breiter
 * als die Spalte, sonst lässt sich die Seite auf dem Handy seitlich schieben. */
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
}

/* Beitragsraster: Die Spalte darf schmaler werden als der Inhalt der Karte
 * (1fr allein dehnt sich auf die Mindestbreite des Bildes, Neuigkeiten mobil). */
@media (max-width: 767px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Platzhalter von Borlabs vor Videos und Karten: einheitlich in den Farben des
 * Themes (YouTube kam dunkelrot, Vimeo hellblau, Google Maps schon blau).
 * Videos mit Klasse himml-video haben ihren eigenen Platzhalter (weiter unten). */
.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker:not(.himml-video *) {
	--content-blocker-font-size: 15px !important;
}

.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker:not(.himml-video *) .brlbs-cmpnt-cb-btn {
	border-radius: var(--wp--preset--border-radius--pill) !important;
	background: var(--wp--preset--color--blue) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 500 !important;
}

.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker:not(.himml-video *) .brlbs-cmpnt-cb-btn:hover {
	background: var(--wp--preset--color--blue-bright) !important;
}

/* „Mehr Informationen“ im Platzhalter: Textfarbe statt Borlabs-Hellblau. */
.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker:not(.himml-video *) a.brlbs-cmpnt-cb-provider-toggle {
	color: inherit !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Gravity Forms (Registrierung, Glückwunschkarte): Unterbeschriftungen,
 * Pflichthinweis und Einwilligung lesbar groß (Orbital setzt 12–13px),
 * Absenden so groß wie die Theme-Buttons. */
/* Die Größen kommen als Variablen aus einem Inline-Stil mit ID-Selektor;
 * nur !important am Custom Property kommt dagegen an. */
.gform_wrapper.gform-theme {
	--gf-ctrl-btn-font-size: 16.5px !important;
}

:root .gform_wrapper :is(.gform-field-label--type-sub, .gfield_consent_description, .gfield_description) {
	font-size: 14px;
}

:root .gform_wrapper .gfield_required_text {
	font-size: 13px;
}

/* Aktivierung im Online-Vorsorgeberater (Plugin, /signup/aktivierung/):
 * Feld und Knopf im Theme-Stil statt Browser-Standard (Knopf hatte 13px). */
#activateform label {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

#activateform input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	min-height: 52px;
	margin-top: 8px;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--grey-mid);
	border-radius: 12px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
}

#activateform input[type="text"]:focus {
	border-color: var(--wp--preset--color--blue);
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 1px;
}

#activateform input[type="submit"] {
	padding: 16px 28px;
	border: 0;
	border-radius: var(--wp--preset--border-radius--pill);
	background: var(--wp--preset--color--blue);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color .2s;
}

#activateform input[type="submit"]:hover {
	background: var(--wp--preset--color--blue-bright);
}

/* Urnen-Finder (Plugin): Filter und Auswahl lesbar groß. */
.urnen-finder-chip-button,
.urnen-finder-reset-button {
	font-size: 15px !important;
}

.urnen-finder-property-filter__label,
.urnen-finder-selection-badge {
	font-size: 13px !important;
}

:where(h1, h2, h3, h4) {
	text-wrap: balance;
}

/* Fokus: blue auf hellen Flächen (9,5 : 1 auf Weiß), sky auf dunklen (7 : 1 auf Nachtblau).
   sky auf Weiß hätte nur 2,5 : 1. Die Farbe erbt sich, die nächste Fläche gewinnt. */
:root {
	--himml-focus: var(--wp--preset--color--blue);
}

.himml-site-header,
.wp-block-cover,
[class*="is-style-section-night"],
[class*="is-style-section-stone"],
.has-night-background-color,
.has-night-soft-background-color,
.has-stone-background-color {
	--himml-focus: var(--wp--preset--color--sky);
}

.has-blue-background-color {
	--himml-focus: var(--wp--preset--color--base);
}

[class*="is-style-section-paper"],
[class*="is-style-section-sand"],
.has-base-background-color,
.has-white-background-color,
.has-sand-background-color,
.has-grey-background-color,
.has-mist-background-color,
.is-style-step,
.is-style-link-card,
.is-style-obit-card,
.is-style-logo-card,
.wp-block-quote.is-style-review,
.wp-block-navigation__submenu-container,
.himml-map {
	--himml-focus: var(--wp--preset--color--blue);
}

:focus-visible {
	outline: 2px solid var(--himml-focus);
	outline-offset: 3px;
}

/* Abstände zwischen Template-Teilen und ganzen Sektionen: keine Lücken. */
.wp-site-blocks {
	position: relative;
}

.wp-site-blocks > *,
.wp-block-post-content > .alignfull,
main > .alignfull {
	margin-block: 0;
}

.himml-title-light {
	font-weight: 300 !important;
	line-height: 1.15;
}

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

/* 3. Kopfbereich und „Sky“ -------------------------------------------- */

/* Der Kopf liegt transparent über dem dunklen Seitenanfang. */
.himml-site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 20;
	color: #fff;
}

.himml-header__bar {
	min-height: var(--himml-header-height);
	gap: 24px;
}

.himml-logo {
	margin: 0;
	flex: none;
}

/* SVG-Logos ohne feste Maße: Seitenverhältnis vorgeben, sonst bleibt das Bild im Editor leer. */
.himml-logo img {
	display: block;
	height: 80px;
	width: auto;
	aspect-ratio: 450.78 / 156.98;
	border-radius: 0;
}

/* Wie im Entwurf sichtbar: neben der Navigation 150 px breit. */
@media (min-width: 1040px) {
	.himml-header .himml-logo img {
		width: 150px;
		height: auto;
	}
}

.himml-footer .himml-logo img {
	height: 60px;
}

.himml-header__contact {
	gap: 12px;
}

@media (max-width: 760px) {
	.himml-logo img {
		height: 62px;
	}

	/* Telefon als runder Icon-Button; die Nummer bleibt als Linktext für Screenreader. */
	.himml-header__contact .wp-block-button__link {
		width: 48px;
		padding: 0;
		gap: 0;
		font-size: 0;
		line-height: 0;
	}

	.himml-header__contact .wp-block-button__link::before {
		width: 20px;
		height: 20px;
	}
}

/* Handy-Menü (unter 1040 px): Logo links, Telefon und Menü-Button rechts bündig zum Rand.
 * Der Kopf liegt oben wie gewohnt im Seitenfluss. view.js setzt beim Scrollen .himml-is-fixed
 * (kompakte Nachtblau-Leiste) und beim Runterscrollen zusätzlich .himml-is-hidden. */
@media (max-width: 1039px) {
	.himml-header .himml-header__bar {
		justify-content: flex-start;
		gap: 8px;
		transition: min-height .35s var(--himml-ease);
	}

	.himml-header .himml-logo {
		margin-right: auto;
	}

	.himml-header .himml-logo img {
		transition: height .35s var(--himml-ease);
	}

	.himml-header__contact {
		order: 1;
	}

	.himml-header__bar > .wp-block-navigation {
		order: 2;
		flex: none;
	}

	/* Telefon und Menü als gleich hohe Glas-Buttons mit 48 px Tippfläche (ältere Zielgruppe).
	 * Unter 760 px sind beide Kreise, darüber steht die Nummer als Pille neben dem Menü-Kreis. */
	.himml-header .himml-header__contact .wp-block-button .wp-block-button__link,
	.himml-header .wp-block-navigation__responsive-container-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		height: 48px;
		border: 1px solid rgba(255, 255, 255, .28);
		border-radius: var(--wp--preset--border-radius--pill);
		background: rgba(255, 255, 255, .1);
		color: #fff;
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		transition: background-color .2s, border-color .2s;
	}

	/* Der Gruppenstil „Glas“ (core-group.css) greift auch am Button-Wrapper und zeichnet einen zweiten Ring. */
	.himml-header .himml-header__contact .wp-block-button.is-style-glass {
		border: 0;
		background: none;
	}

	.himml-header .wp-block-navigation__responsive-container-open {
		width: 48px;
		padding: 0;
	}

	.himml-header .himml-header__contact .wp-block-button .wp-block-button__link:hover,
	.himml-header .wp-block-navigation__responsive-container-open:hover {
		border-color: rgba(255, 255, 255, .45);
		background: rgba(255, 255, 255, .16);
	}

	/* Icon „menu“ (drei Striche, im Editor gesetzt): Striche gut 19 px breit wie das Telefon-Icon im Verhältnis. */
	.himml-header .wp-block-navigation__responsive-container-open svg {
		width: 32px;
		height: 32px;
	}

	.himml-site-header::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: color-mix(in srgb, var(--wp--preset--color--night) 94%, transparent);
		box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .7);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		opacity: 0;
		pointer-events: none;
		transition: opacity .35s var(--himml-ease);
	}

	/* Kein transform im sichtbaren Zustand: sonst hängt das Vollbild-Menü (position: fixed) am Kopf. */
	.himml-site-header.himml-is-fixed {
		position: fixed;
		z-index: 50;
		transition: transform .35s var(--himml-ease);
	}

	.himml-site-header.himml-is-fixed::before {
		opacity: 1;
	}

	.himml-site-header.himml-is-fixed .himml-header__bar {
		min-height: 68px;
	}

	.himml-site-header.himml-is-fixed .himml-logo img {
		height: 46px;
	}

	/* Kompakte Leiste: Der Link liegt sonst als Textzeile im Logo-Rahmen, darunter
	 * bleibt Unterlänge frei und das Logo sitzt knapp 5 px zu hoch. Die Grafik hat
	 * links knapp 3 px Leerraum; 4 px nach links bringt das Zeichen optisch an den Rand. */
	.himml-site-header.himml-is-fixed .himml-logo a {
		display: block;
	}

	.himml-header .himml-logo {
		transition: transform .35s var(--himml-ease);
	}

	.himml-site-header.himml-is-fixed .himml-logo {
		transform: translateX(-4px);
	}

	.himml-site-header.himml-is-hidden {
		transform: translateY(calc(-100% - 24px));
	}

	.himml-site-header.himml-is-instant,
	.himml-site-header.himml-is-instant::before,
	.himml-site-header.himml-is-instant * {
		transition: none !important;
	}

	.admin-bar .himml-site-header.himml-is-fixed {
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}

/* Unter 600 px scrollt die Admin-Leiste mit weg. */
@media (max-width: 600px) {
	.admin-bar .himml-site-header.himml-is-fixed {
		top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.himml-site-header,
	.himml-site-header::before,
	.himml-site-header * {
		transition: none !important;
	}
}

/* Platz für den überlagernden Kopf. */
.has-header-offset {
	padding-top: calc(var(--himml-header-height) + clamp(24px, 3vw, 48px)) !important;
}

/* Dunkler Seitenanfang: Verläufe, Zeichen, feines Korn. */
.himml-sky {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.himml-sky::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		var(--himml-rose-dark),
		radial-gradient(1200px 600px at 75% -10%, rgba(29, 91, 209, .55), transparent 60%),
		radial-gradient(800px 500px at 10% 110%, rgba(14, 65, 148, .5), transparent 60%);
}

.himml-sky::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .35;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

/* Seitenköpfe der Unterseiten: Titel bündig mit den Brotkrumen (breite Spalte). */
.himml-sky.has-header-offset > :not(.alignfull):not(.alignwide):not(.himml-hero) {
	max-width: var(--wp--style--global--wide-size) !important;
}

.himml-sky .wp-block-breadcrumbs {
	color: var(--wp--preset--color--on-night-muted);
}

.himml-sky .wp-block-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.himml-sky .wp-block-breadcrumbs a:hover {
	color: #fff;
}

/* Aktuelle Seite (letztes Glied) nur für Screenreader: Sie steht direkt darunter
 * als Überschrift, und lange Beitragstitel ließen die Leiste vor allem auf dem
 * Handy über mehrere Zeilen laufen. Das Trennzeichen davor fällt mit weg. Die
 * strukturierten Daten (Yoast BreadcrumbList) enthalten die Seite weiterhin. */
.wp-block-breadcrumbs li:has(> [aria-current="page"]) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wp-block-breadcrumbs li:has(+ li > [aria-current="page"])::after {
	content: none;
}

/* Hero der Startseite. */
.himml-hero.himml-hero > * + * {
	margin-block-start: 26px;
}

.himml-hero__title {
	font-weight: 100;
	letter-spacing: -.015em;
}

.himml-hero__title strong {
	display: block;
	margin-bottom: .12em;
	color: #fff;
	font-weight: 700;
	letter-spacing: -.02em;
}

.himml-hero__title strong + br {
	display: none;
}

@media (max-width: 560px) {
	.himml-hero__title br {
		display: none;
	}
}

.himml-hero .is-style-lead {
	max-width: 54ch;
	color: #c5d0e6;
}

.himml-trust {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px 26px;
}

@media (min-width: 1100px) {
	.himml-trust {
		flex-direction: row;
	}
}

.himml-hero .wp-block-buttons {
	gap: 12px;
}

.himml-hero .wp-block-button:not([class*="is-style-"]) .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--ink);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}

.himml-hero .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover {
	background: var(--wp--preset--color--grey-mid);
}

/* Hero mit Bild (Startseite): Text links, Bild rechts. Das Bild bekommt etwas
 * mehr Breite (56 %), der Text ist kompakt: kleinerer Titel, engere Abstände,
 * Merkmale nebeneinander. Unter 1100 px wäre die Textspalte zu schmal, dann
 * steht das Bild über dem Text. */
.himml-hero-split.himml-hero-split {
	gap: clamp(28px, 4vw, 72px);
	margin-block-start: 0;
}

.himml-hero-split .himml-hero.himml-hero > * + * {
	margin-block-start: 18px;
}

.himml-hero-split .himml-hero__title {
	font-size: clamp(32px, .8rem + 1.8vw, 44px);
	line-height: 1.1;
}

.himml-hero-split .himml-hero__title br {
	display: none;
}

.himml-hero-split .himml-hero .is-style-lead {
	font-size: clamp(17px, .85rem + .3vw, 19px) !important;
	line-height: 1.6;
}

.himml-hero-split .himml-trust {
	flex-direction: row;
	gap: 10px 22px;
}

.himml-hero__media.himml-hero__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--x-large);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}

.himml-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1500 / 844;
	object-fit: cover;
}

@media (min-width: 1100px) {
	.himml-hero-split > .wp-block-column:first-child {
		flex: 0 1 44% !important;
	}

	.himml-hero-split > .wp-block-column:last-child {
		flex: 1 1 56% !important;
	}
}

@media (max-width: 1099px) {
	.himml-hero-split.himml-hero-split {
		flex-wrap: wrap !important;
	}

	.himml-hero-split > .wp-block-column {
		flex-basis: 100% !important;
	}

	.himml-hero-split > .wp-block-column:last-child {
		order: -1;
		max-width: 760px;
	}
}

.himml-hero__avail.is-style-status {
	display: flex;
	align-self: stretch;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 17px;
}

/* 4. Himml-Zeichen ----------------------------------------------------- */

/* Fixiert hinter der Seite: scheint auf offenen weißen Flächen durch. */
body:not(.editor-styles-wrapper)::before {
	content: "";
	position: fixed;
	z-index: -1;
	pointer-events: none;
	right: -10vw;
	top: 50%;
	width: min(62vw, 820px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	opacity: .055;
	background: #30343b;
	-webkit-mask: var(--himml-rose-line) center / contain no-repeat;
	mask: var(--himml-rose-line) center / contain no-repeat;
}

@media (max-width: 760px) {
	body:not(.editor-styles-wrapper)::before {
		width: 105vw;
		right: -35vw;
		opacity: .045;
	}
}

/* Dunkle Sektionen mit dem Zeichen als ruhiger Lage. */
.has-rose {
	position: relative;
	isolation: isolate;
}

.has-rose::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--himml-rose-dark);
}

@media print {
	body::before,
	.has-rose::before,
	.himml-sky::before {
		display: none;
	}
}

/* 5. Sektionen --------------------------------------------------------- */

/* Kopf einer Sektion: Titel links, Einleitung rechts. */
.himml-sec-head {
	gap: 32px;
	margin-bottom: 40px;
}

.himml-sec-head h2,
.himml-sec-head .himml-sec-title {
	max-width: 16ch;
}

/* Abschnittstitel ohne Überschriften-Rolle (Weiterlesen-Köpfe, Kontaktband im Fuß,
   Einstiege, die die H1 wiederholen): sieht aus wie eine H2, zählt für Suchmaschinen
   aber nicht als Unterthema. Werte wie styles.elements.heading in theme.json. */
.himml-sec-title {
	color: var(--wp--preset--color--ink);
	font-weight: 300;
	letter-spacing: -0.015em;
	line-height: 1.08;
	text-wrap: balance;
}

/* In dunklen Sektionen wie deren Überschriften (styles/sections/*.json: heading = base).
   Sonst greifen Absatzregeln wie .himml-cta p und die Schrift wird grau. */
.is-style-section-stone .himml-sec-title,
.is-style-section-night .himml-sec-title {
	color: var(--wp--preset--color--base);
}

/* Außerhalb von Flow-Layouts (z. B. Einstieg als Medien-Text) gelten die Browser-Abstände:
   h2 0,83em statt p 1em – angleichen, damit der Absatz genau wie die H2 sitzt. */
.wp-block-media-text__content > .himml-sec-title {
	margin-block-end: 0.83em;
}

.himml-sec-head > .wp-block-group > * + * {
	margin-block-start: 14px;
}

.himml-sec-head .is-style-lead {
	max-width: 44ch;
}

/* Todesfall: weiße Karte über der Hero-Kante. */
.wp-block-post-content > .himml-emergency,
main > .himml-emergency,
.himml-emergency {
	position: relative;
	z-index: 2;
	margin-block-start: -64px;
}

/* Nur direkt unter dem dunklen Hero überlappen; auf Inhaltsseiten (nach dem Einstieg) normal. */
:not(.himml-sky) + .himml-emergency.himml-emergency {
	margin-block-start: 0;
}

.himml-emergency__panel {
	display: grid;
	grid-template-columns: .9fr 1.6fr;
	grid-template-areas:
		"intro panels"
		"tabs panels"
		"foot foot";
	grid-template-rows: auto 1fr auto;
	column-gap: clamp(24px, 4vw, 56px);
}

.himml-emergency__panel > * {
	margin: 0 !important;
}

.himml-emergency__intro {
	grid-area: intro;
}

.himml-emergency__intro > * + * {
	margin-block-start: 14px;
}

.himml-emergency__intro .is-style-lead {
	margin-block-start: 16px;
}

.himml-steps {
	display: contents;
}

.himml-steps .wp-block-tab-list {
	grid-area: tabs;
	align-self: start;
	margin-top: 22px;
}

.himml-steps .wp-block-tab-panels {
	grid-area: panels;
}

.himml-steps .wp-block-tab-panel {
	gap: 14px;
	counter-reset: step;
}

/* Wie im Entwurf: Spalten dürfen mit dem Inhalt wachsen (Core erzeugt minmax(0, 1fr)). */
@media (min-width: 901px) {
	.himml-steps .wp-block-tab-panel:has(> :nth-child(3)) {
		grid-template-columns: repeat(3, 1fr) !important;
	}

	.himml-steps .wp-block-tab-panel:not(:has(> :nth-child(3))) {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

.himml-emergency__foot {
	grid-area: foot;
	margin-top: clamp(24px, 4vw, 40px) !important;
	gap: 16px;
}

@media (max-width: 900px) {
	.himml-emergency__panel {
		grid-template-columns: 1fr;
		grid-template-areas: "intro" "tabs" "panels" "foot";
		grid-template-rows: auto;
	}

	.himml-steps .wp-block-tab-panels {
		margin-top: 20px;
	}

	.himml-steps .wp-block-tab-panel {
		grid-template-columns: 1fr !important;
	}
}

/* Leistungen. */
.himml-tiles {
	gap: 18px;
}

@media (max-width: 1000px) {
	.himml-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 480px) {
	.himml-tiles {
		grid-template-columns: 1fr !important;
	}
}

/* Vorsorge: dunkelgraue Fläche wie das Kontaktband, rechts weiße Box.
 * Die Farben stehen hier und nicht nur am Sektionsstil, damit auch Seiten, deren
 * Inhalt noch den alten Stil „Hellgrau“ trägt, dunkelgrau werden. */
.himml-vorsorge {
	--himml-muted: #d9dce1;
	--himml-focus: var(--wp--preset--color--sky);
	display: grid;
	grid-template-columns: 1.25fr .75fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	background-color: var(--wp--preset--color--stone) !important;
	color: #d9dce1;
}

.himml-vorsorge__copy :is(h2, li) {
	color: var(--wp--preset--color--base);
}

.himml-vorsorge__copy .has-muted-color {
	color: var(--himml-muted) !important;
}

.himml-vorsorge__copy .is-style-kicker {
	color: var(--wp--preset--color--pale);
}

.himml-vorsorge__copy .is-style-check li::before {
	background: var(--wp--preset--color--pale);
}

.himml-vorsorge__side {
	--himml-focus: var(--wp--preset--color--blue);
}

.himml-vorsorge > * {
	margin: 0 !important;
}

.himml-vorsorge__copy > * + * {
	margin-block-start: 12px;
}

.himml-vorsorge__copy h2 {
	margin-block-start: 14px;
}

.himml-vorsorge__copy > p:not(.is-style-kicker) {
	max-width: 52ch;
}

.himml-vorsorge__side {
	text-align: center;
}

.himml-vorsorge__logo {
	margin: 0;
}

.himml-vorsorge__logo img {
	height: clamp(72px, 7vw, 96px);
	width: auto;
	aspect-ratio: 450.78 / 156.98;
	border-radius: 0;
}

@media (max-width: 900px) {
	.himml-vorsorge {
		grid-template-columns: 1fr;
	}
}

/* Handy: Der Start-Button nutzt die ganze Breite der weißen Box, sonst bricht
 * „Online-Vorsorgeberater starten“ bei 16,5px in drei Zeilen um (vorher ragte
 * er mit 14px über die Box hinaus). */
@media (max-width: 600px) {
	.himml-vorsorge__side {
		align-items: stretch !important;
		padding-inline: 16px !important;
	}

	.himml-vorsorge__side .wp-block-buttons,
	.himml-vorsorge__side .wp-block-button {
		width: 100%;
	}

	.himml-vorsorge__side .wp-block-button__link {
		box-sizing: border-box;
		width: 100%;
		justify-content: center;
		padding-inline: 20px;
	}
}

/* Team. */
.himml-quotebox {
	margin-block-start: 44px !important;
	gap: 24px;
	padding: 28px 32px;
}

.himml-quotebox__portrait {
	flex: none;
	margin: 0;
}

.himml-quotebox__portrait img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.himml-quotebox__quote {
	color: #fff;
	font-style: italic;
	font-size: clamp(20px, 1.7vw, 25px);
	line-height: 1.4;
	letter-spacing: -.01em;
}

.himml-quotebox .has-small-font-size {
	margin-block-start: 8px;
}

.himml-quotebox a {
	font-weight: 500;
	text-underline-offset: 4px;
}

@media (max-width: 620px) {
	.himml-quotebox {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		gap: 16px;
	}
}

/* Bewertungen. */
.himml-voices__title {
	max-width: 17ch;
}

.himml-voices .is-style-lead {
	margin-block-start: 22px;
	color: var(--wp--preset--color--body);
}

.himml-more-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--ink);
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	text-underline-offset: 5px;
}

.himml-more-link a:hover {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
}

/* Spalten erst unter 900 px untereinander (Core: 782 px). */
@media (max-width: 900px) {
	.himml-voices,
	.himml-faq,
	.himml-region-history,
	#standorte .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.himml-voices > .wp-block-column,
	.himml-faq > .wp-block-column,
	.himml-region-history > .wp-block-column,
	#standorte .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Hauptsitz und Region. */
.himml-hq {
	overflow: hidden;
}

.himml-hq__caption > * + * {
	margin-block-start: 0;
}

.himml-hq__label {
	margin-bottom: 8px;
	color: #cfdcf6;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.himml-hq h3 {
	margin-bottom: 10px;
	font-size: 25px;
}

.himml-hq__hours {
	margin-top: 5px !important;
	color: #cfdcf6;
	font-size: 15px;
}

.himml-hq__actions {
	margin-top: 18px !important;
	gap: 12px;
}

.himml-hq__actions .wp-block-button__link {
	min-height: 44px;
	padding: 10px 16px;
	border-color: rgba(255, 255, 255, .35);
	background: transparent;
	font-size: 16.5px;
	backdrop-filter: none;
}

.himml-hq__actions .wp-block-button__link:hover {
	border-color: rgba(255, 255, 255, .65);
	background: rgba(255, 255, 255, .07);
}

.himml-region-copy h3 {
	max-width: 19ch;
}

.himml-region-copy > p {
	max-width: 48ch;
}

/* Geschichte (Startseite) und Einstieg (Inhaltsseiten): Medien und Text auf grauer Fläche. */
:is(.himml-history, .himml-intro) {
	overflow: hidden;
}

:is(.himml-history, .himml-intro) .wp-block-media-text__media {
	min-height: 380px;
}

:is(.himml-history, .himml-intro) .wp-block-media-text__content {
	padding: clamp(32px, 4vw, 64px);
}

:is(.himml-history, .himml-intro) .wp-block-media-text__content > * + * {
	margin-block-start: 16px;
}

@media (max-width: 900px) {
	:is(.himml-history, .himml-intro).wp-block-media-text {
		grid-template-columns: 100% !important;
	}

	:is(.himml-history, .himml-intro) .wp-block-media-text__media {
		grid-row: 1;
	}

	:is(.himml-history, .himml-intro) .wp-block-media-text__content {
		grid-row: 2;
	}
}

/* Trauerfeiern. */
.himml-obits .himml-sec-head {
	margin-bottom: 36px;
}

.himml-obits .is-style-lead {
	color: #d6dff0;
}

.himml-obits__footer {
	gap: 24px;
}

.himml-obits__footer p {
	color: #d6dff0;
	font-size: 16.5px;
}

.himml-obits__footer strong {
	display: inline-block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 18.5px;
}

@media (max-width: 1000px) {
	.himml-obit-grid {
		gap: 16px !important;
	}
}

@media (max-width: 760px) {
	.himml-obit-grid,
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 761px) and (max-width: 1000px) {
	.wp-block-post-template.is-layout-grid:not(.himml-obit-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 560px) {
	.himml-region-history .is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Archive: Abstand unter dem dunklen Seitenkopf. */
.himml-archive-query {
	margin-top: var(--wp--preset--spacing--60) !important;
}

.himml-archive-query .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
}

/* Das Kontaktband im Fuß ragt auf breiten Schirmen um die halbe Bandhöhe
 * (gut 140 px) in den Hauptbereich; dessen Abstand 70 (höchstens 140 px)
 * reicht unter Seitenzahlen und Beitragsraster nicht, beides wurde angeschnitten. */
@media (min-width: 901px) {
	.himml-archive-query,
	main > :last-child > .himml-more:last-child {
		padding-bottom: 64px;
	}
}

/* FAQ: linke Spalte bleibt stehen. */
.himml-faq__side {
	position: sticky;
	top: 32px;
	align-self: flex-start !important;
}

.himml-faq__side > * + * {
	margin-block-start: 18px;
}

.himml-faq__side h2 {
	margin-block-start: 14px;
}

.himml-faq__side .wp-block-buttons {
	margin-block-start: 22px;
}

@media (max-width: 900px) {
	.himml-faq__side {
		position: static;
	}
}

/* 5b. Inhaltsseiten ---------------------------------------------------- */

/* Einleitung im Seitenkopf: Auszug der Seite (himml/page-hero). */
.himml-page-lead {
	margin-block-start: 20px !important;
}

.himml-page-lead p {
	max-width: 58ch;
	margin: 0;
	color: var(--wp--preset--color--on-night);
	line-height: 1.5;
}

/* Beitragsseite (templates/index.html): Absatz mit Bindung an den Auszug der Seite;
 * ohne Auszug bleibt er leer und die Gruppe verschwindet. */
.himml-page-lead:has(> p:empty) {
	display: none;
}

/* Fließtext auf Inhaltsseiten: mehr Luft vor Zwischentiteln. Gilt direkt im
 * Seiteninhalt und in Gruppen mit der Klasse himml-prose (Muster „Textabschnitt“). */
:is(.wp-block-post-content, .himml-prose) > :is(h2, h3, h4):not(:first-child) {
	margin-block-start: 2em;
}

:is(.wp-block-post-content, .himml-prose) > :is(h2, h3, h4) + * {
	margin-block-start: .75em;
}

:is(.wp-block-post-content, .himml-prose) > .is-style-kicker + :is(h2, h3) {
	margin-block-start: 14px;
}

.himml-prose > .is-style-lead {
	margin-block-start: 22px;
}

.himml-prose > .wp-block-image {
	margin-block: var(--wp--preset--spacing--50);
}

.himml-prose > .wp-block-image figcaption {
	margin-top: 10px;
}

/* Team: Profile untereinander, getrennt durch Linien. */
.himml-profiles > * {
	margin-block: 0 !important;
}

.himml-profiles > * + * {
	margin-block-start: clamp(32px, 4vw, 48px) !important;
	padding-block-start: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--wp--preset--color--line);
}

[class*="is-style-section-sand"] .himml-profiles > * + * {
	border-top-color: var(--wp--preset--color--grey-mid);
}

/* Sprungmarken: Ziele unter dem Kopf nicht verdecken. */
:where(.wp-block-post-content) [id] {
	scroll-margin-top: 24px;
}

/* Weiterlesen: Link-Karten im Raster, darüber eine Linie. */
.himml-more {
	padding-top: clamp(32px, 4vw, 56px);
	border-top: 1px solid var(--wp--preset--color--line);
}

.himml-more .himml-sec-head {
	margin-bottom: 32px;
}

/* 5c. Foto-Treatment ---------------------------------------------------- */

/* Fotos stehen dynamikreduziert (weniger Sättigung und Kontrast) mit einem
 * Blauverlauf von unten, wie die Leistungskacheln der Startseite. Verlinkte
 * Fotos (Kacheln, Link-Karten) werden beim Überfahren farbig. Logos, Porträts,
 * Produktbilder und Galerien bleiben unberührt. Bilder mit „logo“ im Dateinamen
 * sind ausgenommen.
 *
 * Das Beitragsbild im Kopf eines Blogbeitrags bleibt im Original. In den Karten
 * der Beitragslisten (Beitragsbild-Block) tönt es wie jedes verlinkte Foto
 * (Kundenwunsch 16.11.2026). Der Titel des Vorsorge-Leitfadens („MAG06“ im
 * Dateinamen) ist ein Produktbild: ohne Effekt und ganz sichtbar (siehe unten).
 *
 * Redakteure steuern das je Block in der Seitenleiste („Foto-Effekt“,
 * assets/js/editor-photo-effect.js): `himml-no-treatment` schaltet ihn aus,
 * `himml-treatment` schaltet ihn an Bild, Medien und Text, Cover und
 * Beitragsbild auch dort ein, wo das Theme ihn nicht von selbst setzt. */
:root {
	--himml-photo-filter: saturate(.4) contrast(.92) brightness(1.03);
	--himml-photo-shade: linear-gradient(0deg, rgba(7, 22, 51, .62) 0%, rgba(14, 65, 148, .26) 38%, rgba(14, 65, 148, 0) 70%);
}

.is-style-tile:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) .wp-block-cover__image-background,
.is-style-link-card:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) :is(.wp-block-image, .wp-block-post-featured-image):not(.himml-no-treatment) img,
:is(.himml-intro, .himml-history, .is-style-chapter):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) .wp-block-media-text__media img,
body:not(.single-post) .himml-page-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) img,
.himml-prose > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) img,
.wp-block-cover.himml-treatment .wp-block-cover__image-background,
:is(.wp-block-image, .wp-block-post-featured-image).himml-treatment img,
.wp-block-media-text.himml-treatment .wp-block-media-text__media img {
	filter: var(--himml-photo-filter);
	transition: filter .6s var(--himml-ease), transform .6s var(--himml-ease);
}

/* Hover-Selektoren spiegeln die Grundregeln, sonst gewinnt deren höhere Spezifität. */
.is-style-tile:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])):is(:hover, :focus-within) .wp-block-cover__image-background,
.is-style-link-card:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])):is(:hover, :focus-within) :is(.wp-block-image, .wp-block-post-featured-image):not(.himml-no-treatment) img {
	filter: none;
}

.is-style-link-card:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])):is(:hover, :focus-within) :is(.wp-block-image, .wp-block-post-featured-image):not(.himml-no-treatment)::after {
	opacity: 0;
}

/* Verlauf als eigene Lage über dem Foto; die Kachel bringt ihren Verlauf selbst mit. */
.is-style-link-card:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) :is(.wp-block-image, .wp-block-post-featured-image):not(.himml-no-treatment),
:is(.himml-intro, .himml-history, .is-style-chapter):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) .wp-block-media-text__media,
body:not(.single-post) .himml-page-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])),
.himml-prose > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])),
:is(.wp-block-image, .wp-block-post-featured-image).himml-treatment,
.wp-block-media-text.himml-treatment .wp-block-media-text__media {
	position: relative;
}

.is-style-link-card:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) :is(.wp-block-image, .wp-block-post-featured-image):not(.himml-no-treatment)::after,
:is(.himml-intro, .himml-history, .is-style-chapter):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) .wp-block-media-text__media::after,
body:not(.single-post) .himml-page-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i]))::after,
.himml-prose > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i]))::after,
:is(.wp-block-image, .wp-block-post-featured-image).himml-treatment::after,
.wp-block-media-text.himml-treatment .wp-block-media-text__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--himml-photo-shade);
	pointer-events: none;
	transition: opacity .6s var(--himml-ease);
}

/* Beitragsbild: Radius liegt am Bild, der Verlauf braucht ihn an der Fläche. */
body:not(.single-post) .himml-page-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--x-large);
}

/* In der Bildunterschrift keinen Verlauf. */
:is(.himml-prose > .wp-block-image, .wp-block-image.himml-treatment):has(figcaption)::after {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.is-style-tile:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) .wp-block-cover__image-background,
	.is-style-link-card:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) :is(.wp-block-image, .wp-block-post-featured-image) img {
		transition: none;
	}
}

/* Fotos auf Seiten, die die Regeln oben nicht treffen (Kundenwunsch 18.11.2026:
 * „überall auf der ersten Ebene, einheitlich“): Gründe-Karten, Bilder in
 * übernommenen Inhalten (Spalten, Medien und Text, Galerien) und die Cover des
 * Online-Vorsorgeberaters. Nur auf Seiten (body.page): Beiträge (Ratgeber,
 * Neuigkeiten) zeigen ihre Fotos im Original, in den Beitragslisten tönen die
 * Karten wie oben. Ausnahmen wie oben (Aus-Schalter, „logo“, Leitfaden-Titel). */
.himml-reason:not(.himml-no-treatment) > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) img,
body.page .himml-prose :is(.wp-block-media-text, .wp-block-column, .wp-block-gallery):not(.himml-no-treatment) > :is(.wp-block-media-text__media, .wp-block-image):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) img {
	filter: var(--himml-photo-filter);
	transition: filter .6s var(--himml-ease);
}

.himml-reason:not(.himml-no-treatment) > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])),
body.page .himml-prose :is(.wp-block-media-text, .wp-block-column, .wp-block-gallery):not(.himml-no-treatment) > :is(.wp-block-media-text__media, .wp-block-image):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) {
	position: relative;
}

/* Der Radius liegt in übernommenen Inhalten am Bild; der Verlauf braucht ihn an der Fläche. */
body.page .himml-prose :is(.wp-block-media-text, .wp-block-column, .wp-block-gallery):not(.himml-no-treatment) > :is(.wp-block-media-text__media, .wp-block-image):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])) {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--medium);
}

.himml-reason:not(.himml-no-treatment) > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i]))::after,
body.page .himml-prose :is(.wp-block-media-text, .wp-block-column, .wp-block-gallery):not(.himml-no-treatment) > :is(.wp-block-media-text__media, .wp-block-image):not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i]))::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--himml-photo-shade);
	pointer-events: none;
	transition: opacity .6s var(--himml-ease);
}

/* Galeriebilder öffnen die Lightbox, sind also verlinkt: beim Überfahren farbig. */
body.page .himml-prose .wp-block-gallery:not(.himml-no-treatment) > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])):is(:hover, :focus-within) img {
	filter: none;
}

body.page .himml-prose .wp-block-gallery:not(.himml-no-treatment) > .wp-block-image:not(.himml-no-treatment, :has(img[src*="logo" i], img[src*="MAG06" i])):is(:hover, :focus-within)::after {
	opacity: 0;
}

/* Cover: Verlauf zwischen Foto und Inhalt (Text, Buttons bleiben unberührt).
 * Gilt für „Foto-Effekt: An“ und die beiden Fotos des Online-Vorsorgeberaters.
 * Das Video selbst (Player, z-index 3) liegt darüber und bleibt ungetönt. */
:is(.wp-block-cover.himml-treatment, .himml-video-cover, .himml-ovb-features__photo):not(.himml-no-treatment, .is-style-tile) .wp-block-cover__image-background {
	filter: var(--himml-photo-filter);
}

:is(.wp-block-cover.himml-treatment, .himml-video-cover, .himml-ovb-features__photo):not(.himml-no-treatment, .is-style-tile)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--himml-photo-shade);
	pointer-events: none;
}

:is(.wp-block-cover.himml-treatment, .himml-video-cover, .himml-ovb-features__photo):not(.himml-no-treatment, .is-style-tile) > .wp-block-cover__inner-container {
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.himml-reason > .wp-block-image img,
	body.page .himml-prose .wp-block-gallery > .wp-block-image img {
		transition: none;
	}
}

/* Titel des Vorsorge-Leitfadens (Produktbild auf Weiß, hochkant): in Karten und
 * Medien-und-Text ganz zeigen statt auf das Querformat zuzuschneiden.
 * !important, weil der Bild-Block object-fit inline setzt (Skalierung „cover“). */
:is(.wp-block-image, .wp-block-media-text__media):has(img[src*="MAG06" i]) {
	background: var(--wp--preset--color--base);
}

:is(.wp-block-image, .wp-block-media-text__media) img[src*="MAG06" i] {
	object-fit: contain !important;
	padding: clamp(8px, 4%, 24px);
}

/* 6. Fußbereich -------------------------------------------------------- */
.himml-footer {
	color: var(--wp--preset--color--on-night-muted);
}

/* Kontaktband ragt zur Hälfte in die Sektion davor. */
.himml-cta {
	position: relative;
	z-index: 2;
	gap: 24px;
	transform: translateY(-50%);
	margin-bottom: clamp(-40px, -3vw, -16px) !important;
}

/* Auf schmalen Schirmen bricht das Band um und wird hoch: die halbe Höhe würde
 * den Schluss der Sektion davor verdecken. Dort nur ein fester Überstand. */
@media (max-width: 900px) {
	.himml-cta {
		transform: translateY(-40px);
		margin-bottom: -16px !important;
	}
}

.himml-cta p {
	color: #d9dce1;
}

.himml-cta .wp-block-buttons {
	gap: 12px;
}

.himml-footer__cols {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.himml-footer__cols > * {
	margin: 0 !important;
}

.himml-footer__cols .himml-logo {
	margin-bottom: 20px;
}

.himml-footer__cols h5 {
	margin-bottom: 16px;
	font-size: 14px;
	letter-spacing: .12em;
}

.himml-footer a:not(.wp-block-button__link) {
	color: #dbe3f2;
	text-decoration: none;
	transition: color .2s;
}

.himml-footer a:not(.wp-block-button__link):hover {
	color: #fff;
}

.himml-footer__legal {
	margin-top: 0 !important;
	gap: 12px;
}

/* „Nach oben“: #top springt laut HTML-Spezifikation an den Seitenanfang,
 * auch ohne Element mit dieser ID; weich über scroll-behavior. */
.himml-footer .himml-to-top a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.himml-to-top a::after {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: background-color .2s, border-color .2s, transform .2s var(--himml-ease);
}

.himml-to-top a:hover::after {
	border-color: #fff;
	background-color: rgba(255, 255, 255, .12);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.himml-to-top a::after {
		transition: none;
	}

	.himml-to-top a:hover::after {
		transform: none;
	}
}

@media (max-width: 900px) {
	.himml-footer__cols {
		grid-template-columns: 1fr 1fr;
	}
}


/* Tippflächen auf dem Handy: ältere Zielgruppe, mindestens 44 px hoch.
 * Links im Fließtext bleiben, wie sie sind. */
@media (max-width: 760px) {
	.himml-footer .wp-block-navigation.himml-footer__nav .wp-block-navigation__container {
		gap: 0;
	}

	.himml-footer .wp-block-navigation.himml-footer__nav .wp-block-navigation-item__content {
		display: block;
		padding-block: 9px;
	}

	.himml-footer .himml-to-top a {
		min-height: 44px;
	}

	/* Brotkrumen: größere Fläche ohne mehr Zeilenhöhe. */
	.wp-block-breadcrumbs a {
		display: inline-block;
		padding-block: 10px;
		margin-block: -10px;
	}

	.wp-block-query-pagination :is(a, .page-numbers) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-width: 44px;
		min-height: 44px;
	}
}

/* 7. Bewegung und Hilfsklassen ---------------------------------------- */

/* Reveal: nur wenn view.js läuft (html.himml-js), sonst sofort sichtbar. */
.himml-js .himml-reveal:not(.is-revealed) {
	opacity: 0;
	transform: translateY(20px);
}

.himml-js .himml-reveal {
	transition: opacity .7s ease, transform .7s var(--himml-ease);
}

@media (prefers-reduced-motion: reduce) {
	.himml-js .himml-reveal:not(.is-revealed) {
		opacity: 1;
		transform: none;
	}

	.himml-js .himml-reveal {
		transition: none;
	}
}

@media (max-width: 1180px) {
	.himml-hide-below-xl {
		display: none !important;
	}
}

@keyframes himml-pulse {
	0%, 100% {
		box-shadow: 0 0 0 3px rgba(74, 222, 128, .2);
	}

	50% {
		box-shadow: 0 0 0 7px rgba(74, 222, 128, .08);
	}
}

/* Übernommene Inhalte (Sektionen mit Klasse himml-legacy): Die Blöcke der alten
 * Seite bleiben unverändert und gültig, hier werden sie ans Design angeglichen. */
.himml-legacy h2 {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Lange URLs im Fließtext (Datenschutz) umbrechen statt seitlich zu scrollen. */
.himml-legacy :is(p, li) {
	overflow-wrap: break-word;
}

.himml-legacy .wp-block-button__link :is(.icon, .fa) {
	display: none;
}

.himml-legacy :is(.wp-block-gallery, .wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-columns, .wp-block-embed, .wp-block-file, .wp-block-accordion) {
	margin-block: var(--wp--preset--spacing--40);
}

.himml-legacy .wp-block-gallery.has-nested-images {
	gap: 12px;
}

.himml-legacy .wp-block-gallery img,
.himml-legacy .wp-block-video video,
.himml-legacy .wp-block-media-text__media img {
	border-radius: var(--wp--preset--border-radius--medium);
}

/* Bildunterschriften in Galerien liegen auf dem Bild. Die Schriftfarbe aus theme.json
 * (muted) war auf hellen Produktfotos (Decken, Kissen) nicht lesbar: weiße Schrift auf
 * nachtblauem Verlauf. */
.himml-legacy .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	padding: 28px 12px 10px;
	border-radius: 0 0 var(--wp--preset--border-radius--medium) var(--wp--preset--border-radius--medium);
	background: linear-gradient(0deg, rgba(7, 22, 51, .85) 0%, rgba(7, 22, 51, .55) 60%, rgba(7, 22, 51, 0) 100%);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* Produkt-Finder (Plugin urnen-finder) lädt seine Karten erst nach Sekunden von
 * himml-bestattungen.de und schob den Inhalt darunter weg. Solange er lädt, hält
 * er ungefähr die Höhe von zwei Kartenreihen frei. */
.wp-block-himmlbestattungen-urnen-finder:has(.urnen-finder-loading) {
	min-height: min(900px, 110vh);
}

.himml-legacy .wp-block-table table {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--small);
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	font-size: var(--wp--preset--font-size--small);
}

.himml-legacy .wp-block-table :is(td, th) {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	vertical-align: top;
}

.himml-legacy .wp-block-table tr:last-child > :is(td, th) {
	border-bottom: 0;
}

.himml-legacy .wp-block-table td:first-child {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

.himml-legacy iframe {
	max-width: 100%;
	border-radius: var(--wp--preset--border-radius--medium);
}

.himml-legacy .wp-block-audio audio {
	width: 100%;
}

/* Leitfaden: Die Infoclips stehen als einzelne Sektionen untereinander und
 * brauchen deutlich Luft, damit jeder Clip als eigener Abschnitt lesbar ist. */
.himml-legacy .snapwrapper > section + section {
	margin-block-start: var(--wp--preset--spacing--70);
}

/* Blätterbare PDF (Plugin DearPDF) in übernommenen Inhalten: Überschrift und Text
 * darüber zentriert, der Viewer selbst über die ganze Fensterbreite und fast die
 * ganze Fensterhöhe; schmal richtet sich die Höhe nach der Breite, weil das Plugin
 * Doppelseiten zeigt. Breite und Höhe setzt das Plugin inline, daher !important. */
.himml-legacy > h2:has(+ p + .df-element),
.himml-legacy > p:has(+ .df-element) {
	text-align: center;
}

.himml-legacy > .df-element {
	width: auto !important;
	max-width: none !important;
	height: min(88svh, 1000px, max(440px, 75vw)) !important;
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
	margin-inline: calc(var(--wp--style--root--padding-left) * -1) calc(var(--wp--style--root--padding-right) * -1) !important;
}

/* Hinweiskasten „Relevant: …“ (Wiederverwendbarer Block „relevant-link-block“ und
 * Kopien davon): Der Rahmen bekommt den Radius der Karten, und das alte
 * Font-Awesome-Icon (fa-bolt, die Schrift lädt das Theme nicht mehr) wird ein
 * Info-Icon aus dem Theme. */
.wp-block-group:has(> p > strong > .fa-bolt) {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--medium);
}

p > strong > .fa-bolt {
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	margin-inline-end: -.1em;
	background: var(--wp--preset--color--blue);
	vertical-align: -.28em;
	-webkit-mask: url("../icons/info.svg") center / contain no-repeat;
	mask: url("../icons/info.svg") center / contain no-repeat;
}

.himml-legacy .wp-block-media-text {
	gap: clamp(24px, 4vw, 56px);
}

.himml-legacy .wp-block-media-text__content {
	padding-inline: 0;
}

/* Video-Einbettungen: abgerundet wie Bilder (core/image). Die Klasse
 * himml-video setzt inc/blocks.php an jede Video-Einbettung, zusammen mit
 * einem festen Seitenverhältnis. isolation schneidet das iframe auch in
 * Safari sauber ab. */
.himml-video .wp-block-embed__wrapper {
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--wp--preset--border-radius--large);
	background: var(--wp--preset--color--grey);
}

/*
 * Borlabs-Platzhalter (YouTube/Vimeo) im Video: Borlabs entfernt den 16:9-Rahmen
 * und lässt den Text die Höhe bestimmen. Hier wieder 16:9 (wächst nur, wenn der
 * Inhalt nicht passt), Vorschaubild unter nachtblauem Verlauf, Text und Buttons
 * im Theme-Stil. Hohe Spezifität, weil Borlabs mit body/div/[data-…] arbeitet.
 */
.himml-video:has(.brlbs-cmpnt-content-blocker) .wp-block-embed__wrapper {
	background: var(--wp--preset--color--night);
}

/* Core hält das Seitenverhältnis mit einem ::before-Abstand (padding-top) und
 * legt das iframe absolut darüber. Der Borlabs-Platzhalter liegt aber im Fluss
 * und rutschte unter diese leere Fläche (dunkler Kasten, Platzhalter unten).
 * Solange er da ist, bringt er die Höhe selbst mit (16:9-Abstand unten). */
.himml-video.wp-has-aspect-ratio:has(.brlbs-cmpnt-content-blocker) .wp-block-embed__wrapper::before {
	content: none;
}

/* Sterbegeldrechner der IDEAL (HTML-Block auf /bestattungsvorsorge-kosten/,
 * Gruppe `himml-sterbegeld` aus inc/blocks.php). Das Formular im iframe ist
 * fest gebaut, gemessen am 18.11.2026: höchstens 868 px breit (Ladeschleier
 * beim Berechnen), Schritt 1 und 2 rund 580 px, Ergebnis 830 px hoch. Der
 * Rahmen bekommt genau diese Größe (plus Platz für eine Bildlaufleiste), dann
 * scrollt im Rahmen nichts seitlich und bis zum Ergebnis nichts nach unten.
 * Unter 960 px passt er nicht: dort nur die Karte mit Button (neuer Tab).
 * !important, weil die Angaben inline stehen. */
iframe[src*="ideal-versicherung.de"] {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 580px;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--wp--preset--border-radius--large) !important;
	background: var(--wp--preset--color--base);
}

/* Unabhängig von der Ausrichtung der Gruppe im Editor (normal oder breit). */
.himml-sterbegeld {
	max-width: min(892px, 100%) !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

.himml-sterbegeld iframe[src*="ideal-versicherung.de"] {
	width: 892px !important;
	height: 860px;
	margin-inline: auto !important;
}

.himml-sterbegeld .brlbs-cmpnt-content-blocker {
	max-width: 892px;
	margin-inline: auto;
}

.himml-sterbegeld__mobil {
	display: none;
}

@media (max-width: 959px) {
	.himml-sterbegeld > :not(.himml-sterbegeld__mobil) {
		display: none !important;
	}

	.himml-sterbegeld__mobil {
		display: block;
		max-width: var(--wp--style--global--content-size);
		margin-inline: auto !important;
		padding: clamp(22px, 5vw, 32px);
		border-radius: var(--wp--preset--border-radius--large);
		background: var(--wp--preset--color--base);
	}

	.himml-sterbegeld__mobil p {
		margin: 0 0 var(--wp--preset--spacing--30);
	}
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] {
	height: auto;
	font-family: inherit;
	line-height: 1.5;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-preset-c {
	height: auto;
	border-radius: 0;
	background: var(--wp--preset--color--night);
}

/* 16:9 als Mindesthöhe über ein Abstandselement statt aspect-ratio: der Rahmen
   schneidet (overflow: hidden), diese Ebene muss wachsen können, wenn Text und
   Buttons im schmalen Video nicht hineinpassen. */
body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-preset-c::before {
	content: "";
	flex: none;
	width: 0;
	padding-top: 56.25%;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-play-button {
	display: none;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-thumbnail {
	border-radius: 0;
	filter: saturate(0.8);
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-preset-c .brlbs-cmpnt-cb-main {
	margin: 0 !important;
	height: auto;
	overflow: visible;
	justify-content: center;
	gap: 14px;
	padding: clamp(20px, 5%, 48px);
	border-radius: 0;
	background: linear-gradient(180deg, rgba(7, 22, 51, 0.55) 0%, rgba(7, 22, 51, 0.88) 100%);
	color: var(--wp--preset--color--on-night);
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 46ch;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-description {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-description strong {
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] a.brlbs-cmpnt-cb-provider-toggle {
	color: var(--wp--preset--color--pale);
	font-size: var(--wp--preset--font-size--x-small);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-preset-c .brlbs-cmpnt-cb-buttons {
	width: auto;
	margin: 4px 0 0;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-buttons a.brlbs-cmpnt-cb-btn {
	width: auto;
	padding: 11px 22px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--wp--preset--border-radius--pill);
	background: transparent;
	color: var(--wp--preset--color--base);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

/* „Inhalt entsperren“ ist der Hauptweg: weißer Knopf. */
body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-buttons a.brlbs-cmpnt-cb-btn[data-borlabs-cookie-unblock] {
	border-color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--night);
}

body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-buttons a.brlbs-cmpnt-cb-btn:hover,
body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-buttons a.brlbs-cmpnt-cb-btn:focus-visible {
	border-color: var(--wp--preset--color--pale);
	background: var(--wp--preset--color--pale);
	color: var(--wp--preset--color--night);
}

/* Schmale Videos (Handy, halbe Spalte): Buttons untereinander, knapper Abstand. */
@container brlbsCmpntContentBlocker (max-width: 520px) {
	body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-preset-c .brlbs-cmpnt-cb-main {
		gap: 10px;
		padding: 18px;
		background: rgba(7, 22, 51, 0.86);
	}

	body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-preset-c .brlbs-cmpnt-cb-buttons {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 8px;
	}

	body .himml-video div.brlbs-cmpnt-container.brlbs-cmpnt-content-blocker[data-borlabs-cookie-content-blocker-id] .brlbs-cmpnt-cb-buttons a.brlbs-cmpnt-cb-btn {
		padding: 9px 16px;
		font-size: 14px;
	}
}

/* Eingebettete Fremdinhalte mit fester Breite (z. B. Sterbegeld-Rechner auf
   /bestattungsvorsorge-kosten/) dürfen in Lesesektionen nicht überstehen. */
.himml-legacy iframe {
	width: 100% !important;
}

/* Radius „2-xl“ aus dem alten Theme (steht noch in übernommenen Inhalten wie den
 * Team-Karten im Ratgeber): hier als Kartenradius, sonst blieben die Ecken eckig. */
:root {
	--wp--preset--border-radius--2-xl: var(--wp--preset--border-radius--large);
}

/* Team-Karten in übernommenen Beiträgen (Spalten mit grauen Gruppen, die mit einem
 * Bild beginnen): Inhaltsbreite statt breit, Bild bündig oben ohne graue Kante,
 * gleicher Radius für Karte und Bild. */
.himml-legacy .wp-block-columns.alignwide:has(> .wp-block-column > .wp-block-group.has-background > .wp-block-image:first-child) {
	max-width: var(--wp--style--global--content-size);
}

.himml-legacy .wp-block-column > .wp-block-group.has-background:has(> .wp-block-image:first-child) {
	height: 100%;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--large) !important;
}

.himml-legacy .wp-block-column > .wp-block-group.has-background > .wp-block-image:first-child {
	margin-block: 0 !important;
}

.himml-legacy .wp-block-column > .wp-block-group.has-background > .wp-block-image:first-child img {
	border-radius: 0;
}

.himml-legacy .wp-block-column > .wp-block-group.has-background:has(> .wp-block-image:first-child) h3 {
	margin-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--x-large);
}

/* Artikelserie (Wiederverwendbarer Block „artikelserie-blog“, Ausgabe aus
 * inc/authors.php): nummerierte Teile, der gelesene Teil markiert. */
:is(.himml-series, .himml-author-box),
:is(.himml-series, .himml-author-box) * {
	box-sizing: border-box;
}

.himml-series {
	margin-block: var(--wp--preset--spacing--60);
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--wp--preset--border-radius--x-large);
	background: var(--wp--preset--color--sand);
}

.himml-series__head .is-style-kicker {
	margin: 0 0 10px;
}

.himml-series__title {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
	text-wrap: balance;
}

.himml-series__progress {
	height: 4px;
	margin-top: 18px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--wp--preset--color--grey-mid);
}

.himml-series__progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--wp--preset--color--blue);
}

.himml-series__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.himml-series__item {
	margin: 0;
	line-height: 1.35;
}

.himml-series__link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	height: 100%;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: var(--wp--preset--border-radius--medium);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.himml-series__link:is(:hover, :focus-visible) {
	border-color: rgba(14, 65, 148, .35);
	box-shadow: var(--wp--preset--shadow--soft);
	transform: translateY(-1px);
}

.himml-series__num {
	flex: none;
	color: var(--wp--preset--color--blue);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
}

.himml-series__label {
	flex: 1;
	min-width: 0;
}

.himml-series__item.is-done .himml-series__num {
	color: var(--wp--preset--color--muted);
}

.himml-series__item.is-current .himml-series__link {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--base);
}

.himml-series__item.is-current .himml-series__num,
.himml-series__here {
	color: var(--wp--preset--color--mist);
}

.himml-series__here {
	flex-basis: 100%;
	padding-left: calc(2ch + 14px + 2px);
	font-size: 13px;
}

.himml-series__pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--grey-mid);
}

.himml-series__step {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--wp--preset--color--blue);
	font-weight: 500;
	text-decoration: none;
}

.himml-series__step span {
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-weight: 400;
}

.himml-series__step.is-prev span::before {
	content: "← ";
}

.himml-series__step.is-next {
	margin-left: auto;
	text-align: right;
}

.himml-series__step.is-next span::after {
	content: " →";
}

.himml-series__step:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.himml-series__link {
		transition: none;
	}

	a.himml-series__link:is(:hover, :focus-visible) {
		transform: none;
	}
}

/* Autor-Box unter Beiträgen (Ausgabe aus inc/authors.php): Inhaltsbreite. */
.himml-author-box {
	display: grid;
	grid-template-columns: clamp(120px, 22vw, 180px) 1fr;
	align-items: center;
	gap: clamp(20px, 4vw, 40px);
	margin-block: var(--wp--preset--spacing--60);
	padding: clamp(20px, 4vw, 36px);
	border-radius: var(--wp--preset--border-radius--x-large);
	background: var(--wp--preset--color--sand);
}

.himml-author-box__photo {
	display: block;
	align-self: start;
}

.himml-author-box__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
	border-radius: var(--wp--preset--border-radius--large);
}

.himml-author-box__body > * {
	margin-block: 0;
}

.himml-author-box__body .is-style-kicker {
	margin-bottom: 6px;
}

.himml-author-box__name {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.25;
}

.himml-author-box__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.himml-author-box__name a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.himml-author-box__intro {
	margin-top: 10px !important;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.himml-author-box__actions,
.himml-author-bio__text .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.himml-author-box__actions {
	margin-top: 20px !important;
}

@media (max-width: 599px) {
	.himml-author-box {
		grid-template-columns: 1fr;
	}

	.himml-author-box__photo {
		width: 120px;
	}
}

/* Autorenseite: Porträt und Biografie (Block himml/author-bio). */
.himml-author-bio {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(32px, 6vw, 88px);
}

.himml-author-bio.is-text-only {
	grid-template-columns: minmax(0, 1fr);
	max-width: var(--wp--style--global--content-size);
}

.himml-author-bio__photo {
	position: sticky;
	top: calc(var(--wp--custom--header-height, 132px) + 24px);
	margin: 0;
}

.himml-author-bio__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
	border-radius: var(--wp--preset--border-radius--x-large);
	box-shadow: var(--wp--preset--shadow--card);
}

.himml-author-bio__text > :first-child {
	margin-top: 0;
}

.himml-author-bio__text h2 {
	margin: 8px 0 24px;
}

.himml-author-bio__text p:not(.is-style-kicker) {
	margin: 0 0 1.1em;
}

.himml-author-bio__text .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.himml-author-bio {
		grid-template-columns: minmax(0, 1fr);
	}

	.himml-author-bio__photo {
		position: static;
		max-width: 360px;
	}
}

/* Beitragskopf (templates/single.html): Zeile „Verfasst von … in … · Datum“ unter
 * dem Kurztext, Links hell auf Nachtblau. */
.himml-post-meta {
	margin-block-start: 24px !important;
	color: var(--wp--preset--color--on-night-muted);
}

.himml-post-meta > * {
	margin: 0;
}

.himml-post-meta a {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .35);
	text-underline-offset: 3px;
	transition: text-decoration-color .2s ease;
}

.himml-post-meta a:is(:hover, :focus-visible) {
	text-decoration-color: currentColor;
}

.himml-post-meta__sep {
	padding-inline: 2px;
}

/* Autorenseite: Funktion über dem Namen, Kurztext darunter (Profilfelder). */
.himml-author-lead {
	max-width: 58ch;
}

.himml-author-box__role {
	margin-top: 2px !important;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
