/* TSV Trainingszeiten – Ausgabe im Stil des Themes „TSV Solln“.
   Farben und Radien folgen dem Designsystem; die Akzentfarbe kommt vom Abschnittsstil „Sport: …“ (--tsv-accent). */
.tsvtz {
	--tsvtz-linie: var(--wp--preset--color--linie, #e6e4e4);
	--tsvtz-zeile: #ecebeb;
	--tsvtz-text2: var(--wp--preset--color--text-sekundaer, #555);
	--tsvtz-text3: var(--wp--preset--color--text-gedaempft, #6b6b6b);
	--tsvtz-grau: var(--wp--preset--color--grau-hell, #efeeee);
	--tsvtz-grund: var(--wp--preset--color--hintergrund, #f5f4f4);
	--tsvtz-akzent: var(--tsv-accent, #000);
}
.tsvtz p { margin: 0; }
.tsvtz-leer { padding: 1rem 1.25rem; border: 1px dashed #bbb; border-radius: 14px; color: #555; font-size: 0.875rem; background: #fafafa; }

/* Pills (wie tsv-status im Theme) */
.tsvtz .tsvtz-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: #000; color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.tsvtz .tsvtz-pill.tsv-status--frei, .tsvtz .tsvtz-pill--frei, .tsvtz .tsvtz-pill--neu, .tsvtz .tsvtz-pill--kursgebuehr { background: var(--tsvtz-grau); color: #000; }
.tsvtz .tsvtz-pill--info { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
.tsvtz .tsvtz-punkt { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--tsv-accent, #000); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.tsvtz-pills { display: inline-flex; flex-wrap: wrap; gap: 0.375rem; }

/* Kursliste (Akkordeon) */
.tsvtz-kursliste { display: flex; flex-direction: column; gap: 0.75rem; }
.tsvtz-akkordeon { margin: 0; background: #fff; border: 1px solid var(--tsvtz-linie); border-radius: 18px; padding: 1.125rem 1.375rem; transition: border-color .15s ease; }
.tsvtz-akkordeon:hover { border-color: #000; }
.tsvtz .tsvtz-akkordeon > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; column-gap: 0.5rem; row-gap: 0.375rem; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; position: relative; padding-right: 3rem; min-height: 36px; }
.tsvtz-akkordeon > summary::-webkit-details-marker { display: none; }
.tsvtz .tsvtz-akkordeon > summary .tsv-summary-meta { margin-right: 0 !important; font-weight: 500; font-size: 0.875rem; color: var(--tsvtz-text3); }
.tsvtz-akkordeon > summary .tsvtz-pills { margin-left: 0.25rem; }
.tsvtz .tsvtz-akkordeon > summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid #000; border-radius: 50%; font-size: 1.125rem; font-weight: 700; line-height: 1; }
.tsvtz-akkordeon[open] > summary::after { content: "−"; background: #000; color: #fff; }
.tsvtz-akkordeon[open] > summary { margin-bottom: 1rem; }
.tsvtz-akkordeon__inhalt { display: flex; flex-direction: column; gap: 0.875rem; }
.tsvtz-akkordeon__inhalt .tsv-gedaempft { color: var(--tsvtz-text2); }

.tsvtz-zeile { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(10rem, calc((100% - 1.5rem) / 4)), 1fr)); gap: 0.5rem; align-items: start; border-top: 1px solid var(--tsvtz-zeile); padding: 0.75rem 0; font-size: 0.9375rem; }
.tsvtz-zeile .tsv-zeile-ort, .tsvtz-zeile .tsv-zeile-leitung { color: var(--tsvtz-text2); }
.tsvtz-zeile-status { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tsvtz-zeile--entfaellt .tsv-zeile-zeit strong, .tsvtz-zeile--entfaellt .tsvtz-zeit { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tsvtz-zeile--entfaellt { color: var(--tsvtz-text3); }

.tsvtz-meldung { display: flex; gap: 0.875rem; align-items: baseline; background: var(--tsvtz-grund); border-radius: 14px; padding: 0.875rem 1.125rem; font-size: 0.9375rem; line-height: 1.55; }
.tsvtz-meldung__label { font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.tsvtz-notiz { font-size: 0.9375rem; }
.tsvtz-kontakt { font-size: 0.9375rem; }
.tsvtz-kontakt a { color: inherit; font-weight: 700; }
.tsvtz .tsv-pfeil-link { font-weight: 700; font-size: 0.9375rem; }
.tsvtz .tsv-pfeil-link a { color: inherit; text-decoration: none; }

/* Wochenplan */
.tsvtz-wochenplan { display: flex; flex-direction: column; gap: 0.75rem; }
.tsvtz-karte { background: #fff; border: 1px solid var(--tsvtz-linie); border-radius: 24px; padding: 1.75rem; box-sizing: border-box; }
.tsvtz-wochentag { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1rem 1.5rem; }
.tsvtz-wochentag > .tsv-wochentag-name { font-weight: 700; font-size: 1.125rem; }
.tsvtz-termin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.5rem 1.25rem; align-items: start; padding: 0.75rem 0; border-top: 1px solid var(--tsvtz-zeile); font-size: 0.9375rem; }
.tsvtz-termin:first-child { border-top: 0; padding-top: 0; }
.tsvtz-termin .tsv-klein { font-size: 0.8125rem; color: var(--tsvtz-text3); }
.tsvtz-termin .tsvtz-zeile-status { margin-top: 0.375rem; }

/* Team-Karten */
.tsvtz-teamkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--tsvtz-karte-min, 21.25rem), 100%), 1fr)); gap: 1.25rem; }
.tsvtz-teamkarte { display: flex; flex-direction: column; gap: 0.5rem; }
.tsvtz .tsvtz-team-titel { margin: 0; font-size: var(--wp--preset--font-size--xl, 1.25rem); line-height: 1.3; }
.tsvtz-untertitel { color: var(--tsvtz-text3); font-size: 0.875rem; font-weight: 600; }
.tsvtz-team-zeit { padding: 0.625rem 0; border-top: 1px solid var(--tsvtz-zeile); }
.tsvtz-team-zeit p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.tsvtz-team-zeit p + p { font-size: 0.875rem; color: var(--tsvtz-text2); }
.tsvtz-teamkarte .has-md-font-size { font-size: 0.875rem; }

/* Hinweis-Box: Kopfzeile oben, darunter Zeilen aus Markierung + Datum (links, gleich breit) und Text */
.tsvtz-hinweise { display: block; background: #fff; border: 1px solid var(--tsvtz-linie); border-radius: 24px; padding: 1.375rem 1.75rem 1.125rem; box-sizing: border-box; }
.tsvtz-hinweise__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; padding-bottom: 1rem; border-bottom: 1px solid var(--tsvtz-linie); }
.tsvtz-hinweise__label { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.3125rem 0.75rem; border-radius: 999px; background: #000; color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1.4; }
.tsvtz-hinweise__label::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tsv-accent, #000); box-shadow: 0 0 0 1.5px #fff; }
/* Vorlage zum Selbstbearbeiten (Gruppen- und Absatz-Blöcke): Abstände der Block-Layouts neutralisieren */
.tsvtz.tsvtz-hinweise :is(p, h2, h3, h4, div) { margin-block: 0; }
.tsvtz.tsvtz-hinweise .tsvtz-hinweise__titel { flex: 0 1 auto; }
.tsvtz.tsvtz-hinweise .tsvtz-hinweise__titel { margin: 0; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.tsvtz-hinweise__stand { margin-left: auto !important; font-size: 0.8125rem; font-weight: 600; color: var(--tsvtz-text3); }
.tsvtz-hinweise__liste { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.tsvtz-hinweis { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; margin: 0; padding: 0.875rem 0; border-bottom: 1px solid var(--tsvtz-linie); }
.tsvtz-hinweis:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.tsvtz-hinweis__meta { display: flex; align-items: center; gap: 0.625rem; min-height: 1.55rem; }
.tsvtz-hinweis__datum { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.tsvtz-hinweis__text { font-size: 1rem; line-height: 1.55; }
.tsvtz-hinweis__link { font-weight: 700; color: inherit; white-space: nowrap; }
.tsvtz-hinweis--leer .tsvtz-hinweis__text { grid-column: 1 / -1; color: var(--tsvtz-text2); }

.tsvtz-hinweise--dunkel { background: #000; color: #fff; border-color: #000; border-radius: 28px; }
.tsvtz-hinweise--dunkel .tsvtz-hinweise__label { background: #fff; color: #000; }
.tsvtz-hinweise--dunkel .tsvtz-hinweise__label::before { box-shadow: 0 0 0 1.5px #000; }
.tsvtz-hinweise--dunkel .tsvtz-hinweise__titel { color: #fff; }
.tsvtz-hinweise--dunkel .tsvtz-hinweise__stand { color: #bdbdbd; }
.tsvtz-hinweise--dunkel .tsvtz-hinweis, .tsvtz-hinweise--dunkel .tsvtz-hinweise__kopf { border-color: rgba(255, 255, 255, 0.18); }
.tsvtz-hinweise--dunkel .tsvtz-pill { background: #fff; color: #000; }
.tsvtz-hinweise--dunkel .tsvtz-pill--neu, .tsvtz-hinweise--dunkel .tsvtz-pill--info { background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.tsvtz-hinweise--dunkel .tsvtz-hinweis__text { color: #e6e4e4; }
.tsvtz-hinweise--dunkel .tsvtz-hinweis__text strong, .tsvtz-hinweise--dunkel a { color: #fff; }

/* Sportfarben der Abteilungen (wie im Theme): setzen den Akzent für Eyebrow-Balken und Punkte */
.tsvtz.tsv-sport-basketball, .tsvtz .tsv-sport-basketball { --tsv-accent: #ff870d; --tsv-accent-dunkel: #ff870d; }
.tsvtz.tsv-sport-fussball, .tsvtz .tsv-sport-fussball { --tsv-accent: #ffffff; --tsv-accent-dunkel: #ffffff; }
.tsvtz.tsv-sport-handball, .tsvtz .tsv-sport-handball { --tsv-accent: #ed1c24; --tsv-accent-dunkel: #ed1c24; }
.tsvtz.tsv-sport-reha, .tsvtz .tsv-sport-reha { --tsv-accent: #808080; --tsv-accent-dunkel: #808080; }
.tsvtz.tsv-sport-schach, .tsvtz .tsv-sport-schach { --tsv-accent: #03ab17; --tsv-accent-dunkel: #03ab17; }
.tsvtz.tsv-sport-schwimmen, .tsvtz .tsv-sport-schwimmen { --tsv-accent: #45b2e0; --tsv-accent-dunkel: #45b2e0; }
.tsvtz.tsv-sport-spotlight, .tsvtz .tsv-sport-spotlight { --tsv-accent: #662e8f; --tsv-accent-dunkel: #662e8f; }
.tsvtz.tsv-sport-ski-und-bergsport, .tsvtz .tsv-sport-ski-und-bergsport { --tsv-accent: #1f1775; --tsv-accent-dunkel: #1f1775; }
.tsvtz.tsv-sport-tang-soo-do, .tsvtz .tsv-sport-tang-soo-do { --tsv-accent: linear-gradient(90deg, #cd2e3a 50%, #005192 50%); --tsv-accent-dunkel: linear-gradient(90deg, #cd2e3a 50%, #005192 50%); }
.tsvtz.tsv-sport-tischtennis, .tsvtz .tsv-sport-tischtennis { --tsv-accent: #006938; --tsv-accent-dunkel: #006938; }
.tsvtz.tsv-sport-turnen, .tsvtz .tsv-sport-turnen { --tsv-accent: #820019; --tsv-accent-dunkel: #820019; }
.tsvtz.tsv-sport-volleyball, .tsvtz .tsv-sport-volleyball { --tsv-accent: #303de8; --tsv-accent-dunkel: #303de8; }
.tsvtz .tsvtz-eyebrow { display: flex; align-items: center; gap: 0.625rem; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--tsvtz-text2); }
.tsvtz .tsvtz-eyebrow::before { content: ""; flex: 0 0 28px; width: 28px; height: 5px; border-radius: 5px; background: var(--tsv-accent, #000); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }

/* Der Abschnitt um einen Block mit gewählter Abteilung übernimmt deren Farbe (Eyebrow der Überschrift usw.) */
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-basketball) { --tsv-accent: #ff870d; --tsv-accent-dunkel: #ff870d; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-fussball) { --tsv-accent: #ffffff; --tsv-accent-dunkel: #ffffff; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-handball) { --tsv-accent: #ed1c24; --tsv-accent-dunkel: #ed1c24; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-reha) { --tsv-accent: #808080; --tsv-accent-dunkel: #808080; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-schach) { --tsv-accent: #03ab17; --tsv-accent-dunkel: #03ab17; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-schwimmen) { --tsv-accent: #45b2e0; --tsv-accent-dunkel: #45b2e0; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-spotlight) { --tsv-accent: #662e8f; --tsv-accent-dunkel: #662e8f; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-ski-und-bergsport) { --tsv-accent: #1f1775; --tsv-accent-dunkel: #1f1775; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-tang-soo-do) { --tsv-accent: linear-gradient(90deg, #cd2e3a 50%, #005192 50%); --tsv-accent-dunkel: linear-gradient(90deg, #cd2e3a 50%, #005192 50%); }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-tischtennis) { --tsv-accent: #006938; --tsv-accent-dunkel: #006938; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-turnen) { --tsv-accent: #820019; --tsv-accent-dunkel: #820019; }
:is(.wp-block-group, section, div):has(> .tsvtz.tsv-sport-volleyball) { --tsv-accent: #303de8; --tsv-accent-dunkel: #303de8; }

/* Absatz-Stile „Markierung …“ (für die Hinweis-Box zum Selbstbearbeiten, auch sonst nutzbar) */
p.is-style-tsvtz-markierung, p.is-style-tsvtz-markierung-hell, p.is-style-tsvtz-markierung-rahmen { display: inline-flex; align-items: center; gap: 0.375rem; width: fit-content; margin: 0; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
p.is-style-tsvtz-markierung { background: #000; color: #fff; }
p.is-style-tsvtz-markierung-hell { background: var(--wp--preset--color--grau-hell, #efeeee); color: #000; }
p.is-style-tsvtz-markierung-hell::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tsv-accent, #000); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
p.is-style-tsvtz-markierung-rahmen { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
.tsvtz-hinweise--dunkel p.is-style-tsvtz-markierung { background: #fff; color: #000; }
.tsvtz-hinweise--dunkel :is(p.is-style-tsvtz-markierung-hell, p.is-style-tsvtz-markierung-rahmen) { background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.tsvtz-hinweise--dunkel { color: #fff; }
.tsvtz-hinweise--dunkel p.tsvtz-hinweis__text { color: #e6e4e4; }

@media (max-width: 781.98px) {
	.tsvtz-wochentag { grid-template-columns: 1fr; gap: 0.5rem; }
	.tsvtz-termin { grid-template-columns: 1fr; gap: 0.125rem; }
	.tsvtz-hinweise { padding: 1.125rem 1.25rem 1rem; border-radius: 20px; }
	.tsvtz-hinweise__stand { margin-left: 0 !important; width: 100%; }
	.tsvtz-hinweise__liste { grid-template-columns: minmax(0, 1fr); }
	.tsvtz-hinweis { grid-template-columns: minmax(0, 1fr); row-gap: 0.375rem; }
	.tsvtz-hinweis__text { font-size: 0.9375rem; }
	.tsvtz-karte { padding: 1.25rem; border-radius: 20px; }
	.tsvtz-meldung { flex-direction: column; gap: 0.25rem; }
}
