/* AS ON MC Academy-Termine – Karten im Stil der HTML-Vorlage bzw. der bisherigen Termin-Zeilen */
.as-termine {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.as-termine__row {
	position: relative;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
	align-items: center;
	gap: 16px 24px;
	background: #ffffff;
	border-radius: 24px;
	padding: 22px 30px;
	box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
}

.as-termine--ohne-plaetze .as-termine__row {
	grid-template-columns: 1.3fr 1fr 1fr auto;
}

.as-termine__cell h4.topline {
	font-size: 11px;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
	padding-bottom: 0;
}

.as-termine__cell p,
.as-termine__cell p:not(.has-background):last-of-type {
	margin: 0;
	padding-bottom: 0 !important;
}

.as-termine__aktionen {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	white-space: nowrap;
}

/* Theme setzt bei .btn:hover margin 10px … !important – höhere Spezifität, damit die Karte beim Hover nicht springt */
.as-termine .as-termine__aktionen .btn,
.as-termine .as-termine__aktionen .btn:hover {
	margin: 0 !important;
}

/* Kurstitel als Kopfzeile der Karte; Klick auf Titel/Chevron klappt die Modultage auf (ohne JavaScript) */
.as-termine__titel {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
	cursor: pointer;
	font-family: CorpidBold, sans-serif;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #333333;
}

.as-termine__titel:hover .as-termine__titeltext {
	color: #ff6755;
}

.as-termine__chevron {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin: 6px 4px 0 2px;
	border-right: 2px solid #ff6755;
	border-bottom: 2px solid #ff6755;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

/* Checkbox ist visuell versteckt, aber per Tastatur erreichbar */
.as-termine__toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.as-termine__toggle:checked ~ .as-termine__titel .as-termine__chevron {
	transform: rotate(45deg);
}

.as-termine__toggle:focus-visible ~ .as-termine__titel {
	outline: 2px solid #ff6755;
	outline-offset: 4px;
	border-radius: 6px;
}

.as-termine__module {
	display: none;
	grid-column: 1 / -1;
	border-top: 1px dashed rgba(0, 0, 0, 0.15);
	padding-top: 14px;
}

.as-termine__toggle:checked ~ .as-termine__module {
	display: block;
}

.as-termine .as-termine__module ul {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

/* Strich-Aufzählung in ON-Orange wie im übrigen Site-Text */
.as-termine .as-termine__module li {
	position: relative;
	list-style: none !important;
	padding: 3px 0 3px 22px;
	margin: 0;
	font-size: 0.9rem;
}

.as-termine .as-termine__module li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 12px;
	border-top: 2px solid #ff6755;
}

.as-termine__bar {
	display: inline-block;
	vertical-align: middle;
	width: 110px;
	height: 6px;
	background: #dadae1;
	border-radius: 99px;
	overflow: hidden;
	margin-right: 10px;
}

.as-termine__bar span {
	display: block;
	height: 100%;
	background: #ff6755;
}

.as-termine__zahl {
	font-family: CorpidBold, sans-serif;
	font-size: 13px;
	vertical-align: middle;
}

.as-termine__row--voll {
	opacity: 0.6;
}

.as-termine__row--voll .as-termine__bar span {
	background: #b9bcc4;
}

.as-termine--leer {
	background: #ffffff;
	border-radius: 24px;
	padding: 24px 30px;
	box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
}

@media all and (max-width: 980px) {
	.as-termine__row,
	.as-termine--ohne-plaetze .as-termine__row {
		grid-template-columns: 1fr 1fr;
	}

	.as-termine__aktionen {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media all and (max-width: 767px) {
	.as-termine__row,
	.as-termine--ohne-plaetze .as-termine__row {
		grid-template-columns: 1fr;
		padding: 20px;
	}
}
