/*
Theme Name:   Life in Balance
Template:     generatepress
Description:  GeneratePress-Child für life-in-balance.net nach dem 99designs-Entwurf „Spa & Esthetics“ (2020). Systemschrift, Inline-SVG, keine Bibliotheken.
Author:       Lightweb Media
Version:      0.8.0
Requires PHP: 8.2
Text Domain:  lib-gp
Update URI:   false
*/

/* =========================================================================
   1. Tokens
   ========================================================================= */
:root {
	/* Farben. Grün #35a802 (Marke, theme-lib und Entwurf) hat auf Weiß nur 3,1:1: für Flächen, Striche, Icons.
	   Text, Pills und Buttons in --lib-gruen-text (#2a8402, 4,8:1 auf Weiß und als Fläche unter weißer Schrift). */
	--lib-gruen: #35a802;
	--lib-gruen-text: #2a8402;
	--lib-gruen-dunkel: #226b02;
	--lib-oliv: #809802; /* Akzentstrich über Abschnittstiteln (Entwurf) */
	--lib-tinte: #111111; /* Überschriften */
	--lib-text: #565656; /* Fließtext, 7,3:1 */
	--lib-text-hell: #717171; /* Anrisse, 4,9:1 */
	--lib-meta: #767676; /* Meta, Unterzeilen, 4,5:1 (Entwurf #a2a2a2 fällt durch) */
	--lib-platzhalter: #666666; /* Platzhalter in Feldern: 5,3:1 auf --lib-flaeche (#767676 dort nur 4,2:1) */
	--lib-rahmen: #e4e4e4;
	--lib-flaeche: #f2f6f9; /* Formularfelder */
	--lib-beige: #fbf6f3;
	--lib-weiss: #ffffff;
	--lib-nacht: #14231b; /* Topbar */
	--lib-wald: #1c3b26; /* Fuß (E7), weiß darauf 12,3:1 */

	/* Schrift (E1: Systemschrift, keine Webfonts) */
	--lib-schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lib-fs-xs: 0.75rem;   /* 12 Pill */
	--lib-fs-s: 0.875rem;   /* 14 Meta */
	--lib-fs-m: 1rem;       /* 16 Grundschrift */
	--lib-fs-l: 1.125rem;   /* 18 Kartentitel groß, Fließtext Beitrag */
	--lib-fs-xl: 1.5rem;    /* 24 Box-Titel, H3 */
	--lib-fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);   /* 24-30 H2 im Beitrag */
	--lib-fs-3xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);   /* 28-36 Abschnittstitel, Archivtitel */
	--lib-fs-4xl: clamp(2rem, 1.3rem + 2.6vw, 3.125rem);     /* 32-50 H1 Beitrag */
	--lib-fs-hero: clamp(2.125rem, 1.1rem + 3.8vw, 4.0625rem); /* 34-65 Hero-Titel (Home_4-PSD: Roboto Bold 65/70) */
	--lib-zeile: 1.6;

	/* Abstände */
	--lib-a-1: 4px;
	--lib-a-2: 8px;
	--lib-a-3: 12px;
	--lib-a-4: 16px;
	--lib-a-5: 24px;
	--lib-a-6: 30px;
	--lib-a-7: 40px;
	--lib-a-8: 60px;
	--lib-a-9: 80px;

	/* Formen */
	--lib-radius-s: 6px;
	--lib-radius: 10px;
	--lib-radius-pill: 999px;
	--lib-schatten: 0 12px 30px rgba(0, 0, 0, 0.12);
	--lib-schatten-s: 0 3px 10px rgba(0, 0, 0, 0.08);

	/* Raster (Entwurf: 1110 Inhalt, 730 + 30 + 348) */
	--lib-container: 1110px;
	--lib-spalte-seite: 348px;
	--lib-luecke: 30px;
	--lib-rand: 16px;
	--lib-pinsel-h: clamp(24px, 4.2vw, 66px);

	/* Kopf (PSD Beitrag/Impressum: Topbar 75, Header 80). --lib-kopf-h = Topbar + Header (Hero-Bild der Startseite reicht
	   so weit nach oben), --lib-sticky-h = Höhe des klebenden Headers (Abstand für Sprungziele). */
	--lib-topbar-h: 75px;
	--lib-header-h: 80px;
	--lib-kopf-h: calc(var(--lib-topbar-h) + var(--lib-header-h));
	--lib-sticky-h: var(--lib-header-h);
	/* Angemeldet: WordPress-Admin-Bar fest oben (32 px ab 783, 46 px von 601 bis 782; darunter scrollt sie mit, 0).
	   --lib-sticky-oben = Oberkante des klebenden Headers, --lib-sticky-unten = seine Unterkante (Sprungziele, TOC). */
	--lib-adminbar-h: 0px;
	--lib-sticky-oben: var(--lib-adminbar-h);
	--lib-sticky-unten: calc(var(--lib-adminbar-h) + var(--lib-sticky-h));
}
/* --lib-adminbar-raum: Höhe der Admin-Bar am Seitenanfang, auch wo sie mitscrollt (Mobilmenü-Höhe). Ohne :has() (alte
   Browser) gelten 0 px: nur angemeldete Redaktion betroffen. */
:root:has(> body.admin-bar) { --lib-adminbar-raum: 46px; }
@media (min-width: 601px) {
	:root:has(> body.admin-bar) { --lib-adminbar-h: 46px; }
}
@media (min-width: 783px) {
	:root:has(> body.admin-bar) { --lib-adminbar-h: 32px; --lib-adminbar-raum: 32px; }
}
@media (min-width: 769px) {
	:root { --lib-rand: 24px; }
}
@media (max-width: 1024px) {
	:root { --lib-header-h: 64px; }
}
/* Mobil schlanke Topbar (nur Social-Icons, Suche als Icon im Header); ohne JavaScript bleibt das Suchfeld oben.
   „Mit JavaScript“ = Klasse lib-js an <html> (Inline-Skript im <head>, menue.js; fällt weg, wenn menue.js nicht lädt),
   nicht @media (scripting: enabled): lädt das Skript nicht, bliebe die Suche sonst unerreichbar. */
@media (max-width: 768px) {
	:root { --lib-topbar-h: 60px; }
	:root.lib-js { --lib-topbar-h: 44px; }
}

/* =========================================================================
   2. Grundlagen
   ========================================================================= */
/* Seite als Abfrage-Container: 100cqw = Breite ohne Scrollleiste (100vw zählt eine klassische Scrollleiste mit, unter
   Windows 17 px). Genutzt für Abstände, die vom freien Rand neben dem Container abhängen (Beitrag: TOC-Spalte, Pfeile).
   container-type schaltet nur Stil- und Inline-Size-Containment, kein Layout-Containment: fixed/sticky bleiben am Fenster. */
body { container: lib-seite / inline-size; }
body {
	font-family: var(--lib-schrift);
	font-size: var(--lib-fs-m);
	line-height: var(--lib-zeile);
	color: var(--lib-text);
	background: var(--lib-weiss);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--lib-schrift);
	color: var(--lib-tinte);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.6em;
}
h1 { font-size: var(--lib-fs-4xl); font-weight: 700; }
h2 { font-size: var(--lib-fs-2xl); }
h3 { font-size: var(--lib-fs-xl); }
h4 { font-size: var(--lib-fs-l); }
h5, h6 { font-size: var(--lib-fs-m); }
a { color: var(--lib-gruen-text); text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--lib-gruen-dunkel); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--lib-gruen-text); outline-offset: 2px; }
.lib-topbar :focus-visible, .lib-fuss :focus-visible, .gradient-content-green :focus-visible { outline-color: var(--lib-weiss); }
::selection { background: var(--lib-gruen); color: var(--lib-weiss); }
/* Klebender Header: Sprungziele (Anker, TOC, Sprunglink) und per Tastatur fokussierte Elemente (auch beim
   Rückwärts-Tabben, WCAG 2.4.11) landen unter ihm statt dahinter. scroll-padding gilt für jedes Scrollen ins Bild. */
html { scroll-padding-top: calc(var(--lib-sticky-unten) + 16px); }
.skip-link.screen-reader-text:focus {
	background: var(--lib-weiss);
	color: var(--lib-tinte);
	z-index: 100000;
}
[hidden] { display: none !important; }

/* Formulare und Knöpfe (GP-Grundstil im Design) */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], textarea, select {
	border: 1px solid var(--lib-rahmen);
	border-radius: var(--lib-radius-s);
	background: var(--lib-flaeche);
	color: var(--lib-tinte);
	font-size: var(--lib-fs-m);
	padding: 10px 14px;
	max-width: 100%;
}
button, input[type="submit"], input[type="button"], input[type="reset"], a.button, .wp-block-button__link {
	border-radius: var(--lib-radius-pill);
	font-weight: 600;
	min-height: 44px;
}

/* =========================================================================
   3. Raster und GP-Layout
   ========================================================================= */
.lib-wrap {
	max-width: calc(var(--lib-container) + 2 * var(--lib-rand));
	margin-inline: auto;
	padding-inline: var(--lib-rand);
}
.site.grid-container, .inside-header.grid-container {
	max-width: calc(var(--lib-container) + 2 * var(--lib-rand));
	padding-inline: var(--lib-rand);
}
.inside-navigation.grid-container { max-width: none; padding: 0; }
.site-content { gap: var(--lib-luecke); }
.site-content .content-area { width: auto; flex: 1 1 0; min-width: 0; }
.site-content .is-right-sidebar { width: var(--lib-spalte-seite); flex: 0 0 var(--lib-spalte-seite); }
.separate-containers .site-main { margin: var(--lib-a-7) 0 var(--lib-a-8); }
.separate-containers .inside-right-sidebar { margin: var(--lib-a-7) 0 var(--lib-a-8); }
.no-sidebar .site-main { max-width: 800px; } /* Lesespalte, linksbündig zum Logo */
@media (max-width: 1024px) {
	.site-content { flex-direction: column; gap: 0; }
	.site-content .is-right-sidebar { width: auto; flex: 0 0 auto; }
	.separate-containers .inside-right-sidebar { margin-top: 0; }
}

/* =========================================================================
   4. Komponenten
   ========================================================================= */

/* Icons */
.lib-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }

/* Button */
.lib-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--lib-a-2);
	min-height: 44px;
	padding: 10px 28px;
	border: 2px solid var(--lib-gruen-text);
	border-radius: var(--lib-radius-pill);
	background: var(--lib-gruen-text);
	color: var(--lib-weiss);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.lib-button:hover, .lib-button:focus { background: var(--lib-gruen-dunkel); border-color: var(--lib-gruen-dunkel); color: var(--lib-weiss); }
.lib-button--rahmen { background: transparent; color: var(--lib-gruen-text); }
.lib-button--rahmen:hover, .lib-button--rahmen:focus { background: var(--lib-gruen-text); color: var(--lib-weiss); }
.lib-button--hell { background: var(--lib-weiss); border-color: var(--lib-weiss); color: var(--lib-gruen-text); }
.lib-button--hell:hover, .lib-button--hell:focus { background: transparent; color: var(--lib-weiss); }

/* Pill (Kategorie) */
.lib-pill {
	display: inline-block;
	padding: 5px 16px;
	border-radius: var(--lib-radius-pill);
	background: var(--lib-gruen-text);
	color: var(--lib-weiss);
	font-size: 0.8125rem; /* 13 px, Laufweite 100 (PSD) */
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	/* einzeilig: lange Kategorienamen mit Ellipse, voller Name im title (lib_pill) und für Screenreader im Text */
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: top;
}
a.lib-pill:hover, a.lib-pill:focus { background: var(--lib-gruen-dunkel); color: var(--lib-weiss); }
/* Touch: Trefferfläche 45 px hoch, sichtbar bleibt die 27-px-Pill (transparenter Rand, Fläche nur im Innenraum). */
@media (pointer: coarse) {
	a.lib-pill { border-block: 9px solid transparent; background-clip: padding-box; margin-block: -9px; }
}

/* Meta „Autor · Datum“ */
.lib-meta { margin: 0; font-size: var(--lib-fs-s); color: var(--lib-meta); line-height: 1.5; }
.lib-meta__trenner { margin: 0 6px; }
.lib-meta--hell { color: rgba(255, 255, 255, 0.9); }

/* Abschnittstitel: Strich oben (Inhalt) bzw. unten zentriert (Boxen) */
.lib-titel { margin-bottom: var(--lib-a-6); }
.lib-titel__text { font-size: var(--lib-fs-3xl); font-weight: 500; color: var(--lib-tinte); margin: 0; }
/* Akzentstrich 55 x 2 px mit runden Enden, Oberkante 26 px über den Versalien (Home_4-PSD „Rounded Rectangle 21“) */
.lib-titel__text::before {
	content: "";
	display: block;
	width: 55px;
	height: 2px;
	border-radius: 1px;
	margin-bottom: 14px;
	background: var(--lib-oliv);
}
.lib-titel__unter { margin: 12px 0 0; color: var(--lib-meta); font-size: var(--lib-fs-m); }
.lib-titel--mitte { text-align: center; margin-bottom: var(--lib-a-5); }
.lib-titel--mitte .lib-titel__text { font-size: var(--lib-fs-xl); }
.lib-titel--mitte .lib-titel__text::before { display: none; }
.lib-titel--mitte .lib-titel__text::after {
	content: "";
	display: block;
	width: 90px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--lib-oliv);
}

/* Bild */
.lib-bild { display: block; width: 100%; height: auto; }

/* Karten */
.lib-karte { position: relative; display: flex; gap: var(--lib-a-4); min-width: 0; } /* min-width: Raster-Spalten wachsen nicht mit einzeiligen Pills */
.lib-karte__bild { display: block; flex: 0 0 auto; overflow: hidden; border-radius: var(--lib-radius); background: var(--lib-flaeche); }
.lib-karte__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.lib-karte:hover .lib-karte__img { transform: scale(1.03); }
.lib-karte__bild--leer { background: linear-gradient(135deg, #e8f3df, #f6faf2); }
.lib-karte__text { display: flex; flex-direction: column; gap: var(--lib-a-2); min-width: 0; }
.lib-karte__text .lib-pill { align-self: flex-start; }
.lib-karte__titel { margin: 0; font-size: var(--lib-fs-m); font-weight: 500; line-height: 1.4; } /* Medium wie PSD */
.lib-karte__titel a { color: var(--lib-tinte); text-decoration: none; }
/* Trefferfläche 44 px hoch auch bei einzeiligen Titeln und Links (Projektregel, WCAG 2.5.5): Polster innen, gleich viel
   negativer Rand, die Zeile bleibt gleich hoch (kein Layoutsprung). 1lh = Zeilenhöhe des Links, 46 statt 44, damit Rundung
   auf Bruchteile nicht darunter fällt; ohne lh-Einheit 12 px.
   Zeilenbegrenzte Kartentitel kürzen den span .lib-karte__titeltext, nicht den Link, sonst schiene im Polster die
   vierte Zeile durch. */
.lib-karte__titel a, .lib-box__mehr a, .post-navigation a {
	display: inline-block;
	max-width: 100%;
	padding-block: 12px;
	padding-block: max(3px, calc((46px - 1lh) / 2));
	margin-block: -12px;
	margin-block: min(-3px, calc((1lh - 46px) / 2));
	overflow-wrap: break-word; /* lange Wörter brechen wie vorher im Fließtext, statt die Spalte zu sprengen */
}
/* Kategorien und Schlagwörter unter dem Beitrag: mehrere Links, die umbrechen; Zeilenhöhe 44 px statt Polster, damit
   sich die Trefferflächen untereinander nicht überlappen. */
/* Kartentitel als Block: der Link umschließt den (ggf. zeilenbegrenzten) span ohne Unterlängen-Raum einer Zeile darunter. */
.lib-karte__titel a { display: block; }
footer.entry-meta :is(.cat-links, .tags-links) { line-height: 44px; }
footer.entry-meta :is(.cat-links, .tags-links) a { display: inline-block; max-width: 100%; overflow-wrap: break-word; }
.lib-karte__titel a:hover, .lib-karte__titel a:focus { color: var(--lib-gruen-text); }
.lib-karte__anriss { margin: 0; color: var(--lib-text-hell); font-size: 0.9375rem; }

.lib-karte--gross { flex-direction: column; gap: var(--lib-a-5); }
.lib-karte--gross .lib-karte__bild { aspect-ratio: 16 / 10; box-shadow: var(--lib-schatten); }
.lib-karte--gross .lib-karte__titel { font-size: var(--lib-fs-l); }
.lib-karte--gross .lib-karte__meta { order: -1; } /* Entwurf: Meta über dem Titel */
.lib-karte--gross .lib-karte__text .lib-pill { order: -2; } /* Pill über der Meta, in allen Rastern gleich */

.lib-karte--klein { align-items: flex-start; padding-bottom: var(--lib-a-4); border-bottom: 1px solid var(--lib-rahmen); }
.lib-karte--klein .lib-karte__bild { width: 135px; aspect-ratio: 3 / 2; box-shadow: var(--lib-schatten-s); }
.lib-karte--klein .lib-karte__titel { font-size: 0.9375rem; }

.lib-karte--liste { align-items: center; gap: var(--lib-a-3); }
.lib-karte--liste .lib-karte__bild { width: 72px; aspect-ratio: 4 / 3; border-radius: var(--lib-radius-s); }
.lib-karte--liste .lib-karte__titel { font-size: var(--lib-fs-s); }
.lib-karte--liste .lib-meta { font-size: var(--lib-fs-xs); }

/* Boxen (Seitenleiste und Inhalt) */
.lib-box {
	margin-bottom: var(--lib-a-6);
	padding: var(--lib-a-6) var(--lib-a-5);
	border: 1px solid var(--lib-rahmen);
	background: var(--lib-weiss);
}
.lib-box__text { margin: 0 0 var(--lib-a-3); color: var(--lib-text-hell); font-size: 0.9375rem; }

/* Pinsel-Kante: assets/img/pinsel.svg als Maske, Farbe = color */
.lib-pinsel {
	display: block;
	height: var(--lib-pinsel-h);
	color: var(--lib-weiss);
	background: currentColor;
	-webkit-mask: url("assets/img/pinsel.svg") 0 0 / 100% 100% no-repeat;
	mask: url("assets/img/pinsel.svg") 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}
.lib-pinsel--hero { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; }
.lib-pinsel--spiegel { transform: scaleX(-1); }

/* Social-Icons */
.lib-social { display: flex; flex-wrap: wrap; gap: var(--lib-a-1); margin: 0; padding: 0; list-style: none; }
.lib-social li { margin: 0; }
.lib-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: inherit;
	text-decoration: none;
}
.lib-social__kreis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: background-color 0.15s, color 0.15s;
}
.lib-social .lib-icon { width: 16px; height: 16px; }
.lib-social--kopf { gap: 0; margin-left: -4.5px; } /* Kreis 35 px bündig mit dem Inhalt, Trefferfläche 44 px */
.lib-social--kopf .lib-social__link { color: var(--lib-weiss); }
/* Alle Kreise grün (Joel 19.10.2026; PSD hatte nur Facebook grün), Hover/Fokus dunkler */
.lib-social--kopf .lib-social__kreis { width: 35px; height: 35px; background: var(--lib-gruen); }
.lib-social--kopf .lib-social__link:hover .lib-social__kreis,
.lib-social--kopf .lib-social__link:focus .lib-social__kreis { background: var(--lib-gruen-dunkel); }
.lib-social--box { justify-content: center; }
.lib-social--box .lib-social__link { color: var(--lib-gruen-text); }
.lib-social--box .lib-social__link:hover { color: var(--lib-gruen-dunkel); }
.lib-social--fuss { justify-content: center; gap: var(--lib-a-1); } /* Kreise 42 px, Raster 48 (PSD) */
.lib-social--fuss .lib-social__link { color: var(--lib-weiss); }
.lib-social--fuss .lib-social__kreis { width: 42px; height: 42px; border: 1px solid var(--lib-weiss); }
.lib-social--fuss .lib-social__link:hover .lib-social__kreis,
.lib-social--fuss .lib-social__link:focus .lib-social__kreis { background: var(--lib-weiss); color: var(--lib-wald); }

/* Suchformular (Pill mit rundem Knopf) */
.lib-suche { position: relative; display: flex; align-items: center; width: 100%; max-width: 540px; margin: 0; }
.lib-suche__feld[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 56px 0 22px;
	border: 1.5px solid var(--lib-rahmen);
	border-radius: var(--lib-radius-pill);
	background: var(--lib-weiss);
	color: var(--lib-tinte);
	font-size: var(--lib-fs-m);
	-webkit-appearance: none;
	appearance: none;
}
.lib-suche__feld::placeholder { color: var(--lib-platzhalter); opacity: 1; }
.lib-suche__knopf {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lib-gruen-text);
	color: var(--lib-weiss);
	cursor: pointer;
}
.lib-suche__knopf::after { content: ""; position: absolute; inset: -3px; } /* Trefferfläche 44 px */
.lib-suche__knopf:hover, .lib-suche__knopf:focus { background: var(--lib-gruen-dunkel); color: var(--lib-weiss); }
.lib-suche__knopf .lib-icon { width: 18px; height: 18px; }
/* Topbar-Suche (PSD): 543 x 49, Rand 2 px weiß, ohne Fläche, Platzhalter 14 px Medium weiß ab 33 px, Knopf 40 px grün
   mit weißem Icon 5 px vom Rand. Icon Weiß auf #35a802 = 3,1:1, reicht für Grafik/Bedienelement (WCAG 1.4.11, 3:1). */
.lib-suche--kopf { max-width: 543px; }
.lib-suche--kopf .lib-suche__feld[type="search"] {
	height: 49px;
	padding: 0 58px 0 31px;
	border: 2px solid var(--lib-weiss);
	background: transparent;
	color: var(--lib-weiss);
	font-size: var(--lib-fs-s);
	font-weight: 500;
}
.lib-suche--kopf .lib-suche__feld::placeholder { color: var(--lib-weiss); }
.lib-suche--kopf .lib-suche__feld:focus { background: rgba(255, 255, 255, 0.1); }
.lib-suche--kopf .lib-suche__knopf { right: 5px; width: 40px; height: 40px; background: var(--lib-gruen); color: var(--lib-weiss); }
.lib-suche--kopf .lib-suche__knopf .lib-icon { width: 16px; height: 16px; }
.lib-suche--kopf .lib-suche__knopf:hover, .lib-suche--kopf .lib-suche__knopf:focus { background: var(--lib-weiss); color: var(--lib-nacht); }

/* Anzeige-Kennzeichnung */
.lib-anzeige {
	margin: 0 0 var(--lib-a-2);
	color: var(--lib-meta);
	font-size: var(--lib-fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* =========================================================================
   5. Kopf: Topbar, Header, Navigation
   ========================================================================= */
.lib-topbar { background: var(--lib-nacht); color: var(--lib-weiss); }
.lib-topbar__innen { display: flex; align-items: center; justify-content: space-between; gap: var(--lib-a-4); min-height: var(--lib-topbar-h); }
.lib-topbar .lib-suche { flex: 0 1 543px; }
.lib-topbar__social { flex: 0 0 auto; }
/* Foto-Köpfe (Startseite, Beitrag, Seite mit breitem Bild): Topbar halbtransparent über dem Bild (PSD: Schwarz 70 %),
   das Bild steht im Hero (start.css) bzw. im Kopf (.lib-kopf--foto, unten 8a) und reicht bis zum Seitenanfang. */
:is(.lib-start--hero, .lib-foto-kopf) .lib-topbar { position: relative; z-index: 2; background: rgba(0, 0, 0, 0.7); }
/* Öffnet das Mobilmenü oder die Kopfsuche, wird der Header höher und das Hero-Bild rückt nach unten: dann fester Grund. */
:is(.lib-start--hero, .lib-foto-kopf):has(#site-navigation.toggled, .lib-kopfsuche:not([hidden])) .lib-topbar { background: var(--lib-nacht); }
@media (max-width: 768px) {
	.lib-topbar__innen { gap: var(--lib-a-2); }
	.lib-topbar .lib-social { flex: 0 0 auto; flex-wrap: nowrap; }
	.lib-topbar .lib-suche { flex: 1 1 auto; min-width: 0; }
	.lib-suche--kopf .lib-suche__feld[type="search"] { height: 44px; padding-left: 16px; }
}
/* Mobil mit JavaScript: Topbar nur mit Social-Icons (44 px), die Suche öffnet das Lupen-Icon im Header. */
@media (max-width: 768px) {
	.lib-js .lib-topbar .lib-suche { display: none; }
}
@media (pointer: coarse) {
	/* Touch: Knopf selbst 44 px; Feld 16 px Schrift (iOS zoomt sonst beim Fokus) */
	.lib-suche__knopf { width: 44px; height: 44px; right: 1px; }
	.lib-suche .lib-suche__feld[type="search"] { height: 46px; }
	.lib-suche--kopf .lib-suche__knopf { right: 3px; width: 44px; height: 44px; } /* Feld 50 px hoch */
	.lib-suche--kopf .lib-suche__feld[type="search"] { height: 50px; font-size: var(--lib-fs-m); }
}

/* Header: weiß, 80 px (mobil 64), klebt beim Scrollen oben; die Topbar scrollt weg. Kein JavaScript, kein Layoutsprung
   (sticky bleibt im Fluss). Schatten erst nach dem Losscrollen per Scroll-Timeline, wo unterstützt; sonst die Linie. */
.site-header {
	position: sticky;
	top: var(--lib-sticky-oben); /* unter der Admin-Bar, wenn angemeldet */
	z-index: 50;
	background: var(--lib-weiss);
	border-bottom: 1px solid var(--lib-rahmen);
}
:is(.lib-start--hero, .lib-foto-kopf) .site-header { border-bottom-color: transparent; } /* Entwurf: Header liegt randlos auf dem Foto */
@supports (animation-timeline: scroll()) {
	.site-header { animation: lib-kopf-schatten linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
	@keyframes lib-kopf-schatten { to { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); } }
}
/* Ohne Scroll-Timeline (Firefox): Seiten mit Linie behalten sie; Foto-Köpfe haben keine Linie, dort fester Schatten,
   sonst stünde der weiße Header nach dem Scrollen ohne Trennung auf dem weißen Inhalt. */
@supports not (animation-timeline: scroll()) {
	:is(.lib-start--hero, .lib-foto-kopf) .site-header { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
}
.inside-header { min-height: calc(var(--lib-header-h) - 1px); }
.site-logo .header-image { width: auto; height: 56px; }
.site-logo a { display: inline-block; line-height: 0; } /* Klick- und Fokusfläche = Logo (sonst 18-px-Streifen) */
/* Menü (PSD): 16 px Medium, Versalien, Laufweite 100 (0,1em), Schwarz; aktiv Grün (Text-Grün für AA) */
.main-navigation .main-nav ul li a {
	font-size: var(--lib-fs-m);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.menu-item-has-children .dropdown-menu-toggle { padding-left: 6px; }
.dropdown-menu-toggle .gp-icon .lib-icon { width: 14px; height: 14px; top: 0.1em; }
.main-navigation ul ul {
	border-top: 3px solid var(--lib-gruen);
	box-shadow: var(--lib-schatten);
}
.main-navigation .main-nav ul ul li a {
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.4;
}
.main-navigation .main-nav ul ul li + li a { border-top: 1px solid var(--lib-rahmen); }
@media (min-width: 1025px) {
	/* Tastatur: Untermenü auch bei Fokus innerhalb öffnen (zusätzlich zu GPs sfHover). */
	.main-navigation:not(.toggled) ul li:focus-within > ul {
		left: auto;
		opacity: 1;
		height: auto;
		overflow: visible;
		pointer-events: auto;
	}
	/* Die zwei rechten Punkte öffnen nach links, sonst ragt das 280er-Untermenü aus dem Fenster. */
	.main-navigation .main-nav > ul > li:nth-last-child(-n+2):hover > ul,
	.main-navigation .main-nav > ul > li:nth-last-child(-n+2).sfHover > ul,
	.main-navigation .main-nav > ul > li:nth-last-child(-n+2):focus-within > ul { left: auto; right: 0; }
	/* Letzter Punkt bündig mit dem Inhaltsrand (PSD: SERVICES endet an der Containerkante) */
	.main-navigation .main-nav > ul > li:last-child > a { padding-right: 0; }
}
/* 1025 bis 1279 px: sechs Punkte passen mit 16 px und 44er Abstand nicht neben das Logo, eine Stufe enger */
@media (min-width: 1025px) and (max-width: 1279px) {
	.main-navigation .main-nav ul li a { font-size: 0.9375rem; letter-spacing: 0.08em; padding-left: 16px; padding-right: 16px; }
	.main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 0; }
	.main-navigation .main-nav ul li.menu-item-has-children > a .dropdown-menu-toggle { padding-right: 16px; }
	.main-navigation .main-nav > ul > li:last-child > a { padding-right: 0; }
}
@media (max-width: 1024px) {
	.site-logo .header-image { height: 44px; }
	/* Offenes Mobilmenü im klebenden Header: höchstens Fensterhöhe, darin scrollbar (sonst wären untere Punkte unerreichbar).
	   Abgezogen wird alles, was oben am Seitenanfang darüber steht: Admin-Bar (mobil 46 px, auch wo sie mitscrollt),
	   Topbar und Header samt Rahmen und Versatz des aufgeklappten Menüs (gemessen 5 px, 8 px Puffer). Nach dem Scrollen
	   (Topbar weg) bleibt unten ein Rand in Topbar-Höhe. */
	.has-inline-mobile-toggle #site-navigation.toggled .main-nav {
		max-height: calc(100vh - var(--lib-kopf-h) - var(--lib-adminbar-raum, 0px) - 8px);
		max-height: calc(100dvh - var(--lib-kopf-h) - var(--lib-adminbar-raum, 0px) - 8px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.mobile-menu-control-wrapper .menu-toggle {
		min-height: 44px;
		line-height: 44px; /* GP setzt die Menühöhe 79 px, mobil soll der Header 64 px hoch sein */
		padding: 0 14px;
		background: transparent;
		font-size: var(--lib-fs-m);
		text-transform: uppercase;
		letter-spacing: 0.08em;
	}
	.has-inline-mobile-toggle #site-navigation.toggled { background: var(--lib-weiss); border-top: 1px solid var(--lib-rahmen); }
	.main-navigation .main-nav ul li a { line-height: 1.4; padding-top: 13px; padding-bottom: 13px; }
	.main-navigation.toggled .main-nav > ul > li { border-bottom: 1px solid var(--lib-rahmen); }
	.main-navigation.toggled .main-nav ul ul { border-top: 0; box-shadow: none; background: var(--lib-flaeche); }
	.main-navigation.toggled .main-nav ul ul li a { padding-left: 34px; padding-top: 13px; padding-bottom: 13px; } /* 47 px statt GP 41 */
	.main-navigation.toggled .sfHover > a .dropdown-menu-toggle .lib-icon { transform: rotate(45deg); }
	/* Untermenü-Schalter 44 x 44 (GP: 52 x 21), ragt in das Polster der Zeile (47 px), die Zeile bleibt gleich hoch */
	.main-navigation.toggled .main-nav .menu-item-has-children > a > .dropdown-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		height: 44px;
		margin: -11.5px 0;
		padding: 0;
	}
	/* Fokusrahmen innen: außen schnitte ihn der Fensterrand bzw. das geöffnete Untermenü ab */
	.main-navigation.toggled .main-nav .menu-item-has-children > a > .dropdown-menu-toggle:focus-visible { outline-offset: -3px; }
}

/* Lupe im Header (mobil bis 768 px, nur mit JavaScript) und die Suche, die sie unter dem Header aufklappt */
.lib-suche-schalter { display: none; }
.lib-kopfsuche { flex: 0 0 100%; order: 30; padding: 10px 0 14px; }
.lib-kopfsuche[hidden] { display: none; }
.lib-kopfsuche .lib-suche { max-width: none; }
@media (min-width: 769px) { .lib-kopfsuche { display: none; } }
@media (max-width: 768px) {
	.lib-js .lib-suche-schalter {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		min-height: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--lib-tinte);
		cursor: pointer;
	}
	.lib-js .lib-suche-schalter:hover, .lib-js .lib-suche-schalter:focus, .lib-js .lib-suche-schalter[aria-expanded="true"] { background: var(--lib-flaeche); color: var(--lib-gruen-text); }
	.lib-js .lib-suche-schalter .lib-icon { width: 20px; height: 20px; }
	.mobile-menu-control-wrapper { gap: 2px; }
}

/* =========================================================================
   6. Seitenleiste
   ========================================================================= */
.lib-seitenleiste { display: block; }
.lib-box--ueber { text-align: center; }
.lib-box__logo { display: block; width: 168px; height: auto; margin: 0 auto var(--lib-a-4); }
.lib-box--ueber .lib-box__text { line-height: 1.67; } /* Home_4-PSD: Roboto Regular 15/25, nicht kursiv */
.lib-box__mehr { margin: 0 0 var(--lib-a-2); font-weight: 600; }

.lib-themen { margin: 0; padding: 0; list-style: none; max-height: 430px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--lib-gruen) var(--lib-flaeche); }
.lib-themen li { margin: 0; border-bottom: 1px solid var(--lib-rahmen); }
.lib-themen a {
	display: flex;
	align-items: center;
	gap: var(--lib-a-3);
	min-height: 53px; /* PSD: Zeilenraster 53 px, Name 15 px Medium */
	padding: 6px 4px;
	color: var(--lib-tinte);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}
.lib-themen a:hover, .lib-themen a:focus, .lib-themen a[aria-current] { color: var(--lib-gruen-text); }
.lib-themen .lib-icon { width: 16px; height: 16px; color: var(--lib-gruen-text); }
.lib-themen__name { flex: 1 1 auto; }
.lib-themen__zahl { color: var(--lib-meta); font-size: var(--lib-fs-s); font-weight: 400; }
.lib-themen__zahl::before { content: "("; }
.lib-themen__zahl::after { content: ")"; }

.lib-box--anzeige { text-align: center; }
.lib-box--anzeige .lib-anzeige { text-align: left; }
.lib-box--anzeige a { display: block; }
/* Maße aus den Attributen (243 x 300) plus aspect-ratio-Inline-Stil (lib_box_anzeige): kein Sprung beim Laden (CLS) */
.lib-box__werbebild { display: block; max-width: 100%; height: auto; margin: 0 auto; }

@media (min-width: 640px) and (max-width: 1024px) {
	.lib-seitenleiste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--lib-luecke); }
	/* Ungerade Boxenzahl (seit 0.8.0 drei: Über uns, Anzeige, Themen): letzte Box über beide Spalten, Themen dann zweispaltig */
	.lib-seitenleiste > .lib-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.lib-seitenleiste > .lib-box--themen:last-child:nth-child(odd) .lib-themen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--lib-luecke); max-height: none; overflow: visible; }
}

/* =========================================================================
   7. Fuß
   ========================================================================= */
.site-footer { background: transparent; }
.lib-pinsel--fuss { color: var(--lib-wald); margin-top: var(--lib-a-8); margin-bottom: -1px; transform: scaleX(-1); }
.lib-fuss { background: var(--lib-wald); color: var(--lib-weiss); text-align: center; }
/* PSD: weißes Logo 256 x 82, 25 px darunter Links 18 px normal (Abstand rund 54 px), 41 px darunter Social-Kreise,
   27 px darunter Linie über volle Breite (Weiß 30 %), Copyright 14 px. Oben mehr Luft als vorher (60 statt 30 px); den
   Fotobereich des Entwurfs (rund 390 px über dem Logo) übernimmt der Fuß ohne Foto nicht (E7). */
.lib-fuss__innen { display: flex; flex-direction: column; align-items: center; gap: var(--lib-a-4); padding-top: var(--lib-a-8); padding-bottom: 27px; }
.lib-fuss__logo { display: inline-block; margin-bottom: 9px; }
.lib-fuss__logo img { display: block; width: 256px; height: auto; }
.lib-fuss__menue ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--lib-a-6); margin: 0; padding: 0; list-style: none; }
.lib-fuss__menue--themen ul { gap: 0 54px; }
.lib-fuss .lib-social--fuss { margin-top: 9px; }
.lib-fuss__menue li { margin: 0; }
.lib-fuss__menue a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--lib-weiss);
	text-decoration: none;
}
.lib-fuss__menue a:hover, .lib-fuss__menue a:focus, .lib-fuss__menue a[aria-current] { color: var(--lib-weiss); text-decoration: underline; }
.lib-fuss__menue--themen a { font-size: var(--lib-fs-l); font-weight: 400; }
.lib-fuss__menue:not(.lib-fuss__menue--themen) a { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.92); }
.lib-fuss__unten { border-top: 1px solid rgba(235, 231, 231, 0.3); }
.lib-fuss__unten p { margin-block: 0; padding-top: 22px; padding-bottom: 40px; font-size: var(--lib-fs-s); color: var(--lib-weiss); }
@media (max-width: 600px) {
	.lib-fuss__menue--themen ul { gap: 0 var(--lib-a-5); }
	.lib-fuss__logo img { width: 200px; }
}

/* =========================================================================
   8. GP-Standardausgabe (Seitentypen ohne eigene Vorlage)
   ========================================================================= */

/* Kopf der Startseite /page/N/ (home.php) */
.page-header { margin-bottom: var(--lib-a-2); }
.page-header .page-title { font-size: var(--lib-fs-3xl); font-weight: 600; margin: 0; }
.page-header .page-title::before { content: ""; display: block; width: 55px; height: 2px; border-radius: 1px; margin-bottom: 14px; background: var(--lib-oliv); }

/* Kartenraster (lib_raster): 2 Spalten, unter 601 px 1 Spalte; 10 je Seite füllt beide. Startseite /page/N/, Archive. */
.lib-raster--gross { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lib-a-7) var(--lib-luecke); }
.lib-raster--gross .lib-karte--gross { gap: var(--lib-a-4); }
.lib-raster--gross .lib-karte__titel { font-size: var(--lib-fs-l); }
/* Ungerade letzte Karte (nur letzte Blätterseite): quer über beide Spalten, Bild so breit wie eine Spalte. */
@media (min-width: 601px) {
	.lib-raster--gross > .lib-karte:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--lib-luecke); }
	.lib-raster--gross > .lib-karte:last-child:nth-child(odd) .lib-karte__bild { width: calc(50% - var(--lib-luecke) / 2); }
	.lib-raster--gross > .lib-karte:last-child:nth-child(odd) .lib-karte__text { flex: 1 1 0; }
}
@media (max-width: 600px) {
	.lib-raster--gross { grid-template-columns: minmax(0, 1fr); gap: var(--lib-a-7); }
}

/* Blättern (lib_blaettern): Zurück links, Seitenzahlen Mitte, Weiter rechts */
.lib-blaettern { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--lib-a-2); margin-top: var(--lib-a-7); }
.lib-blaettern__zurueck { justify-self: start; }
.lib-blaettern__weiter { justify-self: end; }
.lib-blaettern__liste { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--lib-a-2); margin: 0; padding: 0; list-style: none; }
.lib-blaettern__liste li { margin: 0; }
.lib-blaettern .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--lib-rahmen);
	border-radius: var(--lib-radius-pill);
	background: var(--lib-weiss);
	color: var(--lib-tinte);
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.lib-blaettern a.page-numbers:hover, .lib-blaettern a.page-numbers:focus { border-color: var(--lib-gruen-text); color: var(--lib-gruen-text); }
.lib-blaettern .page-numbers.current { border-color: var(--lib-gruen-text); background: var(--lib-gruen-text); color: var(--lib-weiss); font-weight: 700; }
.lib-blaettern .page-numbers.dots { min-width: 20px; padding: 0; border: 0; background: transparent; }
.lib-blaettern .prev, .lib-blaettern .next { border-color: var(--lib-gruen-text); color: var(--lib-gruen-text); font-weight: 600; }
.lib-blaettern .prev:hover, .lib-blaettern .next:hover, .lib-blaettern .prev:focus, .lib-blaettern .next:focus { background: var(--lib-gruen-text); color: var(--lib-weiss); }
.lib-blaettern .lib-icon { width: 18px; height: 18px; }
@media (max-width: 600px) {
	/* 393 px: Zurück, 1 … 4 5 6 … 34, Weiter passen mit 44er Zielen in eine Zeile */
	.lib-blaettern { gap: 2px; }
	.lib-blaettern__liste { gap: 2px; }
	.lib-blaettern .page-numbers { padding: 0 6px; }
	.lib-blaettern .page-numbers.dots { min-width: 12px; }
	.lib-blaettern .page-numbers.prev, .lib-blaettern .page-numbers.next { min-width: 44px; padding: 0; }
	.lib-blaettern__wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* Beitrag und Seite (Titel steht im Kopfband .lib-kopf) */
.lib-beitragsbild { margin: 0 0 var(--lib-a-6); }
.lib-beitragsbild img { width: 100%; border-radius: var(--lib-radius); box-shadow: var(--lib-schatten); }
.separate-containers .featured-image.lib-beitragsbild { margin-top: 0; }
.entry-content { font-size: var(--lib-fs-l); line-height: 1.7; color: var(--lib-text); }
.entry-content > * { margin-bottom: 1.25em; }
/* Zeilenlänge: Fließtext höchstens rund 80 Zeichen (38em bei 18 px; Spalte 730/760 px ergab im Mittel 89) */
:is(.entry-content, .lib-text) > :is(p, ul, ol):not([class*="text-align-center"]), .wpcf7-form p { max-width: 38em; }
/* Überschriften im Text (INNER-BLOG-PSD: H2 30 Medium Schwarz, Zwischentitel 20 Medium; Fließtext bleibt 18 statt 16 px) */
.entry-content :is(h2, h3, h4) { color: #000; }
.entry-content h2 { margin-top: 1.9em; margin-bottom: 0.7em; font-size: var(--lib-fs-2xl); font-weight: 500; line-height: 1.3; }
.entry-content h3 { margin-top: 1.6em; margin-bottom: 0.55em; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem); font-weight: 500; line-height: 1.35; }
.entry-content h4 { margin-top: 1.4em; margin-bottom: 0.5em; font-weight: 600; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { margin-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--lib-gruen-text); }
/* Aufzählungen im Text (PSD): grüner Punkt mit hellem Hof, 34 px Einzug, Abstand zwischen den Punkten ~12 px.
   Nur Listen des Fließtexts (ohne Klasse bzw. Block-Liste), nicht Plugin-Listen (TOC+, WPRM, ILRC, Sitemap). */
:is(.entry-content, .lib-text) > ul:where(:not([class]), .wp-block-list) { margin-left: 0; padding-left: 0; list-style: none; }
:is(.entry-content, .lib-text) > ul:where(:not([class]), .wp-block-list) > li { position: relative; margin-bottom: 0.65em; padding-left: 1.9em; }
:is(.entry-content, .lib-text) > ul:where(:not([class]), .wp-block-list) > li::before {
	content: "";
	position: absolute;
	left: 0.3em;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lib-gruen);
	box-shadow: 0 0 0 4px rgba(53, 168, 2, 0.18);
}
:is(.entry-content, .lib-text) > ul:where(:not([class]), .wp-block-list) > li > :is(ul, ol) { margin-left: 0.2em; }
.entry-content img { border-radius: var(--lib-radius-s); }
/* Zitate wie die Stimmen im Entwurf (BookItalic, grau, Name fett): kursiv, grüne Kante statt Fläche; Grau AA (#717171). */
.entry-content blockquote {
	margin: 1.75em 0;
	padding: 4px 0 4px var(--lib-a-5);
	border-left: 3px solid var(--lib-gruen);
	background: none;
	font-style: italic;
	color: var(--lib-text-hell);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--lib-fs-m); }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--lib-rahmen); text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--lib-flaeche); color: var(--lib-tinte); font-weight: 600; }
.wp-block-table { overflow-x: auto; }
.entry-meta { color: var(--lib-meta); font-size: var(--lib-fs-s); }
footer.entry-meta { margin-top: var(--lib-a-6); padding-top: var(--lib-a-4); border-top: 1px solid var(--lib-rahmen); }
footer.entry-meta a { color: var(--lib-gruen-text); }
.post-navigation { display: grid; gap: var(--lib-a-2); margin-top: var(--lib-a-3); }
.post-navigation .nav-previous, .post-navigation .nav-next { margin: 0; }

/* Bildunterschriften sichtbar, klein, grau (seit 0.5.0; live per Customizer-CSS ausgeblendet, Bildnachweise wie
   „Bildquelle: … / Shutterstock.com“ müssen sichtbar sein; Entscheid Joel, Standard sichtbar). 13 px #767676 = 4,5:1.
   Galerie-Bilder behalten die Unterschrift von WordPress (weiß auf Verlauf im Bild). */
.entry-content :is(figcaption, .wp-caption-text):not(.wp-block-gallery .wp-block-image figcaption), .lib-bildunterschrift {
	display: block;
	margin: 8px 0 0;
	color: var(--lib-meta);
	font-size: 0.8125rem;
	font-style: normal;
	line-height: 1.45;
	text-align: left;
}
.entry-content .wp-caption { max-width: 100%; }
.entry-content :is(figcaption, .wp-caption-text) a, .lib-bildunterschrift a { color: inherit; }

/* 404: Themen-Box unter dem Kopf (Abstände in archiv.css) */
.lib-404-themen { margin-top: var(--lib-a-7); }
.lib-404-themen .lib-box { max-width: 480px; }

/* =========================================================================
   8a. Kopf (Beitrag, Seite): Kopfband dunkelgrün oder Foto-Kopf (.lib-kopf--foto), H1 weiß, Pinsel-Kante.
       INNER-BLOG-PSD (1600 px): Foto hinter Topbar und Header bis ~830 px, Pill 132 x 31, Titel 70/75 Medium, Meta
       16 Medium, Teilen-Icons, Pinsel unten. Varianten Beitrag (Teilen) in beitrag.css, Seite (Balken) in seite.css.
   ========================================================================= */
.lib-kopf {
	position: relative;
	z-index: 1; /* unter Topbar (2) und Header (sticky, 50), über dem Seiteninhalt */
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: radial-gradient(120% 140% at 85% 0%, #29563a 0%, rgba(41, 86, 58, 0) 60%), var(--lib-wald);
	color: var(--lib-weiss);
	padding: var(--lib-a-8) 0 calc(var(--lib-pinsel-h) + var(--lib-a-7));
}
.lib-kopf__innen { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--lib-a-4); }
.lib-kopf__titel {
	max-width: 900px;
	margin: 0;
	color: var(--lib-weiss);
	font-size: clamp(2.125rem, 1rem + 3.9vw, 4.375rem); /* 34-70 */
	font-weight: 500;
	line-height: 1.08; /* 70/75 */
	overflow-wrap: break-word;
	hyphens: auto;
	hyphenate-limit-chars: 12 5 5; /* nur lange Wörter trennen */
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}
/* Lange Titel (Fachbeiträge, 56 bis 100 bzw. über 100 Zeichen) eine bzw. zwei Stufen kleiner */
.lib-kopf--lang .lib-kopf__titel { max-width: 960px; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.125rem); line-height: 1.15; }
.lib-kopf--sehrlang .lib-kopf__titel { max-width: 1000px; font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.625rem); line-height: 1.2; }
.lib-kopf .lib-pill { padding: 6.5px 28px; }
.lib-kopf .lib-pill:focus-visible, .lib-kopf a:focus-visible { outline-color: var(--lib-weiss); }
.lib-kopf__meta { margin-top: 2px; font-size: var(--lib-fs-m); font-weight: 500; color: var(--lib-weiss); }
.lib-kopf--seite { text-align: center; }
.lib-kopf--seite .lib-kopf__innen { align-items: center; }

/* Foto-Kopf: Beitragsbild hinter Topbar (halbtransparent), Header und Kopf; Abdunklung für den weißen Text */
.lib-kopf--foto { min-height: clamp(330px, 42.5vw, 680px); background: var(--lib-nacht); }
.lib-kopf--foto::before {
	content: "";
	position: absolute;
	top: calc(-1 * var(--lib-kopf-h));
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(10, 20, 14, 0.6) 0, rgba(10, 20, 14, 0.45) 45%, rgba(10, 20, 14, 0.1) 80%),
		linear-gradient(180deg, rgba(10, 20, 14, 0.15) 0, rgba(10, 20, 14, 0.25) 45%, rgba(10, 20, 14, 0.7) 100%);
}
.lib-kopf__foto { margin: 0; } /* ohne position: das Bild bezieht sich auf .lib-kopf */
/* Original höchstens 1,5-fach (--lib-hero-max aus PHP); ist das Fenster breiter, laufen die Seiten 120 px in den Fond aus */
.lib-kopf__img {
	position: absolute;
	top: calc(-1 * var(--lib-kopf-h));
	left: 0;
	right: 0;
	z-index: -2;
	width: 100%;
	max-width: var(--lib-hero-max, none);
	height: calc(100% + var(--lib-kopf-h));
	margin-inline: auto;
	object-fit: cover;
	object-position: 50% 40%;
	--lib-hero-rand: clamp(0px, 100vw - var(--lib-hero-max, 100vw), 120px);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--lib-hero-rand), #000 calc(100% - var(--lib-hero-rand)), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 var(--lib-hero-rand), #000 calc(100% - var(--lib-hero-rand)), transparent);
}
/* Bildnachweis dezent unten rechts über der Pinsel-Kante; Fläche Schwarz 60 %, weißer Text hält auf jedem Foto AA */
.lib-kopf__nachweis {
	position: absolute;
	right: max(var(--lib-rand), (100% - var(--lib-container)) / 2);
	bottom: calc(var(--lib-pinsel-h) + 6px);
	z-index: 2;
	max-width: min(440px, calc(100% - 2 * var(--lib-rand)));
	margin: 0;
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.62);
	color: var(--lib-weiss);
	font-size: 0.75rem;
	line-height: 1.4;
	text-align: right;
}
.lib-kopf__nachweis a { color: inherit; }
.lib-kopf--foto:has(.lib-kopf__nachweis) { padding-bottom: calc(var(--lib-pinsel-h) + var(--lib-a-7) + 1.5rem); }

@media (max-width: 768px) {
	.lib-kopf { padding-top: var(--lib-a-6); padding-bottom: calc(var(--lib-pinsel-h) + var(--lib-a-5)); }
	.lib-kopf__innen { gap: var(--lib-a-3); }
	.lib-kopf .lib-pill { padding-inline: 16px; }
	.lib-kopf__meta { margin-top: 0; font-size: var(--lib-fs-s); }
	/* Mobil höchstens so hoch, wie der Text braucht (Mindesthöhe 56vw): der Fließtext bleibt über dem Falz */
	.lib-kopf--foto { min-height: 56vw; padding-top: var(--lib-a-7); }
	/* Text läuft über die ganze Breite: gleichmäßig abdunkeln statt nur links (Bilder mit Schrift, helle Fotos) */
	.lib-kopf--foto::before { background: linear-gradient(180deg, rgba(10, 20, 14, 0.5) 0, rgba(10, 20, 14, 0.58) 60%, rgba(10, 20, 14, 0.75) 100%); }
	.lib-kopf--foto:has(.lib-kopf__nachweis) { padding-bottom: calc(var(--lib-pinsel-h) + var(--lib-a-5) + 3.4rem); }
	.lib-kopf__nachweis { font-size: 0.6875rem; }
}
@media print {
	.lib-kopf { min-height: 0; padding: 0 0 12pt; background: none; color: #000; }
	.lib-kopf::before, .lib-kopf__img { display: none; }
	.lib-kopf__titel, .lib-kopf__meta { color: #000; }
	.lib-kopf__nachweis { position: static; padding: 0; background: none; color: #000; }
}

/* =========================================================================
   8b. Plugin-Optik in Inhalten (Beitrag und Seite): Affiliate-Box lib-metabox, Contact Form 7, Links auf Flächen
   ========================================================================= */

/* Affiliate-Box (Plugin lib-metabox): Titel mit „Anzeige: …“ im Theme-Grün, Knopf als grüne Pill (AA statt #0288d1) */
.entry-content div.wp-block-create-block-lib-metabox { /* div: schlägt .lib-text > :last-child (beitrag.css) wie vorher */
	margin: 1.75em 0;
	overflow: hidden;
	border: 1px solid var(--lib-rahmen);
	border-radius: var(--lib-radius);
	background: var(--lib-weiss);
	box-shadow: var(--lib-schatten-s);
}
.entry-content .wp-block-create-block-lib-metabox div.title { background: var(--lib-gruen-text); text-align: left; }
.entry-content .wp-block-create-block-lib-metabox div.title p { padding: 10px var(--lib-a-5); color: var(--lib-weiss); font-size: var(--lib-fs-m); line-height: 1.4; }
.entry-content .wp-block-create-block-lib-metabox div.box-content-wrap { padding: 0 var(--lib-a-5); }
.entry-content .wp-block-create-block-lib-metabox div.box-content-wrap div.box-content { padding: var(--lib-a-5) 0; font-size: var(--lib-fs-m); }
.entry-content .wp-block-create-block-lib-metabox div.image img { border-radius: var(--lib-radius-s); box-shadow: none; }
.entry-content .wp-block-create-block-lib-metabox div.box-content-wrap div.rmore { padding-bottom: var(--lib-a-5); text-align: center; }
.entry-content .wp-block-create-block-lib-metabox div.box-content-wrap div.rmore i {
	display: inline-block;
	padding: 0;
	border-radius: var(--lib-radius-pill);
	background: var(--lib-gruen-text);
	font-style: normal;
}
.entry-content .wp-block-create-block-lib-metabox div.box-content-wrap div.rmore i:hover { background: var(--lib-gruen-dunkel); }
.entry-content .wp-block-create-block-lib-metabox div.box-content-wrap div.rmore i a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 28px;
}

/* Zitate und Flächen (#f2f6f9): Links dunkler, sonst unter 4,5:1 */
.entry-content blockquote a, .entry-content .has-background a:not(.wp-element-button) { color: var(--lib-gruen-dunkel); }

/* Contact Form 7 (Kontakt, ein Beitrag): Felder wie die Suche, Knopf als grüne Pill */
.wpcf7 { margin-top: var(--lib-a-5); }
.wpcf7-form p { margin-bottom: var(--lib-a-4); }
.wpcf7-form label { display: block; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid var(--lib-rahmen);
	border-radius: var(--lib-radius-s);
	background: var(--lib-flaeche);
	color: var(--lib-tinte);
	font-size: var(--lib-fs-m);
}
.wpcf7-form textarea { min-height: 180px; resize: vertical; }
.wpcf7-form input::placeholder, .wpcf7-form textarea::placeholder { color: var(--lib-platzhalter); opacity: 1; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--lib-gruen-text); background: var(--lib-weiss); }
.wpcf7-form .wpcf7-acceptance { display: inline; }
.wpcf7-form .wpcf7-list-item { margin: 0 8px 0 0; }
.wpcf7-form input[type="checkbox"] { width: 20px; height: 20px; vertical-align: -4px; accent-color: var(--lib-gruen-text); }
.wpcf7-form p:has(.wpcf7-acceptance) { position: relative; padding-left: 34px; font-size: var(--lib-fs-s); line-height: 1.55; color: var(--lib-text); }
.wpcf7-form p:has(.wpcf7-acceptance) .wpcf7-form-control-wrap { position: absolute; left: 0; top: 1px; }
.wpcf7-form p:has(.wpcf7-acceptance) input[type="checkbox"] { margin: 0; }
.wpcf7-form .wpcf7-submit {
	min-height: 48px;
	padding: 12px 36px;
	border: 0;
	border-radius: var(--lib-radius-pill);
	background: var(--lib-gruen-text);
	color: var(--lib-weiss);
	font-size: var(--lib-fs-m);
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--lib-schatten-s);
}
.wpcf7-form .wpcf7-submit:hover, .wpcf7-form .wpcf7-submit:focus { background: var(--lib-gruen-dunkel); }
.wpcf7-form .wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.wpcf7-not-valid-tip { margin-top: 4px; color: #b3261e; font-size: var(--lib-fs-s); }
.wpcf7 form .wpcf7-response-output { margin: var(--lib-a-4) 0 0; padding: var(--lib-a-3) var(--lib-a-4); border-radius: var(--lib-radius-s); font-size: var(--lib-fs-s); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--lib-gruen-text); background: #eef6e8; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #b3261e; background: #fdf0ef; }

/* =========================================================================
   9. Hilfsklassen für Inhalte (aus dem mh-magazine-Customizer-CSS, Inventar Abschnitt 4/6)
   ========================================================================= */
.video-container { position: relative; height: 0; padding-bottom: 56.25%; overflow: hidden; margin-bottom: 50px; }
.video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; }
.entry-content iframe, .entry-content embed, .entry-content object, .entry-content video { max-width: 100%; }
@media (max-width: 767px) { .show_desktop { display: none; } }
@media (min-width: 768px) { .show_mobile { display: none; } }
.show_desktop, .show_mobile { margin: 10px; }
/* Farbbox: mh-Verlauf #688e00 > #a6ce39 hielt mit Weiß am hellen Ende nur rund 2:1. Dunkler (Weiß auf #2a8402 4,8:1,
   auf #2f6b0a 6,6:1), Überschriften, Hervorhebungen und Links weiß. Bis 0.1.x nur in Beiträgen (beitrag.css). */
.gradient-content-green, .entry-content div.gradient-content-green { /* div: schlägt .lib-text > :last-child (beitrag.css) */
	margin: 1.75em 0;
	padding: var(--lib-a-5) var(--lib-a-6);
	font-size: var(--lib-fs-m);
	background: linear-gradient(135deg, #2f6b0a, var(--lib-gruen-text));
	color: var(--lib-weiss);
	border-radius: var(--lib-radius);
	box-shadow: 0 4px 16px rgba(34, 50, 84, 0.2);
}
.gradient-content-green :is(h2, h3, h4, strong, b, a) { color: var(--lib-weiss); }
.entry-content .gradient-content-green > :first-child { margin-top: 0; }
.entry-content .gradient-content-green > :last-child { margin-bottom: 0; }
/* E-Book-Kasten [kurebook] (mu-Plugin lwm-seo-technik, mit „Anzeige“); div: schlägt .lib-text > :last-child */
.entry-content div.kur-ebook { margin: 1.75em 0; padding: var(--lib-a-5) var(--lib-a-5) var(--lib-a-2); border: 1px solid var(--lib-rahmen); border-radius: var(--lib-radius); box-shadow: var(--lib-schatten-s); }
.kur-ebook::after { content: ""; display: table; clear: both; }
.entry-content .kur-ebook small { color: var(--lib-meta); font-size: var(--lib-fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.entry-content div.kur-ebook h3 { margin-top: 0.4em; } /* div: schlägt .single-post .entry-content h3 (beitrag.css) */
.entry-content div.kur-ebook img { box-shadow: none; }
/* Haken-Liste: Font Awesome 4 ersetzt durch Zeichen (keine Icon-Schrift mehr) */
.checklist, .checklist ul { list-style: none !important; margin-left: 0; padding-left: 0; }
.checklist li { position: relative; padding-left: 28px !important; list-style: none; }
.checklist li::before { content: "\2611"; position: absolute; left: 0; top: 0; font-size: 1.1em; line-height: inherit; color: var(--lib-gruen-text); }
.checklist .intro li::before, .checklist .advantage li::before { content: "\2713"; font-weight: 700; }
.checklist .advantage li::before { color: #4f8a1b; }
.checklist .attention li::before { content: "!"; font-weight: 700; color: #b36b00; left: 6px; }
.checklist .disadvantage li::before { content: "\2298"; color: #c40909; }
/* Knopf aus dem alten Shortcode-Plugin (mks_button, u. a. [kurebook]) als grüne Pill; !important nur gegen die
   Inline-Hintergrundfarbe (#f97400, 2,9:1 mit Weiß) */
.entry-content a.mks_button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 28px;
	border-radius: var(--lib-radius-pill);
	background-color: var(--lib-gruen-text) !important;
	color: var(--lib-weiss);
	font-weight: 600;
	text-decoration: none;
}
.entry-content a.mks_button:hover, .entry-content a.mks_button:focus { background-color: var(--lib-gruen-dunkel) !important; color: var(--lib-weiss); }
.entry-content a.mks_button .fa { display: none; }
.col { display: block; float: left; margin: 1% 0 1% 1.6%; }
.col:first-child { margin-left: 0; }
.span_2_of_2 { width: 63%; }
.span_1_of_2 { width: 33%; }
@media (max-width: 480px) {
	.col { margin: 1% 0; }
	.span_2_of_2, .span_1_of_2 { width: 100%; }
}
.wp-block-buttons { justify-content: center; margin-bottom: 30px; }
.wp-block-group__inner-container { padding: 20px; margin-bottom: 20px; }
.google-auto-placed.ap_container { margin-top: 20px; margin-bottom: 20px; }
.google-auto-placed.ap_container iframe { margin: 0 !important; }

/* Cookie-Banner (Complianz) in den Theme-Farben; die Werte stehen sonst in der generierten Banner-CSS. */
.cmplz-cookiebanner {
	--cmplz_button_accept_background_color: var(--lib-gruen-text);
	--cmplz_button_accept_border_color: var(--lib-gruen-text);
	--cmplz_button_accept_text_color: var(--lib-weiss);
	--cmplz_hyperlink_color: var(--lib-gruen-text);
}

/* =========================================================================
   10. Bewegung reduzieren
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	/* Der Header-Schatten hängt sonst an der (hier abgeschalteten) Scroll-Timeline: fest statt gar nicht. */
	.site-header { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
}
