/*
Theme Name: Feuerwehr Elsfleth
Theme URI: https://www.feuerwehr-elsfleth.de/
Author: Freiwillige Feuerwehr Elsfleth
Description: Schlankes Block-Theme für die Freiwillige Feuerwehr Elsfleth. Startseite mit Hero, Kennzahlen, automatisch aktualisierten Einsätzen (Einsatzverwaltung), Mitmachen-Bereich und Fuhrpark. Keine externen Abhängigkeiten, keine Verbindung zu Google.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: feuerwehr-elsfleth
*/

/* ---------- Grundlagen ---------- */
body { -webkit-font-smoothing: antialiased; }
.ffe-container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.ffe-container > * , .ffe-stack > * { margin-block: 0; }
.ffe-stack { display: flex; flex-direction: column; gap: 1rem; }
.ffe-section { padding-block: clamp(3rem, 7vw, 5rem); }
.ffe-section--grau { background: var(--wp--preset--color--hellgrau); }
.ffe-section--dunkel { background: var(--wp--preset--color--anthrazit); color: #fff; }
.ffe-section--rot { background: var(--wp--preset--color--rot); color: #fff; }
.ffe-section--dunkel a:not(.wp-element-button), .ffe-section--rot a:not(.wp-element-button) { color: #fff; }

.ffe-kicker { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--rot); margin: 0; }
.ffe-section--dunkel .ffe-kicker { color: #FFB3B8; }
.ffe-section--rot .ffe-kicker { color: #FFE1E3; }
.ffe-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.25rem; }
.ffe-head h2 { margin: 0.25rem 0 0; }
.ffe-more a { font-weight: 600; text-decoration: none; }
.ffe-more a::after { content: " →"; }

/* ---------- Notruf-Leiste und Kopf ---------- */
.ffe-topbar { background: var(--wp--preset--color--schwarz); color: #E8EAEC; font-size: 0.875rem; }
.ffe-topbar .ffe-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 0.5rem; }
.ffe-topbar p { margin: 0; }
.ffe-topbar strong { color: #fff; }
.ffe-header { background: #fff; border-bottom: 1px solid #E4E6E8; }
.ffe-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.ffe-brand { display: flex; align-items: center; gap: 0.85rem; }
.ffe-brand > * { margin: 0 !important; }
.ffe-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.ffe-brand .wp-block-site-title a { color: var(--wp--preset--color--text); text-decoration: none; }
.ffe-nav-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.ffe-nav-wrap > * { margin: 0 !important; }
.ffe-nav { font-weight: 600; }
.ffe-nav a { text-decoration: none; }

/* ---------- Hero ---------- */
.ffe-hero .wp-block-columns { gap: 3rem; align-items: center; margin: 0; }
.ffe-hero h1 { font-size: clamp(3rem, 7vw, 4.75rem); line-height: 0.98; margin: 0; }
.ffe-hero__lead { font-size: 1.25rem; color: #C9CDD1; max-width: 32rem; }
.ffe-live { display: inline-flex; align-items: center; gap: 0.5rem; }
.ffe-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FF5A64; }
.ffe-hero__media { position: relative; }
.ffe-hero__media .wp-block-image { margin: 0; }
.ffe-hero__media .wp-block-image img { width: 100%; height: 440px; object-fit: cover; border-radius: 10px; display: block; }
.ffe-lastcard { position: absolute; left: -24px; bottom: -28px; max-width: 300px; background: #fff; color: var(--wp--preset--color--text); border-radius: 10px; padding: 1.1rem 1.4rem; box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.ffe-lastcard .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.ffe-lastcard .ffe-kicker { color: var(--wp--preset--color--grau); }
.ffe-lastcard .wp-block-post-title { font-family: var(--wp--preset--font-family--barlow); text-transform: none; font-size: 1.05rem; font-weight: 600; margin: 0.25rem 0 0; }
.ffe-lastcard .wp-block-post-title a { color: var(--wp--preset--color--text) !important; text-decoration: none; }
.ffe-lastcard .wp-block-post-date { font-size: 0.9rem; color: #4A4F54; margin: 0.15rem 0 0; }
@media (max-width: 781px) {
  .ffe-hero__media .wp-block-image img { height: 240px; }
  .ffe-lastcard { position: static; max-width: none; margin-top: 1rem; }
}

/* ---------- Kennzahlen ---------- */
.ffe-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.ffe-stats > * { margin: 0; }
.ffe-stat__zahl { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 3.25rem; line-height: 1; color: var(--wp--preset--color--rot); margin: 0; }
.ffe-stat__text { font-weight: 500; color: #3E4348; margin: 0.15rem 0 0; }

/* ---------- Karten (Einsätze) ---------- */
.ffe-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.ffe-cards > li { margin: 0 !important; }
.ffe-card { height: 100%; box-sizing: border-box; border: 1px solid #E1E4E7; border-top: 6px solid var(--wp--preset--color--rot); border-radius: 10px; padding: 1.5rem; background: #fff; display: flex; flex-direction: column; gap: 0.6rem; }
.ffe-card > * { margin: 0 !important; }
.ffe-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--wp--preset--color--grau); font-weight: 500; }
.ffe-card__meta > * { margin: 0 !important; }
.ffe-card .wp-block-post-terms a { background: var(--wp--preset--color--rot); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 4px; text-decoration: none; display: inline-block; }
.ffe-card .wp-block-post-terms__separator { display: none; }
.ffe-card .wp-block-post-title { font-family: var(--wp--preset--font-family--barlow); text-transform: none; font-size: 1.35rem; line-height: 1.25; font-weight: 600; }
.ffe-card .wp-block-post-title a { color: var(--wp--preset--color--text); text-decoration: none; }
.ffe-card .wp-block-post-title a:hover { color: var(--wp--preset--color--rot); }
.ffe-card .wp-block-post-excerpt { color: #43484D; font-size: 1rem; flex-grow: 1; }
.ffe-card .wp-block-post-excerpt__more-text { margin-top: 0.75rem; }

/* ---------- Mitmachen ---------- */
.ffe-mitmachen .wp-block-columns { gap: 3rem; align-items: center; margin: 0; }
.ffe-mitmachen h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; margin: 0; }
.ffe-mitmachen__lead { font-size: 1.2rem; color: #FFF1F2; max-width: 32rem; }
.ffe-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ffe-features > * { margin: 0 !important; }
.ffe-feature { background: rgba(0,0,0,0.16); border-radius: 10px; padding: 1.4rem; }
.ffe-feature > * { margin: 0 !important; }
.ffe-feature h3 { font-family: var(--wp--preset--font-family--barlow); text-transform: none; font-size: 1.2rem; font-weight: 600; color: #fff; }
.ffe-feature p { margin-top: 0.4rem !important; font-size: 0.95rem; color: #FFE8EA; }
.ffe-section--rot .wp-block-button:not(.is-style-outline) .wp-element-button { background: #fff; color: var(--wp--preset--color--rot-dunkel); }
.ffe-section--dunkel .is-style-outline .wp-element-button, .ffe-section--rot .is-style-outline .wp-element-button { color: #fff; border-color: #fff; }

/* ---------- Fuhrpark ---------- */
.ffe-vehicles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.ffe-vehicles > * { margin: 0 !important; }
.ffe-vcard { background: var(--wp--preset--color--hellgrau); border-radius: 10px; overflow: hidden; }
.ffe-vcard > * { margin: 0 !important; }
.ffe-vcard .wp-block-image img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ffe-vcard h3 { padding: 1.1rem 1.25rem 0; font-size: 1.6rem; }
.ffe-vcard h3 a { color: var(--wp--preset--color--text); text-decoration: none; }
.ffe-vcard p { padding: 0.25rem 1.25rem 1.2rem; font-size: 0.95rem; color: #4A4F54; }

/* ---------- Teaser (Jugend / Bürger) ---------- */
.ffe-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.ffe-teasers > * { margin: 0 !important; }
.ffe-teaser { background: #fff; border-radius: 10px; padding: 2.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.ffe-teaser > * { margin: 0 !important; }
.ffe-teaser h2 { font-size: 2.4rem; line-height: 1.05; }

/* ---------- Fußbereich ---------- */
.ffe-footer { background: var(--wp--preset--color--schwarz); color: #C9CDD1; font-size: 1rem; }
.ffe-footer .ffe-container { padding-block: 4rem 2rem; }
.ffe-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.ffe-footer__cols > * { margin: 0 !important; }
.ffe-footer__cols p { margin: 0.35rem 0 0; }
.ffe-footer__name { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 1.6rem; color: #fff; }
.ffe-footer__label { font-weight: 600; color: #fff; }
.ffe-footer__112 { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 700; font-size: 2.75rem; line-height: 1; color: #FF6B74; }
.ffe-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid #2C3136; font-size: 0.875rem; }
.ffe-footer__bottom > * { margin: 0 !important; }
.ffe-footer a { color: #E8EAEC; }

/* ---------- Inhaltsseiten ---------- */
.ffe-main { padding-block: 3rem 4rem; }
.ffe-pagehead { background: var(--wp--preset--color--hellgrau); border-bottom: 1px solid #E4E6E8; }
.ffe-pagehead .ffe-container { padding-block: 2.5rem; }
.ffe-pagehead h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.25rem); }
