/* ============================================================
   Fitness Kurse – Frontend-Styles
   ============================================================ */

/* ── Kursliste ───────────────────────────────────────────── */
.fk-kursliste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fk-kurs-item {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	padding: 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 0;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	transition: box-shadow 0.2s ease;
}

.fk-kurs-item:hover {
	box-shadow: 0 3px 12px rgba(0,0,0,.1);
}

.fk-kurs-item.is-abgesagt {
	opacity: 0.6;
	border-color: #e8bebe;
	background: #fdf4f4;
}

/* ── Kurs-Datum-Zeile (oben, klein) ──────────────────────── */
.fk-kurs-datum-zeile {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.82em;
	color: #96a3aa;
	margin-bottom: 5px;
}

.fk-kurs-datum-zeile span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.fk-kurs-datum-zeile svg {
	flex-shrink: 0;
}

/* ── Kurs-Titel ──────────────────────────────────────────── */
.fk-kurs-name {
	font-size: 1.18em;
	font-weight: 700;
	margin: 0 0 10px;
	color: #13303a;
}

/* ── Preis & Hansefit Chips ──────────────────────────────── */
.fk-kurs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.fk-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #ebf1f4;
	color: #13303a;
	font-size: 0.82em;
	font-weight: 400;
	padding: 4px 11px;
	border-radius: 20px;
	line-height: 1.4;
}

.fk-chip svg {
	flex-shrink: 0;
	opacity: 0.6;
}

.fk-kurs-beschreibung {
	font-size: 0.88em;
	color: #96a3aa;
	margin: 0 0 4px;
	line-height: 1.55;
}

/* ── Badges ──────────────────────────────────────────────── */
.fk-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fk-badge-ausgebucht {
	background: #fde8e8;
	color: #b32d2e;
}

.fk-badge-abgesagt-front {
	background: #f0f0f0;
	color: #96a3aa;
}

/* ── Aktions-Bereich ─────────────────────────────────────── */
.fk-kurs-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
}

/* ── Anmelden-Button ─────────────────────────────────────── */
.fk-btn-anmelden {
	display: inline-block;
	padding: 10px 22px;
	background: #0c71c3;
	color: #fff !important;
	border: none;
	border-radius: 16px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.fk-btn-anmelden:hover {
	background: #0a5a9e;
}

.fk-btn-anmelden:disabled,
.fk-btn-anmelden.fk-btn-ausgebucht {
	background: #e4e4e4;
	color: #96a3aa !important;
	cursor: not-allowed;
}

/* ── Kalender-Link ───────────────────────────────────────── */
.fk-ical-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	font-size: 0.82em;
	color: #96a3aa !important;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.fk-ical-link:hover {
	color: #13303a !important;
}

.fk-ical-link svg {
	flex-shrink: 0;
}

/* ── Leer-Zustand ────────────────────────────────────────── */
.fk-keine-kurse {
	text-align: center;
	padding: 40px 20px;
	color: #96a3aa;
	font-size: 1em;
}

/* ── Modal Overlay ───────────────────────────────────────── */
.fk-modal-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,.55);
	z-index: 2147483647;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.fk-modal-overlay.is-open {
	display: flex;
}

/* ── Modal Box ───────────────────────────────────────────── */
.fk-modal {
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	overflow: hidden;
	animation: fkModalIn 0.25s ease;
}

.fk-modal-body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

@keyframes fkModalIn {
	from { transform: translateY(-20px); opacity: 0; }
	to   { transform: translateY(0);     opacity: 1; }
}

.fk-modal-header {
	padding: 20px 24px 16px;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.fk-modal-title {
	margin: 0;
	font-size: 1.1em;
	font-weight: 700;
	color: #13303a;
}

.fk-modal-kurs-info {
	font-size: 0.85em;
	color: #13303a;
	margin: 4px 0 0;
}

.fk-modal-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #96a3aa;
	padding: 0;
	line-height: 1;
	flex-shrink: 0;
}

.fk-modal-close:hover {
	color: #333;
}

.fk-modal-body {
	padding: 20px 24px 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* ── Modal Formular ──────────────────────────────────────── */
.fk-form-group {
	margin-bottom: 14px;
}

.fk-form-group label {
	display: block;
	font-size: 0.88em;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.fk-form-group input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d0dbe3;
	border-radius: 8px;
	font-size: 0.95em;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.fk-form-group input:focus {
	outline: none;
	border-color: #0c71c3;
	box-shadow: 0 0 0 2px rgba(12,113,195,.15);
}

.fk-form-group input.error {
	border-color: #b32d2e;
}

.fk-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fk-form-submit {
	width: 100%;
	padding: 11px;
	background: #0c71c3;
	color: #fff;
	border: none;
	border-radius: 16px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	margin-top: 6px;
	transition: background 0.2s ease;
}

.fk-form-submit:hover:not(:disabled) {
	background: #0a5a9e;
}

.fk-form-submit:disabled {
	background: #9ec0e4;
	cursor: not-allowed;
}

/* ── Meldungen im Modal ──────────────────────────────────── */
.fk-form-message {
	padding: 10px 14px;
	border-radius: 5px;
	font-size: 0.9em;
	margin-bottom: 14px;
	display: none;
}

.fk-form-message.success {
	background: #d7f0e0;
	color: #1a6b38;
	border-left: 4px solid #1a6b38;
}

.fk-form-message.error {
	background: #fde8e8;
	color: #b32d2e;
	border-left: 4px solid #b32d2e;
}

/* ── Wochenüberschrift ───────────────────────────────────── */
.fk-woche-header {
	font-size: 1.1em;
	font-weight: 700;
	color: #13303a;
	border-top: 2px solid #dceaef;
	padding-top: 20px;
	margin: 28px 0 12px;
}

.fk-woche-header:first-child {
	border-top: none;
	margin-top: 0;
	padding-top: 0;
}

/* ── Datenschutz-Checkbox ────────────────────────────────── */
.fk-datenschutz-check {
	margin-bottom: 14px;
}

.fk-check-label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-weight: normal !important;
	font-size: 0.85em;
	color: #444;
	cursor: pointer;
	line-height: 1.5;
}

.fk-check-label input[type="checkbox"] {
	width: 17px;
	min-width: 17px;
	height: 17px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: #0c71c3;
}

.fk-check-label input[type="checkbox"].error {
	outline: 2px solid #b32d2e;
	outline-offset: 1px;
}

.fk-check-label a {
	color: #0c71c3 !important;
	text-decoration: underline;
}

.fk-check-label a:hover {
	color: #0a5a9e !important;
}

/* ── Abmelde-Hinweis ─────────────────────────────────────── */
.fk-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: .95em;
}
.fk-notice p { margin: 0; }
.fk-notice-success {
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}
.fk-notice-error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #7f1d1d;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
	.fk-btn-anmelden {
		width: 100%;
		text-align: center;
	}

	.fk-kurs-actions {
		flex-wrap: wrap;
	}

	.fk-ical-link {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.fk-kurs-datum-zeile {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.fk-form-row {
		grid-template-columns: 1fr;
	}
}
