/*
 * Redaktionelle Inhalte (Seiten, Beitraege). Laedt auch der Block-Editor (add_editor_style),
 * damit die Partei beim Bearbeiten sieht, wie es spaeter aussieht.
 * Vorlage: frontend/app/globals.css des Django/Next-Nachbaus (Klasse .inhalt-prosa).
 */

:root {
	--vf-blau: #2ea3f2;
	--vf-blau-dunkel: #1c6fb0;
	--vf-text: #465069;
	--vf-ueberschrift: #2a2a2a;
	--vf-gruen: #1f8416;
	--vf-gruen-tief: #17640f;
	--vf-hellgrau: #f4f6f9;
	--vf-linie: #e2e6ec;
	--vf-gedaempft: #6b7280;
	--vf-radius: 0.375rem;
}

.inhalt-prosa,
.editor-styles-wrapper {
	overflow-wrap: break-word;
}

.inhalt-prosa h1,
.inhalt-prosa h2 {
	margin: 2rem 0 0.85rem;
}

.inhalt-prosa h3,
.inhalt-prosa h4 {
	margin: 1.5rem 0 0.5rem;
}

.inhalt-prosa > :first-child {
	margin-top: 0;
}

.inhalt-prosa p {
	margin: 0.75rem 0;
}

.inhalt-prosa a {
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.inhalt-prosa ul,
.inhalt-prosa ol {
	margin: 0.75rem 0;
	padding-left: 1.5rem;
}

.inhalt-prosa li {
	margin: 0.3rem 0;
}

.inhalt-prosa img {
	max-width: 100%;
	height: auto;
	border-radius: var(--vf-radius);
}

.inhalt-prosa figure {
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
}

/* --- Bilder: immer das ganze Bild zeigen, nie zuschneiden (Felix) --------------------- */
.wp-block-image.is-style-ganz img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Galerien: einheitliche Vorschaukacheln, 4 nebeneinander (Handy 2). Jede Kachel 4:3, das Foto
   steht ganz darin - Hochformat mit Rand links/rechts, Querformat oben/unten (Felix 10.10.2026).
   Klick oeffnet die Grossansicht mit Zoom (assets/js/bildansicht.js). */
.wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem !important;
	align-items: start;
}

@media (min-width: 40rem) {
	.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	margin: 0 !important;
	display: block;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: contain !important;
	background: var(--vf-hellgrau);
	border: 1px solid var(--vf-linie);
	border-radius: var(--vf-radius);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: none;
	color: var(--vf-text);
	position: static;
	padding: 0.35rem 0 0;
	font-size: 0.85rem;
	text-shadow: none;
	max-height: none;
}

/* --- Spalten (Text links, Grafik rechts wie im Divi-Original) ------------------------- */
.inhalt-prosa .wp-block-columns {
	gap: 0.5rem 2.5rem;
	margin: 1.5rem 0;
}

.inhalt-prosa .wp-block-column > :first-child {
	margin-top: 0;
}

.inhalt-prosa .wp-block-column > :last-child {
	margin-bottom: 0;
}

/* --- Buttons ------------------------------------------------------------------------- */
.wp-block-button__link {
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.wp-block-button.is-style-umrandet .wp-block-button__link {
	background: transparent;
	color: var(--vf-ueberschrift);
	border: 1px solid var(--vf-ueberschrift);
}

.wp-block-button.is-style-umrandet .wp-block-button__link:hover,
.wp-block-button.is-style-umrandet .wp-block-button__link:focus-visible {
	background: var(--vf-ueberschrift);
	color: #fff;
}

/* --- Tabellen: breite Tabellen scrollen in sich selbst ------------------------------- */
.inhalt-prosa .wp-block-table {
	overflow-x: auto;
}

.inhalt-prosa table {
	border-collapse: collapse;
	font-size: 0.95rem;
	width: 100%;
}

.inhalt-prosa th,
.inhalt-prosa td {
	border: 1px solid var(--vf-linie);
	padding: 0.5rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

/* Woerter in Tabellenzellen nie mitten im Wort umbrechen und nicht trennen (WordPress setzt
   fuer Tabellen mit fester Spaltenbreite "word-break: break-word"): jede Spalte wird mindestens
   so breit wie ihr laengstes Wort. */
.inhalt-prosa .wp-block-table table td,
.inhalt-prosa .wp-block-table table th {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
	-webkit-hyphens: manual;
}

/* Links in Tabellen: "anywhere" (fuer lange Adressen im Fliesstext) wuerde die Spalte auf
   einen Buchstaben schrumpfen lassen; break-word bricht nur, wenn ein Wort gar nicht passt. */
.inhalt-prosa .wp-block-table table a {
	overflow-wrap: break-word;
}

/* Spaltenbreite nach Inhalt statt gleich breiter Spalten (sonst bricht "Wahlprogramm" in
   einer schmalen Spalte um, waehrend daneben Platz frei ist). */
.inhalt-prosa .wp-block-table table.has-fixed-layout {
	table-layout: auto;
}

/* Handy: jede Spalte mindestens 7rem breit; breite Vergleichstabellen scrollen dann innerhalb
   der Tabelle seitlich (overflow-x oben), statt Woerter in schmale Spalten zu quetschen. */
@media (max-width: 40rem) {
	.inhalt-prosa th,
	.inhalt-prosa td {
		padding: 0.4rem 0.5rem;
		min-width: 7rem;
	}
}

.inhalt-prosa thead th,
.inhalt-prosa thead td {
	font-weight: 700;
	color: var(--vf-ueberschrift);
	border-bottom: 2px solid var(--vf-text);
}

/* --- Fragen und Antworten (Details-Block) --------------------------------------------- */
.wp-block-details {
	border-bottom: 1px solid var(--vf-linie);
	padding: 0.4rem 0;
	margin: 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--vf-ueberschrift);
	padding: 0.6rem 0;
	list-style-position: outside;
}

.wp-block-details summary:hover {
	color: var(--vf-blau-dunkel);
}

.wp-block-details[open] > summary {
	margin-bottom: 0.25rem;
}

/* --- Personen (Vorstand, Beirat, Kandidaten) ----------------------------------------- */
.person {
	text-align: center;
	/* schmale Spalten (Handy: zwei Personen nebeneinander): lange Woerter mit Bindestrich trennen */
	hyphens: auto;
	-webkit-hyphens: auto;
}

.person .wp-block-image img {
	aspect-ratio: 4 / 5;
	width: 100%;
	height: auto;
	object-fit: contain;
	background: var(--vf-hellgrau);
}

/* Person ohne Foto (auch auf der alten Seite ohne): neutrale Silhouette in gleicher Groesse,
   damit Namen in Kandidatenlisten auf einer Hoehe stehen. */
.personen .person:not(:has(.wp-block-image))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--vf-radius);
	background: var(--vf-hellgrau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8c4d0' stroke-width='1.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E") center / 45% no-repeat;
}

.person .person-name {
	margin: 0.75rem 0 0.1rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--vf-ueberschrift);
}

.person .person-funktion {
	margin: 0;
	color: var(--vf-gedaempft);
}

/* Fruehere Bundesvorstaende: kleinere Kacheln (bis zu 10 Personen je Vorstand) */
.personen-frueher .person .person-name {
	margin-top: 0.5rem;
	font-size: 1rem;
}

.personen-frueher .person .person-funktion {
	font-size: 0.9rem;
}

.vorstand-wahl {
	margin-top: 0;
	color: var(--vf-gedaempft);
}

.person .person-zitat {
	margin-top: 0.75rem;
	font-style: italic;
	text-align: left;
}

/* Platzhalter, die die Partei noch fuellen muss: gut sichtbar markiert. */
.platzhalter,
mark.platzhalter {
	background: #fff4c2;
	color: #6b4e00;
	padding: 0 0.25rem;
	border-radius: 0.2rem;
}

/* --- Eintraege in Listen (Termine, Medienspiegel, Pressemitteilungen) ----------------- */
.eintrag {
	border-bottom: 1px solid var(--vf-linie);
	padding: 1rem 0;
}

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

.eintrag > :last-child {
	margin-bottom: 0;
}

.eintrag .eintrag-datum {
	font-size: 0.875rem;
	color: var(--vf-gedaempft);
	margin: 0 0 0.2rem;
}

.eintrag h3,
.eintrag h4 {
	margin-top: 0;
}

/* Bildquellen (z. B. unter der Zitate-Collage): klein, lange Adressen umbrechen */
.bildquellen-titel,
.bildquellen {
	font-size: 0.85rem;
}

.bildquellen-titel {
	margin-top: 3rem;
}

.bildquellen a {
	overflow-wrap: anywhere;
}

/* --- Karten im Inhalt: Videos (2 nebeneinander), Medienbeitraege (3), Buecher (3) -------
   Rahmen um Bild/Video und Text, damit klar ist, welche Zeile zu welchem Video gehoert.
   Die Karten selbst sind nicht klickbar (nur die Links darin), daher kein Hover-Effekt. */
.video-karte,
.medien-karte,
.buch {
	border: 1px solid var(--vf-linie);
	border-radius: var(--vf-radius);
	background: #fff;
	overflow: hidden;
	padding-bottom: 1rem;
}

/* Text in der Karte mit Innenabstand; Bild/Video oben buendig am Rand */
.video-karte > p,
.medien-karte > p,
.buch > p {
	padding-inline: 1rem;
	font-size: 0.95rem;
}

.video-karte > :first-child,
.medien-karte > :first-child,
.buch > :first-child {
	margin-top: 0;
	margin-bottom: 0.25rem;
}

.video-karte .yt-fassade,
.medien-karte .yt-fassade {
	border-radius: 0;
}

.video-karte .wp-block-embed {
	margin: 0;
}

.video-karte .wp-element-caption {
	margin: 0.6rem 0 0;
	padding-inline: 1rem;
	font-size: 0.9rem;
	color: var(--vf-gedaempft);
}

/* Video im Fliesstext (nicht im Raster): Kasten in Textbreite mit Abstand zum Text */
.inhalt-prosa > .video-karte,
.wp-block-column > .video-karte {
	margin-block: 1.5rem;
}

.medien-karte .yt-fassade-knopf svg {
	width: 3rem;
	height: 3rem;
}

.medien-karte .yt-fassade-hinweis {
	font-size: 0.72rem;
}

.medien-karte .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.medien-karte .eintrag-datum {
	font-size: 0.85rem;
	color: var(--vf-gedaempft);
	margin-bottom: 0;
}

.medien-karte .medien-titel,
.buch .buch-titel {
	margin-top: 0.2rem;
	line-height: 1.4;
}

.medien-karte .medien-titel a,
.buch .buch-titel a,
.video-karte a {
	text-decoration-thickness: 1px;
}

/* Grauer Rahmen in fester Groesse, Cover darin zentriert (unabhaengig vom Bildformat) */
.buch .wp-block-image {
	aspect-ratio: 2 / 3;
	background: var(--vf-hellgrau);
	padding: 0.75rem;
}

.buch .wp-block-image a {
	display: flex;
	justify-content: center;
	height: 100%;
}

.buch .wp-block-image img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}

/* Handy (eine Karte je Zeile): Cover nicht bildschirmhoch */
@media (max-width: 40rem) {
	.buch .wp-block-image {
		aspect-ratio: auto;
		height: 16rem;
	}
}

.buch .buch-autor {
	margin-top: 0.2rem;
	color: var(--vf-gedaempft);
	font-size: 0.9rem;
}

.buecher {
	margin-bottom: 1.5rem;
}

/* --- YouTube: Klick zum Laden (mu-plugin vf-grundeinstellungen) ----------------------- */
.yt-fassade {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #111 center / cover no-repeat;
	border-radius: var(--vf-radius);
	overflow: hidden;
	color: #fff;
}

.yt-fassade-knopf {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 1rem;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s;
}

.yt-fassade-knopf:hover,
.yt-fassade-knopf:focus-visible {
	background: rgba(0, 0, 0, 0.6);
}

.yt-fassade-knopf svg {
	width: 4rem;
	height: 4rem;
}

.yt-fassade-titel {
	font-weight: 600;
	font-size: 1.05rem;
}

.yt-fassade-hinweis {
	font-size: 0.8rem;
	opacity: 0.85;
	max-width: 30rem;
}

.yt-fassade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
	display: none;
}

/* --- Quellen am Seitenende ----------------------------------------------------------- */
.inhalt-prosa .quellen {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--vf-linie);
	font-size: 0.875rem;
	color: var(--vf-gedaempft);
}

/* --- Formulare (Mitgliedsantrag, Spenden, Umfrage) ------------------------------------- */
.wpcf7-form label,
.paypal-spende label {
	display: block;
	font-weight: 600;
	color: var(--vf-ueberschrift);
	font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea,
.paypal-spende input[type="number"] {
	width: 100%;
	margin-top: 0.3rem;
	padding: 0.6rem 0.75rem;
	font: inherit;
	font-weight: 400;
	color: var(--vf-text);
	background: #fff;
	border: 1px solid #c9d0da;
	border-radius: var(--vf-radius);
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.paypal-spende input:focus {
	outline: 2px solid var(--vf-blau);
	outline-offset: 1px;
	border-color: var(--vf-blau);
}

.formular-raster {
	display: grid;
	gap: 0 1.5rem;
}

@media (min-width: 40rem) {
	.formular-raster {
		grid-template-columns: 1fr 1fr;
	}
}

.wpcf7-form small,
.formular-hinweis {
	font-size: 0.85rem;
	color: var(--vf-gedaempft);
	font-weight: 400;
}

/* Rechtstexte im Mitgliedsantrag (woertlich wie auf der alten Seite) gut lesbar */
.wpcf7-form div.formular-hinweis {
	margin: 0.5rem 0 1rem;
}

.wpcf7-form div.formular-hinweis p {
	font-size: 0.95rem;
	color: var(--vf-text);
}

.wpcf7-form hr {
	margin: 1.5rem 0;
	border: 0;
	border-top: 1px solid var(--vf-linie);
}

.wpcf7-acceptance label {
	display: inline;
	font-weight: 400;
	color: var(--vf-text);
}

.formular-honig {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wpcf7-form .wpcf7-submit,
.paypal-spende button,
.umfrage-formular button {
	padding: 0.75rem 1.6rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--vf-gruen);
	border: 0;
	border-radius: 0.25rem;
	cursor: pointer;
	transition: background-color 0.15s;
}

.wpcf7-form .wpcf7-submit:hover,
.paypal-spende button:hover,
.umfrage-formular button:hover {
	background: var(--vf-gruen-tief);
}

.wpcf7-form .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.paypal-spende {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}

.paypal-spende label {
	flex-basis: 100%;
	margin-bottom: -0.5rem;
}

.paypal-spende input[type="number"] {
	width: 9rem;
	margin: 0;
}

/* Umfrage */
.umfrage-formular fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.umfrage-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0;
	cursor: pointer;
}

.umfrage-option input {
	width: 1.15rem;
	height: 1.15rem;
	cursor: pointer;
}

.umfrage-knoepfe {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.umfrage-ergebnis {
	list-style: none;
	padding: 0 !important;
}

.umfrage-ergebnis li {
	display: grid;
	grid-template-columns: 8rem 1fr 6rem;
	align-items: center;
	gap: 0.75rem;
	margin: 0.4rem 0;
}

.umfrage-balken {
	height: 0.9rem;
	background: var(--vf-hellgrau);
	border-radius: 0.2rem;
	overflow: hidden;
}

.umfrage-balken span {
	display: block;
	height: 100%;
	background: var(--vf-blau);
}

.umfrage-zahl,
.umfrage-gesamt {
	font-size: 0.9rem;
	color: var(--vf-gedaempft);
}

/* Zitate ohne Browser-Einzug (der gruene Strich links reicht als Kennzeichen) */
.wp-block-quote {
	margin-left: 0;
	margin-right: 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-style: normal;
	color: var(--vf-gedaempft);
}

/* Haken und Auswahlknoepfe in Formularen: Zeigefinger wie bei allen Bedienelementen */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"],
.wpcf7-list-item label {
	cursor: pointer;
}

/* --- Grossansicht der Fotos (assets/js/bildansicht.js) ---------------------------------- */
img.vergroesserbar {
	cursor: zoom-in;
}

img.vergroesserbar:focus-visible {
	outline: 3px solid var(--vf-blau);
	outline-offset: 2px;
}

html.bildansicht-offen {
	overflow: hidden;
}

.bildansicht {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(10, 14, 20, 0.92);
	color: #fff;
}

.bildansicht[hidden] {
	display: none;
}

.bildansicht-flaeche {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
	cursor: pointer; /* Klick daneben schliesst */
}

.bildansicht-buehne {
	transform-origin: 50% 50%;
	line-height: 0;
	cursor: zoom-in;
}

.ist-gezoomt .bildansicht-buehne {
	cursor: grab;
}

/* 10 % Rand rundherum (Felix), auf dem Handy etwas mehr Breite */
.bildansicht-buehne img {
	display: block;
	max-width: 80vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	user-select: none;
	-webkit-user-drag: none;
}

@media (max-width: 40rem) {
	.bildansicht-buehne img {
		max-width: 92vw;
		max-height: 72vh;
	}
}

.bildansicht-text {
	position: absolute;
	left: 50%;
	bottom: 4.25rem;
	transform: translateX(-50%);
	width: min(44rem, 90vw);
	margin: 0;
	text-align: center;
	font-size: 0.85rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
	pointer-events: none;
}

.bildansicht button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background-color 0.15s;
}

.bildansicht button:hover,
.bildansicht button:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

.bildansicht button[hidden] {
	display: none;
}

.bildansicht button svg {
	width: 1.4rem;
	height: 1.4rem;
}

.bildansicht-zu {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.bildansicht-zurueck,
.bildansicht-vor {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.bildansicht-zurueck {
	left: 1rem;
}

.bildansicht-vor {
	right: 1rem;
}

.bildansicht-werkzeug {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
}

.bildansicht-reset {
	padding: 0 1rem;
}

/* --- Seite "Unsere Wahlteilnahmen": Kennzahlen, Balkengrafik, Tabelle ------------------ */
.wahl-kennzahlen {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.5rem 0 2rem;
}

@media (min-width: 40rem) {
	.wahl-kennzahlen {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.wahl-kennzahl {
	border: 1px solid var(--vf-linie);
	border-radius: var(--vf-radius);
	padding: 0.9rem 1rem;
	background: #fff;
}

.wahl-kennzahl strong {
	display: block;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.1;
	color: var(--vf-blau-dunkel);
}

.wahl-kennzahl span {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--vf-gedaempft);
}

.wahl-grafik {
	border: 1px solid var(--vf-linie);
	border-radius: var(--vf-radius);
	padding: 1rem 1rem 0.75rem;
}

.wahl-legende {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	color: var(--vf-gedaempft);
}

.wahl-legende span::before {
	content: "";
	display: inline-block;
	width: 0.8rem;
	height: 0.8rem;
	margin-right: 0.4rem;
	border-radius: 2px;
	vertical-align: -0.1rem;
}

.wahl-legende-europa::before,
.wahl-europa .wahl-balken i {
	background: #2ea3f2;
}

.wahl-legende-bund::before,
.wahl-bund .wahl-balken i {
	background: #1c6fb0;
}

.wahl-legende-land::before,
.wahl-land .wahl-balken i {
	background: #1f8416;
}

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

/* Handy: Name ueber dem Balken; ab Tablet eine Zeile: Jahr | Wahl | Balken | Wert */
.wahl-zeile {
	display: grid;
	grid-template-columns: 3rem 1fr 3.5rem;
	grid-template-areas: "jahr name name" "jahr balken wert";
	align-items: center;
	column-gap: 0.75rem;
	padding: 0.3rem 0;
	font-size: 0.9rem;
}

.wahl-neues-jahr {
	border-top: 1px solid var(--vf-linie);
	margin-top: 0.3rem;
	padding-top: 0.6rem;
}

.wahl-zeile:first-child {
	border-top: 0;
	margin-top: 0;
}

.wahl-jahr {
	grid-area: jahr;
	align-self: start;
	font-weight: 700;
	color: var(--vf-ueberschrift);
}

.wahl-name {
	grid-area: name;
}

.wahl-balken {
	grid-area: balken;
	height: 0.8rem;
	background: var(--vf-hellgrau);
	border-radius: 2px;
	overflow: hidden;
}

.wahl-balken i {
	display: block;
	height: 100%;
	border-radius: 2px;
}

.wahl-wert {
	grid-area: wert;
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

@media (min-width: 48rem) {
	.wahl-zeile {
		grid-template-columns: 3rem minmax(14rem, 1.1fr) 1fr 3.5rem;
		grid-template-areas: "jahr name balken wert";
	}

	.wahl-jahr {
		align-self: center;
	}
}

.wahl-tabelle td:first-child,
.wahl-tabelle th:first-child {
	width: 4rem;
}

.wahl-tabelle td:nth-child(3),
.wahl-tabelle th:nth-child(3) {
	width: 6rem;
	text-align: right;
}

/* breit genug fuer "Wahlprogramm" in einer Zeile (vorher brach das m um) */
.wahl-tabelle td:last-child,
.wahl-tabelle th:last-child {
	width: 10rem;
	white-space: nowrap;
}

/* Handy: vier Spalten sind zu schmal (Woerter brachen mitten im Wort um). Jede Zeile wird ein
   kleiner Block: Jahr | Wahl | Ergebnis, darunter der Verweis. */
@media (max-width: 40rem) {
	.inhalt-prosa .wahl-tabelle table,
	.inhalt-prosa .wahl-tabelle tbody {
		display: block;
	}

	.inhalt-prosa .wahl-tabelle thead {
		display: none;
	}

	.inhalt-prosa .wahl-tabelle tr {
		display: grid;
		grid-template-columns: 3rem 1fr auto;
		column-gap: 0.75rem;
		row-gap: 0.15rem;
		padding: 0.6rem 0;
		border-bottom: 1px solid var(--vf-linie);
	}

	.inhalt-prosa .wahl-tabelle td {
		border: 0;
		padding: 0;
		width: auto;
		min-width: 0;
		word-break: normal;
		overflow-wrap: normal;
		hyphens: auto;
	}

	.inhalt-prosa .wahl-tabelle td:nth-child(3) {
		grid-column: 3;
		grid-row: 1;
	}

	.inhalt-prosa .wahl-tabelle td:nth-child(4) {
		grid-column: 2 / 4;
	}

	.inhalt-prosa .wahl-tabelle td:nth-child(4):empty {
		display: none;
	}
}

/* Touch-Ziele mindestens 44 px hoch (Abnahme 10.10.2026) */
.wpcf7-form select {
	min-height: 2.75rem;
}

.umfrage-knoepfe a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}
