/*
 * Feuerwehr Spay – ergänzende Styles zu theme.json
 * Design nach der Testseite der Wehrleitung: Nachtblau, Feuerwehrrot, Source Sans 3.
 */

:root {
	--ffw-rot: var(--wp--preset--color--rot, #D61523);
	--ffw-rot-dunkel: var(--wp--preset--color--rot-dunkel, #A80F1B);
	--ffw-blau: var(--wp--preset--color--blau, #214462);
	--ffw-blau-dunkel: var(--wp--preset--color--blau-dunkel, #1A213E);
	--ffw-grau: var(--wp--preset--color--grau, #F3F6F9);
	--ffw-linie: var(--wp--preset--color--linie, #DCE3EA);
	--ffw-leise: var(--wp--preset--color--text-leise, #55687C);
	--ffw-radius: 8px;
	--ffw-breite: 1160px;
	--ffw-rand: var(--wp--style--root--padding-left, 24px);
	--ffw-topbar: 40px;
	--ffw-schatten: 0 12px 32px rgba(33, 68, 98, 0.12);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part + * { margin-block-start: 0; }

:focus-visible { outline: 3px solid var(--ffw-rot); outline-offset: 3px; }

/* ===================== Kopfbereich ===================== */

/* Der ganze Kopf klebt oben; die Infoleiste scrollt weg. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(-1 * var(--ffw-topbar));
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(32px - var(--ffw-topbar)); }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(46px - var(--ffw-topbar)); }
}
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part { position: relative; top: 0; }
}

/* Infoleiste */
.ffw-topbar { background: var(--ffw-blau); color: #fff; overflow: hidden; }
.ffw-topbar__innen { min-height: var(--ffw-topbar); }
.ffw-topbar__name { margin: 0; font-size: 1.15rem; font-weight: 600; }
.ffw-topbar__name a { color: #fff; text-decoration: none; }
.ffw-topbar__rot {
	position: relative;
	align-self: stretch;
	padding-left: 34px;
	background: var(--ffw-rot);
	gap: 14px;
}
/* Rot bis zum rechten Bildschirmrand verlängern (die Infoleiste schneidet den Überstand ab) */
.ffw-topbar__rot::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: 100vmax;
	background: var(--ffw-rot);
}
.ffw-topbar__rot::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -34px;
	width: 60px;
	background: linear-gradient(115deg, transparent 0 42%, #fff 42% 48%, var(--ffw-rot) 48%);
}
.ffw-topbar__rot > * { position: relative; }
.ffw-topbar__notruf { margin: 0; font-weight: 600; white-space: nowrap; }
.ffw-topbar__notruf a { color: #fff; text-decoration: none; font-weight: 700; }
.ffw-topbar__notruf a:hover { text-decoration: underline; }
.ffw-topbar .wp-block-social-links { gap: 8px; }
.ffw-topbar .wp-social-link { background: #fff !important; color: var(--ffw-rot) !important; }
.ffw-topbar .wp-social-link a { padding: 0.3em; }
.ffw-topbar a:focus-visible { outline-color: #fff; }

/* Hauptkopf */
.ffw-kopf {
	background: #fff;
	box-shadow: 0 6px 24px rgba(33, 68, 98, 0.1);
	position: relative;
}
.ffw-kopf__innen { min-height: 96px; position: relative; }

.ffw-logo { margin: 0; position: relative; align-self: stretch; display: flex; align-items: center; padding-right: 64px; flex-shrink: 0; }
.ffw-logo::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 22px;
	left: -100vmax;
	background: var(--ffw-rot);
	clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
}
.ffw-logo::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 54px;
	background: linear-gradient(64deg, transparent 0 46%, var(--ffw-rot) 46% 54%, transparent 54%);
}
.ffw-logo a { position: relative; z-index: 1; display: block; line-height: 0; }
.ffw-logo img { height: 84px; width: auto; border-radius: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }

.ffw-kopf .wp-block-navigation { gap: 4px 22px; }
.ffw-kopf .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--ffw-blau);
	text-decoration: none;
	padding: 36px 2px 32px;
	transition: color 0.15s ease;
}
.ffw-kopf .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--ffw-rot); }
.ffw-kopf .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.ffw-kopf .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--ffw-rot);
	box-shadow: inset 0 -4px 0 var(--ffw-rot);
}
.ffw-kopf .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff !important;
	color: var(--ffw-blau) !important;
	border: 0 !important;
	border-top: 3px solid var(--ffw-rot) !important;
	box-shadow: var(--ffw-schatten);
	min-width: 220px;
	padding: 6px 0;
}
.ffw-kopf .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 18px; }
.ffw-kopf__knopf .wp-block-button__link { padding: 10px 22px; }

/* Mobil: blauer Kopf, roter Menüknopf */
@media (max-width: 600px) {
	.ffw-topbar__innen { justify-content: center !important; padding-top: 6px; padding-bottom: 6px; }
	.ffw-topbar__name { display: none; }
	.ffw-topbar__rot { background: transparent; box-shadow: none; padding-left: 0; }
	.ffw-topbar__rot::before, .ffw-topbar__rot::after { display: none; }
	.ffw-kopf { background: var(--ffw-blau); border-top: 1px solid rgba(255, 255, 255, 0.15); }
	.ffw-kopf__innen { min-height: 84px; }
	.ffw-logo { padding-right: 0; }
	.ffw-logo::before, .ffw-logo::after { display: none; }
	.ffw-logo img { height: 66px; }
	.ffw-kopf .ffw-kopf__knopf { display: none !important; }
	.ffw-kopf .wp-block-navigation__responsive-container-open {
		background: var(--ffw-rot);
		color: #fff;
		width: 46px;
		height: 46px;
		border-radius: 5px;
		justify-content: center;
		align-items: center;
	}
	.ffw-kopf .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
}
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open { background: var(--ffw-blau) !important; color: #fff !important; padding: 24px; }
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; padding: 4px 0; font-size: 1.25rem; box-shadow: none; }
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: #fff; text-decoration: underline; text-decoration-color: var(--ffw-rot); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start; text-align: left; }
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 14px; }
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none;
	padding: 6px 0 0 16px;
}
.ffw-kopf .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.05rem; padding: 3px 0; }
.ffw-kopf .wp-block-navigation__responsive-container-close { color: #fff; }

/* ===================== Startseite ===================== */

/* Titelbild: geteilt wie auf der Baustellenseite – Text links auf Nachtblau, Foto rechts */
.ffw-hero.wp-block-media-text {
	min-height: min(78vh, 680px);
	border-bottom: 8px solid var(--ffw-rot);
}
.ffw-hero > .wp-block-media-text__content {
	padding: 72px 48px 72px max(var(--ffw-rand), calc((100vw - var(--ffw-breite)) / 2 + var(--ffw-rand)));
}
.ffw-hero .wp-block-media-text__media { position: relative; align-self: stretch; height: 100%; min-height: 300px; margin: 0; overflow: hidden; }
.ffw-hero .wp-block-media-text__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ffw-hero .wp-block-media-text__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(33, 68, 98, 0.75) 0%, rgba(33, 68, 98, 0) 9%);
	pointer-events: none;
}
.ffw-hero h1 { margin: 0; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.ffw-hero .ffw-lead { max-width: 30em; color: rgba(255, 255, 255, 0.88); }
@media (max-width: 600px) {
	.ffw-hero.wp-block-media-text { min-height: 0; }
	.ffw-hero > .wp-block-media-text__content { padding: 16px var(--ffw-rand) 48px; }
	.ffw-hero .wp-block-media-text__media { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
	.ffw-hero .wp-block-media-text__media::after { background: linear-gradient(0deg, var(--ffw-blau) 0%, rgba(33, 68, 98, 0) 30%); }
}

/* Schild („#immerda“) – Pille wie auf der Baustellenseite */
.ffw-badge {
	display: inline-block;
	width: fit-content;
	padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}
p.ffw-badge { margin-bottom: 0.4rem; }

/* #immerda */
.ffw-hashtag {
	display: inline-block;
	margin: 0;
	padding: 6px 14px;
	border: 4px solid var(--ffw-rot);
	border-radius: 5px;
	color: var(--ffw-rot);
	font-weight: 600;
	font-size: 1.1rem;
}

/* Dienst-Karten (Jugendfeuerwehr, Einsätze, Technik, Fotogalerie) */
.wp-block-group.is-style-dienst {
	position: relative;
	background-color: #fff;
	background-image: radial-gradient(circle, #d6e3f0 1.4px, transparent 1.6px), radial-gradient(circle, #e9f0f7 1px, transparent 1.2px);
	background-size: 26px 26px, 13px 13px;
	background-position: 0 0, 6px 6px;
	border-radius: var(--ffw-radius);
	box-shadow: var(--ffw-schatten);
	overflow: hidden;
	padding: 32px 22px 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-group.is-style-dienst:hover,
.wp-block-group.is-style-dienst:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(33, 68, 98, 0.18); }
.is-style-dienst .ffw-icon { margin: 0 auto 18px; width: 78px; height: 78px; border-radius: 50%; background: var(--ffw-rot); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(214, 21, 35, 0.35); }
.is-style-dienst .ffw-icon img { width: 36px !important; height: 36px !important; border-radius: 0; }
.is-style-dienst h3 { margin: 0; font-size: 1.6rem; }
.is-style-dienst h3::after,
.ffw-strich::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	margin: 14px auto 0;
	background: var(--ffw-rot);
}
.is-style-dienst h3 a { color: var(--ffw-blau); text-decoration: none; }
.is-style-dienst h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.is-style-dienst h3 a:focus-visible { outline: none; }
.is-style-dienst:focus-within { outline: 3px solid var(--ffw-rot); outline-offset: 3px; }
.is-style-dienst p { font-size: 0.98rem; margin: 12px 0 0; }
.is-style-dienst > .wp-block-image:last-child {
	position: relative;
	margin: 26px -22px 0;
	padding-top: 22px;
	border-top: 2px solid var(--ffw-blau);
	margin-top: auto;
}
.is-style-dienst > p:last-of-type { margin-bottom: 28px; }
.is-style-dienst > .wp-block-image:last-child::before {
	content: "›";
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e4e8ec;
	color: var(--ffw-blau);
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
}
.is-style-dienst > .wp-block-image:last-child img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }

/* Rotes Kontaktband */
.ffw-kontaktband h2 { color: #fff; margin: 0; }
.ffw-kontaktband .ffw-unterzeile { font-weight: 600; margin-top: 4px; }
.ffw-kontaktpunkt { gap: 14px; }
.ffw-kontaktpunkt .wp-block-image { margin: 0; width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; background: var(--ffw-blau); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.ffw-kontaktpunkt .wp-block-image img { width: 22px !important; height: 22px !important; border-radius: 0; }
.ffw-kontaktpunkt p { margin: 0; font-size: 1.35rem; font-weight: 700; }
.ffw-kontaktpunkt p a { color: #fff; text-decoration: none; }
.ffw-kontaktpunkt p a:hover { text-decoration: underline; }
.ffw-kontaktband a:focus-visible { outline-color: #fff; }

/* Mitmachen-Band */
.ffw-cta h2 { color: #fff; }
.ffw-cta p { color: rgba(255, 255, 255, 0.92); }

/* ===================== Seiten ===================== */

.ffw-titelband { background: var(--ffw-blau); color: #fff; }
.ffw-titelband a { color: #fff; }
.ffw-titelband .wp-block-post-title,
.ffw-titelband .wp-block-query-title,
.ffw-titelband h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; color: #fff; }
.ffw-titelband h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 16px;
	background: var(--ffw-rot);
}
.ffw-titelband .wp-block-post-date,
.ffw-titelband .wp-block-post-terms,
.ffw-titelband .wp-block-term-description { color: rgba(255, 255, 255, 0.82); font-size: 1rem; }
.ffw-titelband .wp-block-post-terms a { text-decoration: none; }

/* Kleiner Seitenkopf mit Bild (Landingpages) */
.ffw-seitenkopf.wp-block-media-text { border-bottom: 6px solid var(--ffw-rot); }
.ffw-seitenkopf > .wp-block-media-text__content {
	padding: 56px 48px 56px max(var(--ffw-rand), calc((100vw - var(--ffw-breite)) / 2 + var(--ffw-rand)));
}
.ffw-seitenkopf .wp-block-media-text__media { position: relative; align-self: stretch; height: 100%; min-height: 260px; margin: 0; overflow: hidden; }
.ffw-seitenkopf .wp-block-media-text__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ffw-seitenkopf h1 { margin: 0; color: #fff; }
.ffw-seitenkopf .ffw-lead { color: rgba(255, 255, 255, 0.88); max-width: 32em; }
@media (max-width: 600px) {
	.ffw-seitenkopf > .wp-block-media-text__content { padding: 28px var(--ffw-rand) 40px; }
	.ffw-seitenkopf .wp-block-media-text__media { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
}

/* ===================== Block-Stile ===================== */

.wp-block-group.is-style-karte {
	background: #fff;
	color: var(--ffw-blau);
	border-radius: 10px;
	border-top: 6px solid var(--ffw-rot);
	box-shadow: var(--ffw-schatten);
	padding: clamp(24px, 3vw, 36px);
}
.wp-block-group.is-style-kachel {
	background: var(--ffw-grau);
	border-radius: var(--ffw-radius);
	padding: clamp(20px, 3vw, 28px);
}

.wp-block-heading.is-style-abschnitt::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 14px;
	background: var(--ffw-rot);
}
.wp-block-heading.is-style-abschnitt.has-text-align-center::after { margin-left: auto; margin-right: auto; }

.is-style-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.is-style-kicker::before {
	content: "";
	flex: 0 0 36px;
	height: 3px;
	background: var(--ffw-rot);
}
.is-style-kicker.has-text-align-center { justify-content: center; }
.ffw-cta .is-style-kicker::before { background: #fff; }
.wp-block-post-terms.is-style-kicker a { color: #fff; text-decoration: none; }

p.is-style-etikett {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ffw-rot);
	margin-bottom: 0.15rem;
}

.wp-block-button.is-style-hell .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: #fff;
}
.wp-block-button.is-style-hell .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; }
.wp-block-button.is-style-weiss .wp-block-button__link { background: #fff; color: var(--ffw-rot); border-color: #fff; }
.wp-block-button.is-style-weiss .wp-block-button__link:hover { background: var(--ffw-grau); border-color: var(--ffw-grau); color: var(--ffw-rot-dunkel); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ffw-rot); border-color: var(--ffw-rot); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ffw-rot); color: #fff; }
.wp-block-button .wp-block-button__link { transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }

.wp-block-image.is-style-schatten img { box-shadow: 0 12px 32px rgba(33, 68, 98, 0.18); }

/* Kachel mit Link (Cover) */
.wp-block-cover.is-style-kachel {
	border-radius: var(--ffw-radius);
	overflow: hidden;
	min-height: 260px;
	padding: 24px;
	border-bottom: 6px solid var(--ffw-rot);
	box-shadow: var(--ffw-schatten);
}
.wp-block-cover.is-style-kachel .wp-block-cover__background {
	background: linear-gradient(0deg, rgba(26, 33, 62, 0.88) 0%, rgba(26, 33, 62, 0.35) 55%, rgba(26, 33, 62, 0.05) 100%) !important;
	opacity: 1 !important;
}
.wp-block-cover.is-style-kachel .wp-block-cover__image-background { transition: transform 0.35s ease; }
.wp-block-cover.is-style-kachel:hover .wp-block-cover__image-background { transform: scale(1.05); }
.wp-block-cover.is-style-kachel .wp-block-cover__inner-container { position: static; width: 100%; }
.wp-block-cover.is-style-kachel .wp-block-cover__inner-container > * { position: relative; z-index: 2; }
.wp-block-cover.is-style-kachel h3 { margin: 0; font-size: 1.45rem; font-weight: 800; }
.wp-block-cover.is-style-kachel p { margin: 0.35rem 0 0; color: rgba(255, 255, 255, 0.9); }
.wp-block-cover.is-style-kachel a { color: #fff; text-decoration: none; position: static; }
.wp-block-cover.is-style-kachel a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.wp-block-cover.is-style-kachel:focus-within { outline: 3px solid var(--ffw-rot); outline-offset: 3px; }

.wp-block-list.is-style-haken { list-style: none; padding-left: 0; }
.wp-block-list.is-style-haken li { position: relative; padding-left: 1.4em; margin: 0.35em 0; }
.wp-block-list.is-style-haken li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ffw-rot);
}

/* ===================== Tabellen & Einsatzlisten ===================== */

.wp-block-table,
.ffw-einsaetze { overflow-x: auto; }
.wp-block-table table,
.wp-block-post-content table,
.einsatzverwaltung-reportlist { width: 100%; border-collapse: collapse; font-size: 1rem; }
.wp-block-table :where(th, td),
.wp-block-post-content table :where(th, td),
.einsatzverwaltung-reportlist :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--ffw-linie);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.wp-block-table thead th,
.wp-block-post-content table thead th,
.einsatzverwaltung-reportlist .einsatz-header th {
	background: transparent;
	border-bottom: 3px solid var(--ffw-rot);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ffw-leise);
}
.einsatzverwaltung-reportlist .einsatz-header { background: transparent; border-bottom: 0; }
.einsatzverwaltung-reportlist tr.report:hover,
.wp-block-post-content table tbody tr:hover { background: var(--ffw-grau); }
.einsatzverwaltung-reportlist a { font-weight: 600; }
.einsatzverwaltung-reportlist .einsatz-title-month td,
.einsatzverwaltung-reportlist .einsatz-title-quarter td { background: var(--ffw-grau); color: var(--ffw-blau); font-weight: 700; font-size: 1.1rem; }
.ffw-einsaetze h2 { font-size: var(--wp--preset--font-size--gross); margin-top: 2rem; }
@media (max-width: 767px) {
	.einsatzverwaltung-reportlist td.smallscreen { padding: 12px 4px; line-height: 1.5; }
	.einsatzverwaltung-reportlist td.smallscreen strong { color: var(--ffw-leise); font-weight: 600; }
}

.wp-block-table.is-style-daten table { border-top: 1px solid var(--ffw-linie); }
.wp-block-table.is-style-daten td:first-child { font-weight: 700; color: var(--ffw-leise); width: 40%; }
.wp-block-table.is-style-daten tbody tr:hover { background: transparent; }

/* Jahresauswahl [einsatzjahre] */
.ffw-einsaetze + p a, .einsatzjahre a { font-weight: 700; }

/* ===================== Beitragskarten ===================== */

.ffw-karten .wp-block-post {
	background: #fff;
	border-radius: var(--ffw-radius);
	overflow: hidden;
	box-shadow: var(--ffw-schatten);
	display: flex;
	flex-direction: column;
}
.ffw-karten .wp-block-post-featured-image { margin: 0; }
.ffw-karten .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ffw-karten .ffw-karte-inhalt { padding: 20px 24px 24px; flex: 1; border-top: 6px solid var(--ffw-rot); }
.ffw-karten .wp-block-post-title { font-size: 1.3rem; line-height: 1.25; margin: 0.25rem 0 0.5rem; }
.ffw-karten .wp-block-post-title a { color: var(--ffw-blau); text-decoration: none; }
.ffw-karten .wp-block-post-title a:hover { color: var(--ffw-rot); }
.ffw-karten .wp-block-post-excerpt { font-size: 0.98rem; color: var(--ffw-leise); margin: 0; }
.ffw-karten .wp-block-post-excerpt__more-text { margin-top: 0.5rem; font-weight: 600; }

.wp-block-query-pagination { gap: 8px; font-weight: 600; }
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-block; min-width: 2.2em; padding: 4px 8px; text-align: center; border-radius: 5px; }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--ffw-rot); color: #fff; }

/* ===================== Fußbereich ===================== */

.ffw-fuss { background: var(--ffw-blau); color: #fff; font-size: 1rem; }
.ffw-fuss a { color: #fff; font-weight: 600; text-decoration: none; }
.ffw-fuss a:hover { color: #fff; text-decoration: underline; }
.ffw-fuss a:focus-visible { outline-color: #fff; }
.ffw-fuss h2 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.ffw-fuss h2::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 10px; background: var(--ffw-rot); }
.ffw-fuss .ffw-notrufnummer { font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 0; }
.ffw-fuss .wp-block-search__inside-wrapper { background: #fff; border-radius: 999px; padding: 4px; border: 0; }
.ffw-fuss .wp-block-search__input { border: 0; background: transparent; padding: 8px 14px; color: var(--ffw-blau); }
.ffw-fuss .wp-block-search__button { border-radius: 999px; padding: 8px 16px; margin-left: 4px; font-size: 0.95rem; }
.ffw-fuss__leiste { background: var(--ffw-blau-dunkel); font-size: 0.95rem; }
.ffw-fuss__leiste p { margin: 0; }
.ffw-fuss__links { gap: 6px 22px; }

/* ===================== Kleinigkeiten ===================== */

.wp-block-post-navigation-link a { font-weight: 600; }
.wp-block-search__input { border-radius: 5px; border: 1px solid #b8c4d0; padding: 10px 12px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wp-block-group.is-style-dienst,
	.wp-block-button .wp-block-button__link,
	.wp-block-cover.is-style-kachel .wp-block-cover__image-background { transition: none; }
	.wp-block-group.is-style-dienst:hover { transform: none; }
}

/* Copyright-Leiste */
.ffw-fuss__leiste { color: rgba(255, 255, 255, 0.82); }
.ffw-fuss__leiste a { color: #fff; font-weight: 600; text-decoration: none; }
.ffw-fuss__leiste a:hover { color: #fff; text-decoration: underline; }
.ffw-fuss__leiste a:focus-visible { outline-color: #fff; }

.ffw-rotpunkt::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ffw-rot);
	margin-right: 10px;
	vertical-align: middle;
}
.ffw-cta .is-style-kicker::before { background: #fff; }
.ffw-hero .is-style-kicker { color: #fff; }
.ffw-seitenkopf h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; }
