/*
Theme Name: Feuerwehren Dörverden
Theme URI: https://wordpress-ffd.schichtdienstleiter.dev/
Author: Freiwillige Feuerwehren Dörverden
Description: Eigenes Block-Theme der Feuerwehren Dörverden. Übernimmt das Aussehen der neuen Startseite (Rot #CE1126, Inter, Karten mit runden Ecken), ist responsiv und bringt Absicherungen ohne Zusatz-Plugin mit.
Version: 0.9.13
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ffd
*/

/* Fast alles steht in theme.json. Hier nur, was theme.json nicht kann. */

/* Die vorhandenen Spectra-Blöcke verweisen auf Blocksy-Farbvariablen.
   Damit bestehende Seiten unverändert aussehen, zeigen sie auf unsere Palette. */
:root {
	--theme-palette-color-1: var(--wp--preset--color--primary);
	--theme-palette-color-2: var(--wp--preset--color--primary-dark);
	--theme-palette-color-3: var(--wp--preset--color--contrast);
	--theme-palette-color-4: var(--wp--preset--color--contrast);
	--theme-palette-color-5: var(--wp--preset--color--border);
	--theme-palette-color-6: var(--wp--preset--color--surface);
	--theme-palette-color-7: var(--wp--preset--color--background);
	--theme-palette-color-8: var(--wp--preset--color--white);
	--theme-font-family: var(--wp--preset--font-family--inter);
}

/* ---------- Kopfzeile ---------- */
.ffd-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 4px solid var(--wp--preset--color--primary);
}
.admin-bar .ffd-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .ffd-header { top: 0; } }

.ffd-header .wp-block-site-logo img { height: auto; max-height: 72px; width: auto; }
@media (max-width: 781px) { .ffd-header .wp-block-site-logo img { max-height: 48px; } }

/* ---------- Hauptmenü (ffd/menu) ---------- */
.ffd-menu { position: relative; }
.ffd-menu__toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	padding: .6rem .9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.ffd-menu__toggle-bars,
.ffd-menu__toggle-bars::before,
.ffd-menu__toggle-bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
	content: "";
	transition: transform .2s;
}
.ffd-menu__toggle-bars::before { position: absolute; top: -6px; }
.ffd-menu__toggle-bars::after { position: absolute; top: 6px; }
.ffd-menu__toggle[aria-expanded="true"] .ffd-menu__toggle-bars { background: transparent; }
.ffd-menu__toggle[aria-expanded="true"] .ffd-menu__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.ffd-menu__toggle[aria-expanded="true"] .ffd-menu__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.ffd-menu ul { list-style: none; margin: 0; padding: 0; }
.ffd-menu__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .25rem; }
@media (min-width: 1200px) {
	.ffd-menu { flex: 1; min-width: 0; }
	.ffd-menu__panel { min-width: 0; }
	.ffd-menu .ffd-menu__list { flex-wrap: nowrap; width: max-content; margin-left: auto; }
	.ffd-menu__list.has-more { overflow: visible; }
}
.ffd-menu__more-btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .75rem .55rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
}
.ffd-menu__more-btn svg { width: 10px; height: 10px; }
.ffd-menu__more > .sub-menu { left: auto; right: 0; }
.ffd-menu__more .sub-menu .sub-menu { left: auto; right: 100%; }
.ffd-menu li { position: relative; }
.ffd-menu a {
	display: block;
	padding: .75rem .55rem;
	color: var(--wp--preset--color--contrast);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
}
.ffd-menu a:hover,
.ffd-menu a:focus-visible,
.ffd-menu .current-menu-item > a,
.ffd-menu .current-menu-ancestor > .ffd-menu__row > a { color: var(--wp--preset--color--primary); }

.ffd-menu__row { display: flex; align-items: center; }
.ffd-menu__sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-left: -.5rem;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.ffd-menu__sub-toggle svg { width: 10px; height: 10px; transition: transform .2s; }
.ffd-menu__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.ffd-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	padding: .5rem 0;
	background: var(--wp--preset--color--white);
	border-top: 3px solid var(--wp--preset--color--primary);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
	z-index: 60;
}
.ffd-menu .sub-menu .sub-menu { top: 0; left: 100%; border-radius: 10px; }
.ffd-menu .sub-menu a { padding: .55rem 1.1rem; text-transform: none; font-weight: 500; font-size: .9375rem; letter-spacing: 0; }
.ffd-menu li.is-open > .sub-menu { display: block; }

@media (min-width: 1200px) and (hover: hover) {
	.ffd-menu li:hover > .sub-menu,
	.ffd-menu li:focus-within > .sub-menu { display: block; }
}

/* Mobile: Menü klappt unter der Kopfzeile auf */
@media (max-width: 1199px) {
	.ffd-menu__toggle { display: inline-flex; }
	.ffd-menu__panel {
		display: none;
		position: fixed;
		left: 1rem;
		right: 1rem;
		top: var(--ffd-menu-top, 90px);
		max-height: calc(100dvh - var(--ffd-menu-top, 90px) - 1rem);
		overflow-y: auto;
		padding: .5rem;
		background: var(--wp--preset--color--white);
		border-radius: 12px;
		box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
	}
	.ffd-menu.is-open .ffd-menu__panel { display: block; }
	.ffd-menu__list { flex-direction: column; }
	.ffd-menu__row { justify-content: space-between; }
	.ffd-menu a { padding: .8rem 1rem; font-size: .9375rem; }
	.ffd-menu__sub-toggle { width: 2.75rem; height: 2.75rem; margin: 0; }
	.ffd-menu .sub-menu,
	.ffd-menu .sub-menu .sub-menu {
		position: static;
		box-shadow: none;
		border: 0;
		border-left: 3px solid var(--wp--preset--color--primary);
		border-radius: 0;
		margin: 0 0 .5rem 1rem;
		padding: 0;
		min-width: 0;
	}
}

/* ---------- Karten / Boxen ---------- */
.is-style-ffd-card {
	background: var(--wp--preset--color--white);
	border: 1px solid #eeeeee;
	border-radius: 12px;
	box-shadow: 0 10px 40px -30px rgba(0, 0, 0, .5);
}
.is-style-ffd-accent {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--primary);
	border-left-width: 7px;
	border-radius: 8px;
}
.ffd-hero { text-shadow: 0 1px 22px rgba(51, 51, 51, .9); }
.ffd-overlap { position: relative; z-index: 2; margin-top: -50px !important; }

/* Beitragskarten in Listen */
.ffd-post-grid .wp-block-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	border: 1px solid #eeeeee;
	border-radius: 12px;
	transition: box-shadow .2s, transform .2s;
}
.ffd-post-grid .wp-block-post:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.ffd-post-grid .wp-block-post-featured-image { margin: 0; }
.ffd-post-grid .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ffd-post-grid .ffd-card-body { flex: 1; }
.ffd-post-grid .wp-block-read-more { margin-top: auto; }

/* "Weiterlesen" wie ein kleiner roter Button */
.wp-block-read-more {
	display: inline-block;
	padding: .45rem .9rem;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white) !important;
	font-size: .8125rem;
	font-weight: 600;
	text-decoration: none;
}
.wp-block-read-more:hover { background: var(--wp--preset--color--primary-dark); }

/* Einsatzliste */
.ffd-einsatz-list .wp-block-post { padding: .9rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.ffd-einsatz-list .wp-block-post:last-child { border-bottom: 0; }

/* Zweiter Button-Stil (weiß mit Rahmen) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	border: 1px solid currentColor;
}

/* ---------- Lesbarkeit & Barrierefreiheit ---------- */
.ffd-skip-link {
	position: absolute;
	left: -9999px;
	top: .5rem;
	z-index: 100;
	padding: .75rem 1rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.ffd-skip-link:focus { left: .5rem; }
:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.entry-content img, .wp-block-post-content img { height: auto; }
.wp-block-post-content { overflow-wrap: anywhere; }
.wp-block-post-content table { display: block; overflow-x: auto; }

/* Breite Spectra-Blöcke dürfen das Layout auf dem Handy nicht sprengen */
html, body { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Widgets aus der Seitenleiste (Einsatzverwaltung, Veranstaltungen) ---------- */
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { padding: .75rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { text-decoration: none; }
.sidebar-list a:hover { color: var(--wp--preset--color--primary) !important; }
.tribe-events-widget .tribe-events-widget-events-list__header-title {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

/* Spectra-Buttons nicht mitten im Wort umbrechen */
.wp-block-uagb-buttons .wp-block-button__link { white-space: nowrap; }

/* Suche in der Kopfzeile als schlichtes Symbol */
.ffd-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 0;
	padding: .5rem;
}
.ffd-header .wp-block-search__button:hover { color: var(--wp--preset--color--primary); }
.ffd-header .wp-block-search__button svg { width: 22px; height: 22px; }

/* Menübereich nimmt den freien Platz neben dem Logo ein */
@media (min-width: 1200px) {
	.ffd-header .wp-block-site-logo { flex-shrink: 0; }
	.ffd-header .ffd-header__nav { flex: 1; min-width: 0; justify-content: flex-end; }
}

/* Volle Breite für Spectra-Container (z. B. Titelbild der Startseite) */
.has-global-padding > .wp-block-uagb-container.alignfull {
	margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
	width: auto !important;
	max-width: none !important;
}

/* Einsatzliste auf dem Handy: Datum über dem Titel */
.ffd-einsatz-list .wp-block-post > .wp-block-group { row-gap: .25rem; }
.ffd-einsatz-list .wp-block-post-title { margin: 0; }
@media (max-width: 781px) {
	.ffd-einsatz-list .wp-block-post-date { flex-basis: 100% !important; font-size: .8125rem; }
}

/* ---------- Aufklapper (Details-Block und alte Atomic-Blocks-Akkordeons) ---------- */
.wp-block-details,
.ab-block-accordion > details {
	margin-block: .75rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	overflow: hidden;
}
.wp-block-details > summary,
.ab-block-accordion > details > summary {
	position: relative;
	padding: .9rem 3rem .9rem 1.1rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.wp-block-details > summary::-webkit-details-marker,
.ab-block-accordion > details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after,
.ab-block-accordion > details > summary::after {
	content: "";
	position: absolute;
	right: 1.2rem;
	top: 50%;
	width: .55rem;
	height: .55rem;
	border-right: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s;
}
.wp-block-details[open] > summary::after,
.ab-block-accordion > details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details > summary:hover,
.ab-block-accordion > details > summary:hover { color: var(--wp--preset--color--primary); }
.wp-block-details[open] > summary,
.ab-block-accordion > details[open] > summary { border-bottom: 1px solid var(--wp--preset--color--border); }
.wp-block-details > :not(summary),
.ab-block-accordion .ab-accordion-text { padding-inline: 1.1rem; }
.wp-block-details > :last-child:not(summary),
.ab-block-accordion .ab-accordion-text { padding-bottom: 1rem; }
.ab-block-accordion .ab-accordion-text > :first-child { margin-top: 1rem; }
/* verschachtelte Akkordeons etwas ruhiger */
.ab-accordion-text .ab-block-accordion > details { background: var(--wp--preset--color--surface); }

/* ---------- Bildergalerie (Ersatz für NextGEN) ---------- */
.ffd-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: .5rem;
	margin-block: 1rem;
}
.ffd-gallery__item { display: block; overflow: hidden; border-radius: 6px; background: var(--wp--preset--color--surface); }
.ffd-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s; }
.ffd-gallery__item:hover img { transform: scale(1.05); }

.ffd-lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(15, 15, 15, .94);
}
.ffd-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.ffd-lightbox::backdrop { background: transparent; }
.ffd-lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100dvh - 5rem); object-fit: contain; }
.ffd-lightbox__count { position: absolute; bottom: 1rem; left: 0; right: 0; margin: 0; color: #fff; text-align: center; font-size: .875rem; }
.ffd-lightbox__btn {
	position: absolute;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}
.ffd-lightbox__btn:hover { background: var(--wp--preset--color--primary); }
.ffd-lightbox__close { top: 1rem; right: 1rem; }
.ffd-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.ffd-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.ffd-lightbox.is-single .ffd-lightbox__prev,
.ffd-lightbox.is-single .ffd-lightbox__next { display: none; }

/* ---------- Ortsfeuerwehr-Seiten ---------- */
.ffd-ortswehr-hero h1 { margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.ffd-ortswehr-hero .ffd-kicker {
	display: inline-block;
	margin: 0 0 .5rem;
	padding: .3rem .7rem;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Kennzahlen unter dem Titelbild */
.ffd-stats > .wp-block-group { text-align: center; }
.ffd-stats .ffd-stat__value {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
}
.ffd-stats .ffd-stat__label { margin: .25rem 0 0; font-size: .875rem; color: #666; }

.ffd-section-title { position: relative; padding-bottom: .6rem; }
.ffd-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3rem;
	height: 4px;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
}
.ffd-section-title.has-text-align-center::after { left: 50%; transform: translateX(-50%); }

/* Fahrzeugkarten */
.ffd-vehicle { display: flex; flex-direction: column; overflow: hidden; }
.ffd-vehicle > .wp-block-image { margin: 0; }
.ffd-vehicle > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ffd-vehicle .ffd-vehicle__body { flex: 1; display: flex; flex-direction: column; }
.wp-block-group:has(> .ffd-vehicle) { align-items: start; }
.ffd-callsign {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.ffd-vehicle h3 { margin: .2rem 0 0; }
.ffd-vehicle .wp-block-details { margin-block: .5rem 0; background: var(--wp--preset--color--surface); border-color: transparent; }

/* Merkmale als kleine Kacheln */
ul.is-style-ffd-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: .5rem;
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}
ul.is-style-ffd-chips li {
	padding: .5rem .7rem;
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.3;
}
ul.is-style-ffd-chips li strong,
ul.is-style-ffd-chips li b { display: block; color: #666; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

/* Häkchen-Liste */
ul.is-style-ffd-check { padding: 0; list-style: none; }
ul.is-style-ffd-check li { position: relative; padding: .3rem 0 .3rem 1.75rem; }
ul.is-style-ffd-check li::before {
	content: "";
	position: absolute;
	left: .2rem;
	top: .65rem;
	width: .45rem;
	height: .8rem;
	border-right: 3px solid var(--wp--preset--color--primary);
	border-bottom: 3px solid var(--wp--preset--color--primary);
	transform: rotate(45deg);
}

/* Datenblatt-Tabelle */
.wp-block-table.is-style-ffd-specs table { display: table; width: 100%; border-collapse: collapse; font-size: .9375rem; }
.wp-block-table.is-style-ffd-specs td { padding: .45rem .25rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--border); vertical-align: top; }
.wp-block-table.is-style-ffd-specs tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-ffd-specs td:first-child { width: 42%; padding-right: 1rem; color: #666; }
.wp-block-table.is-style-ffd-specs td:last-child { font-weight: 600; }

/* Ansprechpartner */
.ffd-contacts > .wp-block-group { border-left: 4px solid var(--wp--preset--color--primary); }
.ffd-contact__role { margin: 0; color: #666; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ffd-contact__name { margin: .15rem 0 .25rem; font-weight: 700; font-size: 1.0625rem; }
.ffd-contact__mail { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }

/* Titelbild der Ortsfeuerwehr: Text nicht am Bildschirmrand */
.ffd-ortswehr-hero {
	padding-left: var(--wp--style--root--padding-left, 1.5rem) !important;
	padding-right: var(--wp--style--root--padding-right, 1.5rem) !important;
}
.ffd-ortswehr-hero p:not(.ffd-kicker) { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
@media (max-width: 781px) {
	.ffd-ortswehr-hero { min-height: 340px !important; }
}

/* Kennzahlen füllen die Leiste immer ganz aus */
.ffd-stats.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr)) !important; }
.ffd-vehicle > .wp-block-image img { aspect-ratio: 16 / 10; }

/* Kontaktformular (Contact Form 7) */
.wpcf7-form p { margin: 0 0 1rem; }
.wpcf7-form label { display: block; font-weight: 600; font-size: .9375rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	display: block;
	width: 100%;
	margin-top: .35rem;
	padding: .65rem .8rem;
	border: 1px solid #cfd8de;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 400;
	box-sizing: border-box;
}
.wpcf7-form textarea { min-height: 9rem; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--wp--preset--color--primary); outline: none; box-shadow: 0 0 0 3px rgba(206, 17, 38, .15); }
.wpcf7-form .wpcf7-submit {
	padding: .75rem 1.5rem;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--wp--preset--color--primary-dark); }
.wpcf7-form .wpcf7-list-item { margin-left: 0; }
.wp-block-table.is-style-ffd-specs td { overflow-wrap: normal; hyphens: auto; }
@media (max-width: 600px) {
	.wp-block-table.is-style-ffd-specs tr { display: block; padding: .45rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
	.wp-block-table.is-style-ffd-specs tr:last-child { border-bottom: 0; }
	.wp-block-table.is-style-ffd-specs td { display: block; width: auto !important; padding: 0; border: 0; }
	.wp-block-table.is-style-ffd-specs td:first-child { font-size: .8125rem; }
	.wp-block-details > :not(summary), .ab-block-accordion .ab-accordion-text { padding-inline: .85rem; }
}

/* ---------- Mitmachen-Seite ---------- */
.ffd-path { display: flex; flex-direction: column; border-top: 4px solid var(--wp--preset--color--primary); }
.ffd-path > * { margin-block: 0; }
.ffd-path h3 { margin: 0; }
.ffd-path > .wp-block-buttons { margin-top: auto; padding-top: .5rem; }

ol.ffd-steps { counter-reset: ffd-step; padding: 0; list-style: none; }
ol.ffd-steps li { position: relative; counter-increment: ffd-step; padding: .35rem 0 1rem 3.25rem; min-height: 2.5rem; }
ol.ffd-steps li::before {
	content: counter(ffd-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	line-height: 2.25rem;
	text-align: center;
}

.ffd-town-buttons { gap: .75rem; }
.ffd-town-buttons .wp-block-button__link { min-width: 9rem; text-align: center; }

/* Download-Liste (z. B. Dienstpläne als PDF) */
ul.is-style-ffd-downloads { display: grid; gap: .6rem; margin: 1rem 0; padding: 0; list-style: none; }
ul.is-style-ffd-downloads a {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 3.5rem;
	padding: .75rem 3rem .75rem 4.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	color: #666;
	font-size: .8125rem;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
ul.is-style-ffd-downloads a strong { color: var(--wp--preset--color--contrast); font-size: 1rem; }
/* PDF-Symbol */
ul.is-style-ffd-downloads a::before {
	content: "PDF";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 2.4rem;
	height: 2.4rem;
	transform: translateY(-50%);
	border-radius: 6px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 2.4rem;
	text-align: center;
}
/* Download-Pfeil */
ul.is-style-ffd-downloads a::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: .6rem;
	height: .6rem;
	border-right: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: translateY(-75%) rotate(45deg);
}
ul.is-style-ffd-downloads a:hover,
ul.is-style-ffd-downloads a:focus-visible { border-color: var(--wp--preset--color--primary); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-1px); }
ul.is-style-ffd-downloads a:hover strong { color: var(--wp--preset--color--primary); }

/* Menüpunkt "Mitmachen" als roter Button */
@media (min-width: 1200px) {
	.ffd-menu__list > .ffd-menu__cta { margin-left: .5rem; }
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row {
		border-radius: 6px;
		background: var(--wp--preset--color--primary);
		transition: background .2s;
	}
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row:hover { background: var(--wp--preset--color--primary-dark); }
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row > a,
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row > a:hover,
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row > .ffd-menu__sub-toggle { color: var(--wp--preset--color--white); }
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row > a { padding: .6rem .4rem .6rem .9rem; }
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row > .ffd-menu__sub-toggle { margin-left: -.25rem; margin-right: .2rem; }
	.ffd-menu__list > .ffd-menu__cta.current-menu-item > .ffd-menu__row > a { color: var(--wp--preset--color--white); }
}
@media (max-width: 1199px) {
	.ffd-menu__list > .ffd-menu__cta > .ffd-menu__row > a { color: var(--wp--preset--color--primary); }
}

/* ---------- Wegweiser "Wo wohnst du?" ---------- */
.ffd-finder__chips { gap: .5rem; margin-block: 1.25rem 1.5rem; }
.ffd-finder__chips .wp-block-button__link { padding: .55rem 1.1rem; border-radius: 999px; font-size: .9375rem; }
.ffd-finder__chips .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.ffd-finder__card { scroll-margin-top: 7rem; border-top: 4px solid var(--wp--preset--color--primary); }
.ffd-finder__people .ffd-finder__person > * { margin: 0; }
/* Ortschaft gewählt: nur noch die passende Karte zeigen */
.ffd-finder:has(.ffd-finder__card:target) .ffd-finder__card:not(:target) { display: none; }
.ffd-finder:has(.ffd-finder__card:target) .ffd-finder__cards { grid-template-columns: 1fr !important; }
.ffd-finder__card:target { box-shadow: 0 0 0 3px var(--wp--preset--color--primary), 0 18px 40px -20px rgba(0, 0, 0, .35); }
.ffd-finder__card:target h3 { font-size: var(--wp--preset--font-size--x-large); }
.ffd-faq .wp-block-details { margin-block: .6rem; }
.ffd-ortswehr-hero .wp-block-buttons { margin-top: 1.25rem; }

/* ---------- Mitmachen-Seite, Version 3 ---------- */
.ffd-mitmachen-hero { padding-bottom: 6rem !important; }
.ffd-hero-text { max-width: 44rem; }
.ffd-hero-text > * { margin-block: 0 1rem; }
.ffd-mitmachen-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { padding: .95rem 1.6rem; font-size: 1.0625rem; }
.ffd-mitmachen-hero .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--white); border: 2px solid rgba(255, 255, 255, .8); padding: .85rem 1.4rem; }
.ffd-mitmachen-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); }

ul.ffd-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem !important; padding: 0; list-style: none; color: var(--wp--preset--color--white); font-weight: 600; }
ul.ffd-trust li { position: relative; padding-left: 1.5rem; }
ul.ffd-trust li::before {
	content: "";
	position: absolute;
	left: .2rem;
	top: .3rem;
	width: .4rem;
	height: .75rem;
	border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
	transform: rotate(45deg);
}

/* Vorteils-Kacheln mit Symbol */
.ffd-benefit > * { margin-block: 0; }
.ffd-benefit h3 { margin-top: .25rem; font-size: 1.25rem; }
.ffd-benefit::before {
	content: "";
	display: block;
	width: 3rem;
	height: 3rem;
	margin-bottom: .75rem;
	border-radius: 12px;
	background-color: var(--wp--preset--color--primary);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.6rem;
}
.ffd-icon--help::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }
.ffd-icon--learn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.ffd-icon--tech::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='7' width='14' height='10' rx='1'/%3E%3Cpath d='M15 10h4l3 3v4h-7'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
.ffd-icon--team::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.9'/%3E%3Cpath d='M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }

/* Rotes Zahlen-Band */
.ffd-band .ffd-band__title { margin-top: 0; color: var(--wp--preset--color--white); font-size: var(--wp--preset--font-size--large); font-weight: 600; }
.ffd-stats--band > .wp-block-group { text-align: center; }
.ffd-stats--band .ffd-stat__value { color: var(--wp--preset--color--white); font-size: clamp(2.25rem, 6vw, 3.5rem); }
.ffd-stats--band .ffd-stat__label { color: rgba(255, 255, 255, .9); font-size: 1rem; }
.ffd-band .ffd-band__note { margin-bottom: 0; opacity: .95; }

/* Ablauf in drei Schritten */
.ffd-steps-row { counter-reset: ffd-step; }
.ffd-step { position: relative; counter-increment: ffd-step; padding-top: 4rem; }
.ffd-step > * { margin-block: 0; }
.ffd-step h3 { margin-bottom: .4rem; }
.ffd-step::before {
	content: counter(ffd-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 3rem;
	text-align: center;
}
@media (min-width: 782px) {
	.ffd-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 1.5rem;
		left: 3.75rem;
		right: -.75rem;
		border-top: 2px dashed rgba(206, 17, 38, .35);
	}
}

/* Anfrage-Formular */
.ffd-request { scroll-margin-top: 6rem; }
#anfrage, #wegweiser { scroll-margin-top: 7rem; }
.ffd-request__form { border-top: 4px solid var(--wp--preset--color--primary); }
.ffd-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0 1rem; }
.ffd-form-grid label { margin-bottom: 1rem; }
.wpcf7-form select {
	display: block;
	width: 100%;
	margin-top: .35rem;
	padding: .65rem .8rem;
	border: 1px solid #cfd8de;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 400;
}
.ffd-form-choice { margin: 0 0 1rem; padding: 0; border: 0; }
.ffd-form-choice legend { margin-bottom: .5rem; padding: 0; font-weight: 600; font-size: .9375rem; }
.ffd-form-choice .wpcf7-radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .5rem; }
.ffd-form-choice .wpcf7-list-item { margin: 0; }
.ffd-form-choice .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .7rem .9rem;
	border: 1px solid #cfd8de;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
}
.ffd-form-choice .wpcf7-list-item label:has(input:checked) { border-color: var(--wp--preset--color--primary); background: rgba(206, 17, 38, .06); }
.ffd-form-choice input[type="radio"] { accent-color: var(--wp--preset--color--primary); width: 1.1rem; height: 1.1rem; }
.ffd-request .wpcf7-submit { width: 100%; padding: 1rem 1.5rem; font-size: 1.0625rem; }
.ffd-request__alt { font-size: .9375rem; }

/* Abschluss-Band */
.ffd-final-cta .wp-block-button.is-style-outline > .wp-block-button__link { border: 0; color: var(--wp--preset--color--primary); padding: .95rem 1.75rem; font-weight: 700; }

/* "Jetzt melden" klebt auf dem Handy unten */
.ffd-sticky-cta { display: none !important; }
@media (max-width: 781px) {
	.ffd-sticky-cta {
		display: flex !important;
		position: fixed;
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		z-index: 40;
		margin: 0 !important;
	}
	.ffd-sticky-cta .wp-block-button { width: 100%; }
	.ffd-sticky-cta .wp-block-button__link { display: block; width: 100%; padding: 1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); text-align: center; font-size: 1.0625rem; font-weight: 700; }
	body:has(.ffd-sticky-cta) .wp-block-template-part:last-child { padding-bottom: 5rem; }
}

/* Raster füllen die Breite immer ganz aus */
.ffd-benefits.is-layout-grid,
.ffd-steps-row.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)) !important; }
/* Wegweiser: vor der Auswahl nur kompakte Karten mit Ortsbrandmeister */
.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__person:not(:first-child) { display: none; }
.ffd-finder__card .wp-block-buttons { gap: .5rem; }
/* Handy: Karten erst nach Auswahl der Ortschaft zeigen */
@media (max-width: 781px) {
	.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__cards { display: none; }
}

/* Wegweiser: Ansprechpartner mit Initialen, nächster Dienstabend */
.ffd-finder__person { display: grid; grid-template-columns: 3rem 1fr; column-gap: .85rem; align-items: center; }
.ffd-finder__person > :not(.ffd-avatar) { grid-column: 2; }
.ffd-finder__person .ffd-avatar {
	grid-column: 1;
	grid-row: 1 / span 3;
	align-self: start;
	width: 3rem;
	height: 3rem;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	line-height: 3rem;
	text-align: center;
	letter-spacing: .02em;
}
.ffd-finder__person:not(:first-child) .ffd-avatar { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); }
.ffd-next-duty {
	position: relative;
	padding: .85rem 1rem .85rem 3.4rem;
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
}
.ffd-next-duty::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1rem;
	width: 1.6rem;
	height: 1.6rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CE1126' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ffd-next-duty > * { margin: 0; }
.ffd-next-duty .ffd-next-duty__label { color: #666; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ffd-next-duty .ffd-next-duty__text { font-size: .9375rem; }
.ffd-next-duty .ffd-next-duty__text a { text-decoration: none; }
.ffd-finder__people.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)) !important; }
.ffd-finder__card:target .ffd-finder__people.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 22rem)) !important; }

/* Wegweiser-Kachel, überarbeitet */
.ffd-finder__card { display: flex; flex-direction: column; gap: 1.1rem; }
.ffd-finder__card > * { margin: 0 !important; }
.ffd-finder__card > .ffd-callsign + h3 { margin-top: -.85rem !important; }
.ffd-finder__card > .wp-block-buttons { margin-top: auto !important; padding-top: .25rem; gap: .6rem; align-items: center; }
.ffd-finder__people { row-gap: 1.1rem !important; }
.ffd-finder__person { align-items: center; row-gap: .1rem; }
.ffd-finder__person .ffd-avatar { grid-row: 1 / span 3; align-self: center; }
/* Übersicht: kompakt, ohne Mailadresse und ohne "Andere Ortschaft" */
.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-contact__mail { display: none; }
.wp-block-buttons > .wp-block-button.ffd-finder__back { display: none; }
/* Ausgewählt: "Andere Ortschaft" als schlichter Link rechts */
.ffd-finder__card:target .wp-block-buttons > .wp-block-button.ffd-finder__back { display: inline-block; margin-left: auto; }
.wp-block-button.ffd-finder__back > .wp-block-button__link { border: 0 !important; background: none !important; padding: .5rem 0; color: var(--wp--preset--color--primary) !important; text-decoration: underline; font-weight: 600; }
.wp-block-button.ffd-finder__back > .wp-block-button__link::before { content: "\2190\00a0"; }
@media (max-width: 600px) {
	.ffd-finder__card > .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.ffd-finder__card > .wp-block-buttons .wp-block-button__link { display: block; width: 100%; text-align: center; }
	.ffd-finder__card:target .wp-block-buttons > .wp-block-button.ffd-finder__back { margin-left: 0; }
}

.ffd-finder__card .wp-block-button__link { padding: .6rem 1rem; font-size: .9375rem; }
/* "Zur Ortsfeuerwehr" als schlichter Textlink neben dem Hauptbutton */
.ffd-finder__card .wp-block-button.is-style-outline:not(.ffd-finder__back) > .wp-block-button__link {
	border: 0 !important;
	background: none !important;
	padding: .5rem .25rem;
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}
.ffd-finder__card .wp-block-button.is-style-outline:not(.ffd-finder__back) > .wp-block-button__link:hover { color: var(--wp--preset--color--primary) !important; }
.ffd-finder__card > .wp-block-buttons { flex-wrap: wrap; }
/* Übersicht: Teile aller Kacheln einer Reihe auf gleicher Höhe (Subgrid) */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 782px) {
		.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__card {
			display: grid;
			grid-row: span 5;
			grid-template-rows: subgrid;
			row-gap: 1.1rem;
			align-content: start;
		}
		.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__card > .ffd-callsign + h3 { margin-top: -.8rem !important; }
		.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__card > .ffd-callsign { align-self: end; }
		.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__card > h3 { align-self: start; }
		.ffd-finder:not(:has(.ffd-finder__card:target)) .ffd-finder__card > .wp-block-buttons { align-self: end; }
	}
}

/* ---------- Einsätze ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.ffd-icon { flex: none; vertical-align: -.2em; }

/* Farbgruppen der Einsatzarten */
.ffd-tone--brand { --ffd-tone: var(--wp--preset--color--primary); }
.ffd-tone--hilfe { --ffd-tone: #B85A00; }
.ffd-tone--alarm { --ffd-tone: #56636D; }
.ffd-tone--sonst { --ffd-tone: #333333; }

.ffd-einsatz-badge {
	display: inline-block;
	padding: .2rem .55rem;
	border-radius: 4px;
	background: var(--ffd-tone, var(--wp--preset--color--primary));
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Dunkles Kopfband (Einzelbericht und Archive) */
.ffd-einsatz-band {
	margin-top: 0 !important;
	padding-top: clamp(1.75rem, 4vw, 3rem) !important;
	padding-bottom: clamp(4rem, 7vw, 5.5rem) !important;
	background: linear-gradient(120deg, #1d2023 0%, #2b2f34 55%, #4a1018 100%);
	color: #fff;
}
.ffd-einsatz-archive .ffd-einsatz-band { padding-bottom: clamp(2rem, 4vw, 3rem) !important; }
.ffd-einsatz-head { color: #fff; }
.ffd-einsatz-head > * { margin-block: 0; }
.ffd-einsatz-head a { color: #fff; }
.ffd-einsatz-head__back {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin-bottom: 1.25rem !important;
	color: rgba(255, 255, 255, .8) !important;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.ffd-einsatz-head__back:hover { color: #fff !important; text-decoration: underline; }
.ffd-einsatz-head__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .75rem !important; }
.ffd-einsatz-head__nr { display: inline-flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, .8); font-size: .875rem; font-weight: 600; }
.ffd-einsatz-head__nr .ffd-icon { color: #FFC83D; fill: #FFC83D; }
.ffd-einsatz-head__kicker {
	display: inline-block;
	margin-bottom: .6rem !important;
	padding: .25rem .6rem;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ffd-einsatz-head__title,
.ffd-einsatz-head .wp-block-query-title {
	color: #fff;
	font-size: clamp(1.75rem, 4.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.ffd-einsatz-head__intro { margin-top: .75rem !important; color: rgba(255, 255, 255, .85); }
.ffd-einsatz-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin: 1.25rem 0 0 !important;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, .9);
	font-size: .9375rem;
}
.ffd-einsatz-head__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.ffd-einsatz-head__meta .ffd-icon { color: #ff6b78; }

/* Einzelbericht: Inhalt schiebt sich über das Band */
.ffd-einsatz-layout { position: relative; z-index: 2; margin-top: -3rem !important; align-items: flex-start !important; }
.ffd-einsatz-report .wp-block-post-content > :first-child { margin-top: 0; }
.ffd-einsatz-report .wp-block-post-content figure:empty { display: none; }
.ffd-einsatz-report .ffd-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ffd-einsatz-empty { color: #666; font-style: italic; }

.ffd-einsatz-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.ffd-einsatz-photo { overflow: hidden; border-radius: 12px; box-shadow: 0 10px 40px -24px rgba(0, 0, 0, .6); background: #fff; }
.ffd-einsatz-photo .ffd-gallery__item { border-radius: 0; }
.ffd-einsatz-photo img { display: block; width: 100%; height: auto; aspect-ratio: auto; transition: transform .3s; }
.ffd-einsatz-photo a:hover img { transform: scale(1.02); }

.ffd-einsatz-box {
	padding: 1.5rem;
	border: 1px solid #eee;
	border-top: 4px solid var(--wp--preset--color--primary);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px -30px rgba(0, 0, 0, .5);
}
.ffd-einsatz-box__title { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 700; }
.ffd-einsatz-box__subtitle {
	margin: 1.5rem 0 .75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--border);
	color: #666;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ffd-einsatz-box > .ffd-einsatz-box__subtitle:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.ffd-einsatz-facts { display: grid; gap: .9rem; margin: 0; }
.ffd-einsatz-fact { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; align-items: center; }
.ffd-einsatz-fact .ffd-icon {
	grid-row: span 2;
	box-sizing: content-box;
	width: 18px;
	height: 18px;
	padding: .5rem;
	border-radius: 8px;
	background: #FBE9EB;
	color: var(--wp--preset--color--primary);
}
.ffd-einsatz-fact dt { color: #666; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ffd-einsatz-fact dd { margin: 0; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

.ffd-einsatz-units,
.ffd-einsatz-vehicles,
.ffd-einsatz-external { margin: 0; padding: 0; list-style: none; }
.ffd-einsatz-units { display: grid; gap: .9rem; }
.ffd-einsatz-unit__name { display: block; margin-bottom: .4rem; font-weight: 700; }
.ffd-einsatz-unit__name a { color: inherit; text-decoration: none; border-bottom: 2px solid #F3C4CA; }
.ffd-einsatz-unit__name a:hover { color: var(--wp--preset--color--primary); border-color: currentColor; }
.ffd-einsatz-vehicles,
.ffd-einsatz-external { display: flex; flex-wrap: wrap; gap: .4rem; }
.ffd-einsatz-vehicles li,
.ffd-einsatz-external li {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	margin: 0;
	padding: .3rem .6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	font-size: .8125rem;
	font-weight: 600;
}
.ffd-einsatz-vehicles .ffd-icon { width: 16px; height: 16px; color: var(--wp--preset--color--primary); }

/* Vor/Zurück */
.ffd-einsatz-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.ffd-einsatz-nav__item {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ffd-einsatz-nav__item:hover { border-color: #F3C4CA; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.ffd-einsatz-nav__item--next { text-align: right; align-items: flex-end; }
.ffd-einsatz-nav__label { display: inline-flex; align-items: center; gap: .25rem; color: var(--wp--preset--color--primary); font-size: .8125rem; font-weight: 700; }
.ffd-einsatz-nav__title { font-weight: 700; line-height: 1.3; }
.ffd-einsatz-nav__date { color: #666; font-size: .8125rem; }

@media (max-width: 781px) {
	.ffd-einsatz-layout { margin-top: -2.5rem !important; }
	.ffd-einsatz-nav { grid-template-columns: 1fr; }
	.ffd-einsatz-nav > span { display: none; }
	.ffd-einsatz-nav__item--next { text-align: left; align-items: flex-start; }
}

/* ---------- Einsatzlisten (Jahresseiten, Archiv) ---------- */
.ffd-einsaetze { margin-top: 1.5rem; }
.ffd-einsatz-archive .ffd-einsaetze { position: relative; z-index: 2; }
.entry-content:has(.ffd-einsaetze) > .wp-block-tag-cloud { display: none; } /* Einheiten-Wolke: ersetzt durch den Filter */

.ffd-einsatz-years {
	display: flex;
	gap: .4rem;
	margin-bottom: 1.5rem;
	padding-bottom: .4rem;
	overflow-x: auto;
	scrollbar-width: thin;
}
.ffd-einsatz-years a {
	flex: none;
	padding: .4rem .8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.ffd-einsatz-years a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.ffd-einsatz-years a[aria-current] { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: #fff; }

.ffd-einsatz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.ffd-einsatz-stat {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.1rem;
	border: 1px solid #eee;
	border-left: 4px solid var(--ffd-tone, var(--wp--preset--color--contrast));
	border-radius: 10px;
	background: #fff;
}
.ffd-einsatz-stat__value { color: var(--ffd-tone, var(--wp--preset--color--contrast)); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; line-height: 1.1; }
.ffd-einsatz-stat__label { color: #666; font-size: .8125rem; font-weight: 600; }
@media (max-width: 600px) { .ffd-einsatz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ffd-einsatz-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.5rem; }
.ffd-einsatz-filter[hidden],
.ffd-einsatz-filter__none[hidden] { display: none; }
.ffd-einsatz-filter__label { margin-right: .25rem; color: #666; font-size: .8125rem; font-weight: 600; }
.ffd-chip {
	padding: .35rem .75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: .8125rem;
	font-weight: 600;
	cursor: pointer;
}
.ffd-chip:hover { border-color: var(--wp--preset--color--contrast); }
.ffd-chip[aria-pressed="true"] { border-color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--contrast); color: #fff; }
/* Die Ortschafts-Buttons auf /mitmachen tragen ebenfalls die Klasse ffd-chip am Block-Wrapper: dort keinen zweiten Rahmen */
.wp-block-button.ffd-chip, .wp-block-button.ffd-chip:hover { padding: 0; border: 0; border-radius: 999px; background: none; }

.ffd-einsatz-month { margin-bottom: 2rem; }
.ffd-einsatz-month[hidden] { display: none; }
.ffd-einsatz-month__title {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 .75rem;
	color: #666;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ffd-einsatz-month__title::after { content: ""; flex: 1; height: 1px; background: var(--wp--preset--color--border); }
.ffd-einsatz-month__list { display: grid; gap: .6rem; }

.ffd-einsatz-card {
	position: relative;
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: .85rem 1rem .85rem .85rem;
	border: 1px solid #eee;
	border-left: 4px solid var(--ffd-tone);
	border-radius: 10px;
	background: #fff;
	transition: box-shadow .2s, transform .2s;
}
.ffd-einsatz-card[hidden] { display: none; }
.ffd-einsatz-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.ffd-einsatz-card__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .45rem .25rem;
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	line-height: 1.1;
	text-align: center;
}
.ffd-einsatz-card__day { font-size: 1.5rem; font-weight: 800; }
.ffd-einsatz-card__month { color: #555; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ffd-einsatz-card__time { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--wp--preset--color--border); color: #555; font-size: .75rem; font-weight: 600; }
.ffd-einsatz-card__body > * { margin: 0; }
.ffd-einsatz-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-bottom: .3rem !important; }
.ffd-einsatz-card__nr { color: #666; font-size: .75rem; font-weight: 600; }
.ffd-einsatz-card__flag { display: inline-flex; color: #E3A008; }
.ffd-einsatz-card__flag .ffd-icon { width: 16px; height: 16px; fill: currentColor; }
.ffd-einsatz-card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.ffd-einsatz-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ffd-einsatz-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* ganze Karte klickbar */
.ffd-einsatz-card:hover .ffd-einsatz-card__title a { color: var(--wp--preset--color--primary); }
.ffd-einsatz-card__title a:focus-visible { outline: none; }
.ffd-einsatz-card:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.ffd-einsatz-card__info { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .35rem !important; color: #555; font-size: .8125rem; }
.ffd-einsatz-card__info > span { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.ffd-einsatz-card__info .ffd-icon { width: 15px; height: 15px; color: #999; }
.ffd-einsatz-card__side { display: flex; align-items: center; gap: .75rem; }
.ffd-einsatz-card__extras { display: inline-flex; gap: .3rem; color: #999; }
.ffd-einsatz-card__extras:empty { display: none; }
.ffd-einsatz-card__thumb img { display: block; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }

@media (max-width: 600px) {
	.ffd-einsatz-card { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .75rem; padding: .75rem; }
	.ffd-einsatz-card__day { font-size: 1.25rem; }
	.ffd-einsatz-card__side { display: none; }
}

.ffd-einsatz-pages { margin-top: 2rem; }
.ffd-einsatz-pages .nav-links,
.ffd-einsatz-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.ffd-einsatz-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	min-width: 2.5rem;
	padding: .5rem .75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
}
.ffd-einsatz-pages a.page-numbers:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.ffd-einsatz-pages .page-numbers.current { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: #fff; }
.ffd-einsatz-pages .page-numbers.dots { border: 0; background: none; min-width: 0; }
.ffd-einsatz-single .ffd-einsatz-band > * { max-width: var(--wp--style--global--wide-size) !important; }
main.ffd-einsatz-single,
main.ffd-einsatz-archive { margin-top: 0 !important; }
.ffd-einsatz-fact dt,
.ffd-einsatz-fact dd { grid-column: 2; }
.ffd-einsatz-fact .ffd-icon { grid-row: 1 / span 2; grid-column: 1; }
.ffd-einsatz-fact dt { grid-row: 1; align-self: end; }
.ffd-einsatz-fact dd { grid-row: 2; align-self: start; }
@media (max-width: 781px) { .ffd-einsatz-facts { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); } }

/* ---------- Ankündigung ("Termin vormerken") ---------- */
.ffd-announce {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid #eee;
	border-left: 5px solid var(--wp--preset--color--primary);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px -30px rgba(0, 0, 0, .5);
}
.ffd-announce__media { text-align: center; }
.ffd-announce__media img { display: inline-block; width: auto; max-width: 100%; max-height: 220px; height: auto; }
.ffd-announce__body > * { margin: 0; }
.ffd-announce__kicker {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	margin-bottom: .4rem !important;
	color: var(--wp--preset--color--primary);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ffd-announce__kicker .ffd-icon { width: 15px; height: 15px; }
.ffd-announce__title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.ffd-announce__text { margin-top: .4rem !important; color: #555; font-size: .9375rem; }
.ffd-announce__link {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	margin-top: .75rem !important;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
.ffd-announce__link:hover { text-decoration: underline; }
.ffd-announce--wide { flex-direction: row; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.ffd-announce--wide .ffd-announce__media { flex: none; width: 110px; }
.ffd-announce--wide .ffd-announce__media img { max-height: 130px; }
.ffd-announce--wide .ffd-announce__body { flex: 1; }
@media (max-width: 600px) {
	.ffd-announce--wide { gap: 1rem; padding: 1.1rem; }
	.ffd-announce--wide .ffd-announce__media { width: 72px; }
	.ffd-announce--wide .ffd-announce__title { font-size: 1.0625rem; }
}

/* ---------- Mitmachen-Störer ---------- */
.ffd-cta {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	overflow: hidden;
	padding: 1.75rem 1.5rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
	box-shadow: 0 14px 40px -24px rgba(160, 13, 29, .8);
	color: #fff;
}
.ffd-cta::after { /* dezentes Flammen-/Kreismotiv */
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	pointer-events: none;
}
.ffd-cta__body > * { margin: 0; color: #fff; }
.ffd-cta__kicker { margin-bottom: .4rem !important; font-size: .75rem; font-weight: 700; letter-spacing: .08em; opacity: .85; text-transform: uppercase; }
.ffd-cta__title { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.ffd-cta__text { margin-top: .5rem !important; font-size: .9375rem; opacity: .92; }
.ffd-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .5rem; }
.ffd-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .55rem 1rem;
	border: 2px solid rgba(255, 255, 255, .7);
	border-radius: 6px;
	color: #fff !important;
	font-size: .875rem;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.ffd-cta__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .15); }
.ffd-cta__btn--main { border-color: #fff; background: #fff; color: var(--wp--preset--color--primary) !important; }
.ffd-cta__btn--main:hover { background: #FBE9EB; }
.ffd-cta--card .ffd-cta__btn--main { flex-basis: 100%; justify-content: center; }
.ffd-cta--wide { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 0 0 2rem; padding: 1.75rem 2rem; }
.ffd-cta--wide .ffd-cta__actions { flex: none; max-width: 22rem; justify-content: flex-end; }
@media (max-width: 781px) {
	.ffd-cta--wide { flex-direction: column; align-items: stretch; padding: 1.5rem; }
	.ffd-cta--wide .ffd-cta__actions { max-width: none; justify-content: flex-start; }
	.ffd-cta--wide .ffd-cta__btn--main { flex-basis: 100%; justify-content: center; }
}
.ffd-einsatz-report + .ffd-cta { margin: 1.5rem 0 0; }
.ffd-cta--wide .ffd-cta__actions { width: 20rem; }
.ffd-cta--wide .ffd-cta__btn--main { flex-basis: 100%; justify-content: center; }
.ffd-cta--wide .ffd-cta__btn:not(.ffd-cta__btn--main) { flex: 1; justify-content: center; }
@media (max-width: 781px) { .ffd-cta--wide .ffd-cta__actions { width: auto; } }
.ffd-cta__btn { white-space: nowrap; }
.ffd-einsatz-report + .ffd-cta--wide { flex-direction: column; align-items: stretch; }
.ffd-einsatz-report + .ffd-cta--wide .ffd-cta__actions { width: auto; max-width: none; justify-content: flex-start; }
.ffd-einsatz-report + .ffd-cta--wide .ffd-cta__btn--main { flex-basis: auto; flex-grow: 1; }
.ffd-einsatz-report + .ffd-cta--wide .ffd-cta__btn:not(.ffd-cta__btn--main) { flex: 0 0 auto; }
@media (max-width: 480px) { .ffd-cta__actions .ffd-cta__btn { flex: 1 1 100% !important; justify-content: center; } }

/* ---------- Einheitlicher Seitenkopf (Seiten, Beiträge, Archive, Suche, 404) ---------- */
main.ffd-page { margin-top: 0 !important; }
.ffd-band--wide > * { max-width: var(--wp--style--global--wide-size) !important; }
.ffd-einsatz-head .wp-block-post-title,
.ffd-einsatz-head .wp-block-heading { color: #fff; }
.ffd-einsatz-head__kicker a { color: #fff !important; text-decoration: none; }
.ffd-einsatz-head__kicker .wp-block-post-terms__separator { opacity: .7; }
.ffd-einsatz-head__date { margin-top: 1rem !important; color: rgba(255, 255, 255, .85); font-size: .9375rem; }
.ffd-einsatz-head .ffd-band-search { max-width: 560px; margin-top: 1.25rem !important; }
.ffd-einsatz-head .ffd-band-search .wp-block-search__input { border: 0; border-radius: 6px 0 0 6px; padding: .7rem .9rem; }

.ffd-page-card,
.ffd-overlap-cols { position: relative; z-index: 2; margin-top: -3rem !important; }
.ffd-overlap-cols { align-items: flex-start !important; }
.ffd-page-card .wp-block-post-content > :first-child { margin-top: 0; }
.ffd-post-card .wp-block-post-featured-image { margin-top: 0; }
.ffd-post-nav { margin-top: 1.5rem; gap: 1rem; }
.ffd-post-nav .wp-block-post-navigation-link { flex: 1 1 14rem; padding: 1rem 1.25rem; border: 1px solid #eee; border-radius: 12px; background: #fff; }
.ffd-post-nav .post-navigation-link-next { text-align: right; }
.ffd-post-nav .post-navigation-link__label { display: block; color: var(--wp--preset--color--primary); font-size: .8125rem; font-weight: 700; }
.ffd-post-nav a { color: inherit; font-weight: 700; text-decoration: none; }

/* Jahresübersichten: Liste ohne weiße Karte drumherum */
.ffd-page-card:has(.ffd-einsatz-stats) { padding: 0 !important; border: 0; background: none; box-shadow: none; }
.ffd-page-card:has(.ffd-einsatz-stats) .ffd-einsaetze { margin-top: 0; }

@media (max-width: 781px) {
	.ffd-page-card,
	.ffd-overlap-cols { margin-top: -2.5rem !important; }
}

/* Hinweise am Seitenende */
.ffd-hinweise { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.ffd-hinweise .ffd-announce--wide,
.ffd-hinweise .ffd-cta--wide { margin: 0; }
.ffd-hinweise-wrap { padding: 0 var(--wp--style--root--padding-right, 1rem) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left, 1rem); }
.ffd-hinweise-wrap:not(:has(.ffd-hinweise)) { display: none; }

/* ---------- Seitenleiste ---------- */
.ffd-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.ffd-side-box {
	padding: 1.5rem;
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px -30px rgba(0, 0, 0, .5);
}
.ffd-side-box__title { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 700; }
.ffd-side-box__more { display: inline-flex; align-items: center; gap: .25rem; margin-top: 1rem; color: var(--wp--preset--color--primary); font-size: .875rem; font-weight: 700; text-decoration: none; }
.ffd-side-box__more:hover { text-decoration: underline; }
.ffd-side-list,
.ffd-side-events { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ffd-side-list__item { padding-left: .75rem; border-left: 3px solid var(--ffd-tone); }
.ffd-side-list__item a { display: block; color: inherit; text-decoration: none; }
.ffd-side-list__item a:hover .ffd-side-list__title { color: var(--wp--preset--color--primary); }
.ffd-side-list__meta { display: block; color: #666; font-size: .75rem; font-weight: 600; }
.ffd-side-list__title { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.ffd-side-event { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; align-items: center; }
.ffd-side-event__date { display: flex; flex-direction: column; align-items: center; padding: .3rem 0; border-radius: 8px; background: #FBE9EB; color: var(--wp--preset--color--primary); font-size: .6875rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.ffd-side-event__date b { font-size: 1.125rem; }
.ffd-side-event a { color: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.ffd-side-event a:hover { color: var(--wp--preset--color--primary); }
.ffd-einsatz-years:has(a) { flex-wrap: wrap; } .ffd-page-card .ffd-einsatz-years { flex-wrap: wrap; overflow: visible; }
.ffd-post-nav .wp-block-post-navigation-link:empty { display: none; }
.ffd-page-card .ffd-einsaetze { margin-top: 1.5rem; }
/* Ankündigung: Flyer groß */
.ffd-announce__media img { max-height: none; }
.ffd-announce__flyer { display: block; overflow: hidden; border-radius: 8px; background: none; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .35); cursor: zoom-in; }
.ffd-announce__flyer img { display: block; width: 100%; height: auto !important; object-fit: contain !important; }
.ffd-announce--card .ffd-announce__media { width: 100%; }
.ffd-announce--wide { align-items: center; }
.ffd-announce--wide .ffd-announce__media { width: min(320px, 42%); }
.ffd-announce--wide .ffd-announce__media img { max-height: none; }
.ffd-announce--wide .ffd-announce__title { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
@media (max-width: 600px) {
	.ffd-announce--wide { flex-direction: column; align-items: stretch; }
	.ffd-announce--wide .ffd-announce__media { width: 100%; }
}
.ffd-announce__flyer img { contain-intrinsic-size: none; }

/* ---------- Startseite: Berichte ---------- */
.ffd-news { position: relative; overflow: hidden; border: 1px solid #eee; border-radius: 12px; background: #fff; transition: box-shadow .2s, transform .2s; }
.ffd-news:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.ffd-news__media { display: block; overflow: hidden; background: var(--wp--preset--color--surface); }
.ffd-news__media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; transition: transform .4s; }
.ffd-news:hover .ffd-news__media img { transform: scale(1.04); }
.ffd-news__placeholder { display: block; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark)); }
.ffd-news__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.25rem 1.25rem; }
.ffd-news__body > * { margin: 0; }
.ffd-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: #666; font-size: .8125rem; font-weight: 600; }
.ffd-news__cat { padding: .15rem .5rem; border-radius: 4px; background: #FBE9EB; color: var(--wp--preset--color--primary); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ffd-news__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.ffd-news__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ffd-news__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.ffd-news:hover .ffd-news__title a { color: var(--wp--preset--color--primary); }
.ffd-news:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.ffd-news__title a:focus-visible { outline: none; }
.ffd-news__excerpt { color: #555; font-size: .9rem; line-height: 1.55; }
.ffd-news__kicker { color: var(--wp--preset--color--primary); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ffd-news__more { display: inline-flex; align-items: center; gap: .25rem; margin-top: .25rem !important; color: var(--wp--preset--color--primary); font-weight: 700; text-decoration: none; }

.ffd-news--lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-bottom: 1.5rem; }
.ffd-news--lead .ffd-news__media img,
.ffd-news--lead .ffd-news__placeholder { aspect-ratio: auto; min-height: 280px; }
.ffd-news--lead .ffd-news__body { justify-content: center; padding: 1.75rem; }
.ffd-news--lead .ffd-news__title { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.2; }
@media (max-width: 781px) {
	.ffd-news--lead { grid-template-columns: minmax(0, 1fr); }
	.ffd-news--lead .ffd-news__media img,
	.ffd-news--lead .ffd-news__placeholder { aspect-ratio: 16 / 10; min-height: 0; }
	.ffd-news--lead .ffd-news__body { padding: 1.25rem; }
}

.ffd-news-grid { margin-top: 1.5rem; }
.ffd-news-grid__title { position: relative; margin: 0 0 1.25rem; padding-bottom: .6rem; font-size: 1.5rem; font-weight: 800; }
.ffd-news-grid__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3rem; height: 4px; border-radius: 2px; background: var(--wp--preset--color--primary); }
.ffd-news-grid__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.ffd-news-grid__all { margin: 1.5rem 0 0; text-align: center; }
.ffd-news-grid__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .7rem 1.25rem; border-radius: 6px; background: var(--wp--preset--color--primary); color: #fff !important; font-weight: 700; text-decoration: none; }
.ffd-news-grid__btn:hover { background: var(--wp--preset--color--primary-dark); }

/* ---------- Neueste Einsätze (kompakt) ---------- */
.ffd-mini-einsaetze__title { margin: 0 0 1rem; font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.ffd-mini-einsaetze__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.ffd-mini-einsatz {
	position: relative;
	display: grid;
	grid-template-columns: 3.1rem minmax(0, 1fr);
	gap: .75rem;
	align-items: start;
	padding: .65rem .7rem .65rem .6rem;
	border: 1px solid #eee;
	border-left: 4px solid var(--ffd-tone);
	border-radius: 10px;
	background: #fff;
	transition: box-shadow .2s;
}
.ffd-mini-einsatz:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.ffd-mini-einsatz__date { display: flex; flex-direction: column; align-items: center; padding: .35rem 0; border-radius: 8px; background: var(--wp--preset--color--surface); color: #555; font-size: .6875rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.ffd-mini-einsatz__date b { color: var(--wp--preset--color--contrast); font-size: 1.125rem; }
.ffd-mini-einsatz__body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ffd-mini-einsatz__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; color: #666; font-size: .75rem; font-weight: 600; }
.ffd-mini-einsatz__meta .ffd-einsatz-badge { padding: .1rem .4rem; font-size: .625rem; }
.ffd-mini-einsatz__title { color: var(--wp--preset--color--contrast) !important; font-size: .9375rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.ffd-mini-einsatz__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ffd-mini-einsatz:hover .ffd-mini-einsatz__title { color: var(--wp--preset--color--primary) !important; }
.ffd-mini-einsatz__loc { display: inline-flex; align-items: center; gap: .25rem; color: #666; font-size: .75rem; }
.ffd-mini-einsatz__loc .ffd-icon { width: 13px; height: 13px; color: #999; }
.ffd-news__placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f7f8fa, #eceff2); }
.ffd-news__placeholder img { width: 55% !important; max-width: 220px; height: auto !important; aspect-ratio: auto !important; min-height: 0 !important; object-fit: contain !important; opacity: .9; }
.ffd-news__title { hyphens: auto; overflow-wrap: break-word; }
.ffd-news__placeholder img { contain-intrinsic-size: none; max-height: 60%; }
/* Platzhalter für Beiträge ohne Bild */
.ffd-news__placeholder {
	position: relative;
	overflow: hidden;
	flex-direction: column;
	gap: .75rem;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px),
		radial-gradient(circle at 80% 110%, rgba(255, 170, 60, .35), transparent 55%),
		linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
}
.ffd-news__flame { position: absolute; right: -6%; bottom: -12%; width: 46%; height: auto; color: rgba(255, 255, 255, .12); }
.ffd-news__badge { position: relative; display: flex; align-items: center; justify-content: center; width: 62%; max-width: 240px; padding: .7rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.ffd-news__badge img { width: 100% !important; max-width: none; max-height: none; opacity: 1; }
.ffd-news__ph-label { position: relative; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.ffd-news--card .ffd-news__badge { width: 72%; padding: .5rem .75rem; }

/* ---------- Einheiten-Karten (Jugend-/Kinderfeuerwehr, Ortswehr-Übersicht) ---------- */
ul.is-style-ffd-people { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
ul.is-style-ffd-people li { padding: .65rem .8rem; border-radius: 8px; background: var(--wp--preset--color--surface); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
ul.is-style-ffd-people li strong { display: block; color: #666; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ffd-unit .wp-block-image a { display: block; overflow: hidden; }
.ffd-unit .wp-block-image a img { transition: transform .4s; }
.ffd-unit .wp-block-image a:hover img { transform: scale(1.04); }
.ffd-unit ul.is-style-ffd-downloads { margin: 0; }

/* Bild neben Text (Sondereinheiten) */
.ffd-feature { align-items: center !important; }
.ffd-feature__img img { width: 100%; border-radius: 12px; box-shadow: 0 14px 40px -24px rgba(0, 0, 0, .6); aspect-ratio: 4 / 3; object-fit: cover; }

/* Gemeindefeuerwehr: Panorama aller Fahrzeuge als Banner */
.ffd-banner { margin: 0 !important; }
.ffd-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 781px) { .ffd-banner img { height: 190px; object-fit: cover; object-position: center 35%; } }
.ffd-stats--banner { margin-top: 1.5rem !important; }

/* ---------- Info-Seiten ---------- */
.ffd-notruf > * { margin-block: 0 .5rem; }
.ffd-notruf__kicker { margin: 0 !important; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.ffd-notruf__nr { margin: 0 0 .5rem !important; font-size: clamp(3.5rem, 8vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ffd-notruf__nr a { color: #fff !important; text-decoration: none; }
.ffd-notruf ul.is-style-ffd-check li { color: #fff; }
.ffd-notruf ul.is-style-ffd-check li::before { border-color: #fff; }
.ffd-tip { display: flex; flex-direction: column; }
.ffd-tip > .wp-block-buttons { margin-top: auto; }
.ffd-tip h3 { margin: 0; }

/* ---------- Termine (The Events Calendar) ---------- */
.tribe-common, .tribe-events, .tribe-events-pg-template {
	--tec-color-accent-primary: var(--wp--preset--color--primary);
	--tec-color-accent-primary-hover: var(--wp--preset--color--primary-dark);
	--tec-color-accent-primary-active: var(--wp--preset--color--primary-dark);
	--tec-color-button-primary: var(--wp--preset--color--primary);
	--tec-color-button-primary-hover: var(--wp--preset--color--primary-dark);
	--tec-color-link-accent: var(--wp--preset--color--primary);
	--tec-color-icon-active: var(--wp--preset--color--primary);
	--tec-color-day-marker-current-month: var(--wp--preset--color--primary);
	--tec-color-background-events-bar-submit-button: var(--wp--preset--color--primary);
	--tec-color-background-events-bar-submit-button-hover: var(--wp--preset--color--primary-dark);
	--tec-font-family-sans-serif: var(--wp--preset--font-family--inter), sans-serif;
	--tec-font-family-base: var(--wp--preset--font-family--inter), sans-serif;
	--tec-color-text-primary: var(--wp--preset--color--contrast);
}
.ffd-events .tribe-events .tribe-events-l-container { padding: 0 !important; min-height: 0; }
.ffd-events .tribe-events-pg-template { max-width: none; padding: 0; margin: 0; }
.ffd-events .tribe-events-calendar-list__event-row { padding-block: 1rem; border-bottom: 1px solid var(--wp--preset--color--border); }
.ffd-events .tribe-events-calendar-list__event-title a { color: var(--wp--preset--color--contrast) !important; }
.ffd-events .tribe-events-calendar-list__event-title a:hover { color: var(--wp--preset--color--primary) !important; }
.ffd-events .tribe-events-calendar-list__event-date-tag-daynum { color: var(--wp--preset--color--primary); font-weight: 800; }
.ffd-events .tribe-events-calendar-list__month-separator-text { color: #666; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8125rem; }
.ffd-event-card .tribe-events-single-event-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.ffd-event-card .tribe-events-back { display: none; }

/* ---------- Impressum ---------- */
.ffd-imp-grid { margin-bottom: 2rem; }
.ffd-imp-box { padding: 1.1rem 1.25rem; border-left: 4px solid var(--wp--preset--color--primary); border-radius: 8px; background: var(--wp--preset--color--surface); }
.ffd-imp-box h3 { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #555; }
.ffd-imp-box p { margin: 0; line-height: 1.6; }
.ffd-imp-source { color: #777; font-size: .8125rem; }
.ffd-imp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)) !important; }

/* ---------- Termine im Theme-Look ---------- */
.ffd-events-card:has(.ffd-termine) { padding: 0 !important; border: 0; background: none; box-shadow: none; }
.ffd-termine { margin-top: 0; }
.ffd-termin-lead {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 40px -26px rgba(0, 0, 0, .55);
}
.ffd-termin-lead__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .15rem;
	padding: 1.5rem 1rem;
	background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	color: #fff;
	text-align: center;
}
.ffd-termin-lead__date span { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.ffd-termin-lead__date b { font-size: 4rem; font-weight: 900; line-height: 1; }
.ffd-termin-lead__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem 2rem; }
.ffd-termin-lead__body > * { margin: 0; }
.ffd-termin-lead__kicker { color: var(--wp--preset--color--primary); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ffd-termin-lead__title { font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; }
.ffd-termin-lead__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ffd-termin-lead__title a:hover { color: var(--wp--preset--color--primary); }
.ffd-termin-lead__text { color: #555; }
.ffd-termin-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; color: #444; font-weight: 600; }
.ffd-termin-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.ffd-termin-facts .ffd-icon { color: var(--wp--preset--color--primary); }
@media (max-width: 600px) {
	.ffd-termin-lead { grid-template-columns: 1fr; }
	.ffd-termin-lead__date { flex-direction: row; gap: .6rem; padding: .9rem 1rem; }
	.ffd-termin-lead__date b { font-size: 2rem; }
	.ffd-termin-lead__body { padding: 1.25rem; }
}

.ffd-events-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 2rem; }
.ffd-chip-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem .9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--contrast) !important;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.ffd-chip-link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary) !important; }
.ffd-chip-link .ffd-icon { width: 16px; height: 16px; color: var(--wp--preset--color--primary); }
.ffd-termin-card .ffd-einsatz-card__month { color: var(--wp--preset--color--primary); }
.ffd-termin-card__text { margin-top: .35rem !important; color: #555; font-size: .875rem; }

/* Einzeltermin */
.ffd-event-card:has(.ffd-termin) { padding: 0 !important; border: 0; background: none; box-shadow: none; }
.ffd-termin { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; align-items: start; }
.ffd-termin__main { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid #eee; border-radius: 12px; background: #fff; box-shadow: 0 10px 40px -30px rgba(0, 0, 0, .5); }
.ffd-termin__main > :first-child { margin-top: 0; }
.ffd-termin__date { margin: 0 0 .4rem; color: var(--wp--preset--color--primary); font-size: .875rem; font-weight: 700; }
.ffd-termin__title { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.15; }
.ffd-termin__add { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--border); }
.ffd-termin__add > span { display: inline-flex; align-items: center; gap: .35rem; margin-right: .25rem; color: #555; font-size: .875rem; font-weight: 600; }
.ffd-termin__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-weight: 600; }
.ffd-termin__nav a { color: var(--wp--preset--color--primary); text-decoration: none; }
@media (max-width: 781px) { .ffd-termin { grid-template-columns: 1fr; } }

/* Kopfband mit abgedunkeltem Feuerwehrfoto (inc/kopfbilder.php) */
.ffd-has-band-img .ffd-einsatz-band {
	background:
		linear-gradient(120deg, rgba(18, 20, 23, .86) 0%, rgba(24, 27, 31, .66) 50%, rgba(80, 12, 22, .74) 100%),
		var(--ffd-band-img) center 45% / cover no-repeat,
		#1d2023;
}

/* Einheiten-Karten: Inhalte einer Reihe auf gleicher Höhe (Subgrid) */
@supports (grid-template-rows: subgrid) {
	.ffd-units > .ffd-unit { grid-row: span 7; display: grid !important; grid-template-rows: subgrid; row-gap: 0; align-self: stretch; }
	.ffd-units > .ffd-unit:not(:has(> figure)) { grid-row: span 6; }
	.ffd-units > .ffd-unit > .ffd-vehicle__body { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: .75rem; align-content: start; }
	.ffd-units > .ffd-unit > .ffd-vehicle__body > * { margin: 0 !important; }
}
.ffd-units .wp-block-image { margin: 0; }
.ffd-units .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ffd-unit__text > * { margin: 0 0 .6rem; }
.ffd-unit__text > :last-child { margin-bottom: 0; }
.ffd-unit__slot:empty { display: block; min-height: 0; }

/* Förderverein */
.ffd-tent { text-align: center; }
.ffd-tent .ffd-stat__value { margin: 0; color: var(--wp--preset--color--primary); font-size: 2rem; font-weight: 800; line-height: 1; }
.ffd-tent h3 { margin: .4rem 0 .2rem; }
.ffd-tent__size { margin: 0; color: #666; font-weight: 600; }
.ffd-note p { margin: 0; font-size: .9375rem; color: #444; }

/* Aufmacher: Bild füllt die linke Spalte, Hochformat wird beschnitten */
@media (min-width: 782px) {
	.ffd-news--lead .ffd-news__media { position: relative; min-height: 300px; }
	.ffd-news--lead .ffd-news__media img, .ffd-news--lead .ffd-news__media .ffd-news__placeholder { position: absolute; inset: 0; width: 100%; height: 100% !important; min-height: 0; object-fit: cover; object-position: center 30%; }
}

/* Startseite: Unterzeile im Titelbild (Spectra-Überschrift) auf hellen Bildstellen lesbar halten */
.home .uagb-is-root-container.alignfull:has(h1) .uagb-desc-text { text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .45); }
.home .uagb-is-root-container.alignfull:has(h1) .uagb-heading-text { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
@media (max-width: 781px) {
	.home .uagb-is-root-container.alignfull:has(h1) .uagb-desc-text { text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 16px rgba(0, 0, 0, .6); }
}
/* Startseite mobil: die nach oben gezogene Mitmachen-Karte (−50px) darf die Titelbild-Buttons nicht verdecken */
@media (max-width: 781px) {
	.home .uagb-is-root-container.alignfull:has(h1) { padding-bottom: 90px !important; }
}
/* Mitmachen-Störer auch in Spectra-Spalten (Startseite) nicht breiter als die Spalte */
.ffd-cta { box-sizing: border-box; max-width: 100%; }
/* Startseite mobil: Inhaltsspalte so breit wie die Mitmachen-Karte darüber, lange Wörter umbrechen,
   Wasserzeichen unten rechts im Titelbild abschneiden */
@media (max-width: 781px) {
	.home .uagb-is-root-container.alignwide:has(.ffd-news--lead),
	.home .uagb-is-root-container.alignwide:has(.ffd-news--lead) > .wp-block-uagb-container { padding-left: 0 !important; padding-right: 0 !important; }
	.home .uagb-is-root-container.alignfull:has(h1) { background-size: auto 125% !important; background-position: 78% 0 !important; }
}
.ffd-news__title { overflow-wrap: break-word; hyphens: auto; }
.ffd-news { box-sizing: border-box; max-width: 100%; }
/* Termine im Look der Einsatz-Minikarten (Startseite) */
.ffd-tone--termin { --ffd-tone: #1F4E79; }
.ffd-mini-termine .ffd-einsatz-badge.ffd-tone--termin { background: #1F4E79; color: #fff; }
.ffd-mini-einsaetze__empty { margin: 0 0 1rem; color: #666; font-size: .9375rem; }
/* Ankündigung auf der Startseite (Spectra-Kasten): Flyer klickbar, Bild unverändert lassen */
.ffd-announce__zoom { display: block; }
.ffd-announce__zoom .ffd-gallery__item img { aspect-ratio: auto; object-fit: contain; }
.ffd-announce__zoom .ffd-announce__flyer:hover img { transform: none; }
