/* Die Vorschau im iPhone: Ansichten und Ablauf wie in der App (Prudentia-Seite, Fokus-Modus mit Zeitleiste links) */

.demo-col { display: grid; gap: 16px; min-width: 0; }
.phone { position: relative; width: 100%; max-width: 390px; margin: 0 auto; aspect-ratio: 9 / 18.5; max-height: 800px; border-radius: 52px; padding: 12px; background: var(--night); box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / 9%); }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 16px; background: #000; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.4; display: flex; flex-direction: column; }
@media (max-width: 420px) { .phone { aspect-ratio: auto; height: 640px; border-radius: 44px; padding: 10px; } .screen { border-radius: 35px; } }

.scr-top { height: 52px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 18px; scrollbar-width: thin; }
.scr-foot { flex: none; border-top: 1px solid var(--rule); padding: 12px 14px 22px; display: flex; gap: 8px; background: var(--paper); }
.scr-foot .pbtn { flex: 1; }

.pbtn { border: 0; border-radius: 14px; padding: 13px 8px; font: 600 15px/1.1 var(--body); cursor: pointer; background: var(--copper); color: var(--copper-ink); }
.pbtn.soft { background: var(--linen); color: var(--ink); }
.pbtn:disabled { opacity: 0.5; }
.chip { border: 0; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--linen); color: var(--ink-soft); font: 600 12px/1 var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--copper-soft); color: var(--copper); }
.back { border: 0; background: none; color: var(--copper); font: 600 15px var(--body); padding: 4px 0; cursor: pointer; }

/* Paketübersicht (Kacheln) */
.lib-head { display: grid; gap: 2px; margin: 6px 0 14px; }
.lib-head h3 { font-family: var(--body); font-size: 22px; font-weight: 700; }
.lib-head p { color: var(--ink-soft); font-size: 13px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { text-align: left; border: 1px solid var(--rule); background: var(--vellum); border-radius: var(--r-md); padding: 12px; display: grid; gap: 6px; cursor: pointer; color: var(--ink); font: inherit; min-height: 116px; align-content: start; }
.tile .ic { font-size: 28px; line-height: 1; }
.tile b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.tile small { color: var(--ink-soft); font-size: 12px; }
.tile.bad { opacity: 0.7; border-style: dashed; cursor: default; }
.tile.bad small { color: var(--danger); }

/* Detail (Prudentia / Projekt) */
.det-head { display: grid; gap: 4px; margin: 4px 0 12px; }
.det-head .ic { font-size: 44px; line-height: 1.1; }
.det-head h3 { font-family: var(--body); font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.det-head .sub { color: var(--ink-soft); font-size: 13px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--copper); background: var(--copper-soft); border-radius: 999px; padding: 3px 9px; margin-right: 6px; }
.desc { background: var(--vellum); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; color: var(--ink); margin-bottom: 14px; white-space: pre-line; }
.desc { cursor: pointer; }
.desc .clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--vellum); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.task .ic { font-size: 20px; text-align: center; }
.task b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.task .d { color: var(--ink-soft); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task .r { font-size: 11px; color: var(--copper); font-weight: 600; display: block; }
.round-box { border: 1.5px dashed var(--copper); border-radius: 14px; padding: 6px; display: grid; gap: 6px; }
.round-box > span { font-size: 11.5px; font-weight: 700; color: var(--copper); padding: 2px 6px 0; }
.ev-head { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 2px 4px; }

/* Ablauf */
.run { display: flex; flex: 1; min-height: 0; }
.rail { width: 46px; flex: none; display: flex; flex-direction: column; padding: 4px 0 8px 10px; gap: 4px; }
.seg { position: relative; border-radius: 10px; overflow: hidden; background: var(--linen); border: 1.5px solid transparent; min-height: 30px; }
.seg.cur { border-color: var(--copper); }
.seg i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--copper); opacity: 0.55; }
.seg.done i { background: var(--copper-soft); opacity: 1; height: 100%; }
.seg span { position: relative; display: block; text-align: center; padding-top: 4px; font-size: 14px; }
.run-main { flex: 1; min-width: 0; overflow-y: auto; padding: 4px 16px 16px; }
.run-meta { color: var(--ink-soft); font-size: 12.5px; margin: 6px 0 10px; }
.run-ic { font-size: 44px; line-height: 1.1; }
.run-title { font-size: 21px; font-weight: 700; line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.clock { font-size: 50px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-top: 14px; line-height: 1.05; }
.clock.over { color: var(--copper); }
.clock-sub { color: var(--ink-soft); font-size: 12.5px; }
.hint { background: var(--vellum); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px 14px; margin-top: 16px; }
.hint > small { font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; }
.hint p { white-space: pre-line; margin-top: 4px; font-size: 14.5px; overflow-wrap: anywhere; }
.hint label { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 14.5px; }
.hint input { accent-color: var(--copper); margin-top: 3px; }
.hint img { border-radius: 10px; margin-top: 10px; max-height: 220px; width: auto; }
.next { color: var(--ink-soft); font-size: 12.5px; margin-top: 16px; }
.run-chips { display: flex; gap: 8px; padding: 2px 14px 4px; align-items: center; }
.run-chips .sp { flex: 1; }
.center { flex: 1; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px; }
.center .big { font-size: 140px; font-weight: 200; color: var(--copper); line-height: 1; font-variant-numeric: tabular-nums; }

/* Ablage für eigene Pakete */
.drop { border: 1.5px dashed var(--rule); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 6px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; background: var(--vellum); transition: border-color 0.15s, background 0.15s; }
.drop.over { border-color: var(--copper); background: var(--copper-soft); }
.drop b { color: var(--ink); font-weight: 600; }
.drop label { color: var(--copper); text-decoration: underline; cursor: pointer; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .err { color: var(--danger); font-weight: 600; }
.drop .ok { color: var(--ink); }
.drop button { border: 0; background: none; color: var(--copper); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
