/*
 * Parkfreunde Juliusruh – Theme-Stylesheet
 * Enthält den Interaktions-Layer (fade-in, zoom-on-hover, Fokus) sowie
 * Komponenten-Styles, die über theme.json nicht erreichbar sind.
 * Struktur: 1) Interaktions-Layer  2) Komponenten (folgen ab Phase 2)
 * ------------------------------------------------------------------ */

/* === 1) Interaktions-Layer ======================================== */

/* Fade-in beim Scrollen. opacity:0 NUR wenn JS aktiv ist (.has-js),
   sonst bleibt der Inhalt ohne JS sichtbar. */
.has-js .fade-in-section {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

.fade-in-section.is-visible {
	opacity: 1;
	transform: none;
}

/* Zoom-on-hover für Bild-/Cover-Container. */
.zoom-on-hover {
	overflow: hidden;
}

.zoom-on-hover img,
.zoom-on-hover .wp-block-cover__image-background {
	transition: transform 0.6s ease;
	will-change: transform;
}

.zoom-on-hover:hover img,
.zoom-on-hover:focus-within img,
.zoom-on-hover:hover .wp-block-cover__image-background,
.zoom-on-hover:focus-within .wp-block-cover__image-background {
	transform: scale(1.06);
}

/* Sichtbarer Fokus für Tastatur-Navigation. */
:where(a, button, .wp-block-button__link, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--lime);
	outline-offset: 2px;
}

/* Respektiere Reduced-Motion. */
@media (prefers-reduced-motion: reduce) {
	.has-js .fade-in-section {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.zoom-on-hover img,
	.zoom-on-hover .wp-block-cover__image-background {
		transition: none;
	}
	.zoom-on-hover:hover img,
	.zoom-on-hover:focus-within img,
	.zoom-on-hover:hover .wp-block-cover__image-background,
	.zoom-on-hover:focus-within .wp-block-cover__image-background {
		transform: none;
	}
}

/* === 2) Komponenten ============================================== */

/* --- 2.0) Root-Layout --------------------------------------------- */
/* Der Root-blockGap (theme.json, 1.5rem) erzeugt margin-block-start auf
   jedem Top-Level-Kind von .wp-site-blocks (main, footer) → weißer
   Streifen über dem Hero. Header/Main/Footer liegen bündig. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Sprungziele (z. B. „Wer wir sind“ → /#wer-wir-sind) sollen nicht
   randbündig an der Fensterkante anschlagen. */
:target {
	scroll-margin-top: 24px;
}

/* Typografie-Regel (Layout-Vorgabe): Überschriften = Montserrat,
   Fließtext = Open Sans. Die großen Aussagen-/Zitat-Bänder sind im Markup
   Absätze, wirken im Layout aber als Überschriften – deshalb folgen alle
   Display-Größen (x-large aufwärts) sowie das Zitat-Band der Montserrat.
   Fließtext (small/medium/large) bleibt Open Sans. */
p.has-x-large-font-size,
p.has-xx-large-font-size,
p.has-huge-font-size,
.pf-quote p {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
}

/* Schriftstärken 1:1 aus dem InDesign-Layout (IDML) übernommen:

     Überschriften + Display-/Zitat-Absätze  Montserrat SemiBold   600
     Fließtext (18 pt im Layout)             Open Sans Light       300
     Kleintext (16 pt: Footer, Rechtszeilen) Open Sans Regular     400
     Buttons und CTA-Links                   Open Sans Regular     400
     Hervorgehobene Zeilen (Datum, Lead)     Open Sans SemiBold    600
     Ticker-Auszeichnung (<strong>)          Open Sans Bold        700

   Die Grundstärke (300) steht in theme.json; hier stehen nur die
   Ausnahmen, die sonst vom Fließtext geerbt würden. */
.has-small-font-size {
	font-weight: 400;
}

/* Layout-Vorgabe: durchgehend scharfe Ecken. Flächen, Karten, Bilder,
   Buttons und Formularfelder bekommen keinerlei Rundung. (Runde Formen
   bleiben nur dort, wo sie Bedeutung tragen: Slider-Dots, Lightbox-Plus.) */
.wp-block-button__link,
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-cover,
.wp-block-image img,
.wp-block-gallery figure.wp-block-image img,
.wp-block-embed iframe,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
	border-radius: 0;
}

/* --- 2.1) Header + Navigation ------------------------------------ */
.pf-header {
	box-shadow: 0 1px 0 rgba(0, 51, 26, 0.06);
}

/* Auf Seiten mit Hero liegt die Leiste leicht transparent ÜBER dem
   Hero-Bild (Layout-Vorgabe): absolut positioniert, Hero rückt unter
   die Leiste. Auf Seiten ohne Hero (Kontakt, Rechtsseiten) bleibt die
   Leiste normal im Fluss. */
body:has(.pf-hero, .pf-subhero) .pf-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	background-color: rgba(243, 244, 239, 0.88) !important;
}

.pf-header__inner {
	gap: 16px 24px;
}

.pf-logo {
	margin: 0;
}

/* Logo als SVG: die Datei trägt width/height="100%", deshalb das
   Seitenverhältnis explizit setzen – sonst wird das Logo beschnitten. */
.pf-logo img {
	display: block;
	height: auto;
	aspect-ratio: 1062 / 322;
	max-width: 100%;
}

@media (max-width: 781px) {
	.pf-logo img {
		width: 200px !important;
	}
}

/* Nav-Grundstil: dunkelgrün, ohne Unterstreichung. Laut Layout ist die
   Navigation Montserrat Medium; der aktive Punkt steht in SemiBold. */
.pf-nav {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium);
}

.pf-nav a,
.pf-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--gruen);
	text-decoration: none;
}

.pf-nav .wp-block-navigation-item__content {
	padding: 0.25em 0.7em;
}

/* Hover / Fokus / aktuelle Seite -> Lime. */
.pf-nav a:hover,
.pf-nav a:focus-visible,
.pf-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.pf-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.pf-nav .wp-block-navigation-item__content[aria-current] {
	color: var(--wp--preset--color--lime);
}

/* Nur die aktuelle Seite wird auch schwerer gesetzt (Layout: SemiBold).
   Beim Hover bleibt es bei Medium – sonst würde die Leiste springen. */
.pf-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.pf-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.pf-nav .wp-block-navigation-item__content[aria-current] {
	font-weight: 600;
}

/* Pipe-Separatoren zwischen den Top-Level-Punkten (nur Desktop). */
@media (min-width: 782px) {
	.pf-nav .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:not(:last-child)::after {
		content: "|";
		color: #b7c2b4;
		font-weight: 400;
		align-self: center;
	}
}

/* Dropdown-Untermenüs. Core setzt beim Aufklappen selbst min-width:200px
   (Selektor mit 5 Klassen) – dagegen hilft nur !important, sonst brechen
   „Bildergalerie & Archiv“ und „Weiterführende Links“ um. */
.pf-nav .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--mint-2);
	border-radius: var(--wp--custom--radius--none);
	box-shadow: var(--wp--custom--shadow--card);
	padding: 6px 0;
	min-width: 260px !important;
}

.pf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.45em 1.1em;
	width: 100%;
	white-space: nowrap;
}

.pf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item:hover {
	background-color: var(--wp--preset--color--mint);
}

/* „Weiterführende Links“ steht im Layout als eigene Gruppe unter den
   Vereinsseiten – abgesetzt durch Luft und eine feine Linie. */
.pf-nav .wp-block-navigation__submenu-container .pf-nav__gap {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--wp--preset--color--mint-2);
}

/* Chevron-Button des Dropdowns (Core rendert ihn als eigenen Button,
   damit das Untermenü auch per Tastatur/Touch aufgeht). */
.pf-nav .wp-block-navigation-submenu__toggle {
	color: inherit;
	cursor: pointer;
}

.pf-nav .wp-block-navigation__submenu-icon:hover,
.pf-nav .wp-block-navigation__submenu-icon:focus-visible {
	color: var(--wp--preset--color--lime);
}

/* Der Elternpunkt „Parkfreunde“ ist reiner Dropdown-Öffner (kein href). */
.pf-nav .wp-block-navigation-submenu > a.wp-block-navigation-item__content:not([href]) {
	cursor: default;
}

/* Mobile-Overlay: Nav-Punkte untereinander, gut lesbar. */
.pf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--weiss);
}

.pf-nav .wp-block-navigation__responsive-container-open,
.pf-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--gruen);
}

/* Overlay-Menü linksbündig statt rechtsbündig (bessere Mobile-Lesbarkeit).
   WP steuert die Ausrichtung über diese Custom-Properties – im offenen
   Overlay auf flex-start umstellen, Desktop-Nav bleibt rechtsbündig. */
.pf-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
	text-align: left;
}

.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
	align-items: flex-start !important;
}

.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--gruen);
}

/* Im Overlay sind Untermenüs immer aufgeklappt – dort wäre die weiße
   Dropdown-Karte ein schwebender Kasten auf weißem Grund. Deshalb: Karte
   auflösen, Punkte nur einrücken. */
.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	min-width: 0 !important;
}

.pf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-left: 0;
}

.pf-nav .wp-block-navigation__responsive-container.is-menu-open .pf-nav__gap {
	border-top-color: var(--wp--preset--color--mint-2);
}

/* --- 2.2) Footer ------------------------------------------------- */
.pf-footer a {
	color: var(--wp--preset--color--weiss);
	text-decoration: none;
}

.pf-footer a:hover,
.pf-footer a:focus-visible {
	color: var(--wp--preset--color--lime);
	text-decoration: underline;
}

.pf-footer__title {
	margin: 0 0 0.9rem;
}

/* Pfeil-Listen (Dank an Unterstützer / Links). */
.pf-arrow-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pf-arrow-list li {
	position: relative;
	padding-left: 1.7em;
	margin-bottom: 0.5em;
}

.pf-arrow-list li::before {
	content: "\2192"; /* → */
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wp--preset--color--lime);
	font-weight: 700;
}

.pf-footer__note {
	margin-top: 1.4rem;
}

/* Trennlinie im Footer. */
.pf-footer__rule.pf-footer__rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--lime);
	background: none;
	opacity: 0.55;
	margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--30);
	max-width: none;
	width: 100%;
}

.pf-footer__legal {
	color: var(--wp--preset--color--lime);
	line-height: 1.9;
}

.pf-footer__meta a {
	color: var(--wp--preset--color--lime);
}

/* --- 2.2b) Button-Variante: Lime (Spenden / Mitgliedsantrag) ----- */
.wp-block-button.pf-btn-lime > .wp-block-button__link {
	background-color: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--weiss);
}

.wp-block-button.pf-btn-lime > .wp-block-button__link:hover,
.wp-block-button.pf-btn-lime > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
}

/* --- 2.3) Startseite / Sektionen --------------------------------- */

/* Hero als vollbreites Bildband, per CSS auf Bandhöhe beschnitten. */
.pf-hero {
	margin: 0;
}

/* ".wp-block-post-content figure."-Präfix nötig: Core druckt
   ".wp-block-image.alignfull img{height:auto}" (0,2,1) NACH dem
   Theme-CSS – wir brauchen (0,2,2), sonst verliert die Bandhöhe. */
.wp-block-post-content figure.pf-hero img {
	display: block;
	width: 100%;
	height: clamp(320px, 50vw, 640px); /* Layout: 618px bei 1240px Breite (inkl. Bereich hinter der Leiste). */
	object-fit: cover;
	object-position: 50% 58%;
}

/* Hero-Slider (Startseite): gestapelte .pf-hero-Bilder; vor der
   Swiper-Aufwertung (und ohne JS) ist nur das erste sichtbar. */
.pf-heroslider {
	position: relative;
	margin: 0;
}

.pf-heroslider > figure.pf-hero:not(:first-of-type) {
	display: none;
}

.pf-heroslider figure.pf-hero {
	margin: 0;
}

/* Weiße Chevron-Pfeile auf dem Hero-Bild. */
.pf-heroslider .pf-heroslider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--weiss);
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.2s ease;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.pf-heroslider .pf-heroslider__nav::after {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	margin: 0 auto;
}

.pf-heroslider .pf-heroslider__nav--prev {
	left: 12px;
}

.pf-heroslider .pf-heroslider__nav--prev::after {
	transform: rotate(135deg);
	margin-left: 22px;
}

.pf-heroslider .pf-heroslider__nav--next {
	right: 12px;
}

.pf-heroslider .pf-heroslider__nav--next::after {
	transform: rotate(-45deg);
	margin-right: 22px;
}

.pf-heroslider .pf-heroslider__nav:hover,
.pf-heroslider .pf-heroslider__nav:focus-visible {
	opacity: 1;
}

/* Subpage-Hero: vollbreites Bildband, per CSS auf Bandhöhe beschnitten. */
.pf-subhero {
	margin: 0;
}

.wp-block-post-content figure.pf-subhero img {
	display: block;
	width: 100%;
	height: clamp(260px, 40vw, 520px); /* Layout: 500px bei 1240px Breite (inkl. Bereich hinter der Leiste). */
	object-fit: cover;
	object-position: 50% 55%;
}

/* Grünes Titelband unter dem Subpage-Hero. */
.pf-titleband :where(h1, h2) {
	margin: 0;
}

.pf-titleband p {
	margin: 0.6rem 0 0;
}

/* Aktuelles-Ticker: weißer Text auf Lime (Layout-Vorgabe). Der Fließsatz
   ist hier Open Sans Regular, nur die Auszeichnung (<strong>) ist Bold. */
.pf-ticker p {
	margin: 0;
	font-weight: 400;
}

.pf-ticker a {
	color: var(--wp--preset--color--weiss);
	text-decoration: underline;
}

.pf-ticker a:hover,
.pf-ticker a:focus-visible {
	color: var(--wp--preset--color--gruen);
	text-decoration: none;
}

/* Split-Band: halbseitiges Bild randbündig (edge-to-edge), Text in der
   anderen Hälfte zentriert. Struktur: section.pf-split > columns
   (.pf-split__media 48% + Text-Spalte). */
.pf-split .wp-block-columns {
	gap: 0;
	margin: 0;
	align-items: stretch;
}

.pf-split .pf-split__media {
	margin: 0;
	height: 100%;
}

.pf-split .pf-split__media img,
.wp-block-post-content .pf-split figure.pf-split__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(320px, 42vw, 520px); /* Layout: Bandhöhe ~510–520px. */
	object-fit: cover;
	border-radius: 0;
}

/* Text-Hälfte: Inhalt mittig, großzügiges Innenpolster. */
.pf-split .pf-split__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--60) clamp(24px, 5vw, 72px);
}

/* Fließtext-Maß (Layout-Vorgabe): Zeilen laufen nicht über ~520px, damit
   sie wie im Grafiker-Layout umbrechen (rund eine Wortlänge schmaler als
   die volle Spaltenbreite). */
.pf-split .pf-split__text > * {
	max-width: var(--wp--custom--measure--text);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

@media (max-width: 781px) {
	.pf-split .pf-split__media img {
		min-height: 300px;
	}
}

/* 2-spaltige Sektionen: Bilder ohne Außenabstand, Ecken scharf. */
.pf-cols .wp-block-image {
	margin: 0;
}

.pf-cols .wp-block-image img {
	width: 100%;
	border-radius: var(--wp--custom--radius--none);
}

/* Weiße Links auf farbigen Bändern (z. B. „zur Bildergalerie“). */
.pf-link-white a {
	color: var(--wp--preset--color--weiss);
	text-decoration: underline;
}

.pf-link-white a:hover,
.pf-link-white a:focus-visible {
	color: var(--wp--preset--color--gruen);
	text-decoration: none;
}

.pf-link-white {
	margin-top: 1.2rem;
}

/* Bildergalerie-Band: gleichmäßige, scharfkantige Kacheln. */
.pf-gallery.wp-block-gallery {
	gap: 16px;
}

.pf-gallery.wp-block-gallery figure.wp-block-image img {
	border-radius: var(--wp--custom--radius--none);
}

/* Termin-Trennlinien (Nächste Termine). */
.pf-termine .wp-block-separator.pf-sep {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--mint-2);
	opacity: 1;
	max-width: 520px;
	margin: var(--wp--preset--spacing--40) auto;
}

.pf-termine h3 {
	margin-bottom: 0.2rem;
}

/* News-Einträge (Einsätze/Aktuelles): Mint-Panel, Bild randbündig
   links (Panel-Padding 0), Text rechts mit eigenem Innenabstand.
   Die Einträge kommen aus der Query-Loop (Beiträge der Kategorie
   „Einsätze“) – siehe patterns/vereinsarbeit.php und functions.php. */
.pf-news h3 {
	margin-top: 0;
}

.pf-news .wp-block-column:last-child {
	padding: 18px 28px 18px 24px;
}

/* Beitragsbild füllt die linke Spalte auf einheitlicher Bandhöhe
   (Layout: gleich hohe Zeilen unabhängig vom Bild-Seitenverhältnis). */
.pf-news .wp-block-post-featured-image {
	margin: 0;
	height: 100%;
}

.pf-news .wp-block-post-featured-image a,
.pf-news .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

.pf-news .wp-block-post-featured-image img {
	height: clamp(190px, 19vw, 240px);
	object-fit: cover;
}

/* Kopfzeile: „21.6.2026 | Titel“ – Datum und Titel sind eigene Blöcke,
   fließen aber als eine Zeile (inline), damit lange Titel wie im Layout
   im Textfluss umbrechen statt in eine eigene Zeile zu rutschen. */
.pf-news .pf-news__head {
	display: block;
	line-height: 1.35;
}

/* Laut Layout ist die Kopfzeile durchgehend Open Sans – auch der Titel,
   obwohl er im Markup eine Überschrift (h3) ist und deshalb sonst der
   Montserrat der `elements.heading`-Regel folgen würde. Das Datum steht
   im Light-Schnitt des Fließtexts, nur der Titel in SemiBold. */
.pf-news .pf-news__head .wp-block-post-date,
.pf-news .pf-news__head .wp-block-post-title {
	display: inline;
	margin: 0;
	color: var(--wp--preset--color--gruen);
	font-family: var(--wp--preset--font-family--open-sans);
}

.pf-news .pf-news__head .wp-block-post-title {
	font-weight: 600;
}

.pf-news__head .wp-block-post-date::after {
	content: "|";
	margin-left: 0.35em;
}

/* Core setzt `.wp-block-post-title :where(a){display:inline-block}` – ein
   Inline-Block bricht nicht im Textfluss um, der Titel würde als Ganzes in
   die nächste Zeile rutschen. Deshalb hier explizit inline. */
.pf-news .pf-news__head .wp-block-post-title a {
	display: inline;
	color: inherit;
	text-decoration: none;
}

.pf-news__head .wp-block-post-title a:hover,
.pf-news__head .wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--blau);
}

.pf-news .wp-block-post-excerpt {
	margin-top: 0.7rem;
}

.pf-news .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 781px) {
	.pf-news .wp-block-column:last-child {
		padding: 4px 20px 18px 20px;
	}
	.pf-news .wp-block-post-featured-image img {
		height: 220px;
	}
}

/* Archiv-Blättern. */
.pf-pagination {
	gap: 0.9em;
	font-weight: 600;
}

.pf-pagination a {
	text-decoration: none;
}

.pf-pagination a:hover,
.pf-pagination a:focus-visible {
	color: var(--wp--preset--color--blau);
	text-decoration: underline;
}

/* „Mehr laden“-Link dezent zentriert (Layout: Open Sans Regular). */
.pf-mehr-laden a {
	font-weight: 400;
}

/* Archiv-Hinweis der Einsätze: Chevron als CSS-Pfeil unter dem Link
   (Layout-Vorgabe). Nur .pf-archiv-link – andere „Mehr laden“-Links
   tragen das Zeichen ⌄ bereits im Text.
   .pf-archiv-link wird nur ausgegeben, wenn es mehr Einsätze gibt, als
   die Query-Loop anzeigt (siehe functions.php). */
.pf-archiv-link::after {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	margin: 10px auto 0;
	border-right: 2px solid var(--wp--preset--color--gruen);
	border-bottom: 2px solid var(--wp--preset--color--gruen);
	transform: rotate(45deg);
}

/* Einzelner Beitrag (Einsatz): Beitragsbild als Band wie der Subpage-Hero.
   Nur die vertikalen Abstände zurücksetzen – die seitlichen Margins stellt
   Core über `.has-global-padding > .alignfull` als negativen Ausbruch aus
   der 20px-Sicherheitszone. Ein pauschales `margin:0` hat diesen Ausbruch
   überschrieben und das Bild als weißen Rahmen eingefasst. */
.wp-block-post-featured-image.pf-post-hero {
	margin-block: 0;
}

.wp-block-post-featured-image.pf-post-hero img {
	display: block;
	width: 100%;
	height: clamp(260px, 40vw, 520px);
	object-fit: cover;
	object-position: 50% 55%;
}

.pf-post__date {
	margin: 0 0 0.4rem;
	opacity: 0.85;
	font-weight: 400;
}

.pf-post-body > :first-child {
	margin-top: 0;
}

/* Info-Karten (Kurpark „Ein Park voller Geschichten“). */
.pf-card {
	background-color: var(--wp--preset--color--weiss);
	border-radius: var(--wp--custom--radius--none);
	overflow: hidden;
	box-shadow: var(--wp--custom--shadow--card);
	height: 100%;
}

.pf-card .wp-block-image,
.pf-card figure {
	margin: 0;
}

.pf-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.pf-card h3 {
	margin: 0 0 0.5rem;
}

.pf-card p {
	margin: 0;
}

/* Rechtsseiten (Impressum/Datenschutz): gut lesbarer Textfluss. */
.pf-legal h2 {
	margin-top: 2.2rem;
}

.pf-legal > h2:first-child {
	margin-top: 0;
}

/* Zitat-Band: großzügige Zeilenhöhe. */
.pf-quote p:first-child {
	line-height: 1.3;
	margin-bottom: 0.4rem;
}

/* --- 2.4) Kontaktseite + Contact-Form-7 -------------------------- */

/* Zwei Spalten (Formular / Kontaktdaten) gleich hoch. */
.pf-contact__cols {
	align-items: stretch;
}

@media (min-width: 782px) {
	.pf-contact__cols {
		gap: var(--wp--preset--spacing--40);
	}
}

/* Formular-Karte: weiß, dezenter Rahmen + Schatten. */
.pf-contact__form.pf-contact__form {
	background-color: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--mint-2);
	border-radius: var(--wp--custom--radius--none);
	box-shadow: var(--wp--custom--shadow--card);
	padding: var(--wp--preset--spacing--40);
}

.pf-contact__form > h2 {
	margin-top: 0;
	margin-bottom: 1.4rem;
}

/* Kontakt-Karte (rechts): Mint-Fläche. */
.pf-contact__aside.pf-contact__aside {
	background-color: var(--wp--preset--color--mint);
	border-radius: var(--wp--custom--radius--none);
	padding: var(--wp--preset--spacing--40);
}

.pf-contact__aside > :first-child {
	margin-top: 0;
}

.pf-contact__aside p {
	margin: 0 0 1rem;
}

.pf-contact__aside h3 {
	margin: 0 0 0.4rem;
}

.pf-contact__rule.pf-contact__rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--mint-2);
	background: none;
	opacity: 1;
	margin: 1.6rem 0;
	max-width: none;
	width: 100%;
}

/* --- Contact-Form-7-Felder --- */
.wpcf7 {
	margin: 0;
}

.wpcf7 .pf-field {
	margin: 0 0 1.15rem;
}

.wpcf7 .pf-field label {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--gruen);
	margin-bottom: 0.35rem;
}

.wpcf7 .pf-req {
	color: var(--wp--preset--color--lime);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-weight: 400; /* Eingaben nicht im Light-Schnitt des Fließtexts. */
	color: var(--wp--preset--color--gruen);
	background-color: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--mint-2);
	border-radius: var(--wp--custom--radius--none);
	padding: 0.65rem 0.8rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
	color: #9aa89a;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--lime);
	box-shadow: 0 0 0 3px rgba(149, 191, 31, 0.25);
}

.wpcf7 textarea {
	resize: vertical;
	min-height: 150px;
}

/* Einwilligungs-Checkbox (DSGVO). */
.wpcf7 .pf-consent {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	margin: 0 0 1.3rem;
}

.wpcf7 .pf-consent .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .pf-consent .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
}

.wpcf7 .pf-consent input[type="checkbox"] {
	margin-top: 0.2rem;
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--wp--preset--color--gruen);
}

/* Absende-Button (wie primärer Theme-Button). */
.wpcf7 .pf-submit {
	margin: 0;
}

.wpcf7 input.wpcf7-submit {
	font: inherit;
	font-weight: 400; /* wie die Theme-Buttons (Layout: Open Sans Regular). */
	color: var(--wp--preset--color--weiss);
	background-color: var(--wp--preset--color--gruen);
	border: 0;
	border-radius: var(--wp--custom--radius--none);
	padding: 0.75rem 1.9rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wpcf7 input.wpcf7-submit:hover,
.wpcf7 input.wpcf7-submit:focus-visible {
	background-color: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
}

/* Ladespinner. */
.wpcf7 .wpcf7-spinner {
	background-color: var(--wp--preset--color--lime);
}

/* Validierung & Rückmeldungen. */
.wpcf7 .wpcf7-not-valid-tip {
	color: #b00020;
	font-size: 0.875rem;
	margin-top: 0.3rem;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
	border-color: #b00020;
}

.wpcf7 .wpcf7-response-output {
	border-radius: var(--wp--custom--radius--none);
	padding: 0.8rem 1rem;
	margin: 1.3rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.wpcf7 form.sent .wpcf7-response-output {
	border: 1px solid var(--wp--preset--color--lime);
	background-color: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--gruen);
}

/* Kontaktseite: Spalten auf Mobile untereinander. */
@media (max-width: 781px) {
	.pf-contact__form.pf-contact__form,
	.pf-contact__aside.pf-contact__aside {
		flex-basis: 100% !important;
	}
}

/* --- 2.5) Galerie-Slider (Swiper) -------------------------------- */
/* Ohne JS bleibt .pf-gallery das normale Core-Raster (Fallback);
   parkfreunde.js ersetzt sie zur Laufzeit durch die .pf-slider-Struktur. */

.pf-slider {
	position: relative;
	padding: 0 52px 40px; /* Platz für Pfeile (seitlich) + Dots (unten). */
}

.pf-slider .pf-swiper {
	overflow: hidden;
}

.pf-slider .swiper-slide {
	height: auto;
	display: flex;
}

.pf-swiper__item {
	margin: 0;
	width: 100%;
	border-radius: var(--wp--custom--radius--none);
	overflow: hidden;
}

.pf-swiper__item img {
	display: block;
	width: 100%;
	height: clamp(150px, 17vw, 210px);
	object-fit: cover;
	border-radius: 0;
}

/* Navigations-Pfeile: schlichte grüne Chevrons in den Seitenrändern
   (Layout-Vorgabe – keine Kreis-Buttons). */
.pf-slider .pf-swiper__nav {
	position: absolute;
	top: calc((100% - 40px) / 2); /* vertikal auf Bildhöhe zentriert (ohne Dots-Zone). */
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--gruen);
	cursor: pointer;
	z-index: 2;
	transition: color 0.2s ease;
}

.pf-slider .swiper-button-prev.pf-swiper__nav {
	left: 0;
}

.pf-slider .swiper-button-next.pf-swiper__nav {
	right: 0;
}

/* Eigene Chevrons (Swiper-Standard-Glyph unterdrücken). */
.pf-slider .pf-swiper__nav::after {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	margin: 0 auto;
}

.pf-slider .swiper-button-prev.pf-swiper__nav::after {
	transform: rotate(135deg);
	margin-left: 18px;
}

.pf-slider .swiper-button-next.pf-swiper__nav::after {
	transform: rotate(-45deg);
	margin-right: 18px;
}

.pf-slider .pf-swiper__nav:hover,
.pf-slider .pf-swiper__nav:focus-visible {
	color: var(--wp--preset--color--blau);
}

/* Pfeil am Anfang/Ende deaktiviert -> dezent ausblenden. */
.pf-slider .swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Passen alle Slides (watchOverflow) -> Nav + Dots komplett weg. */
.pf-slider .swiper-button-lock,
.pf-slider .swiper-pagination-lock {
	display: none;
}

/* Pagination-Dots unter den Bildern. */
.pf-slider .pf-swiper__dots {
	position: absolute;
	bottom: 4px;
	left: 0;
	right: 0;
	text-align: center;
}

/* Dunkelgrün-transluzent -> sichtbar auf weiß, mint UND lime (kein
   Galerie-Band liegt auf dunkelgrün). */
.pf-slider .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	margin: 0 5px;
	background: rgba(0, 51, 26, 0.28);
	opacity: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pf-slider .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--gruen);
	transform: scale(1.15);
}

/* Mobile: Wischen genügt -> Pfeile aus, kein Seitenpadding. */
@media (max-width: 781px) {
	.pf-slider {
		padding: 0 0 36px;
	}
	.pf-slider .pf-swiper__nav {
		display: none;
	}
}

/* --- 2.6) Lightbox ------------------------------------------------ */
/* Hover-Zustand der Galerie-Bilder (MO-Ansicht "Lustwandel"): Lime-
   Overlay + weißer Kreis mit Plus. Wird per JS (.pf-zoomable) gesetzt,
   ohne JS gibt es keine Lightbox und damit auch kein Overlay. */
.pf-zoomable {
	position: relative;
	cursor: pointer;
}

.pf-zoomable::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(149, 191, 31, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 1;
}

/* Weißer Kreis mit Plus (zwei Linien als Verlaufs-Hintergründe). */
.pf-zoomable::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	transform: translate(-50%, -50%);
	border: 2px solid var(--wp--preset--color--weiss);
	border-radius: 9999px;
	background:
		linear-gradient(var(--wp--preset--color--weiss), var(--wp--preset--color--weiss)) center / 2px 18px no-repeat,
		linear-gradient(var(--wp--preset--color--weiss), var(--wp--preset--color--weiss)) center / 18px 2px no-repeat;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 2;
}

.pf-zoomable:hover::after,
.pf-zoomable:focus-visible::after,
.pf-zoomable:hover::before,
.pf-zoomable:focus-visible::before {
	opacity: 1;
}

/* Vollbild-Dialog. */
.pf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 25, 12, 0.92);
}

/* display:flex würde das [hidden]-Attribut aushebeln -> explizit aus. */
.pf-lightbox[hidden] {
	display: none;
}

body.pf-lightbox-open {
	overflow: hidden;
}

.pf-lightbox__figure {
	margin: 0;
	max-width: calc(100vw - 140px);
	max-height: 88vh;
}

.pf-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

/* Schließen-Kreuz oben rechts. */
.pf-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background:
		linear-gradient(45deg, transparent 46%, var(--wp--preset--color--weiss) 46%, var(--wp--preset--color--weiss) 54%, transparent 54%) center / 24px 24px no-repeat,
		linear-gradient(-45deg, transparent 46%, var(--wp--preset--color--weiss) 46%, var(--wp--preset--color--weiss) 54%, transparent 54%) center / 24px 24px no-repeat;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.pf-lightbox__close:hover,
.pf-lightbox__close:focus-visible {
	opacity: 1;
}

/* Blätter-Pfeile: weiße Chevrons in den Rändern. */
.pf-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--weiss);
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.pf-lightbox__nav::after {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	margin: 0 auto;
}

.pf-lightbox__nav--prev {
	left: 12px;
}

.pf-lightbox__nav--prev::after {
	transform: rotate(135deg);
	margin-left: 24px;
}

.pf-lightbox__nav--next {
	right: 12px;
}

.pf-lightbox__nav--next::after {
	transform: rotate(-45deg);
	margin-right: 24px;
}

.pf-lightbox__nav:hover,
.pf-lightbox__nav:focus-visible {
	opacity: 1;
}

@media (max-width: 781px) {
	.pf-lightbox__figure {
		max-width: calc(100vw - 24px);
	}
	.pf-lightbox__nav--prev {
		left: 0;
	}
	.pf-lightbox__nav--next {
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pf-zoomable::before,
	.pf-zoomable::after,
	.pf-lightbox__close,
	.pf-lightbox__nav {
		transition: none;
	}
}

/* --- 2.7) Weiterführende Links ------------------------------------ */
/* Jede Partnerseite steht als eigene Mint-Karte (Grün auf Mint, scharfe
   Ecken wie im Layout). Preset-Hintergrundklassen tragen !important,
   deshalb muss der Hover-Wechsel ebenfalls !important tragen. */
.pf-linkcard {
	transition: background-color 0.2s ease;
}

.pf-linkcard:hover,
.pf-linkcard:focus-within {
	background-color: var(--wp--preset--color--mint-2) !important;
}

.pf-linkcard > :first-child {
	margin-top: 0;
}

.pf-linkcard h2 {
	margin: 0 0 0.3rem;
}

.pf-linkcard__url {
	margin: 0;
	font-weight: 600;
}

.pf-linkcard__url a {
	color: var(--wp--preset--color--gruen);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.pf-linkcard__url a:hover,
.pf-linkcard__url a:focus-visible {
	color: var(--wp--preset--color--blau);
	text-decoration: underline;
}

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