/* HKOG Tabellen & Spielpläne (handball4all) */
.hkog-h4a {
	--h4a-navy: var(--hk-navy, #152751);
	--h4a-yellow: var(--hk-yellow, #ffcf00);
	--h4a-muted: var(--hk-muted, #5a6275);
	--h4a-line: var(--hk-line, #e1e4ec);
	--h4a-paper: var(--hk-paper, #f2f3f7);
	--h4a-cond: var(--hk-cond, "Arial Narrow", sans-serif);
	color: var(--h4a-navy);
}
.hkog-h4a *,
.hkog-h4a *::before,
.hkog-h4a *::after { box-sizing: border-box; }

/* Kopf */
.hkog-h4a__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 16px; }
.hkog-h4a .hkog-h4a__title { margin: 0; font-size: 1.35em; line-height: 1.15; }
.hkog-h4a__season { font-size: .85em; color: var(--h4a-muted); }
.hkog-h4a .hkog-h4a__sub { margin: 22px 0 10px; font-family: var(--h4a-cond); font-size: 1em; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; color: var(--h4a-navy); }
.hkog-h4a__head + .hkog-h4a__sub,
.hkog-h4a > .hkog-h4a__sub:first-child { margin-top: 0; }

/* Tabelle */
.hkog-h4a__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; box-shadow: 0 10px 30px rgba(15, 29, 62, .08); }
.hkog-h4a__table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.3; }
.hkog-h4a__table th,
.hkog-h4a__table td { padding: 11px 10px; border: 0; border-bottom: 1px solid var(--h4a-line); text-align: center; white-space: nowrap; }
.hkog-h4a__table th { background: var(--h4a-navy); color: #fff; font-family: var(--h4a-cond); font-size: 14px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; }
.hkog-h4a__table .c-team { width: 100%; text-align: left; white-space: normal; }
.hkog-h4a__table .c-pos { width: 1%; font-weight: 700; }
.hkog-h4a__table .c-pts { font-weight: 700; }
.hkog-h4a__table tbody tr:last-child td { border-bottom: 0; }
.hkog-h4a__table tr.is-own td { background: #fff6cc; font-weight: 700; }
.hkog-h4a__table tr.is-own .c-pos { box-shadow: inset 4px 0 0 var(--h4a-yellow); }

/* Spiele */
.hkog-h4a__games { margin: 0; padding: 0; list-style: none; }
.hkog-h4a__game { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; padding: 12px 14px; background: #fff; border-left: 4px solid var(--h4a-line); box-shadow: 0 6px 18px rgba(15, 29, 62, .06); }
.hkog-h4a__game.is-win { border-left-color: #2e9e5b; }
.hkog-h4a__game.is-loss { border-left-color: #d9534f; }
.hkog-h4a__game.is-draw { border-left-color: var(--h4a-yellow); }
.hkog-h4a__game:not(.is-done) { border-left-color: var(--h4a-navy); }
.hkog-h4a__game .g-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; padding-right: 12px; border-right: 1px solid var(--h4a-line); line-height: 1.1; text-align: center; }
.hkog-h4a__game .g-wday { font-size: 12px; color: var(--h4a-muted); text-transform: uppercase; }
.hkog-h4a__game .g-day { font-family: var(--h4a-cond); font-size: 20px; font-weight: 800; font-style: italic; }
.hkog-h4a__game .g-time { margin-top: 2px; font-size: 12px; color: var(--h4a-muted); white-space: nowrap; }
.hkog-h4a__game .g-body { flex: 1 1 auto; min-width: 0; }
.hkog-h4a__game .g-teams { font-size: 15px; line-height: 1.3; }
.hkog-h4a__game .g-team.is-own { font-weight: 700; }
.hkog-h4a__game .g-sep { margin: 0 2px; color: var(--h4a-muted); }
.hkog-h4a__game .g-meta { margin-top: 3px; font-size: 13px; color: var(--h4a-muted); }
.hkog-h4a__game .g-badge { display: inline-block; margin-right: 4px; padding: 1px 7px; font-family: var(--h4a-cond); font-size: 11px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; color: var(--h4a-navy); background: var(--h4a-yellow); }
.hkog-h4a__game .g-result { flex: 0 0 auto; }
.hkog-h4a__game .g-score { font-family: var(--h4a-cond); font-size: 22px; font-weight: 800; font-style: italic; white-space: nowrap; }
.hkog-h4a__game .g-score--open { color: var(--h4a-muted); opacity: .35; }

.hkog-h4a__all { margin-top: 14px; }
.hkog-h4a__all > summary { cursor: pointer; font-weight: 700; color: var(--h4a-navy); }
.hkog-h4a__all > summary:hover,
.hkog-h4a__all > summary:focus-visible { text-decoration: underline; }
.hkog-h4a__all[open] > summary { margin-bottom: 12px; }

.hkog-h4a__note { margin: 10px 0 0; font-size: 14px; color: var(--h4a-muted); }
.hkog-h4a a.hkog-h4a__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--h4a-navy); text-decoration: none; border-bottom: 2px solid var(--h4a-yellow); }
.hkog-h4a a.hkog-h4a__more::after { content: " \2197"; }
.hkog-h4a a.hkog-h4a__more:hover { color: var(--h4a-navy); border-bottom-color: var(--h4a-navy); }
.hkog-h4a--empty { padding: 18px 20px; background: #fff; border-left: 4px solid var(--h4a-yellow); }
.hkog-h4a--empty p { margin: 0; }

@media (max-width: 600px) {
	.hkog-h4a__table { font-size: 14px; }
	.hkog-h4a__table th,
	.hkog-h4a__table td { padding: 10px 6px; }
	.hkog-h4a__table .c-opt { display: none; }
	.hkog-h4a__game { gap: 10px; padding: 10px 12px; }
	.hkog-h4a__game .g-date { flex-basis: 54px; padding-right: 10px; }
	.hkog-h4a__game .g-score { font-size: 18px; }
}
