/* Feuerwehr Unnau – Haupt-Stylesheet
   Grundlage: docs/STYLEGUIDE.md. Keine externen Ressourcen. */


/* SCHRIFTEN
****************************************************/

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); }


/* TOKENS
****************************************************/

:root {
	--red: #d63b37;
	--red-dark: #b02f2c;
	--red-tint: #fbe9e8;
	--black: #313232;
	--black-deep: #262727;
	--text: #2b2b2b;
	--muted: #6b6f72;
	--border: #e3e5e6;
	--soft: #f5f5f5;
	--focus: #ffbf47;
	--on-dark: #dbdbdb;
	--on-dark-muted: #b9bcbe;
	--on-dark-hover: #f3b4b2;

	/* Einsatzarten (Alarmstichworte RLP), Kontraste siehe Style-Guide */
	--cat-b: #d63b37;
	--cat-h: #313232;
	--cat-g: #e0a030;
	--cat-s: #6b6f72;
	--cat-w: #1f5f99;
	--cat-u: #2f6b3a;

	--radius: 4px;
	--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
	--shadow-hover: 0 4px 10px rgba(0, 0, 0, .12), 0 12px 28px rgba(0, 0, 0, .08);

	--head: "Roboto Condensed", "Roboto", "Arial Narrow", Arial, sans-serif;
	--body: "Roboto", Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--nav-h: 56px;
}


/* GRUNDLAGEN
****************************************************/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-family: var(--body);
	font-size: 100%;
	line-height: 1.6;
	color: var(--text);
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
	margin: 0;
	background: #fff;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--red-dark);
}

a:hover {
	color: var(--red);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.15;
	color: var(--black);
	margin: 0 0 .5em;
}

p {
	margin: 0 0 1em;
}

strong,
b {
	font-weight: 700;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 2em 0;
}

/* Fokus: hell -> Anthrazit, dunkel -> Gelb, Rot -> Weiss */
:focus-visible {
	outline: 3px solid var(--black);
	outline-offset: 2px;
}

.is-dark :focus-visible {
	outline-color: var(--focus);
}

.is-red :focus-visible {
	outline-color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: #fff;
	color: var(--black);
	font: 700 1rem/1 var(--head);
	border-radius: var(--radius);
	box-shadow: var(--shadow-hover);
}

.skip-link:focus {
	top: 16px;
}

.site-main:focus {
	outline: 0;
}


/* LAYOUT
****************************************************/

.wrap {
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section {
	padding: clamp(48px, 7vw, 88px) 0;
}

.section--soft {
	background: var(--soft);
}

.content-area {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(48px, 7vw, 80px);
}

@media (min-width: 960px) {
	.content-area.has-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 48px;
		align-items: start;
	}
}

.eyebrow {
	font: 700 .85rem/1.3 var(--head);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--red-dark);
	margin: 0 0 .4em;
}

.eyebrow a {
	color: inherit;
	text-decoration: none;
}

.eyebrow a:hover {
	text-decoration: underline;
}

.section-title,
.page-title {
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
}

.page-title {
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem);
}

.section-title::after,
.page-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin-top: .35em;
	background: var(--red);
}

.page-header {
	margin-bottom: 32px;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px 16px;
	margin-bottom: 28px;
}

.more {
	font: 700 .9rem/1.3 var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}

.more::after {
	content: " \203A";
}

.meta {
	font: 500 .85rem/1.4 var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}


/* BUTTONS
****************************************************/

.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background: var(--red);
	color: #fff;
	font: 700 1rem/1.2 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	background: var(--red-dark);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
}

.btn-ghost:hover {
	background: #fff;
	color: var(--black);
}

.btn-white {
	background: #fff;
	color: var(--red-dark);
}

.btn-white:hover {
	background: var(--black);
	color: #fff;
}

.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: var(--red-dark);
}


/* KOPF: MARKENLEISTE
****************************************************/

.brandbar {
	background: var(--black);
	color: #fff;
}

.brandbar .wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 84px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-right: auto;
	color: #fff;
	text-decoration: none;
	min-width: 0;
}

.brand:hover {
	color: #fff;
}

.brand-logo {
	width: auto;
	height: 60px;
	flex: none;
}

.brand-name {
	font: 700 1.45rem/1.05 var(--head);
	letter-spacing: .03em;
	text-transform: uppercase;
}

.brand-name small {
	display: block;
	margin-top: 3px;
	font-weight: 500;
	font-size: .8rem;
	letter-spacing: .08em;
	color: var(--on-dark-muted);
}

.notruf {
	margin: 0;
	padding: 6px 0 6px 12px;
	border-left: 4px solid var(--red);
	font: 700 1.05rem/1 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.notruf span {
	display: block;
	margin-bottom: 3px;
	font-weight: 500;
	font-size: .7rem;
	color: var(--on-dark-muted);
}

@media (max-width: 959px) {
	.brandbar .wrap {
		min-height: 68px;
		gap: 12px;
	}

	.brand-logo {
		height: 44px;
	}

	.brand-name {
		font-size: 1.05rem;
	}

	.brand-name small,
	.brandbar-cta {
		display: none;
	}
}

@media (max-width: 599px) {
	.brand-name {
		font-size: .95rem;
	}

	.notruf {
		font-size: .9rem;
	}

	.notruf span {
		display: none;
	}
}


/* KOPF: HAUPTMENUE
   Gemessen (9 Hauptpunkte): ab 1440 px normal, 1180-1439 px verkleinert,
   darunter Menue-Knopf. Kein overflow (Untermenues duerfen nicht abgeschnitten werden).
****************************************************/

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.admin-bar .site-nav {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-nav {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-nav {
		top: 0;
	}
}

.site-nav .menu,
.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu a {
	color: var(--black);
	text-decoration: none;
	font: 500 .95rem/1.2 var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Notruf steht in der Markenleiste; ein gleichnamiger Menuepunkt waere doppelt.
   Spezifischer als „.site-nav .menu > li“ (Desktop: display:flex). */
.site-nav .menu li.menu-notruf {
	display: none;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--black);
	font: 700 1rem/1 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
}

.menu-toggle::before {
	content: "";
	width: 22px;
	height: 14px;
	border-top: 2px solid;
	border-bottom: 2px solid;
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.menu-toggle[aria-expanded="true"]::before {
	height: 2px;
	border: 0;
	background: currentColor;
	box-shadow: none;
}

.sub-toggle {
	position: relative;
	padding: 0;
	border: 0;
	background: none;
	color: var(--black);
	cursor: pointer;
}

.sub-toggle::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	margin: -6px 0 0 -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s ease;
}

.is-open > .sub-toggle::before {
	margin-top: -2px;
	transform: rotate(-135deg);
}

/* Schmal: Menue-Knopf, Liste klappt unter der Leiste auf */
@media (max-width: 1179px) {
	.site-nav.has-js .menu {
		display: none;
	}

	.site-nav.is-open .menu {
		display: block;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding-bottom: 12px;
	}

	.site-nav:not(.has-js) .menu-toggle {
		display: none;
	}

	.site-nav:not(.has-js) .menu {
		display: flex;
		flex-wrap: wrap;
		gap: 0 16px;
		padding: 8px 0;
	}

	.site-nav .menu li {
		position: relative;
		border-top: 1px solid var(--border);
	}

	.site-nav .menu a {
		display: block;
		padding: 14px 56px 14px 0;
	}

	.site-nav .sub-toggle {
		position: absolute;
		right: 0;
		top: 0;
		width: 48px;
		height: 48px;
	}

	.site-nav.has-js .sub-menu {
		display: none;
	}

	.site-nav .is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu {
		padding-left: 16px;
	}

	.site-nav .sub-menu a {
		text-transform: none;
		font-size: 1rem;
		letter-spacing: .01em;
	}

	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a {
		color: var(--red-dark);
		font-weight: 700;
	}
}

/* Breit: Menue in einer Zeile, Untermenues als Aufklappkarte */
@media (min-width: 1180px) {
	.menu-toggle {
		display: none;
	}

	.site-nav .menu {
		display: flex;
		align-items: stretch;
	}

	.site-nav .menu > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.site-nav .menu > li > a {
		position: relative;
		display: flex;
		align-items: center;
		min-height: var(--nav-h);
		padding: 0 11px;
		white-space: nowrap;
	}

	.site-nav .menu > li.menu-item-has-children > a {
		padding-right: 2px;
	}

	.site-nav .menu > li > a::after {
		content: "";
		position: absolute;
		left: 8px;
		right: 8px;
		bottom: 0;
		height: 4px;
		background: transparent;
	}

	.site-nav .menu > li > a:hover::after {
		background: var(--border);
	}

	.site-nav .menu > .current-menu-item > a::after,
	.site-nav .menu > .current_page_item > a::after,
	.site-nav .menu > .current-menu-ancestor > a::after,
	.site-nav .menu > .current-page-ancestor > a::after {
		background: var(--red);
	}

	.site-nav .menu > li > .sub-toggle {
		width: 22px;
		height: var(--nav-h);
		margin-right: 6px;
	}

	.site-nav .sub-menu {
		position: absolute;
		left: 0;
		top: 100%;
		z-index: 60;
		display: none;
		min-width: 240px;
		padding: 8px 0;
		background: #fff;
		border-top: 4px solid var(--red);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow-hover);
	}

	.site-nav .sub-menu .sub-menu {
		left: 100%;
		top: -12px;
	}

	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu,
	.site-nav li.is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.site-nav .sub-menu a {
		flex: 1;
		display: block;
		padding: 10px 18px;
		text-transform: none;
		font-size: 1rem;
		letter-spacing: .01em;
		white-space: nowrap;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		background: var(--soft);
		color: var(--red-dark);
	}

	.site-nav .sub-menu .sub-toggle {
		width: 32px;
		height: 40px;
		transform: rotate(-90deg);
	}
}

@media (min-width: 1180px) and (max-width: 1439px) {
	.site-nav .menu > li > a {
		padding: 0 7px;
		font-size: .85rem;
		letter-spacing: .03em;
	}

	.site-nav .menu > li > .sub-toggle {
		width: 18px;
		margin-right: 4px;
	}
}


/* STARTSEITE: TITELBEREICH
****************************************************/

.hero {
	position: relative;
	overflow: hidden;
	background: var(--black-deep);
	color: #fff;
}

/* roter Keil, auch ohne Foto */
.hero::before {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 42%;
	background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
	clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.hero .wrap {
	position: relative;
	display: grid;
	gap: 40px;
	align-items: center;
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(96px, 10vw, 140px);
}

.hero-text {
	max-width: 720px;
}

.hero .eyebrow {
	color: var(--on-dark-hover);
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem);
	letter-spacing: .01em;
	text-transform: uppercase;
}

.hero h1 em {
	display: block;
	font-style: normal;
	color: #ffd6d4;
}

.hero .lead {
	max-width: 34em;
	margin: 0 0 28px;
	font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
	color: var(--on-dark);
}

.hero .actions,
.mitmachen .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

@media (min-width: 960px) {
	.hero--photo .wrap {
		grid-template-columns: 1.15fr .85fr;
	}
}

@media (max-width: 959px) {
	.hero::before {
		inset: auto 0 0 0;
		width: 100%;
		height: 30%;
		clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
	}
}


/* STARTSEITE: KENNZAHLEN
****************************************************/

.stats {
	position: relative;
	z-index: 2;
	margin-top: -64px;
}

/* Spalten richten sich nach der Zahl der Kennzahlen (leere Felder im Customizer entfallen) */
.stats-grid {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	background: #fff;
	border-top: 4px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow-hover);
}

.stat {
	padding: 22px 24px;
	border-left: 1px solid var(--border);
}

.stat:first-child {
	border-left: 0;
}

.stat-num {
	font: 700 2.6rem/1 var(--head);
	color: var(--black);
}

.stat-label {
	margin-top: 6px;
	font: 500 .85rem/1.3 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
}

.bars {
	display: flex;
	height: 8px;
	margin: 12px 0 8px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--soft);
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .8rem;
	color: var(--muted);
}

.legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	border-radius: 2px;
	vertical-align: -1px;
}

.cat-b { background: var(--cat-b); }
.cat-h { background: var(--cat-h); }
.cat-g { background: var(--cat-g); }
.cat-s { background: var(--cat-s); }
.cat-w { background: var(--cat-w); }
.cat-u { background: var(--cat-u); }

@media (min-width: 960px) {
	.stats-grid:has(> .stat:nth-child(4)) {
		grid-template-columns: 1.4fr repeat(3, 1fr);
	}
}

@media (max-width: 959px) {
	.stats-grid {
		grid-auto-flow: row;
		grid-template-columns: 1fr 1fr;
	}

	.stat:nth-child(odd) {
		border-left: 0;
	}

	.stat:nth-child(n+3) {
		border-top: 1px solid var(--border);
	}
}

@media (max-width: 599px) {
	.stat {
		padding: 18px;
	}

	.stat-num {
		font-size: 2.1rem;
	}
}


/* STARTSEITE: ABTEILUNGEN (KACHELN)
****************************************************/

/* 6 Kacheln: 3 / 2 / 1 Spalten, damit keine Reihe halb leer bleibt */
.tiles {
	display: grid;
	gap: 24px;
}

@media (min-width: 640px) {
	.tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.tiles {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px 22px;
	background: #fff;
	border: 1px solid var(--border);
	border-top: 4px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: inherit;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}

.tile:hover {
	color: inherit;
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.tile-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--red-tint);
	color: var(--red-dark);
}

.tile-icon .icon {
	width: 24px;
	height: 24px;
}

.tile h2,
.tile h3 {
	margin: 4px 0 0;
	font-size: 1.35rem;
}

.tile p {
	margin: 0;
}

.tile-fact {
	margin-top: auto;
	padding-top: 6px;
	font: 700 .8rem/1.3 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--red-dark);
}

/* Vorlage „Übersicht“: Unterseiten als Kacheln, Spaltenzahl nach verfuegbarer Breite
   (neben einer Seitenleiste sonst zu schmal) */
.tiles.tiles--subpages {
	margin-top: 40px;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}


/* STARTSEITE: UEBER UNS
****************************************************/

.section--about {
	padding-top: 0;
}


/* EINSATZ-STICHWORT (BADGE)
****************************************************/

.stichwort {
	display: inline-block;
	width: 100px;
	padding: 8px 4px;
	border-radius: var(--radius);
	background: var(--cat-s);
	color: #fff;
	text-align: center;
	font: 700 1rem/1 var(--head);
	letter-spacing: .03em;
}

.stichwort small {
	display: block;
	margin-top: 4px;
	font-weight: 500;
	font-size: .62rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.stichwort--b { background: var(--cat-b); }
.stichwort--h { background: var(--cat-h); }
.stichwort--g { background: var(--cat-g); color: var(--text); }
.stichwort--s { background: var(--cat-s); }
.stichwort--w { background: var(--cat-w); }
.stichwort--u { background: var(--cat-u); }
.stichwort--x { background: #fff; color: var(--black); border: 2px solid var(--border); }


/* STARTSEITE: EINSAETZE + TERMINE
****************************************************/

.split {
	display: grid;
	gap: 48px;
}

@media (min-width: 960px) {
	.split {
		grid-template-columns: 1.3fr 1fr;
	}
}

.einsatz-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--border);
}

.einsatz-item:first-child {
	border-top: 1px solid var(--border);
}

.einsatz-item .stichwort {
	grid-row: span 3;
	align-self: start;
}

.einsatz-item h3 {
	margin: 0;
	font-size: 1.25rem;
}

.einsatz-item h3 a,
.einsatz-card-title a {
	color: var(--black);
	text-decoration: none;
}

.einsatz-item h3 a:hover,
.einsatz-card-title a:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.einsatz-ort {
	margin: 0;
	font-size: .95rem;
}

.termine {
	margin: 0;
	padding: 0;
	list-style: none;
}

.termin {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}

.termin:first-child {
	border-top: 1px solid var(--border);
}

.termin h3 {
	margin: 0 0 2px;
	font-size: 1.1rem;
}

.termin-datum {
	overflow: hidden;
	border: 2px solid var(--black);
	border-radius: var(--radius);
	background: #fff;
	text-align: center;
}

.termin-datum .tag {
	display: block;
	padding-top: 2px;
	font: 700 1.6rem/1.2 var(--head);
	color: var(--black);
}

.termin-datum .mon {
	display: block;
	background: var(--black);
	color: #fff;
	font: 700 .7rem/1.8 var(--head);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.warnlage {
	margin-top: 24px;
	padding: 14px 16px;
	background: #fff;
	border-left: 4px solid var(--muted);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: .95rem;
}

.warnlage-title {
	margin: 0 0 2px;
	font: 700 .85rem/1.3 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
}

.warnlage .wetterwarner p:last-child {
	margin-bottom: 0;
}


/* STARTSEITE: MITMACHEN
****************************************************/

.mitmachen {
	position: relative;
	background: var(--red);
	color: #fff;
}

.mitmachen::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 10px;
	background: repeating-linear-gradient(-45deg, #fff 0 16px, transparent 16px 32px);
	opacity: .45;
}

.mitmachen .wrap {
	display: grid;
	gap: 32px 40px;
	align-items: center;
}

@media (min-width: 960px) {
	.mitmachen .wrap {
		grid-template-columns: 1.2fr 1fr;
	}
}

.mitmachen h2 {
	color: #fff;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	text-transform: uppercase;
}

.mitmachen p {
	margin: 0;
	font-size: 1.1rem;
}

.mitmachen .actions {
	flex-direction: column;
}

.mitmachen .actions .btn {
	justify-content: space-between;
}

.mitmachen .actions .btn::after {
	content: "\203A";
	font-size: 1.4rem;
}


/* INHALT (Block-Editor)
****************************************************/

.entry-content > :where(p, ul, ol, h2, h3, h4, h5, h6, blockquote, dl) {
	max-width: 75ch;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.2em; }

.entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: .3em;
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption,
.wp-element-caption {
	margin-top: 8px;
	font-size: .875rem;
	color: var(--muted);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content blockquote,
.wp-block-quote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--red);
	font-size: 1.1rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

/* Tabellen-Block: schwarze Rahmen der Block-Styles durch feine Linien ersetzen */
.entry-content .wp-block-table {
	max-width: 75ch;
}

.entry-content .wp-block-table thead {
	border-bottom: 2px solid var(--red);
}

.entry-content .wp-block-table :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--border);
}

.entry-content th {
	font-family: var(--head);
	letter-spacing: .03em;
	background: var(--soft);
}

.entry-thumbnail {
	margin: 0 0 32px;
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--radius);
}

/* Farbpalette des Editors */
.has-rot-color { color: var(--red); }
.has-rot-dunkel-color { color: var(--red-dark); }
.has-anthrazit-color { color: var(--black); }
.has-textfarbe-color { color: var(--text); }
.has-grau-color { color: var(--muted); }
.has-weiss-color { color: #fff; }
.has-rot-background-color { background-color: var(--red); }
.has-rot-dunkel-background-color { background-color: var(--red-dark); }
.has-anthrazit-background-color { background-color: var(--black); }
.has-hellgrau-background-color { background-color: var(--soft); }
.has-weiss-background-color { background-color: #fff; }

/* Mitmachen-Block aus dem bisherigen Theme (Gruppe mit Klasse ff-mitmachen) */
.ff-mitmachen {
	position: relative;
	max-width: none !important;
	margin: 40px 0;
	padding: clamp(24px, 4vw, 48px);
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--red);
	color: #fff;
}

.ff-mitmachen h2,
.ff-mitmachen h3,
.ff-mitmachen p {
	color: #fff;
}

.ff-mitmachen .wp-block-button__link {
	background: #fff;
	color: var(--red-dark);
}


/* EINZELNER EINSATZBERICHT
****************************************************/

.einsatz-title {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.einsatz-title .stichwort {
	flex: none;
	margin-top: 6px;
}

.einsatz-title .page-title {
	margin: 0;
}

/* Steckbrief: erster Absatz der Einsatzverwaltung */
.single-einsatz .entry-content > p:first-child {
	max-width: none;
	padding: 16px 20px;
	background: var(--soft);
	border-left: 4px solid var(--red);
	border-radius: 0 var(--radius) var(--radius) 0;
	line-height: 2;
}

.single-einsatz .entry-content > p:first-child b,
.single-einsatz .entry-content > p:first-child strong {
	display: inline-block;
	min-width: 110px;
	font: 700 .85rem/1.4 var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
}

.single-einsatz .entry-content > p:first-child + hr {
	display: none;
}

/* Blockstil „Kasten“ (Gruppe): Das Wichtigste in Kürze, Optik wie der Steckbrief */
.entry-content .is-style-kasten {
	max-width: 75ch;
	margin: 1.6em 0;
	padding: 20px 24px;
	background: var(--soft);
	border-left: 4px solid var(--red);
	border-radius: 0 var(--radius) var(--radius) 0;
}

/* Klassische Themes: WordPress setzt einen inneren Container um den Gruppeninhalt */
.entry-content .is-style-kasten > :first-child,
.entry-content .is-style-kasten > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.entry-content .is-style-kasten > :last-child,
.entry-content .is-style-kasten > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.entry-content .is-style-kasten h2 { font-size: 1.35rem; }

/* Blockstil „Quelle/Stand“ (Absatz) */
.entry-content .is-style-quelle {
	margin-top: 2.4em;
	font-size: .875rem;
	color: var(--muted);
}

@media (max-width: 639px) {
	.single-einsatz .entry-content > p:first-child {
		line-height: 1.5;
	}

	.single-einsatz .entry-content > p:first-child b,
	.single-einsatz .entry-content > p:first-child strong {
		display: block;
		margin-top: 10px;
	}

	.single-einsatz .entry-content > p:first-child b:first-child,
	.single-einsatz .entry-content > p:first-child strong:first-child {
		margin-top: 0;
	}
}


/* UEBERSICHTEN
****************************************************/

.einsatz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.einsatz-card,
.list-item {
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--border);
	border-top: 4px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.einsatz-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 12px;
}

.einsatz-card-title,
.list-item-title {
	margin: 0 0 4px;
	font-size: 1.3rem;
}

.list-item-title a {
	color: var(--black);
	text-decoration: none;
}

.list-item-title a:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.post-list {
	display: grid;
	gap: 20px;
}

.list-item-excerpt p {
	margin: 8px 0 0;
}

.archive-description {
	max-width: 75ch;
	margin-bottom: 28px;
}

/* Vor/Zurueck */
.post-navigation .nav-links {
	display: grid;
	gap: 16px;
	margin-top: 40px;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		text-align: right;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-left: 4px solid var(--red);
	border-radius: var(--radius);
	color: var(--black);
	font: 700 1.05rem/1.3 var(--head);
	text-decoration: none;
}

.post-navigation a:hover {
	background: var(--soft);
	color: var(--red-dark);
}

/* Unterseiten einer Übersicht: Link zurück unter Vor/Zurück */
.post-navigation .nav-overview {
	margin: 24px 0 0;
}

.post-navigation .nav-overview a {
	display: inline;
	padding: 0;
	border: 0;
	color: var(--red-dark);
	font: 700 .9rem/1.3 var(--head);
}

.post-navigation .nav-overview a:hover {
	background: none;
	text-decoration: underline;
}

.post-navigation .nav-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Seitenzahlen */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--black);
	font: 700 1rem/1 var(--head);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--red);
	color: var(--red-dark);
}

.pagination .current {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

/* Suche */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 0 32px;
}

.search-field {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 14px;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	font: inherit;
}

.search-field:focus {
	border-color: var(--black);
}


/* SEITENLEISTE (Widgets)
****************************************************/

.sidebar {
	margin-top: 48px;
}

@media (min-width: 960px) {
	.sidebar {
		margin-top: 0;
	}
}

.sidebar .widget {
	margin-bottom: 24px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--border);
	border-top: 4px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.sidebar .widget-title,
.sidebar .wetterwarner__title {
	margin: 0 0 14px;
	font-size: 1.1rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.sidebar ul {
	margin: 0;
	padding-left: 1.2em;
}

/* Einsatzverwaltung: Letzte Einsaetze
   Aufbau: a.einsatzmeldung <br> .einsatzdatum " | " .einsatzzeit <br> .einsatzart <br> .einsatzort */
.widget ul.einsatzberichte {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li.einsatzbericht {
	margin: 0 0 14px;
	padding: 2px 0 2px 12px;
	border-left: 3px solid var(--red);
	font: 500 .8rem/1.5 var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
}

.widget li.einsatzbericht:last-child {
	margin-bottom: 0;
}

.widget li.einsatzbericht .einsatzmeldung + br {
	display: none;
}

.widget li.einsatzbericht .einsatzmeldung {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .01em;
	text-transform: none;
	color: var(--black);
	text-decoration: none;
}

.widget li.einsatzbericht .einsatzmeldung:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.widget li.einsatzbericht .einsatzart {
	display: inline-block;
	margin: 4px 0 2px;
	padding: 1px 6px;
	border-radius: 3px;
	background: var(--black);
	color: #fff;
	font-weight: 700;
	font-size: .75rem;
}

.widget li.einsatzbericht .einsatzort {
	font: 400 .9rem/1.5 var(--body);
	letter-spacing: 0;
	text-transform: none;
	color: var(--text);
}

/* Wetterwarner */
.wetterwarner__map img {
	max-width: 100%;
	height: auto;
}

.wetterwarner__source {
	margin-bottom: 0;
	font-size: .8rem;
	color: var(--muted);
}

/* Simple Calendar: Farben stehen als style="" im HTML (daher !important), das
   Plugin-CSS wird nach dem Theme geladen (daher der Vorsatz .widget fuer mehr Gewicht) */
.widget .simcal-default-calendar-list {
	padding: 0;
}

.widget .simcal-default-calendar-list dl.simcal-events-list-container {
	margin: 0;
}

.widget .simcal-default-calendar-list dt.simcal-day-label {
	margin: 16px 0 6px;
	border-bottom: 2px solid var(--red) !important;
}

.widget .simcal-default-calendar-list dt.simcal-day-label > span {
	display: inline-block;
	padding: 0 0 4px !important;
	background: transparent !important;
	color: var(--black) !important;
	font: 700 .85rem/1.3 var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.widget .simcal-default-calendar-list dd.simcal-day {
	margin: 0;
}

.widget .simcal-default-calendar-list ul.simcal-events {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget .simcal-default-calendar-list ul.simcal-events li.simcal-event {
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}

.widget .simcal-default-calendar-list ul.simcal-events li.simcal-event:last-child {
	border-bottom: 0;
}

.widget .simcal-default-calendar-list .simcal-event-details {
	font-size: .9rem;
	line-height: 1.4;
}

.widget .simcal-default-calendar-list .simcal-event-details p {
	margin: 0;
}

.widget .simcal-event-title {
	font: 700 1rem/1.3 var(--head);
	color: var(--black);
}

.widget .simcal-nav-button {
	color: var(--red-dark);
}


/* FOOTER
****************************************************/

.site-footer {
	position: relative;
	padding: 56px 0 28px;
	background: var(--black);
	color: var(--on-dark);
}

/* Warnstreifen wie an einer Absperrung */
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 10px;
	background: repeating-linear-gradient(-45deg, var(--red) 0 16px, #fff 16px 32px);
}

.footer-cols {
	display: grid;
	gap: 32px 40px;
}

@media (min-width: 960px) {
	.footer-cols--2 { grid-template-columns: 1fr 1fr; }
	.footer-cols--3 { grid-template-columns: 1.2fr 1fr 1fr; }
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
	color: #fff;
	font-size: 1.05rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.site-footer p {
	color: var(--on-dark);
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: var(--on-dark-hover);
}

.site-footer .widget {
	margin-bottom: 24px;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Social-Links (Stil „Nur Logos“) weiss */
.site-footer .wp-block-social-links {
	gap: 8px 20px;
	font-size: 1rem;
}

.site-footer .wp-block-social-links .wp-social-link svg {
	width: 24px;
	height: 24px;
}

.site-footer .wp-block-social-links .wp-social-link {
	background: none !important;
	color: #fff !important;
}

.site-footer .wp-block-social-link-anchor {
	color: #fff !important;
	text-decoration: none;
	font: 500 1rem/1.2 var(--head);
	letter-spacing: .03em;
}

.site-footer .wp-block-social-link-anchor svg {
	fill: currentColor;
}

.site-footer .wp-block-social-link-anchor:hover {
	color: var(--on-dark-hover) !important;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .875rem;
	color: var(--on-dark-muted);
}

.footer-legal p {
	margin: 0;
	color: inherit;
}

.footer-menu .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.footer-menu a {
	font: 700 .85rem/1.6 var(--head);
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}


/* WENIGER BEWEGUNG
****************************************************/

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

	.tile:hover {
		transform: none;
	}
}
