/* =============================================================================
   LANDFUNK – Designsystem
   Alle Custom Widgets, Templates und Shortcodes bauen auf diesen Tokens
   und Komponenten auf.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design-Tokens
   ------------------------------------------------------------------------ */
:root {
	/* Farben */
	--lf-primary:        #0F7B57;
	--lf-primary-dark:   #0B583E;
	--lf-secondary:      #48AFE9;
	--lf-secondary-dark: #198BCC;
	--lf-dark:           #080807;
	--lf-text:           #333333;
	--lf-light:          #F2F2F2;
	--lf-white:          #FFFFFF;

	/* Typografie */
	--lf-font-primary:   'Work Sans', sans-serif;
	--lf-font-secondary: 'Roboto', sans-serif;

	/* Geometrie */
	--lf-radius:         20px;
	--lf-radius-sm:      6px;
	--lf-radius-icon:    16px;
	--lf-container:      1140px;
	--lf-gap:            20px;
	--lf-header-height:  128px;

	/* Effekte */
	--lf-shadow:         0px 2px 18px -3px rgba(0, 0, 0, 0.19);
	--lf-gradient-header: linear-gradient(90deg, #0B583E 40%, #48AFE9 100%);
	--lf-gradient-card:   linear-gradient(180deg, rgba(2, 1, 1, 0) 0%, #000000 100%);
	--lf-transition:      all 0.25s ease;
}

/* ---------------------------------------------------------------------------
   2. Basis
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--lf-font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--lf-text);
	background: var(--lf-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lf-font-primary);
	color: var(--lf-dark);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

a { color: var(--lf-primary); text-decoration: none; transition: var(--lf-transition); }
a:hover { color: var(--lf-primary-dark); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999999;
	background: var(--lf-primary); color: #fff; padding: 10px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------------------
   3. Layout-Helfer
   ------------------------------------------------------------------------ */
.lf-container {
	/* 1140px reine Inhaltsbreite (wie Elementor-Vorlage) + seitliches Padding. */
	max-width: calc(var(--lf-container) + 4em);
	margin-left: auto;
	margin-right: auto;
	padding-left: 2em;
	padding-right: 2em;
	width: 100%;
}

/* Sektionen: Widgets stapeln sich nahtlos, jede Sektion bringt eigenes
   Padding + eigene Hintergrundfarbe mit. */
.lf-section { padding: 3em 0; width: 100%; }
.lf-section--white     { background: var(--lf-white); }
.lf-section--light     { background: var(--lf-light); }
.lf-section--primary   { background: var(--lf-primary); }
.lf-section--secondary { background: var(--lf-secondary); }

.lf-section--primary .lf-section__title,
.lf-section--primary .lf-section__more,
.lf-section--secondary .lf-section__title,
.lf-section--secondary .lf-section__more { color: var(--lf-white); }

.lf-section--primary   .lf-icon-box { background: var(--lf-primary-dark); }
.lf-section--secondary .lf-icon-box { background: var(--lf-secondary-dark); }

/* Grids */
.lf-grid { display: grid; gap: var(--lf-gap); }
.lf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lf-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.lf-grid--3, .lf-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.lf-grid--2, .lf-grid--3, .lf-grid--4 { grid-template-columns: 1fr; }
	.lf-container { padding-left: 1.25em; padding-right: 1.25em; }
}

/* ---------------------------------------------------------------------------
   4. Komponenten: Icon-Box, Badge, Meta, Buttons
   ------------------------------------------------------------------------ */
.lf-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--lf-primary);
	color: var(--lf-white);
	border-radius: var(--lf-radius-icon);
	width: 59px;
	height: 59px;
	padding: 12px;
}
.lf-icon-box svg, .lf-icon-box img { width: 100%; height: 100%; object-fit: contain; }
.lf-icon-box--sm { width: 42px; height: 42px; padding: 8px; }

.lf-badge {
	display: inline-block;
	align-self: flex-start;
	background: var(--lf-secondary);
	color: var(--lf-white);
	font-family: var(--lf-font-primary);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: var(--lf-radius-sm);
	line-height: 1.5;
}

.lf-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lf-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--lf-white);
	font-size: 15px;
	font-weight: 600;
}
.lf-meta__item svg { flex-shrink: 0; }
.lf-meta__avatar { width: 24px; height: 24px; border-radius: 50%; }

.lf-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--lf-primary);
	color: var(--lf-white);
	font-family: var(--lf-font-primary);
	font-weight: 600;
	font-size: 15px;
	padding: 12px 28px;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-btn:hover { background: var(--lf-primary-dark); color: var(--lf-white); }
.lf-btn--secondary { background: var(--lf-secondary); }
.lf-btn--secondary:hover { background: var(--lf-secondary-dark); }
.lf-btn--outline { background: transparent; border: 2px solid var(--lf-white); }
.lf-btn--outline:hover { background: var(--lf-white); color: var(--lf-primary); }

/* Typ-Icon (Podcast/Video) auf Karten */
.lf-type-icon {
	position: absolute;
	top: 5%;
	right: 5%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--lf-secondary);
	color: var(--lf-white);
	border-radius: 35px;
	padding: 10px;
}
.lf-type-icon svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------------
   5. Beitragskarte
   ------------------------------------------------------------------------ */
.lf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	border-radius: var(--lf-radius);
	min-height: 250px;
	padding: 30px 35px;
	color: var(--lf-white);
	isolation: isolate;
}
.lf-card--lg { min-height: 520px; padding: 30px 50px; }
.lf-card--hero { min-height: 500px; }

.lf-card__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--lf-primary-dark);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
}
.lf-card:hover .lf-card__bg { transform: scale(1.04); }

.lf-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: var(--lf-gradient-card);
}

.lf-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lf-card__title {
	color: var(--lf-white);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lf-card--sm .lf-card__title,
.lf-card--md .lf-card__title {
	font-size: clamp(16px, 2vw, 22px);
	-webkit-line-clamp: 2;
}
.lf-card:hover .lf-card__title { color: var(--lf-white); }

/* ---------------------------------------------------------------------------
   6. Sektions-Kopf
   ------------------------------------------------------------------------ */
.lf-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 1.5em;
}
.lf-section__title-wrap {
	display: flex;
	align-items: center;
	gap: 15px;
}
.lf-section__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--lf-dark);
}
.lf-section__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--lf-dark);
	white-space: nowrap;
}
.lf-section__more:hover { color: var(--lf-primary); }
.lf-section--primary .lf-section__more:hover,
.lf-section--secondary .lf-section__more:hover { color: var(--lf-light); }

@media (max-width: 767px) {
	.lf-section__title { font-size: 20px; }
}

/* ---------------------------------------------------------------------------
   7. Header
   ------------------------------------------------------------------------ */
.lf-header {
	position: sticky;
	top: 0;
	z-index: 99;
	background: var(--lf-gradient-header);
	box-shadow: var(--lf-shadow);
}
.lf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--lf-header-height);
}
.lf-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.lf-header__logo img { max-height: 80px; width: auto; }
.lf-header__logo .lf-header__sitename {
	color: var(--lf-white);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.1;
}

/* Navigation */
.lf-nav { display: flex; align-items: center; }
.lf-nav__list {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lf-nav__item > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.61);
	font-size: 14px;
	font-weight: 600;
	padding: 0 15px;
	line-height: var(--lf-header-height);
}
.lf-nav__item > a:hover,
.lf-nav__item.is-open > a,
.lf-nav__item.is-current > a,
.lf-nav__item.current-menu-item > a,
.lf-nav__item.current-menu-ancestor > a {
	color: var(--lf-white);
	text-decoration: underline;
	text-underline-offset: 5px;
}
.lf-nav__item > a .lf-nav__caret {
	transition: transform 0.2s ease;
	color: var(--lf-white);
}
.lf-nav__item.is-open > a .lf-nav__caret { transform: rotate(180deg); }
@media (hover: hover) {
	.lf-nav__item:hover > a .lf-nav__caret { transform: rotate(180deg); }
}

/* Mega-Menü-Panel */
.lf-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--lf-primary-dark);
	box-shadow: var(--lf-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	padding: 2em 0;
	z-index: 98;
}
@media (min-width: 1025px) {
	.lf-nav__item:hover .lf-mega,
	.lf-nav__item:focus-within .lf-mega,
	.lf-nav__item.is-open .lf-mega {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}
.lf-mega__title {
	color: var(--lf-white);
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 1.25em;
}
.lf-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 20px;
}
/* Hervorgehobene Ortschaften: eigene Zeile über dem Grid (Term-Meta "featured") */
.lf-mega__featured {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 20px;
	margin-bottom: 8px;
}
.lf-mega__item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 6px 0;
}
.lf-mega__item .lf-icon-box { background: var(--lf-primary); }
.lf-mega__label {
	color: var(--lf-white);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
.lf-mega__item:hover .lf-mega__label,
.lf-mega__item.is-active .lf-mega__label {
	color: var(--lf-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Such-Button + Overlay */
.lf-header__actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.lf-search-toggle {
	background: none;
	border: none;
	color: var(--lf-white);
	cursor: pointer;
	padding: 5px;
	display: inline-flex;
}
.lf-search-toggle svg { width: 28px; height: 28px; }

.lf-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 1.25em 2em;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s;
}
.lf-search-overlay.is-open { opacity: 1; visibility: visible; }
.lf-search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 7, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* Spotlight-Panel */
.lf-spotlight {
	position: relative;
	width: min(640px, 100%);
	background: var(--lf-white);
	border-radius: var(--lf-radius-icon);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	transform: translateY(-12px) scale(0.98);
	transition: transform 0.2s ease;
	display: flex;
	flex-direction: column;
	max-height: 76vh;
}
.lf-search-overlay.is-open .lf-spotlight { transform: translateY(0) scale(1); }

.lf-spotlight__form {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(8, 8, 7, 0.08);
}
.lf-spotlight__icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--lf-primary);
}
.lf-spotlight__form input[type="search"] {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	color: var(--lf-dark);
	font-family: var(--lf-font-primary);
	font-size: 20px;
	font-weight: 500;
}
.lf-spotlight__form input[type="search"]::placeholder { color: rgba(8, 8, 7, 0.4); }
.lf-spotlight__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.lf-spotlight__esc {
	flex-shrink: 0;
	background: rgba(8, 8, 7, 0.06);
	border: none;
	border-radius: 6px;
	padding: 5px 9px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(8, 8, 7, 0.55);
	cursor: pointer;
}
.lf-spotlight__esc:hover { background: rgba(8, 8, 7, 0.12); }

/* Vorschlagsliste */
.lf-spotlight__results {
	overflow-y: auto;
	padding: 8px;
}
.lf-spotlight__results.is-loading { opacity: 0.5; }
.lf-spotlight__heading {
	margin: 0;
	padding: 14px 14px 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(8, 8, 7, 0.45);
}
.lf-spotlight__empty {
	margin: 0;
	padding: 22px 14px;
	text-align: center;
	color: rgba(8, 8, 7, 0.5);
	font-size: 15px;
}
.lf-spotlight__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--lf-dark);
	transition: background 0.15s ease;
}
.lf-spotlight__item:hover,
.lf-spotlight__item.is-active { background: rgba(15, 123, 87, 0.09); }
.lf-spotlight__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background-color: var(--lf-light);
	background-size: cover;
	background-position: center;
}
.lf-spotlight__body { flex: 1; min-width: 0; }
.lf-spotlight__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.lf-spotlight__title mark {
	background: rgba(72, 175, 233, 0.25);
	color: inherit;
	border-radius: 3px;
	padding: 0 1px;
}
.lf-spotlight__meta {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: rgba(8, 8, 7, 0.5);
}
.lf-spotlight__item .lf-type-icon {
	position: static;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	padding: 8px;
}

/* Fußzeile mit Tastatur-Hinweisen */
.lf-spotlight__footer {
	display: flex;
	gap: 18px;
	padding: 10px 20px;
	border-top: 1px solid rgba(8, 8, 7, 0.08);
	font-size: 12px;
	color: rgba(8, 8, 7, 0.5);
}
.lf-spotlight__footer kbd {
	display: inline-block;
	background: rgba(8, 8, 7, 0.06);
	border-radius: 4px;
	padding: 2px 6px;
	margin-right: 4px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
}

@media (max-width: 640px) {
	.lf-search-overlay { padding-top: 8vh; }
	.lf-spotlight__footer { display: none; }
}

/* Hamburger + Offcanvas (Mobile) */
.lf-hamburger {
	display: none;
	background: var(--lf-white);
	color: var(--lf-primary);
	border: none;
	border-radius: 3px;
	width: 45px;
	height: 42px;
	padding: 8px;
	cursor: pointer;
}
.lf-hamburger svg { width: 100%; height: 100%; }

@media (max-width: 1024px) {
	.lf-nav { display: none; }
	.lf-hamburger { display: inline-flex; align-items: center; justify-content: center; }
	.lf-header__inner { min-height: 90px; }
	.lf-nav__item > a { line-height: 1.5; }
}

.lf-offcanvas {
	position: fixed;
	top: 0;
	left: -100%;
	bottom: 0;
	width: min(350px, 88vw);
	background: var(--lf-primary-dark);
	z-index: 210;
	overflow-y: auto;
	transition: left 0.3s ease;
	padding: 1.5em 2em 3em;
}
.lf-offcanvas.is-open { left: 0; }
.lf-offcanvas__close {
	background: var(--lf-white);
	color: var(--lf-primary);
	font-weight: 700;
	border: none;
	border-radius: 3px;
	width: 45px;
	height: 42px;
	cursor: pointer;
	margin-bottom: 1.5em;
}
.lf-offcanvas .lf-nav__list { flex-direction: column; align-items: stretch; }
.lf-offcanvas .lf-nav__item > a {
	color: var(--lf-white);
	font-size: 16px;
	line-height: 1.5;
	padding: 10px 0;
	width: 100%;
	justify-content: space-between;
}
.lf-offcanvas .lf-mega {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	background: transparent;
	box-shadow: none;
	padding: 0 0 0 10px;
	display: none;
}
.lf-offcanvas .lf-nav__item.is-open .lf-mega { display: block; }
.lf-offcanvas .lf-mega__grid { grid-template-columns: 1fr; gap: 4px; }
.lf-offcanvas .lf-mega__featured { grid-template-columns: 1fr; gap: 4px; margin-bottom: 4px; }
.lf-offcanvas .lf-mega__title { display: none; }
.lf-offcanvas .lf-icon-box { width: 42px; height: 42px; padding: 8px; }

.lf-offcanvas-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 205;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}
.lf-offcanvas-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------ */
.lf-footer {
	background: var(--lf-primary);
	color: var(--lf-light);
	padding: 0 0 2.5em;
}
.lf-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1.1fr 1fr 0.6fr 0.7fr;
	gap: 40px;
	align-items: start;
}
/* Text-Spalten mit viel Luft (wie Vorlage: 3em oben/unten);
   Logo-Karten bündig an der Footer-Oberkante */
.lf-footer__col { padding: 3em 0; }
.lf-footer__logo-col { align-self: start; }
.lf-footer__heading {
	display: block;
	color: var(--lf-white);
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 1.5em;
}
.lf-footer__cols { display: flex; gap: 20px; }
.lf-footer__cols > div { flex: 1; }
.lf-footer p { margin: 0 0 16px; font-size: 14px; line-height: 18px; }
.lf-footer p:last-child { margin-bottom: 0; }
.lf-footer a { color: var(--lf-white); font-size: 14px; }
.lf-footer a:hover { color: var(--lf-white); text-decoration: underline; text-underline-offset: 3px; }
.lf-footer__logo {
	background: var(--lf-white);
	padding: 0 20px;
	box-shadow: var(--lf-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lf-footer__logo img {
	width: 100%;
	height: 184px;
	object-fit: contain;
	object-position: center;
}
.lf-footer__bottom {
	margin-top: 2.5em;
	padding-top: 1.5em;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
}
.lf-footer__bottom a { font-size: 13px; }

@media (max-width: 1024px) {
	.lf-footer { padding-top: 2.5em; }
	.lf-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.lf-footer__col { padding: 0; }
}
@media (max-width: 640px) {
	.lf-footer__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   9. Hero-Layout (Widget: Landfunk Hero)
   ------------------------------------------------------------------------ */
.lf-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--lf-gap);
	align-items: stretch;
}
.lf-hero__side {
	display: flex;
	flex-direction: column;
	gap: var(--lf-gap);
}
.lf-hero__side-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--lf-gap);
	flex: 1;
}
.lf-hero__side .lf-card { flex: 1; }

/* Gespiegelte Variante: große Karte rechts */
.lf-hero--reverse > .lf-card--lg { order: 2; }
.lf-hero--reverse > .lf-hero__side { order: 1; }

@media (max-width: 1024px) {
	.lf-hero { grid-template-columns: 1fr; }
	.lf-hero--reverse > .lf-card--lg { order: 0; }
	.lf-hero--reverse > .lf-hero__side { order: 0; }
	.lf-card--lg { min-height: 380px; }
}
@media (max-width: 640px) {
	.lf-hero__side-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   10. Termin-Karten (Widget: Landfunk Termine)
   ------------------------------------------------------------------------ */
.lf-termin {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: var(--lf-white);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	padding: 25px 30px;
}
.lf-termin__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--lf-primary);
	color: var(--lf-white);
	border-radius: var(--lf-radius-icon);
	min-width: 76px;
	padding: 12px 10px;
	text-align: center;
	flex-shrink: 0;
}
.lf-termin__day { font-size: 26px; font-weight: 700; line-height: 1.1; }
.lf-termin__month { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.lf-termin__title { font-size: 18px; margin: 0 0 4px; }
.lf-termin__title a { color: var(--lf-dark); }
.lf-termin__title a:hover { color: var(--lf-primary); }
.lf-termin__time { font-size: 14px; color: var(--lf-text); font-weight: 500; }

/* ---------------------------------------------------------------------------
   11. Flexible Content ([beitrags_inhalt])
   ------------------------------------------------------------------------ */
.lf-flex-content { color: #333; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }
.lf-flex-content h1, .lf-flex-content h2 { font-weight: 700; font-size: 22px; }
.lf-flex-content h3 { font-weight: 600; font-size: 18px; }
.lf-flex-content h4 { font-weight: 500; font-size: 16px; }
.lf-flex-content img { border-radius: var(--lf-radius-icon); }

.lf-block { margin-bottom: 20px; }

/* Galerie */
.lf-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 40px;
}
.lf-gallery--grid-3 a { flex: 1 1 calc(33.333% - 10.66px); max-width: calc(33.333% - 10.66px); }
.lf-gallery--grid-2 a { flex: 1 1 calc(50% - 8px); max-width: calc(50% - 8px); }
.lf-gallery--grid-1 a { flex: 1 1 100%; max-width: 100%; }
.lf-gallery a { overflow: hidden; transition: transform 0.2s ease; }
.lf-gallery a:hover { transform: scale(1.03); }
.lf-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	border-radius: var(--lf-radius);
}
@media (max-width: 767px) {
	.lf-gallery a { flex: 1 1 100% !important; max-width: 100% !important; }
}

/* Slider */
.lf-slider { margin-bottom: 40px; position: relative; }
.lf-swiper { width: 100%; height: 300px; }
.lf-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--lf-radius);
}
.lf-slider__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 16px;
}
.lf-slider .swiper-button-prev::after,
.lf-slider .swiper-button-next::after { display: none !important; }
.lf-slider .swiper-button-prev,
.lf-slider .swiper-button-next {
	position: absolute;
	top: 150px;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	cursor: pointer;
	margin: 0;
}
.lf-slider .swiper-button-prev { left: 12px; }
.lf-slider .swiper-button-next { right: 12px; }
.lf-slider .swiper-button-prev:hover,
.lf-slider .swiper-button-next:hover { background-color: rgba(0, 0, 0, 0.85); }
.lf-slider .swiper-button-prev svg,
.lf-slider .swiper-button-next svg { width: 20px; height: 20px; display: block; }
.lf-slider .swiper-pagination {
	flex: 1;
	text-align: center;
	position: static !important;
	color: var(--lf-dark);
}
.lf-slider .swiper-pagination-bullet-active { background: var(--lf-primary); }

/* Download */
.lf-download {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.lf-download__link {
	font-size: 18px;
	font-weight: 500;
	color: var(--lf-primary);
}

/* Karte (Leaflet) im Landfunk-Design */
.lf-map {
	height: 500px;
	border-radius: var(--lf-radius);
	overflow: hidden;
	z-index: 1;
	box-shadow: var(--lf-shadow);
	font-family: var(--lf-font-primary);
}

/* Eigener Marker (Primärgrün) */
.lf-map__marker { background: transparent; border: none; }
.lf-map__marker svg { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); transition: var(--lf-transition); }
.lf-map__marker:hover svg { transform: scale(1.08); }

/* Popup */
.lf-map .leaflet-popup-content-wrapper {
	border-radius: var(--lf-radius-icon);
	box-shadow: var(--lf-shadow);
}
.lf-map .leaflet-popup-content {
	margin: 16px 44px 16px 20px;
	font-family: var(--lf-font-primary);
}
.lf-map .leaflet-popup-close-button {
	top: 14px;
	right: 14px;
	width: 26px;
	height: 26px;
	padding: 4px;
	box-sizing: content-box;
	font-size: 18px;
	line-height: 26px;
	color: #999;
	border-radius: 50%;
	transition: var(--lf-transition);
}
.lf-map .leaflet-popup-close-button:hover { background: var(--lf-light); color: var(--lf-primary); }

.lf-map__popup { font-size: 14px; line-height: 1.5; color: var(--lf-text); }
.lf-map__popup-title { display: block; color: var(--lf-primary); font-size: 15px; font-weight: 700; }
.lf-map__popup-title:not(:first-child) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lf-light); }
.lf-map__popup-line { margin-bottom: 2px; }
.lf-map__popup-line strong { color: var(--lf-primary-dark); }
.lf-map__popup-event { margin-bottom: 6px; }

/* Zoom-Buttons */
.lf-map .leaflet-control-zoom {
	border: none;
	border-radius: var(--lf-radius-sm);
	overflow: hidden;
	box-shadow: var(--lf-shadow);
}
.lf-map .leaflet-control-zoom a {
	width: 36px;
	height: 36px;
	line-height: 36px;
	color: var(--lf-primary);
	font-weight: 600;
	border-bottom: 1px solid var(--lf-light);
	transition: var(--lf-transition);
}
.lf-map .leaflet-control-zoom a:hover { background: var(--lf-primary); color: var(--lf-white); }

/* Attribution dezent im Markenstil */
.lf-map .leaflet-control-attribution { font-family: var(--lf-font-primary); font-size: 10px; }
.lf-map .leaflet-control-attribution a { color: var(--lf-primary); }

/* "Auf der Karte anzeigen"-Link (Cards & Anmeldungs-Übersicht) */
.lf-map-link {
	color: var(--lf-primary);
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
	transition: var(--lf-transition);
}
.lf-map-link:hover { color: var(--lf-primary-dark); text-decoration: none; }
.lf-programm-card__meta .lf-map-link { font-size: 15px; font-weight: 500; }
.lf-anmeldung-item__info .lf-map-link { margin-top: 4px; font-size: 14px; }

/* ---------------------------------------------------------------------------
   12. Single-Beitrag (Layout wie Live-Seite: Inhalt links, Ort-Sidebar rechts)
   ------------------------------------------------------------------------ */
.lf-single { padding: 2em 0; }

.lf-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 72fr) minmax(0, 28fr);
	gap: 2em;
	align-items: start;
}
.lf-single__layout--full { grid-template-columns: minmax(0, 1fr); }

.lf-single__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 38px;
	color: #000;
	margin: 0 0 20px;
}

/* Dunkle Meta-Zeile unter dem Titel (Autor, Datum, Kategorien) */
.lf-meta--dark { gap: 12px 24px; margin-bottom: 25px; }
.lf-meta--dark .lf-meta__item {
	color: var(--lf-dark);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
}
.lf-meta--dark .lf-meta__item svg {
	width: 20px;
	height: 20px;
	fill: var(--lf-secondary);
	color: var(--lf-secondary);
}
.lf-meta--dark .lf-meta__item a { color: var(--lf-dark); }
.lf-meta--dark .lf-meta__item a:hover { color: var(--lf-primary); }
.lf-meta--dark .lf-meta__avatar { width: 20px; height: 20px; }

/* Beitragsbild */
.lf-single__thumb { margin: 0 0 25px; }
.lf-single__thumb img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	object-position: center;
	border-radius: var(--lf-radius-icon);
	display: block;
}

/* Podcast-Kopf: Bild links (1/3), Titel/Meta/Player rechts (2/3) – Vorlage 804 */
.lf-single__podcast-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 3em;
	align-items: stretch;
	margin-bottom: 25px;
}
.lf-single__podcast-head--no-thumb { grid-template-columns: minmax(0, 1fr); }

.lf-single__podcast-thumb { margin: 0; }
.lf-single__podcast-thumb img {
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	object-position: center;
	border-radius: 10px;
	display: block;
}

.lf-single__podcast-info {
	display: flex;
	flex-direction: column;
	justify-content: center; /* Bei hohem Bild: Titel/Meta/Player mittig zum Bild. */
	min-width: 0;
}
.lf-single__podcast-info .lf-meta--dark { margin-bottom: 25px; }
.lf-single__podcast-info .lf-single__media { margin-bottom: 0; }

/* Podcast-/Video-Player */
.lf-single__media { margin-bottom: 22px; }
.lf-single__media video {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: var(--lf-radius);
	display: block;
	background-color: #000;
}
.lf-single__media audio { width: 100%; display: block; }

/* Sidebar "Mehr aus <Ort>" */
.lf-single__aside {
	display: grid;
	gap: var(--lf-gap);
	align-content: start;
}
.lf-ort-head {
	display: flex;
	align-items: center;
	background: var(--lf-secondary);
	border-radius: var(--lf-radius-icon);
	overflow: hidden;
}
.lf-ort-head__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--lf-secondary-dark);
	color: var(--lf-white);
	padding: 8px;
	border-radius: var(--lf-radius-icon) 0 0 var(--lf-radius-icon);
}
.lf-ort-head__icon img,
.lf-ort-head__icon svg { width: 35px; height: 35px; object-fit: contain; }
.lf-ort-head__title {
	margin: 0;
	padding: 6px 6px 6px 20px;
	color: var(--lf-white);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lf-single__aside .lf-card__title { font-size: 18px; line-height: 1.2; }

/* "Mehr aus der Kategorie" unter dem Beitrag */
.lf-single-related { padding: 2em 0 3em; }
.lf-single-related .lf-icon-box { width: 51px; height: 51px; padding: 8px; }
.lf-single-related .lf-section__head { margin-bottom: 1em; }

/* Zusätzliche Kartengröße wie im Kategorie-Grid der Live-Seite */
.lf-card--hero .lf-card__title { line-height: 32px; }

@media (max-width: 767px) {
	.lf-single__layout { grid-template-columns: minmax(0, 1fr); }
	.lf-single__title { font-size: 26px; line-height: 1.25; }
	.lf-single__thumb img { height: auto; aspect-ratio: 3 / 2; }
	.lf-single__podcast-head { grid-template-columns: minmax(0, 1fr); gap: 25px; }
	.lf-single__podcast-thumb img { height: auto; min-height: 0; aspect-ratio: 3 / 4; max-height: 480px; }
	.lf-single__podcast-info .lf-single__media { margin-top: 5px; }
	.lf-meta--dark .lf-meta__item { font-size: 16px; }
	.lf-ort-head__title { font-size: 13px; padding: 6px 6px 6px 10px; }
}

/* ---------------------------------------------------------------------------
   13. Archiv / Suche / Seiten
   ------------------------------------------------------------------------ */
.lf-archive__head { padding: 2.5em 0; }
.lf-archive__head h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.lf-archive__head .lf-archive__count { color: var(--lf-text); font-weight: 500; }

.lf-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 2.5em;
	flex-wrap: wrap;
}
.lf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 50px;
	background: var(--lf-light);
	color: var(--lf-dark);
	font-weight: 600;
}
.lf-pagination .page-numbers.current,
.lf-pagination .page-numbers:hover { background: var(--lf-primary); color: var(--lf-white); }

.lf-page-content { padding: 3em 0; }
.lf-page-content .lf-container > *:first-child { margin-top: 0; }

/* Elementor: Seiten mit Canvas-/Full-Width-Template bekommen keine Extra-Ränder */
.elementor-page .lf-page-content { padding: 0; }
.elementor-page .lf-page-content .lf-container {
	max-width: none;
	padding: 0;
}

/* 404 */
.lf-404 { text-align: center; padding: 6em 0; }
.lf-404 h1 { font-size: 90px; color: var(--lf-primary); margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Kategorie-Archiv (Elementor-Vorlage 644)
   ------------------------------------------------------------------------ */
.lf-archive-hero {
	background: var(--lf-primary-dark);
	padding: 3em 0;
	text-align: center;
}
.lf-archive-hero__title {
	margin: 0;
	color: var(--lf-white);
	font-size: 26px;
	font-weight: 700;
	line-height: 32px;
}

.lf-archive-body { padding: 2em 0 3em; }

/* Ortschaften-Filter als Pill-Buttons */
.lf-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 1em;
}
.lf-filter-pill {
	display: inline-block;
	padding: 6px 18px;
	border: 2px solid var(--lf-primary);
	border-radius: 30px;
	background: var(--lf-white);
	color: var(--lf-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	transition: all 0.3s ease;
}
.lf-filter-pill:hover,
.lf-filter-pill.is-active {
	background: var(--lf-primary);
	border-color: var(--lf-primary);
	color: var(--lf-white);
}

.lf-archive-grid { margin-top: 1em; }

/* "Mehr laden" */
.lf-loadmore-wrap { text-align: center; margin-top: 2.5em; }
.lf-loadmore.is-loading { opacity: 0.6; pointer-events: none; }

@media (max-width: 767px) {
	.lf-archive-hero__title { font-size: 20px; line-height: 24px; }
}

/* ---------------------------------------------------------------------------
   Downloads & Pressematerial (Elementor-Widget "Landfunk – Downloads")
   ------------------------------------------------------------------------ */
.lf-downloads__intro {
	margin-bottom: 2em;
	font-size: 16px;
	line-height: 1.7;
}
.lf-downloads__intro p:last-child { margin-bottom: 0; }

.lf-downloads {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.lf-download {
	display: flex;
	align-items: center;
	gap: 18px;
}
.lf-download__icon.lf-icon-box {
	width: 42px;
	height: 42px;
	padding: 10px;
}
.lf-download__icon:hover { background: var(--lf-primary-dark); }
.lf-download__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.lf-download__title {
	color: var(--lf-primary);
	font-family: var(--lf-font-primary);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.lf-download__title:hover {
	color: var(--lf-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lf-download__date {
	font-size: 14px;
	color: var(--lf-text);
}
/* Auf farbigen Hintergründen weiß umschalten */
.lf-section--primary .lf-download__title,
.lf-section--secondary .lf-download__title,
.lf-section--primary .lf-download__date,
.lf-section--secondary .lf-download__date { color: var(--lf-white); }
.lf-section--primary .lf-download__icon.lf-icon-box { background: var(--lf-primary-dark); }

/* ---------------------------------------------------------------------------
   Text & Bild (Elementor-Widget "Landfunk – Text & Bild", z. B. Über Landdrang)
   ------------------------------------------------------------------------ */
.lf-split__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 60px;
	/* Beide Spalten gleich hoch: Das Bild richtet sich nach der Textspalte. */
	align-items: stretch;
}
.lf-split--media-left .lf-split__text { order: 2; }
.lf-split--media-left .lf-split__media { order: 1; }

.lf-split__logo { margin-bottom: 1em; }
.lf-split__logo img { max-width: 260px; height: auto; }

.lf-split__subtitle {
	font-family: var(--lf-font-primary);
	font-size: 18px;
	font-weight: 600;
	color: var(--lf-dark);
	margin: 0 0 1.25em;
}

.lf-split__content p { margin: 0 0 1em; }
.lf-split__content p:last-child { margin-bottom: 0; }

/* Bild füllt exakt die Höhe der Textspalte (absolut positioniert, damit die
   Bildhöhe die Zeilenhöhe nicht beeinflusst) und wird per cover beschnitten.
   Selektoren bewusst mit .lf-split-Präfix: Elementors Reset (.elementor img,
   .elementor hr) lädt nach dem Theme-CSS und würde sonst gewinnen. */
.lf-split__media { position: relative; min-height: 0; }
.lf-split .lf-split__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--lf-radius-icon);
	display: block;
}
.lf-split .lf-split__logo img { border-radius: 0; height: auto; }

/* Bei aktiver Trennlinie übernimmt sie den unteren Abstand: 3em über der
   Linie (Margin) und 3em darunter (Top-Padding der Folgesektion) – gleichmäßig. */
.lf-split--has-divider { padding-bottom: 0; }
.lf-split hr.lf-split__divider {
	border: 0;
	height: 4px;
	margin: 3em 0 0;
}

/* Elementor-Kompatibilität: Der Reset ".elementor img { height:auto;
   border-radius:0 }" lädt nach dem Theme-CSS – hier gezielt überstimmen. */
.elementor .lf-icon-box img { height: 100%; }
.elementor .lf-flex-content img { border-radius: var(--lf-radius-icon); }

@media (max-width: 1024px) {
	.lf-split__grid { gap: 32px; }
}
@media (max-width: 767px) {
	.lf-split__grid { grid-template-columns: 1fr; gap: 24px; }
	/* Mobil immer Text zuerst, Bild darunter – mit natürlicher Bildhöhe */
	.lf-split--media-left .lf-split__text { order: 1; }
	.lf-split--media-left .lf-split__media { order: 2; }
	.lf-split .lf-split__media img {
		position: static;
		height: auto;
		max-height: 420px;
	}
}

/* ---------------------------------------------------------------------------
   Aufruf & Kontakt (Elementor-Widget "Landfunk – Aufruf & Kontakt")
   ------------------------------------------------------------------------ */
.lf-cta__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px 60px;
	align-items: center;
}
.lf-cta__heading {
	font-family: var(--lf-font-primary);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--lf-primary);
	margin: 0;
}
.lf-cta__content p { margin: 0 0 1em; }
.lf-cta__content p:last-child { margin-bottom: 0; }
.lf-cta__content a { color: var(--lf-primary); }
.lf-cta__content a:hover { color: var(--lf-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
	.lf-cta__grid { gap: 24px 32px; }
	.lf-cta__heading { font-size: 26px; }
}
@media (max-width: 767px) {
	.lf-cta__grid { grid-template-columns: 1fr; }
	.lf-cta__heading { font-size: 22px; }
}

/* ---------------------------------------------------------------------------
   Termin-Karte (Elementor-Widget "Landfunk – Termine", wie Loop-Item-Vorlage)
   ------------------------------------------------------------------------ */
.lf-card--termin {
	min-height: 341px;
	padding: 30px 50px;
}
.lf-card--termin .lf-meta--termin {
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}
.lf-card--termin .lf-meta--termin .lf-meta__item {
	font-size: 22px;
	font-weight: 600;
	gap: 10px;
}
@media (max-width: 767px) {
	.lf-card--termin { padding: 25px 30px; }
	.lf-card--termin .lf-meta--termin .lf-meta__item { font-size: 18px; }
}

/* ---------------------------------------------------------------------------
   Text-Sektion (Elementor-Widget "Landfunk – Text")
   ------------------------------------------------------------------------ */
.lf-text__title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 0.75em;
}
.lf-text__content {
	font-size: 16px;
	line-height: 1.7;
}
.lf-text__content p { margin: 0 0 1em; }
.lf-text__content p:last-child { margin-bottom: 0; }
.lf-text__content ul,
.lf-text__content ol { margin: 0 0 1em 1.25em; }
.lf-text__content a { color: var(--lf-primary); }
.lf-text__content a:hover {
	color: var(--lf-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   Kontaktformular (Elementor-Widget "Landfunk – Kontaktformular")
   ------------------------------------------------------------------------ */
.lf-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 32px;
}
.lf-form__field { margin-bottom: 22px; }
.lf-form__label {
	display: block;
	font-size: 16px;
	color: var(--lf-text);
	margin-bottom: 8px;
}
.lf-form__req { color: #dc2626; margin-left: 2px; }

.lf-form input[type="text"],
.lf-form input[type="email"],
.lf-form input[type="tel"],
.lf-form textarea {
	width: 100%;
	border: 1px solid #c7c7c7;
	border-radius: 0;
	background: var(--lf-white);
	font-family: var(--lf-font-primary);
	font-size: 16px;
	color: var(--lf-text);
	padding: 12px 15px;
	transition: border-color 0.2s ease;
}
.lf-form input:focus,
.lf-form textarea:focus {
	outline: none;
	border-color: var(--lf-primary);
}
.lf-form ::placeholder { color: #a9a9a9; opacity: 1; }
.lf-form textarea { resize: vertical; min-height: 130px; }

/* Honeypot unsichtbar, aber nicht display:none (Bots erkennen das) */
.lf-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lf-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 26px;
	cursor: pointer;
}
.lf-form__consent input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--lf-primary);
}
.lf-form__consent-text { font-size: 16px; line-height: 1.6; color: var(--lf-text); }
.lf-form__consent-text p { margin: 0; display: inline; }
.lf-form__consent-text a { color: var(--lf-primary); text-decoration: underline; text-underline-offset: 3px; }
.lf-form__consent-text a:hover { color: var(--lf-primary-dark); }

.lf-form__submit {
	display: block;
	width: 100%;
	background: var(--lf-primary);
	color: var(--lf-white);
	font-family: var(--lf-font-primary);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: 0;
	padding: 15px 20px;
	cursor: pointer;
	transition: background 0.25s ease;
}
.lf-form__submit:hover { background: var(--lf-primary-dark); }

.lf-form__notice {
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: var(--lf-radius-sm);
}
.lf-form__notice--success { background: #e5f4ee; color: var(--lf-primary-dark); }
.lf-form__notice--error { background: #fdeaea; color: #b91c1c; }

@media (max-width: 767px) {
	.lf-form__grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------------------------------------------------------------------
   Landfestival-Programm: Tages-Filter, Cards, Anmelde-Warenkorb & Popup
   ------------------------------------------------------------------------ */

/* Tages-Filter – passt sich der Anzahl der Tage an */
.lf-day-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}
.lf-day-filter__btn {
	flex: 1 1 auto;
	min-width: 110px;
	background: var(--lf-white);
	color: var(--lf-primary);
	font-family: var(--lf-font-primary);
	font-size: 16px;
	font-weight: 600;
	padding: 12px 20px;
	border: 2px solid var(--lf-primary);
	border-radius: 50px;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-day-filter__btn:hover { background: var(--lf-primary); color: var(--lf-white); }
.lf-day-filter__btn.is-active { background: var(--lf-primary); color: var(--lf-white); }

/* Viele Tage: kompaktere Buttons */
.lf-day-filter--compact .lf-day-filter__btn {
	min-width: 90px;
	font-size: 14px;
	padding: 8px 14px;
}

/* Programm-Cards */
.lf-programm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--lf-white);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	padding: 26px 28px;
}
.lf-programm-card[hidden] { display: none; }
.lf-programm-card--full { opacity: 0.75; }
.lf-badge--full { background: #b91c1c; position: absolute; top: 18px; right: 18px; }

.lf-programm-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--lf-primary);
	padding-right: 0;
}
.lf-programm-card--full .lf-programm-card__title { padding-right: 130px; }

.lf-programm-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lf-programm-card__meta li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--lf-text);
}
.lf-programm-card__meta svg { flex-shrink: 0; color: var(--lf-primary); }

.lf-programm-card__events {
	list-style: none;
	margin: 0;
	padding: 14px 16px;
	background: var(--lf-light);
	border-radius: var(--lf-radius-icon);
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
}
.lf-programm-card__events strong { color: var(--lf-primary-dark); }

.lf-programm-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.lf-programm-card__places {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lf-primary);
}
.lf-programm-card__places svg { flex-shrink: 0; }
.lf-programm-card__places.is-full { color: #b91c1c; }

.lf-programm-card__add { padding: 10px 22px; font-size: 14px; }
.lf-programm-card__add:disabled { background: #9aa0a6; cursor: not-allowed; }
.lf-programm-card__add.is-added { background: var(--lf-secondary); }
.lf-programm-card__add.is-added:hover { background: var(--lf-secondary-dark); }

/* Floating Anmelde-Warenkorb: breite Leiste unten in Inhaltsbreite,
   die ausgewählten Veranstaltungen sind immer als Liste sichtbar */
.lf-cart {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: min(var(--lf-container), calc(100vw - 32px));
	z-index: 9990;
	font-family: var(--lf-font-primary);
}
.lf-cart[hidden] { display: none; }
.lf-cart__bar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	background: var(--lf-white);
	border-radius: var(--lf-radius);
	box-shadow: 0px 2px 24px rgba(0, 0, 0, 0.28);
	padding: 18px 20px;
	max-height: 50vh;
	overflow-y: auto;
}
.lf-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.lf-cart__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--lf-primary);
	font-size: 16px;
	font-weight: 700;
}
.lf-cart__collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--lf-light);
	color: var(--lf-primary);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-cart__collapse:hover { background: var(--lf-primary); color: var(--lf-white); }
.lf-cart__collapse svg { transition: var(--lf-transition); }
.lf-cart--collapsed .lf-cart__collapse svg { transform: rotate(180deg); }

/* Eingeklappter Zustand: nur die Kopfzeile bleibt sichtbar */
.lf-cart--collapsed .lf-cart__items,
.lf-cart--collapsed .lf-cart__submit { display: none; }
.lf-cart--collapsed .lf-cart__bar { padding: 12px 20px; }
.lf-cart__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	background: var(--lf-primary);
	color: var(--lf-white);
	font-size: 13px;
	font-weight: 700;
	border-radius: 50%;
}
.lf-cart__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lf-cart__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: var(--lf-light);
	border-radius: var(--lf-radius-sm);
}
.lf-cart__item-info {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	line-height: 1.45;
}
.lf-cart__item-info strong { color: var(--lf-primary); font-size: 15px; }
.lf-cart__item-meta { color: #666; font-size: 13px; }
.lf-cart__item-remove {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	color: #b91c1c;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-cart__item-remove svg { display: block; }
.lf-cart__item-remove:hover { background: #fdeaea; }
.lf-cart__submit { align-self: flex-end; }

/* Anmelde-Popup (zentriert) */
body.lf-modal-open { overflow: hidden; }
.lf-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.lf-modal[hidden] { display: none; }
.lf-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 7, 0.6); }
.lf-modal__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 60px);
	overflow-y: auto;
	background: var(--lf-white);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	padding: 30px;
}
.lf-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: var(--lf-light);
	color: var(--lf-text);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-modal__close svg { display: block; }
.lf-modal__close:hover { background: var(--lf-primary); color: var(--lf-white); }
.lf-modal__title { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: var(--lf-primary); }

.lf-modal__events { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.lf-modal__event {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	background: var(--lf-light);
	border-radius: var(--lf-radius-sm);
}
.lf-modal__event-info { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.lf-modal__event-info span { color: #666; font-size: 13px; }
.lf-modal__event-persons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--lf-text);
}
.lf-modal__event-persons input {
	width: 64px;
	padding: 6px 8px;
	font-family: var(--lf-font-primary);
	font-size: 15px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: var(--lf-radius-sm);
}
.lf-modal__event-persons input.is-invalid { border-color: #b91c1c; background: #fdeaea; }
.lf-modal__event-persons input:disabled { opacity: 0.5; }

/* Inzwischen ausgebuchte Veranstaltung im Popup */
.lf-modal__event.is-full { flex-wrap: wrap; border: 1px solid #b91c1c; background: #fdeaea; }
.lf-modal__event-full {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #b91c1c;
}
.lf-modal__event-remove {
	background: #b91c1c;
	color: var(--lf-white);
	font-family: var(--lf-font-primary);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-modal__event-remove:hover { background: #991616; }

/* Öffentliche Anmeldungs-Übersicht (Geheim-Link aus der Bestätigungs-Mail) */
.lf-anmeldung-intro { margin: 0 0 24px; font-size: 16px; }
.lf-anmeldung-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 720px;
}
.lf-anmeldung-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--lf-white);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	padding: 18px 22px;
}
.lf-anmeldung-item--storniert { opacity: 0.6; }
.lf-anmeldung-item__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	line-height: 1.5;
}
.lf-anmeldung-item__info strong { color: var(--lf-primary); font-size: 16px; }
.lf-anmeldung-item__info span { color: #666; }
.lf-badge--storniert { background: #b91c1c; }
.lf-badge--pending { background: #d97706; }
.lf-anmeldung-item__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lf-form__notice--info { background: #fff7e6; color: #92400e; }
.lf-form__notice--info .lf-anmeldung-confirm { display: inline-flex; margin-left: 12px; padding: 8px 18px; font-size: 14px; vertical-align: middle; }
.lf-anmeldung-storno {
	flex-shrink: 0;
	background: transparent;
	color: #b91c1c;
	font-family: var(--lf-font-primary);
	font-size: 14px;
	font-weight: 600;
	padding: 9px 20px;
	border: 2px solid #b91c1c;
	border-radius: 50px;
	cursor: pointer;
	transition: var(--lf-transition);
}
.lf-anmeldung-storno:hover { background: #b91c1c; color: var(--lf-white); }

@media (max-width: 600px) {
	.lf-anmeldung-item { flex-direction: column; align-items: flex-start; }
}

/* Erfolgs-Bestätigung nach dem Absenden */
.lf-modal__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	padding: 10px 0;
}
.lf-modal__success svg { color: var(--lf-primary); }
.lf-modal__success p { margin: 0; font-size: 16px; font-weight: 600; color: var(--lf-text); }

.lf-form-field { margin-bottom: 14px; }
.lf-form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.lf-form-field input {
	width: 100%;
	padding: 10px 14px;
	font-family: var(--lf-font-primary);
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: var(--lf-radius-sm);
}
.lf-form-field input:focus { outline: 2px solid var(--lf-primary); border-color: var(--lf-primary); }

.lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* DSGVO-Checkbox im Anmelde-Popup */
.lf-form-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--lf-text);
	cursor: pointer;
}
.lf-form-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--lf-primary); }
.lf-form-check a { color: var(--lf-primary); font-weight: 600; }

.lf-modal__message {
	padding: 12px 16px;
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--lf-radius-sm);
	background: var(--lf-light);
}
.lf-modal__message--success { background: #e5f4ee; color: var(--lf-primary-dark); }
.lf-modal__message--error { background: #fdeaea; color: #b91c1c; }

.lf-modal__submit { width: 100%; justify-content: center; }
.lf-modal__submit:disabled { opacity: 0.6; cursor: wait; }
.lf-modal__hint { margin: 12px 0 0; font-size: 13px; color: #666; text-align: center; }

@media (max-width: 600px) {
	.lf-day-filter__btn { min-width: calc(50% - 5px); }
	.lf-cart { bottom: 12px; }
	.lf-cart__submit { width: 100%; justify-content: center; margin-left: 0; }
	.lf-programm-card--full .lf-programm-card__title { padding-right: 0; margin-top: 26px; }
}
