/* ==========================================================================
   Bestattungsinstitut Eberhardt — Inhaltsbausteine
   Klassen am Artikel bzw. Element (Feld „CSS-Klasse“). Maße aus dem Figma-Entwurf, 1440 px breit.
   ========================================================================== */

/* -------------------------------------------------------------------- Startkopf (Rahmen „hero-section“, 1440 × 720)
   Pusteblumen-Video füllt die Fläche; darüber Verlauf von unten (#e8ece6 / 20 % → durchsichtig bei 45 %,
   Deckkraft 80 %) und #f4efe8 / 15 %. Titel Dancing Script 700 64/73.6, anthrazit, mittig, Box 557 px bei x = 67, y = 318. */
.Startkopf {
	position: relative;
	height: 720px;
	overflow: hidden;
	& .mod_article__inner { position: static; max-width: none; padding: 0; height: 100%; }
	& .Hintergrundvideo { position: absolute; inset: 0; z-index: 0; }
	& .Hintergrundvideo :is(figure, video) { width: 100%; height: 100%; }
	& .Hintergrundvideo video { object-fit: cover; }
	&::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
		background:
			linear-gradient(to top, rgb(232 236 230 / 0.16) 1%, rgb(255 255 255 / 0) 45%),
			rgb(244 239 232 / 0.15);
		pointer-events: none;
	}
	& .Starttitel {
		position: absolute;
		z-index: 2;
		left: calc(50% - 720px + 67px);
		top: 318px;
		width: 557px;
		& h1 {
			color: var(--anthrazit);
			font-size: var(--titel-start);
			font-weight: 700;
			line-height: 1.15;
			text-align: center;
		}
	}
	@media (max-width: 1439px) { & .Starttitel { left: max(20px, calc(4.65vw)); } }
	@media (max-width: 1023px) { height: 620px; & .Starttitel { top: auto; bottom: 80px; width: auto; right: 20px; } }
	@media (max-width: 599px) { height: 520px; & .Starttitel { bottom: 48px; } }
}

/* -------------------------------------------------------------------- Kopfbild der Unterseiten (1440 × 542), Weiß 14 % darüber */
.Kopfbild {
	position: relative;
	& .mod_article__inner { max-width: none; padding: 0; }
	& img { width: 100%; height: auto; }
	&::after { content: ''; position: absolute; inset: 0; background: rgb(255 255 255 / 0.14); pointer-events: none; }
}

/* -------------------------------------------------------------------- Einleitung (Spalte 760 px mittig)
   Titel Dancing Script 600 44/52.8 gold mittig, 32 px darunter Text Inter 18/28.8 (Bestatten) bzw. 17/27.2. */
.Einleitung {
	padding: var(--abstand) 0 0;
	& .mod_article__inner { max-width: calc(760px + 2 * var(--rand-seite)); }
	& h1 { text-align: center; }
	& .rte > h1 + p { margin-top: 32px; }
}
.Rechtsseite { padding-bottom: var(--abstand); }

/* Ankerleiste: Schaltflächen nebeneinander, Abstand 15, 56 px unter dem Text, 30–49 px Luft darunter */
.Ankerleiste {
	padding: 56px 0 49px;
	& .Schaltflächenreihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
}
.Einleitung + .Ankerleiste { padding-top: 64px; }

/* -------------------------------------------------------------------- Teaserkarten (Startseite)
   Drei Karten 378 px, Abstand 32, Ecken 16, Rand #e8e4dc, Schatten 0 8 16 / 4 %; Bild 378 × 378,
   Inhalt Innenabstand 8/28/24/28 (28 px unter dem Bild), Titel Dancing Script 32/38.4, Text 17/25.5,
   Schaltfläche 28 px darunter. Grund je Karte: #edebe7 · #ffffff · #f4efe8. */
.Teaserreihe { padding: var(--abstand) 0; }
.Kartenreihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.Teaserkarte {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rand);
	border-radius: 16px;
	box-shadow: 0 8px 16px rgb(44 42 41 / 0.04);
	& > * { margin: 0; }
	& .Kartenbild img { width: 100%; height: auto; aspect-ratio: 1; }
	& .Kartentext { padding: 36px 28px 0; }
	& .Kartentext p { margin-top: 12px; line-height: 1.5; }
	& .Schaltfläche { padding: 28px 28px 24px; margin-top: auto; }
}

/* „Wir sind für Sie da!“ (Startseite): Grund #e8ece6, Text 777 px bei x = 146, Freisteller 846 px rechts unten */
.StartWir {
	position: relative;
	overflow: hidden;
	padding: 60px 0 70px;
	& .mod_article__inner { position: relative; }
	& .StartWirText { position: relative; z-index: 1; max-width: 777px; padding-left: 26px; }
	& .StartWirText::before { margin: 0 0 34px 544px; }
	& .StartWirText h2 { font-size: var(--titel-gross); line-height: 1.2; }
	& .StartWirText .rte > h2 + p { margin-top: 32px; }
	& .Schaltfläche { position: relative; z-index: 1; margin-top: 32px; padding-left: 26px; }
	/* Freisteller 846 × 439 bei x = 652, y = 45 (ragt rechts 58 px über den Rand, unten 2 px abgeschnitten) */
	& .Freisteller { position: absolute; left: calc(50% - 720px + 652px - var(--rand-seite) + var(--rand-seite)); top: -15px; width: 846px; margin: 0; z-index: 0; }
	& .Freisteller img { width: 100%; height: auto; }
	@media (max-width: 1439px) { & .Freisteller { left: auto; right: -4vw; top: auto; bottom: -72px; width: 58.75vw; } }
	@media (max-width: 899px) {
		padding-bottom: 0;
		& .StartWirText { padding-left: 0; }
		& .StartWirText::before { margin-left: 0; }
		& .Schaltfläche { padding-left: 0; }
		& .Freisteller { position: relative; right: auto; bottom: auto; width: min(560px, 100%); margin: 24px auto 0; }
	}
}

/* Imagefilm (Startseite): 1200 × 562, 80 px Luft oben und unten */
.Imagefilm { padding: var(--abstand) 0; }

/* -------------------------------------------------------------------- Bestattungsarten (Kästen 1200 × 528)
   Bild 528 × 528 links bzw. rechts, Text 535 px mit Motiv, Titel Dancing Script 32/38.4, Text 17/25.5.
   Abstand zwischen den Kästen 32 px. Grund laut Entwurf: #edebe7 · #ffffff · #f4efe8 · #ffffff. */
.Bestattungsart { padding-top: 32px; }
.Ankerleiste + .Bestattungsart { padding-top: 31px; }
.Bestattungsart:has(+ :not(.Bestattungsart)) { padding-bottom: var(--abstand); }
.Kasten {
	display: grid;
	grid-template-columns: 528px minmax(0, 1fr);
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--rand);
	border-radius: 16px;
	box-shadow: 0 8px 16px rgb(44 42 41 / 0.04);
	& > * { margin: 0; }
	& .Kastenbild img { width: 100%; height: auto; aspect-ratio: 1; }
	/* Motiv 10 × 10 bei y = 114, Titel bei y = 206, Text 65 px unter dem Titel; Text 535 px, links 53 px neben dem Bild */
	& .Kastentext { align-self: start; padding: 114px 31px 40px 53px; }
	& .Kastentext::before { width: 54px; height: 10px; margin-bottom: 82px; background-size: 10px 10px !important; background-position: 0 0, 22px 0, 44px 0 !important; }
	& .Kastentext .rte { max-width: 535px; }
	& .Kastentext .rte > h2 + p { margin-top: 27px; line-height: 1.5; }
	&.BildRechts { grid-template-columns: minmax(0, 1fr) 528px; }
	&.BildRechts .Kastenbild { order: 2; }
	&.BildRechts .Kastentext { padding: 114px 19px 40px 65px; }
}

/* -------------------------------------------------------------------- Rautenliste (Grabarten, Gestaltung, Werte)
   Raute 11 × 11 gold (Quadrat 45° gedreht), 16 px vor dem Text, Einträge 20 px Abstand. */
.rte ul.Raute { margin-top: 32px; padding: 0; list-style: none; }
.rte ul.Raute > li { position: relative; padding-left: 27px; }
.rte ul.Raute > li + li { margin-top: 20px; }
.rte ul.Raute > li::before {
	content: '';
	position: absolute;
	left: 1px;
	top: 0.55em;
	width: 8px;
	height: 8px;
	background: var(--gold);
	rotate: 45deg;
}

/* Grabarten: Grund #e8ece6, Spalte 900 px mittig, Liste 700 px; Lead Inter 500 17/20.6, Text 17/24.7 */
.Grabarten {
	padding: 60px 0 80px;
	& .mod_article__inner { max-width: calc(900px + 2 * var(--rand-seite)); }
	& h2 { text-align: center; font-size: var(--titel-gross); }
	& .rte > h2 + p { margin-top: 32px; }
	& p.Mittig { text-align: center; }
	& ul.Raute { max-width: 700px; margin-inline: auto; }
	& ul.Raute strong { font-weight: 500; }
	& ul.Raute li { line-height: 1.45; }
	& .mitMotiv::before { margin-bottom: 40px; }
}

/* -------------------------------------------------------------------- Bilderreihe: drei Fotos 378 × 378, Abstand 32, Ecken 16 */
.Bilderreihe { padding: var(--abstand) 0; }
.Kachelreihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.Kachelbild { margin: 0; }
.Kachelbild figure { overflow: hidden; border: 1px solid var(--rand); border-radius: 16px; box-shadow: 0 8px 16px rgb(44 42 41 / 0.04); }
.Kachelbild img { width: 100%; height: auto; aspect-ratio: 1; }

/* -------------------------------------------------------------------- Friedhöfe: Titel, Karte 1200 × 460, Karten 384 px (Abstand 24)
   Karte: weiß, Rand #e8e4dc, Ecken 12, Schatten 0 8 24 / 4 %, Innenabstand 32; Name Dancing Script 29/34.8,
   18 px darunter Linie 1 px gold, 18 px darunter Anschrift Inter 19/23 mit Ortsmarke (15 × 19, 12 px Abstand). */
.Friedhoefe {
	padding: 40px 0 0;
	& .content-headline { margin-bottom: 43px; }
}
.Kartenbild { margin: 0; }
.Kartenbild img { width: 100%; height: auto; }
.Friedhofsliste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 60px; }
.Friedhofskarte {
	min-height: 235px;
	padding: 32px;
	border: 1px solid var(--rand);
	border-radius: 12px;
	background: var(--weiss);
	box-shadow: 0 8px 24px rgb(10 20 47 / 0.04);
	& h3 { padding-bottom: 18px; border-bottom: 1px solid var(--gold); }
	& .rte > h3 + p { margin-top: 18px; }
	& .rte > p + p { margin-top: 13px; }
	& :is(.Anschrift, .Ort) { padding-left: 27px; font-size: 19px; line-height: 23px; }
	& .Anschrift {
		position: relative;
		&::before {
			content: '';
			position: absolute;
			left: 0;
			top: 1px;
			width: 15px;
			height: 21px;
			background: url('../img/ortsmarke.svg') center / contain no-repeat;
		}
	}
}
.Friedhoefe .Schlusstext { max-width: 760px; margin: 60px auto 0; padding-bottom: var(--abstand); }

/* -------------------------------------------------------------------- Kapitel (Komponente „Journey chapter“)
   Volle Breite, Innenabstand 80/112; Bild 460 × 460, 68 px daneben der Text (688 px): Motiv 10 × 10,
   22 px darunter Titel Dancing Script 32/35.8, 22 px darunter Text 17/28.6, Absätze 14 px. */
.Kapitel {
	padding: 80px 0;
	& .mod_article__inner { max-width: calc(1216px + 2 * var(--rand-seite)); }
}
.Kapitelinhalt {
	display: grid;
	grid-template-columns: 460px minmax(0, 1fr);
	align-items: center;
	column-gap: 68px;
	& > * { margin: 0; }
	& .Kapitelbild img { width: 100%; height: auto; aspect-ratio: 1; }
}
.Kapitel.BildRechts .Kapitelinhalt { grid-template-columns: minmax(0, 1fr) 460px; }
.Kapitel.BildRechts .Kapitelinhalt > :first-child { order: 2; }
.Kapiteltext {
	&::before { width: 54px; height: 10px; margin-bottom: 22px; background-size: 10px 10px !important; background-position: 0 0, 22px 0, 44px 0 !important; }
	& .rte { line-height: 1.68; }
	& .rte > h2 + * { margin-top: 22px; }
	& .rte > p + p { margin-top: 14px; }
	& h2 { line-height: 1.12; }
	& ul.Raute { margin-top: 18px; }
	& ul.Raute > li + li { margin-top: 10px; }
}

/* Zitat (Abschied gestalten): Kasten 1217 px, Grund #e8ece6, Rand #d9ccba, Ecken 16, Innenabstand 24;
   Zitat Dancing Script 600 29/34.8 dunkel, 16 px darunter Inter 500 17 gold. */
.Zitatkasten {
	margin-top: 80px !important;
	padding: 24px;
	border: 1px solid #d9ccba;
	border-radius: 16px;
	background: var(--gruen);
	& blockquote p { color: var(--dunkel); font-family: var(--schreibschrift); font-size: var(--titel-klein); font-weight: 600; line-height: 1.2; }
	& .Zitatgeber { margin-top: 16px; color: var(--gold); font-weight: 500; }
}

/* Abschluss (Abschied gestalten): Motiv 9 × 9, 34 px darunter die Schaltfläche, 60 px Luft */
.Abschluss { padding: 60px 0; }
.Abschluss .mitMotiv::before {   /* Rahmen „Closing motif“: 9 × 9, anthrazit 34 %, #edebe7 90 %, gold 72 % */
	width: 47px; height: 9px; margin-bottom: 34px;
	background:
		linear-gradient(rgb(87 87 86 / 0.34), rgb(87 87 86 / 0.34)) 0 0 / 9px 9px no-repeat,
		linear-gradient(rgb(237 235 231 / 0.9), rgb(237 235 231 / 0.9)) 19px 0 / 9px 9px no-repeat,
		linear-gradient(rgb(179 143 88 / 0.72), rgb(179 143 88 / 0.72)) 38px 0 / 9px 9px no-repeat;
}

/* -------------------------------------------------------------------- Sofortbild-Kopf (Vorsorge, Über uns, 1440 × 637)
   Text 645 px bei x = 112 (Titel gold 44/47.5, Laufweite −1, 30 px darunter Text 17/28), rechts das Foto
   im Rahmen #fffdf8 (Innenabstand 16/16/20, unten 54 px), Schatten 0 12 40 #3c2e20 / 7 %, leicht gedreht. */
.Sofortbildkopf {
	padding: 0;
	& .mod_article__inner { max-width: calc(1216px + 2 * var(--rand-seite)); }
}
.Sofortbildinhalt {
	display: grid;
	grid-template-columns: minmax(0, 645px) 498px;
	justify-content: space-between;
	align-items: center;
	min-height: 637px;
	& > * { margin: 0; }
	& .Sofortbildtext h1 { color: var(--gold); line-height: 1.08; letter-spacing: -1px; }
	& .Sofortbildtext .rte > h1 + p { margin-top: 30px; }
	& .Sofortbildtext p { line-height: 1.65; max-width: 595px; }
	& .Sofortbildtext .Unterschrift { margin-top: 11px; color: var(--gold); font-family: var(--schreibschrift); font-size: 24px; line-height: 39.6px; }
}
.SchriftHell .Sofortbildtext p:not(.Unterschrift) { color: var(--weiss); }
.Sofortbild figure {
	padding: 16px 16px 54px;
	background: var(--creme);
	box-shadow: 0 12px 40px rgb(60 46 32 / 0.07);
}
.Sofortbild img { width: 100%; height: auto; aspect-ratio: 1; }
.SofortbildLinks figure { rotate: -1.87deg; }
.SofortbildRechts figure { rotate: 1.2deg; }

/* -------------------------------------------------------------------- Beratung (Vorsorge): Grund #f4efe8, Kasten 1246 × 559
   weiß, Ecken 16, Schatten; Bild 460 links (Innenabstand 50), Sprechblase in Kästchen 55 × 55 #f4efe8 vor dem Titel. */
.Beratung { padding: 80px 0 70px; }
.Beratungskasten {
	display: grid;
	grid-template-columns: 460px minmax(0, 1fr);
	align-items: center;
	column-gap: 72px;
	padding: 50px 72px 50px 50px;
	border: 1px solid var(--rand);
	border-radius: 16px;
	background: var(--weiss);
	box-shadow: 0 8px 24px rgb(44 42 41 / 0.04);
	& > * { margin: 0; }
	& .Kapitelbild img { width: 100%; height: auto; aspect-ratio: 1; }
	& .Schaltfläche { margin-top: 32px; }
	& .rte > h2 + p { margin-top: 32px; line-height: 1.7; }
}
.mitSprechblase h2 {
	display: flex;
	align-items: center;
	gap: 18px;
	&::before {
		content: '';
		flex: 0 0 55px;
		height: 55px;
		background: var(--beige) url('../img/sprechblase.svg') center / 25px no-repeat;
	}
}
.Uebrigens {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 70px !important;
	&::before { flex: 0 0 auto; width: 54px; height: 10px; margin: 0; background-size: 10px 10px !important; background-position: 0 0, 22px 0, 44px 0 !important; }
}

/* -------------------------------------------------------------------- Schritte (Was tun im Trauerfall?)
   Liste 668 px bei x = 386: Kreis 48 × 48 #faf6f0 mit Ziffer Inter 600 18 gold, 24 px daneben Titel
   Dancing Script 29/34.8 und 8 px darunter Text 17/27.2; Einträge 24 px Abstand. */
.rte ol.Schritte { max-width: 668px; margin: 32px auto 0; padding: 0; list-style: none; counter-reset: schritt; }
.rte ol.Schritte > li { position: relative; padding-left: 72px; counter-increment: schritt; }
.rte ol.Schritte > li + li { margin-top: 24px; }
.rte ol.Schritte > li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #faf6f0;
	color: var(--gold);
	font-size: 18px;
	font-weight: 600;
}
.rte ol.Schritte h2 { font-size: var(--titel-klein); line-height: 1.2; }
.rte ol.Schritte p { margin-top: 8px; }
.TrauerfallSchritte .rte > ol + p { margin-top: 32px; }
.AnkerleisteKompakt { padding-top: 56px !important; padding-bottom: 0; }

/* -------------------------------------------------------------------- Ratgeber-Akkordeon (Kern-Element „Akkordeon“)
   Geschlossen: Karte 1200 × 120 weiß, Rand #e8e4dc, Ecken 12, Innenabstand 40, Titel Dancing Script 32/38.4,
   rechts Kästchen 32 × 32 #f4efe8 mit Plus (anthrazit). Abstand 16. Geöffnet: Grund #f4efe8, Kästchen 36 × 36
   gold mit Minus, Inhalt: Text 580 px (Zwischentitel #c1a978 29/32, Text 17/24), 80 px daneben Bild 460. */
.RatgeberListe { padding: 0 0 120px; }
.RatgeberListe .content-headline { margin: 0 0 41px; }
.Ratgeberakkordeon {
	display: grid;
	gap: 16px;
	& .handorgel__header {
		margin: 0;
		font-size: var(--titel);
		line-height: 1.2;
	}
	& .handorgel__header__button {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		width: 100%;
		padding: 40px;
		border: 1px solid var(--rand);
		border-radius: 12px;
		background: var(--weiss);
		box-shadow: 0 8px 24px rgb(44 42 41 / 0.04);
		color: var(--dunkel);
		font: inherit;
		text-align: left;
		cursor: pointer;
		transition: background-color 0.3s ease, border-radius 0.3s ease;
		&::after {
			content: '';
			flex: 0 0 32px;
			height: 32px;
			margin-right: 4px;
			background:
				linear-gradient(var(--anthrazit), var(--anthrazit)) center / 8px 2px no-repeat,
				linear-gradient(var(--anthrazit), var(--anthrazit)) center / 2px 8px no-repeat,
				var(--beige);
			transition: background-color 0.3s ease;
		}
		&:hover::after { background-color: var(--grau); }
	}
	& .handorgel__header--opened .handorgel__header__button {
		border-radius: 12px 12px 0 0;
		background: var(--beige);
		&::after {
			flex-basis: 36px;
			height: 36px;
			margin-right: 0;
			background: linear-gradient(var(--grau), var(--grau)) center / 10px 2px no-repeat, var(--gold);
		}
	}
	& .handorgel__content {
		border: 1px solid var(--rand);
		border-top: 0;
		border-radius: 0 0 12px 12px;
		background: var(--beige);
		margin-top: -16px;
	}
	& .handorgel__content__inner { opacity: 1 !important; padding: 0 !important; }
	& .handorgel__content:not(.handorgel__content--open) { border-width: 0; }
}
.Ratgeberinhalt {
	display: grid;
	grid-template-columns: minmax(0, 580px) 460px;
	justify-content: space-between;
	align-items: center;
	gap: 40px 80px;
	padding: 52px 40px 50px;
	border-top: 1px solid var(--rand);
	& > * { margin: 0; }
	& .rte { line-height: 1.41; }
	& .rte > * + * { margin-top: 12px; }
	& .rte > h4 { line-height: 1.1; }
	& .rte > p + h4 { margin-top: 20px; }
	& .Ratgeberbild img { width: 100%; height: auto; aspect-ratio: 1; }
	& ul.Raute { margin-top: 12px; }
	& ul.Raute > li + li { margin-top: 12px; }
}

/* -------------------------------------------------------------------- Team (Über uns): zwei Karten 555 px (Abstand 28)
   Foto 555 × 555, darunter Inhalt (Innenabstand 41/28/40/28): Name Dancing Script 400 29/34.8, Rolle Inter 600 15
   gold, Beruf 17, Schaltfläche „Bereich +“ (Inter 600 15). Geöffnet: „Weniger anzeigen –“, Trennlinie,
   Bereich (Inter 600 16 anthrazit) und Rautenliste. */
.Team {
	padding: 80px 0;
	& .content-headline::before { margin-bottom: 30px; }
	& .content-headline { margin-bottom: 32px; }
}
.Teamreihe { display: grid; grid-template-columns: repeat(2, minmax(0, 555px)); justify-content: center; gap: 28px; align-items: start; }
.Teamkarte {
	overflow: hidden;
	border: 1px solid var(--rand);
	border-radius: 16px;
	box-shadow: 0 8px 16px rgb(44 42 41 / 0.04);
	& > * { margin: 0; }
	& .Teamfoto img { width: 100%; height: auto; aspect-ratio: 1; }
	& .Teamtext { padding: 41px 28px 40px; }
	& h3 { font-weight: 400; }
	& .Rolle { margin-top: 10px; color: var(--gold); font-size: 15px; font-weight: 600; line-height: 18px; }
	& .rte > .Rolle + p { margin-top: 16px; }
}
.Aufgaben {
	margin-top: 24px;
	& summary {
		display: inline-block;
		padding: 10px 24px;
		border-radius: 4px;
		background: var(--gold);
		color: var(--weiss);
		font-size: 15px;
		font-weight: 600;
		line-height: 18px;
		list-style: none;
		cursor: pointer;
		transition: background-color 0.3s ease, color 0.3s ease;
		&::-webkit-details-marker { display: none; }
		&:hover, &:focus-visible { background: var(--anthrazit); color: var(--gold); }
	}
	& .Auf { display: none; }
	&[open] .Zu { display: none; }
	&[open] .Auf { display: inline; }
	& > p { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgb(87 87 86 / 0.1); }
	& > p strong { color: var(--anthrazit); font-weight: 600; font-size: 16px; }
	& ul.Raute { margin-top: 10px; }
	& ul.Raute > li + li { margin-top: 8px; }
}

/* Geschichte (Über uns): Foto 460 rechts, kleines Sofortbild (202, Rahmen 239 × 262, gedreht) rechts unten */
.Geschichte .Kapitelinhalt { align-items: start; }
.Geschichtsbilder { position: relative; padding-bottom: 120px; }
.Geschichtsbilder .Kapitelbild { margin: 0; }
.SofortbildKlein { position: absolute; right: -40px; bottom: 0; width: 239px; margin: 0; }
.SofortbildKlein figure { padding: 16px 16px 44px; rotate: 5.47deg; }

/* -------------------------------------------------------------------- Filme
   Filmabschnitt: Innenabstand 100/120, Titel gold 44 mittig, 40 px darunter Film 1200 × 540 (Rand #e8e4dc,
   Schatten 0 8 24 / 4 %), 40 px darunter „Alle Filme“. Abspielknopf: Kreis 88 weiß (Rand 1 px gold),
   Dreieck 24 gold, Schatten 0 6 16 / 20 %. */
.Filmabschnitt {
	padding: 100px 0;
	& .content-headline { margin: 0 auto 40px; text-align: center; }
	&.GrundSand .content-headline { max-width: 700px; }   /* Vorsorge: Titel im Entwurf dreizeilig, Box 660 px */
	& .Schaltfläche { margin-top: 40px; }
}
.GrundTaupe .content-headline, .GrundTaupe .Filmeinleitung h2 { color: var(--gold) !important; }
.Filmspieler {
	margin: 0;
	& figure {
		position: relative;
		overflow: hidden;
		border: 1px solid var(--rand);
		background: #000;
		box-shadow: 0 8px 24px rgb(44 42 41 / 0.04);
	}
	& video { width: 100%; height: auto; aspect-ratio: 1200 / 540; object-fit: cover; }
	&.laeuft video { object-fit: contain; }
}
.Imagefilm .Filmspieler video { aspect-ratio: 1200 / 562; }
.Abspielknopf {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	&::before {
		content: '';
		width: 88px;
		height: 88px;
		border: 1px solid var(--gold);
		border-radius: 50%;
		background: var(--weiss);
		box-shadow: 0 6px 16px rgb(0 0 0 / 0.2);
		transition: transform 0.3s ease;
	}
	&::after {
		content: '';
		position: absolute;
		left: 50%;
		top: 50%;
		width: 0;
		height: 0;
		margin: -12px 0 0 -7px;
		border-style: solid;
		border-width: 12px 0 12px 20px;
		border-color: transparent transparent transparent var(--gold);
	}
	&:hover::before, &:focus-visible::before { transform: scale(1.06); }
	@media (max-width: 599px) { &::before { width: 64px; height: 64px; } }
}
.Filmspieler.laeuft .Abspielknopf { display: none; }

/* Erklärfilme (Ratgeber): Einleitung 722 px mittig, großer Film mit Pfeilen (37 × 68 gold, 26 px neben dem Film),
   darunter die Auswahl (384 × 160, Abstand 24, Rand #e8e4dc); zuerst drei, nach „Alle Filme“ alle. */
.Filmeinleitung {
	max-width: 722px;
	margin: 0 auto 40px;
	& h2 { text-align: center; color: var(--gold); font-size: var(--titel-gross); }
	& .rte > h2 + p { margin-top: 32px; }
}
.Filmgalerie {
	position: relative;
	& .Hauptfilm { margin-bottom: 40px; }
	& .Schaltfläche { margin-top: 40px; }
}
.Filmauswahl {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	& > .Filmwahl:nth-child(n + 4) { display: none; }
	&.alle > .Filmwahl { display: block; }
}
.Filmwahl {
	margin: 0;
	& figure { overflow: hidden; border: 1px solid var(--rand); }
	& a { display: block; position: relative; }
	& img { width: 100%; height: auto; aspect-ratio: 384 / 160; transition: transform 0.4s ease, opacity 0.3s ease; }
	& a:hover img { transform: scale(1.04); }
	&.aktiv figure { border-color: var(--gold); }   /* nicht im Entwurf: laufender Film, Rahmen in der Hauptfarbe */
}
.Filmpfeil {
	position: absolute;
	top: calc(var(--filmhoehe, 540px) / 2 - 34px);
	width: 37px;
	height: 68px;
	padding: 0;
	border: 0;
	background: url('../img/pfeil-film.svg') center / contain no-repeat;
	cursor: pointer;
	transition: opacity 0.3s ease;
	&:hover { opacity: 0.75; }
	&.zurueck { left: -63px; }
	&.weiter { right: -63px; rotate: 180deg; }
	@media (max-width: 1365px) { width: 24px; height: 44px; top: calc(var(--filmhoehe, 540px) / 2 - 22px); &.zurueck { left: -34px; } &.weiter { right: -34px; } }
	@media (max-width: 767px) { display: none; }
}

/* ==========================================================================
   Schmale Fenster
   ========================================================================== */
@media (max-width: 1279px) {
	.Kasten { grid-template-columns: 44% minmax(0, 1fr); &.BildRechts { grid-template-columns: minmax(0, 1fr) 44%; } }
	.Kasten .Kastentext, .Kasten.BildRechts .Kastentext { align-self: center; padding: 40px; }
	.Kasten .Kastentext::before { margin-bottom: 30px; }
	.Kapitelinhalt { grid-template-columns: 40% minmax(0, 1fr); column-gap: 48px; }
	.Kapitel.BildRechts .Kapitelinhalt { grid-template-columns: minmax(0, 1fr) 40%; }
	.Sofortbildinhalt { grid-template-columns: minmax(0, 1fr) 40%; column-gap: 48px; }
	.Beratungskasten { grid-template-columns: 40% minmax(0, 1fr); column-gap: 48px; padding: 40px; }
	.Ratgeberinhalt { grid-template-columns: minmax(0, 1fr) 40%; gap: 32px 48px; }
}
@media (max-width: 899px) {
	.Kartenreihe, .Kachelreihe, .Friedhofsliste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.Kasten, .Kasten.BildRechts { grid-template-columns: 1fr; }
	.Kasten.BildRechts .Kastenbild { order: 0; }
	.Kapitel { padding: var(--abstand) 0; }
	.Kapitelinhalt, .Kapitel.BildRechts .Kapitelinhalt { grid-template-columns: 1fr; row-gap: 32px; }
	.Kapitel.BildRechts .Kapitelinhalt > :first-child { order: 0; }
	.Kapitelbild { max-width: 460px; }
	.Sofortbildinhalt { grid-template-columns: 1fr; row-gap: 40px; min-height: 0; padding: var(--abstand) 0; }
	.Sofortbild { max-width: 420px; }
	.Beratungskasten { grid-template-columns: 1fr; row-gap: 32px; padding: 24px; }
	.Ratgeberinhalt { grid-template-columns: 1fr; padding: 32px 24px; }
	.Ratgeberakkordeon .handorgel__header__button { padding: 24px; }
	.Teamreihe { grid-template-columns: minmax(0, 555px); }
	.Geschichtsbilder { padding-bottom: 90px; }
	.SofortbildKlein { right: 0; width: 180px; }
	.Uebrigens { flex-direction: column; align-items: flex-start; }
	.Filmauswahl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.Filmauswahl > .Filmwahl:nth-child(n + 3) { display: none; }
	.Filmauswahl.alle > .Filmwahl { display: block; }
	.Filmabschnitt { padding: var(--abstand) 0; }
}
@media (max-width: 599px) {
	.Kartenreihe, .Kachelreihe, .Friedhofsliste { grid-template-columns: 1fr; }
	.Kachelreihe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.Kachelbild figure { border-radius: 8px; }
	.Friedhofskarte { min-height: 0; padding: 24px; }
	.Ankerleiste { padding: 40px 0 32px; }
	.Einleitung + .Ankerleiste { padding-top: 40px; }
	.Teaserkarte .Kartentext { padding-top: 28px; }
	.rte ol.Schritte > li { padding-left: 64px; }
}
