/*
Theme Name: Ferienhaus Osterwald
Theme URI: https://ernst.simon-server.de
Author: Sascha Simon
Description: Massgeschneidertes Theme für das Ferienhaus Osterwald in Schmallenberg. Klassisches Theme für Beaver Builder, mit Hell- und Dunkelmodus.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: osterwald
*/

/* ==========================================================================
   Schriften — lokal eingebunden, keine externen Anfragen (DSGVO)
   ========================================================================== */

@font-face {
	font-family: 'Fraunces';
	src: url('assets/fonts/fraunces-var.woff2') format('woff2-variations');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/inter-var.woff2') format('woff2-variations');
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Farb- und Massystem
   Die Palette stammt aus dem Logo: Tannengrün #2F4613, Tinte #2B271D,
   Creme #FCF8DC.
   ========================================================================== */

:root {
	--ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-xl: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
	--fs-2xl: clamp(1.75rem, 1.4rem + 1.7vw, 2.5rem);
	--fs-3xl: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2rem;
	--sp-5: 3rem;
	--sp-6: 4.5rem;
	--sp-7: 6.5rem;

	--radius: 4px;
	--radius-lg: 10px;
	--wrap: 1180px;
	--wrap-narrow: 720px;

	--header-h: 72px;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);

	/* Hell — Vorgabe */
	--c-bg: #fbf7ec;
	--c-surface: #fffdf6;
	--c-surface-alt: #f4efe0;
	--c-text: #2b271d;
	--c-muted: #6d6555;
	--c-primary: #2f4613;
	--c-primary-hover: #3f5d1a;
	--c-on-primary: #fcf8dc;
	--c-accent: #9a6b43;
	--c-border: #e3dcc8;
	--c-shadow: 43 39 29;
	--c-free: #4b7c2f;
	--c-busy: #b3543c;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--c-bg: #16180f;
		--c-surface: #1e2116;
		--c-surface-alt: #262a1d;
		--c-text: #eee9d8;
		--c-muted: #a5a08e;
		--c-primary: #a8c96e;
		--c-primary-hover: #bcda86;
		--c-on-primary: #16180f;
		--c-accent: #cf9a68;
		--c-border: #343829;
		--c-shadow: 0 0 0;
		--c-free: #8fbe63;
		--c-busy: #d8836a;
	}
}

:root[data-theme='dark'] {
	--c-bg: #16180f;
	--c-surface: #1e2116;
	--c-surface-alt: #262a1d;
	--c-text: #eee9d8;
	--c-muted: #a5a08e;
	--c-primary: #a8c96e;
	--c-primary-hover: #bcda86;
	--c-on-primary: #16180f;
	--c-accent: #cf9a68;
	--c-border: #343829;
	--c-shadow: 0 0 0;
	--c-free: #8fbe63;
	--c-busy: #d8836a;
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	line-height: 1.7;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--c-primary);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--c-primary-hover);
}

h1,
h2,
h3,
h4 {
	font-family: var(--ff-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 var(--sp-2);
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-3xl);
}

h2 {
	font-size: var(--fs-2xl);
}

h3 {
	font-size: var(--fs-xl);
}

p {
	margin: 0 0 var(--sp-2);
	text-wrap: pretty;
}

:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--c-primary);
	color: var(--c-on-primary);
	padding: var(--sp-1) var(--sp-2);
}

.skip-link:focus {
	left: var(--sp-2);
	top: var(--sp-1);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.o-wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.o-wrap--narrow {
	width: min(100% - 2.5rem, var(--wrap-narrow));
}

.o-section {
	padding-block: var(--sp-6);
}

.o-eyebrow {
	font-family: var(--ff-body);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-accent);
	margin: 0 0 var(--sp-1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.o-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.75em 1.6em;
	border: 1px solid var(--c-primary);
	border-radius: var(--radius);
	background: var(--c-primary);
	color: var(--c-on-primary);
	font: inherit;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.o-btn:hover {
	background: var(--c-primary-hover);
	border-color: var(--c-primary-hover);
	color: var(--c-on-primary);
}

.o-btn--ghost {
	background: transparent;
	color: var(--c-primary);
}

.o-btn--ghost:hover {
	background: color-mix(in srgb, var(--c-primary) 10%, transparent);
	color: var(--c-primary);
}

.o-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

.o-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--c-bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--c-border);
}

.o-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: var(--header-h);
}

.o-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-right: auto;
	text-decoration: none;
	color: var(--c-text);
}

.o-brand img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
}

.o-brand__name {
	font-family: var(--ff-display);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
}

.o-brand__sub {
	display: block;
	font-family: var(--ff-body);
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.o-nav ul {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-nav a {
	color: var(--c-text);
	text-decoration: none;
	font-size: var(--fs-sm);
	padding-block: 0.4rem;
	border-bottom: 1px solid transparent;
}

.o-nav a:hover,
.o-nav .current-menu-item > a {
	color: var(--c-primary);
	border-bottom-color: var(--c-primary);
}

.o-header__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
}

.o-iconbtn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: transparent;
	color: var(--c-text);
	cursor: pointer;
}

.o-iconbtn:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.o-iconbtn svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Der Umschalter zeigt immer das Symbol des Modus, in den er wechselt. */
.o-themetoggle .o-icon--moon {
	display: none;
}

:root[data-theme='dark'] .o-themetoggle .o-icon--moon,
:root:not([data-theme='light']) .o-themetoggle .o-icon--sun {
	display: block;
}

:root[data-theme='dark'] .o-themetoggle .o-icon--sun {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .o-themetoggle .o-icon--sun {
		display: none;
	}

	:root:not([data-theme='light']) .o-themetoggle .o-icon--moon {
		display: block;
	}
}

:root[data-theme='light'] .o-themetoggle .o-icon--sun {
	display: block;
}

:root[data-theme='light'] .o-themetoggle .o-icon--moon {
	display: none;
}

.o-burger {
	display: none;
}

/* Mobile Navigation */
@media (max-width: 899px) {
	.o-burger {
		display: grid;
	}

	.o-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: var(--c-surface);
		border-bottom: 1px solid var(--c-border);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.28s var(--ease);
	}

	.o-nav[data-open='true'] {
		max-height: 70vh;
		overflow-y: auto;
	}

	.o-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--sp-1) 1.25rem var(--sp-3);
	}

	.o-nav li + li {
		border-top: 1px solid var(--c-border);
	}

	.o-nav a {
		display: block;
		padding: 0.9rem 0;
		font-size: var(--fs-base);
		border-bottom: 0;
	}

	.o-header__cta {
		display: none;
	}
}

/* ==========================================================================
   Fussbereich
   ========================================================================== */

.o-footer {
	margin-top: var(--sp-6);
	background: var(--c-surface-alt);
	border-top: 1px solid var(--c-border);
	padding-block: var(--sp-5) var(--sp-3);
	font-size: var(--fs-sm);
}

.o-footer__grid {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.o-footer h2 {
	font-size: var(--fs-lg);
	margin-bottom: var(--sp-1);
}

.o-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-footer li + li {
	margin-top: 0.35rem;
}

.o-footer a {
	color: var(--c-text);
	text-decoration: none;
}

.o-footer a:hover {
	color: var(--c-primary);
	text-decoration: underline;
}

.o-footer__bottom {
	margin-top: var(--sp-4);
	padding-top: var(--sp-2);
	border-top: 1px solid var(--c-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-1) var(--sp-3);
	justify-content: space-between;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.o-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-footer__legal li {
	margin: 0;
}

/* ==========================================================================
   Inhaltsseiten ohne Beaver Builder
   ========================================================================== */

.o-page {
	padding-block: var(--sp-5);
}

.o-page__header {
	margin-bottom: var(--sp-4);
}

.o-prose > * + * {
	margin-top: var(--sp-2);
}

.o-prose h2 {
	margin-top: var(--sp-4);
}

.o-prose h3 {
	margin-top: var(--sp-3);
}

.o-prose ul,
.o-prose ol {
	padding-left: 1.25rem;
}

.o-prose li + li {
	margin-top: 0.35rem;
}

.o-prose table {
	width: 100%;
	border-collapse: collapse;
}

.o-prose th,
.o-prose td {
	border-bottom: 1px solid var(--c-border);
	padding: 0.6rem 0.5rem;
	text-align: left;
}

.o-prose blockquote {
	margin: var(--sp-3) 0;
	padding-left: var(--sp-2);
	border-left: 3px solid var(--c-accent);
	color: var(--c-muted);
	font-style: italic;
}

.o-prose img {
	border-radius: var(--radius-lg);
}

/* ==========================================================================
   Beaver-Builder-Modul: Hero
   ========================================================================== */

.o-hero {
	position: relative;
	display: grid;
	place-items: center;
	padding: var(--sp-6) 1.25rem;
	background-color: var(--c-surface-alt);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}

.o-hero--klein {
	min-height: 40vh;
}

.o-hero--mittel {
	min-height: 58vh;
}

.o-hero--gross {
	min-height: min(78vh, 760px);
}

.o-hero__inner {
	max-width: 46rem;
}

.o-hero__eyebrow {
	color: #fff;
	opacity: 0.85;
}

.o-hero__title {
	color: #fff;
	margin-bottom: var(--sp-2);
	text-shadow: 0 1px 22px rgb(43 39 29 / 0.35);
}

.o-hero__text {
	font-size: var(--fs-lg);
	color: #fff;
	opacity: 0.94;
	margin-inline: auto;
	max-width: 38rem;
}

.o-hero__action {
	margin-top: var(--sp-3);
	margin-bottom: 0;
}

.o-hero .o-btn {
	background: var(--c-on-primary);
	border-color: var(--c-on-primary);
	color: var(--c-primary);
}

.o-hero .o-btn:hover {
	background: #fff;
	border-color: #fff;
	color: var(--c-primary);
}

/* ==========================================================================
   Beaver-Builder-Modul: Galerie
   ========================================================================== */

.o-gallery {
	display: grid;
	gap: var(--sp-1);
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.o-gallery__item {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	overflow: hidden;
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 3;
}

.o-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.o-gallery__item:hover img {
	transform: scale(1.04);
}

.o-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	background: rgb(var(--c-shadow) / 0.92);
	padding: var(--sp-2);
}

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

.o-lightbox img {
	max-width: 100%;
	max-height: 86vh;
	border-radius: var(--radius);
	object-fit: contain;
}

.o-lightbox__caption {
	color: #fff;
	text-align: center;
	font-size: var(--fs-sm);
	margin-top: var(--sp-1);
}

.o-lightbox__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.15);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.o-lightbox__btn:hover {
	background: rgb(255 255 255 / 0.3);
}

.o-lightbox__prev {
	left: var(--sp-2);
}

.o-lightbox__next {
	right: var(--sp-2);
}

.o-lightbox__close {
	top: var(--sp-2);
	right: var(--sp-2);
	transform: none;
}

/* ==========================================================================
   Beaver-Builder-Modul: Ausstattung
   ========================================================================== */

.o-amenities {
	display: grid;
	gap: var(--sp-2) var(--sp-3);
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-amenities li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	font-size: var(--fs-sm);
}

.o-amenities svg {
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	margin-top: 0.15em;
	fill: none;
	stroke: var(--c-primary);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ==========================================================================
   Fakten-Leiste (Grösse, Personen, Zimmer)
   ========================================================================== */

.o-facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	padding: var(--sp-2) 0;
	border-block: 1px solid var(--c-border);
	list-style: none;
	margin: 0;
}

.o-facts li {
	display: flex;
	flex-direction: column;
}

.o-facts dt,
.o-facts__label {
	font-size: var(--fs-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.o-facts__value {
	font-family: var(--ff-display);
	font-size: var(--fs-lg);
	font-weight: 600;
}

/* ==========================================================================
   Textbausteine der Inhaltsseiten
   ========================================================================== */

.o-intro {
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.o-intro p:last-child {
	margin-bottom: 0;
	color: var(--c-muted);
}

.o-note {
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.o-facts-box {
	padding: var(--sp-3);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface-alt);
}

.o-facts-box > :first-child {
	margin-top: 0;
}

.o-facts-box > :last-child {
	margin-bottom: 0;
}

.o-facts-box h3 {
	font-size: var(--fs-lg);
}

.o-factlist {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.45rem var(--sp-2);
	margin: 0;
	font-size: var(--fs-sm);
}

.o-factlist dt {
	color: var(--c-muted);
}

.o-factlist dd {
	margin: 0;
	font-weight: 500;
	text-align: right;
}

.o-factlist--wide {
	max-width: 34rem;
}

/* Offene Angaben in den Rechtstexten deutlich markieren, damit sie nicht
   versehentlich online bleiben. */
.ow-todo {
	padding: 0.6rem 0.9rem;
	border-left: 3px solid var(--c-busy);
	background: color-mix(in srgb, var(--c-busy) 10%, transparent);
	color: var(--c-busy);
	font-size: var(--fs-sm);
}

/* ==========================================================================
   Beaver Builder — Korrekturen
   ========================================================================== */

.fl-builder-content a.o-btn,
.fl-builder-content .fl-button-wrap a.fl-button {
	text-decoration: none;
}

/* Der Builder setzt eigene Zeilenbreiten; unsere Sektionen sollen davon
   unberührt bleiben. */
.fl-row-content-wrap {
	margin: 0;
}

/* Randlose Zeilen sollen wirklich randlos sein — der Builder legt sonst
   seitlich 20 px an, wodurch das Hero-Bild nicht bis zum Rand reicht. */
.fl-row-full-width > .fl-row-content-wrap {
	padding-left: 0;
	padding-right: 0;
}

/* Abgesetzte Sektionen. Die Farbe kommt aus den Custom Properties und schaltet
   damit im Dunkelmodus mit — anders als eine im Builder hinterlegte Festfarbe,
   die dort hellen Text auf hellem Grund stehen liesse. */
.o-band > .fl-row-content-wrap {
	background-color: var(--c-surface-alt);
}

/* Auf schmalen Bildschirmen brauchen die Inhalte Abstand zum Displayrand. */
@media (max-width: 1180px) {
	.fl-row:not(.fl-row-full-width) > .fl-row-content-wrap {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

.fl-row-full-width .fl-row-content {
	max-width: none;
}

/* ==========================================================================
   Wohnungsvorstellung auf der Startseite
   ========================================================================== */

/* Der Builder legt die Spalten ohne Zwischenraum an; die Karten brauchen Luft. */
.o-unitcards .fl-col:first-child .fl-col-content {
	margin-right: 0.9rem;
}

.o-unitcards .fl-col:last-child .fl-col-content {
	margin-left: 0.9rem;
}

@media (max-width: 767px) {
	.o-unitcards .fl-col .fl-col-content {
		margin-inline: 0;
	}
}

.o-unitcards .fl-col-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.o-unitcards .fl-col-content:hover {
	border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border));
	transform: translateY(-3px);
}

/* Das Foto sitzt bündig in der Kartenkante. */
.o-unitcards .fl-module-photo {
	margin: 0;
}

.o-unitcards .fl-module-photo .fl-module-content {
	margin: 0;
}

.o-unitcards .fl-module-photo img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
}

.o-unitcards .fl-module-rich-text {
	flex: 1;
	display: flex;
}

.o-unitcards .fl-module-rich-text .fl-module-content {
	margin: 0;
	padding: var(--sp-3);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.o-unitcards .fl-rich-text {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.o-unitcards .fl-rich-text h3 {
	margin-top: 0;
	font-size: var(--fs-xl);
}

.o-unitcards .fl-rich-text h3 a {
	color: var(--c-text);
	text-decoration: none;
}

.o-unitcards .fl-rich-text h3 a:hover {
	color: var(--c-primary);
}

.o-unitcards .fl-rich-text .o-note {
	margin-bottom: var(--sp-2);
	padding-bottom: var(--sp-2);
	border-bottom: 1px solid var(--c-border);
}

/* Der letzte Absatz enthält die Schaltfläche und wird nach unten gedrückt,
   damit die Karten trotz unterschiedlich langer Texte gleich enden. */
.o-unitcards .fl-rich-text > p:last-child {
	margin-top: auto;
	margin-bottom: 0;
	padding-top: var(--sp-2);
}

.fl-builder-content h1,
.fl-builder-content h2,
.fl-builder-content h3 {
	font-family: var(--ff-display);
}

/* Die Typografie der Rich-Text-Module soll der von .o-prose entsprechen. */
.fl-rich-text > * + * {
	margin-top: var(--sp-2);
}

.fl-rich-text h2 {
	margin-top: 0;
}

.fl-rich-text h3 {
	margin-top: var(--sp-3);
}

.fl-rich-text ul,
.fl-rich-text ol {
	padding-left: 1.25rem;
}

.fl-rich-text li + li {
	margin-top: 0.35rem;
}

.fl-rich-text a:not(.o-btn) {
	color: var(--c-primary);
}

.fl-module-photo img {
	border-radius: var(--radius-lg);
}

/* Steht ein Bild allein in einer Spalte neben einer Textspalte, wirkt eine
   vertikal zentrierte Anordnung ruhiger als oben ausgerichtete Blöcke. */
@media (min-width: 768px) {
	.fl-col-group:has(> .fl-col > .fl-col-content > .fl-module-photo:only-child) {
		align-items: center;
	}
}

/* Auf schmalen Bildschirmen sollen Builder-Spalten nicht kleben. */
@media (max-width: 767px) {
	.fl-col + .fl-col {
		margin-top: var(--sp-3);
	}
}

/* Der Builder umgibt jedes Modul mit einem Aussenabstand. Am Anfang und Ende
   einer Spalte summiert der sich mit dem Zeilenabstand und lässt die
   Sektionen ausgefranst wirken. */
.fl-col-content > .fl-module:first-child > .fl-module-content {
	margin-top: 0;
}

.fl-col-content > .fl-module:last-child > .fl-module-content {
	margin-bottom: 0;
}
