/************ ABENDFRIEDE SCHRIFT ************/
.Schmuckschrift :is(h1, h2, h3, h4, p),
:is(h1, h2, h3, h4, p).Schmuckschrift {
	font-family: var(--font_schmuck);
	font-size: var(--schrift_schmuck);
	letter-spacing: 0.02em;
	font-weight: 400;
	line-height: 0.8778;
	color: var(--color_1);
}
.SchmuckschriftKlein :is(h1, h2, h3, h4, p),
:is(h1, h2, h3, h4, p).SchmuckschriftKlein {
	font-family: var(--font_schmuck);
	font-size: var(--schrift_schmuck_klein);
	letter-spacing: 0.01em;
	font-weight: 400;
	line-height: 1;
	color: var(--color_1);
}
.SchmuckschriftGroß :is(h1, h2, h3, h4, p),
:is(h1, h2, h3, h4, p).SchmuckschriftGroß {
	font-family: var(--font_schmuck);
	font-size: var(--schrift_schmuck_gross);
	font-weight: 400;
	line-height: 0.8333;
	letter-spacing: 0.02em;
	color: var(--color_1);
}
.Zitat :is(h2, h3, p, blockquote),
.Leitsatz :is(h2, h3, p) {
	margin-inline: auto;
	max-width: 875px;
	font-family: var(--font_schmuck);
	font-size: var(--schrift_schmuck_klein);
	letter-spacing: 0.01em;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	color: var(--color_5);
}
.Zitat .rte { max-width: none !important; }
.Zitat .rte > p + p { margin-top: 28px; font-family: var(--font_family); font-size: var(--font_size); font-weight: 700; line-height: 28px; }
.TextGroß .rte, .TextGroß p, .TextGroß li {
	font-size: var(--schrift_ueberschrift);
	font-weight: 400;
	line-height: 1.2667;
}
.TextNormal .rte { font-weight: 400; }
.TextZentriert, .TextZentriert .rte, .TextZentriert :is(h2, h3) { text-align: center; margin-inline: auto; }
.ÜberschriftBraun :is(h2, h3), :is(h2, h3).ÜberschriftBraun { color: var(--color_4); }
.ÜberschriftRot :is(h2, h3), :is(h2, h3).ÜberschriftRot { color: var(--color_1); }
.ÜberschriftWeiß :is(h1, h2, h3), :is(h1, h2, h3).ÜberschriftWeiß { color: #fff; }
.ListeLuftig .rte li + li { margin-top: 30px; }
.ListeOhnePunkte .rte ul { list-style: none; padding-left: 0; }

/************ ABENDFRIEDE SCHALTFLÄCHEN ************/
.Schaltfläche a,
.SchaltflächeWeiß a,
.SchaltflächeRot a,
a.Schaltfläche,
.Schaltflächen .rte a {
	position: relative;
	display: inline-block;
	padding: 13px 16px 16px;
	border-radius: 8px;
	background: var(--color_2);
	color: var(--color_1);
	font-weight: 700;
	line-height: 28px;
	text-decoration: none;
	transition: box-shadow 0.15s ease;
	&::after {
		content: '';
		position: absolute;
		inset: 6px;
		border: 2px solid currentColor;
		border-radius: 3px;
		pointer-events: none;
	}
	&:hover { box-shadow: inset 0 0 0 2px var(--color_1); text-decoration: none; }
}
.SchaltflächeWeiß a { background: #fff; }
.SchaltflächeRot a { background: var(--color_1); color: #fff;
	&:hover { box-shadow: inset 0 0 0 2px #fff; }
}
.Schaltflächenreihe,
.Schaltflächen .rte {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 17px 30px;
	& > * { margin: 0 !important; }
}
.Schaltflächen .rte p { margin: 0; }
.SchaltflächeMittig, .SchaltflächeMittig .rte { text-align: center; justify-content: center; }

/************ ABENDFRIEDE BAUSTEINE ************/
:where(.Kasten) > * { margin: 0; }
:where(.Kasten) > :where(* + *) { margin-top: 9px; }
:where(.Kasten) > :where(.content-image, .Symbol) + :where(*) { margin-top: 16px; }
/* In Kästen: Zwischentitel (Mulish 30) → Text im Entwurf 15–19 px (sonst 9 px) */
:where(.Kasten) > :where(.content-headline:not(.Schmuckschrift, .SchmuckschriftKlein, .SchmuckschriftGroß)) + :where(.content-text) { margin-top: 17px; }
.Kasten {
	padding: 50px;
	border-radius: 20px;
	@media (max-width: 700px) { padding: 28px 22px; }

	& :is(.content-image, .content-text.Symbol) img { border-radius: 0; width: auto; }
	& .rte { max-width: none; }
}
.KastenZentriert {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 40px 30px 40px;
	border-radius: 20px;
	text-align: center;
	& > * { margin: 0; }
	& > * + * { margin-top: 27px; }
	& img { border-radius: 0; width: auto; }
}
.Symbol img { width: auto !important; border-radius: 0 !important; }
.Symbol figure { display: flex; }
.KastenZentriert .Symbol figure { justify-content: center; }

.Kreis {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 16px;
	width: 350px !important;
	max-width: 100%;
	aspect-ratio: 1;
	padding: 30px 33px !important;
	border-radius: 50%;
	text-align: center;
	& > * { margin: 0 !important; padding: 0 !important; }
	& :is(h2, h3) { font-family: var(--font_schmuck); font-size: var(--schrift_schmuck_klein); letter-spacing: 0.01em; line-height: 1; color: var(--color_1); }
	&.Hintergrund1, &.Hintergrund1 :is(h2, h3, p) { color: #fff; }
	& .rte { max-width: none !important; }
}

.BildUndText {
	display: grid;
	grid-template-columns: 437fr 501fr;
	column-gap: 112px;
	align-items: start;
	& > * { margin: 0 !important; }
	&.BildRechts { grid-template-columns: 547fr 545fr; column-gap: 110px;
		& > :first-child { order: 2; }
	}
	@media (max-width: 900px) {
		grid-template-columns: 1fr !important;
		row-gap: 28px;
		&.BildRechts > :first-child { order: 0; }
	}
}
.SpalteSchmal { --spalte: 889px; }
main .mod_article > .SpalteSchmal,
main .mod_article.SpalteSchmal > * { width: calc(889px + var(--horizontal_spacing) * 2); }

.BogenOben, .BogenUnten { position: relative; isolation: isolate; overflow: hidden; }
.BogenOben::before, .BogenUnten::after {
	content: '';
	position: absolute;
	z-index: 5;
	left: -10.2%;
	width: 122.9%;
	height: clamp(60px, 13.7vw, 175px);
	border-radius: 50%;
	background: var(--bogenfarbe, var(--color_3));
	pointer-events: none;
}
.BogenOben::before { top: calc(clamp(60px, 13.7vw, 175px) / -2); }
.BogenUnten::after { bottom: calc(clamp(60px, 13.7vw, 175px) / -2); }

.Bildstreifen {
	padding-inline: 0 !important;
	width: 100% !important;
	& .swiper-slide { width: 393px; }
	& .swiper-wrapper { transition-timing-function: linear !important; }
	& img { border-radius: 0; width: 100%; }
	& :is(.swiper-button-prev, .swiper-button-next, .swiper-pagination) { display: none; }
}

.Bildwechsel {
	padding-inline: 0 !important;
	width: 100% !important;
	& img { border-radius: 0; width: 100%; }
	& :is(.swiper-button-prev, .swiper-button-next) { display: none; }
	& .swiper-pagination { display: none; }
}

.Personenreihe {
	padding-inline: 0 !important;
	width: 100% !important;
	--pfeil: url('../img/icons/icon-pfeil-hoch.svg');
	& .swiper { padding-inline: calc(50% - 273.5px); overflow: hidden; }
	& .swiper-slide { width: 547px; max-width: 86vw; }
	& .swiper-slide > * > * + * { margin-top: 64px; }
	& .swiper-slide img { width: 100%; }
	& .swiper-slide :is(h2, h3) { color: var(--color_1); }
	& .swiper-slide .content-text > :is(h2, h3) + .rte { margin-top: 33px; }
	& :is(.swiper-button-prev, .swiper-button-next) {
		top: 231px;
		width: 48px;
		height: 48px;
		margin: -24px 0 0;
		&::after { content: '' !important; font-family: inherit; width: 48px; height: 48px; background: var(--color_1); mask: var(--pfeil) center / contain no-repeat; }
		& svg { display: none; }
	}
	& .swiper-button-prev { left: calc(50% - 380px); }
	& .swiper-button-next { right: calc(50% - 380px); &::after { rotate: 180deg; } }
	& .swiper-pagination { display: none; }
	/* Handy: Pfeile unter das Bild statt darauf */
	@media (max-width: 760px) {
		& .swiper { padding-bottom: 64px; }
		& :is(.swiper-button-prev, .swiper-button-next) { top: auto; bottom: 0; margin: 0; }
		& .swiper-button-prev { left: calc(50% - 64px) !important; }
		& .swiper-button-next { right: calc(50% - 64px) !important; }
	}
	@media (max-width: 900px) {
		& .swiper-button-prev { left: 8px; }
		& .swiper-button-next { right: 8px; }
	}
}

.Filiale {
	display: grid;
	grid-template-columns: 547fr 545fr;
	column-gap: 110px;
	align-items: center;
	& > * { margin: 0 !important; }
	& .rte { max-width: none; }
	& .Bildwechsel { min-width: 0; }
	& .Bildwechsel img { border-radius: 20px; }
	@media (max-width: 900px) { grid-template-columns: 1fr; row-gap: 24px; & > :is(.content-image, .Bildwechsel) { order: -1; } }
}

.Partnerzeile {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 30px;
	& > * { margin: 0 !important; }
	& img { width: auto; max-height: 70px; border-radius: 0; }
}

.Logoleiste {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
	& > * { margin: 0 !important; }
	& img { width: auto; max-height: 120px; border-radius: 0; }
}

.RundesBild {
	& figure { position: relative; width: 273px; max-width: 70vw; margin-inline: auto; }
	& img { aspect-ratio: 1; object-fit: cover; border-radius: 50% !important; }
	&.mitAbspielsymbol figure::after {
		content: '';
		position: absolute;
		inset: 0;
		margin: auto;
		width: 58px;
		height: 58px;
		background: url('../img/icons/icon-play.svg') center / contain no-repeat;
		pointer-events: none;
	}
}

.Schmuckbild {
	position: absolute !important;
	z-index: 6;
	right: 0;
	top: min(245px, 19.2vw);
	@media (max-width: 760px) { display: none; }
	width: min(786px, 61.4vw) !important;
	padding: 0 !important;
	pointer-events: none;
	& img { border-radius: 0; }
}

.Videogalerie {
	padding-inline: 0 !important;
	width: 100% !important;
	& .swiper { padding-inline: calc(50% - 430px); overflow: hidden; }
	& .swiper-slide { width: 860px; max-width: 88vw; }
	& video { width: 100%; aspect-ratio: 860 / 484; object-fit: cover; background: #000; }
	& figure { margin: 0; }
	& figcaption { margin-top: 12px; text-align: center; }
	& .swiper-pagination { display: none; }
	& :is(.swiper-button-prev, .swiper-button-next) {
		top: 242px;
		color: var(--color_1);
	}
	& .swiper-button-prev { left: calc(50% - 516px); }
	& .swiper-button-next { right: calc(50% - 516px); }
	@media (max-width: 1100px) {
		& .swiper-button-prev { left: 4px; }
		& .swiper-button-next { right: 4px; }
	}
}
.Bedienleiste {
	display: flex;
	justify-content: center;
	gap: 23px;
	width: 369px;
	max-width: 100%;
	margin: 12px auto 0;
	padding: 20px 30px;
	border-radius: 5px;
	background: #fff;
	& button {
		display: grid;
		justify-items: center;
		gap: 3px;
		width: 60px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--color_1);
		font: 400 16px/20px var(--font_family);
		cursor: pointer;
		&::before { content: ''; width: 35px; height: 35px; background: currentColor; mask: var(--symbol) center / contain no-repeat; }
		&.blass { opacity: 0.5; }
	}
	& .abspielen { --symbol: url('../img/icons/icon-bedienung-abspielen.svg'); }
	& .stoppen { --symbol: url('../img/icons/icon-bedienung-stopp.svg'); }
	& .tonAn { --symbol: url('../img/icons/icon-bedienung-ton-an.svg'); }
	& .tonAus { --symbol: url('../img/icons/icon-bedienung-ton-aus.svg'); }
}

.KlickZumLaden {
	& .Hinweis { padding: 28px; border-radius: 20px; background: #fff; }
	& .Hinweis > * + * { margin-top: 17px; }
	& button { font: inherit; }
}

.Kartenraster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	& > * { margin: 0 !important; }
	@media (max-width: 900px) { grid-template-columns: 1fr; }
}

/************ ABENDFRIEDE SEITENBAUSTEINE ************/
.Kontaktliste .rte {
	display: grid;
	gap: 9px;
	max-width: none;
	& p {
		position: relative;
		margin: 0;
		min-height: 28px;
		padding-left: 42px;
		line-height: 28px;
		&::before {
			content: '';
			position: absolute;
			left: 0;
			top: -3px;
			width: 33px;
			height: 33px;
			background: var(--color_4);
			mask: url('../img/icons/icon-person.svg') center / 33px no-repeat;
		}
		&:first-child::before { mask-image: url('../img/icons/icon-ort.svg'); top: 8px; }
		&:has(a[href^="tel:"])::before { mask: url('../img/icons/icon-telefon.svg') center / 28px no-repeat; top: 0; height: 28px; }
		&:has(a[href^="mailto:"])::before { mask: url('../img/icons/icon-mail.svg') center / 24px no-repeat; }
	}
	& a { color: var(--color_4); }
	& a[href^="tel:"] { text-decoration: none; display: inline-flex; gap: 14px; }
	& a[href^="tel:"]:hover { color: var(--color_1); }
	& a[href^="mailto:"] { text-decoration: underline; }
}
.BildUndKreis {
	display: grid;
	grid-template-columns: 437px 350px;
	column-gap: 183px;
	align-items: center;
	& > * { margin: 0 !important; }
	@media (min-width: 1024px) { padding-left: calc(103px + var(--horizontal_spacing)) !important; }
	@media (max-width: 900px) { grid-template-columns: 1fr; row-gap: 28px; justify-items: center; }
}
.TextUndKasten {
	display: grid;
	grid-template-columns: 763fr 377fr;
	column-gap: 60px;
	align-items: center;
	& > * { margin: 0 !important; }
	& > .KastenZentriert { min-height: 370px; }
	& .rte { max-width: none; }
	@media (max-width: 900px) { grid-template-columns: 1fr; row-gap: 40px; }
}
.Partnerliste {
	display: grid;
	justify-items: center;
	row-gap: 45px;
	& > * { margin: 0 !important; }
	& .Partnerzeile { gap: 16px 34px; }
	& .Partnerzeile img { max-height: none; height: auto; }
	@media (max-width: 700px) { row-gap: 36px; & .Partnerzeile { flex-direction: column; } }
}
.Filiale .rte { max-width: none; }
.Filiale h3 { color: var(--color_1); }
@media (min-width: 901px) {
	.BildUndText.BildspalteFest { grid-template-columns: 437px minmax(0, 543px); column-gap: 106px; }
}
.Kreis :is(h2, h3) { text-wrap: wrap; }
:where(.KastenSymbolLinks) > :where(* + *) { margin-top: 28px; }
.KastenSymbolLinks {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	column-gap: 50px;
	align-items: start;
	& > * { grid-column: 2; }
	& > .Symbol { grid-column: 1; grid-row: 1 / span 6; }
	& .rte > * + * { margin-top: 11px; }
	& .rte li + li { margin-top: 3px; }
	@media (max-width: 700px) {
		grid-template-columns: 1fr;
		& > *, & > .Symbol { grid-column: 1; grid-row: auto; }
	}
}
.Notrufnummer a { color: inherit; text-decoration: none; }
.Kasten .Telefonleiste { margin-top: 28px; }
main .mod_article > .KreisÜberlappend {
	position: relative;
	z-index: 2;
	margin: -66px 68px 0 auto;
	@media (max-width: 700px) { margin: 24px auto 0; }
}
.BildNebenKreis {
	display: grid;
	grid-template-columns: 436px 350px;
	justify-content: space-between;
	align-items: center;
	& > * { margin: 0 !important; }
	& > :first-child { width: 100%; max-width: 436px; }
	main .mod_article > & { width: calc(936px + var(--horizontal_spacing) * 2); margin-left: max(0px, calc(50% - 485px)); margin-right: auto; }
	@media (max-width: 1099px) { main .mod_article > & { width: 100%; margin-left: 0; } grid-template-columns: minmax(0, 436px) minmax(0, 350px); column-gap: 28px; }
	& .Bildwechsel img { border-radius: 20px; }
	@media (max-width: 800px) { grid-template-columns: minmax(0, 1fr); row-gap: 32px; justify-items: center; }
}
.KastenPlatzhalter {
	display: grid;
	place-items: center;
	min-height: 337px;
	border-radius: 20px;
	background: #c4c4c4;
	& :is(h3, p) { margin: 0; text-align: center; color: var(--color_4); }
}
.Personenreihe .swiper-slide .content-headline + .content-text { margin-top: 33px; }
.Personenreihe .swiper-slide .BildEingepasst img { width: auto; height: 462px; max-width: 100%; margin-inline: auto; object-fit: contain; }
.ZitatMitQuelle .rte > p + p {
	margin-top: 28px;
	font-family: var(--font_family);
	font-size: var(--font_size);
	font-weight: 700;
	line-height: 28px;
}
.Friedhofsregion .Spalten3 > .content-element-group > * + * { margin-top: 15px; }
.Grabarten > * + * { margin-top: 50px !important; }
.Grabarten .content-headline + .content-text,
.Bestattungsorte .content-headline + .content-text { margin-top: 9px; }
.TextGroß .Zusatz { font-size: var(--font_size); font-weight: 700; }
.Bestattungsorte { row-gap: 50px; }
.Friedhofsregion > .content-headline + * { margin-top: 70px !important; }
.Friedhofsregion h3 { hyphens: manual; }
main .mod_article > .SpalteMittel { width: calc(1050px + var(--horizontal_spacing) * 2); }
.Rasterpunkte > .content-element-group > * + * { margin-top: 15px; }
.Rasterpunkte .rte { max-width: none; }
.Buchtipps strong { font-weight: inherit; color: var(--color_1); }
.TippLogo img { width: 475px !important; max-width: 100% !important; }
@media (min-width: 961px) {
	.RasterzeilenL { row-gap: var(--L) !important; }
	.RasterzeilenXL { row-gap: var(--XL) !important; }
}
.Rasterpunkte h3 { text-wrap: wrap; @media (min-width: 961px) { hyphens: manual; } }
.KlickZumLaden .Hinweis { padding: 0 var(--horizontal_spacing); border-radius: 0; background: none; }
.KlickZumLaden .Ladehinweis { margin-top: 17px; }
.KlickZumLaden .Ladehinweis .rte { max-width: 640px; font-size: 16px; font-weight: 400; line-height: 1.4; }
.KlickZumLaden .Nachgeladen { margin-top: 28px; }
.Kasten .KastenLogo img { width: 100% !important; max-width: 478px; }
.SeitentitelBraun h1, h1.SeitentitelBraun {
	font-family: var(--font_family);
	font-size: var(--schrift_ueberschrift);
	font-weight: 700;
	line-height: 1.2667;
	letter-spacing: 0;
	color: var(--color_4);
}
.Rechtstext .rte { font-weight: 400; }
.Rechtstext .rte :is(h2, h3) { margin-top: 1.4em; }
.Rechtstext .rte h3 { font-size: 1em; font-weight: 700; }
.Rechtstext .rte strong { font-weight: 700; }
.Stellenanzeige .rte h4 { margin-top: 1.4em; }
/* Stellenanzeige über die volle Inhaltsbreite, Text ab 1024 px zweispaltig — halb so lang, nichts versteckt */
.Stellenliste { display: grid; gap: 40px; & > * { margin: 0 !important; } }
@media (min-width: 1024px) {
	.Stellenliste .Stellenanzeige .TextNormal .rte { columns: 2; column-gap: 80px; }
	.Stellenliste .Stellenanzeige .TextNormal .rte :is(h4, li, p) { break-inside: avoid; }
	.Stellenliste .Stellenanzeige .TextNormal .rte h4 { break-after: avoid; }
	.Stellenliste .Stellenanzeige .TextNormal .rte ul { margin-top: 0; }
}
/* Kasten mit Schaltfläche am Ende: Schaltfläche sitzt immer unten (gleich hohe Kästen einer Reihe) */
.SchaltflächeUnten { display: flex; flex-direction: column; }
.SchaltflächeUnten > .content-hyperlink:last-child { margin-top: auto !important; }
.SchaltflächeUnten > :nth-last-child(2) { margin-bottom: 36px; }
.Stellenanzeige .rte h4:first-child { margin-top: 0; }
.Rechtstext .rte { overflow-wrap: anywhere; }
.Rechtstext .rte :is(h2, h3, h4) { hyphens: auto; }
.Filmnachweis .rte { margin-inline: auto; font-size: 16px; font-weight: 400; line-height: 1.4; text-align: center; }
.Nachrichtenraster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 61px 46px;
	@media (max-width: 900px) { grid-template-columns: 1fr; gap: 28px; }
	& > .pagination { grid-column: 1 / -1; }
}
.Nachrichtenkarte {
	padding: 50px;
	border-radius: 20px;
	background: var(--color_2);
	@media (max-width: 700px) { padding: 28px 22px; }
	& > * { margin: 0; }
	& .Nachrichtensymbol { display: block; width: 50px; height: 86px; border-radius: 0; }
	& .Datum { margin-top: 16px; font-size: var(--schrift_ueberschrift); font-weight: 400; line-height: 1.2667; }
	& h2 { margin-top: 9px; font-size: var(--font_size); font-weight: 700; line-height: 28px; }
	& h2 a { color: var(--color_1); text-decoration: none; }
	& h2 a:hover { text-decoration: underline; }
	& .Anriss { margin-top: 9px; }
	& .more { margin-top: 17px; }
	/* „Weiterlesen“ rechts unten, auch wenn die Karten einer Reihe verschieden lange Anrisse haben */
	display: flex;
	flex-direction: column;
	& .more { margin-top: auto; padding-top: 17px; align-self: flex-end; }
	& .more a { position: relative; display: inline-block; padding: 13px 16px 16px; border-radius: 8px; background: #fff; color: var(--color_1); line-height: 28px; text-decoration: none;
		&::after { content: ''; position: absolute; inset: 6px; border: 2px solid currentColor; border-radius: 3px; pointer-events: none; }
		&:hover { box-shadow: inset 0 0 0 2px var(--color_1); }
	}
	& .more .invisible { position: absolute; }
}
.Nachricht {
	& h1 { font-family: var(--font_family); font-size: var(--schrift_ueberschrift); font-weight: 400; line-height: 1.2667; letter-spacing: 0; color: var(--color_1); }
	& .info { margin-top: 9px; color: var(--color_5); }
	& .content-text { margin-top: 40px; }
	& .rte :is(h2, h3) { margin-top: 1.2em; color: var(--color_4); }
}
:where(main) :where(.content-text, .content-list) + :where(.content-hyperlink, .content-download, .content-downloads) { margin-top: 28px; }
:where(main) :where(.content-text, .content-list) + :where(h3.content-headline, .content-text:has(> h3:first-child)) { margin-top: 30px; }
main .mod_article > .Kasten { width: min(var(--content_width), 100% - var(--horizontal_spacing) * 2); }
.Nachrichtenraster .pagination ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
