/* =============================================================================
   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 {
	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__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: space-between;
	align-items: center;
	margin-top: 16px;
	gap: 20px;
}
.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: static;
	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: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) */
.lf-map {
	height: 500px;
	border-radius: var(--lf-radius);
	overflow: hidden;
	z-index: 1;
}
.lf-map__popup { font-size: 14px; line-height: 1.5; }

/* ---------------------------------------------------------------------------
   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; }
}
