/*
 * Formulare (fhd-formulare). Dieselben Maße und Farben wie das Kontaktformular (fhd-kern/blocks/kontaktformular/style.css):
 * Handy zuerst, auch für ältere Menschen — eine Spalte, Beschriftung über dem Feld, Felder 52 px hoch, Schrift nirgends
 * unter 16 px, Tippflächen mindestens 44 px. Farben nur aus der Palette des Themes (DESIGN.md); Amber trägt allein der
 * Knopf. Zwei halbe Felder stehen ab 31rem Breite des Formulars nebeneinander.
 */

.fhd-fo {
	--fo-papier: var(--wp--preset--color--papier, #fcfcfb);
	--fo-flaeche: var(--wp--preset--color--flaeche, #f4f4f2);
	--fo-flaeche-2: var(--wp--preset--color--flaeche-2, #ecece9);
	--fo-linie: var(--wp--preset--color--linie, #d9d9d5);
	--fo-tinte: var(--wp--preset--color--tinte, #22251d);
	--fo-leise: var(--wp--preset--color--tinte-leise, #54574e);
	--fo-espresso: var(--wp--preset--color--espresso, #1b1e15);
	--fo-amber: var(--wp--preset--color--amber, #f49e02);
	--fo-amber-tief: var(--wp--preset--color--amber-tief, #8a5200);
	--fo-fehler: var(--wp--preset--color--live, #c93126);
	--fo-rand: color-mix(in srgb, var(--fo-tinte) 58%, var(--fo-papier));
	--fo-hof: 0 0 0 7px color-mix(in srgb, var(--fo-amber) 45%, transparent);
	--fo-r: var(--wp--custom--radius--klein, 6px);
	--fo-r-gross: var(--wp--custom--radius--gross, 10px);
	--fo-t: var(--wp--custom--uebergang, 160ms cubic-bezier(0.2, 0.7, 0.2, 1));

	container-type: inline-size;
	max-width: 44rem;
	margin-top: 24px;
	scroll-margin-top: calc(var(--wp--custom--kopfhoehe, 84px) + 24px);
}

.fhd-fo:focus {
	outline: none;
}

.fhd-fo > * + * {
	margin-top: 20px;
}

.fhd-fo__titel {
	margin: 0;
}

.fhd-fo__eckdaten {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 0;
	color: var(--fo-leise);
	font-size: 1rem;
	line-height: 1.45;
}

/* ---------- Formular und Felder ---------- */

.fhd-fo__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 0;
}

.fhd-fo__form > *,
.fhd-fo__schritt > * {
	min-width: 0;
	margin: 0;
}

/* Verborgenes bleibt verborgen, auch gegen display-Regeln (Knöpfe des Themes, Felder, Schritte). */
.fhd-fo [hidden] {
	display: none !important;
}

@container (min-width: 31rem) {
	.fhd-fo__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhd-fo__form > *,
	.fhd-fo__schritt > * {
		grid-column: 1 / -1;
	}

	.fhd-fo__form > .fhd-fo__feld--halb,
	.fhd-fo__schritt > .fhd-fo__feld--halb {
		grid-column: auto;
	}
}

/* Text zwischen den Feldern (Absätze, Überschriften aus dem Editor): ruhig, mit etwas Luft über Zwischenüberschriften. */
.fhd-fo__form > :is(h2, h3, h4),
.fhd-fo__schritt > :is(h2, h3, h4) {
	margin-top: 12px;
}

.fhd-fo__form :where(.wp-block-group, .wp-block-column) > .fhd-fo__feld + .fhd-fo__feld {
	margin-top: 24px;
}

.fhd-fo__feld {
	display: grid;
	gap: 8px;
}

.fhd-fo__feld[hidden] {
	display: none;
}

.fhd-fo__feld > *,
.fhd-fo__gruppe > p {
	margin: 0;
}

.fhd-fo__feld > label,
.fhd-fo__gruppe > legend {
	color: var(--fo-tinte);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}

.fhd-fo__frei {
	color: var(--fo-leise);
	font-weight: 400;
}

/* Pflichtfeld: Stern hinter der Beschriftung, dazu einmal „* Pflichtfeld“ über dem Formular (Lukas, 05.11.2026) */
.fhd-fo__stern {
	margin-left: 0.15em;
	color: var(--fo-fehler);
	font-weight: 700;
}

.fhd-fo__stern-hinweis {
	margin: 0 0 -12px; /* näher am ersten Feld als der übliche Abstand von 24 px */
	color: var(--fo-leise);
	font-size: 0.9375rem;
}

.fhd-fo__stern-hinweis .fhd-fo__stern {
	margin: 0 0.15em 0 0;
}

.fhd-fo__hilfe {
	color: var(--fo-leise);
	font-size: 1rem;
	line-height: 1.45;
}

.fhd-fo__eingabe {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--fo-rand);
	border-radius: var(--fo-r);
	background: var(--fo-papier);
	color: var(--fo-tinte);
	font: inherit;
	font-size: 1.1875rem;
	line-height: 1.4;
	transition: border-color var(--fo-t), box-shadow var(--fo-t);
	-webkit-appearance: none;
	appearance: none;
}

textarea.fhd-fo__eingabe {
	min-height: 9rem;
	line-height: 1.55;
	resize: vertical;
}

input[type="date"].fhd-fo__eingabe {
	min-width: 0;
	font-size: max(1rem, 16px);
}

@media (hover: hover) {
	.fhd-fo__eingabe:hover,
	.fhd-fo__wahl:hover {
		border-color: var(--fo-espresso);
	}
}

.fhd-fo__eingabe:focus {
	border-color: var(--fo-espresso);
	outline: 3px solid var(--fo-espresso);
	outline-offset: 3px;
	box-shadow: var(--fo-hof);
}

.fhd-fo__eingabe[aria-invalid="true"] {
	border-color: var(--fo-fehler);
	box-shadow: inset 0 0 0 1px var(--fo-fehler);
}

.fhd-fo__eingabe[aria-invalid="true"]:focus {
	box-shadow: inset 0 0 0 1px var(--fo-fehler), var(--fo-hof);
}

.fhd-fo__eingabe:-webkit-autofill {
	-webkit-text-fill-color: var(--fo-tinte);
	caret-color: var(--fo-tinte);
	box-shadow: inset 0 0 0 100px var(--fo-papier);
}

select.fhd-fo__eingabe {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpolyline points='48 96 128 176 208 96' fill='none' stroke='%231b1e15' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	font-size: max(1rem, 16px);
	font-weight: 500;
	line-height: 1.3;
	white-space: normal;
	text-overflow: ellipsis;
	cursor: pointer;
}

@media (forced-colors: active) {
	select.fhd-fo__eingabe {
		padding-right: 14px;
		background-image: none;
		-webkit-appearance: auto;
		appearance: auto;
	}
}

.fhd-fo__icon {
	flex: none;
	width: 1.35em;
	height: 1.35em;
}

.fhd-fo__feldfehler {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--fo-fehler);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.45;
}

/* ---------- Auswahl als große Felder, Mehrfachauswahl, Häkchen ---------- */

.fhd-fo__gruppe {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fhd-fo__gruppe > legend {
	margin-bottom: 10px;
	padding: 0;
}

.fhd-fo__gruppe > .fhd-fo__hilfe,
.fhd-fo__gruppe > .fhd-fo__feldfehler {
	margin-bottom: 10px;
}

.fhd-fo__wahlen {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

@container (min-width: 31rem) {
	.fhd-fo__feld:not(.fhd-fo__feld--halb) > .fhd-fo__wahlen {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fhd-fo__wahl {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 14px;
	border: 1px solid var(--fo-rand);
	border-radius: var(--fo-r);
	background: var(--fo-papier);
	color: var(--fo-tinte);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color var(--fo-t), background-color var(--fo-t), box-shadow var(--fo-t);
}

.fhd-fo__wahl > input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--fo-espresso);
}

.fhd-fo__gruppe[aria-invalid="true"] .fhd-fo__wahl,
.fhd-fo__wahl:has(input[aria-invalid="true"]) {
	border-color: var(--fo-fehler);
}

@supports selector(:has(*)) {
	.fhd-fo__wahl:has(input:checked) {
		border-color: var(--fo-espresso);
		background: var(--fo-flaeche);
		box-shadow: inset 0 0 0 1px var(--fo-espresso);
	}

	.fhd-fo__wahl:has(input:focus-visible) {
		outline: 3px solid var(--fo-espresso);
		outline-offset: 3px;
		box-shadow: var(--fo-hof);
	}

	.fhd-fo__wahl > input:focus-visible {
		outline: none;
		box-shadow: none;
	}
}

/* ---------- „Sonstiges“ mit eigenem Text ---------- */

.fhd-fo__sonstiges {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.fhd-fo__sonstiges > label {
	color: var(--fo-tinte);
	font-size: 1rem;
	font-weight: 600;
}

/* ---------- Bewertung: Sterne oder Zahlen ---------- */

/* Die Hülle ist so breit wie die Skala (Sterne) bzw. das Formular (Zahlen); die Enden stehen genau darunter. */
.fhd-fo__bewertung {
	display: inline-grid;
	gap: 6px;
	justify-self: start;
	max-width: 100%;
}

.fhd-fo__bewertung--zahlen {
	display: grid;
	justify-self: stretch;
}

.fhd-fo__skala {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.fhd-fo__skala--zahlen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
	gap: 8px;
}

.fhd-fo__stufe {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 48px;
	min-height: 48px;
	border-radius: var(--fo-r);
	cursor: pointer;
}

/* Der Radioknopf liegt unsichtbar über der ganzen Stufe: Tippen, Klicken und die Pfeiltasten wirken wie gewohnt. */
.fhd-fo__stufe > input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.fhd-fo__stern {
	width: 38px;
	height: 38px;
	pointer-events: none;
}

.fhd-fo__stern-linie {
	fill: var(--fo-leise);
	transition: fill var(--fo-t);
}

.fhd-fo__stern-fuellung {
	fill: var(--fo-leise);
	opacity: 0.14;
	transition: fill var(--fo-t), opacity var(--fo-t);
}

/* Gewählt: diese Stufe und alle davor in Amber (eine Bewertung ist Bedienung, Amber gehört dem Klickbaren). */
.fhd-fo__skala--sterne .fhd-fo__stufe:is(:has(input:checked), :has(~ .fhd-fo__stufe input:checked)) .fhd-fo__stern-fuellung {
	fill: var(--fo-amber);
	opacity: 1;
}

.fhd-fo__skala--sterne .fhd-fo__stufe:is(:has(input:checked), :has(~ .fhd-fo__stufe input:checked)) .fhd-fo__stern-linie {
	fill: var(--fo-amber-tief);
}

/* Mit der Maus: bis zur Stufe unter dem Zeiger vorschauen */
@media (hover: hover) {
	.fhd-fo__skala--sterne .fhd-fo__stufe:is(:hover, :has(~ .fhd-fo__stufe:hover)) .fhd-fo__stern-fuellung {
		fill: var(--fo-amber);
		opacity: 0.6;
	}

	.fhd-fo__skala--sterne .fhd-fo__stufe:is(:hover, :has(~ .fhd-fo__stufe:hover)) .fhd-fo__stern-linie {
		fill: var(--fo-amber-tief);
	}
}

.fhd-fo__skala--zahlen .fhd-fo__stufe {
	border: 1px solid var(--fo-rand);
	background: var(--fo-papier);
	color: var(--fo-tinte);
	font-size: 1.0625rem;
	font-weight: 600;
	transition: border-color var(--fo-t), background-color var(--fo-t), color var(--fo-t);
}

.fhd-fo__stufe-zahl {
	pointer-events: none;
}

.fhd-fo__skala--zahlen .fhd-fo__stufe:has(input:checked) {
	border-color: var(--fo-espresso);
	background: var(--fo-espresso);
	color: var(--fo-papier);
}

@media (hover: hover) {
	.fhd-fo__skala--zahlen .fhd-fo__stufe:hover {
		border-color: var(--fo-espresso);
	}
}

.fhd-fo__stufe:has(input:focus-visible) {
	outline: 3px solid var(--fo-espresso);
	outline-offset: 2px;
	box-shadow: var(--fo-hof);
}

.fhd-fo__gruppe[aria-invalid="true"] .fhd-fo__skala--zahlen .fhd-fo__stufe {
	border-color: var(--fo-fehler);
}

.fhd-fo__skala-enden {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	color: var(--fo-leise);
	font-size: 1rem;
	line-height: 1.35;
}

/* ---------- Schritte (Block „Neuer Schritt“): ohne JavaScript eine Zwischenüberschrift mit Linie ---------- */

.fhd-fo__umbruch {
	padding-top: 24px;
	border-top: 1px solid var(--fo-linie);
}

.fhd-fo__umbruch:empty {
	padding-top: 0;
}

.fhd-fo__schritt-titel {
	margin: 0;
	color: var(--fo-espresso);
	font-family: var(--wp--preset--font-family--titel, inherit);
	font-size: var(--wp--preset--font-size--h-4, 1.25rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

/* Mit JavaScript: Jeder Schritt reiht seine Felder in das Raster des Formulars ein (halbe Felder nebeneinander). */
.fhd-fo__schritt {
	display: contents;
}

.fhd-fo__schritt > .fhd-fo__umbruch {
	padding-top: 0;
	border-top: 0;
}

.fhd-fo__schritt > .fhd-fo__umbruch:empty {
	display: none;
}

/* „Schritt 2 von 3 · Eltern“ mit einem schmalen Balken in Logo-Schwarz (kein Amber: er ist nicht klickbar). */
.fhd-fo__fortschritt {
	display: grid;
	gap: 8px;
	scroll-margin-top: calc(var(--wp--custom--kopfhoehe, 84px) + 24px);
}

.fhd-fo__fortschritt:focus {
	outline: none;
}

.fhd-fo__fortschritt-text {
	margin: 0;
	color: var(--fo-leise);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	font-variant-numeric: tabular-nums;
}

.fhd-fo__fortschritt-balken {
	display: block;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--fo-flaeche-2);
}

.fhd-fo__fortschritt-balken > span {
	display: block;
	height: 100%;
	background: var(--fo-espresso);
	transition: width 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Hinweis, Knopf ---------- */

.fhd-fo__datenschutz {
	max-width: 36em;
	color: var(--fo-leise);
	font-size: 1rem;
	line-height: 1.5;
}

.fhd-fo__senden {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.fhd-fo .fhd-fo__knopf {
	width: 100%;
	min-height: 52px;
	cursor: pointer;
}

@container (min-width: 31rem) {
	.fhd-fo .fhd-fo__knopf,
	.fhd-fo .fhd-fo__weiter {
		width: auto;
		min-width: 16rem;
	}
}

/* Schritte: „Weiter“ wie der Knopf zum Absenden, „Zurück“ als Zweitknopf (Linie in Logo-Schwarz, flach, DESIGN.md).
   Am Handy steht der Hauptknopf oben über die ganze Breite, „Zurück“ darunter. */
.fhd-fo .fhd-fo__weiter {
	width: 100%;
	min-height: 52px;
	cursor: pointer;
}

.fhd-fo .fhd-fo__zurueck {
	order: 2;
	width: 100%;
	min-height: 52px;
	padding: 0 22px;
	border: 1.5px solid var(--fo-espresso);
	border-radius: var(--fo-r-gross);
	background: transparent;
	color: var(--fo-espresso);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--fo-t);
}

.fhd-fo .fhd-fo__zurueck:hover {
	background: color-mix(in srgb, var(--fo-espresso) 6%, transparent);
}

.fhd-fo .fhd-fo__zurueck:focus-visible {
	outline: 3px solid var(--fo-espresso);
	outline-offset: 3px;
	box-shadow: var(--fo-hof);
}

@container (min-width: 31rem) {
	.fhd-fo .fhd-fo__zurueck {
		order: 0;
		width: auto;
	}
}

.fhd-fo .fhd-fo__knopf[disabled] {
	border-color: var(--fo-linie);
	background: var(--fo-flaeche-2);
	color: var(--fo-leise);
	cursor: progress;
	transform: none;
}

/* ---------- Rückmeldungen ---------- */

.fhd-fo__meldung {
	padding: 20px 22px;
	border: 1px solid var(--fo-linie);
	border-radius: var(--fo-r-gross);
	background: var(--fo-flaeche);
	color: var(--fo-tinte);
	scroll-margin-top: calc(var(--wp--custom--kopfhoehe, 84px) + 24px);
}

.fhd-fo__meldung > * {
	margin: 0;
}

.fhd-fo__meldung > * + * {
	margin-top: 8px;
}

.fhd-fo__meldung--fehler {
	border-color: var(--fo-fehler);
	background: color-mix(in srgb, var(--fo-fehler) 6%, var(--fo-papier));
}

.fhd-fo__meldung--ok {
	padding: 22px 0 4px;
	border: 0;
	border-top: 2px solid var(--fo-espresso);
	border-radius: 0;
	background: none;
}

.fhd-fo__meldung:focus {
	outline: 3px solid var(--fo-espresso);
	outline-offset: 3px;
	box-shadow: none;
}

.fhd-fo__meldung-titel {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--fo-espresso);
	font-family: var(--wp--preset--font-family--titel, inherit);
	font-size: var(--wp--preset--font-size--h-3, 1.375rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.fhd-fo__meldung--zu .fhd-fo__meldung-titel {
	font-family: inherit;
	font-size: 1.0625rem;
	letter-spacing: 0;
}

.fhd-fo__meldung--fehler .fhd-fo__meldung-titel .fhd-fo__icon {
	color: var(--fo-fehler);
}

.fhd-fo__fehlerliste {
	display: grid;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.fhd-fo__fehlerliste a {
	display: inline-block;
	padding-block: 9px;
	color: var(--fo-tinte);
}

/* Text nur für Vorleseprogramme (wie im Theme, hier noch einmal, damit es ohne das Theme gilt). */
.fhd-fo .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Fangfeld für Bots: für Menschen unsichtbar und nicht erreichbar. */
.fhd-fo__falle {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Knopf oder Link zum Formular ---------- */

.fhd-fo-verweis {
	margin-block: 16px;
}

.fhd-fo-verweis--knopf .wp-element-button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	text-decoration: none;
}

.fhd-fo-verweis__zustand {
	color: var(--wp--preset--color--tinte-leise, #54574e);
	font-size: 1rem;
}

.fhd-fo-hinweis {
	padding: 12px 14px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
}

/* ---------- Block „Formulare: Übersicht“ (inc/uebersicht.php) ----------
   Die Kacheln selbst gestaltet das Theme (.fhd-kacheln, .fhd-kachel, Muster „Kacheln“). Hier nur: die Liste ohne Punkte,
   ein schlichtes Raster für den Fall ohne das Theme (:where, damit das Theme gewinnt), der Knopf in der Kachel und die
   gedämpften Kacheln „bald“ und „geschlossen“. */

/* Die Hülle trägt die Breite (breit) und hält Suche und Liste zusammen; die Liste steht in ihr, so greift die Lesebreite
   des Themes für Listen im Inhalt (40em) nicht. */
.fhd-fo-uebersicht-block {
	display: grid;
	gap: 20px;
}

.fhd-fo-uebersicht-block > * {
	margin: 0;
}

ul.fhd-fo-uebersicht {
	max-width: none;
	padding: 0;
	list-style: none;
}

/* Suche über den Kacheln: Feld wie in den Formularen, Knöpfe je Bereich wie die Filter der Termine (gewählt: dunkel) */
.fhd-fo-suche {
	display: grid;
	gap: 10px;
	max-width: 36rem;
}

.fhd-fo-suche[hidden] {
	display: none;
}

.fhd-fo-suche > * {
	margin: 0;
}

.fhd-fo-suche__label {
	color: var(--wp--preset--color--tinte, #22251d);
	font-size: 1.0625rem;
	font-weight: 600;
}

.fhd-fo-suche__feld {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--tinte, #22251d) 58%, var(--wp--preset--color--papier, #fcfcfb));
	border-radius: var(--wp--custom--radius--klein, 6px);
	background: var(--wp--preset--color--papier, #fcfcfb);
	color: var(--wp--preset--color--tinte, #22251d);
	font: inherit;
	font-size: max(1.0625rem, 16px);
}

.fhd-fo-suche__feld:focus {
	border-color: var(--wp--preset--color--espresso, #1b1e15);
	outline: 3px solid var(--wp--preset--color--espresso, #1b1e15);
	outline-offset: 3px;
	box-shadow: 0 0 0 7px color-mix(in srgb, var(--wp--preset--color--amber, #f49e02) 45%, transparent);
}

.fhd-fo-suche__bereiche {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fhd-fo-suche__bereich {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--linie, #d9d9d5);
	border-radius: var(--wp--custom--radius--klein, 6px);
	background: var(--wp--preset--color--papier, #fcfcfb);
	color: var(--wp--preset--color--tinte, #22251d);
	font: inherit;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
}

.fhd-fo-suche__bereich:hover {
	border-color: var(--wp--preset--color--espresso, #1b1e15);
}

.fhd-fo-suche__bereich[aria-pressed="true"] {
	border-color: var(--wp--preset--color--espresso, #1b1e15);
	background: var(--wp--preset--color--espresso, #1b1e15);
	color: var(--wp--preset--color--papier, #fcfcfb);
}

.fhd-fo-suche__bereich:focus-visible {
	outline: 3px solid var(--wp--preset--color--espresso, #1b1e15);
	outline-offset: 3px;
}

.fhd-fo-suche__zahl {
	min-height: 1.4em;
	color: var(--wp--preset--color--tinte-leise, #54574e);
	font-size: 1rem;
}

.fhd-fo-uebersicht .fhd-fo-uebersicht__karte[hidden] {
	display: none;
}

:where(.fhd-fo-uebersicht) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

:where(.fhd-fo-uebersicht__karte) {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 18px 18px 20px;
	border: 1px solid var(--wp--preset--color--linie, #d9d9d5);
	border-radius: var(--wp--custom--radius--gross, 10px);
	background: var(--wp--preset--color--papier, #fcfcfb);
}

.fhd-fo-uebersicht__karte > * {
	margin-block: 0;
}

/* Unten in der Kachel: Anmeldeschluss und Plätze, darunter der Knopf — in allen Kacheln einer Reihe gleich hoch */
/* Zwei Klassen: Das Theme setzt den Außenabstand aller Kinder einer Kachel auf 0 (.fhd-kachel > *). */
.fhd-fo-uebersicht .fhd-fo-uebersicht__fuss {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
}

.fhd-fo-uebersicht .fhd-fo-uebersicht__fuss:empty {
	display: none;
}

.fhd-fo-uebersicht .fhd-fo-uebersicht__fuss .fhd-kachel__meta {
	margin: 0;
	padding: 0;
}

/* Sieht aus wie ein Knopf; geklickt wird die ganze Kachel (Link im Titel). Amber, weil die Kachel klickbar ist. */
.fhd-fo-uebersicht__knopf {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--amber-tief, #8a5200) 55%, transparent);
	border-radius: var(--wp--custom--radius--gross, 10px);
	background: var(--wp--preset--color--amber, #f49e02);
	color: var(--wp--preset--color--espresso, #1b1e15);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	transition: background-color var(--wp--custom--uebergang, 160ms ease);
}

.fhd-fo-uebersicht__karte:hover .fhd-fo-uebersicht__knopf {
	background: var(--wp--preset--color--amber-hover, #e08900);
}

/* Bald offen oder geschlossen: kein Link, leise Fläche statt Papier, kein Schatten beim Zeigen */
.fhd-fo-uebersicht .fhd-fo-uebersicht__karte:is(.is-bald, .is-zu) {
	background: var(--wp--preset--color--flaeche, #f4f4f2);
	box-shadow: none;
}

.fhd-fo-uebersicht .fhd-fo-uebersicht__karte.is-zu :is(.fhd-kachel__titel, .fhd-kachel__meta) {
	color: var(--wp--preset--color--tinte-leise, #54574e);
}

.fhd-fo-uebersicht__leer {
	color: var(--wp--preset--color--tinte-leise, #54574e);
}

@media (prefers-reduced-motion: reduce) {
	.fhd-fo__eingabe,
	.fhd-fo__wahl,
	.fhd-fo__stern-linie,
	.fhd-fo__stern-fuellung,
	.fhd-fo__skala--zahlen .fhd-fo__stufe,
	.fhd-fo__fortschritt-balken > span {
		transition: none;
	}
}

@media (forced-colors: active) {
	.fhd-fo__skala--sterne .fhd-fo__stufe:is(:has(input:checked), :has(~ .fhd-fo__stufe input:checked)) .fhd-fo__stern-fuellung {
		fill: Highlight;
	}

	.fhd-fo__skala--zahlen .fhd-fo__stufe:has(input:checked) {
		outline: 3px solid Highlight;
	}
}
