/* ADHSflow – Papier, Tinte, ein Akzent.
   Display: Instrument Serif · Text: Inter Tight · Daten: JetBrains Mono (alle lokal) */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f3f0e8;
  --bg-2: #ebe7dc;
  --surface: #fbfaf6;
  --surface-2: #efebe0;
  --ink: #14130f;
  --ink-2: #57544b;
  --ink-3: #706c61;
  --paper: #f7f5ee;
  --line: rgba(20, 19, 15, 0.1);
  --line-strong: rgba(20, 19, 15, 0.24);
  --accent: #cdf23c;
  --accent-ink: #14130f;
  --warn: #e8590c;
  --danger: #c92a2a;
  --ok: #2f9e6b;
  --hero-bg: #14130f;
  --hero-ink: #f7f5ee;
  --ring: #14130f;
  --btn-bg: #14130f;
  --btn-ink: #f7f5ee;
  --c-work: #3f5bdb;
  --c-family: #e0603a;
  --c-home: #2f9e6b;
  --c-me: #8b5cf6;
  --toast-act: #cdf23c;
  --shadow: 0 1px 0 rgba(20, 19, 15, 0.04), 0 12px 32px -16px rgba(20, 19, 15, 0.18);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0d; --bg-2: #161613; --surface: #181815; --surface-2: #211f1b;
    --ink: #efebe0; --ink-2: #a9a598; --ink-3: #8f8b80; --paper: #0f0f0d;
    --line: rgba(239, 235, 224, 0.1); --line-strong: rgba(239, 235, 224, 0.26);
    --toast-act: #3f4d00;
    --hero-bg: #26241d; --hero-ink: #efebe0; --ring: #cdf23c;
    --btn-bg: #efebe0; --btn-ink: #0f0f0d;
    --c-work: #7c93ff; --c-family: #ff8a63; --c-home: #4cc38a; --c-me: #a98bff;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0d; --bg-2: #161613; --surface: #181815; --surface-2: #211f1b;
  --ink: #efebe0; --ink-2: #a9a598; --ink-3: #8f8b80; --paper: #0f0f0d;
  --line: rgba(239, 235, 224, 0.1); --line-strong: rgba(239, 235, 224, 0.26);
  --toast-act: #3f4d00;
  --hero-bg: #26241d; --hero-ink: #efebe0; --ring: #cdf23c;
  --btn-bg: #efebe0; --btn-ink: #0f0f0d;
  --c-work: #7c93ff; --c-family: #ff8a63; --c-home: #4cc38a; --c-me: #a98bff;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.lock { overflow: hidden; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.hero-card :focus-visible, .overlay :focus-visible { outline-color: var(--accent); }
html { scroll-padding-bottom: 130px; }
[inert] { pointer-events: none; }
.icon { flex: none; }

/* ---------- Layout ---------- */
#app { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 132px); min-height: 100dvh; }
.view { display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.stack.xl { gap: 28px; }
.row { display: flex; align-items: center; }
.row.gap, .gap { gap: 10px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center-text { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.hint { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Typografie ---------- */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.04; }
.title { font-size: 46px; margin-top: 6px; text-wrap: balance; }
.hero { font-size: 40px; text-wrap: balance; }
.h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.eyebrow { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); }
.big-num { font-size: 76px; line-height: 1; }
.big-clock { font-size: 64px; font-weight: 500; letter-spacing: -0.03em; }
.serif-q { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.link { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); padding: 6px 0; }
.link:hover { color: var(--ink); }
.empty { padding: 8px 0; }
.note { background: color-mix(in srgb, var(--accent) 28%, transparent); border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px; padding: 12px 14px; font-size: 14.5px; }
.stat-line { font-size: 12px; color: var(--ink-2); }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.page-head .lead { margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 2px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2); margin-left: -6px; padding: 8px 6px; width: max-content; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }

/* ---------- Karten, Listen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.card.flat { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 56px; width: 100%; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background 0.15s; }
.item:last-child { border-bottom: 0; }
.item:active { background: var(--surface-2); }
.item.big { padding: 18px 16px; }
.item.stack { align-items: stretch; cursor: default; gap: 12px; }
.item-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.item-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item-main .item-text { flex: none; }
.item-title { font-size: 28px; }
.item-meta { font: 400 11.5px/1.35 var(--mono); color: var(--ink-3); letter-spacing: 0.01em; }
.item-meta .dot { margin-right: 7px; }
.item.done .item-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.item.slot { border-style: dashed; color: var(--ink-3); }
.slot-plus { width: 26px; height: 26px; border: 1.5px dashed var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.item.pick.picked { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
.item:disabled { opacity: 0.5; cursor: default; }
.time { color: var(--ink-2); font-size: 13px; width: 48px; flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); vertical-align: 1px; flex: none; }
.plain-list { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.plain-list li::marker { font-family: var(--mono); color: var(--ink-3); }

.check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: background 0.2s var(--ease), border-color 0.2s, transform 0.25s var(--ease); background: transparent; }
.check.on { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: scale(1.06); animation: pop 0.35s var(--ease); }
.check.ghost { color: var(--ink-3); border-style: dashed; }
.item.pick .check:not(:has(svg)) { width: auto; min-width: 28px; padding: 0 9px; border-radius: 14px; font: 600 10.5px var(--mono); text-transform: uppercase; color: var(--ink-3); }
.item.pick .check.on:not(:has(svg)) { color: var(--paper); }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.radio.on { border-color: var(--ink); }
.radio.on::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1.06); } }

/* ---------- Buttons, Chips, Eingaben ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; border: 1px solid var(--line-strong); background: var(--surface); transition: transform 0.15s var(--ease), background 0.15s, opacity 0.15s; text-align: center; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.on-dark { background: rgba(255, 255, 255, 0.12); color: var(--hero-ink); border-color: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.danger-ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn.lg { height: 56px; font-size: 16px; border-radius: 18px; }
.btn.xl { height: 64px; font-size: 17px; border-radius: 20px; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-2); transition: background 0.15s; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.rec { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.col { flex-direction: column; align-items: stretch; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px; border-radius: 19px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; transition: background 0.15s, color 0.15s, transform 0.15s var(--ease); text-align: left; }
.chip:active { transform: scale(0.96); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips-lg .chip { min-height: 46px; padding: 0 18px; font-size: 15px; }
.chips.col .chip { border-radius: 14px; padding: 10px 14px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.input, .textarea { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.textarea { resize: vertical; line-height: 1.45; }
.input:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input.xl { font-family: var(--serif); font-size: 32px; min-height: 66px; letter-spacing: -0.01em; }
.input.title-input { font-family: var(--serif); font-size: 28px; min-height: 60px; line-height: 1.1; }
.input.on-dark { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: var(--hero-ink); }
.input.on-dark::placeholder { color: rgba(255, 255, 255, 0.5); }
input[type="date"], input[type="time"] { min-width: 0; }

details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.more > summary { list-style: none; cursor: pointer; padding: 16px 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); display: flex; justify-content: space-between; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 16px; }
details.more[open] > summary::after { content: "–"; }
details.more > :not(summary) { margin-bottom: 16px; }
.more-body { padding-top: 4px; }

/* ---------- Navigation ---------- */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none; padding: 0 14px calc(env(safe-area-inset-bottom) + 10px); }
.nav-inner { pointer-events: auto; max-width: 532px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center; height: 68px; border-radius: 34px; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(20, 19, 15, 0.35); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--ink-3); font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s; }
.tab.on { color: var(--ink); }
.tab.on::before { content: ""; position: absolute; top: 7px; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); }
.tab .live { position: absolute; top: 12px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.6s infinite; }
.fab { justify-self: center; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 0 0 5px var(--bg), 0 14px 26px -10px rgba(20, 19, 15, 0.5); transition: transform 0.2s var(--ease); }
.fab:active { transform: scale(0.92) rotate(90deg); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.3); } }

/* ---------- Sheets ---------- */
#layer-sheets, #layer-overlay, #layer-toasts { position: relative; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 19, 15, 0.46); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.25s; pointer-events: auto; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; background: var(--bg); border-radius: 30px 30px 0 0; border: 1px solid var(--line); border-bottom: 0; transform: translateY(105%); transition: transform 0.36s var(--ease); display: flex; flex-direction: column; pointer-events: auto; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.4); }
.sheet.tall { min-height: 70dvh; }
.sheet-wrap.in .sheet-backdrop { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.grabber { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 0 22px; flex: none; }
.sheet-title { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); }
.sheet-body { overflow-y: auto; padding: 14px 22px calc(env(safe-area-inset-bottom) + 26px); overscroll-behavior: contain; }

/* ---------- Overlay (Alarme) ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: var(--hero-bg); color: var(--hero-ink); display: flex; padding: 24px; opacity: 0; transition: opacity 0.3s; overflow-y: auto; pointer-events: none; }
.overlay.in { pointer-events: auto; }
.overlay.in { opacity: 1; }
.overlay.warn { background: #3b2410; }
.overlay.urgent { background: #4a1608; }
.overlay-card { margin: auto; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; transform: translateY(14px); transition: transform 0.5s var(--ease); }
.overlay.in .overlay-card { transform: none; }
.overlay .eyebrow { color: rgba(247, 245, 238, 0.6); }
.ov-title { font-size: 52px; text-wrap: balance; }
.ov-body { font-size: 18px; line-height: 1.45; white-space: pre-line; opacity: 0.88; }
.overlay .btn { border-color: rgba(255, 255, 255, 0.25); color: var(--hero-ink); background: transparent; }
.overlay .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.overlay .textarea { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: var(--hero-ink); }
.overlay.urgent .overlay-card { animation: shake 0.6s 0.2s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ---------- Toast & Konfetti ---------- */
#layer-toasts { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 98px); z-index: 90; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.25s, transform 0.35s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast-action { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--toast-act); padding: 8px 4px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* ---------- Heute ---------- */
.rise { animation: rise 0.55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.instant .rise, .instant .tile { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sparks { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); font-size: 14px; }

.hero-card { background: var(--hero-bg); color: var(--hero-ink); border-radius: 32px; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(20, 19, 15, 0.7); }
.hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); pointer-events: none; }
.hero-card .eyebrow { color: rgba(247, 245, 238, 0.55); }
.hero-title { font-family: var(--serif); font-size: 40px; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; position: relative; z-index: 1; }
.hero-time { font-family: var(--mono); font-size: 60px; font-weight: 500; letter-spacing: -0.04em; }
.hero-step { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); position: relative; z-index: 1; }
.hero-note { font-size: 14.5px; opacity: 0.75; }
.hero-card .row, .hero-card .btn, .hero-card .input { position: relative; z-index: 1; }

.daybar { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 18px 18px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.daybar-track { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin: 6px 4px 22px; }
.daybar-past { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink-3); opacity: 0.55; }
.daybar-tick { position: absolute; top: 14px; width: 1px; height: 4px; background: var(--line-strong); }
.daybar-tick i { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: 400 9.5px var(--mono); color: var(--ink-3); font-style: normal; }
.daybar-mark { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); }
.daybar-mark.extra { background: var(--c-work); }
.daybar-mark.end { background: var(--accent); border-radius: 4px; transform: rotate(45deg); outline: 1.5px solid var(--ink); outline-offset: -3px; }
.daybar-mark.past { opacity: 0.35; }
.daybar-now { position: absolute; top: -7px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent); border: 2.5px solid var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.daybar-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.daybar-next { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.daybar-next .display { font-size: 26px; }
.daybar-next .mono { font-size: 12px; color: var(--ink-2); }

.meter { display: flex; gap: 8px; align-items: flex-end; height: 112px; }
.meter-btn { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; }
.meter-bar { display: block; height: calc(var(--h) * 14px + 14px); border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); transition: background 0.2s, transform 0.2s var(--ease); }
.meter-btn:hover .meter-bar, .meter-btn:active .meter-bar { background: var(--accent); transform: translateY(-3px); }
.meter-label { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); text-align: center; }
.checkin-sum .display { font-size: 24px; }
.tip { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; gap: 12px; }

.cap { display: flex; flex-direction: column; gap: 8px; }
.cap-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cap-bar span { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width 0.6s var(--ease); }
.cap.over .cap-bar span { background: var(--warn); }
.cap-text { font-size: 11.5px; color: var(--ink-3); }
.goals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.goal { font-size: 13px; padding: 4px 12px; border-radius: 14px; border: 1px solid var(--line-strong); }
.card.ritual { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.card.ritual .display { font-size: 30px; margin: 4px 0; }
.quiet { justify-content: center; gap: 22px; padding: 4px 0; }
.foot { display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 6px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.dots i.on { background: var(--ink); border-color: var(--ink); }
.badge { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }

/* ---------- Fokus ---------- */
.fokus-run { align-items: stretch; }
.ring { position: relative; width: min(300px, 82vw); aspect-ratio: 1; margin: 6px auto; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-bg { fill: none; stroke: var(--line-strong); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--ring); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.4s; }
.fokus-run.over .ring-fg { stroke: var(--warn); }
.fokus-run.paused .ring { opacity: 0.55; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ring-time { font-size: 62px; font-weight: 500; letter-spacing: -0.045em; }
.fokus-run.over .ring-time { color: var(--warn); }
.step-now { align-items: center; }

/* ---------- Leben ---------- */
.area-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.area-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 176px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform 0.2s var(--ease); }
.area-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.area-card:active { transform: scale(0.98); }
.area-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); margin-bottom: 14px; }
.area-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.area-name { font-size: 27px; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-btn { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; transition: background 0.15s, transform 0.15s var(--ease); }
.area-btn:active { transform: scale(0.97); background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.area-btn .dot { width: 12px; height: 12px; }
.area .page-head .title { color: var(--c); }
.stackbar { display: flex; gap: 3px; height: 14px; }
.stackbar span { background: var(--c); border-radius: 4px; min-width: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend-i { display: inline-flex; align-items: center; gap: 7px; }
.tone-ok { color: var(--ok); } .tone-warn { color: var(--warn); } .tone-late { color: var(--warn); }
.item.bond .row { flex-wrap: wrap; gap: 10px; }
.bond-idea:empty { display: none; }
.bond-idea { font-size: 14px; color: var(--ink-2); }

/* ---------- SOS ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 172px; padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise 0.55s var(--ease) backwards; animation-delay: calc(var(--i) * 50ms); transition: transform 0.2s var(--ease), background 0.2s; }
.tile:active { transform: scale(0.97); background: var(--surface-2); }
.tile-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); margin-bottom: auto; }
.tile-title { font-family: var(--serif); font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; }
.tile-sub { font-size: 12.5px; color: var(--ink-3); }
.proto { gap: 26px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-n { font-size: 13px; color: var(--ink-3); padding-top: 4px; }
.breath { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.breath-stage { position: relative; width: 100%; height: 250px; display: grid; place-items: center; }
.breath-orb { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 100%, #fff 20%), var(--accent)); box-shadow: 0 0 60px 10px color-mix(in srgb, var(--accent) 45%, transparent); }
.breath-label { position: relative; font-size: 34px; color: var(--accent-ink); }
.mini-timer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mini-time { font-size: 56px; flex: 1; }
.dice-out { font-size: 28px; min-height: 36px; line-height: 1.1; flex: 1; }
.dice-out.final { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 6px; text-underline-offset: 6px; }

/* ---------- Kopf leeren & Sorter ---------- */
.capture-box { position: relative; }
.capture-box .textarea { padding-right: 56px; min-height: 110px; font-size: 18px; }
.capture-box .icon-btn { position: absolute; right: 6px; top: 6px; }
.sorter-text { font-size: 38px; text-wrap: balance; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers .num { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.menu .item-main { gap: 4px; }

/* ---------- Studien ---------- */
.ev-title { display: flex; gap: 8px; align-items: flex-start; font-family: var(--serif); font-size: 22px; line-height: 1.15; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.ev-title .icon { margin-top: 5px; }
.ev-table { display: flex; flex-direction: column; }
.ev-row { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ev-feature { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Onboarding ---------- */
.onboard { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; opacity: 0; transition: opacity 0.4s; padding: calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 24px); }
.onboard.in { opacity: 1; }
.onboard-inner { max-width: 520px; margin: 0 auto; min-height: calc(100dvh - 60px); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.onboard-dots { display: flex; gap: 8px; }
.onboard-dots span { width: 28px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.onboard-dots span.on { background: var(--ink); }
.onboard-actions { margin-top: 6px; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 28px) 22px 80px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -0.015em; margin: 6px 0 8px; }
.legal h2 { font-size: 17px; font-weight: 600; margin-top: 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-links { display: flex; gap: 18px; justify-content: center; padding-top: 8px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media (min-width: 700px) {
  #app { padding-top: 48px; }
  .title { font-size: 56px; }
}
@media (max-width: 380px) {
  .title { font-size: 38px; }
  .hero-title { font-size: 34px; }
  .ov-title { font-size: 42px; }
}

/* ---------- Dirigent / Berater ---------- */
.card.ai { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.brief { display: flex; flex-direction: column; gap: 14px; }
.brief-head { font-size: 28px; line-height: 1.08; text-wrap: balance; }
.brief-next { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-size: 15px; }
.brief-alerts { display: flex; flex-direction: column; gap: 8px; }
.brief-alert { padding-left: 14px; position: relative; font-size: 14.5px; }
.brief-alert::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.brief-alert.warn::before { background: var(--warn); }
.brief-family { font-size: 14.5px; color: var(--ink-2); }
.brief-why { font-style: italic; }
.brief-foot { padding-top: 10px; border-top: 1px solid var(--line); }
.brief-question { padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 24%, var(--surface-2)); }
.brief-q { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.suggestion { border: 1px dashed var(--line-strong); background: transparent; }
.area-btn.suggested { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.chip.static { cursor: default; background: transparent; }
.input.invalid { border-color: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); }
.link:disabled { opacity: 0.4; pointer-events: none; }
