/* Club 85 Paderborn – ergänzende Stile zum theme.json */

/* ---------- Grundlagen ---------- */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--federball);
	outline-offset: 3px;
}
.has-clubblau-background-color :where(a, button):focus-visible,
.has-nachtblau-background-color :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--weiss);
}
::selection {
	background: var(--wp--preset--color--federball);
	color: var(--wp--preset--color--tinte);
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Überschriften und Links auf blauem Grund */
.has-clubblau-background-color,
.has-nachtblau-background-color {
	--c85-linie: rgba(255, 255, 255, 0.28);
}
.has-clubblau-background-color a:where(:not(.wp-element-button)),
.has-nachtblau-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--weiss);
}

/* Template-Teile ohne Zwischenraum aneinandersetzen */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Umriss-Button (Blockstil „Umriss") */
.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 0.6rem 1.25rem;
	background: transparent;
	border-color: currentColor;
	color: inherit;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--weiss);
	border-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--tinte);
}

/* ---------- Kopfbereich ---------- */
.c85-kopf {
	border-bottom: 1px solid var(--wp--preset--color--linie);
}
.c85-kopf .wp-block-site-logo img { display: block; }
.c85-kopf .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--linie) !important;
	padding: 0.5rem 0;
	font-size: 1.125rem;
}
.c85-kopf .wp-block-navigation-item__content { padding-block: 0.25rem; }
.c85-kopf .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.c85-kopf .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--federball);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}
.c85-kopf .wp-block-button__link { font-size: 1.125rem; padding: 0.45rem 1rem; }
@media (max-width: 600px) {
	.c85-kopf .c85-kopf__cta { display: none; }
}

/* ---------- Spielfeld-Hintergrund (Gruppen-Blockstil „Spielfeld") ---------- */
.wp-block-group.is-style-spielfeld {
	background-color: var(--wp--preset--color--clubblau);
	background-image: url("../images/spielfeld.svg");
	background-repeat: no-repeat;
	background-size: min(1100px, 140%) auto;
	background-position: right -22rem center;
	color: var(--wp--preset--color--weiss);
}
.wp-block-group.is-style-spielfeld :where(h1, h2, h3, h4) { color: var(--wp--preset--color--weiss); }
@media (max-width: 781px) {
	.wp-block-group.is-style-spielfeld {
		background-size: 900px auto;
		background-position: left -2rem bottom -6rem;
	}
}

/* ---------- Hallentafel (Wochenplan im Startbereich) ---------- */
.c85-tafel {
	border: 2px solid var(--c85-linie, var(--wp--preset--color--linie));
	background: rgba(10, 34, 89, 0.55);
}
.c85-tafel__zeile {
	border-top: 2px solid var(--c85-linie, var(--wp--preset--color--linie));
}
.c85-tafel__zeile:first-of-type { border-top: 0; }
.c85-tafel__tag {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 2rem;
	line-height: 1;
	min-width: 3.25rem;
	color: var(--wp--preset--color--federball);
}
.c85-tafel__zeile p { margin: 0; }
.c85-tafel abbr { text-decoration: none; }
.c85-tafel__zeit {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	font-size: 1.375rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* ---------- Spielfeldlinien als Gliederung (Angebote) ---------- */
.c85-felder > .wp-block-column {
	border-top: 3px solid var(--wp--preset--color--tinte);
	padding-top: 1rem;
}
.c85-felder + .c85-felder { margin-top: var(--wp--preset--spacing--50); }

/* ---------- Schritte (nummerierte Liste) ---------- */
ol.c85-schritte {
	list-style: none;
	padding-left: 0;
	counter-reset: schritt;
	display: grid;
	gap: 1.5rem;
}
ol.c85-schritte > li {
	counter-increment: schritt;
	position: relative;
	padding-left: 4rem;
	min-height: 3rem;
}
ol.c85-schritte > li > strong:first-child {
	display: block;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 1.375rem;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}
ol.c85-schritte > li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--federball);
	color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 3rem;
	text-align: center;
}

/* ---------- Tabellen (Blockstil „Trainingsplan") ---------- */
.wp-block-table.is-style-trainingsplan table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table.is-style-trainingsplan :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
	padding: 0.75rem 0.75rem 0.75rem 0;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-trainingsplan thead {
	border-bottom: 3px solid var(--wp--preset--color--tinte);
}
.wp-block-table.is-style-trainingsplan thead th {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	font-size: 1.125rem;
}
.wp-block-table.is-style-trainingsplan tbody td:first-child {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 1.25rem;
	white-space: nowrap;
}
.wp-block-table.is-style-trainingsplan td { font-variant-numeric: tabular-nums; }
.wp-block-table.is-style-trainingsplan figcaption { text-align: left; }

/* ---------- Personenkarten (Vorstand) ---------- */
.c85-person {
	border-left: 3px solid var(--wp--preset--color--clubblau);
	padding-left: 1rem;
}
.c85-person__amt {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--clubblau);
	font-weight: 600;
}

/* Volle Breite am Seitenende ohne Weißraum vor dem Fußbereich */
.entry-content:has(> .alignfull:last-child) { padding-bottom: 0 !important; }

/* ---------- Seitenkopf ---------- */
.c85-seitenkopf .wp-block-post-title { margin: 0; }

/* ---------- Partner ---------- */
.c85-partner a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Fußbereich ---------- */
.c85-fuss h2 {
	font-size: 1.375rem;
	color: var(--wp--preset--color--federball);
}
.c85-fuss .wp-block-column > p { margin: 0.75rem 0 0; }
.c85-fuss .c85-fuss__unten { border-top: 1px solid rgba(255, 255, 255, 0.2); }

/* ---------- Formulare (für Formular-Plugins) ---------- */
.entry-content :where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	width: 100%;
	max-width: 32rem;
	padding: 0.6rem 0.75rem;
	border: 2px solid var(--wp--preset--color--linie);
	border-radius: 3px;
	font: inherit;
	background: var(--wp--preset--color--weiss);
}
.entry-content :where(input, select, textarea):focus {
	border-color: var(--wp--preset--color--clubblau);
}

/* Luft über Zwischenüberschriften im Fließtext */
.entry-content > :where(h2, h3):not(:first-child) { margin-top: var(--wp--preset--spacing--50); }

/* Porträts im Vorstand */
.c85-person .c85-portraet { max-width: 8rem; margin-bottom: 0.5rem; }
.c85-person .c85-portraet img { border-radius: 50%; }
