/* ==========================================================================
   EM Kursplan – Frontend
   Mobile first · islamisch-traditionell, modern · keine externen Ressourcen
   ========================================================================== */

.emk {
	--emk-primary: #0f5a46;
	--emk-accent: #c49a2c;
	--emk-bg: #faf6ee;
	--emk-sticky-top: 0px;

	--emk-primary-dark: color-mix(in srgb, var(--emk-primary) 78%, #000);
	--emk-primary-soft: color-mix(in srgb, var(--emk-primary) 9%, #fff);
	--emk-accent-soft: color-mix(in srgb, var(--emk-accent) 16%, #fff);
	--emk-accent-dark: color-mix(in srgb, var(--emk-accent) 70%, #3a2a00);
	--emk-ink: #1b2622;
	--emk-muted: #67716c;
	--emk-line: #e7dfcf;
	--emk-card: #ffffff;
	--emk-radius: 18px;
	--emk-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

	position: relative;
	color: var(--emk-ink);
	background: var(--emk-bg);
	border-radius: calc(var(--emk-radius) + 6px);
	padding: 0 12px 16px;
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	text-align: left;
	overflow: clip;
}
.emk *, .emk *::before, .emk *::after { box-sizing: border-box; }

/* Theme-Stile neutralisieren */
.emk button {
	appearance: none; -webkit-appearance: none;
	background: none; border: 0; margin: 0; padding: 0; width: auto; min-height: 0; min-width: 0;
	font: inherit; color: inherit; line-height: inherit; letter-spacing: normal; text-transform: none;
	text-decoration: none; box-shadow: none; border-radius: 0; cursor: pointer; text-align: inherit;
}
.emk button:focus-visible { outline: 2px solid var(--emk-accent); outline-offset: 2px; }
.emk h2, .emk h3, .emk p { margin: 0; padding: 0; }
.emk ul { margin: 0; padding: 0; list-style: none; }
.emk fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.emk legend { padding: 0; }
.emk [hidden] { display: none !important; }
.emk svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfbereich (ohne Hintergrund; optional eigenes Bild) ---------- */
.emk-head {
	position: relative;
	margin: 0 -12px 6px;
	padding: 26px 20px 18px;
	text-align: center;
	background: none center / cover no-repeat;
	border-radius: calc(var(--emk-radius) + 6px) calc(var(--emk-radius) + 6px) 0 0;
}
.emk-head.has-img { padding: 44px 20px 40px; margin-bottom: 14px; }
.emk-head-inner { position: relative; }
.emk .emk-title {
	font-family: var(--emk-serif);
	font-size: clamp(26px, 6vw, 36px);
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.15;
	color: var(--emk-primary-dark);
	margin: 0 0 6px;
}
.emk .emk-sub { font-size: 14.5px; color: var(--emk-muted); max-width: 34em; margin: 0 auto; }
.emk .emk-head.is-light .emk-title { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.emk .emk-head.is-light .emk-sub { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* ---------- Leiste: Zusammenfassung & Filter ---------- */
.emk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.emk .emk-summary { font-size: 14px; color: var(--emk-muted); padding-left: 2px; }
.emk-summary b { color: var(--emk-ink); font-weight: 700; }
.emk-summary span { color: var(--emk-accent-dark); }
.emk .emk-iconbtn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	color: var(--emk-primary); background: var(--emk-primary-soft); transition: background .15s, transform .1s;
}
.emk .emk-iconbtn:hover { background: color-mix(in srgb, var(--emk-primary) 16%, #fff); }
.emk .emk-iconbtn:active { transform: scale(.94); }
.emk .emk-iconbtn svg { width: 20px; height: 20px; }
.emk-bar-actions { display: flex; gap: 8px; margin-left: auto; }

.emk .emk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
	transition: background .15s, color .15s, transform .1s; white-space: nowrap;
}
.emk .emk-btn:active { transform: scale(.97); }
.emk .emk-btn-ghost { background: var(--emk-card); border: 1px solid var(--emk-line); color: var(--emk-primary); }
.emk .emk-btn-ghost:hover { border-color: var(--emk-primary); }
.emk .emk-btn-primary { background: var(--emk-primary); color: #fff; }
.emk .emk-btn-primary:hover { background: var(--emk-primary-dark); }
.emk .emk-btn-filter { background: var(--emk-primary); color: #fff; }
.emk .emk-btn-filter[aria-expanded="true"] { background: var(--emk-primary-dark); }
.emk-count {
	display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
	background: var(--emk-accent); color: #1d1600; font-size: 12px; font-weight: 800;
}

/* Aktive Filter */
.emk-active { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.emk-active::-webkit-scrollbar { display: none; }
.emk .emk-achip {
	display: inline-flex; align-items: center; gap: 4px; flex: none;
	padding: 5px 8px 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
	background: var(--emk-accent-soft); color: var(--emk-accent-dark);
}
.emk .emk-achip svg { width: 14px; height: 14px; }
.emk .emk-achip-clear { background: transparent; text-decoration: underline; padding-right: 12px; }

/* ---------- Tagesleiste (mobil) ---------- */
.emk-strip {
	position: sticky; top: var(--emk-sticky-top); z-index: 5;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px;
	margin: 0 -12px 8px; padding: 8px 12px;
	background: color-mix(in srgb, var(--emk-bg) 88%, transparent);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--emk-line);
}
.emk .emk-strip-day {
	position: relative; display: flex; flex-direction: column; align-items: center;
	padding: 9px 0 12px; border-radius: 14px; transition: background .15s, color .15s;
}
.emk-strip-day b { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.emk-strip-day i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.emk-strip-day.has-items i { background: var(--emk-accent); }
.emk-strip-day.is-today { box-shadow: inset 0 0 0 1.5px var(--emk-accent); }
.emk .emk-strip-day.is-active { background: var(--emk-primary); color: #fff; }
.emk-strip-day.is-active.has-items i { background: #fff; }

/* ---------- Tage & Karten ---------- */
.emk-week { display: flex; flex-direction: column; gap: 18px; }
.emk-week.is-hidden-empty { display: none; }
.emk-day { scroll-margin-top: 70px; }
.emk-day-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.emk-day-name { font-family: var(--emk-serif); font-size: 20px; font-weight: 600; color: var(--emk-primary-dark); }
.emk-today-pill {
	margin-left: auto; align-self: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 99px; background: var(--emk-accent); color: #1d1600;
}
.emk-day-list { display: flex; flex-direction: column; gap: 10px; }
.emk-none { font-size: 13.5px; color: var(--emk-muted); }

/* Leere Tage mobil kompakt */
.emk-day.is-empty { display: flex; align-items: baseline; gap: 10px; opacity: .75; }
.emk-day.is-empty .emk-day-head { margin-bottom: 0; }
.emk-day.is-empty .emk-day-name { font-size: 17px; }
.emk-day.is-empty .emk-none::before { content: "· "; }

.emk .emk-card {
	position: relative;
	display: grid; grid-template-columns: 62px 1fr 18px; gap: 12px; align-items: start;
	width: 100%; padding: 14px 12px 14px 14px;
	background: var(--emk-card); border: 1px solid var(--emk-line); border-radius: var(--emk-radius);
	box-shadow: 0 1px 2px rgba(20, 40, 30, .04), 0 6px 18px -12px rgba(20, 40, 30, .25);
	transition: transform .12s, box-shadow .15s, border-color .15s;
	overflow: hidden;
}
.emk .emk-card::before {
	content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
	background: var(--emk-accent);
}
.emk .emk-card:hover { border-color: color-mix(in srgb, var(--emk-primary) 35%, var(--emk-line)); box-shadow: 0 2px 4px rgba(20,40,30,.05), 0 12px 24px -14px rgba(20,40,30,.35); }
.emk .emk-card:active { transform: scale(.985); }
.emk-card.is-off .emk-card-time b, .emk-card.is-off .emk-card-title { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .6; }
.emk-card.is-off::before { background: #c2552d; }
.emk-card.is-live { border-color: var(--emk-primary); box-shadow: 0 0 0 3px var(--emk-primary-soft); }
.emk-card.is-live::before { background: var(--emk-primary); }

.emk-card-time { display: flex; flex-direction: column; line-height: 1.15; padding-top: 1px; }
.emk-card-time b { font-size: 18px; font-weight: 750; color: var(--emk-primary); font-variant-numeric: tabular-nums; }
.emk-card-time small { font-size: 12.5px; color: var(--emk-muted); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

.emk-card-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.emk-card-title { font-size: 16.5px; font-weight: 700; line-height: 1.25; color: var(--emk-ink); overflow-wrap: anywhere; }
.emk-card-meta { display: flex; flex-wrap: wrap; gap: 5px 6px; align-items: center; }
.emk-badge {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; font-weight: 650; line-height: 1; padding: 5px 8px; border-radius: 8px;
	background: var(--emk-primary-soft); color: var(--emk-primary-dark);
}
.emk-badge svg { width: 13px; height: 13px; }
.emk-badge-lang { background: transparent; box-shadow: inset 0 0 0 1.3px color-mix(in srgb, var(--emk-accent) 70%, #fff); color: var(--emk-accent-dark); letter-spacing: .04em; }
.emk-badge-gold { background: var(--emk-accent-soft); color: var(--emk-accent-dark); }
.emk-badge-warn { background: #fbe9e1; color: #a3401c; }

/* Flaggen */
.emk-flag { display: inline-flex; align-items: center; flex: none; }
.emk .emk-flag svg {
	width: 24px; height: 16px; stroke: none; border-radius: 3px; display: block;
	box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.emk-rows .emk-flag { vertical-align: -2px; margin-right: 2px; }
.emk-card-coach { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #34413b; }
.emk-card-loc { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--emk-muted); }
.emk-card-loc svg { width: 14px; height: 14px; color: var(--emk-accent-dark); }
.emk-card-chev { color: #b9b19e; align-self: center; }
.emk-card-chev svg { width: 18px; height: 18px; }

.emk-live {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--emk-primary);
}
.emk-live::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fa36f;
	box-shadow: 0 0 0 0 rgba(31,163,111,.6); animation: emk-pulse 1.6s infinite;
}
@keyframes emk-pulse { 70% { box-shadow: 0 0 0 7px rgba(31,163,111,0); } 100% { box-shadow: 0 0 0 0 rgba(31,163,111,0); } }

/* Avatare */
.emk-ava {
	display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
	background: var(--emk-primary); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding-top: 1px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--emk-accent-soft);
}
.emk-ava-xs { width: 22px; height: 22px; font-size: 9.5px; box-shadow: none; }
.emk-ava-sm { width: 24px; height: 24px; font-size: 10px; }
.emk-ava-lg { width: 52px; height: 52px; font-size: 17px; }

/* Leerer Zustand */
.emk-empty {
	text-align: center; padding: 36px 20px; background: var(--emk-card); border: 1px dashed var(--emk-line);
	border-radius: var(--emk-radius); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--emk-muted);
}
.emk-empty strong { color: var(--emk-ink); font-size: 16px; }

.emk-footer-note { margin-top: 16px; font-size: 13.5px; color: var(--emk-muted); text-align: center; }
.emk-footer-note p { margin: 0 0 .4em; }

/* ---------- Filter: Bottom-Sheet (mobil) ---------- */
.emk-panel { position: fixed; inset: 0; z-index: 99990; }
.emk-panel-backdrop, .emk-backdrop {
	position: absolute; inset: 0; background: rgba(10, 25, 20, .45);
	opacity: 0; transition: opacity .2s;
}
.emk-panel-inner {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh;
	display: flex; flex-direction: column;
	background: var(--emk-bg); border-radius: 24px 24px 0 0;
	transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
	box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
.emk-panel-inner::before {
	content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d5ccb8;
}
.emk-panel.is-open .emk-panel-backdrop, .emk-modal.is-open .emk-backdrop { opacity: 1; }
.emk-panel.is-open .emk-panel-inner { transform: none; }
.emk-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 8px 20px; }
.emk-panel-head strong { font-family: var(--emk-serif); font-size: 21px; font-weight: 600; color: var(--emk-primary-dark); }
.emk-panel-body { overflow-y: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; }
.emk-panel-foot {
	display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--emk-line); background: var(--emk-card);
}
.emk-panel-foot .emk-btn-primary { flex: 1; }

.emk-fgroup legend {
	display: flex; justify-content: space-between; width: 100%;
	font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--emk-accent-dark); margin-bottom: 10px;
}
.emk-age-out { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--emk-primary); font-weight: 700; }
.emk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.emk .emk-chip {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 40px; padding: 0 14px; border-radius: 999px;
	background: var(--emk-card); border: 1.5px solid var(--emk-line); font-size: 14px; font-weight: 600; color: #33403b;
	transition: background .15s, border-color .15s, color .15s;
}
.emk .emk-chip:has(.emk-ava) { padding-left: 6px; }
.emk .emk-chip[aria-pressed="true"] .emk-ava { background: rgba(255,255,255,.22); }
.emk .emk-chip[aria-pressed="true"] { background: var(--emk-primary); border-color: var(--emk-primary); color: #fff; }
.emk-chips-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.emk .emk-chips-days .emk-chip { justify-content: center; padding: 0; }

/* Doppel-Schieberegler Alter */
.emk-range-wrap { position: relative; height: 32px; }
.emk-range-track { position: absolute; left: 11px; right: 11px; top: 14px; height: 4px; border-radius: 4px; background: var(--emk-line); }
.emk-range-track i { position: absolute; top: 0; bottom: 0; background: var(--emk-primary); border-radius: 4px; }
.emk-range-wrap input[type=range] {
	position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: none; pointer-events: none;
	-webkit-appearance: none; appearance: none; border: 0; padding: 0; box-shadow: none;
}
.emk-range-wrap input[type=range]::-webkit-slider-runnable-track { background: none; height: 32px; }
.emk-range-wrap input[type=range]::-moz-range-track { background: none; }
.emk-range-wrap input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 4px; border-radius: 50%;
	background: #fff; border: 3px solid var(--emk-primary); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab;
}
.emk-range-wrap input[type=range]::-moz-range-thumb {
	pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 3px solid var(--emk-primary); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab;
}
.emk-range-wrap input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--emk-accent); outline-offset: 2px; }
.emk-range-scale { display: flex; justify-content: space-between; padding: 0 6px; font-size: 11.5px; color: var(--emk-muted); }

/* ---------- Detail-Dialog ---------- */
.emk-modal { position: fixed; inset: 0; z-index: 99995; }
.emk-dialog {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh;
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--emk-bg); border-radius: 24px 24px 0 0; outline: none;
	transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
	box-shadow: 0 -10px 40px rgba(0,0,0,.25);
	color: var(--emk-ink);
}
.emk-modal.is-open .emk-dialog { transform: none; }
.emk-dlg-head {
	position: relative; padding: 26px 64px 22px 22px; color: #fffaf0;
	background: linear-gradient(160deg, var(--emk-primary), var(--emk-primary-dark));
}
.emk-dlg-head h3 { font-family: var(--emk-serif); font-size: 25px; font-weight: 600; line-height: 1.2; color: #fffaf0; margin-top: 6px; }
.emk-dlg-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--emk-accent) 70%, #fff); }
.emk .emk-dlg-close { position: absolute; top: 16px; right: 14px; background: rgba(255,255,255,.14); color: #fff; }
.emk .emk-dlg-close:hover { background: rgba(255,255,255,.25); }
.emk-dlg-body { overflow-y: auto; padding: 18px 22px 8px; overscroll-behavior: contain; }
.emk-note {
	display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px;
	border-radius: 14px; background: var(--emk-accent-soft); color: var(--emk-accent-dark); font-weight: 600; font-size: 14px;
}
.emk-rows li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--emk-line); }
.emk-rows li:last-child { border-bottom: 0; }
.emk-row-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--emk-primary-soft); color: var(--emk-primary); flex: none; }
.emk-rows b { display: block; font-weight: 650; font-size: 15px; padding-top: 1px; }
.emk-rows small { display: block; line-height: 1.5; font-size: 13px; color: var(--emk-muted); margin-top: 1px; }
.emk-coach {
	display: flex; gap: 14px; align-items: center; margin: 14px 0; padding: 14px;
	background: var(--emk-card); border: 1px solid var(--emk-line); border-radius: 16px;
}
.emk-coach strong { display: block; font-size: 16px; }
.emk-coach > div > span { display: block; font-size: 13px; color: var(--emk-muted); }
.emk-desc { font-size: 15px; line-height: 1.6; margin: 6px 0 12px; color: #2c3833; }
.emk-desc p { margin: 0 0 .8em; }
.emk-dlg-foot {
	display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--emk-line); background: var(--emk-card);
}
.emk-dlg-foot .emk-btn-primary { flex: 1; }

html.emk-lock, html.emk-lock body { overflow: hidden; }

/* ---------- Tablet: kleinere Anpassungen ---------- */
@media (min-width: 600px) {
	.emk { padding: 0 20px 22px; }
	.emk-head { margin: 0 -20px 8px; padding: 34px 24px 20px; }
	.emk-head.has-img { padding: 60px 24px 56px; margin-bottom: 18px; }
	.emk-strip { margin: 0 -20px 10px; padding: 8px 20px; }
	.emk-panel-inner, .emk-dialog { left: 50%; right: auto; width: 560px; margin-left: -280px; }
}

/* ==========================================================================
   Breite Ansicht (Container ≥ 880px): Wochenraster Mo–So
   ========================================================================== */
.emk.is-wide { padding: 0 22px 24px; }
.emk.is-wide .emk-head { margin: 0 -22px 10px; padding: 40px 24px 22px; }
.emk.is-wide .emk-head.has-img { padding: 72px 24px 68px; margin-bottom: 20px; }
.emk.is-wide .emk-strip { display: none; }
.emk.is-wide .emk-week {
	display: grid; gap: 10px; align-items: start;
	grid-template-columns: repeat(var(--emk-cols, 7), minmax(0, 1fr));
}
.emk.is-wide .emk-week.is-hidden-empty { display: none; }
.emk.is-wide .emk-day, .emk.is-wide .emk-day.is-empty {
	display: flex; flex-direction: column; align-items: stretch; gap: 0; opacity: 1;
	background: color-mix(in srgb, var(--emk-primary) 3.5%, transparent);
	border-radius: 18px 18px 14px 14px; min-height: 260px; padding-bottom: 8px;
}
.emk.is-wide .emk-day-head {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin: 0 0 10px;
	min-height: 74px; padding: 16px 6px 12px; text-align: center; overflow: hidden;
	background: var(--emk-primary) center / cover no-repeat;
	/* Bogenform */
	border-radius: 50% 50% 12px 12px / 30px 30px 12px 12px;
}
.emk.is-wide .emk-day-head.has-img { background-image: var(--emk-head-img); }
.emk.is-wide .emk-day-name { position: relative; z-index: 1; color: #fff; font-size: 17px; }
.emk.is-wide .emk-day.is-empty .emk-day-name { font-size: 17px; }
.emk.is-wide .emk-day-head.has-img .emk-day-name { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.emk.emk-cols-dark.is-wide .emk-day-head.has-img .emk-day-name { color: var(--emk-ink); text-shadow: 0 1px 8px rgba(255,255,255,.6); }
.emk.is-wide .emk-today-pill {
	position: relative; z-index: 1; margin: 4px 0 0; font-size: 10px; background: #fff; color: var(--emk-accent-dark);
}
.emk.is-wide .emk-day.is-today { background: var(--emk-accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--emk-accent) 55%, #fff); }
/* Heute: Gold überblendet Farbe bzw. Bild */
.emk.is-wide .emk-day.is-today .emk-day-head::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--emk-accent) 88%, #fff), var(--emk-accent));
}
.emk.is-wide .emk-day.is-today .emk-day-head.has-img::before { opacity: .72; }
.emk.is-wide .emk-day.is-today .emk-day-name,
.emk.emk-cols-dark.is-wide .emk-day.is-today .emk-day-head.has-img .emk-day-name { color: #fff; text-shadow: 0 1px 6px rgba(60,40,0,.45); }
.emk.is-wide .emk-day-list { padding: 0 7px; gap: 8px; }
.emk.is-wide .emk-none { text-align: center; padding: 22px 4px; font-size: 13px; }
.emk.is-wide .emk-day.is-empty .emk-none::before { content: none; }

.emk.is-wide .emk-card {
	grid-template-columns: 1fr; gap: 6px; padding: 12px 11px 12px 13px; border-radius: 14px;
}
.emk.is-wide .emk-card::before { top: 12px; bottom: 12px; }
.emk.is-wide .emk-card-time { flex-direction: row; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.emk.is-wide .emk-card-time b { font-size: 15px; }
.emk.is-wide .emk-card-time small { font-size: 12px; margin: 0; }
.emk.is-wide .emk-card-time small:not(:empty)::before { content: "– "; }
.emk.is-wide .emk-card-title { font-size: 14.5px; }
.emk.is-wide .emk-card-coach { font-size: 12.5px; }
.emk.is-wide .emk-badge { font-size: 11px; padding: 4px 6px; }
.emk.is-wide .emk-card-chev { display: none; }

/* Filter inline auf breiten Flächen */
.emk.is-wide .emk-panel { position: static; margin-bottom: 14px; }
.emk.is-wide .emk-panel-backdrop { display: none; }
.emk.is-wide .emk-panel-inner {
	position: static; transform: none; width: auto; margin: 0; max-height: none;
	border-radius: var(--emk-radius); background: var(--emk-card); border: 1px solid var(--emk-line); box-shadow: 0 10px 30px -20px rgba(20,40,30,.4);
	opacity: 0; transition: opacity .2s;
}
.emk.is-wide .emk-panel.is-open .emk-panel-inner { opacity: 1; }
.emk.is-wide .emk-panel-inner::before { display: none; }
.emk.is-wide .emk-panel-head { padding: 16px 16px 4px 22px; }
.emk.is-wide .emk-panel-body {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 28px; padding: 10px 22px 18px;
}
.emk.is-wide .emk-panel-foot { justify-content: flex-end; border-radius: 0 0 var(--emk-radius) var(--emk-radius); background: #fcfaf5; }
.emk.is-wide .emk-panel-foot .emk-btn-primary { flex: 0 0 auto; }

/* Dialog als zentriertes Fenster auf großen Bildschirmen */
@media (min-width: 900px) {
	.emk .emk-dialog {
		top: 50%; bottom: auto; left: 50%; width: 560px; margin: 0; border-radius: 24px; max-height: 86vh;
		transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .2s, opacity .2s;
	}
	.emk .emk-modal.is-open .emk-dialog { transform: translate(-50%, -50%); opacity: 1; }
	.emk .emk-dlg-foot { border-radius: 0 0 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.emk *, .emk *::before, .emk *::after { transition: none !important; animation: none !important; }
}

@media print {
	.emk-bar, .emk-strip, .emk-active, .emk-panel, .emk-modal { display: none !important; }
	.emk-card { break-inside: avoid; box-shadow: none !important; }
}
