/* Intervall-Timer – Quelle web/src/bewegung/timer-app.js (npm run build:bewegung) */
.iv-main { max-width: 760px; }
#iv { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--sp-7, 48px); }
.iv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.iv-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.iv-fine { font-size: .86rem; color: var(--muted); margin: 4px 0; }
.iv-warn { padding: 0 6px; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-chip { border: 1px solid var(--border); background: var(--surface-2, #f3f4f6); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.iv-chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--c1, #4ade80), var(--c2, #059669)); color: #fff; border-color: transparent; }
.iv-vtext { margin: 10px 0 14px; color: var(--muted); min-height: 2.6em; }
.iv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 16px; }
.iv-feld { display: flex; flex-direction: column; gap: 4px; }
.iv-feld[hidden] { display: none; }
.iv-fname { font-weight: 700; }
.iv-feld small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.iv-step { display: flex; align-items: stretch; gap: 6px; }
.iv-pm { width: 46px; min-height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2, #f3f4f6); color: var(--text); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.iv-pm:active { transform: scale(.94); }
.iv-in { flex: 1; min-width: 0; text-align: center; font: inherit; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); padding: 6px; }
.iv-det { margin: 14px 0 4px; }
.iv-det summary { cursor: pointer; font-weight: 600; }
.iv-namen { width: 100%; box-sizing: border-box; font: inherit; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: var(--surface); color: var(--text); margin-top: 6px; }
.iv-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 10px; }
.iv-summe { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.iv-sws { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.iv-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; }
.iv-sw[aria-pressed="true"] { background: var(--surface-2, #eef2ff); color: var(--text); border-color: var(--c2, #059669); font-weight: 700; }
.iv-sw[aria-pressed="false"] span { opacity: .45; }
.iv-sw:disabled { opacity: .45; cursor: not-allowed; }
.iv-start { width: 100%; font-size: 1.2rem; min-height: 58px; }
.iv-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.iv-row .h-btn { flex: 1; }
.iv-eigene { display: flex; flex-direction: column; gap: 8px; }
.iv-eig { display: flex; gap: 8px; align-items: stretch; }
.iv-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; }
.iv-eig-n small { color: var(--muted); }
.iv-x { width: 44px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--muted); cursor: pointer; }
.iv-verlauf { margin: 0; padding-left: 18px; }
.iv-link { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }

/* Laufender Timer: ganze Fläche, Farbe je Phase */
body.iv-voll { overflow: hidden; }
.iv-lauf { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; color: #fff; padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: #334155; transition: background-color .35s; }
.iv-lauf[data-art="vor"] { background: #b45309; }
.iv-lauf[data-art="be"] { background: #15803d; }
.iv-lauf[data-art="pa"] { background: #b91c1c; }
.iv-lauf[data-art="sp"] { background: #1d4ed8; }
.iv-lauf[data-art="ab"] { background: #6d28d9; }
.iv-lauf.pausiert { filter: saturate(.45); }
.iv-l-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.05rem; }
.iv-l-x { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; cursor: pointer; }
.iv-l-mitte { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }
.iv-l-phase { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.iv-l-name { font-size: clamp(1.2rem, 5vw, 2rem); min-height: 1.3em; opacity: .95; }
.iv-l-rest { font-size: clamp(6rem, 34vw, 15rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.iv-l-rest.knapp { animation: ivPuls .5s ease-in-out infinite alternate; }
@keyframes ivPuls { to { transform: scale(1.06); } }
.iv-l-next { font-size: 1.05rem; opacity: .9; margin-top: 8px; }
.iv-l-bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.25); overflow: hidden; }
.iv-l-bar i { display: block; height: 100%; width: 0; background: #fff; }
.iv-l-ges { text-align: center; margin: 8px 0 14px; font-variant-numeric: tabular-nums; opacity: .92; }
.iv-l-btns { display: flex; gap: 10px; justify-content: center; }
.iv-l-btn { min-width: 68px; min-height: 60px; border-radius: 20px; border: 0; background: rgba(255,255,255,.2); color: #fff; font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.iv-l-haupt { flex: 1; max-width: 300px; background: #fff; color: #111827; }
.iv-l-btn:active { transform: scale(.96); }

.iv-fertig { position: fixed; inset: 0; z-index: 2900; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.iv-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; }
.iv-f-ico { font-size: 56px; line-height: 1; }
.iv-f-karte h2 { margin: 0; }
.iv-f-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.iv-f-zahlen div { display: flex; flex-direction: column; background: var(--surface-2, #f5f5f7); border-radius: 14px; padding: 10px 4px; }
.iv-f-zahlen b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.iv-f-zahlen span { font-size: .8rem; color: var(--muted); }
@media (max-height: 520px) { .iv-l-rest { font-size: clamp(4rem, 30vh, 9rem); } }
@media (prefers-reduced-motion: reduce) { .iv-l-rest.knapp { animation: none; } .iv-lauf { 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); }
.iv-again { display: block; width: 100%; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--accent); background: var(--accent-soft, #eef2ff); color: inherit; font: inherit; text-align: left; cursor: pointer; }
