/* TVK Intern – Frontend
   Vereinsfarben: Blau #1a4f8a, Orange #f5a623
   Bewusst eigenständig gehalten, damit Astra- und Elementor-Updates
   das Layout des internen Bereichs nicht verschieben. */

.tvk-bereich,
.tvk-login {
	--tvk-blau: #1a4f8a;
	--tvk-blau-tief: #123a68;
	--tvk-orange: #f5a623;
	--tvk-flaeche: #ffffff;
	--tvk-flaeche-2: #eef2f7;
	--tvk-linie: #dde4ed;
	--tvk-linie-stark: #c3cfdd;
	--tvk-tinte: #152534;
	--tvk-leise: #5b6c80;
	--tvk-da: #1f7a4d;
	--tvk-da-grund: #e4f3ea;
	--tvk-entsch: #4c5f75;
	--tvk-entsch-grund: #e7ecf3;
	--tvk-fehlt: #a5342f;
	--tvk-fehlt-grund: #f8e7e6;

	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	color: var(--tvk-tinte);
	font-size: 16px;
	line-height: 1.5;
}

.tvk-bereich *,
.tvk-login * { box-sizing: border-box; }

.tvk-gruss h2 { margin: 0; font-size: 25px; line-height: 1.15; }
.tvk-gruss p { margin: 4px 0 0; color: var(--tvk-leise); font-size: 14px; }

.tvk-titel {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--tvk-leise);
	margin-bottom: -8px;
}

.tvk-karte {
	background: var(--tvk-flaeche-2);
	border: 1px solid var(--tvk-linie);
	border-radius: 14px;
	padding: 16px;
}
.tvk-hinweis p { margin: 0 0 8px; }
.tvk-hinweis p:last-child { margin-bottom: 0; }

.tvk-knopf {
	display: inline-block;
	background: var(--tvk-blau);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}
.tvk-knopf:hover, .tvk-knopf:focus { color: #fff; background: var(--tvk-blau-tief); }
.tvk-knopf-dunkel { background: #241703; }
.tvk-knopf-dunkel:hover, .tvk-knopf-dunkel:focus { background: #000; }

/* Aufgabenkarte */
.tvk-aufgabe {
	background: linear-gradient(180deg, #f5a623 0%, #c9861a 100%);
	color: #241703;
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tvk-aufgabe .tvk-marke {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	opacity: .75;
}
.tvk-aufgabe strong { display: block; font-size: 19px; }
.tvk-aufgabe em { font-style: normal; font-size: 14px; opacity: .8; }
.tvk-aufgabe .tvk-knopf { text-align: center; }

/* Kennzahlen */
.tvk-kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tvk-kz {
	border: 1px solid var(--tvk-linie);
	border-radius: 14px;
	padding: 12px 10px;
	background: var(--tvk-flaeche);
}
.tvk-kz b { display: block; font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tvk-kz span { font-size: 11.5px; color: var(--tvk-leise); }

/* Listen */
.tvk-liste {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--tvk-linie);
	border: 1px solid var(--tvk-linie);
	border-radius: 14px;
	overflow: hidden;
}
.tvk-zeile {
	background: var(--tvk-flaeche);
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.tvk-datum { text-align: center; min-width: 42px; line-height: 1.05; font-weight: 700; }
.tvk-datum b { display: block; font-size: 19px; }
.tvk-datum span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--tvk-leise); }
.tvk-datum i {
	display: block;
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--tvk-leise);
	opacity: .8;
	font-variant-numeric: tabular-nums;
}

/* Jahreswechsel in der Terminliste */
.tvk-jahrestrenner {
	background: var(--tvk-flaeche-2);
	padding: 7px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--tvk-leise);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 12px;
}
.tvk-jahrestrenner::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--tvk-linie-stark);
}
.tvk-text { flex: 1; min-width: 0; }
.tvk-text b { display: block; font-weight: 600; font-size: 15px; }
.tvk-text span { display: block; font-size: 13px; color: var(--tvk-leise); }

.tvk-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.tvk-meta:empty { display: none; }

.tvk-marker {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 6px;
	white-space: nowrap;
}
.tvk-m-intern { background: var(--tvk-flaeche-2); color: var(--tvk-leise); border: 1px solid var(--tvk-linie-stark); }
.tvk-m-oeff { background: var(--tvk-da-grund); color: var(--tvk-da); }

/* Kacheln */
.tvk-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tvk-kachel {
	background: var(--tvk-flaeche-2);
	border: 1px solid var(--tvk-linie);
	border-radius: 14px;
	padding: 12px;
}
.tvk-kachel b { display: block; font-size: 15px; }
.tvk-kachel span { font-size: 12.5px; color: var(--tvk-leise); }

/* Erfassung */
.tvk-abt-wahl { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.tvk-abt-wahl button {
	flex: 0 0 auto;
	border: 1px solid var(--tvk-linie-stark);
	background: var(--tvk-flaeche);
	border-radius: 999px;
	padding: 7px 13px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	color: var(--tvk-tinte);
}
.tvk-abt-wahl button[aria-pressed="true"] { background: var(--tvk-blau); border-color: var(--tvk-blau); color: #fff; }

.tvk-einheit { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tvk-einheit b { font-size: 17px; }
.tvk-datumwahl input {
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 8px;
	padding: 6px 10px;
	font: inherit;
	font-size: 14px;
	background: var(--tvk-flaeche);
	color: var(--tvk-tinte);
}

.tvk-schnell { display: flex; gap: 8px; }
.tvk-schnell button {
	flex: 1;
	border: 1px solid var(--tvk-linie-stark);
	background: var(--tvk-flaeche);
	border-radius: 10px;
	padding: 9px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	color: var(--tvk-tinte);
}

.tvk-person { background: var(--tvk-flaeche); padding: 9px 12px; display: flex; align-items: center; gap: 11px; }
.tvk-kuerzel {
	width: 36px; height: 36px; flex: 0 0 36px;
	border-radius: 50%;
	background: var(--tvk-flaeche-2);
	border: 1px solid var(--tvk-linie-stark);
	display: grid; place-items: center;
	font-size: 12.5px; font-weight: 700;
	color: var(--tvk-leise);
}
.tvk-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tvk-schalter { display: flex; gap: 4px; flex: 0 0 auto; }
.tvk-schalter button {
	width: 40px; height: 40px;
	border-radius: 10px;
	border: 1px solid var(--tvk-linie-stark);
	background: var(--tvk-flaeche);
	cursor: pointer;
	font-size: 16px; line-height: 1;
	display: grid; place-items: center;
	color: var(--tvk-leise);
	transition: transform .12s ease;
}
.tvk-schalter button:active { transform: scale(.93); }
.tvk-schalter button[aria-pressed="true"][data-wert="da"] { background: var(--tvk-da-grund); border-color: var(--tvk-da); color: var(--tvk-da); }
.tvk-schalter button[aria-pressed="true"][data-wert="entsch"] { background: var(--tvk-entsch-grund); border-color: var(--tvk-entsch); color: var(--tvk-entsch); }
.tvk-schalter button[aria-pressed="true"][data-wert="fehlt"] { background: var(--tvk-fehlt-grund); border-color: var(--tvk-fehlt); color: var(--tvk-fehlt); }

.tvk-zusatz { display: flex; flex-direction: column; gap: 8px; }
.tvk-zusatz label { font-size: 12.5px; color: var(--tvk-leise); font-weight: 600; }
.tvk-zusatz input, .tvk-zusatz textarea {
	width: 100%;
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--tvk-flaeche);
	color: var(--tvk-tinte);
	font: inherit;
	font-size: 14px;
	resize: vertical;
}

.tvk-sichern {
	position: sticky;
	bottom: 0;
	background: var(--tvk-flaeche);
	border-top: 1px solid var(--tvk-linie);
	padding: 12px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}
.tvk-zaehler { font-size: 13px; color: var(--tvk-leise); font-variant-numeric: tabular-nums; line-height: 1.25; }
.tvk-zaehler b { display: block; font-size: 16px; color: var(--tvk-tinte); }
.tvk-sichern .tvk-knopf { margin-left: auto; }

.tvk-meldung { min-height: 1.4em; font-size: 14px; font-weight: 600; margin: 0; }
.tvk-meldung.tvk-gut { color: var(--tvk-da); }
.tvk-meldung.tvk-schlecht { color: var(--tvk-fehlt); }

@media (prefers-reduced-motion: reduce) {
	.tvk-schalter button { transition: none; }
}

@media (max-width: 480px) {
	.tvk-kennzahlen { grid-template-columns: 1fr 1fr 1fr; }
	.tvk-kacheln { grid-template-columns: 1fr; }
}


/* ============================================================
   Anmeldung im Vereinsdesign
   ============================================================ */

.tvk-login {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: none;
	padding: 8px 0 24px;
}

.tvk-login-karte {
	width: 100%;
	max-width: 400px;
	background: var(--tvk-flaeche);
	border: 1px solid var(--tvk-linie);
	border-radius: 16px;
	padding: 28px 26px 22px;
	box-shadow: 0 1px 2px rgba(18,38,64,.06), 0 10px 30px rgba(18,38,64,.09);
}

.tvk-login-karte h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	color: var(--tvk-tinte);
}

.tvk-login-unter {
	margin: 4px 0 20px;
	font-size: 13.5px;
	color: var(--tvk-leise);
}

.tvk-login-fehler {
	background: var(--tvk-fehlt-grund);
	border-left: 3px solid var(--tvk-fehlt);
	color: var(--tvk-fehlt);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 12px;
	border-radius: 8px;
	margin: 0 0 16px;
}

/* WordPress-Formular in Vereinsoptik bringen */
.tvk-login .login-username,
.tvk-login .login-password {
	margin-bottom: 14px;
}

.tvk-login label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--tvk-leise);
	margin-bottom: 5px;
}

.tvk-login input[type="text"],
.tvk-login input[type="password"] {
	width: 100%;
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px; /* verhindert das Hineinzoomen auf dem iPhone */
	background: var(--tvk-flaeche);
	color: var(--tvk-tinte);
}

.tvk-login input[type="text"]:focus,
.tvk-login input[type="password"]:focus {
	outline: 2px solid var(--tvk-orange);
	outline-offset: 1px;
	border-color: var(--tvk-blau);
}

.tvk-login .login-remember {
	margin: 4px 0 18px;
}

.tvk-login .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--tvk-tinte);
	margin: 0;
}

.tvk-login .login-remember input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.tvk-login .login-submit input[type="submit"],
.tvk-login #wp-submit {
	width: 100%;
	background: var(--tvk-blau);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease;
}

.tvk-login #wp-submit:hover,
.tvk-login #wp-submit:focus {
	background: var(--tvk-blau-tief);
}

.tvk-login-hilfe {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--tvk-linie);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--tvk-leise);
}

@media (prefers-reduced-motion: reduce) {
	.tvk-login #wp-submit { transition: none; }
}

/* ============================================================
   Formulare im internen Bereich (Passwort ändern)
   ============================================================ */

.tvk-formular {
	background: var(--tvk-flaeche);
	border: 1px solid var(--tvk-linie);
	border-radius: 16px;
	padding: 22px 20px 18px;
	max-width: 420px;
}

.tvk-feld { margin: 0 0 16px; }

.tvk-feld label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--tvk-leise);
	margin-bottom: 5px;
}

.tvk-feld input {
	width: 100%;
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	background: var(--tvk-flaeche);
	color: var(--tvk-tinte);
}

.tvk-feld input:focus {
	outline: 2px solid var(--tvk-orange);
	outline-offset: 1px;
	border-color: var(--tvk-blau);
}

.tvk-feldhilfe {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--tvk-leise);
}

.tvk-formular button.tvk-knopf { width: 100%; }

.tvk-wichtig {
	background: #fdf4e3;
	border-color: #e8cf9a;
	border-left: 3px solid var(--tvk-orange);
}

.tvk-erfolg {
	background: var(--tvk-da-grund);
	border-color: var(--tvk-da);
	color: var(--tvk-da);
	font-weight: 600;
}
.tvk-erfolg p { margin: 0; }

/* Fußzeile des internen Bereichs */
.tvk-fusszeile {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding-top: 16px;
	border-top: 1px solid var(--tvk-linie);
	font-size: 14px;
}

.tvk-fusszeile a {
	color: var(--tvk-blau);
	text-decoration: none;
	font-weight: 600;
}

.tvk-fusszeile a:hover,
.tvk-fusszeile a:focus { text-decoration: underline; }


/* ============================================================
   Menüeintrag „Intern“
   ============================================================ */

/* Der Anmelde-Eintrag hebt sich dezent ab, ohne mit dem
   „Mitglied werden“-Knopf zu konkurrieren. */
.main-header-menu .tvk-menue-anmelden > a,
.ast-builder-menu .tvk-menue-anmelden > a {
	opacity: .85;
}

.main-header-menu .tvk-menue-intern > a,
.ast-builder-menu .tvk-menue-intern > a {
	font-weight: 700;
}

/* ============================================================
   Terminkalender
   ============================================================ */

.tvk-kalenderbereich { max-width: 900px; }

.tvk-kal-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.tvk-kal-umschalter {
	display: inline-flex;
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 999px;
	overflow: hidden;
}

.tvk-kal-umschalter a {
	padding: 7px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tvk-tinte);
	text-decoration: none;
	background: var(--tvk-flaeche);
}

.tvk-kal-umschalter a.aktiv { background: var(--tvk-blau); color: #fff; }

.tvk-kal-nav {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-size: 16px;
}
.tvk-kal-nav strong { min-width: 150px; text-align: center; }
.tvk-kal-nav a {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 9px;
	color: var(--tvk-tinte);
	text-decoration: none;
	font-size: 20px; line-height: 1;
}
.tvk-kal-nav a:hover { background: var(--tvk-flaeche-2); }

.tvk-kal-gitter {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: var(--tvk-linie);
	border: 1px solid var(--tvk-linie);
	border-radius: 12px;
	overflow: hidden;
}

.tvk-kal-wochentag {
	background: var(--tvk-flaeche-2);
	padding: 7px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tvk-leise);
	text-align: center;
}

.tvk-kal-tag {
	background: var(--tvk-flaeche);
	min-height: 92px;
	padding: 5px 5px 7px;
}
.tvk-kal-leer { background: var(--tvk-flaeche-2); opacity: .5; min-height: 60px; }
.tvk-kal-wochenende { background: #fafbfd; }
.tvk-kal-heute { box-shadow: inset 0 0 0 2px var(--tvk-orange); }

.tvk-kal-zahl {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--tvk-leise);
	margin-bottom: 4px;
	font-variant-numeric: tabular-nums;
}
.tvk-kal-heute .tvk-kal-zahl { color: var(--tvk-tinte); }

.tvk-kal-eintrag {
	border-left: 3px solid var(--tvk-blau);
	background: var(--tvk-flaeche-2);
	border-radius: 5px;
	padding: 4px 5px;
	margin-bottom: 3px;
	font-size: 11.5px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.tvk-kal-eintrag b { font-variant-numeric: tabular-nums; }
.tvk-kal-punkt { display: none; }

.tvk-kal-marker {
	display: inline-block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 1px 4px;
	border-radius: 4px;
	vertical-align: middle;
}

.tvk-kal-legende {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 13px;
	color: var(--tvk-leise);
}
.tvk-kal-legende span { display: inline-flex; align-items: center; gap: 7px; }
.tvk-kal-legende i {
	width: 12px; height: 12px;
	border-radius: 3px;
	display: inline-block;
}

.tvk-neu > summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--tvk-blau);
	padding: 10px 0;
	list-style: none;
}
.tvk-neu > summary::-webkit-details-marker { display: none; }
.tvk-neu > summary::before { content: "+ "; }
.tvk-neu[open] > summary::before { content: "– "; }

.tvk-feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tvk-feld select {
	width: 100%;
	border: 1px solid var(--tvk-linie-stark);
	border-radius: 10px;
	padding: 11px 12px;
	font: inherit;
	font-size: 15px;
	background: var(--tvk-flaeche);
	color: var(--tvk-tinte);
}

.tvk-loeschen {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tvk-fehlt);
	text-decoration: none;
	white-space: nowrap;
}
.tvk-loeschen:hover { text-decoration: underline; }

/* Bearbeiten */
a.tvk-kal-eintrag {
	display: block;
	color: inherit;
	text-decoration: none;
}
a.tvk-kal-eintrag:hover,
a.tvk-kal-eintrag:focus-visible {
	background: var(--tvk-flaeche);
	box-shadow: 0 1px 4px rgba(20, 40, 70, .16);
	color: inherit;
}
.tvk-kal-offen {
	background: var(--tvk-flaeche);
	box-shadow: 0 0 0 2px var(--tvk-blau);
}

.tvk-zeile-klickbar .tvk-text b a {
	color: inherit;
	text-decoration: none;
}
.tvk-zeile-klickbar .tvk-text b a:hover,
.tvk-zeile-klickbar .tvk-text b a:focus-visible {
	color: var(--tvk-blau);
	text-decoration: underline;
}

.tvk-aktionen {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}
.tvk-bearbeiten-link {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tvk-blau);
	text-decoration: none;
}
.tvk-bearbeiten-link:hover { text-decoration: underline; }

.tvk-knopfzeile {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.tvk-abbrechen {
	font-size: 13px;
	font-weight: 600;
	color: var(--tvk-leise);
	text-decoration: none;
}
.tvk-abbrechen:hover { text-decoration: underline; }

.tvk-neu.tvk-bearbeiten {
	border: 1px solid var(--tvk-blau);
	border-radius: 12px;
	padding: 2px 16px 10px;
	background: var(--tvk-flaeche);
}
.tvk-neu.tvk-bearbeiten > summary::before { content: "" ; }

@media (max-width: 620px) {
	.tvk-kal-tag { min-height: 64px; padding: 4px 3px 5px; }
	.tvk-kal-eintrag { font-size: 10px; padding: 2px 3px; }
	.tvk-kal-marker { display: none; }
	.tvk-feldpaar { grid-template-columns: 1fr; }

	/* Terminliste: Datum links, Titel daneben, Kennzeichen und Aktionen
	   in einer zweiten Zeile darunter. Nebeneinander bleibt für den Titel
	   sonst nur eine Spalte von wenigen Zeichen Breite. */
	.tvk-zeile {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 6px;
		align-items: start;
		padding: 12px 12px 12px 14px;
	}
	.tvk-datum {
		grid-column: 1;
		grid-row: 1 / span 2;
		min-width: 0;
		padding-top: 1px;
	}
	.tvk-datum b { font-size: 17px; }
	.tvk-text { grid-column: 2; grid-row: 1; }
	.tvk-text b { font-size: 14.5px; overflow-wrap: anywhere; }
	.tvk-meta {
		grid-column: 2;
		grid-row: 2;
		flex-wrap: wrap;
		gap: 10px 16px;
	}
	.tvk-jahrestrenner { padding-left: 12px; }
}

/* Öffentliche Terminliste */
.tvk-oeffentlich { max-width: none; }
.tvk-zeile.tvk-vergangen { opacity: .55; }
.tvk-m-vorbei {
	background: var(--tvk-flaeche-2);
	color: var(--tvk-leise);
	border: 1px solid var(--tvk-linie-stark);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Sponsoren (öffentlich)
   --------------------------------------------------------------- */

.tvk-sponsoren { max-width: none; margin-bottom: 30px; }
.tvk-sp-titel {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tvk-leise);
	margin: 0 0 22px;
}

/* Band: ruhige Logoreihe, alle gleich groß */
.tvk-sp-band .tvk-sp-liste {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px 26px;
}
.tvk-sp-eintrag {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	height: 90px;
	padding: 10px 14px;
	background: var(--tvk-flaeche);
	border: 1px solid var(--tvk-linie);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.tvk-sp-eintrag:hover,
a.tvk-sp-eintrag:focus-visible {
	border-color: var(--tvk-linie-stark);
	box-shadow: 0 3px 10px rgba(20, 40, 70, .1);
	transform: translateY(-1px);
}
.tvk-sp-bild {
	max-width: 100%;
	max-height: 68px;
	width: auto;
	height: auto;
	object-fit: contain;
	/* Zurückhaltend, bis jemand hinschaut: so schlagen sich bunte
	   Firmenlogos nicht mit den Vereinsfarben. */
	filter: grayscale(1);
	opacity: .78;
	transition: filter .15s, opacity .15s;
}
a.tvk-sp-eintrag:hover .tvk-sp-bild,
a.tvk-sp-eintrag:focus-visible .tvk-sp-bild,
.tvk-sp-karte .tvk-sp-bild { filter: none; opacity: 1; }

.tvk-sp-name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.25;
	text-align: center;
	color: var(--tvk-tinte);
	overflow-wrap: anywhere;
}

/* Karten: Sponsorenseite */
.tvk-sp-karten .tvk-sp-liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 16px;
}
.tvk-sp-karte {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--tvk-flaeche);
	border: 1px solid var(--tvk-linie);
	border-radius: 14px;
	padding: 16px;
}
.tvk-sp-logo {
	flex: 0 0 132px;
	height: 82px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tvk-sp-logo .tvk-sp-bild { max-height: 82px; }
.tvk-sp-logolink { display: flex; align-items: center; justify-content: center; }
.tvk-sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tvk-sp-text b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tvk-sp-ort { display: block; font-size: 13px; color: var(--tvk-leise); margin-top: 2px; }
.tvk-sp-text p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }

/* Fußzeile der Karte: die Adresse, am unteren Rand ausgerichtet */
.tvk-sp-fuss {
	margin-top: auto;
	padding-top: 10px;
}
.tvk-sp-web {
	font-size: 13px;
	font-weight: 600;
	color: var(--tvk-blau);
	text-decoration: none;
}
.tvk-sp-web:hover { text-decoration: underline; }

@media (max-width: 620px) {
	.tvk-sp-band .tvk-sp-liste { gap: 10px 12px; }
	.tvk-sp-eintrag { width: calc(50% - 6px); height: 74px; padding: 8px 10px; }
	.tvk-sp-bild { max-height: 54px; }
	.tvk-sp-name { font-size: 13px; }
	.tvk-sp-karte { padding: 14px; gap: 12px; }
	.tvk-sp-logo { flex-basis: 92px; height: 64px; }
}

/* Knopf zum jüngsten Turnierergebnis */
/* .tvk-bereich ist ein Flex-Container — ohne align-items zöge der Knopf
   über die volle Breite und sähe aus wie ein Abschnittsbalken. */
.tvk-ergebnisknopf {
	max-width: none;
	align-items: center;
	margin-bottom: 26px;
}
.tvk-knopf-gross {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 14px 30px;
	font-size: 17px;
	line-height: 1.3;
	border-radius: 12px;
	box-shadow: 0 3px 12px rgba(26, 79, 138, .25);
	transition: transform .15s, box-shadow .15s;
}
.tvk-knopf-gross span {
	font-size: 13px;
	font-weight: 500;
	opacity: .85;
}
.tvk-knopf-gross:hover,
.tvk-knopf-gross:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(26, 79, 138, .3);
}
@media (max-width: 620px) {
	.tvk-knopf-gross { padding: 12px 20px; font-size: 15.5px; width: 100%; }
}
