.rsk-wochenplan-wrapper {
	max-width: 100%;
	margin: 1.5rem 0;
}

.rsk-wochenplan-hinweis {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: #eef2ff;
	border-left: 4px solid #1D4ED8;
	border-radius: 4px;
	color: #1e3a8a;
	font-size: 0.95rem;
}

.rsk-wochenplan-unterricht-link {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-left: 4px solid #15803d;
	border-radius: 8px;
	color: #14532d;
	font-size: 0.95rem;
}

.rsk-wochenplan-unterricht-link-text {
	margin: 0;
}

.rsk-wochenplan-unterricht-link-btn {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.45rem 0.85rem;
	border-radius: 6px;
	background: #15803d;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}

.rsk-wochenplan-unterricht-link-btn:hover {
	background: #166534;
	color: #fff !important;
}

.rsk-week-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
}

.rsk-week-nav-label {
	flex: 1 1 auto;
	font-weight: 600;
	color: #111827;
	text-align: center;
	min-width: 200px;
}

.rsk-week-nav-picker {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex: 0 0 auto;
}

.rsk-week-nav-picker label {
	font-size: 0.88rem;
	color: #4b5563;
	white-space: nowrap;
}

.rsk-week-date-input {
	padding: 0.4rem 0.55rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 0.9rem;
	background: #fff;
	color: #111827;
	min-width: 9.5rem;
}

.rsk-week-date-input:focus {
	outline: 2px solid #93c5fd;
	outline-offset: 1px;
	border-color: #1d4ed8;
}

.rsk-week-nav-btn,
.rsk-week-nav-current {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	background: #f9fafb;
	color: #1d4ed8;
	text-decoration: none;
	font-size: 0.9rem;
}

.rsk-week-nav-btn:hover,
.rsk-week-nav-current:hover {
	background: #eef2ff;
}

.rsk-week-nav-today {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff !important;
	font-weight: 600;
}

.rsk-week-nav-today:hover {
	background: #1e40af;
	border-color: #1e40af;
	color: #fff !important;
}

.rsk-week-nav-today.is-active {
	background: #1e3a8a;
	border-color: #1e3a8a;
	color: #fff !important;
}

.rsk-week-nav-info {
	background: #15803d;
	border-color: #15803d;
	color: #fff !important;
	font-weight: 600;
}

.rsk-week-nav-info:hover {
	background: #166534;
	border-color: #166534;
	color: #fff !important;
}

.rsk-week-ausfaelle {
	margin-bottom: 1.25rem;
	padding: 0.85rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
}

.rsk-week-ausfaelle-titel {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: #991b1b;
}

.rsk-week-ausfaelle-liste {
	margin: 0;
	padding-left: 1.25rem;
	color: #7f1d1d;
	font-size: 0.92rem;
}

.rsk-week-ausfaelle-liste > li {
	margin: 0.45rem 0;
}

.rsk-week-ausfaelle-stunden {
	margin: 0.35rem 0 0.15rem;
	padding-left: 1.1rem;
	list-style: disc;
	font-size: 0.88rem;
}

.rsk-week-ausfaelle-stunden li {
	margin: 0.15rem 0;
}

.rsk-tag-datum {
	margin-left: 0.35rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #6b7280;
}

.rsk-tag-feiertag {
	margin: 0 0 0.65rem;
	padding: 0.45rem 0.6rem;
	background: #fef2f2;
	border-radius: 4px;
	color: #991b1b;
	font-size: 0.82rem;
	font-weight: 600;
}

.rsk-eintrag-ausfall {
	opacity: 0.72;
	position: relative;
}

.rsk-eintrag-ausfall-badge {
	margin: 0 0 0.5rem;
	padding: 0.35rem 0.55rem;
	background: #fee2e2;
	border-radius: 4px;
	color: #991b1b;
	font-size: 0.78rem;
	font-weight: 600;
}

.rsk-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
}

.rsk-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 180px;
}

.rsk-filter-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
}

.rsk-filter-select {
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 0.95rem;
	background: #fff;
	min-width: 200px;
}

.rsk-filter-reset {
	padding: 0.5rem 0.85rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	background: #f9fafb;
	color: #374151;
	font-size: 0.9rem;
	cursor: pointer;
}

.rsk-filter-reset:hover {
	background: #f3f4f6;
}

.rsk-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-bottom: 0.75rem;
	padding: 0.75rem 1rem;
	background: #f8f9fa;
	border-radius: 6px;
	font-size: 0.9rem;
}

.rsk-legend-unterricht {
	margin-bottom: 1.25rem;
}

.rsk-legend-title {
	font-weight: 600;
	color: #333;
}

.rsk-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.rsk-legend-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 4px;
	border: 2px solid #9ca3af;
	background-color: #9ca3af;
}

.rsk-legend-badge,
.rsk-unterricht-badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.35;
	background-color: var(--rsk-u-bg, #f3f4f6);
	color: var(--rsk-u-text, #374151);
	border: 1px solid var(--rsk-u-main, #d1d5db);
}

.rsk-eintrag-unterricht {
	margin-bottom: 0.35rem;
}

.rsk-eintrag-actions {
	margin-top: 0.5rem;
	padding-top: 0.45rem;
	border-top: 1px dashed #e5e7eb;
}

.rsk-eintrag-edit {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	background: #1D4ED8;
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
}

.rsk-eintrag-edit:hover {
	background: #1e3a8a;
	color: #fff !important;
}

.rsk-wochenplan-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.75rem;
}

.rsk-tag {
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 0.75rem;
	min-height: 120px;
}

.rsk-tag-heute {
	border-color: #1D4ED8;
	box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}

.rsk-tag-titel {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #eee;
	font-size: 0.95rem;
	font-weight: 700;
	color: #222;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.rsk-heute-badge {
	display: inline-block;
	padding: 0.1rem 0.45rem;
	background: #1D4ED8;
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rsk-tag-leer,
.rsk-wochenplan-leer {
	margin: 0;
	color: #888;
	font-size: 0.85rem;
	font-style: italic;
}

.rsk-zeitslot {
	margin-bottom: 0.65rem;
}

.rsk-zeitslot:last-child {
	margin-bottom: 0;
}

.rsk-zeitslot-parallel {
	border: 1px solid #e2e6ea;
	border-radius: 6px;
	overflow: hidden;
	background: #fafafa;
}

.rsk-zeitslot-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.6rem;
	background: #f3f4f6;
	border-bottom: 1px solid #e2e6ea;
	font-size: 0.8rem;
}

.rsk-zeitslot-uhrzeit {
	font-weight: 700;
	color: #111;
}

.rsk-zeitslot-hinweis {
	color: #6b7280;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rsk-zeitslot-liste .rsk-eintrag-kompakt {
	border-radius: 0;
	border-top: none;
	border-right: none;
	border-bottom: 1px solid #eef0f2;
}

.rsk-zeitslot-liste .rsk-eintrag-kompakt:last-child {
	border-bottom: none;
}

.rsk-eintrag-kompakt {
	padding: 0.5rem 0.55rem;
}

.rsk-eintrag-kompakt-inhalt {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.rsk-eintrag-kompakt .rsk-eintrag-uhrzeit-kompakt {
	font-weight: 700;
	font-size: 0.78rem;
	color: #111;
	line-height: 1.3;
}

.rsk-eintrag-kompakt .rsk-eintrag-ort {
	font-weight: 700;
	font-size: 0.8rem;
	color: #111;
	line-height: 1.3;
}

.rsk-eintrag-kompakt .rsk-eintrag-trainer {
	font-size: 0.78rem;
	color: #555;
	line-height: 1.3;
}

.rsk-eintrag-kompakt .rsk-unterricht-badge {
	align-self: flex-start;
	font-size: 0.72rem;
}

.rsk-eintrag-kompakt .rsk-eintrag-actions {
	margin-top: 0.35rem;
	padding-top: 0;
	border-top: none;
}

.rsk-eintrag-kompakt .rsk-eintrag-edit {
	font-size: 0.72rem;
	padding: 0.2rem 0.5rem;
}

.rsk-eintrag {
	padding: 0.6rem 0.65rem;
	border-left: 5px solid transparent;
	background-color: #fff;
	border-radius: 4px;
	font-size: 0.82rem;
	line-height: 1.45;
}

.rsk-eintrag[hidden] {
	display: none !important;
}

.rsk-zeitslot[hidden] {
	display: none !important;
}

.rsk-eintrag-uhrzeit {
	font-weight: 700;
	color: #111;
	margin-bottom: 0.2rem;
}

.rsk-eintrag-details {
	margin: 0;
}

.rsk-detail {
	display: flex;
	gap: 0.35rem;
	margin: 0.1rem 0;
}

.rsk-detail dt {
	margin: 0;
	font-weight: 600;
	color: #555;
	flex-shrink: 0;
}

.rsk-detail dt::after {
	content: ':';
}

.rsk-detail dd {
	margin: 0;
	color: #333;
}

.rsk-eintrag-members {
	margin: 0.25rem 0 0;
	padding-left: 1rem;
	font-size: 0.78rem;
	color: #374151;
}

.rsk-eintrag-members li {
	margin: 0.1rem 0;
}

.rsk-eintrag-capacity {
	font-weight: 600;
}

.rsk-eintrag-horse-summary {
	font-weight: 500;
	color: #4b5563;
}

@media (max-width: 1200px) {
	.rsk-wochenplan-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.rsk-wochenplan-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.rsk-wochenplan-grid {
		grid-template-columns: 1fr;
	}

	.rsk-legend,
	.rsk-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.rsk-filter-group,
	.rsk-filter-select {
		min-width: 0;
		width: 100%;
	}
}

.rsk-wochenplan-grid.rsk-wochenplan-grid-einzeltag {
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 640px;
}
