/* Club Sports Manager — Frontend Design
   Self-contained, funktioniert in beliebigen Themes. Auf .csmgr-* gescoped. */

.csmgr-archive,
.csmgr-sportart,
.csmgr-trainer,
.csmgr-venue,
.csmgr-event,
.csmgr-calendar,
.csmgr-upcoming,
.csmgr-people {
	--csmgr-accent: #2f6f6b;
	--csmgr-accent-dark: #245551;
	--csmgr-event: #6a4fb3;
	--csmgr-fee: #8f3115;
	--csmgr-fee-bg: #f7e2da;
	--csmgr-ok: #2f6f6b;
	--csmgr-ok-bg: #d9ece9;
	--csmgr-ink: #1f2733;
	--csmgr-muted: #5c6673;
	--csmgr-line: #e6e8ec;
	--csmgr-surface: #fff;
	--csmgr-surface-2: #f6f7f9;
	--csmgr-radius: 14px;
	--csmgr-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px -12px rgba(16, 24, 40, 0.18);
	--csmgr-gap: clamp(1rem, 2.5vw, 1.5rem);
	color: var(--csmgr-ink);
}

/* ---------- Überschriften in unseren Blöcken ---------- */
.csmgr-sportart h2,
.csmgr-trainer h2,
.csmgr-venue h2 {
	font-size: 1.15rem;
	letter-spacing: 0.01em;
	margin: 1.75rem 0 0.75rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--csmgr-line);
}

/* ---------- Badges ---------- */
.csmgr-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
}

.csmgr-badge--free,
.csmgr-badge--included {
	background: var(--csmgr-ok-bg);
	color: var(--csmgr-ok);
}

.csmgr-badge--fee {
	background: var(--csmgr-fee-bg);
	color: var(--csmgr-fee);
}

/* ---------- Buttons ---------- */
.csmgr-sportart .button,
.csmgr-event .button,
.csmgr-contact .button,
.csmgr-event__pdf .button {
	display: inline-block;
	background: var(--csmgr-accent);
	color: #fff;
	padding: 0.6em 1.1em;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.15s ease;
}

.csmgr-sportart .button:hover,
.csmgr-event .button:hover,
.csmgr-event__pdf .button:hover {
	background: var(--csmgr-accent-dark);
	transform: translateY(-1px);
	color: #fff;
}

/* Kalender-Export: Aufklapp-Button (nativ <details>, ohne JS) */
.csmgr-event__calendar {
	margin: 1rem 0;
}

.csmgr-event__calendar-toggle {
	cursor: pointer;
	list-style: none;                 /* Standard-Dreieck entfernen */
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.csmgr-event__calendar-toggle::-webkit-details-marker {
	display: none;                    /* Safari/Chrome-Marker entfernen */
}

.csmgr-event__calendar-toggle::after {
	content: "\25BE";                 /* ▾ */
	font-size: 0.8em;
	line-height: 1;
}

.csmgr-event__calendar[open] .csmgr-event__calendar-toggle::after {
	content: "\25B4";                 /* ▴ */
}

.csmgr-event__calendar-options {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0.4rem;
	display: inline-flex;
	flex-direction: column;
	gap: 0.3rem;
	border: 1px solid color-mix(in srgb, var(--csmgr-accent) 25%, transparent);
	border-radius: 12px;
	background: color-mix(in srgb, var(--csmgr-accent) 6%, transparent);
}

.csmgr-event__calendar-options a {
	display: block;
	padding: 0.5em 0.9em;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	color: var(--csmgr-accent);
	white-space: nowrap;
}

.csmgr-event__calendar-options a:hover,
.csmgr-event__calendar-options a:focus-visible {
	background: var(--csmgr-accent);
	color: #fff;
}

/* Sportart: Trainings-Kalender abonnieren (nativ <details>) */
.csmgr-subscribe {
	margin: 1.5rem 0;
}

.csmgr-subscribe__toggle {
	cursor: pointer;
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.csmgr-subscribe__toggle::-webkit-details-marker {
	display: none;
}

.csmgr-subscribe__toggle::after {
	content: "\25BE";
	font-size: 0.8em;
	line-height: 1;
}

.csmgr-subscribe[open] .csmgr-subscribe__toggle::after {
	content: "\25B4";
}

.csmgr-subscribe__body {
	margin: 0.6rem 0 0;
	padding: 0.9rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--csmgr-accent) 25%, transparent);
	border-radius: 12px;
	background: color-mix(in srgb, var(--csmgr-accent) 6%, transparent);
	max-width: 44rem;
}

.csmgr-subscribe__intro {
	margin: 0 0 0.7rem;
}

.csmgr-subscribe__apps {
	list-style: none;
	margin: 0 0 0.8rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.csmgr-subscribe__apps li {
	margin: 0;
}

.csmgr-subscribe__manual {
	margin: 0;
	padding-top: 0.6rem;
	border-top: 1px solid color-mix(in srgb, var(--csmgr-accent) 18%, transparent);
	font-size: 0.9em;
}

.csmgr-subscribe__url {
	word-break: break-all;
	color: var(--csmgr-accent);
}

/* ---------- Sportangebote-Übersicht (Karten) ---------- */

/* Filter-Leiste mit Dropdowns */
.csmgr-filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.1rem;
	background: var(--csmgr-surface-2);
	border-radius: var(--csmgr-radius);
}

.csmgr-select {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	color: var(--csmgr-ink);
	padding: 0.55em 2.4em 0.55em 1em;
	border: 1px solid var(--csmgr-line);
	border-radius: 10px;
	background-color: var(--csmgr-surface);
	background-image:
		linear-gradient(45deg, transparent 50%, var(--csmgr-muted) 50%),
		linear-gradient(135deg, var(--csmgr-muted) 50%, transparent 50%);
	background-position: calc(100% - 1.15em) 55%, calc(100% - 0.8em) 55%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
	min-width: 12rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.csmgr-select:hover {
	border-color: var(--csmgr-accent);
}

.csmgr-select:focus {
	outline: none;
	border-color: var(--csmgr-accent);
	box-shadow: 0 0 0 3px rgba(47, 111, 107, 0.15);
}

.csmgr-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--csmgr-gap);
}

.csmgr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.25rem;
	background: var(--csmgr-surface);
	border: 1px solid var(--csmgr-line);
	border-radius: var(--csmgr-radius);
	box-shadow: var(--csmgr-shadow);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.csmgr-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--csmgr-accent);
}

.csmgr-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08), 0 18px 40px -16px rgba(16, 24, 40, 0.3);
	border-color: transparent;
}

.csmgr-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	color: var(--csmgr-ink);
}

.csmgr-card__title:hover {
	color: var(--csmgr-accent);
}

.csmgr-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.csmgr-card__excerpt {
	margin: 0;
	color: var(--csmgr-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.csmgr-card__meta {
	color: var(--csmgr-muted);
	font-size: 0.88rem;
	margin-top: auto;
	padding-top: 0.35rem;
	border-top: 1px solid var(--csmgr-line);
}

.csmgr-card__thumb img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 10px;
}

/* ---------- Sportart-Einzelseite ---------- */
.csmgr-subgroups {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}

.csmgr-subgroup {
	padding: 0.3em 0.95em;
	border-radius: 999px;
	border: 1px solid var(--csmgr-line);
	background: var(--csmgr-surface);
	text-decoration: none;
	color: var(--csmgr-ink);
	font-weight: 600;
	transition: all 0.15s ease;
}

.csmgr-subgroup:hover {
	border-color: var(--csmgr-accent);
	color: var(--csmgr-accent);
}

.csmgr-subgroup.is-active {
	background: var(--csmgr-ink);
	color: #fff;
	border-color: var(--csmgr-ink);
}

.csmgr-trainings {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0.5rem 0 1rem;
	background: var(--csmgr-surface);
	border: 1px solid var(--csmgr-line);
	border-radius: var(--csmgr-radius);
	overflow: hidden;
}

.csmgr-trainings th,
.csmgr-trainings td {
	text-align: left;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--csmgr-line);
}

.csmgr-trainings thead th {
	background: var(--csmgr-surface-2);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--csmgr-muted);
}

.csmgr-trainings tbody tr:last-child td {
	border-bottom: 0;
}

.csmgr-trainings tbody tr:hover td {
	background: var(--csmgr-surface-2);
}

/* Trainer- & Detail-Listen als „Chips"/Karten */
.csmgr-trainers,
.csmgr-trainer__sportarten,
.csmgr-venue__activities {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.csmgr-trainers li,
.csmgr-trainer__sportarten li,
.csmgr-venue__activities li {
	background: var(--csmgr-surface-2);
	border-radius: 10px;
	padding: 0.5rem 0.9rem;
}

.csmgr-trainers li a,
.csmgr-trainer__sportarten li a,
.csmgr-venue__activities li a {
	text-decoration: none;
	font-weight: 600;
	color: var(--csmgr-ink);
}

.csmgr-role {
	display: inline-block;
	margin-left: 0.4em;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--csmgr-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Ansprechpartner: je Person eine Zeile (nicht als Chip-Reihe umbrechen) */
.csmgr-trainers {
	flex-direction: column;
	gap: 0.5rem;
}

.csmgr-trainers li {
	display: block;
}

/* Zwei Spalten: Tabelle links, Ansprechpartner rechts (mobil gestapelt) */
.csmgr-detail--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(220px, 30%, 320px);
	gap: var(--csmgr-gap);
	align-items: start;
}

.csmgr-detail__main > :first-child,
.csmgr-detail__aside > :first-child {
	margin-top: 0;
}

@media (max-width: 782px) {

	.csmgr-detail--split {
		grid-template-columns: 1fr;
	}
}

.csmgr-trainer__details,
.csmgr-event__facts {
	list-style: none;
	margin: 0 0 1rem;
	padding: 1rem 1.2rem;
	background: var(--csmgr-surface-2);
	border-radius: var(--csmgr-radius);
	display: grid;
	gap: 0.4rem;
}

/* Event-Typ als klickbares Badge (führt zum Typ-Archiv) */
.csmgr-event__types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.csmgr-event__type {
	display: inline-flex;
	align-items: center;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--csmgr-event);
	background: color-mix(in srgb, var(--csmgr-event) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--csmgr-event) 30%, transparent);
}

.csmgr-event__type:hover {
	color: #fff;
	background: var(--csmgr-event);
}

/* ---------- Nächste Termine / Kalender ---------- */
.csmgr-upcoming {
	list-style: none;
	margin: 0.5rem 0;
	padding: 0;
}

.csmgr-upcoming__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.6rem 0.2rem;
	border-bottom: 1px solid var(--csmgr-line);
}

.csmgr-upcoming__date {
	font-weight: 700;
	min-width: 8.5em;
}

.csmgr-upcoming__time {
	color: var(--csmgr-muted);
}

.csmgr-upcoming__badge,
.csmgr-day__item--event .csmgr-day__title {
	color: var(--csmgr-event);
	font-weight: 700;
}

.csmgr-upcoming__badge {
	font-size: 0.72rem;
	background: rgba(106, 79, 179, 0.12);
	padding: 0.1em 0.55em;
	border-radius: 999px;
}

.csmgr-upcoming__meta {
	color: var(--csmgr-muted);
	font-size: 0.9rem;
}

.csmgr-upcoming__group {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--csmgr-accent);
	background: color-mix(in srgb, var(--csmgr-accent) 12%, transparent);
	padding: 0.1em 0.55em;
	border-radius: 999px;
	white-space: nowrap;
}

/* Abgesagter Termin: Datum/Zeit durchgestrichen; Grund/Notiz bleibt lesbar. */
.csmgr-upcoming__item--cancelled {
	opacity: 0.72;
}

.csmgr-upcoming__item--cancelled .csmgr-upcoming__date,
.csmgr-upcoming__item--cancelled .csmgr-upcoming__time {
	text-decoration: line-through;
}

.csmgr-upcoming__badge--cancelled {
	color: #b3261e;
	background: rgba(179, 38, 30, 0.12);
}

/* Eltern-Sportart: Gliederung in Gruppen. */
.csmgr-groups-note {
	color: var(--csmgr-muted);
	margin: 0.25rem 0 1rem;
}

.csmgr-group__title {
	margin: 1.4rem 0 0.4rem;
	font-size: 1.05rem;
}

.csmgr-contact {
	margin-top: 1.75rem;
	padding: 1.4rem;
	border-radius: var(--csmgr-radius);
	background: linear-gradient(180deg, var(--csmgr-surface-2), #eef1f0);
	border: 1px solid var(--csmgr-line);
}

.csmgr-contact h2 {
	margin-top: 0;
	border: 0;
}

/* ---------- Vereinskalender (Raster) ---------- */
.csmgr-calendar__nav {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.csmgr-calendar__title {
	font-weight: 800;
	font-size: 1.2rem;
	margin: 0 0.5rem;
	min-width: 12rem;
}

.csmgr-calendar__prev,
.csmgr-calendar__next {
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0.35em 0.7em;
	border-radius: 10px;
	border: 1px solid var(--csmgr-line);
	color: var(--csmgr-ink);
}

.csmgr-calendar__prev:hover,
.csmgr-calendar__next:hover {
	border-color: var(--csmgr-accent);
	color: var(--csmgr-accent);
}

.csmgr-calendar__today {
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1;
	padding: 0.45em 0.8em;
	border-radius: 10px;
	border: 1px solid var(--csmgr-accent);
	color: var(--csmgr-accent);
}

.csmgr-calendar__today:hover {
	background: var(--csmgr-accent);
	color: #fff;
}

.csmgr-calendar__views {
	margin-left: auto;
	display: inline-flex;
	border: 1px solid var(--csmgr-line);
	border-radius: 10px;
	overflow: hidden;
}

.csmgr-calendar__views a {
	padding: 0.4em 0.9em;
	text-decoration: none;
	color: var(--csmgr-ink);
	font-weight: 600;
	border-left: 1px solid var(--csmgr-line);
}

.csmgr-calendar__views a:first-child {
	border-left: 0;
}

.csmgr-calendar__views a.is-active {
	background: var(--csmgr-accent);
	color: #fff;
}

.csmgr-cal-wrap {
	overflow-x: auto;
}

.csmgr-cal {
	width: 100%;
	min-width: 720px;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	background: var(--csmgr-surface);
	border: 1px solid var(--csmgr-line);
	border-radius: var(--csmgr-radius);
	overflow: hidden;
}

.csmgr-cal thead th {
	padding: 0.55rem;
	background: var(--csmgr-surface-2);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--csmgr-muted);
	text-align: left;
	border-bottom: 1px solid var(--csmgr-line);
}

.csmgr-cal__cell {
	vertical-align: top;
	height: 6.5rem;
	padding: 0.35rem;
	border-right: 1px solid var(--csmgr-line);
	border-bottom: 1px solid var(--csmgr-line);
}

.csmgr-cal tr td:last-child {
	border-right: 0;
}

.csmgr-cal__cell.is-empty {
	background: var(--csmgr-surface-2);
}

/* Heutiger Tag: Akzent-Ring + hervorgehobene Tageszahl */
.csmgr-cal__cell.is-today {
	box-shadow: inset 0 0 0 2px var(--csmgr-accent);
}

.csmgr-cal__cell.is-today .csmgr-cal__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--csmgr-accent);
	color: #fff;
}

.csmgr-cal__num {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--csmgr-muted);
	margin-bottom: 0.25rem;
}

.csmgr-cal__ev {
	display: block;
	margin-bottom: 0.2rem;
	padding: 0.2rem 0.4rem;
	border-radius: 7px;
	font-size: 0.78rem;
	line-height: 1.25;
	text-decoration: none;
	color: var(--csmgr-ink);
	background: var(--csmgr-ok-bg);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.csmgr-cal__ev:hover {
	filter: brightness(0.96);
}

.csmgr-cal__ev--event {
	color: var(--csmgr-event);
	background: color-mix(in srgb, var(--csmgr-event) 14%, transparent);
}

/* Abgesagter Termin im Kalender: durchgestrichen und gedämpft. */
.csmgr-cal__ev--cancelled {
	opacity: 0.6;
	text-decoration: line-through;
}

.csmgr-cal__time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Schließzeiten / Ferien */
.csmgr-cal__cell.is-closure {
	background: repeating-linear-gradient(45deg, rgba(143, 49, 21, 0.06) 0 8px, rgba(143, 49, 21, 0.11) 8px 16px);
}

.csmgr-cal__closure {
	display: block;
	margin-bottom: 0.25rem;
	padding: 0.12rem 0.4rem;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	background: var(--csmgr-fee-bg);
	color: var(--csmgr-fee);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Vereinskalender (Trainingsplan / Listenansicht) ---------- */
.csmgr-plan__day {
	margin-bottom: 1.1rem;
	background: var(--csmgr-surface);
	border: 1px solid var(--csmgr-line);
	border-radius: var(--csmgr-radius);
	overflow: hidden;
}

.csmgr-plan__weekday {
	margin: 0;
	padding: 0.5rem 0.9rem;
	background: var(--csmgr-surface-2);
	border-bottom: 1px solid var(--csmgr-line);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--csmgr-muted);
}

.csmgr-plan__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.csmgr-plan__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.7rem;
	padding: 0.55rem 0.9rem;
	border-bottom: 1px solid var(--csmgr-line);
}

.csmgr-plan__item:last-child {
	border-bottom: 0;
}

.csmgr-plan__time {
	flex: 0 0 8.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.csmgr-plan__title {
	flex: 1 1 12rem;
	font-weight: 600;
}

.csmgr-plan__title a {
	text-decoration: none;
	color: var(--csmgr-ink);
}

.csmgr-plan__title a:hover {
	color: var(--csmgr-accent);
}

.csmgr-plan__meta {
	margin-left: auto;
	color: var(--csmgr-muted);
	font-size: 0.9rem;
}

/* Notiz zum Termin („Zusatztraining vor dem Turnier"): eigene Zeile unter der
   Bezeichnung, gedämpft wie die Metadaten. Hinter dem Ort las sie sich wie eine
   Angabe zur Sportstätte. */
.csmgr-plan__note {
	display: block;
	margin-top: 0.15rem;
	font-weight: 400;
	font-size: 0.9rem;
	color: var(--csmgr-muted);
}

.csmgr-plan__meta a {
	color: inherit;
}

.csmgr-plan__badge {
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: color-mix(in srgb, var(--csmgr-event) 14%, transparent);
	color: var(--csmgr-event);
}

/* Abgesagter Termin: durchgestrichen und gedämpft — wie im Raster. */
.csmgr-plan__item--cancelled {
	opacity: 0.6;
}

.csmgr-plan__item--cancelled .csmgr-plan__time,
.csmgr-plan__item--cancelled .csmgr-plan__title,
.csmgr-plan__item--cancelled .csmgr-plan__title a {
	text-decoration: line-through;
}

/* Die Notiz nennt bei einem abgesagten Termin den Grund — durchgestrichen wäre
   sie eine Absage der Absage. */
.csmgr-plan__item--cancelled .csmgr-plan__note {
	text-decoration: none;
}

.csmgr-plan__item--event .csmgr-plan__title a {
	color: var(--csmgr-event);
}

/* Ferien im gezeigten Zeitraum: Hinweis über dem Plan. */
.csmgr-plan__closure {
	margin: 0 0 1rem;
	padding: 0.5rem 0.9rem;
	border-radius: var(--csmgr-radius);
	border-left: 4px solid var(--csmgr-fee);
	background: var(--csmgr-fee-bg);
	color: var(--csmgr-fee);
	font-size: 0.92rem;
}

.csmgr-plan__closure-title {
	font-weight: 700;
}

.csmgr-plan--empty {
	color: var(--csmgr-muted);
}

/* ---------- Wochenansicht: dieselbe Liste, mit Datum und Farbe ---------- */

/* Das Datum steht neben dem Wochentag, in normaler Schrift: Der Wochentag
   ordnet, das Datum belegt. */
.csmgr-plan__date {
	margin-left: 0.4rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--csmgr-ink);
}

/* Heutiger Tag: Akzentrand und farbige Kopfzeile — wie der Akzent-Ring im
   Monatsraster, nur für eine Zeile statt für eine Zelle. */
.csmgr-plan__day.is-today {
	border-color: var(--csmgr-accent);
	box-shadow: inset 3px 0 0 0 var(--csmgr-accent);
}

.csmgr-plan__day.is-today .csmgr-plan__weekday {
	background: var(--csmgr-ok-bg);
	color: var(--csmgr-accent-dark);
}

.csmgr-plan__day.is-today .csmgr-plan__date {
	color: var(--csmgr-accent-dark);
}

/* Ferientag: in der Farbe, die im ganzen Plugin für „kostet/entfällt" steht. */
.csmgr-plan__day--closed .csmgr-plan__weekday {
	background: var(--csmgr-fee-bg);
	color: var(--csmgr-fee);
}

.csmgr-plan__day-closure {
	margin: 0;
	padding: 0.55rem 0.9rem;
	color: var(--csmgr-fee);
	font-size: 0.92rem;
	font-weight: 600;
}

/* Ruhetag: die Woche bleibt vollständig, die Zeile bleibt still. */
.csmgr-plan__none {
	margin: 0;
	padding: 0.55rem 0.9rem;
	color: var(--csmgr-muted);
	font-size: 0.92rem;
}

@media (max-width: 600px) {

	.csmgr-plan__time {
		flex: 0 0 auto;
	}

	.csmgr-plan__meta {
		flex: 1 1 100%;
		margin-left: 0;
	}
}

.csmgr-upcoming__item--closure {
	background: var(--csmgr-fee-bg);
	color: var(--csmgr-fee);
	border-bottom: 0;
	border-left: 4px solid var(--csmgr-fee);
	border-radius: 8px;
	padding-left: 0.7rem;
}

.csmgr-upcoming__item--closure .csmgr-upcoming__date {
	min-width: auto;
}

/* ---------- Sportstätte ---------- */
.csmgr-venue__address {
	font-size: 1.05rem;
	color: var(--csmgr-muted);
}

.csmgr-venue__map {
	margin: 1rem 0;
	height: 420px;
	width: 100%;
	border-radius: var(--csmgr-radius);
	box-shadow: var(--csmgr-shadow);
	overflow: hidden;
	background: var(--csmgr-surface-2);
}

.csmgr-venue__map noscript,
.csmgr-venue__map iframe {
	display: block;
	width: 100%;
	height: 100%;
}

/* Leaflet-Popups/Controls in unserem Block lesbar halten */
.csmgr-venue__map .leaflet-container {
	font: inherit;
}

/* Zwei Spalten: Text links, Karte rechts (mobil gestapelt) */
.csmgr-venue--has-map {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(260px, 34%, 380px);
	gap: var(--csmgr-gap);
	align-items: start;
}

.csmgr-venue__body > :first-child {
	margin-top: 0;
}

.csmgr-venue__aside {
	position: sticky;
	top: 1rem;
}

.csmgr-venue--has-map .csmgr-venue__map {
	margin: 0;
	height: clamp(340px, 60vh, 520px);
}

@media (max-width: 782px) {

	.csmgr-venue--has-map {
		grid-template-columns: 1fr;
	}

	.csmgr-venue--has-map .csmgr-venue__aside {
		position: static;
	}

	.csmgr-venue--has-map .csmgr-venue__map {
		height: 320px;
	}
}

/* ---------- Kontaktformular (Trainer) ---------- */
.csmgr-contact-form {
	max-width: 34rem;
	margin: 0.75rem 0 1.5rem;
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	background: linear-gradient(180deg, var(--csmgr-surface), var(--csmgr-surface-2));
	border: 1px solid var(--csmgr-line);
	border-radius: var(--csmgr-radius);
	box-shadow: var(--csmgr-shadow);
}

.csmgr-contact-form p {
	margin: 0;
}

.csmgr-contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--csmgr-muted);
}

.csmgr-contact-form .csmgr-input {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.35rem;
	padding: 0.6em 0.8em;
	border: 1px solid var(--csmgr-line);
	border-radius: 10px;
	background: var(--csmgr-surface);
	color: var(--csmgr-ink);
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.csmgr-contact-form .csmgr-input:focus {
	outline: none;
	border-color: var(--csmgr-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--csmgr-accent) 22%, transparent);
}

.csmgr-contact-form textarea.csmgr-input {
	resize: vertical;
	min-height: 6rem;
}

.csmgr-contact-form .button {
	align-self: flex-start;
	background: var(--csmgr-accent);
	color: #fff;
	border: 0;
	padding: 0.7em 1.4em;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.csmgr-contact-form .button:hover {
	background: color-mix(in srgb, var(--csmgr-accent) 84%, #000);
	transform: translateY(-1px);
}

.csmgr-contact-form .button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--csmgr-accent) 40%, transparent);
	outline-offset: 2px;
}

.csmgr-contact-form__ok,
.csmgr-contact-form__error {
	max-width: 34rem;
	padding: 0.7em 1em;
	border-radius: 10px;
	margin: 0.5rem 0;
}

.csmgr-contact-form__ok {
	background: var(--csmgr-ok-bg);
	color: var(--csmgr-ok);
}

.csmgr-contact-form__error {
	background: var(--csmgr-fee-bg);
	color: var(--csmgr-fee);
}

@media (max-width: 600px) {

	.csmgr-upcoming__item,
	.csmgr-day__item {
		flex-direction: column;
		gap: 0.15rem;
	}
}

/* Honeypot-Feld (Spam-Schutz): fuer Menschen unsichtbar, fuer Bots ausfuellbar.
   Bewusst kein display:none — manche Bots ueberspringen versteckte Felder. */
.csmgr-hp {
	position: absolute;
	left: -9999px;
}

/* Statischer OSM-Ausschnitt als noscript-Fallback der Sportstaetten-Karte. */
.csmgr-venue__map-frame {
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Personen (Vorstand, Trainer, weitere Ämter) -------------------------- */

.csmgr-people__group + .csmgr-people__group {
	margin-top: 2rem;
}

.csmgr-people__heading {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.csmgr-people__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csmgr-people--cards .csmgr-people__items {
	display: grid;
	gap: var(--csmgr-gap);
}

.csmgr-people--cols-1 .csmgr-people__items {
	grid-template-columns: 1fr;
}

.csmgr-people--cols-2 .csmgr-people__items {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.csmgr-people--cols-3 .csmgr-people__items {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
}

.csmgr-people--cols-4 .csmgr-people__items {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr));
}

.csmgr-people--cols-5 .csmgr-people__items {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
}

.csmgr-people--cols-6 .csmgr-people__items {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
}

.csmgr-people--cards .csmgr-people__item {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem;
	background: var(--csmgr-surface);
	border: 1px solid var(--csmgr-line);
	border-radius: var(--csmgr-radius);
	text-align: center;
}

.csmgr-people__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: 0 auto 0.4rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--csmgr-accent-soft, #eef2f1);
}

.csmgr-people__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Das Foto führt zur Personenseite — geklickt wird auf das Bild, nicht auf die
   Zeile darunter. Es bleibt eine Fläche, kein Link im Textsinn. */
a.csmgr-people__avatar {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

a.csmgr-people__avatar:hover,
a.csmgr-people__avatar:focus {
	opacity: 0.85;
}

.csmgr-people__initials {
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--csmgr-accent);
	letter-spacing: 0.03em;
}

.csmgr-people__name {
	margin: 0;
	font-weight: 600;
}

.csmgr-people__office {
	margin: 0;
	font-size: 0.92rem;
	color: var(--csmgr-muted, inherit);
}

.csmgr-people--list .csmgr-people__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--csmgr-line);
}

.csmgr-people--list .csmgr-people__office {
	order: -1;
	min-width: 12rem;
	font-weight: 600;
	color: inherit;
}
