/* RTC Design – Trainingsplan und Standort-Box der Sportartenseiten.
   Nutzt die Tokens aus rtc-site.css. */
.rtc-sch {
	--rtc-sch-tiger: #e8590c;
	--rtc-sch-drachen: #a00d25;
	--rtc-sch-panda: #2b8a3e;
	scroll-margin-top: 110px;
	color: var(--rtc-text);
}
.rtc-sch [hidden] {
	display: none !important;
}

/* Filter */
.rtc-sch-filters {
	background: #fff;
	border-radius: var(--rtc-radius);
	box-shadow: var(--rtc-shadow);
	padding: 24px 26px;
	margin-bottom: 18px;
}
.rtc-sch-selects {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.rtc-sch-field label,
.rtc-sch-halls legend {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--rtc-ink);
	margin: 0 0 6px;
	padding: 0;
}
.rtc-sch-field select {
	width: 100%;
	height: 48px;
	padding: 0 12px;
	font-size: 16px;
	color: var(--rtc-ink);
	background-color: #fff;
	border: 1px solid #b9b3b0;
	border-radius: 6px;
}
.rtc-sch-field:first-child select {
	border-color: var(--rtc-red);
	border-width: 2px;
}
.rtc-sch-halls {
	border: 0;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.rtc-sch-halls legend {
	float: left;
	margin: 0 8px 0 0;
	line-height: 42px;
}
.rtc-sch-pill {
	position: relative;
	display: inline-flex;
	cursor: pointer;
	margin: 0;
}
.rtc-sch-pill input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}
.rtc-sch-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--rtc-soft);
	color: var(--rtc-ink);
	font-size: 15px;
	font-weight: 600;
}
.rtc-sch-pill input:checked + span {
	background: var(--rtc-ink);
	color: #fff;
}
.rtc-sch-pill input:focus-visible + span {
	outline: 3px solid var(--rtc-red);
	outline-offset: 2px;
}
.rtc-sch-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
}
.rtc-sch-apply,
.rtc-sch-prompt button {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: var(--rtc-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.rtc-js .rtc-sch-apply {
	display: none;
}
.rtc-sch-reset {
	color: var(--rtc-red);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.rtc-sch-status {
	min-height: 24px;
	margin: 0 0 12px !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--rtc-muted);
}
.rtc-sch-prompt,
.rtc-sch-noresult {
	background: #fff;
	border-radius: var(--rtc-radius);
	padding: 24px;
	text-align: center;
	box-shadow: var(--rtc-shadow);
}
.rtc-sch-prompt p,
.rtc-sch-noresult p {
	margin: 0 0 12px !important;
}

/* Wochenansicht (Desktop): eine Spalte je Tag */
.rtc-sch-week {
	display: grid;
	grid-template-columns: repeat(var(--rtc-sch-days, 7), minmax(0, 1fr));
	gap: 10px;
	align-items: start;
}
.rtc-sch-day h3 {
	margin: 0 0 10px !important;
	padding: 10px 6px;
	background: var(--rtc-ink);
	border-radius: 8px;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-align: center;
}
.rtc-sch-day ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.rtc-sch-none {
	display: none;
	margin: 0 !important;
	padding: 14px 4px;
	color: var(--rtc-muted);
	font-size: 14px;
	text-align: center;
}
.rtc-sch-day[data-empty] .rtc-sch-none {
	display: block;
}
.rtc-sch-item {
	background: #fff;
	border-radius: 8px;
	border-left: 4px solid var(--rtc-red);
	box-shadow: 0 1px 6px rgba(18, 20, 24, 0.1);
	padding: 10px 10px 10px 12px;
	margin: 0;
}
.rtc-sch-item.rtc-sch-h-tigerhalle { border-left-color: var(--rtc-sch-tiger); }
.rtc-sch-item.rtc-sch-h-drachenhalle { border-left-color: var(--rtc-sch-drachen); }
.rtc-sch-item.rtc-sch-h-pandahalle { border-left-color: var(--rtc-sch-panda); }
.rtc-sch-item p {
	margin: 0 !important;
	font-size: 13.5px !important;
	line-height: 1.4 !important;
}
.rtc-sch-item .rtc-sch-time {
	color: var(--rtc-ink);
	font-weight: 700;
}
.rtc-sch-title {
	margin: 2px 0 !important;
	color: var(--rtc-ink) !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	overflow-wrap: anywhere;
}
.rtc-sch-title a {
	color: inherit;
	text-decoration: none;
}
.rtc-sch-title a:hover,
.rtc-sch-title a:focus-visible {
	color: var(--rtc-red);
	text-decoration: underline;
}
.rtc-sch-item .rtc-sch-note {
	color: var(--rtc-red);
	font-weight: 600;
}
.rtc-sch-item .rtc-sch-meta {
	color: var(--rtc-muted);
	margin-top: 4px !important;
}
.rtc-sch-dayname {
	display: none;
}

/* Tablet und Handy: Liste je Tag statt Wochenraster */
@media (max-width: 1023px) {
	.rtc-sch-week {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.rtc-sch-day[data-empty] {
		display: none;
	}
	.rtc-sch-day h3 {
		text-align: left;
		padding-left: 14px;
	}
	.rtc-sch-day ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.rtc-sch-item p { font-size: 15px !important; }
	.rtc-sch-item .rtc-sch-time { font-size: 16px !important; }
	.rtc-sch-title { font-size: 18px !important; }
	.rtc-sch-dayname { display: inline; font-weight: 600; }
}
@media (max-width: 767px) {
	.rtc-sch-filters { padding: 18px 16px; }
	.rtc-sch-selects { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.rtc-sch-halls legend { float: none; line-height: 1.4; margin: 0 0 6px; width: 100%; }
	.rtc-sch-pill { flex: 1 1 calc(50% - 4px); }
	.rtc-sch-pill span { width: 100%; justify-content: center; padding: 0 8px; }
	.rtc-sch-day ul { grid-template-columns: minmax(0, 1fr); }
	.rtc-sch-item { padding: 14px 14px 14px 16px; }
}

/* Kachelzeile für die jüngsten Gruppen und Standort-Hinweis */
.rtc-where-inline {
	color: rgba(255, 255, 255, 0.92);
	font-size: 16px;
	font-weight: 600;
}
.rtc-where-inline a {
	color: #fff !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.rtc-where {
	scroll-margin-top: 110px;
}
.rtc-where .rtc-where-title {
	color: var(--rtc-ink) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	margin: 0 0 12px !important;
}
.rtc-where-loc {
	border-top: 1px solid var(--rtc-line);
	padding-top: 14px;
	margin-bottom: 18px;
}
.rtc-where-loc h5 {
	margin: 0 0 8px !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}
.rtc-where-loc h5 a {
	color: var(--rtc-ink);
}
.rtc-where-loc .rtc-links a,
.rtc-where-all a {
	background: #fff;
}

/* ==== Kurszeiten auf Sportartenseiten ([rtc_kurszeiten]) ================ */
.rtc-kurszeiten-wrap {
	margin: 18px 0 26px;
}
.rtc-kurszeiten {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--rtc-line);
	border-radius: var(--rtc-radius-sm);
	overflow: hidden;
	background: #fff;
}
.rtc-kurszeiten th,
.rtc-kurszeiten td {
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid var(--rtc-line);
	text-align: left;
	vertical-align: top;
}
.rtc-kurszeiten tbody tr:last-child th,
.rtc-kurszeiten tbody tr:last-child td {
	border-bottom: 0;
}
.rtc-kurszeiten thead th {
	background: var(--rtc-soft);
	color: var(--rtc-ink);
	font-size: 0.86em;
	font-weight: 700;
}
.rtc-kurszeiten tbody th {
	width: 42%;
	color: var(--rtc-ink);
	font-weight: 700;
}
.rtc-kurszeit {
	display: block;
}
.rtc-kurszeit + .rtc-kurszeit {
	margin-top: 3px;
}
.rtc-kurszeit strong {
	display: inline-block;
	min-width: 94px;
	color: var(--rtc-ink);
	font-weight: 600;
}
.rtc-kurszeit small {
	color: var(--rtc-muted);
}
.rtc-prose .fusion-text p.rtc-kurszeiten-ort {
	margin: 10px 0 0;
	color: var(--rtc-muted);
	font-size: 0.92em;
}
@media (max-width: 640px) {
	.rtc-kurszeiten thead {
		display: none;
	}
	.rtc-kurszeiten,
	.rtc-kurszeiten tbody,
	.rtc-kurszeiten tr,
	.rtc-kurszeiten th,
	.rtc-kurszeiten td {
		display: block;
		width: 100%;
	}
	.rtc-kurszeiten tbody th {
		width: 100%;
		padding-bottom: 4px;
		border-bottom: 0;
	}
	.rtc-kurszeiten td {
		padding-top: 0;
	}
}
