.mktt_nav_bar_top {
	display: none;
	justify-content: center;
	width: 100%;
	padding-bottom: 17px;
	tr {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
	}
	td {
		padding: 0;
	}
	tr:first-child {
		width: 100%;
	}
	tr:last-child {
		width: 100%;
	}
	@media screen and (min-width: 768px) {
		display: flex;
		tbody {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 8px;
		}
		tr:first-child,
		tr:last-child {
			width: auto;
			max-width: 100%;
			justify-content: center;
			gap: 5px;
		}
	}
}
.mktt_nav_link_fix {
	display: block;
	width: 100%;
	font-size: clamp(0.75rem, 0.6023rem + 0.4261vw, 0.9375rem);
	line-height: 1.35;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.5rem 1rem;
	margin-bottom: 1rem;
	overflow-wrap: break-word;
	color: var(--color-text-1);
	transition: background var(--transition);
		&.ist-aktuell {
			color: var(--nav-akzent-rot);
		}
	@media screen and (min-width: 768px) {
		position: relative;
		display: inline-block;
		width: auto;
		color: var(--color-text-1);
		background-color: transparent;
		border: none;
		border-radius: 0;
		padding: 0.4rem 0.3rem;
		&::after {
			content: "";
			position: absolute;
			left: 0.2rem;
			bottom: -4px;
			width: 0;
			height: 3px;
			background: var(--nav-akzent-rot);
			border-radius: 2px;
			transition: width var(--transition);
		}
		&.ist-aktuell::after {
			width: 1.25rem;
		}
		&:hover {
			color: var(--color-text-1);
			background-color: transparent;
		}
		&:hover::after {
			width: 3rem;
		}
	}
}
.mktt_nav_link {
	display: block;
	width: auto;
	font-size: clamp(0.75rem, 0.6023rem + 0.4261vw, 0.9375rem);
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	overflow-wrap: break-word;
	color: var(--color-text-1);
	transition:
		background var(--transition),
		color var(--transition);
	@media screen and (min-width: 768px) {
		display: inline-block;
		width: auto;
		background-color: var(--color-primary-3);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-card);
		padding: 0.4rem 0.75rem;
		&:hover {
			background-color: var(--color-primary-3-hover);
		}
	}
	&.mktt_nav_link_active {
		background-color: var(--color-accent-2);
		border-color: var(--color-primary-1-action);
		color: var(--color-text-3);
		font-weight: 700;
		cursor: default;
	}
}
.mktt_menu_open .mktt_nav_bar_top {
	display: flex;
}
#mktt_menu_toggle {
	position: absolute;
	padding: 8px;
	display: flex;
	flex-direction: column;
	bottom: -8px;
	right: 10px;
	width: 30px;
	height: 30px;
	justify-content: space-between;
	background: var(--color-primary-1-action);
	border-radius: 50%;
	border: none;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	cursor: pointer;
	color: var(--color-text-3);
	z-index: 1000;
	span {
		display: block;
		width: 100%;
		height: 2px;
		background: var(--color-text-3);
		transition:
			transform 0.3s ease,
			opacity 0.3s ease;
		transform-origin: center;
	}
	@media screen and (min-width: 768px) {
		display: none;
	}
}
body.mktt_menu_open {
	header {
		position: relative;
	}
	#mktt_menu_toggle span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}
	#mktt_menu_toggle span:nth-child(2) {
		opacity: 0;
	}
	#mktt_menu_toggle span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}
}
nav.mktt_menu_open {
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 70vh;
	justify-content: center;
	background-color: var(--color-primary-3);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	z-index: 999;
	.mktt_nav_bar_top {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		animation: menuOpen 0.5s ease forwards;
		tr {
			flex-direction: column;
			align-items: flex-start;
			width: 100%;
		}
		tr:first-child {
			border-bottom: 1px solid var(--color-text-1);
			padding-bottom: 20px;
			margin-bottom: 20px;
			gap: 0.7rem;
			td:first-child {
				a::before {
					content: url("home.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
				}
			}
			td:nth-child(2) {
				a::before {
					content: url("aktive_tische.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
				}
			}
			td:nth-child(3) {
				a::before {
					content: url("teilnehmerliste.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
				}
			}
			td:nth-child(4) {
				a::before {
					content: url("siegerliste.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
				}
			}
			td:nth-child(5) {
				a::before {
					content: url("zeitplan_hell.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
				}
			}
		}
		tr:last-child {
			padding-bottom: 0px;
			margin-bottom: 0px;
			gap: 0.6rem;
			td:first-child {
				a::before {
					content: url("dameneinzel.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
					font-size: 1.3rem;
					letter-spacing: 0.01em;
				}
			}
			td:nth-child(2) {
				a::before {
					content: url("herreneinzel.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
					font-size: 1.3rem;
					letter-spacing: 0.01em;
				}
			}
			td:nth-child(3) {
				a::before {
					content: url("doppel.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
					font-size: 1.3rem;
					letter-spacing: 0.01em;
				}
			}
			td:nth-child(4) {
				a::before {
					content: url("doppel.svg");
					display: inline-block;
					width: 24px;
					height: 24px;
					margin-right: 8px;
					vertical-align: bottom;
				}
				a {
					font-weight: 500;
					font-size: 1.3rem;
					letter-spacing: 0.01em;
				}
			}
		}
	}
	.mktt_nav_link_fix,
	.mktt_nav_link {
		text-align: center;
		width: 100%;
		font-size: 1.2rem;
		padding: 0.2rem;
		border-radius: var(--radius-card);
		&:hover {
			background-color: var(--color-primary-4-hover);
		}
	}
}
.mktt_menu_open #mktt_menu_toggle {
	position: absolute;
	z-index: 1000;
	span {
		background: var(--color-text-3);
	}
}
@keyframes menuOpen {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
nav.mktt_menu_closing .mktt_nav_bar_top {
	animation: menuClose 0.3s ease forwards;
}
@keyframes menuClose {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}
.mktt_gruppen_ueberschrift {
	display: inline-block;
	width: 100%;
	margin: 0;
	padding: 5px 0 0 5px;
	text-align: center;
	font-size: clamp(0.875rem, 0.5966rem + 0.8523vw, 1.1875rem);
	font-weight: 600;
	line-height: 1.25;
	text-wrap: balance;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	overflow-wrap: break-word;
	border-bottom: 2px solid var(--color-primary-1);
}
.mktt_grouptype {
	display: none;
	padding: 5px 0 0 5px;
	font-size: clamp(0.75rem, 0.6023rem + 0.4261vw, 1rem);
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	overflow-wrap: break-word;
	color: var(--color-primary-2);
	border-bottom: 0.5px solid var(--color-primary-2);
	& + br {
		display: none;
	}
}
body.mktt_page_grouptype_visible .mktt_grouptype {
	display: block;
	padding-top: 20px;
	margin-bottom: 10px;
}
body.mktt_page_grouptype_visible .mktt_grouptype + br {
	display: none;
}
body.mktt_page_grouptype_visible .mktt_active_tables + br + br {
	display: none;
}
body.mktt_page_grouptype_visible .mktt_gruppen_ueberschrift + br + br {
	display: none;
}
body.mktt_page_active_tables .mktt_active_tables + br,
body.mktt_page_active_tables .mktt_active_tables + br + br,
body.mktt_page_active_tables .mktt_active_tables + br + br + br {
	display: none;
}
body.mktt_page_active_tables .mktt_active_tables ~ .mktt_gruppen_ueberschrift {
	margin: 30px 0 27px 0;
}
body.mktt_page_active_tables
	.mktt_active_tables
	~ .mktt_gruppen_ueberschrift
	+ br,
body.mktt_page_active_tables
	.mktt_active_tables
	~ .mktt_gruppen_ueberschrift
	+ br
	+ br {
	display: none;
}
span.mktt_gruppen_links {
	display: none;
	& + br {
		display: none;
	}
}
table.mktt_gruppen_links {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 25px 0;
	gap: 0.35rem 0.9rem;
	width: 100%;
	border: none;
	tbody,
	tr,
	td {
		display: contents;
	}
	&.mktt_ko_link_table {
		margin-bottom: 1.5rem;
		& + br,
		& + br + br {
			display: none;
		}
	}
	&.mktt_gruppenzahlen_hidden {
		display: none;
	}
	&.mktt_gruppen_auswahl_quelle {
		@media screen and (max-width: 767.98px) {
			display: none;
		}
	}
	a,
	.mktt_gruppen_auswahl {
		position: relative;
		display: inline-block;
		white-space: nowrap;
		font-size: clamp(0.6875rem, 0.5398rem + 0.4261vw, 0.875rem);
		line-height: 1.4;
		font-weight: 600;
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		padding: 0.4rem 0.3rem;
		color: var(--color-text-2);
		transition: color var(--transition);
		&::after {
			content: "";
			position: absolute;
			left: 0.2rem;
			bottom: 0;
			width: 0;
			height: 3px;
			background: var(--nav-akzent-rot);
			border-radius: 2px;
			transition: width var(--transition);
		}
		@media (hover: hover) {
			&:hover {
				color: var(--color-text-1);
			}
			&:hover::after {
				width: 3rem;
			}
		}
		&:focus-visible {
			outline: 2px solid var(--nav-akzent-rot);
			outline-offset: 2px;
			border-radius: 2px;
		}
		&.mktt_gruppen_links_active {
			color: var(--color-text-1);
			font-weight: 700;
			cursor: default;
			&::after {
				width: 1.25rem;
			}
		}
	}
	td.mktt_ko_link :is(a, .mktt_gruppen_auswahl) {
		font-weight: 700;
		letter-spacing: 0.06em;
		color: var(--color-text-1);
	}
	.mktt_gruppen_auswahl {
		cursor: pointer;
		select {
			position: absolute;
			inset: 0;
			width: 100%;
			opacity: 0;
			cursor: pointer;
			font-size: 16px;
		}
		&:has(select:focus)::after {
			width: 3rem;
		}
	}
	.mktt_gruppen_pfeil {
		display: inline-block;
		width: 0.4em;
		height: 0.4em;
		margin: 0 0.1em 0.2em 0.5em;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
	}
	@media screen and (max-width: 767.98px) {
		td.mktt_gruppen_zelle > a {
			display: none;
		}
	}
	@media screen and (min-width: 768px) {
		.mktt_gruppen_auswahl {
			display: none;
		}
	}
}
.mktt_gruppen {
	display: block;
	overflow: hidden;
	white-space: normal;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--color-bg-1);
	border: 1.5px solid var(--color-primary-4);
	border-bottom: 2px solid var(--color-primary-4);
	border-radius: var(--radius-card);
	td {
		padding: 2px 5px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		color: var(--color-text-1);
		border-bottom: 1px solid var(--color-border);
		&.mktt_gh_baelle {
			white-space: nowrap;
		}
	}
	tr:last-child td {
		border-bottom: none;
	}
	tr:nth-child(even) td {
		background-color: var(--color-bg-2);
	}
	tr td:nth-child(n + 7) {
		text-align: center !important;
	}
	@media screen and (min-width: 768px) {
		border-radius: var(--radius-card);
	}
}
.mktt_gh_platz {
	@media screen and (min-width: 768px) {
		width: 24px;
	}
}
.mktt_gh_spiele,
.mktt_gh_saetze {
	@media screen and (min-width: 768px) {
		width: 15%;
	}
}
.mktt_gh_baelle {
	@media screen and (min-width: 768px) {
		width: 70px;
	}
}
.mktt_gh_raster {
	@media screen and (min-width: 768px) {
		width: 36px;
		text-align: center;
	}
}
.mktt_gh_spieler {
	width: 100%;
	@media screen and (min-width: 768px) {
		width: 50%;
	}
}
.mktt_gh_verein {
	@media screen and (min-width: 768px) {
		width: 50%;
	}
}
.mktt_gh_spacing {
	display: none;
}
.mktt_gruppenheader {
	background: var(--color-primary-3);
	th,
	td {
		padding: 7px 5px;
		font-size: clamp(0.6875rem, 0.5966rem + 0.2841vw, 0.8125rem);
		line-height: 1.4;
		font-weight: 700;
		white-space: nowrap;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--color-text-2);
		border-bottom: 2px solid var(--color-border);
	}
	th.mktt_gh_spiele,
	th.mktt_gh_saetze,
	th.mktt_gh_baelle,
	th:nth-child(n + 7) {
		text-align: center !important;
	}
}
td.mktt_gruppenname {
	padding: 0;
	background: var(--color-bg-3);
	border-bottom: 2px solid var(--color-border);
}
.mktt_gruppenname a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.75rem 0.75rem 1rem;
	text-decoration: none;
	color: var(--color-text-1);
	transition: background var(--transition);
	&[href]:active {
		background: var(--color-bg-2);
	}
	@media (hover: hover) {
		&[href]:hover {
			background: var(--color-bg-2);
			.mktt_gruppenname_titel::after {
				width: 3rem;
			}
			.mktt_gruppenname_details {
				color: var(--color-text-1);
			}
			.mktt_gruppenname_pfeil {
				transform: translateX(3px);
			}
		}
	}
	&:focus-visible {
		outline: 2px solid var(--nav-akzent-rot);
		outline-offset: -2px;
	}
	&:not([href]) .mktt_gruppenname_titel::after {
		width: 1.25rem;
	}
}
.mktt_gruppenname_titel {
	position: relative;
	font-size: clamp(0.75rem, 0.6023rem + 0.4261vw, 0.9375rem);
	line-height: 1.35;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	&::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: -6px;
		width: 0;
		height: 3px;
		background: var(--nav-akzent-rot);
		border-radius: 2px;
		transition: width var(--transition);
	}
}
.mktt_gruppenname_details {
	flex-shrink: 0;
	font-size: clamp(0.6875rem, 0.5398rem + 0.4261vw, 0.875rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-2);
	transition: color var(--transition);
}
.mktt_gruppenname_pfeil {
	display: inline-block;
	transition: transform var(--transition);
}
.mktt_td_truncate {
	max-width: 50%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mktt_x_highlight {
	background-color: var(--color-primary-3) !important;
	min-width: 40px;
	height: 100%;
}
.mktt_gruppen_uplink {
	display: none;
	background: var(--color-primary-3);
	border-top: 1px solid var(--color-border);
	td {
		padding: 0;
		text-align: center;
	}
	a {
		display: inline-block;
		padding: 8px 16px;
		font-size: 0;
		color: var(--color-text-2);
		text-decoration: none;
		transition: color var(--transition);
		&::after {
			content: "^";
			font-size: 14px;
			font-weight: 700;
			display: inline-block;
			transform: scaleX(2);
			color: var(--color-text-2);
			transition: color var(--transition);
		}
		&:hover::after {
			color: var(--color-primary-1-hover);
		}
	}
}
.mktt_group_single_results {
	width: 100%;
	min-width: 0;
	table-layout: auto;
	margin-bottom: 16px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1.5px solid var(--color-primary-4);
	border-radius: var(--radius-card);
	overflow: hidden;
	th {
		padding: 7px 5px;
		white-space: nowrap !important;
		text-align: center;
		background: var(--color-primary-3);
		font-size: clamp(0.6875rem, 0.5966rem + 0.2841vw, 0.8125rem);
		line-height: 1.4;
		font-weight: 700;
		text-wrap: balance;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--color-text-2);
		border-bottom: 2px solid var(--color-border);
		&.mktt_gsr_spieler {
			text-align: left;
		}
	}
	td {
		padding: 2px 5px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		border-bottom: 1px solid var(--color-border);
	}
	tr:last-child td {
		border-bottom: none;
	}
	tr:nth-child(even) td {
		background-color: var(--color-bg-2);
	}
	tr.mktt_zeitplan_separator td {
		background-color: transparent !important;
	}
}
.mktt_gsr_scroll_wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	.mktt_group_single_results {
		width: auto;
		min-width: 100%;
	}
}
.mktt_zeitplan_day_header th {
	background-color: var(--color-primary-1);
	color: var(--color-primary-3);
}
.mktt_gsr_runde,
.mktt_gsr_uhrzeit,
.mktt_gsr_einzelsaetze,
.mktt_gsr_saetze {
	width: 1px;
	white-space: nowrap;
}
.mktt_gsr_spieler,
.mktt_td_spieler {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mktt_td_spieler {
	text-align: left;
}
.mktt_td_center {
	text-align: center !important;
}
.mktt_active_tables {
	display: table;
	width: 100%;
	color: var(--color-text-1);
	border-collapse: separate;
	border-spacing: 0;
	border: 1.5px solid var(--color-primary-4);
	overflow: hidden;
	table-layout: auto;
	border-radius: var(--radius-card);
	th {
		padding: 7px 5px;
		background: var(--color-primary-3);
		font-size: clamp(0.6875rem, 0.5966rem + 0.2841vw, 0.8125rem);
		line-height: 1.4;
		font-weight: 700;
		text-wrap: balance;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--color-text-2);
		border-bottom: 2px solid var(--color-primary-4);
	}
	td {
		padding: 2px 5px;
		border-bottom: 1px solid var(--color-border);
		vertical-align: top !important;
	}
	tr:last-child td {
		border-bottom: none;
	}
	tr:nth-child(even) td {
		background-color: var(--color-bg-2);
	}
}
body.mktt_page_active_tables .mktt_active_tables {
	th.mktt_at_tisch {
		width: 1px;
	}
	:is(th, td):first-child {
		text-align: center;
	}
}
.mktt_at_tisch,
.mktt_at_spieler,
.mktt_at_verein {
	white-space: nowrap;
	min-width: max-content;
}
body.mktt_page_winners .mktt_at_tisch,
body.mktt_page_winners .mktt_at_spieler,
body.mktt_page_winners .mktt_at_verein {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mktt_kowinner {
	display: block;
	padding: 3px 5px;
	margin: -3px -5px;
	font-weight: 550;
	font-size: 1rem;
	color: var(--color-text-1);
	background: var(--color-primary-1);
	border-radius: 6px;
}
[id^="KO"] {
	overflow-x: auto;
	display: block;
	padding: 0 5px;
	line-height: 1.2;
	table {
		table-layout: auto !important;
		min-width: max-content !important;
		white-space: nowrap;
	}
	td {
		overflow: visible !important;
		white-space: nowrap;
	}
	.frei-text {
		font-size: 0.8rem;
		font-style: italic;
	}
}
/* Gruppenübersicht ab 480px: feste Spaltenanteile, damit alle Spalten in allen
   Gruppentabellen gleich beginnen. Nur bei mehreren Gruppentabellen auf der Seite –
   die Detailseite (group_X.html, eine Tabelle) bleibt unverändert.
   !important nötig: gruppenTabelleAufbereiten() setzt ab 768px max-width inline. */
@media screen and (min-width: 480px) {
	main:has(.mktt_gruppen ~ .mktt_gruppen) .mktt_gruppen {
		.mktt_gh_baelle {
			min-width: 4.5rem;
		}
		.mktt_gh_spieler {
			width: 55%;
		}
		.mktt_gh_verein {
			width: 45%;
		}
		td.mktt_td_truncate {
			max-width: 0 !important;
		}
	}
}
