/*
 Theme Name:   Feuerwehr Florstadt
 Description:  Kindtheme von Kadence fuer die Freiwillige Feuerwehr Florstadt
 Author:       Sebastian Mattheis
 Author URI:   https://feuerwehr-florstadt.de/
 Template:     kadence
 Version:      1.0.4
 Text Domain:  feuerwehr-florstadt
*/

/* ===== Kopfzeile: Notruf-Hinweis ===== */
.site-header .fwflo-notruf { display: flex; align-items: center; gap: 12px; }
.site-header .fwflo-notruf-text { font-size: 13px; font-weight: 600; line-height: 1.3; color: #5c5d5e; text-align: right; }
.site-header .fwflo-notruf-nr { font-family: Archivo, sans-serif; font-weight: 700; font-size: 40px; line-height: 1; color: var(--global-palette1); }

/* ===== Fusszeile ===== */
.site-footer .wp-block-list { list-style: none; margin: 0; padding: 0; }
.site-footer .wp-block-list li { margin: 0 0 .45em; }
.site-footer h4.wp-block-heading { font-size: 16px; margin: 0 0 .7em; color: #fff; text-transform: none; }
.site-footer .site-middle-footer-wrap,
.site-footer .site-middle-footer-wrap p { color: #c9cacb; }
.site-footer .site-middle-footer-wrap strong { color: #fff; }
.site-footer .site-middle-footer-wrap a { color: #fff; }
.site-footer .site-middle-footer-wrap a:hover { color: #fff; text-decoration: underline; }

/* ===== Startseite: Titelbild ===== */
.wp-block-cover.fwflo-hero { padding: 48px var(--global-content-edge-padding, 1.5rem) !important; }
.fwflo-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(28,29,30,.78) 0%, rgba(28,29,30,.45) 40%, rgba(28,29,30,.05) 75%); }
.wp-block-cover.fwflo-hero .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100% !important; max-width: calc(var(--global-content-width, 1290px) - 2 * var(--global-content-edge-padding, 1.5rem)) !important; margin-left: auto !important; margin-right: auto !important; }
.fwflo-hero h1 { color: #fff; font-size: 46px; line-height: 1.1; max-width: 560px; margin: 0 0 22px; }
.fwflo-hero .wp-block-buttons { gap: 12px; }
.wp-block-button.fwflo-btn-weiss .wp-block-button__link { background: #fff; color: #2b2c2d; }
.wp-block-button.fwflo-btn-weiss .wp-block-button__link:hover { background: #e6e6e7; color: #2b2c2d; }
.wp-block-button.fwflo-btn-rahmen .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.wp-block-button.fwflo-btn-rahmen .wp-block-button__link:hover { background: rgba(255,255,255,.15); color: #fff; }
.fwflo-hero .wp-block-button__link,
.fwflo-mitmachen .wp-block-button__link { padding: 14px 26px; font-weight: 600; font-size: 16px; }

/* ===== Startseite: Hauptbereich ===== */
.wp-block-columns.fwflo-haupt { max-width: var(--global-content-width, 1290px); margin: 56px auto 72px; padding: 0 var(--global-content-edge-padding, 1.5rem); box-sizing: border-box; gap: 32px; }
.fwflo-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.fwflo-titel { margin: 0; font-size: 30px; display: flex; align-items: center; gap: 12px; }
.fwflo-titel::before { content: ""; width: 6px; height: 28px; background: var(--global-palette1); }
.fwflo-mehr { margin: 0; font-weight: 600; }
.fwflo-mehr a { text-decoration: none; }
.fwflo-top .wp-block-post-template,
.fwflo-kacheln .wp-block-post-template,
.fwflo-einsatzliste .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.wp-block-post-date { font-size: 13px; font-weight: 600; color: #5c5d5e; }

/* Neuester Bericht gross */
.fwflo-top .wp-block-post { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.fwflo-top .wp-block-post-featured-image { margin: 0; height: 320px; }
.fwflo-top .wp-block-post-featured-image a { display: block; height: 100%; }
.fwflo-top .wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; }
.fwflo-top-text { padding: 28px; }
.fwflo-top .wp-block-post-title { font-size: 26px; margin: 8px 0 12px; }
.fwflo-top .wp-block-post-title a,
.fwflo-kacheln .wp-block-post-title a,
.fwflo-einsatzliste .wp-block-post-title a { color: var(--global-palette3); text-decoration: none; }
.fwflo-top .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }

/* Drei Kacheln */
.fwflo-kacheln .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fwflo-kacheln .wp-block-post { background: #fff; border-radius: 4px; overflow: hidden; }
.fwflo-kacheln .wp-block-post-featured-image { margin: 0; }
.fwflo-kacheln .wp-block-post-featured-image img { height: 150px; width: 100%; object-fit: cover; }
.fwflo-kachel-text { padding: 16px 18px 20px; }
.fwflo-kacheln .wp-block-post-title { font-family: Inter, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.35; margin: 6px 0 0; }

/* Letzte Einsaetze */
.fwflo-einsaetze { background: #fff; border-radius: 4px; overflow: hidden; }
.fwflo-einsaetze-titel { margin: 0; padding: 16px 24px; background: var(--global-palette6); color: #fff; font-size: 21px; }
.fwflo-einsatzliste { padding: 8px 24px 0; }
.fwflo-einsatzliste .wp-block-post { padding: 12px 0; border-bottom: 1px solid var(--global-palette7); }
.fwflo-einsatzliste .wp-block-post-title { font-family: Inter, sans-serif; font-size: 16px; font-weight: 600; margin: 2px 0 0; }
.fwflo-einsaetze-knopf { padding: 18px 24px 24px; }
.fwflo-einsaetze-knopf .wp-block-button { width: 100%; }
.fwflo-einsaetze-knopf .wp-block-button__link { width: 100%; text-align: center; }

/* ===== Startseite: Mitmachen-Band ===== */
.wp-block-group.fwflo-mitmachen { background: var(--global-palette6); color: #fff; padding: 56px var(--global-content-edge-padding, 1.5rem) !important; }
.fwflo-mitmachen .wp-block-columns { max-width: calc(var(--global-content-width, 1290px) - 2 * var(--global-content-edge-padding, 1.5rem)) !important; margin-left: auto !important; margin-right: auto !important; }
.fwflo-mitmachen h2 { color: #fff; font-size: 36px; margin: 0 0 10px; }
.fwflo-mitmachen p { font-size: 18px; margin: 0; }
.fwflo-mitmachen .wp-block-buttons { gap: 12px; }

/* ===== Startseite: kein Leerraum vor der Fusszeile ===== */
body.home .content-area,
body.home .site-main,
body.home .content-wrap,
body.home article.entry,
body.home .entry-content-wrap,
body.home .entry-content { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
body.home .fwflo-mitmachen { margin-bottom: 0 !important; }

/* ===== Handy ===== */
@media (max-width: 781px) {
	.fwflo-top .wp-block-post { grid-template-columns: 1fr; }
	.fwflo-top .wp-block-post-featured-image { height: 220px; }
	.fwflo-kacheln .wp-block-post-template { grid-template-columns: 1fr; }
	.wp-block-columns.fwflo-haupt { margin: 32px auto 48px; }
	.site-header .fwflo-notruf-nr { font-size: 30px; }
	.fwflo-hero h1 { font-size: 32px; }
}

/* ===== Abteilungsseiten: neueste Berichte als Kacheln ===== */
.fwflo-kacheln-seite { margin-top: 1em; }
.fwflo-kacheln-seite .wp-block-post { border: 1px solid var(--global-palette7); }
.wp-block-buttons.fwflo-alle { margin-top: 24px !important; }

/* ===== Bautagebuch: Chronik ===== */
.fwflo-chronik .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.fwflo-chronik .wp-block-post { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--global-palette7); }
.fwflo-chronik .wp-block-post-date { flex: 0 0 140px; }
.fwflo-chronik .wp-block-post-title { font-family: Inter, sans-serif; font-size: 16px; font-weight: 600; margin: 0; }
.fwflo-chronik .wp-block-post-title a { color: var(--global-palette3); text-decoration: none; }
@media (max-width: 781px) {
	.fwflo-chronik .wp-block-post { flex-direction: column; gap: 2px; }
	.fwflo-chronik .wp-block-post-date { flex: none; }
}
