/*
Theme Name: VfL Radsport
Description: Child-Theme von Twenty Twenty-Five für radsport.unterelbe.net – Dunkelblau/Gelb, Fira Sans, kompakte Startseite.
Author: Norbert Wigbels
Template: twentytwentyfive
Version: 1.3.2
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: vfl-radsport
Update URI: false
License: GNU General Public License v2 or later
*/

/* ---------- Kopf ---------- */
.vfl-kopf a { text-decoration: none; }
.vfl-kopf .wp-block-navigation a:hover { color: var(--wp--preset--color--akzent); }
/* Untermenüs: dunkelblau mit heller Schrift */
.vfl-kopf .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--marine) !important;
	color: var(--wp--preset--color--flaeche) !important;
	border: 0 !important;
	border-radius: 0 0 10px 10px;
	padding: 6px 0;
	min-width: 240px;
}
.vfl-kopf .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 8px 16px; }

/* ---------- Startseite: keine Lücken zwischen Kopf, Einstieg, Termin, Inhalt und Fuß ---------- */
/* Twenty Twenty-Five setzt zwischen die obersten Bereiche einen Abstand (block gap);
   auf der Startseite ließ der den hellen Hintergrund als Balken durchscheinen. */
body.blog .wp-site-blocks > * { margin-block-start: 0; }

/* ---------- Einstieg ---------- */
.vfl-einstieg .vfl-held { margin: 8px 0 0; }
.vfl-knoepfe .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 22px;
	font-family: var(--wp--preset--font-family--fira-sans);
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}
.vfl-knoepfe .is-style-outline .wp-block-button__link {
	border: 1px solid #6F8BAA;
	background: transparent;
	color: var(--wp--preset--color--flaeche);
	font-weight: 600;
}
.vfl-knoepfe .wp-block-button__link:hover { filter: brightness(1.08); }
.vfl-foto img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; display: block; }

/* ---------- Nächster Termin ---------- */
.vfl-termin {
	position: relative;
	margin-top: -20px !important;
	box-shadow: 0 6px 24px rgba(15, 34, 56, 0.12);
	align-items: center;
}
.vfl-termin p { margin: 0; }
.vfl-marke {
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--wp--preset--color--akzent);
	color: var(--wp--preset--color--marine);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.vfl-termin a { text-decoration: none; font-weight: 700; }
.vfl-termin .vfl-termin-link { margin-left: auto; }

/* ---------- Karten (Training, Vorteile, Beiträge) ---------- */
.vfl-karte {
	background: var(--wp--preset--color--flaeche);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 12px;
}
.vfl-karte > * { margin: 0; }
.vfl-karte-marke { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; color: var(--wp--preset--color--gedaempft); }
.vfl-karte-titel { margin-top: 6px !important; font-weight: 700; font-size: 17px; color: var(--wp--preset--color--marine); }
.vfl-karte-text { margin-top: 6px !important; font-size: 14px; line-height: 1.5; }
.vfl-karte-ort { margin-top: 2px !important; font-size: 13px; color: var(--wp--preset--color--gedaempft); }

/* Vorteile: zweispaltig mit Häkchen */
.vfl-vorteile {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;           /* alle Zeilen gleich hoch */
	column-gap: 24px;
	font-size: 14px;
	line-height: 1.45;
}
.vfl-vorteile li {
	position: relative;
	margin: 0 !important;          /* Twenty Twenty-Five setzt margin-top: 0.5rem je Listenpunkt */
	padding: 6px 0 6px 26px;
}
.vfl-vorteile li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;                      /* oberer Innenabstand 6 px + 1 px */
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--marine);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Beitrags-Kacheln */
.vfl-beitraege .wp-block-post {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--flaeche);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 12px;
	overflow: hidden;
}
.vfl-beitraege .wp-block-post-featured-image { margin: 0; }
.vfl-beitraege .wp-block-post-featured-image img { display: block; }
.vfl-beitraege .wp-block-post-date,
.vfl-beitraege .wp-block-post-title { margin: 0; padding: 0 14px; }
.vfl-beitraege .wp-block-post-date { padding-top: 12px; font-size: 12px; color: var(--wp--preset--color--gedaempft); }
.vfl-beitraege .wp-block-post-title { padding-top: 4px; padding-bottom: 14px; font-size: 16px; line-height: 1.3; }
.vfl-beitraege .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--marine); }
.vfl-beitraege .wp-block-post:hover .wp-block-post-title a { text-decoration: underline; }
.vfl-beitraege .wp-block-post-template.is-layout-grid { row-gap: 18px; }

/* Abschnittsüberschriften mit Link rechts */
.vfl-kopfzeile { align-items: baseline; }
.vfl-kopfzeile a { font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- Fuß ---------- */
.vfl-fuss a { color: var(--wp--preset--color--flaeche); text-decoration: none; }
.vfl-fuss a:hover { color: var(--wp--preset--color--akzent); }
.vfl-fuss p { margin: 0; }

@media (max-width: 860px) {
	.vfl-vorteile { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
	.vfl-termin .vfl-termin-link { margin-left: 0; }
}

/* ---------- Seite Abteilung Radsport ---------- */
.vfl-karte h3 { margin: 0 0 6px; }
.vfl-karte h3 a { text-decoration: none; color: var(--wp--preset--color--marine); }
.vfl-karte h3 a:hover { text-decoration: underline; }
.vfl-hinweis {
	margin-top: 24px;
	padding: 12px 16px;
	background: var(--wp--preset--color--hellblau);
	border-radius: 8px;
	font-size: 15px;
}

/* ---------- Blättern ("Neuere/Ältere Beiträge") als Knöpfe im Seitenstil ---------- */
.wp-block-query-pagination {
	font-size: 15px;
	font-weight: 600;                /* Elternthema: 500 – nicht geladen */
	gap: 12px;
}
.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--marine);
	border-radius: 22px;
	color: var(--wp--preset--color--marine);
	text-decoration: none;
}
.wp-block-query-pagination a:hover {
	background: var(--wp--preset--color--marine);
	color: var(--wp--preset--color--flaeche);
}
.wp-block-query-pagination .wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination .wp-block-query-pagination-next-arrow { margin: 0; }

/* ---------- Einzelbeitrag ---------- */
.vfl-kategorie a {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--wp--preset--color--akzent);
	color: var(--wp--preset--color--marine);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.vfl-datum { font-size: 14px; color: var(--wp--preset--color--gedaempft); }
.vfl-beitragsbild img { border-radius: 12px; }
.vfl-schlagwoerter { margin-top: 32px; font-size: 14px; color: var(--wp--preset--color--gedaempft); }
/* Beitragsnavigation: Hinweis klein, Titel fett */
.vfl-beitragsnavigation .wp-block-post-navigation-link { max-width: 46%; }
.vfl-beitragsnavigation .wp-block-post-navigation-link a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 44px;
	text-decoration: none;
}
.vfl-beitragsnavigation .post-navigation-link-next a { align-items: flex-end; text-align: right; }
.vfl-beitragsnavigation .post-navigation-link__label { font-size: 13px; color: var(--wp--preset--color--gedaempft); }
.vfl-beitragsnavigation .post-navigation-link__title { font-weight: 700; font-size: 16px; color: var(--wp--preset--color--marine); }
.vfl-beitragsnavigation a:hover .post-navigation-link__title { text-decoration: underline; }

/* ---------- Suche (Seite Suchergebnisse) ---------- */
.wp-block-search .wp-block-search__input {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 22px 0 0 22px;
	background: var(--wp--preset--color--flaeche);
}
.wp-block-search .wp-block-search__button {
	margin-left: 0;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 0 22px 22px 0;
	background: var(--wp--preset--color--marine);
	color: var(--wp--preset--color--flaeche);
	font-size: 15px;
}

/* Hinweis Probetraining (Startseite) */
.vfl-probetraining {
	padding: 12px 16px;
	background: var(--wp--preset--color--flaeche);
	border-left: 0;
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--linie);
	font-size: 15px;
}
.vfl-probetraining strong { color: var(--wp--preset--color--marine); }

/* ---------- Fuß immer am unteren Rand ---------- */
/* Bei kurzen Seiten rutscht der Fuß ans Fensterende, statt dass darunter heller Hintergrund
   bleibt; bei langen Seiten folgt er wie gewohnt dem Inhalt. */
.wp-site-blocks {
	box-sizing: border-box;          /* Innenabstand des Rahmens zählt zur Mindesthöhe */
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
/* Angemeldet schiebt die Admin-Leiste die Seite um 32 px (schmal: 46 px) nach unten */
.admin-bar .wp-site-blocks {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}
.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-top: auto;
}
/* Falls unter dem Fuß doch etwas Platz bleibt (z. B. Überscrollen auf Mobilgeräten): gleiche Farbe */
html { background: var(--wp--preset--color--nacht); }

/* ---------- Kontakte (Ansprechpartner) und Symbole im Fuß ---------- */
.vfl-kontakte { gap: 8px; margin-top: 8px; }
.vfl-kontakte .wp-social-link {
	background: var(--wp--preset--color--flaeche) !important;
	color: var(--wp--preset--color--marine) !important;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 18px;
}
.vfl-kontakte .wp-social-link a { padding: 7px 14px 7px 11px; gap: 8px; font-size: 14px; font-weight: 600; }
.vfl-kontakte .wp-social-link:hover { border-color: var(--wp--preset--color--marine); transform: none; }
.vfl-fuss-symbole .wp-social-link:hover { color: var(--wp--preset--color--akzent) !important; }
