/* SK Kalender Mini – SK Light Branding / Nova hell */
.skcm-wrap {
	--a: #B1976B;
	--a2: #d8c3a1;
	--tx: #2b2b2b;
	--mu: #8a857a;
	--ln: #ece6da;
	--glow: 0 4px 14px rgba(177, 151, 107, .45);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--tx);
	max-width: 100%;
}
.skcm-wrap *, .skcm-wrap *::before, .skcm-wrap *::after { box-sizing: border-box; }

.skcm {
	background: #fff;
	border: 1px solid var(--ln);
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
	overflow: hidden;
}
.skcm.is-loading .skcm-grid { opacity: .45; transition: opacity .15s; }

/* Kopf mit Monatsname */
.skcm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .85rem .9rem;
	background: linear-gradient(135deg, var(--a), var(--a2));
	color: #fff;
}
.skcm-title { flex: 1; text-align: center; font-size: 1.05rem; font-weight: 800; text-transform: capitalize; }
.skcm-nav {
	width: 2rem; height: 2rem;
	font: inherit; font-size: 1.3rem; line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .22);
	border: 0; border-radius: 50%;
	cursor: pointer;
	transition: background .15s, box-shadow .15s;
}
.skcm-nav:hover { background: rgba(255, 255, 255, .4); }
.skcm-nav:focus-visible, .skcm-d:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

.skcm-body { padding: .7rem .75rem .85rem; }

.skcm-dow, .skcm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.skcm-dow { margin-bottom: .25rem; }
.skcm-dow span {
	text-align: center;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--mu);
	padding: .2rem 0;
}

/* Tage */
.skcm-d {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
	min-height: 2.6rem;
	padding: .2rem 0 .1rem;
	font: inherit;
	color: var(--tx);
	background: none;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}
.skcm-d:hover { background: #faf7f1; }
.skcm-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.7rem; height: 1.7rem;
	font-size: .85rem; font-weight: 700;
	border-radius: 50%;
}
.skcm-d.is-out .skcm-num { color: #c3beb2; font-weight: 600; }
.skcm-d.is-today .skcm-num { color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: var(--glow); }
.skcm-d.is-sel { background: #f6f0e4; box-shadow: inset 0 0 0 1.5px var(--a2); }
.skcm-d.is-next .skcm-num { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--a); }
.skcm-d.is-today.is-next .skcm-num { box-shadow: var(--glow), 0 0 0 2px #fff, 0 0 0 3.5px var(--a); }
.skcm-bars { display: flex; gap: 2px; min-height: 4px; }
.skcm-bars i { display: block; width: 11px; height: 4px; border-radius: 2px; }

/* Tagesliste */
.skcm-day { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--ln); }
.skcm-day-title { margin: 0 0 .5rem; font-size: .88rem; font-weight: 800; }
.skcm-day-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.skcm-day-list li {
	display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem;
	padding: .45rem .6rem;
	background: #faf7f1;
	border-left: 3px solid var(--c);
	border-radius: 8px;
}
.skcm-time { font-size: .74rem; font-weight: 700; color: var(--mu); font-variant-numeric: tabular-nums; }
.skcm-link { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; color: var(--tx); text-decoration: none; overflow-wrap: anywhere; }
.skcm-link:hover { color: var(--a); }
.skcm-msg { margin: 0; padding: .3rem 0; font-size: .85rem; color: var(--mu); text-align: center; }

/* Countdown-Badge */
.skcm-badge {
	display: inline-block;
	font-size: .68rem; font-weight: 800; line-height: 1;
	white-space: nowrap;
	color: #8a7448;
	background: #f3ece0;
	border-radius: 999px;
	padding: .28rem .6rem;
}
.skcm-badge.is-now { color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: var(--glow); }

/* Nächste Termine mit Countdown */
.skcm-up { margin-top: .9rem; background: #fff; border: 1px solid var(--ln); border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); padding: .9rem 1rem; }
.skcm-up-title { margin: 0 0 .6rem; font-size: .9rem; font-weight: 800; }
.skcm-up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.skcm-up-item { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: center; padding: .55rem .65rem; background: #faf7f1; border-left: 3px solid var(--c); border-radius: 8px; }
.skcm-up-link { font-size: .88rem; font-weight: 700; color: var(--tx); text-decoration: none; overflow-wrap: anywhere; }
.skcm-up-link:hover { color: var(--a); }
.skcm-up-when { grid-column: 2; font-size: .75rem; color: var(--mu); }
.skcm-error { padding: .8rem 1rem; color: #8a7448; background: #f3ece0; border-radius: 10px; }

/* Dark Mode der Seite */
html[data-bs-theme="dark"] .skcm-wrap, body.dark .skcm-wrap, .dark-mode .skcm-wrap { color: #e9e5dc; }
html[data-bs-theme="dark"] .skcm, html[data-bs-theme="dark"] .skcm-up,
body.dark .skcm, body.dark .skcm-up, .dark-mode .skcm, .dark-mode .skcm-up { background: #23201b; border-color: #3a352b; }
html[data-bs-theme="dark"] .skcm-d, html[data-bs-theme="dark"] .skcm-link, html[data-bs-theme="dark"] .skcm-up-link,
body.dark .skcm-d, body.dark .skcm-link, body.dark .skcm-up-link, .dark-mode .skcm-d, .dark-mode .skcm-link, .dark-mode .skcm-up-link { color: #e9e5dc; }
html[data-bs-theme="dark"] .skcm-d:hover, html[data-bs-theme="dark"] .skcm-d.is-sel, html[data-bs-theme="dark"] .skcm-day-list li, html[data-bs-theme="dark"] .skcm-up-item,
body.dark .skcm-d:hover, body.dark .skcm-d.is-sel, body.dark .skcm-day-list li, body.dark .skcm-up-item,
.dark-mode .skcm-d:hover, .dark-mode .skcm-d.is-sel, .dark-mode .skcm-day-list li, .dark-mode .skcm-up-item { background: #2c2820; }

@media (prefers-reduced-motion: reduce) { .skcm.is-loading .skcm-grid, .skcm-nav { transition: none; } }

.skcm-rep { display: block; font-size: .72rem; color: #8a7448; margin-top: .1rem; }
