/*
Theme Name: GeneratePress Child - TriRun
Theme URI: https://trirun.at
Description: Child-Theme für TriRun Triathlon Verein basierend auf GeneratePress
Author: TriRun
Author URI: https://trirun.at
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child-trirun
*/

/* Eigene Styles hier einfügen */

/* =========================================================================
   News-Beiträge (klassische Altbeiträge im Template „Single Post“, GP-Element 29810)
   Nur Darstellung – Inhalte bleiben unverändert. Stand 2026-11-18.
   ========================================================================= */

/* Beitragsinhalt als eigener Block-Kontext: Floats bleiben drin, nichts rutscht daneben. */
.single-post .dynamic-entry-content {
	display: flow-root;
	overflow-wrap: break-word;
}

/* Bilder, Medien, Tabellen nie breiter als die Spalte */
.single-post .dynamic-entry-content img {
	max-width: 100%;
	height: auto;
}
.single-post .dynamic-entry-content .wp-caption {
	max-width: 100%;
}
.single-post .dynamic-entry-content iframe,
.single-post .dynamic-entry-content embed,
.single-post .dynamic-entry-content object,
.single-post .dynamic-entry-content video {
	max-width: 100%;
}
.single-post .dynamic-entry-content iframe[src*="youtube"],
.single-post .dynamic-entry-content iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.single-post .dynamic-entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.single-post .dynamic-entry-content pre {
	max-width: 100%;
	overflow-x: auto;
}

/* Ausrichtung klassischer Bilder */
.single-post .dynamic-entry-content .alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}
.single-post .dynamic-entry-content .alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}
.single-post .dynamic-entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
/* Am Handy kein Umfließen: Bilder volle Breite untereinander */
@media (max-width: 767px) {
	.single-post .dynamic-entry-content .alignleft,
	.single-post .dynamic-entry-content .alignright {
		float: none;
		display: block;
		margin: 0 auto 1em;
	}
}

/* [gallery]: Raster statt Floats (Standard-Galerie-CSS von WP ist abgeschaltet, siehe functions.php) */
.single-post .dynamic-entry-content .gallery {
	--trg-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--trg-cols), minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.5em;
}
.single-post .dynamic-entry-content .gallery > br {
	display: none;
}
.single-post .dynamic-entry-content .gallery-columns-1 { --trg-cols: 1; }
.single-post .dynamic-entry-content .gallery-columns-2 { --trg-cols: 2; }
.single-post .dynamic-entry-content .gallery-columns-4 { --trg-cols: 4; }
.single-post .dynamic-entry-content .gallery-columns-5 { --trg-cols: 5; }
.single-post .dynamic-entry-content .gallery-columns-6,
.single-post .dynamic-entry-content .gallery-columns-7,
.single-post .dynamic-entry-content .gallery-columns-8,
.single-post .dynamic-entry-content .gallery-columns-9 { --trg-cols: 6; }
@media (max-width: 767px) {
	.single-post .dynamic-entry-content .gallery:not(.gallery-columns-1) {
		--trg-cols: 2;
	}
}
.single-post .dynamic-entry-content .gallery-item {
	margin: 0;
	width: auto;
}
.single-post .dynamic-entry-content .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
}
.single-post .dynamic-entry-content .gallery-columns-1 .gallery-icon img {
	aspect-ratio: auto;
}
.single-post .dynamic-entry-content .gallery-caption {
	font-size: 0.875rem;
	margin-top: 0.35em;
}


/* =========================================================================
   Farbregel (Stand 2026-11-19, Runde 10b): EINE Blau-Familie aus dem Logo.
   - brand (#1A60AB) = Primärfarbe für Text-Links, Buttons, Kacheln, Zierlinien; brand-2 = Hover/Aktiv.
   - accent ist in GP → Globale Farben auf var(--brand) abgebildet (Cyan entfällt); Blöcke, die noch
     var(--accent) verwenden, werden dadurch automatisch Logo-Blau.
   - anthrazit (#373535, aus dem Logo) für dunkle Flächen (CTA-Balken, Untermenü).
   - Auf Blau steht immer weiße Schrift bzw. ein weißes Icon (6,35:1).
   Farbwerte nur in GP → Globale Farben ändern, hier nur Variablen verwenden.
   ========================================================================= */

/* Icon-Kacheln (GB-Shape mit blauer Fläche, Klasse gbp--border-radius): weißes Icon */
.gb-shape.gbp--border-radius svg {
	color: var(--base-3);
}

/* Sichtbarer Tastatur-Fokus überall (Logo-Blau, mit Abstand zum Element) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}
/* Auf dunklen Flächen (Untermenü, CTA-Balken über dem Footer = Block 47880) weißer Fokusrahmen */
:is(.gb-sub-menu, .gb-element-c71c59ed) :focus-visible {
	outline-color: var(--base-3);
}

/* Überschriften am Handy: keine automatische Silbentrennung (nur gesetzte weiche Trennstellen &shy;),
   stattdessen fließende Größe, damit übliche lange Wörter in eine Zeile passen (H1 ca. 2,1rem / H2 ca. 1,7rem bei 390 px).
   h1.gb-text übersteuert auch eigene Hero-Größen einzelner Seiten (z. B. Start) – nur unter 768 px, Desktop unverändert.
   overflow-wrap ist nur Notnagel gegen seitlichen Überlauf. */
h1, h2 {
	hyphens: manual;
	-webkit-hyphens: manual;
	overflow-wrap: break-word;
}
@media (max-width: 767px) {
	h1,
	h1.gb-text {
		font-size: clamp(2rem, 0.714rem + 5.71vw, 2.5rem);
		text-wrap: balance;
	}
	h2 {
		font-size: clamp(1.625rem, 0.34rem + 5.71vw, 2rem);
		text-wrap: balance;
	}
}


/* =========================================================================
   Runde 6a (2026-11-18): Footer (GP-Element 825, Klassen trirun-footer__*)
   Mobil zuerst: 390 px einspaltig, Tippflächen ≥ 44 px. Links in Logo-Blau, Text dunkel.
   Überschreibt die Demo-Klasse .gbp-footer (Großbuchstaben, fett, 10rem Abstand oben).
   ========================================================================= */
.gbp-footer.trirun-footer {
	padding: 4rem 24px 1.5rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	font-size: 1rem;
	line-height: 1.6;
}
.trirun-footer > * {
	max-width: var(--gb-container-width);
	margin-left: auto;
	margin-right: auto;
}
.trirun-footer h2.trirun-footer__title {
	margin: 0 0 0.5rem;
	color: var(--contrast);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
	text-wrap: wrap;
}
.trirun-footer p {
	margin: 0;
}

/* Newsletter-Streifen; das Formular kommt später in #trirun-newsletter-slot */
.trirun-footer__newsletter {
	display: grid;
	gap: 1rem;
	margin-bottom: 2.5rem;
	padding: 1.25rem;
	background-color: var(--base-3);
	border: 1px solid var(--base);
	border-left: 4px solid var(--brand);
	border-radius: 4px;
}
.trirun-footer__newsletter h2.trirun-footer__title {
	font-size: 1.25rem;
	letter-spacing: normal;
	text-transform: none;
}
.trirun-newsletter-slot {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 2px dashed var(--brand);
	border-radius: 4px;
}
.trirun-newsletter-slot__platzhalter {
	color: var(--brand);
	font-weight: 700;
}

/* Spalten */
.trirun-footer__spalten {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
.trirun-footer__logo {
	display: block;
	width: 150px;
	height: auto;
	margin-bottom: 0.75rem;
}
.trirun-footer .trirun-footer__adresse a {
	display: inline-block;
	padding: 10px 0;
	color: var(--brand);
	text-decoration: underline;
}
.trirun-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}
.trirun-footer__links li {
	margin: 0;
}
.trirun-footer__links--2spaltig {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1rem;
}
.trirun-footer .trirun-footer__links a,
.trirun-footer .trirun-footer__rechtliches a,
.trirun-footer .trirun-footer__cookie-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	color: var(--brand);
	text-decoration: none;
}
.trirun-footer .trirun-footer__links a:is(:hover, :focus),
.trirun-footer .trirun-footer__rechtliches a:is(:hover, :focus),
.trirun-footer .trirun-footer__cookie-button:is(:hover, :focus) {
	color: var(--brand-2);
	text-decoration: underline;
}
.trirun-footer .trirun-footer__social-link .gb-shape {
	display: inline-flex;
}
.trirun-footer .trirun-footer__social-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Fußzeile: Copyright, Impressum, Cookie-Einstellungen.
   Das Cookie-Plugin färbt alle .cli_settings_button per JS inline ein → hier mit !important zurücksetzen. */
.trirun-footer__unten {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--base);
	font-size: 0.875rem;
}
.trirun-footer__copy {
	color: var(--contrast-2);
	padding: 0.75rem 0 0.25rem;
}
.trirun-footer__rechtliches {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.trirun-footer__rechtliches li {
	margin: 0;
}
.trirun-footer .trirun-footer__cookie-button {
	padding: 0 !important;
	margin: 0 !important;
	border: 0;
	background: transparent !important;
	color: var(--brand) !important;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

@media (min-width: 768px) {
	.gbp-footer.trirun-footer {
		padding: 5rem 32px 1.5rem;
	}
	.trirun-footer__newsletter {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 2rem;
		padding: 1.5rem 2rem;
	}
	.trirun-footer__spalten {
		grid-template-columns: 1fr 1fr;
	}
	.trirun-footer__unten {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	.trirun-footer__copy {
		padding: 0;
	}
}
@media (min-width: 1025px) {
	.trirun-footer__spalten {
		grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
	}
}


/* =========================================================================
   Runde 6a (2026-11-18): Cookie-Banner (Plugin cookie-law-info, Legacy-Banner)
   Ziel am Handy: ≤ ca. 30 % Bildhöhe, Buttons ≥ 44 px, „Nur notwendige“ und
   „Alle akzeptieren“ gleichwertig (gleiche Fläche, Größe, Farbe).
   Das Plugin setzt Farben per JS inline (Hex aus den Einstellungen) → !important.
   ========================================================================= */
#cookie-law-info-bar[data-cli-style="cli-style-v2"] {
	padding: 12px 16px !important;
	background-color: var(--base-3) !important;
	color: var(--contrast) !important;
	border-top: 3px solid var(--brand);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
	font-weight: 400;
}
#cookie-law-info-bar .cli-bar-container.cli-style-v2 {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	max-width: var(--gb-container-width);
	margin: 0 auto;
	font-size: 14px;
	line-height: 1.45;
}
#cookie-law-info-bar .cli-style-v2 .cli-bar-message {
	width: auto;
	margin: 0;
	text-align: left;
}
#cookie-law-info-bar .cli-bar-message a {
	color: var(--brand) !important;
	text-decoration: underline;
}
#cookie-law-info-bar .cli-style-v2 .cli-bar-btn_container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
}
#cookie-law-info-bar .cli-bar-btn_container .cli-plugin-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 8px 12px;
	border: 2px solid var(--brand);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
}
#cookie-law-info-bar .cli-bar-btn_container .wt-cli-reject-btn,
#cookie-law-info-bar .cli-bar-btn_container .wt-cli-accept-all-btn {
	background-color: var(--brand) !important;
	color: var(--base-3) !important;
}
#cookie-law-info-bar .cli-bar-btn_container .wt-cli-reject-btn { order: 1; }
#cookie-law-info-bar .cli-bar-btn_container .wt-cli-accept-all-btn { order: 2; }
#cookie-law-info-bar .cli-bar-btn_container .cli_settings_button {
	order: 3;
	grid-column: 1 / -1;
	min-height: 44px;
	background-color: var(--base-3) !important;
	color: var(--brand) !important;
}
#cookie-law-info-bar .cli-bar-btn_container .wt-cli-reject-btn:is(:hover, :focus),
#cookie-law-info-bar .cli-bar-btn_container .wt-cli-accept-all-btn:is(:hover, :focus) {
	background-color: var(--brand-2) !important;
	border-color: var(--brand-2);
}
#cookie-law-info-bar .cli-bar-btn_container .cli_settings_button:is(:hover, :focus) {
	background-color: var(--base) !important;
}
@media (min-width: 768px) {
	#cookie-law-info-bar .cli-bar-container.cli-style-v2 {
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}
	#cookie-law-info-bar .cli-style-v2 .cli-bar-message {
		flex: 1 1 auto;
	}
	#cookie-law-info-bar .cli-style-v2 .cli-bar-btn_container {
		display: flex;
		flex: 0 0 auto;
	}
	#cookie-law-info-bar .cli-bar-btn_container .cli_settings_button {
		order: 0;
	}
}

/* Einstellungsdialog: Logo-Blau statt Plugin-Grün, Text dunkel */
.cli-modal .cli-modal-content {
	color: var(--contrast);
}
.cli-modal .cli-tab-footer .wt-cli-privacy-accept-btn,
.cli-modal .cli-tab-footer .cli-btn {
	background-color: var(--brand) !important;
	color: var(--base-3) !important;
	min-height: 44px;
}
.cli-modal .cli-switch input:checked + .cli-slider {
	background-color: var(--brand) !important;
}
.cli-modal a.cli-privacy-readmore,
.cli-modal .cli-privacy-content-text a {
	color: var(--brand) !important;
}


/* =========================================================================
   Runde 6a (2026-11-18): Kopf (GP-Element 47143) – Button „Mitglied werden“
   Längere Beschriftung als vorher „Kontakt“: Button bleibt einzeilig, Menüabstände
   im Desktop-Bereich etwas enger, damit das Menü nicht in zwei Zeilen bricht.
   ========================================================================= */
.gb-site-header .gb-menu-hide-on-toggled .gbp-button--primary {
	white-space: nowrap;
}
/* Runde 10b: 1025–1399 px fließende Menüabstände statt fester Stufen. Vorher brach „Kontakt“ bei
   1025–1099 px (und knapp über 1200 px mit Scrollleiste) in eine zweite Zeile. Platzbedarf gemessen:
   Menütexte inkl. Pfeile ≈ 528 px + 10 × Innenabstand; verfügbar ≈ Fensterbreite − 445 px.
   Innenabstand = (100vw − 980 px) / 11 → 4 px bei 1025, 20 px bei 1200, 24 px ab ca. 1250 px. */
@media (min-width: 1025px) and (max-width: 1399px) {
	header.gb-site-header {
		padding-left: 24px;
		padding-right: 24px;
	}
	.gb-site-header .gb-menu > .menu-item > .gb-menu-link {
		padding-left: clamp(4px, calc((100vw - 980px) / 11), 24px);
		padding-right: clamp(4px, calc((100vw - 980px) / 11), 24px);
		column-gap: 4px;
		letter-spacing: 0.5px;
	}
	.gb-site-header .gb-menu-hide-on-toggled .gbp-button--primary {
		padding-left: 16px;
		padding-right: 16px;
		letter-spacing: 1px;
	}
}
/* Reserve für abweichende Schriftdarstellung (Windows/macOS): im engsten Bereich 14 px statt 15 px */
@media (min-width: 1025px) and (max-width: 1249px) {
	.gb-site-header .gb-menu > .menu-item > .gb-menu-link {
		font-size: 14px;
	}
}
/* 2026-11-25: dritte Menüebene (z. B. Verein › Trainings › Kraulkurse), allgemein für jedes Untermenü im Untermenü.
   Mobil-Overlay (GB setzt .gb-menu-container--mobile ab Breakpoint 1024 px): GB-Regel „.gb-sub-menu-… .gb-sub-menu
   { left: 100% }“ ist für Desktop gedacht und schob die Liste dort aus dem Bild → ohne Versatz inline darunter;
   Einrückung (+16 px je Ebene) und Tipp-Höhe (min. 44 px) kommen aus den GB-Untermenü-Stilen. */
.gb-menu-container--mobile .gb-sub-menu .gb-sub-menu {
	left: auto;
	top: auto;
	min-width: 0;
}
/* 2026-11-25: Mobil-Overlay – Aufklapp-Pfeile hatten nur 25×27 px Tipp-Fläche (GB: width 25px, Zeilenhöhe).
   Fläche 44×44 px; negative Ränder gleichen die Vergrößerung aus (Randbox bleibt 25×24 px, mittig wie bisher),
   dadurch bleiben Pfeilgröße, Pfeilposition und Zeilenhöhe unverändert. */
.gb-menu-container--mobile .gb-submenu-toggle {
	width: 44px;
	height: 44px;
	align-self: center;
	margin: -10px -9.5px;
}
/* Desktop: Untermenü der 2. Ebene klappt rechts auf → Pfeil beim Eltern-Punkt nach rechts statt nach unten */
.gb-menu-container:not(.gb-menu-container--mobile) .gb-sub-menu .gb-submenu-toggle-icon {
	transform: rotate(-90deg);
}


/* =========================================================================
   Runde 7 (2026-11-18): Fluent-Forms-Formulare (Kontakt 3, Mitgliedsantrag 4,
   Schwimmkurs 5, Anprobe 6, Newsletter 7). Ergänzt die Fluent-Forms-Stile im
   Customizer-Zusatz-CSS. Mobil zuerst: einspaltig, Felder/Buttons ≥ 44 px,
   Feldränder mit ausreichend Kontrast, Text dunkel, Links Logo-Blau.
   ========================================================================= */
.trirun-formular {
	text-align: left;
	width: 100%;
}
.trirun-ff .ff-el-group {
	text-align: left;
	margin-bottom: 1.25rem;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-input--label label {
	color: var(--contrast-2);
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-form-control {
	min-height: 48px;
	border: 1px solid var(--contrast-3);
	color: var(--contrast-2);
	padding: 10px 14px;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-form-control:focus {
	border-color: var(--brand);
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}
.fluentform.trirun-ff .frm-fluent-form textarea.ff-el-form-control {
	min-height: 96px;
}
/* Hilfetexte: normal, dunkel statt klein-kursiv-grau */
.fluentform.trirun-ff .frm-fluent-form .ff-el-help-message {
	font-size: 0.9375rem;
	font-style: normal;
	color: var(--contrast-2);
	margin-top: 0.35rem;
}
/* Auswahlfelder und Zustimmungen: große Tippflächen */
.fluentform.trirun-ff .frm-fluent-form .ff-el-form-check {
	margin-bottom: 0.25rem;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-form-check-label,
.fluentform.trirun-ff .frm-fluent-form .ff-el-tc label.ff_tc_label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0.55rem 0;
	color: var(--contrast-2);
	cursor: pointer;
}
.fluentform.trirun-ff .frm-fluent-form input.ff-el-form-check-input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0.1rem 0 0;
	accent-color: var(--brand);
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-form-check-label a,
.fluentform.trirun-ff .frm-fluent-form .ff_t_c a,
.fluentform.trirun-ff .frm-fluent-form .ff-custom_html a {
	color: var(--brand);
	text-decoration: underline;
}
/* Abschnitte */
.fluentform.trirun-ff .frm-fluent-form .ff-el-section-break {
	margin: 1.75rem 0 1rem;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-section-break .ff-el-section-title {
	margin-bottom: 0.25rem;
	font-size: 1.25rem;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-section-break hr {
	margin: 0.5rem 0 0;
	background-color: var(--base);
}
.fluentform.trirun-ff .frm-fluent-form .ff-custom_html p {
	margin-bottom: 0.25rem;
	color: var(--contrast-2);
}
/* Fehlermeldungen: dunkles Rot (Kontrast > 4,5:1 auf Weiß) */
.fluentform.trirun-ff .frm-fluent-form .ff-el-is-error .text-danger,
.fluentform.trirun-ff .frm-fluent-form .error.text-danger {
	color: #b00020;
	font-size: 0.9375rem !important;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-is-error .ff-el-form-control {
	border-color: #b00020;
}
/* Absende-Button: weiß auf Logo-Blau (wie .gbp-button--primary, Farben im Customizer-CSS), am Handy volle Breite */
.fluentform.trirun-ff .frm-fluent-form .ff-btn-submit {
	min-height: 48px;
	width: 100%;
}
.fluentform.trirun-ff .frm-fluent-form .ff-btn-submit:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}
@media (min-width: 768px) {
	.fluentform.trirun-ff .frm-fluent-form .ff-btn-submit {
		width: auto;
		min-width: 220px;
	}
}
/* Erfolgsmeldung: das Customizer-CSS setzt weiße Schrift – hier dunkel auf hellem Kasten */
.fluentform.trirun-ff .ff-message-success {
	color: var(--contrast-2);
	background-color: var(--base-3);
	border-left: 4px solid var(--brand);
	padding: 1rem 1.25rem;
	text-align: left;
}
.fluentform.trirun-ff .ff-message-success p {
	margin: 0;
}

/* Newsletter-Formular (Footer-Slot und Vereinskleidung): kompakt; Desktop einzeilig */
.trirun-newsletter-slot {
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
}
.fluentform.trirun-ff--newsletter .ff-el-group {
	margin-bottom: 0.75rem;
}
.fluentform.trirun-ff--newsletter .ff-el-input--label label {
	font-size: 0.9375rem;
}
.fluentform.trirun-ff--newsletter .trirun-nl-hinweis {
	font-size: 0.875rem;
	line-height: 1.5;
}
@media (min-width: 768px) {
	.trirun-ff--newsletter fieldset {
		display: grid;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
		column-gap: 0.75rem;
		align-items: end;
	}
	.trirun-ff--newsletter fieldset > * {
		grid-column: 1 / -1;
	}
	.trirun-ff--newsletter fieldset > .trirun-nl-email { grid-column: 1; }
	.trirun-ff--newsletter fieldset > .trirun-nl-vorname { grid-column: 2; }
	.trirun-ff--newsletter fieldset > .ff_submit_btn_wrapper {
		grid-column: 3;
		grid-row: 1;
		margin-bottom: 0.75rem;
	}
	.trirun-ff--newsletter fieldset > .trirun-nl-hinweis-wrap {
		grid-row: 2;
	}
	.fluentform.trirun-ff--newsletter .ff-btn-submit {
		min-width: 0;
	}
}
@media (min-width: 1025px) {
	.trirun-footer__newsletter {
		align-items: center;
	}
}
/* Pflichtfeld-Sternchen: dunkles Rot statt Hellrot (Kontrast) */
.fluentform.trirun-ff .frm-fluent-form .ff-el-is-required.asterisk-right label::after {
	color: #b00020;
}
/* Runde 7b: Fehlermeldungen verschieben das Layout nicht mehr. Unter jedem Eingabefeld ist eine Zeile
   für die Meldung reserviert; die Meldung steht dort absolut. Sonst rutscht beim Verlassen eines Feldes
   (Meldung verschwindet) alles nach oben und der nächste Tipp landet daneben. Meldungstexte sind kurz (eine Zeile bei 390 px). */
.fluentform.trirun-ff .frm-fluent-form .ff-el-group:has(.ff-el-form-control, .ff-el-form-check-input) {
	position: relative;
	margin-bottom: 0.25rem;
	padding-bottom: 1.6rem;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-group:has(.ff-el-form-control, .ff-el-form-check-input) .ff-el-input--content {
	position: static;
}
.fluentform.trirun-ff .frm-fluent-form .ff-el-group .error.text-danger {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.15rem;
	margin: 0;
	line-height: 1.4;
}
.fluentform.trirun-ff--newsletter .frm-fluent-form .ff-el-group:has(.ff-el-form-control) {
	margin-bottom: 0;
}
@media (min-width: 768px) {
	.trirun-ff--newsletter fieldset > .ff_submit_btn_wrapper {
		margin-bottom: 1.85rem;
	}
}


/* =========================================================================
   Runde 10b (2026-11-19): Beitragsdatum bei Beiträgen älter als 12 Monate
   Der Datumsblock (.trirun-datum, Element 29810) wird serverseitig weggelassen (functions.php).
   Dann steht die Kategorie allein: kein Trenner/Abstand links.
   ========================================================================= */
.trirun-kategorien:first-child {
	border-left-width: 0;
	padding-left: 0;
}


/* =========================================================================
   Runde 10b: Alte Seiten im klassischen Format (body.trirun-klassisch, gesetzt in functions.php
   für Seiten ohne Blöcke: pausierte Event-Seiten, Impressum, Sitemap, Fotos, Verein).
   Inhalte bleiben unverändert – nur Darstellung.
   ========================================================================= */
/* Überschriften im Inhalt fließend; lange Wörter („abwechslungsreichste“) passen bei 390 px in eine Zeile.
   Falls doch nicht: Silbentrennung (lang="de") statt Bruch mitten im Wort ohne Trennstrich. */
.trirun-klassisch .entry-content :is(h1, h2, h3, h4) {
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: normal;
	text-wrap: balance;
	line-height: 1.25;
}
.trirun-klassisch .entry-content h1 {
	font-size: clamp(1.5rem, 1rem + 2.5vw, 2.25rem);
}
.trirun-klassisch .entry-content h2 {
	font-size: clamp(1.375rem, 0.95rem + 1.9vw, 1.875rem);
}
.trirun-klassisch .entry-content h3 {
	font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
}
.trirun-klassisch .entry-content h4 {
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}
/* Leere Überschriften aus dem alten Editor erzeugen keine Lücken */
.trirun-klassisch .entry-content :is(h1, h2, h3, h4, h5, h6):empty {
	display: none;
}
/* Inline-Farben (violett, rot …) in Überschriften neutralisieren: ganze Überschrift → Überschriftenfarbe,
   eingefärbte Teile → Logo-Blau (wie die hervorgehobenen Wörter auf den neuen Seiten). */
.trirun-klassisch .entry-content :is(h1, h2, h3, h4, h5, h6)[style*="color"] {
	color: inherit !important;
}
.trirun-klassisch .entry-content :is(h1, h2, h3, h4, h5, h6) :is([style*="color"], font[color]) {
	color: var(--brand) !important;
}
/* Tabellen, Bilder und Einbettungen nie breiter als die Spalte; Tabellen notfalls seitlich wischbar */
.trirun-klassisch .entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-collapse: collapse;
}
.trirun-klassisch .entry-content :is(td, th) {
	padding: 0.4em 0.6em;
	vertical-align: top;
}
.trirun-klassisch .entry-content :is(img, iframe, video, embed, object) {
	max-width: 100%;
}
.trirun-klassisch .entry-content img {
	height: auto;
}
.trirun-klassisch .entry-content :is(ul, ol) {
	margin-left: 1.25em;
}

/* =========================================================================
   B3-Nachzug: Impressum (Seite 2274, klassisch mit Theme-Titel)
   Abstand Titel -> Inhalt wie auf den Block-Seiten (32 px), Textspalte am Desktop lesbar begrenzt.
   ========================================================================= */
.page-id-2274 .entry-header {
	margin-bottom: 32px;
}
.page-id-2274 .entry-content {
	max-width: 720px;
}
