/**
 * SG CZ Spielbetrieb – Tabellen und Spielpläne.
 * Farben über CSS-Variablen anpassbar, Schrift wird vom Theme übernommen.
 */
.sgcz-tt {
	--sgcz-tt-akzent: var(--sgcz-gruen, #4e9f4b);
	--sgcz-tt-akzent-hell: var(--sgcz-gruen-hell, #edf6ec);
	--sgcz-tt-linie: #e3e6e3;
	--sgcz-tt-text-leise: #5f6b5f;
	--sgcz-tt-sieg: #2e7d32;
	--sgcz-tt-niederlage: #b3261e;
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
}

.sgcz-tt__liga {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sgcz-tt-text-leise);
}

.sgcz-tt__liga a {
	color: inherit;
	text-decoration: none;
}

.sgcz-tt__liga a:hover,
.sgcz-tt__liga a:focus-visible {
	color: var(--sgcz-tt-akzent);
	text-decoration: underline;
}

.sgcz-tt__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sgcz-tt__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
}

.sgcz-tt__table th,
.sgcz-tt__table td {
	padding: 10px 8px;
	border: 0;
	border-bottom: 1px solid var(--sgcz-tt-linie);
	text-align: left;
	vertical-align: top;
	background: none;
}

.sgcz-tt__table th {
	font-size: 14px;
	font-weight: 600;
	color: var(--sgcz-tt-text-leise);
	white-space: nowrap;
}

.sgcz-tt__table abbr {
	text-decoration: none;
	cursor: help;
}

.sgcz-tt__num {
	text-align: right !important;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sgcz-tt__strong {
	font-weight: 700;
}

.sgcz-tt__own td {
	background: var(--sgcz-tt-akzent-hell);
	font-weight: 700;
}

.sgcz-tt__datum {
	white-space: nowrap;
}

.sgcz-tt__hinweis,
.sgcz-tt__staffel-mobil {
	display: block;
	font-size: 14px;
	color: var(--sgcz-tt-text-leise);
	white-space: normal;
}

.sgcz-tt__staffel-mobil {
	display: none;
}

.sgcz-tt__gegen {
	padding: 0 4px;
	color: var(--sgcz-tt-text-leise);
}

.sgcz-tt__ergebnis a {
	color: inherit;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
}

.sgcz-tt__sieg .sgcz-tt__ergebnis {
	color: var(--sgcz-tt-sieg);
	font-weight: 700;
}

.sgcz-tt__niederlage .sgcz-tt__ergebnis {
	color: var(--sgcz-tt-niederlage);
	font-weight: 700;
}

.sgcz-tt__quelle {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--sgcz-tt-text-leise);
}

.sgcz-tt__quelle--warnung {
	color: var(--sgcz-tt-niederlage);
}

.sgcz-tt--fehler p,
.sgcz-tt--leer p {
	margin: 0;
	color: var(--sgcz-tt-text-leise);
}

.sgcz-tt--mannschaften {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.sgcz-tt__mannschaft {
	margin: 0;
	border-bottom: 1px solid var(--sgcz-tt-linie);
}

.sgcz-tt__mannschaft:last-child {
	border-bottom: 0;
}

.sgcz-tt__mannschaft-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 12px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s;
}

.sgcz-tt__mannschaft-link:hover,
.sgcz-tt__mannschaft-link:focus-visible {
	background-color: var(--sgcz-tt-akzent-hell);
	color: inherit;
	text-decoration: none;
}

.sgcz-tt__mannschaft-link:focus-visible {
	outline: 2px solid var(--sgcz-tt-akzent);
	outline-offset: 2px;
}

.sgcz-tt__mannschaft-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sgcz-tt__mannschaft-name {
	font-weight: 700;
}

.sgcz-tt__mannschaft-liga {
	font-size: 14px;
	color: var(--sgcz-tt-text-leise);
}

.sgcz-tt__details {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 2px solid var(--sgcz-tt-akzent);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sgcz-tt-akzent);
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.sgcz-tt__mannschaft-link:hover .sgcz-tt__details,
.sgcz-tt__mannschaft-link:focus-visible .sgcz-tt__details {
	background-color: var(--sgcz-tt-akzent);
	color: #fff;
}

.sgcz-tt__details-icon {
	display: block;
	flex-shrink: 0;
}

.sgcz-tt__begegnung a:hover,
.sgcz-tt__begegnung a:focus-visible {
	color: var(--sgcz-tt-akzent);
	text-decoration: underline;
}

.sgcz-tt__begegnung a {
	color: inherit;
	text-decoration: none;
}

.sgcz-tt__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	.sgcz-tt__mannschaft-link {
		padding: 12px 8px;
	}

	.sgcz-tt__details {
		padding: 6px 10px;
	}

	.sgcz-tt__optional {
		display: none;
	}

	.sgcz-tt__staffel-mobil {
		display: block;
	}

	.sgcz-tt__table th,
	.sgcz-tt__table td {
		padding: 10px 6px;
	}

	.sgcz-tt__begegnung span:not(.sgcz-tt__staffel-mobil):not(.sgcz-tt__sr) {
		display: block;
	}

	.sgcz-tt__gegen {
		display: none !important;
	}
}
