/**
 * Bootstrap 5 Blocks – Ergänzungen zum Bootstrap-CSS des Themes (Frontend und Editor).
 * Bewusst klein gehalten: Farben, Abstände und Schriften kommen aus dem Theme.
 */

/* Jumbotron: in Bootstrap 5 entfallen, hier nachgebildet (wie Bootstrap 4.6) */
.jumbotron {
	padding: 2rem 1rem;
	margin-bottom: 2rem;
	background-color: var(--bs-secondary-bg, #e9ecef);
	border-radius: var(--bs-border-radius-lg, 0.5rem);
}
@media (min-width: 576px) {
	.jumbotron {
		padding: 4rem 2rem;
	}
}
.jumbotron-fluid {
	padding-right: 0;
	padding-left: 0;
	border-radius: 0;
}


/* Letztes Element in Boxen ohne Abstand nach unten */
.alert > :last-child,
.bs5-alert__content > :last-child,
.card-body > :last-child,
.bs5-media-text__content > :last-child,
.bs5-jumbotron__inner > :last-child,
.wp-block-bs5-column > :last-child {
	margin-bottom: 0;
}

/* Buttons dürfen umbrechen */
.bs5-button .btn {
	white-space: normal;
}

/* Card: Bild-Link ohne Zeilenabstand */
.wp-block-bs5-card > a {
	display: block;
}

/* Jumbotron mit Hintergrundbild */
.bs5-jumbotron--image {
	position: relative;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.bs5-jumbotron--overlay::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.45);
}
.bs5-jumbotron__inner {
	position: relative;
}
/* Abgedunkeltes Hintergrundbild: Schrift immer hell */
.bs5-jumbotron--overlay {
	color: #fff;
}

/* Bild + Text */
.bs5-media-text__media img {
	width: 100%;
}
.bs5-media-text__media .rounded-circle {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Akkordeon */
.bs5-accordion .card-header {
	padding: 0;
}
.bs5-accordion .card-header .btn {
	position: relative;
	padding: 0.75rem 3rem 0.75rem 1.25rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}
.bs5-accordion .card-header .btn::after {
	content: "\2212";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 1.25em;
}
.bs5-accordion .card-header .btn.collapsed::after {
	content: "+";
}

/* Inhaltsverzeichnis */
.bs5-toc__title {
	margin-bottom: 0.5rem;
}
.bs5-toc__list {
	padding-left: 1.25rem;
}
.bs5-toc__item--h3 {
	margin-left: 1rem;
	list-style-type: circle;
}

/* Beitrags-Teaser im Stil einer Slider-Spalte (Beitrags-Karussell) */
.bs5-teaser--plain .bs5-teaser__media {
	margin: 0 0 1rem;
}
.bs5-teaser--plain .bs5-teaser__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin: 0;
}
.bs5-row-scroll .bs5-teaser--plain .bs5-teaser__img {
	aspect-ratio: 4 / 5;
}
.bs5-teaser--plain .bs5-teaser__title a:hover {
	text-decoration: none;
	opacity: 0.6;
}
.bs5-teaser--plain .bs5-teaser__excerpt:last-child {
	margin-bottom: 0;
}

/* Beitrags-Teaser */
.bs5-teaser .card-img-top {
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Core-Stile */
p.is-style-bs5-kicker {
	letter-spacing: 0.1em;
	margin-bottom: 0.25rem;
}
.bs5-list-check li {
	position: relative;
	padding-left: 1.75em;
	margin-bottom: 0.25rem;
}
.bs5-list-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--primary, #007bff);
}

/* Zeile als horizontaler Slider (Zeitleiste, Teaser): Spalten nebeneinander, wischen/scrollen */
/* .row.… schlägt Bootstraps .row { flex-wrap: wrap }, egal in welcher Reihenfolge die Dateien laden */
.row.bs5-row-scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 0.5rem;
}
/* Handy 1 Spalte (mit Anschnitt der nächsten), Tablet 2, Desktop 3 */
.bs5-row-scroll > [class*="col"] {
	flex: 0 0 85%;
	max-width: 85%;
	scroll-snap-align: start;
}
@media (min-width: 768px) {
	.bs5-row-scroll > [class*="col"] {
		flex-basis: 50%;
		max-width: 50%;
	}
}
@media (min-width: 992px) {
	.bs5-row-scroll > [class*="col"] {
		flex-basis: 33.333%;
		max-width: 33.333%;
	}
}
.bs5-row-scroll .card-img-top {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.bs5-scroller-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 0.25rem 0 1.5rem;
}
.bs5-scroller-nav[hidden] {
	display: none;
}
.bs5-scroller-nav__btn {
	min-width: 3rem;
	line-height: 1;
}
.bs5-scroller-nav__btn:disabled {
	opacity: 0.3;
}
.bs5-scroller-btn {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
/* Pfeile seitlich: auf Höhe des ersten Bildes, außerhalb der Zeile, wenn Platz ist, sonst am Rand darüber */
.bs5-scroller--side {
	position: relative;
}
.bs5-scroller--side .bs5-scroller-btn {
	position: absolute;
	top: var(--bs5-arrow-top, 50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.25rem 0.5rem;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.8);
	color: #000;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s;
}
.bs5-scroller--side .bs5-scroller-btn--prev {
	left: 0;
}
.bs5-scroller--side .bs5-scroller-btn--next {
	right: 0;
}
.bs5-scroller--side.is-outside .bs5-scroller-btn {
	background: transparent;
}
.bs5-scroller--side.is-outside .bs5-scroller-btn--prev {
	left: auto;
	right: 100%;
}
.bs5-scroller--side.is-outside .bs5-scroller-btn--next {
	right: auto;
	left: 100%;
}
.bs5-scroller--side .bs5-scroller-btn:disabled {
	opacity: 0;
	pointer-events: none;
}
.bs5-scroller--side.is-outside .bs5-scroller-btn:disabled {
	opacity: 0.25;
}
.bs5-scroller--side .bs5-scroller-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.bs5-scroller--side.is-static .bs5-scroller-btn {
	display: none;
}

/* Quadratisch zugeschnittenes Bild (z. B. Autoren-Box) */
.bs5-img-square {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Datei-Block als Download-Zeile: Titel, Größe | Typ, Button rechts */
.wp-block-file.is-style-bs5-download {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25rem 1rem;
	align-items: center;
	padding: 0.75rem 0;
	margin-bottom: 0;
	border-bottom: 1px solid currentColor;
}
.wp-block-file.is-style-bs5-download > a:not(.wp-block-file__button) {
	grid-column: 1;
	text-transform: uppercase;
	text-decoration: none;
}
.wp-block-file.is-style-bs5-download .bs5-download__meta {
	grid-column: 1;
	font-size: 80%;
}
.wp-block-file.is-style-bs5-download .wp-block-file__button {
	grid-column: 2;
	grid-row: 1 / span 2;
	margin: 0;
}
/* Mit PDF-Vorschau: Vorschau über die volle Breite, darunter Dateiname, Größe | Typ und Button */
.wp-block-file.is-style-bs5-download .wp-block-file__embed {
	grid-column: 1 / -1;
	grid-row: 1;
	display: block;
	width: 100% !important;
	max-width: 100%;
	margin: 0 0 0.75rem;
	border: 0;
}
.wp-block-file.bs5-download--embed > a:not(.wp-block-file__button) {
	grid-row: 2;
}
.wp-block-file.bs5-download--embed .bs5-download__meta {
	grid-row: 3;
}
.wp-block-file.bs5-download--embed .wp-block-file__button {
	grid-row: 2 / span 2;
}
/* Erste Zeile einer Gruppe bekommt zusätzlich eine Linie oben */
:not(.is-style-bs5-download) + .wp-block-file.is-style-bs5-download,
.wp-block-file.is-style-bs5-download:first-child {
	border-top: 1px solid currentColor;
}

/* Spalte versetzt (Collage, Bildpaar) */
@media (min-width: 768px) {
	.bs5-mt-md-xl {
		margin-top: 8rem;
	}
}

/* Card-Icon */
.bs5-card-icon {
	font-size: 2rem;
	line-height: 1;
	padding-top: 1.25rem;
}
.wp-block-bs5-card:not([class*="bg-"]):not([class*="border-"]) > .bs5-card-icon {
	padding-top: 0;
}
.wp-block-bs5-card[class*="bg-"] > .bs5-card-icon,
.wp-block-bs5-card[class*="border-"] > .bs5-card-icon {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
.wp-block-bs5-card.text-center > .bs5-card-icon {
	text-align: center;
}

/* Große Zahl (Absatz-Stil), z. B. für nummerierte Feature-Boxen */
p.is-style-bs5-number {
	line-height: 1;
	margin-bottom: 0.5rem;
}

/* Karussell */
.bs5-carousel .carousel-item img {
	width: 100%;
}
.bs5-carousel[class*="bs5-carousel--ratio-"] .bs5-carousel-item__img {
	object-fit: cover;
}
.bs5-carousel--ratio-16x9 .bs5-carousel-item__img { aspect-ratio: 16 / 9; }
.bs5-carousel--ratio-3x2 .bs5-carousel-item__img { aspect-ratio: 3 / 2; }
.bs5-carousel--ratio-21x9 .bs5-carousel-item__img { aspect-ratio: 21 / 9; }
.bs5-carousel--ratio-1x1 .bs5-carousel-item__img { aspect-ratio: 1 / 1; }
.bs5-carousel-item--overlay::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
	pointer-events: none;
}
.bs5-carousel .carousel-caption {
	z-index: 2;
}
.bs5-carousel .carousel-caption > :last-child {
	margin-bottom: 0;
}
.bs5-carousel .carousel-caption:empty {
	display: none;
}
.bs5-carousel .carousel-indicators {
	z-index: 3;
}
/* Text unter dem Bild: auf dem Handy immer, ab Tablet wenn eingestellt */
@media (max-width: 767.98px) {
	.bs5-carousel .carousel-caption {
		position: static;
		padding: 1rem 0 2.5rem;
		color: inherit;
		text-align: left;
	}
	.bs5-carousel-item--overlay::after {
		display: none;
	}
	.bs5-carousel .carousel-indicators {
		margin-bottom: 0.5rem;
	}
	.bs5-carousel .carousel-indicators [data-bs-target] {
		background-color: currentColor;
	}
	/* Ohne Skript stünden die Pfeile auf der Mitte von Bild und Text; dann nur wischen */
	.bs5-carousel:not(.bs5-carousel--js) .carousel-control-prev,
	.bs5-carousel:not(.bs5-carousel--js) .carousel-control-next {
		display: none;
	}
}
.bs5-carousel--caption-below .carousel-caption {
	position: static;
	padding: 1rem 0 2.5rem;
	color: inherit;
	text-align: left;
}
.bs5-carousel--caption-below .bs5-carousel-item--overlay::after {
	display: none;
}
.bs5-carousel--caption-below .carousel-indicators [data-bs-target] {
	background-color: currentColor;
}

/* Mehr anzeigen: Button-Text je nach Zustand */
.bs5-expand__toggle .btn {
	text-decoration: none;
}
.bs5-expand__toggle .btn.collapsed .bs5-expand__less,
.bs5-expand__toggle .btn:not(.collapsed) .bs5-expand__more {
	display: none;
}
.bs5-expand__toggle .btn::after {
	content: " \25BE";
}
.bs5-expand__toggle .btn:not(.collapsed)::after {
	content: " \25B4";
}

/* Inhaltsverzeichnis: aufklappbar, zentriert */
.bs5-toc__toggle {
	color: inherit;
	text-decoration: none;
}
.bs5-toc__toggle::after {
	content: " \25B4";
	font-size: 0.8em;
}
.bs5-toc__toggle.collapsed::after {
	content: " \25BE";
}
.bs5-toc--centered .bs5-toc__list {
	display: inline-block;
	text-align: left;
}
h2[id],
h3[id] {
	scroll-margin-top: 2rem;
}

/* FAQ-Suche */
.bs5-faq-search__input {
	max-width: 30rem;
}

/* ------------------------------------------------------------------ */
/* Blog-Elemente (1.2)                                                 */
/* ------------------------------------------------------------------ */

/* Kreuz-Liste (Contra) */
.bs5-list-cross li {
	position: relative;
	padding-left: 1.75em;
	margin-bottom: 0.25rem;
}
.bs5-list-cross li::before {
	content: "\2717";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--danger, #dc3545);
}

/* Kurzfassung und Quellen */
.bs5-summary,
.bs5-sources {
	border: 1px solid rgba(0, 0, 0, 0.125);
	padding: 1.25rem 1.5rem;
}
.bs5-summary--filled {
	background-color: var(--light, #f8f9fa);
}
.bs5-summary__title,
.bs5-sources__title {
	font-weight: 700;
	margin-bottom: 0.75rem;
}
.bs5-summary__title {
	font-size: 1.25rem;
}
.bs5-summary__content > :last-child,
.bs5-sources__content > :last-child {
	margin-bottom: 0;
}
.bs5-sources {
	font-size: 0.875rem;
	border-width: 1px 0;
	padding-left: 0;
	padding-right: 0;
}
.bs5-sources a {
	word-break: break-word;
}

/* Schritt-für-Schritt-Anleitung: Nummern per CSS-Zähler */
.bs5-howto__meta {
	font-size: 0.875rem;
	font-weight: 700;
}
.bs5-howto__steps {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
	counter-reset: bs5-step;
}
.bs5-howto-step {
	counter-increment: bs5-step;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0 0 1.5rem 3.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.bs5-howto-step:last-child {
	border-bottom: 0;
	margin-bottom: 0;
}
.bs5-howto-step::before {
	content: counter(bs5-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.5rem;
	height: 2.5rem;
	line-height: 2.5rem;
	text-align: center;
	font-weight: 700;
	border: 1px solid currentColor;
	border-radius: 50%;
}
.bs5-howto-step__body {
	flex: 1 1 auto;
	min-width: 0;
}
.bs5-howto-step__title {
	margin-bottom: 0.25rem;
}
.bs5-howto-step__time {
	font-size: 0.875rem;
	opacity: 0.75;
	margin-bottom: 0.5rem;
}
.bs5-howto-step__text > :last-child {
	margin-bottom: 0;
}
.bs5-howto-step__media {
	margin: 0;
}
.bs5-howto-step__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
@media (min-width: 768px) {
	.bs5-howto-step {
		flex-direction: row;
		align-items: flex-start;
	}
	.bs5-howto-step__media {
		flex: 0 0 33%;
		max-width: 33%;
	}
}

/* Routeninfo */
.bs5-route {
	border: 1px solid rgba(0, 0, 0, 0.125);
	padding: 1.25rem 1.5rem;
}
.bs5-route__title {
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.bs5-route__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	margin-bottom: 0;
}
@media (min-width: 768px) {
	.bs5-route__facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.bs5-route__fact dt {
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.75;
}
.bs5-route__fact dd {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0;
}
.bs5-route__fact--start,
.bs5-route__fact--end {
	grid-column: span 2;
}
.bs5-route__level::before {
	content: "";
	display: inline-block;
	width: 0.65em;
	height: 0.65em;
	margin-right: 0.35em;
	border-radius: 50%;
	background-color: currentColor;
}
.bs5-route__level--leicht::before {
	background-color: #28a745;
}
.bs5-route__level--mittel::before {
	background-color: #fd7e14;
}
.bs5-route__level--schwer::before {
	background-color: #dc3545;
}
.bs5-route__links {
	margin: 1.25rem 0 0;
}
.bs5-route__links .btn {
	margin: 0 0.5rem 0.5rem 0;
}

/* Routeninfo mit Vorschaubild: Daten zweispaltig neben dem Bild, Bild auf dem Handy darunter */
.bs5-route__figure {
	margin: 0;
}
.bs5-route__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}
@media (max-width: 767.98px) {
	.bs5-route__media {
		margin-top: 1.25rem;
	}
	.bs5-route__media--above {
		margin: 0 0 1.25rem;
	}
}
@media (min-width: 768px) {
	.bs5-route--media .bs5-route__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1200px) {
	.bs5-route--media .bs5-route__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Steckbrief: Box mit frei benannten Angaben, optional Bild daneben */
.bs5-facts {
	border: 1px solid rgba(0, 0, 0, 0.125);
	padding: 1.25rem 1.5rem;
}
.bs5-facts__kicker {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.25rem;
	opacity: 0.75;
}
.bs5-facts__title {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.bs5-facts__list {
	margin: 0;
	padding: 0;
}
.bs5-facts__item + .bs5-facts__item {
	margin-top: 1rem;
}
.bs5-facts__item dt {
	font-weight: 700;
}
.bs5-facts__item dd {
	margin-bottom: 0;
}
.bs5-facts--grid .bs5-facts__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
}
.bs5-facts--grid .bs5-facts__item + .bs5-facts__item {
	margin-top: 0;
}
.bs5-facts--grid .bs5-facts__item dt {
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.75;
}
.bs5-facts--grid .bs5-facts__item dd {
	font-size: 1.125rem;
	font-weight: 700;
}
@media (min-width: 768px) {
	.bs5-facts--grid:not(.bs5-facts--media) .bs5-facts__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.bs5-facts__figure {
	margin: 0;
}
.bs5-facts__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}
@media (max-width: 767.98px) {
	.bs5-facts__media {
		margin-top: 1.25rem;
	}
	.bs5-facts__media--above {
		margin: 0 0 1.25rem;
	}
}
@media (min-width: 768px) {
	.bs5-facts--media .bs5-facts__body {
		align-self: center;
	}
}

/* Tabs: Reiter auf dem Handy wischbar statt umbrechen */
.bs5-tabs__nav {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1.25rem;
}
.bs5-tabs__nav .nav-link {
	white-space: nowrap;
}
.bs5-tab > :last-child {
	margin-bottom: 0;
}

/* Vergleichstabelle */
.wp-block-table.is-style-bs5-compare {
	overflow-x: auto;
}
.bs5-compare {
	min-width: 32rem;
}
.bs5-compare thead th {
	border-bottom-width: 2px;
	vertical-align: bottom;
}
.bs5-compare tbody td:first-child,
.bs5-compare tbody th:first-child {
	font-weight: 700;
}

/* Tipp vom Gastgeber */
.bs5-tip {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.25rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.125);
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.bs5-tip__media {
	flex: 0 0 5rem;
	margin: 0;
}
.bs5-tip__img {
	width: 5rem;
	height: 5rem;
	object-fit: cover;
}
@media (min-width: 768px) {
	.bs5-tip__media {
		flex-basis: 7rem;
	}
	.bs5-tip__img {
		width: 7rem;
		height: 7rem;
	}
}
.bs5-tip__body {
	flex: 1 1 auto;
	min-width: 0;
}
.bs5-tip__label {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}
.bs5-tip__text {
	font-size: 1.125rem;
	font-style: italic;
}
.bs5-tip__text > :last-child {
	margin-bottom: 0.5rem;
}
.bs5-tip__author {
	margin-bottom: 0;
	font-size: 0.875rem;
}

/* Autorenbox */
.bs5-author-box__label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.25rem;
}
.bs5-author-box__name {
	margin-bottom: 0.25rem;
}
.bs5-author-box__name a {
	color: inherit;
}
.bs5-author-box__role {
	font-style: italic;
	margin-bottom: 0.75rem;
}
.bs5-author-box__bio > :last-child {
	margin-bottom: 0.75rem;
}
.bs5-author-box__dates {
	font-size: 0.875rem;
	opacity: 0.75;
	margin-bottom: 0;
}

/* Karussell-Pfeile wie die seitlichen Slider-Pfeile: auf Höhe des Bildes, am Rand oder daneben */
.bs5-carousel {
	touch-action: pan-y;
}
.bs5-carousel .carousel-control-prev,
.bs5-carousel .carousel-control-next {
	top: var(--bs5-arrow-top, 50%) !important;
	bottom: auto !important;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 2.75rem;
	height: auto !important;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.25rem 0.5rem;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.8);
	color: #000;
	font-size: 2rem;
	line-height: 1;
	opacity: 1;
	cursor: pointer;
	transform: translateY(-50%);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: opacity 0.2s;
}
.bs5-carousel .carousel-control-prev {
	left: 0 !important;
	right: auto !important;
}
.bs5-carousel .carousel-control-next {
	right: 0 !important;
	left: auto !important;
}
.bs5-carousel.is-outside .carousel-control-prev,
.bs5-carousel.is-outside .carousel-control-next {
	background: transparent;
}
.bs5-carousel.is-outside .carousel-control-prev {
	left: auto !important;
	right: 100% !important;
}
.bs5-carousel.is-outside .carousel-control-next {
	right: auto !important;
	left: 100% !important;
}
.bs5-carousel .carousel-control-prev:hover,
.bs5-carousel .carousel-control-next:hover,
.bs5-carousel .carousel-control-prev:focus,
.bs5-carousel .carousel-control-next:focus {
	color: #000;
	opacity: 0.6;
	text-decoration: none;
}
.bs5-carousel .carousel-control-prev:focus-visible,
.bs5-carousel .carousel-control-next:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
/* Pfeilzeichen statt der Bootstrap-Grafik (wie bei den Slider-Pfeilen) */
.bs5-carousel .carousel-control-prev-icon,
.bs5-carousel .carousel-control-next-icon {
	position: static;
	width: auto;
	height: auto;
	background: none;
}
.bs5-carousel .carousel-control-prev-icon::after,
.bs5-carousel .carousel-control-next-icon::after {
	position: static !important;
	width: auto !important;
	font-size: inherit !important;
}
.bs5-carousel .carousel-control-prev-icon::after {
	content: "\2190";
}
.bs5-carousel .carousel-control-next-icon::after {
	content: "\2192";
}

/* Abstand */
.bs5-spacer {
	display: block;
	height: 0;
	box-sizing: content-box;
	margin: 0;
	clear: both;
}

.bs5-teaser__more {
	display: inline-block;
}

/* Lightbox-Link um Bilder: Bild bleibt ein Block, Mauszeiger zeigt die Vergrößerung an */
a.bs5-lightbox {
	display: block;
	cursor: zoom-in;
}
.bs5-tip__media a.bs5-lightbox {
	display: inline-block;
}

/* Bildschirmfüllend (Bootstrap-Modal, assets/js/zoom.js) */
.bs5-zoom-modal {
	z-index: 100000;
	padding: 0 !important;
}
.bs5-zoom-modal .modal-dialog {
	max-width: none;
	width: 100%;
	height: 100%;
	margin: 0;
}
.bs5-zoom-modal .modal-content {
	height: 100%;
	border: 0;
	border-radius: 0;
	background-color: #000;
}
.bs5-zoom-modal .modal-body,
.bs5-zoom-modal .carousel,
.bs5-zoom-modal .carousel-inner,
.bs5-zoom-modal .carousel-item {
	height: 100%;
}
.bs5-zoom-modal__img {
	display: block;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	object-fit: cover;
	margin: 0;
}
/* Schließen: BS5-.btn-close, weiß mit Schatten, damit es auf hellen und dunklen Bildern sichtbar ist */
.bs5-zoom-modal .bs5-zoom-modal__close {
	position: fixed;
	top: 1rem;
	right: 1.5rem;
	z-index: 3;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0.5rem;
	box-sizing: content-box;
	background-size: 1.5rem;
	filter: invert(1) grayscale(100%) brightness(200%) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
	opacity: 1;
}
.bs5-zoom-modal .bs5-zoom-modal__close:hover,
.bs5-zoom-modal .bs5-zoom-modal__close:focus {
	opacity: 0.8;
}
/* Pfeile wie beim Karussell, aber innen am Bildrand */
.bs5-zoom-modal .bs5-carousel .carousel-control-prev {
	left: 1rem !important;
}
.bs5-zoom-modal .bs5-carousel .carousel-control-next {
	right: 1rem !important;
}

/* ------------------------------------------------------------------ */
/* Redesign-Stile (2.1): Schwarzweiß-Bilder, Angebot, Etiketten, Chips, */
/* Trennbalken, Preistabelle, Umschalter, Karussell mit Farbband        */
/* ------------------------------------------------------------------ */

/* Schwarzweiß, farbig bei Berührung. Maus: beim Darüberfahren oder per Tastatur-Fokus.
   Touch: solange das Bild in der Bildschirmmitte steht (scroll-gesteuerte Animation, sonst farbe.js). */
.is-style-bs5-sw img,
.bs5-sw img,
img.bs5-sw {
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
	.is-style-bs5-sw:not(.wp-block-gallery):hover img,
	.is-style-bs5-sw:not(.wp-block-gallery):focus-within img,
	.wp-block-gallery.is-style-bs5-sw figure:hover img,
	.wp-block-gallery.is-style-bs5-sw figure:focus-within img,
	.bs5-sw:hover img,
	.bs5-sw:focus-within img,
	img.bs5-sw:hover {
		filter: none;
	}
}
@keyframes bs5-farbe {
	0% { filter: grayscale(1) contrast(1.05); }
	50% { filter: grayscale(0) contrast(1); }
	100% { filter: grayscale(1) contrast(1.05); }
}
@media (hover: none), (pointer: coarse) {
	@supports (animation-timeline: view()) {
		.is-style-bs5-sw img,
		.bs5-sw img,
		img.bs5-sw {
			transition: none;
			animation: bs5-farbe linear both;
			animation-timeline: view();
			animation-range: cover 10% cover 90%;
		}
	}
	.is-style-bs5-sw img.is-farbig,
	.bs5-sw img.is-farbig,
	img.bs5-sw.is-farbig {
		filter: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.is-style-bs5-sw img,
	.bs5-sw img,
	img.bs5-sw {
		transition: none;
	}
}
@media (prefers-reduced-motion: reduce) and (hover: none), (prefers-reduced-motion: reduce) and (pointer: coarse) {
	.is-style-bs5-sw img,
	.bs5-sw img,
	img.bs5-sw {
		animation: none;
		filter: none;
	}
}

/* Angebot (Abo-Karte): Preis und Button stehen unten, auch wenn die Texte verschieden lang sind */
.wp-block-bs5-card.is-style-bs5-offer {
	border: 0;
}
.is-style-bs5-offer > .card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.5rem 1.25rem 2rem;
}
.is-style-bs5-offer > .card-body > * {
	max-width: 100%;
}
.is-style-bs5-offer > .card-body > :is(ul, ol, figure, table, .wp-block-table, .wp-block-list) {
	align-self: stretch;
}
.is-style-bs5-offer > .card-body > .is-style-bs5-price,
.is-style-bs5-offer > .card-body > :last-child:not(.is-style-bs5-price + *) {
	margin-top: auto;
}
.is-style-bs5-offer > .card-body > :last-child {
	margin-bottom: 0;
}

/* Preis */
.is-style-bs5-price {
	font-weight: 700;
	font-size: 1.6em;
	line-height: 1;
	margin-bottom: 0.75rem;
}

/* Etikett: Absatz-Stil und Textformat („Neu“ neben einer Überschrift) */
.is-style-bs5-label,
.bs5-tag {
	display: inline-block;
	padding: 0.4em 0.55em;
	background: #000;
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	vertical-align: middle;
}
p.is-style-bs5-label {
	display: table;
}
:is(h1, h2, h3, h4, h5, h6) .bs5-tag {
	margin-left: 0.4em;
	font-size: max(0.35em, 0.7rem);
	letter-spacing: 0;
}

/* Liste als Sprung-Chips (Links als Kästchen) und als Etiketten */
ul.is-style-bs5-chips,
ol.is-style-bs5-chips,
ul.is-style-bs5-tags,
ol.is-style-bs5-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}
.is-style-bs5-chips > li,
.is-style-bs5-tags > li {
	margin: 0;
	padding: 0;
}
.is-style-bs5-chips > li::before,
.is-style-bs5-tags > li::before,
.is-style-bs5-chips > li::marker,
.is-style-bs5-tags > li::marker {
	content: none;
	display: none;
}
.is-style-bs5-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1em;
	color: inherit;
	text-decoration: none;
	box-shadow: inset 0 0 0 2px currentColor;
}
.is-style-bs5-chips a:hover,
.is-style-bs5-chips a:focus-visible,
.is-style-bs5-chips a[aria-current] {
	background: #000;
	color: #fff;
	box-shadow: inset 0 0 0 2px #000;
	opacity: 1;
}
.is-style-bs5-tags > li {
	padding: 0.5em 0.6em;
	background: #000;
	color: #fff;
	font-size: 0.75em;
	line-height: 1;
	text-transform: uppercase;
}
.is-style-bs5-tags a {
	color: inherit;
}

/* Häkchen mit Linien */
ul.is-style-bs5-lines,
ol.is-style-bs5-lines {
	padding: 0;
	list-style: none;
}
.is-style-bs5-lines > li {
	position: relative;
	margin: 0;
	padding: 0.4em 0 0.4em 2em;
	border-top: 1px solid currentColor;
}
.is-style-bs5-lines > li:last-child {
	border-bottom: 1px solid currentColor;
}
.is-style-bs5-lines > li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.85em;
	width: 0.8em;
	height: 0.4em;
	border-left: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(-45deg);
}

/* Trennbalken („↓ Am Spielplan“) */
.is-style-bs5-bar {
	margin: 0;
	padding: 0.45rem 1.25rem;
	background: #000;
	color: #fff;
	font-size: 0.8em;
	line-height: 1.2;
}
.is-style-bs5-bar::before {
	content: "\2193\00a0";
	content: "\2193\00a0" / "";
}

/* Preistabelle: Zeilen, in denen nur die erste Zelle gefüllt ist, sind Zwischenüberschriften */
.wp-block-table.is-style-bs5-prices table {
	width: 100%;
	border-collapse: collapse;
}
.wp-block-table.is-style-bs5-prices :is(th, td) {
	padding: 0.6em 1em 0.6em 0;
	border: 0;
	border-top: 1px solid currentColor;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-bs5-prices thead {
	border: 0;
}
.wp-block-table.is-style-bs5-prices thead :is(th, td) {
	border-top: 0;
	border-bottom: 2px solid currentColor;
	font-size: 0.75em;
	text-transform: uppercase;
}
.wp-block-table.is-style-bs5-prices tbody tr > :first-child {
	font-weight: 700;
}
.wp-block-table.is-style-bs5-prices tbody tr:has(> :nth-child(2):empty):has(> :last-child:empty) > * {
	padding-top: 1.1em;
	border-top-width: 2px;
}
.wp-block-table.is-style-bs5-prices tbody tr:has(> :nth-child(2):empty):has(> :last-child:empty) > :first-child {
	font-size: 0.75em;
	text-transform: uppercase;
}
.wp-block-table.is-style-bs5-prices tfoot {
	border: 0;
}
.wp-block-table.is-style-bs5-prices :is(th, td) {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}
@media (max-width: 575.98px) {
	/* Mehr als drei Spalten oder lange Hinweise: lieber seitlich wischen als Wörter zerhacken */
	.wp-block-table.is-style-bs5-prices table {
		width: max-content;
		min-width: 100%;
	}
	.wp-block-table.is-style-bs5-prices :is(th, td) {
		max-width: 13rem;
	}
}

/* Tabs als Umschalter: gleich breite Reiter, der gewählte schwarz */
.is-style-bs5-segment > .bs5-tabs__nav {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 0;
	margin-bottom: 1.5rem;
	border: 0;
}
.is-style-bs5-segment > .bs5-tabs__nav .nav-item {
	margin: 0;
}
.is-style-bs5-segment > .bs5-tabs__nav .nav-link {
	width: 100%;
	min-height: 60px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #000;
	box-shadow: inset 0 0 0 2px #000;
	font-weight: 700;
}
.is-style-bs5-segment > .bs5-tabs__nav .nav-link.active {
	background: #000;
	color: #fff;
}
.is-style-bs5-segment > .bs5-tabs__nav .nav-link:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

/* Karussell „Farbband mit Steuerleiste“: Text als farbiges Band unter dem Bild, darüber eine
   schwarze Leiste mit Zurück, Pause, Weiter, Punkten und Zähler. */
.bs5-carousel.is-style-bs5-band {
	display: flex;
	flex-direction: column;
	container-type: inline-size;
	--bs5-band-img-h: 56.25cqw;
}
.is-style-bs5-band > .carousel-inner {
	order: 1;
}
.is-style-bs5-band.bs5-carousel--ratio-3x2 { --bs5-band-img-h: 66.667cqw; }
.is-style-bs5-band.bs5-carousel--ratio-21x9 { --bs5-band-img-h: 42.857cqw; }
.is-style-bs5-band.bs5-carousel--ratio-1x1 { --bs5-band-img-h: 100cqw; }
.is-style-bs5-band .carousel-item {
	background: var(--bs5-band, #fff);
}
.is-style-bs5-band .bs5-carousel-item.is-style-bs5-band-gelb { --bs5-band: #fced6f; }
.is-style-bs5-band .bs5-carousel-item.is-style-bs5-band-blau { --bs5-band: #a4bde4; }
.is-style-bs5-band .bs5-carousel-item.is-style-bs5-band-orange { --bs5-band: #f59f40; }
.is-style-bs5-band .bs5-carousel-item.is-style-bs5-band-gruen { --bs5-band: #4abaab; }
.is-style-bs5-band .bs5-carousel-item--overlay::after {
	display: none;
}
.bs5-carousel.is-style-bs5-band .carousel-caption {
	position: static;
	min-height: 12rem;
	padding: 1.25rem 1.25rem 2rem;
	color: #000;
	text-align: left;
	font-size: clamp(1.3rem, 2.7cqw, 2.4rem);
	line-height: 1.25;
}
.is-style-bs5-band .carousel-caption a {
	color: inherit;
}
.is-style-bs5-band .carousel-caption .is-style-bs5-label {
	margin-bottom: 0.9rem;
	font-size: max(0.4em, 0.8rem);
}
.bs5-band-ctl {
	order: 2;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	background: #000;
	color: #fff;
}
.is-style-bs5-band[class*="bs5-carousel--ratio-"]:has(.bs5-carousel-item__img) > .bs5-band-ctl {
	position: absolute;
	z-index: 5;
	right: 1.25rem;
	top: calc(var(--bs5-band-img-h) - 56px - 1.25rem);
}
.bs5-band-ctl__btn {
	display: inline-grid;
	place-items: center;
	min-width: 48px;
	height: 48px;
	padding: 0 0.5rem;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}
.bs5-band-ctl__btn[hidden] {
	display: none;
}
.bs5-band-ctl__btn:hover {
	background: #fff;
	color: #000;
}
.bs5-band-ctl :focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}
.bs5-carousel.is-style-bs5-band .bs5-band-ctl__dots {
	position: static;
	z-index: auto;
	display: flex;
	margin: 0;
	padding: 0;
}
.bs5-carousel.is-style-bs5-band .bs5-band-ctl__dots [data-bs-target] {
	box-sizing: border-box;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	opacity: 1;
	text-indent: 0;
	cursor: pointer;
}
.bs5-band-ctl__dot i {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px #fff;
}
.bs5-band-ctl__dot.active i,
.bs5-band-ctl__dot[aria-current="true"] i {
	background: #fff;
}
.bs5-band-ctl__count {
	padding: 0 0.6rem;
	font-weight: 700;
	font-size: 1rem;
	white-space: nowrap;
}
@media (max-width: 767.98px) {
	/* Handy: Bild 4:3, die Leiste steht zwischen Bild und Band */
	.bs5-carousel.is-style-bs5-band[class*="bs5-carousel--ratio-"] {
		--bs5-band-img-h: 75cqw;
	}
	.is-style-bs5-band[class*="bs5-carousel--ratio-"] .bs5-carousel-item__img {
		aspect-ratio: 4 / 3;
	}
	.is-style-bs5-band[class*="bs5-carousel--ratio-"]:has(.bs5-carousel-item__img) > .bs5-band-ctl {
		left: 0;
		right: 0;
		top: var(--bs5-band-img-h);
		justify-content: space-between;
	}
	.is-style-bs5-band[class*="bs5-carousel--ratio-"]:has(.bs5-carousel-item__img) .carousel-caption {
		margin-top: 56px;
	}
	.bs5-band-ctl__count {
		display: none;
	}
	.bs5-carousel.is-style-bs5-band .carousel-caption {
		min-height: 0;
		padding: 1rem 1rem 1.5rem;
	}
}

/* Hintergrund (Panel „Hintergrund“): etwas Innenabstand, Abstands-Klassen (p-*) haben Vorrang */
:where(.bs5-has-bg) {
	padding: 0.75em 1em;
}
:where(.bs5-has-bg) > :last-child {
	margin-bottom: 0;
}
