/* =========================================================
   Sitepackage wb_marktoberdorf – main.css
   Bootstrap 5.3.8 wird separat geladen. Maße in px.
   ========================================================= */

:root {
	--wbmod-accent: #e25b60;
	--wbmod-accent-dark: #921c3f;
	--wbmod-dark: #1f2a33;
	--wbmod-gray: #5b6670;
	--wbmod-light: #f2f4f5;
	--wbmod-border: #dde2e6;

	--bs-primary: var(--wbmod-accent);
	--bs-primary-rgb: 190, 58, 63;
	--bs-link-color: var(--wbmod-accent);
	--bs-link-color-rgb: 190, 58, 63;
	--bs-link-hover-color: var(--wbmod-accent-dark);
	--bs-link-hover-color-rgb: 146, 28, 63;
	--bs-body-color: var(--wbmod-dark);
	--bs-body-font-size: 16px;
	--bs-body-line-height: 1.6;
}

body {
	font-size: 16px;
}

h1,
h2,
h3,
h4,
h5 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--wbmod-dark);
	hyphens: auto;
}

h1 {
	font-size: 32px;
}

h2 {
	font-size: 28px;
	margin-bottom: 16px;
}

h3 {
	font-size: 22px;
}

h4 {
	font-size: 19px;
}

h5 {
	font-size: 17px;
}

@media (min-width: 1399px) {
	h1 {
		hyphens: none;
	}
}

@media (min-width: 992px) {
	h1 {
		font-size: 36px;
	}

	h2 {
		font-size: 32px;
	}

	h3 {
		font-size: 24px;
	}
}

.lead {
	font-size: 19px;
}

.small,
small {
	font-size: 14px;
}

/* Buttons */
.btn {
	font-size: 16px;
	padding: 10px 20px;
	border-radius: 4px;
}

.btn-lg {
	font-size: 18px;
	padding: 14px 28px;
}

.btn-primary {
	--bs-btn-bg: var(--wbmod-accent);
	--bs-btn-border-color: var(--wbmod-accent);
	--bs-btn-hover-bg: var(--wbmod-accent-dark);
	--bs-btn-hover-border-color: var(--wbmod-accent-dark);
	--bs-btn-active-bg: var(--wbmod-accent-dark);
	--bs-btn-active-border-color: var(--wbmod-accent-dark);
	--bs-btn-disabled-bg: var(--wbmod-accent);
	--bs-btn-disabled-border-color: var(--wbmod-accent);
	--bs-btn-focus-shadow-rgb: 190, 58, 63;
}

.btn-outline-primary {
	--bs-btn-color: var(--wbmod-accent);
	--bs-btn-border-color: var(--wbmod-accent);
	--bs-btn-hover-bg: var(--wbmod-accent);
	--bs-btn-hover-border-color: var(--wbmod-accent);
	--bs-btn-active-bg: var(--wbmod-accent-dark);
	--bs-btn-active-border-color: var(--wbmod-accent-dark);
	--bs-btn-focus-shadow-rgb: 190, 58, 63;
}

.btn .bi {
	margin-left: 6px;
}

.btn .bi:first-child {
	margin-left: 0;
	margin-right: 6px;
}

/* Skip-Link */
.skip-link:focus {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1100;
	padding: 8px 16px;
	background: #fff;
	border: 2px solid var(--wbmod-accent);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: #fff;
	border-bottom: 1px solid var(--wbmod-border);
}

.site-header .navbar {
	padding-top: 14px;
	padding-bottom: 14px;
	transition: padding .25s ease;
}

/* Eine Zeile erzwingen: Logo, Notfall- und Menübutton bleiben nebeneinander.
   Bootstrap setzt an .navbar flex-wrap: wrap, dadurch rutschten die Buttons
   auf schmalen Displays in eine zweite Zeile. */
.site-header .navbar>.site-header__inner {
	flex-wrap: nowrap;
}

.site-header .navbar-brand {
	margin-right: 16px;
	padding: 0;
	/* darf als Einziges schrumpfen, wenn der Platz nicht reicht */
	min-width: 0;
	flex: 0 1 auto;
}

.site-header .navbar-brand img {
	display: block;
	height: 64px;
	width: auto;
	/* Notnagel für sehr schmale Geräte: Bild wird schmaler statt umzubrechen */
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	transition: height .25s ease;
}

.site-header.is-scrolled .navbar {
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-header.is-scrolled .navbar-brand img {
	height: 48px;
}

.site-header .nav-link {
	font-size: 15px;
	font-weight: 600;
	color: var(--wbmod-dark);
	padding: 8px 10px;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
	color: var(--wbmod-accent);
}

.site-header .dropdown-menu {
	font-size: 15px;
	border-radius: 4px;
	padding: 8px 0;
}

.site-header .dropdown-item {
	padding: 8px 16px;
}

.site-header .dropdown-item.active,
.site-header .dropdown-item:active {
	background-color: var(--wbmod-accent);
}

#mainNavigation ul.navbar-nav {
	line-height: 1;
	margin-right: 30px;
}

@media (min-width: 992px) {
	.site-header .navbar {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.site-header .navbar-brand img {
		height: 72px;
	}

	.site-header .nav-link {
		font-size: 14px;
		padding: 4px 6px;
	}

	.site-header.is-scrolled .navbar {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.site-header.is-scrolled .navbar-brand img {
		height: 56px;
	}
}

/* Desktop-Navigation zweizeilig: die letzten drei Menüpunkte (Unsere
   Immobilien, Formulare, Kontakt) rücken in eine zweite Zeile. Der Umbruch
   wird durch ein leeres, volle Breite einnehmendes Listenelement (.nav-break)
   erzwungen, das im Template vor „Unsere Immobilien" steht. Beide Zeilen
   bleiben rechtsbündig (wie das bisherige ms-auto). Nur ab 992 px; das mobile
   Menü (eigenes Panel) bleibt unberührt, da diese Liste unter 992 px
   ausgeblendet ist. */
@media (min-width: 992px) {
	.site-header .navbar-nav.d-lg-flex {
		flex-wrap: wrap;
		justify-content: flex-end;
		row-gap: 4px;
	}

	.site-header .navbar-nav .nav-break {
		flex: 0 0 100%;
		width: 100%;
		height: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	main {
		min-height: 70vh;
	}
}

@media (min-width: 1200px) {
	.site-header .navbar-brand img {
		height: 90px;
	}

	.site-header .nav-link {
		font-size: 16px;
		padding: 8px 18px;
	}
}

@media (min-width: 1200px) {
	.site-emergency {
		gap: 10px;
		margin-left: 24px;
		padding: 10px 16px;
		font-size: 14px;
	}

	.site-emergency .bi {
		font-size: 22px;
	}
}

@media (min-width: 1400px) {
	.site-header .nav-link {
		padding: 4px 26px;
	}
}

/* Notfall-Button im Header */
.site-emergency {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	margin-right: 8px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	color: #fff;
	background: var(--wbmod-accent);
	border: 0;
	border-radius: 4px;
	transition: background-color .2s ease;
}

.site-emergency .bi {
	font-size: 18px;
}

.site-emergency:hover,
.site-emergency:focus-visible {
	background: var(--wbmod-accent-dark);
}

.site-emergency:focus-visible {
	outline: 2px solid var(--wbmod-dark);
	outline-offset: 2px;
}

@media (min-width: 992px) {
	.site-emergency {
		gap: 8px;
		margin-left: 12px;
		margin-right: 0;
		padding: 8px 12px;
		font-size: 13px;
	}

	.site-emergency .bi {
		font-size: 18px;
	}
}

/* Notfall-Button erst ab 575,98 px und schmaler nach unten (Logo bleibt groß).
   Darüber (ab 576 px) bleibt der Button neben der Navigation bzw. dem
   Menü-Symbol, damit das Logo oben in voller Größe stehen kann.
   Der unsichtbare Zeilenumbruch (::after, volle Breite, 0 Höhe) erzwingt den
   Button zuverlässig in die zweite Zeile. */
@media (max-width: 575.98px) {
	.site-header .navbar>.site-header__inner {
		flex-wrap: wrap;
		align-items: center;
	}

	.site-header .navbar-brand {
		order: 0;
	}

	.site-menu-toggle {
		order: 1;
		margin-left: auto;
	}

	.site-header .navbar>.site-header__inner::after {
		content: "";
		order: 2;
		flex: 0 0 100%;
		height: 0;
	}

	.site-emergency {
		order: 3;
		margin-left: 0;
		margin-right: 0;
		margin-top: 8px;
	}
}

/* Notfall-Modal */
.site-emergency-modal .modal-title {
	font-size: 22px;
	margin: 0;
}

.site-emergency-modal .modal-body {
	font-size: 16px;
}

.site-emergency-modal__phone {
	display: block;
	margin-bottom: 20px;
	padding: 12px 16px;
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	color: var(--wbmod-accent);
	border: 2px solid var(--wbmod-accent);
	border-radius: 6px;
}

.site-emergency-modal__phone:hover,
.site-emergency-modal__phone:focus {
	color: #fff;
	background: var(--wbmod-accent);
}

.site-emergency-modal__subtitle {
	font-size: 18px;
	margin: 20px 0 8px;
}

/* =========================================================
   Mobile Navigation < 992 px (Offcanvas rechts, Panels)
   ========================================================= */
.site-menu-toggle {
	display: inline-flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 4px;
	color: #fff;
	background: var(--wbmod-accent);
	border: 0;
	border-radius: 4px;
	line-height: 1;
}

#c2.wbmod-hero .wbmod-hero__inner .align-items-center.g-5 .col-lg-5.offset-lg-1 {
	display: none;
}

.site-menu-toggle .bi {
	font-size: 30px;
}

.site-menu-toggle__label {
	font-size: 12px;
	margin-top: 2px;
}

.site-menu-toggle:focus-visible {
	outline: 2px solid var(--wbmod-dark);
	outline-offset: 2px;
}

/* Sehr schmale Geräte (< 400 px): Logo und Buttons etwas kompakter, damit
   Notfall- und Menübutton zusammen mit dem Logo in der Kopfzeile Platz finden.
   Ab 400 px bleibt alles unverändert. */
@media (max-width: 399.98px) {
	.site-header .navbar-brand {
		margin-right: 10px;
	}

	.site-header .navbar-brand img {
		height: 52px;
	}

	.site-header.is-scrolled .navbar-brand img {
		height: 42px;
	}

	.site-emergency {
		gap: 6px;
		margin-right: 6px;
		padding: 5px 8px;
		font-size: 11px;
	}

	.site-emergency .bi {
		font-size: 16px;
	}

	.site-menu-toggle {
		width: 46px;
		height: 46px;
	}

	.site-menu-toggle .bi {
		font-size: 26px;
	}
}

@media (max-width: 991.98px) {
	.container {
		max-width: 100%;
	}

	.site-offcanvas {
		--bs-offcanvas-width: 350px;
		max-width: 88vw;
		background: var(--wbmod-accent);
		color: #fff;
		border-left: 0 !important;
	}

	.site-offcanvas__header {
		min-height: 84px;
		padding: 12px 15px;
		background: #fff;
	}

	.site-offcanvas__logo {
		height: 50px;
		width: auto;
	}

	.site-offcanvas__close {
		margin-left: auto;
		padding: 6px;
		font-size: 26px;
		line-height: 1;
		color: #000;
		background: none;
		border: 0;
	}

	.site-offcanvas__body {
		position: relative;
		display: flex;
		flex-direction: column;
		padding: 0;
		overflow-x: hidden;
	}

	/* Offcanvas liegt im sticky Header: Header beim Öffnen über das Backdrop heben
       und die Kopfleiste selbst abdunkeln */
	.site-header:has(.offcanvas.show, .offcanvas.showing, .offcanvas.hiding) {
		z-index: 1046;
	}

	.site-header:has(.offcanvas.show, .offcanvas.showing) .navbar::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, .5);
	}
}

.mobile-nav__list {
	margin: 0 15px;
	padding: 0;
	list-style: none;
}

.mobile-nav__item {
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, .85);
}

.mobile-nav__link {
	flex: 1 1 auto;
	padding: 10px 5px;
	font-size: 19px;
	line-height: 1.4;
	color: #fff;
	text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
	color: #fff;
	text-decoration: underline;
}

.mobile-nav__link.is-active {
	font-weight: 700;
}

.mobile-nav__next {
	flex: 0 0 44px;
	height: 44px;
	padding: 0;
	font-size: 18px;
	color: #fff;
	background: none;
	border: 0;
}

.mobile-nav__panel {
	position: absolute;
	inset: 0;
	z-index: 1;
	min-height: 100%;
	overflow-y: auto;
	background: var(--wbmod-accent);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .3s ease-in-out, visibility .3s;
}

.mobile-nav__panel.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mobile-nav__back {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 58px;
	padding: 10px 25px;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	color: #000;
	background: #ececec;
	border: 0;
}

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

/* =========================================================
   Seiteninhalt
   ========================================================= */
.page-content {
	padding-top: 48px;
	padding-bottom: 64px;
}

/* Startseite: vollbreite Sektionen */
.home-section {
	padding-top: 56px;
	padding-bottom: 56px;
}

@media (min-width: 992px) {
	#c2.wbmod-hero .wbmod-hero__inner .align-items-center.g-5 .col-lg-5.offset-lg-1 {
		display: block;
	}

	.wbmod-hero {
		padding-top: 40px;
		padding-bottom: 15px;
	}

	.home-section {
		padding-top: 80px;
		padding-bottom: 80px;
	}
}

.home-section--section-light {
	background: var(--wbmod-light);
}

.home-section--section-dark {
	background: var(--wbmod-dark);
	color: #fff;
}

.home-section--section-dark h2,
.home-section--section-dark h3,
.home-section--section-dark .section-head__title {
	color: #fff;
}

.home-section--section-dark a:not(.btn) {
	color: #fff;
}

/* Unterseiten: vollbreite Sektionen
   Elemente, die direkt im Inhaltsbereich liegen und beim Rahmen
   "Sektion hell" oder "Sektion dunkel" gewählt haben, bekommen einen
   Hintergrund über die ganze Fensterbreite. Der Inhalt bleibt im Raster.

   Die Fläche kommt aus einem box-shadow mit sehr großem Spread, clip-path
   begrenzt sie auf die Höhe des Elements. Gegenüber der üblichen Lösung mit
   100vw hat das den Vorteil, dass die Breite der Scrollleiste nicht
   mitgerechnet wird – es entsteht also kein waagerechtes Scrollen.

   Nur direkte Kinder: Ein Element in einer Container-Spalte soll keinen
   vollbreiten Hintergrund hinter das halbe Layout ziehen. */
.page-content>.frame-section-light,
.page-content>.frame-section-dark {
	padding-top: 40px;
	padding-bottom: 40px;
	background: var(--wbmod-section-bg);
	box-shadow: 0 0 0 100vmax var(--wbmod-section-bg);
	clip-path: inset(0 -100vmax);
}

.page-content>.frame-section-light {
	--wbmod-section-bg: var(--wbmod-light);
	--wbmod-table-bg: var(--wbmod-light);
}

.page-content>.frame-section-dark {
	--wbmod-section-bg: var(--wbmod-dark);
	--wbmod-table-bg: var(--wbmod-dark);
	color: #fff;
}

.page-content>.frame-section-dark h1,
.page-content>.frame-section-dark h2,
.page-content>.frame-section-dark h3,
.page-content>.frame-section-dark h4,
.page-content>.frame-section-dark h5,
.page-content>.frame-section-dark .section-head__title {
	color: #fff;
}

.page-content>.frame-section-dark a:not(.btn) {
	color: #fff;
}

@media (min-width: 992px) {

	.page-content>.frame-section-light,
	.page-content>.frame-section-dark {
		padding-top: 56px;
		padding-bottom: 56px;
	}
}

/* Tabellen in Sektionen
   Ohne Angabe ist der Tabellenhintergrund nicht verlässlich – manche
   Browser und Erweiterungen setzen Zeilen auf Weiß, andere lassen sie
   durchscheinen. Deshalb hier festgelegt. */
.page-content>.frame-section-light table,
.home-section--section-light table {
	background: #fff;
}

.page-content>.frame-section-dark table,
.home-section--section-dark table {
	background: transparent;
}

.page-content>.frame-section-dark th,
.page-content>.frame-section-dark td,
.home-section--section-dark th,
.home-section--section-dark td {
	border-bottom-color: rgba(255, 255, 255, .22);
}

.page-content>.frame-section-dark tbody th,
.home-section--section-dark tbody th {
	color: #fff;
}

.page-content>.frame-section-dark thead th,
.home-section--section-dark thead th {
	background: rgba(255, 255, 255, .12);
}

/* Sektionskopf (Content Blocks) */
.section-head {
	max-width: 760px;
	margin-bottom: 32px;
}

.section-head__kicker,
.wbmod-hero__kicker {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wbmod-accent);
	margin-bottom: 8px;
}

.section-head__text p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Content Block: wbmod-hero
   ========================================================= */
.wbmod-hero {
	position: relative;
	display: flex;
	align-items: center;
	padding-top: 15px;
	padding-bottom: 0;
	color: #fff;
	background: var(--wbmod-dark);
	overflow: hidden;
}

.wbmod-hero__media {
	position: absolute;
	inset: 0;
}

.wbmod-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(31, 42, 51, .88) 0%, rgba(31, 42, 51, .55) 60%, rgba(31, 42, 51, .2) 100%);
}

.wbmod-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wbmod-hero__inner {
	position: relative;
	z-index: 1;
}

.wbmod-hero__title {
	color: #fff;
	margin-bottom: 5px;
}

.wbmod-hero__text {
	font-size: 16px;
	margin-bottom: 20px;
}

.wbmod-hero__text p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Content Block: wbmod-cube-slider (Swiper, Effekt "cube")
   Wird auch im Hero verwendet (.wbmod-cube--hero)
   ========================================================= */
.wbmod-cube {
	--swiper-theme-color: var(--wbmod-accent);
	--swiper-pagination-color: var(--wbmod-accent);
	--swiper-pagination-bullet-size: 10px;
	--swiper-pagination-bullet-horizontal-gap: 5px;
	--swiper-pagination-bottom: -34px;
	width: 100%;
	max-width: 480px;
	/* Standard; die Modifier unten überschreiben das Verhältnis.
	   Die Tiefe des Würfels richtet sich bei Swiper immer nach der Breite,
	   die Höhe ist frei – aus dem Würfel wird dann ein Quader. */
	aspect-ratio: 1 / 1;
	/* Platz für Schlagschatten und Punkte unterhalb des Würfels */
	margin-bottom: 52px;
}

.wbmod-cube--ratio-1x1 {
	aspect-ratio: 1 / 1;
}

.wbmod-cube--ratio-4x3 {
	aspect-ratio: 4 / 3;
}

.wbmod-cube--ratio-3x2 {
	aspect-ratio: 3 / 2;
}

.wbmod-cube .swiper-slide {
	overflow: hidden;
	background: var(--wbmod-light);
}

.wbmod-cube .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wbmod-cube .swiper-pagination-bullet {
	transition: opacity .2s ease;
}

/* Ausrichtung des eigenständigen Inhaltselements */
.wbmod-cube-ce--center .wbmod-cube {
	margin-left: auto;
	margin-right: auto;
}

.wbmod-cube-ce--end .wbmod-cube {
	margin-left: auto;
}

/* Variante im Hero: helle Punkte auf dunklem Grund */
.wbmod-cube--hero {
	--swiper-pagination-color: #fff;
	--swiper-pagination-bullet-inactive-color: #fff;
	--swiper-pagination-bullet-inactive-opacity: .45;
	/* Hero-Würfel ca. 100 px schmaler als der eigenständige Cube-Slider (480 px) */
	max-width: 340px;
}

.wbmod-hero--split .wbmod-cube {
	margin-top: 32px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 992px) {
	.wbmod-hero--split .wbmod-cube {
		margin-top: 0;
	}
}

/* =========================================================
   Content Block: wbmod-teaser-grid
   ========================================================= */
.wbmod-teaser {
	border: 1px solid var(--wbmod-border);
	border-radius: 6px;
	transition: box-shadow .2s ease, transform .2s ease;
}

.wbmod-teaser:hover,
.wbmod-teaser:focus-within {
	box-shadow: 0 8px 24px rgba(31, 42, 51, .12);
	transform: translateY(-2px);
}

.wbmod-teaser__img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wbmod-teaser__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 24px 24px 0;
	font-size: 26px;
	color: var(--wbmod-accent);
	background: rgba(190, 58, 63, .1);
	border-radius: 6px;
}

.wbmod-teaser .card-body {
	padding: 20px 24px 24px;
}

.wbmod-teaser__title {
	font-size: 19px;
	margin-bottom: 8px;
}

.wbmod-teaser__text {
	font-size: 15px;
	color: var(--wbmod-gray);
	margin-bottom: 12px;
}

.wbmod-teaser__text p {
	margin-bottom: 10px;
}

.wbmod-teaser__text p:last-child {
	margin-bottom: 0;
}

.wbmod-teaser__link {
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

/* Variante "Kompakte Kacheln": Icon + Titel nebeneinander, Text darunter in voller Breite */
.wbmod-teaser-grid--tiles .card-body {
	padding: 24px;
}

.wbmod-teaser__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.wbmod-teaser-grid--tiles .wbmod-teaser__icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	margin: 0;
	font-size: 24px;
}

.wbmod-teaser-grid--tiles .wbmod-teaser__title {
	font-size: 21px;
	line-height: 1.25;
	margin: 0;
}

.wbmod-teaser-grid--tiles .wbmod-teaser__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--wbmod-dark);
	margin-bottom: 0;
}

.wbmod-teaser-grid--tiles .wbmod-teaser__link {
	display: inline-block;
	margin-top: 12px;
	font-size: 16px;
}

/* =========================================================
   Öffnungszeiten + zeitlich begrenzter Hinweis
   ========================================================= */
.frame-notice {
	padding: 24px 28px;
	font-size: 19px;
	line-height: 1.5;
	background: rgba(190, 58, 63, .08);
	border-left: 5px solid var(--wbmod-accent);
	border-radius: 6px;
}

.frame-notice header h1,
.frame-notice header h2,
.frame-notice header h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 21px;
	color: var(--wbmod-accent);
	margin-bottom: 10px;
}

.frame-notice header h1::before,
.frame-notice header h2::before,
.frame-notice header h3::before {
	content: "\F332";
	/* bi-exclamation-circle-fill */
	font-family: "bootstrap-icons";
	font-size: 22px;
	font-weight: 400;
}

.frame-notice p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Content Block: wbmod-gallery (Bildergalerie + Lightbox)
   ========================================================= */
.wbmod-gallery__grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wbmod-gallery__item {
	margin: 0;
}

.wbmod-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: var(--wbmod-light);
}

.wbmod-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .3s ease;
}

.wbmod-gallery__link:hover .wbmod-gallery__img,
.wbmod-gallery__link:focus-visible .wbmod-gallery__img {
	transform: scale(1.04);
}

.wbmod-gallery__link:focus-visible {
	outline: 2px solid var(--wbmod-accent);
	outline-offset: 2px;
}

.wbmod-gallery__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 15px;
	color: #fff;
	background: rgba(31, 42, 51, .6);
	border-radius: 6px;
	opacity: 0;
	transition: opacity .2s ease;
}

.wbmod-gallery__link:hover .wbmod-gallery__zoom,
.wbmod-gallery__link:focus-visible .wbmod-gallery__zoom {
	opacity: 1;
}

.wbmod-gallery__caption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--wbmod-gray);
}

/* ---- Lightbox ---- */
body.wbmod-lightbox-open {
	overflow: hidden;
}

.wbmod-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wbmod-lightbox[hidden] {
	display: none;
}

.wbmod-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 20, 25, .92);
}

.wbmod-lightbox__stage {
	position: relative;
	z-index: 1;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wbmod-lightbox__figure {
	margin: 0;
	text-align: center;
}

.wbmod-lightbox__img {
	display: block;
	max-width: 92vw;
	max-height: 78vh;
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.wbmod-lightbox__caption {
	margin-top: 12px;
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
}

.wbmod-lightbox__caption[hidden] {
	display: none;
}

.wbmod-lightbox__btn {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s ease;
}

.wbmod-lightbox__btn:hover,
.wbmod-lightbox__btn:focus-visible {
	background: rgba(255, 255, 255, .28);
}

.wbmod-lightbox__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wbmod-lightbox__btn[hidden] {
	display: none;
}

.wbmod-lightbox__btn--close {
	top: 16px;
	right: 16px;
	width: 48px;
	height: 48px;
	font-size: 22px;
}

.wbmod-lightbox__btn--prev,
.wbmod-lightbox__btn--next {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 26px;
}

.wbmod-lightbox__btn--prev {
	left: 16px;
}

.wbmod-lightbox__btn--next {
	right: 16px;
}

.wbmod-lightbox__counter {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	margin: 0;
	padding: 4px 12px;
	color: #fff;
	font-size: 14px;
	background: rgba(0, 0, 0, .35);
	border-radius: 20px;
}

.wbmod-lightbox__counter[hidden] {
	display: none;
}

@media (max-width: 575.98px) {

	.wbmod-lightbox__btn--prev,
	.wbmod-lightbox__btn--next {
		width: 44px;
		height: 44px;
		font-size: 22px;
	}

	.wbmod-lightbox__btn--prev {
		left: 8px;
	}

	.wbmod-lightbox__btn--next {
		right: 8px;
	}
}

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

/* =========================================================
   Fluid Styled Content – Ergänzungen
   ========================================================= */

/* Bilder aus Text/Medien-Elementen skalieren mit der Spaltenbreite.
   Ohne diese Regel behalten die Banner-/Kopfbilder ihre feste Pixelbreite
   (z. B. 1300 px) und werden auf schmalen Displays seitlich beschnitten,
   statt kleiner zu werden. Bewusst auf FSC-Bildelemente beschränkt, damit
   Slider, Teaser und Galerie unberührt bleiben. */
.ce-gallery img,
.image-embed-item {
	max-width: 100%;
	height: auto;
}

.frame-space-before-extra-small {
	margin-top: 8px;
}

.frame-space-before-small {
	margin-top: 16px;
}

.frame-space-before-medium {
	margin-top: 32px;
}

.frame-space-before-large {
	margin-top: 48px;
}

.frame-space-before-extra-large {
	margin-top: 64px;
}

.frame-space-after-extra-small {
	margin-bottom: 8px;
}

.frame-space-after-small {
	margin-bottom: 16px;
}

.frame-space-after-medium {
	margin-bottom: 32px;
}

.frame-space-after-large {
	margin-bottom: 48px;
}

.frame-space-after-extra-large {
	margin-bottom: 64px;
}

.frame+.frame {
	margin-top: 32px;
}

/* =========================================================
   Tabellen
   Gilt für Tabellen aus dem RTE (CKEditor liefert figure.table),
   für das FSC-Element "Tabelle" (.ce-table) und für Tabellen in
   Content Blocks. Der Scroll-Rahmen kommt von figure.table bzw.
   von .table-scroll, das tables.js um nackte Tabellen legt.
   ========================================================= */
:root {
	/* Grundfarbe hinter der Tabelle – steuert den Verlauf am Scrollrand */
	--wbmod-table-bg: #fff;
}

.home-section--section-light {
	--wbmod-table-bg: var(--wbmod-light);
}

.home-section--section-dark {
	--wbmod-table-bg: var(--wbmod-dark);
}

figure.table,
.table-scroll {
	display: block;
	max-width: 100%;
	margin: 0 0 24px;
	overflow-x: auto;
	/* Verlauf plus Schatten an den Rändern: sichtbar nur, solange in diese
	   Richtung gescrollt werden kann (background-attachment: local). */
	background:
		linear-gradient(to right, var(--wbmod-table-bg) 30%, rgba(255, 255, 255, 0)) left center,
		linear-gradient(to left, var(--wbmod-table-bg) 30%, rgba(255, 255, 255, 0)) right center,
		radial-gradient(farthest-side at 0 50%, rgba(31, 42, 51, .22), rgba(31, 42, 51, 0)) left center,
		radial-gradient(farthest-side at 100% 50%, rgba(31, 42, 51, .22), rgba(31, 42, 51, 0)) right center;
	background-repeat: no-repeat;
	background-size: 40px 100%, 40px 100%, 18px 100%, 18px 100%;
	background-attachment: local, local, scroll, scroll;
}

figure.table:focus-visible,
.table-scroll:focus-visible {
	outline: 2px solid var(--wbmod-accent);
	outline-offset: 2px;
}

/* CKEditor gibt dem umschließenden <figure> die Klasse "table" – damit
   greifen Bootstraps .table-Regeln darauf. Über
   `.table > :not(caption) > * > *` landen sie hier auf den <tr> und setzen
   dort Textfarbe, einen weißen Hintergrund, einen Schatten und einen
   Innenabstand in rem. Das kollidiert mit den Regeln unten und macht
   Tabellen in farbigen Sektionen unbrauchbar, deshalb zurücksetzen. */
figure.table>:not(caption)>*>* {
	padding: 0;
	color: inherit;
	background-color: transparent;
	box-shadow: none;
}

figure.table>table,
.table-scroll>table,
.frame table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
}

.frame th,
.frame td {
	min-width: 120px;
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--wbmod-border);
}

.frame thead th {
	font-weight: 700;
	color: #fff;
	background: var(--wbmod-dark);
	border-bottom: 0;
}

.frame thead th:first-child {
	border-top-left-radius: 6px;
}

.frame thead th:last-child {
	border-top-right-radius: 6px;
}

/* Zeilenkopf (th scope="row"): nur hervorgehoben, kein Kopfzeilen-Hintergrund.
   width: 1% hält die Spalte so schmal wie ihr Inhalt, statt die Tabelle
   bei zwei Spalten in der Mitte zu teilen. */
.frame tbody th {
	width: 1%;
	font-weight: 700;
	color: var(--wbmod-dark);
	white-space: nowrap;
}

.frame tbody tr:last-child th,
.frame tbody tr:last-child td {
	border-bottom: 0;
}

.frame table caption {
	caption-side: bottom;
	padding-top: 8px;
	font-size: 14px;
	color: var(--wbmod-gray);
	text-align: left;
}

/* Varianten über die RTE-Formatvorlagen */
.frame table.wbmod-table--striped tbody tr:nth-child(odd) {
	background: rgba(31, 42, 51, .04);
}

.frame table.wbmod-table--compact th,
.frame table.wbmod-table--compact td {
	padding: 6px 10px;
	font-size: 15px;
}

@media (max-width: 575.98px) {

	figure.table>table,
	.table-scroll>table,
	.frame table {
		font-size: 15px;
	}

	.frame th,
	.frame td {
		min-width: 110px;
		padding: 8px 10px;
	}
}

/* RTE: Liste mit Häkchen */
.list-check {
	list-style: none;
	padding-left: 0;
}

.list-check li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 6px;
}

.list-check li::before {
	content: "\F633";
	/* bi-check-lg */
	font-family: "bootstrap-icons";
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--wbmod-accent);
}

/* =========================================================
   Dateilinks (FSC uploads)
   ========================================================= */
.wbmod-downloads {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.wbmod-downloads__item {
	border: 1px solid var(--wbmod-border);
	border-radius: 6px;
	background: #fff;
	transition: box-shadow .2s ease, border-color .2s ease;
}

.wbmod-downloads__item:hover,
.wbmod-downloads__item:focus-within {
	border-color: var(--wbmod-accent);
	box-shadow: 0 6px 18px rgba(31, 42, 51, .1);
}

.wbmod-downloads__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	color: var(--wbmod-dark);
	text-decoration: none;
}

.wbmod-downloads__link:hover,
.wbmod-downloads__link:focus {
	color: var(--wbmod-dark);
}

.wbmod-downloads__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	font-size: 22px;
	color: var(--wbmod-accent);
	background: rgba(190, 58, 63, .1);
	border-radius: 6px;
}

.wbmod-downloads__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.wbmod-downloads__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(190, 58, 63, .4);
}

.wbmod-downloads__link:hover .wbmod-downloads__title,
.wbmod-downloads__link:focus .wbmod-downloads__title {
	color: var(--wbmod-accent);
	text-decoration-color: currentColor;
}

.wbmod-downloads__meta {
	font-size: 14px;
	color: var(--wbmod-gray);
}

.wbmod-downloads__action {
	flex: 0 0 auto;
	font-size: 20px;
	color: var(--wbmod-gray);
}

.wbmod-downloads__link:hover .wbmod-downloads__action,
.wbmod-downloads__link:focus .wbmod-downloads__action {
	color: var(--wbmod-accent);
}

.wbmod-downloads__descr {
	margin: 0;
	padding: 0 20px 16px 80px;
	font-size: 15px;
	color: var(--wbmod-gray);
}

@media (max-width: 575.98px) {
	.wbmod-downloads__link {
		gap: 12px;
		padding: 14px 16px;
	}

	.wbmod-downloads__icon {
		width: 38px;
		height: 38px;
		font-size: 19px;
	}

	.wbmod-downloads__title {
		font-size: 16px;
	}

	.wbmod-downloads__descr {
		padding: 0 16px 14px 66px;
	}
}

/* =========================================================
   Formular (EXT:form + bw_captcha)
   ========================================================= */
.form-element-captcha .captcha {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.form-element-captcha .captcha a {
	margin-left: 0;
}

.form-navigation {
	margin-top: 8px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	font-size: 15px;
	color: #c9d1d7;
	background: var(--wbmod-dark);
	padding-top: 48px;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #fff;
	text-decoration: underline;
}

.site-footer__name,
.site-footer__heading {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
}

.site-footer__address {
	margin-bottom: 12px;
}

.site-footer__contact li,
.site-footer__links li {
	margin-bottom: 6px;
}

.site-footer__contact .bi {
	margin-right: 8px;
	color: var(--wbmod-accent);
}

.site-footer__bottom {
	margin-top: 40px;
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 14px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__bottom .list-inline-item:not(:last-child) {
	margin-right: 16px;
}