/* Geführte Einheiten (Dehnübungen, Yoga, Pilates, Qigong & Tai Chi) – Quelle web/src/bewegung/kurs-app.js (npm run build:bewegung) */
.ku-main { max-width: 820px; }
#ku { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--sp-7, 48px); }
.ku-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.ku-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.ku-fine { font-size: .86rem; color: var(--muted); margin: 6px 0; }
.ku-hinweis { border-left: 5px solid var(--c1, #4ade80); }
.ku-hinweis p:first-child { margin-top: 0; }
.ku-figur { display: block; color: var(--text); flex: none; }
.ku-figur.gespiegelt { transform: scaleX(-1); }
.ku-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.ku-meta-gr { font-size: .95rem; margin: 8px 0 12px; }
.ku-min { font-weight: 800; color: var(--text); }
.ku-st { border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: .78rem; background: #dcfce7; color: #166534; }
.ku-st2 { background: #fef3c7; color: #92400e; }
.ku-st3 { background: #fee2e2; color: #991b1b; }

.ku-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ku-prog { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2, #f5f5f7); color: var(--text); padding: 10px 12px; font: inherit; cursor: pointer; transition: transform .15s; }
.ku-prog:hover { transform: translateY(-2px); border-color: var(--c2, #059669); }
.ku-prog-fig { background: var(--surface); border-radius: 14px; flex: none; }
.ku-prog-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ku-prog-t small { color: var(--muted); line-height: 1.35; }

.ku-stand-z { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ku-stand-z div { display: flex; flex-direction: column; background: var(--surface-2, #f5f5f7); border-radius: 14px; padding: 10px 4px; }
.ku-stand-z b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ku-stand-z span { font-size: .8rem; color: var(--muted); }
.ku-woche { display: flex; gap: 6px; justify-content: center; margin: 12px 0 8px; }
.ku-tag { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--surface-2, #eee); color: var(--muted); }
.ku-tag.an { background: linear-gradient(135deg, var(--c1, #4ade80), var(--c2, #059669)); color: #fff; }
.ku-tag.heute { outline: 2px solid var(--c2, #059669); outline-offset: 2px; }
.ku-zielw { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .92rem; }
.ku-ziel { width: auto; }
.ku-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ku-row .h-select { flex: 1; min-width: 130px; }

.ku-eigene { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ku-eig { display: flex; gap: 8px; align-items: stretch; }
.ku-eig-n { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, #f5f5f7); color: var(--text); padding: 10px 14px; font: inherit; cursor: pointer; }
.ku-eig-n small { color: var(--muted); }
.ku-x { width: 44px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--muted); cursor: pointer; }

.ku-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ku-chip { border: 1px solid var(--border); background: var(--surface-2, #f3f4f6); color: var(--text); border-radius: 999px; padding: 7px 13px; font: inherit; font-weight: 600; cursor: pointer; }
.ku-chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--c1, #4ade80), var(--c2, #059669)); color: #fff; border-color: transparent; }
.ku-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ku-ue { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); padding: 10px 8px; font: inherit; cursor: pointer; }
.ku-ue:hover { border-color: var(--c2, #059669); }
.ku-ue b { font-size: .92rem; line-height: 1.25; }
.ku-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ku-links a { border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--text); font-weight: 600; background: var(--surface-2, #f5f5f7); }

.ku-back { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0 0 8px; }
.ku-start { width: 100%; font-size: 1.2rem; min-height: 58px; margin-bottom: 8px; }
.ku-sws { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ku-sw { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .92rem; cursor: pointer; }
.ku-sw[aria-pressed="true"] { background: var(--surface-2, #eef2ff); color: var(--text); border-color: var(--c2, #059669); font-weight: 700; }
.ku-sw[aria-pressed="false"] span { opacity: .45; }
.ku-sw:disabled { opacity: .45; cursor: not-allowed; }
.ku-ablauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ku-zeile { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.ku-zeile:last-child { border-bottom: 0; }
.ku-nr { width: 24px; text-align: center; color: var(--muted); font-weight: 700; flex: none; }
.ku-zn { flex: 1; text-align: left; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); padding: 0; min-width: 0; }
button.ku-zn { cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); }
.ku-zt { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.ku-pm { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2, #f3f4f6); color: var(--text); cursor: pointer; flex: none; }
.ku-name { width: 100%; box-sizing: border-box; margin-bottom: 12px; }
.ku-detail { padding: 4px 18px 20px; overflow: auto; }
.ku-detail-fig { display: grid; place-items: center; background: var(--surface-2, #f5f5f7); border-radius: 18px; }
.ku-detail h3 { margin: 14px 0 4px; font-size: 1rem; }
.ku-detail p, .ku-detail ol { margin: 0 0 4px; }
.ku-detail ol { padding-left: 20px; }
.ku-detail .h-btn { width: 100%; margin-top: 16px; }
.ku-link { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }

/* Laufende Einheit */
body.ku-voll { overflow: hidden; }
.ku-lauf { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #ecfdf5; color: #064e3b; transition: background-color .5s; }
.ku-lauf[data-art="bereit"], .ku-lauf[data-art="seite"] { background: #fffbeb; color: #78350f; }
.ku-lauf.pausiert { filter: saturate(.4); }
.ku-lauf .ku-figur { color: currentColor; max-width: 100%; height: auto; }
.ku-l-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.ku-l-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.1); color: inherit; font-size: 1.1rem; cursor: pointer; }
.ku-l-mitte { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; overflow: hidden; }
.ku-l-fig { flex: 0 1 auto; min-height: 0; display: grid; place-items: center; }
.ku-l-fig svg { width: min(260px, 60vw, 34vh); height: min(260px, 60vw, 34vh); }
.ku-l-phase { font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.ku-l-name { font-size: clamp(1.4rem, 6vw, 2.1rem); font-weight: 800; line-height: 1.15; }
.ku-l-rest { font-size: clamp(3.4rem, 17vw, 6rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ku-l-atem { min-height: 1.6em; font-size: 1.25rem; font-weight: 800; }
.ku-l-atem.ein { color: #0369a1; }
.ku-l-atem.aus { color: #7c3aed; }
.ku-l-text { max-width: 520px; font-size: 1rem; line-height: 1.4; min-height: 4.2em; }
.ku-l-next { font-size: .92rem; opacity: .75; }
.ku-l-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,.12); overflow: hidden; margin-top: 6px; }
.ku-l-bar i { display: block; height: 100%; width: 0; background: currentColor; }
.ku-l-ges { text-align: center; margin: 6px 0 12px; font-variant-numeric: tabular-nums; opacity: .85; font-size: .92rem; }
.ku-l-btns { display: flex; gap: 10px; justify-content: center; }
.ku-l-btn { min-width: 64px; min-height: 56px; border-radius: 18px; border: 0; background: rgba(0,0,0,.1); color: inherit; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.ku-l-haupt { flex: 1; max-width: 300px; background: #064e3b; color: #fff; }
.ku-l-btn:active { transform: scale(.96); }
.ku-fertig { position: fixed; inset: 0; z-index: 2900; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ku-f-karte { background: var(--surface); color: var(--text); border-radius: 26px; padding: 24px 22px; max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: center; max-height: 100%; overflow: auto; }
.ku-f-ico { font-size: 56px; line-height: 1; }
.ku-f-karte h2, .ku-f-karte p { margin: 0; }
.ku-f-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.ku-f-zahlen div { display: flex; flex-direction: column; background: var(--surface-2, #f5f5f7); border-radius: 14px; padding: 10px 4px; }
.ku-f-zahlen b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.ku-f-zahlen span { font-size: .8rem; color: var(--muted); }
@media (max-width: 480px) { .ku-progs { grid-template-columns: 1fr; } .ku-liste { grid-template-columns: repeat(2, 1fr); } .ku-tag { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .ku-lauf, .ku-prog { transition: none; } }

/* Kurzmeldung und Dialog (Helfer aus web/src/training-gen/ui.js) */
.tg-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 14px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 4000; max-width: calc(100vw - 32px); text-align: center; }
.tg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.tg-noscroll { overflow: hidden; }
.tg-modal { position: fixed; inset: 0; z-index: 3500; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-end; justify-content: center; }
.tg-sheet { background: var(--surface); color: var(--text); width: 100%; max-width: 560px; max-height: 92vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.tg-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 10px; font-size: 1.15rem; }
.tg-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2, #f3f4f6); color: var(--text); cursor: pointer; flex: none; }
@media (min-width: 620px) { .tg-modal { align-items: center; } .tg-sheet { border-radius: 24px; } }
.ku-again { display: block; width: 100%; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent-soft, #eef2ff); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ku-again-go { color: var(--accent); font-weight: 700; }
