/*
Theme Name: FF Süderlügum
Theme URI: https://ff-suederluegum.de
Author: FF Süderlügum
Description: Block-Theme für die Freiwillige Feuerwehr Süderlügum (Design-Entwurf 2026). Farben, Schriften und Abstände stehen in theme.json, die Feinheiten hier.
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ffs-suederluegum
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding-left: 0; padding-right: 0; }
img { height: auto; }

/* Abschnitte über volle Breite: Innenabstand wie der Seitenrand */
.ffs-section {
	padding-left: var(--wp--style--root--padding-left, 24px);
	padding-right: var(--wp--style--root--padding-right, 24px);
}
.ffs-section--gross { padding-top: 88px; padding-bottom: 88px; }

/* Kleine Überschrift über H2 ("Einsätze", "Die Wehr" …) */
.ffs-eyebrow {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rot);
}
.ffs-section-head { margin-bottom: 36px; }

/* Textlink mit roter Linie */
.ffs-link-line a {
	color: var(--wp--preset--color--anthrazit);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--rot);
	padding: 8px 0;
}

/* ---------- Notruf-Leiste ---------- */
.ffs-topbar {
	background: var(--wp--preset--color--anthrazit);
	color: var(--wp--preset--color--weiss);
	font-size: 14px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.ffs-topbar a { color: var(--wp--preset--color--weiss); text-decoration: none; }
.ffs-topbar p { margin: 0; }
.ffs-notruf {
	background: var(--wp--preset--color--rot);
	color: var(--wp--preset--color--weiss);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.04em;
	padding: 2px 10px;
	border-radius: 4px;
}
.ffs-topbar__text { color: #C9CDD2; }

/* ---------- Kopf / Navigation ---------- */
.ffs-header {
	background: var(--wp--preset--color--weiss);
	border-bottom: 1px solid var(--wp--preset--color--linie);
	padding-top: 16px;
	padding-bottom: 16px;
}
.ffs-header .wp-block-image { margin: 0; }
.ffs-header .wp-block-image img { height: 52px; width: auto; display: block; }
.ffs-header .wp-block-navigation a { color: var(--wp--preset--color--anthrazit); text-decoration: none; padding: 12px 12px; }
.ffs-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rot); }
.ffs-header .wp-block-navigation .wp-block-navigation-item.current-menu-item > a { color: var(--wp--preset--color--rot); }

/* ---------- Hero ---------- */
.ffs-hero {
	background: var(--wp--preset--color--anthrazit);
	color: var(--wp--preset--color--weiss);
	padding: 0;
	gap: 0;
}
.ffs-hero > .wp-block-column { margin: 0; }
.ffs-hero__text {
	padding: 72px 24px 72px var(--wp--style--root--padding-left, 24px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
}
.ffs-hero h1, .ffs-hero h1.wp-block-heading { color: var(--wp--preset--color--weiss); margin: 0; }
.ffs-hero p { color: #D5D8DC; font-size: 19px; max-width: 520px; margin: 0; }
.ffs-hero .ffs-eyebrow { color: #C9CDD2; display: flex; align-items: center; gap: 12px; }
.ffs-hero .ffs-eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--wp--preset--color--rot); }
.ffs-hero .wp-block-buttons { padding-top: 8px; }
.ffs-hero .is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--weiss);
	border: 2px solid var(--wp--preset--color--textgrau);
	background: transparent;
	padding: 13px 22px;
}
.ffs-hero__bild { min-height: 380px; position: relative; }
.ffs-hero__bild figure, .ffs-hero__bild .wp-block-image { margin: 0; height: 100%; }
.ffs-hero__bild img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center 62%; display: block; }

/* ---------- Karten (Einsätze, Galerie) ---------- */
.ffs-card {
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 10px;
	overflow: hidden;
	background: var(--wp--preset--color--weiss);
	height: 100%;
}
.ffs-card .wp-block-post-featured-image { margin: 0; }
.ffs-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; display: block; }
.ffs-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ffs-card__meta { align-items: center; gap: 10px; font-size: 14px; color: var(--wp--preset--color--textgrau); }
.ffs-card__meta a, .ffs-card__meta .wp-block-post-terms { text-decoration: none; }
.ffs-card .wp-block-post-title { margin: 0; font-weight: 700; }
.ffs-card .wp-block-post-title a { color: var(--wp--preset--color--anthrazit); text-decoration: none; }
.ffs-card .wp-block-post-excerpt { margin: 0; color: var(--wp--preset--color--textgrau); font-size: 16px; }
.ffs-card .wp-block-post-excerpt__more-link { display: none; }
.ffs-tag { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ffs-tag a {
	display: inline-block;
	background: var(--wp--preset--color--anthrazit);
	color: var(--wp--preset--color--weiss);
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-decoration: none;
}
/* Brand-Einsätze rot, wie im Entwurf */
.ffs-tag a[rel~="tag"][href$="/brand/"] { background: var(--wp--preset--color--rot); }

.ffs-archiv-leiste {
	background: var(--wp--preset--color--hellgrau);
	border-radius: 10px;
	padding: 18px 22px;
	margin-top: 20px;
}
.ffs-archiv-leiste p { margin: 0; font-weight: 600; }
.ffs-pille { display: flex; flex-wrap: wrap; gap: 8px; }
.ffs-pille .wp-block-button__link {
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--anthrazit);
	border: 1px solid #D6D4CE;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 600;
}
.ffs-pille .wp-block-button__link:hover { background: var(--wp--preset--color--hellgrau); }

/* ---------- Die Wehr ---------- */
.ffs-wehr { background: var(--wp--preset--color--hellgrau); }
.ffs-kachel {
	background: var(--wp--preset--color--weiss);
	border-radius: 10px;
	padding: 24px;
}
.ffs-kachel h3 { margin: 0 0 10px; font-size: 20px; }
.ffs-kachel p { margin: 0; color: var(--wp--preset--color--textgrau); font-size: 16px; }
.ffs-kachel__icon { width: 32px; height: 32px; margin-bottom: 10px; color: var(--wp--preset--color--rot); }

/* ---------- Fahrzeuge ---------- */
.ffs-fahrzeug .wp-block-image { margin: 0 0 14px; }
.ffs-fahrzeug .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.ffs-fahrzeug h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 28px;
	line-height: 1.1;
	text-transform: none;
}
.ffs-fahrzeug h3 a { color: var(--wp--preset--color--anthrazit); text-decoration: none; }
.ffs-fahrzeug h3 a:hover { color: var(--wp--preset--color--rot); }
.ffs-fahrzeug p { margin: 2px 0 0; color: var(--wp--preset--color--textgrau); font-size: 15px; }
.ffs-fahrzeug p.ffs-fahrzeug__daten { font-size: 14px; }

/* ---------- Mitmachen / Jugendfeuerwehr ---------- */
.ffs-cta { border-radius: 12px; padding: 48px 40px; display: flex; flex-direction: column; gap: 18px; }
.ffs-cta--rot { background: var(--wp--preset--color--rot); color: var(--wp--preset--color--weiss); }
.ffs-cta--dunkel { background: var(--wp--preset--color--anthrazit); color: var(--wp--preset--color--weiss); }
.ffs-cta h2 { color: var(--wp--preset--color--weiss); font-size: clamp(38px, 5vw, 52px); line-height: 0.98; margin: 0; }
.ffs-cta .ffs-eyebrow { color: inherit; }
.ffs-cta--dunkel .ffs-eyebrow { color: #C9CDD2; }
.ffs-cta p { margin: 0; font-size: 18px; }
.ffs-cta--dunkel p { color: #D5D8DC; }
.ffs-cta a:not(.wp-block-button__link) { color: inherit; }
.ffs-cta--rot .wp-block-button__link { background: var(--wp--preset--color--weiss); color: var(--wp--preset--color--anthrazit); }
.ffs-cta--dunkel .is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--weiss); border: 2px solid var(--wp--preset--color--textgrau); background: transparent; padding: 13px 22px; }

/* ---------- Galerie / Aus dem Wehrleben ---------- */
.ffs-card__datum { margin: 0; font-size: 14px; color: var(--wp--preset--color--textgrau); }
.wp-block-gallery .wp-block-image img { border-radius: 8px; }
.wp-block-gallery.has-nested-images figure.wp-block-image { transition: transform .15s ease; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover { transform: scale(1.015); }
.ffs-galerie { background: var(--wp--preset--color--hellgrau); }
.ffs-galerie .wp-block-image { margin: 0 0 12px; }
.ffs-galerie .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.ffs-galerie__platzhalter { background: #DCDAD4; aspect-ratio: 3 / 2; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #4A4E54; font-size: 13px; margin-bottom: 12px; }
.ffs-galerie p { margin: 0; font-weight: 700; font-size: 18px; }
.ffs-galerie a { color: var(--wp--preset--color--anthrazit); text-decoration: none; }

/* ---------- Vorstand (Shortcode [ffs_vorstand]) ---------- */
.ffs-vorstand-titel {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: 24px;
	text-transform: none;
	border-bottom: 3px solid var(--wp--preset--color--rot);
	padding-bottom: 8px;
	display: inline-block;
	margin: 32px 0 20px;
}
.ffs-vorstand-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ffs-vorstand-karte {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 10px;
}
.ffs-vorstand-karte p { margin: 0; }
.ffs-vorstand-karte__funktion { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--rot); }
.ffs-vorstand-karte__name { font-size: 19px; font-weight: 700; line-height: 1.25; }

/* ---------- Fahrzeugseiten ---------- */
.ffs-lead { font-size: 19px; color: var(--wp--preset--color--textgrau); }
.ffs-fahrzeug-hero { margin: 0 0 32px; }
.ffs-fahrzeug-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.ffs-steckbrief { margin: 12px 0 32px; }
.ffs-fakt {
	background: var(--wp--preset--color--hellgrau);
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ffs-fakt p { margin: 0; }
.ffs-fakt__label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--rot); }
.ffs-fakt__wert { font-size: 18px; font-weight: 600; line-height: 1.3; }
.wp-block-details {
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 10px;
	padding: 0 20px 4px;
	margin: 12px 0;
}
.wp-block-details summary { padding: 16px 0; font-weight: 700; font-size: 19px; cursor: pointer; }
.wp-block-details[open] summary { border-bottom: 1px solid var(--wp--preset--color--linie); margin-bottom: 12px; }
.wp-block-details .wp-block-gallery { margin: 16px 0; }
.ffs-weitere { margin-top: 12px; }
.ffs-fahrzeug--gross .wp-block-image img { aspect-ratio: 16 / 10; }
.ffs-fahrzeug--gross h3 { font-size: 34px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.ffs-seitenkopf { padding-top: 64px; padding-bottom: 24px; }
.ffs-seitenkopf h1 { font-size: clamp(40px, 5vw, 56px); margin: 0; }

/* ---------- Fuß ---------- */
.ffs-footer {
	background: var(--wp--preset--color--anthrazit);
	color: var(--wp--preset--color--weiss);
	padding-top: 72px;
	padding-bottom: 32px;
}
.ffs-footer p, .ffs-footer li { color: #D5D8DC; margin: 0; }
.ffs-footer a { color: var(--wp--preset--color--weiss); text-decoration: none; }
.ffs-footer a:hover { text-decoration: underline; }
.ffs-footer__name { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 30px; line-height: 1; color: var(--wp--preset--color--weiss); }
.ffs-footer__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #C9CDD2; }
.ffs-footer__112 { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 64px; line-height: 1; color: var(--wp--preset--color--weiss); }
.ffs-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ffs-footer__unten { border-top: 1px solid #33373C; padding-top: 24px; margin-top: 48px; font-size: 14px; }
.ffs-footer__unten p, .ffs-footer__unten a { color: #B8BCC2; }

/* ---------- Smartphone ---------- */
@media (max-width: 781px) {
	.ffs-section--gross { padding-top: 56px; padding-bottom: 56px; }
	.ffs-hero__text { padding: 48px var(--wp--style--root--padding-right, 24px); }
	.ffs-hero__bild, .ffs-hero__bild img { min-height: 260px; }
	.ffs-cta { padding: 36px 24px; }
	.ffs-header .wp-block-image img { height: 44px; }
	.ffs-topbar__text { display: none; }
}
