/* Clear Space – gemeinsame Gestaltungsregeln */
:root {
  --bg: #F7F8F9;
  --surface: #FFFFFF;
  --neutral: #F1F3F4;
  --line: #E2E5E8;
  --text: #25323B;
  --text-2: #586B78;
  --coral: #FF8983;
  --coral-light: #FFEEED;
  --coral-dark: #934F49;
  --sage: #B6D9C6;
  --mint: #D6F0E9;
  --green: #2F6655;
  --blue: #457296;
  --blue-light: #D0EDF8;
  --blue-mid: #ACCAE3;
  --radius: 10px;
  --radius-sm: 7px;
  --font: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --left-w: 228px;
  --right-w: 288px;
  --focus: 0 0 0 3px rgba(69, 114, 150, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 .6em; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; color: var(--text); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; display: block; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w); min-height: 100vh; align-items: start; }
.demo-banner { background: var(--blue-light); color: var(--text); text-align: center; font-size: 13px; padding: 4px 8px; }
.shell.left-closed { grid-template-columns: 0 minmax(0, 1fr) var(--right-w); }
.shell.right-closed { grid-template-columns: var(--left-w) minmax(0, 1fr) 0; }
.shell.left-closed.right-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
.side-left, .side-right { overflow: hidden auto; background: var(--surface); position: sticky; top: 0; height: 100vh; }
.side-left { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; min-width: 0; }
.side-right { border-left: 1px solid var(--line); padding: 20px 18px; min-width: 0; }
.left-closed .side-left, .right-closed .side-right { padding: 0; border: 0; visibility: hidden; }
.main-wrap { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(247, 248, 249, .94); backdrop-filter: blur(6px); }
.topbar-title { flex: 1; font-size: 13px; color: var(--text-2); }
.main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 4px 32px 64px; outline: none; }
.main:focus, .main:focus-visible { box-shadow: none; }

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--coral) 0 50%, var(--sage) 50% 100%); }
.brand-name { font-weight: 600; font-size: 16px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14.5px; }
.nav-link:hover { background: var(--neutral); text-decoration: none; }
.nav-link.active { background: var(--neutral); font-weight: 600; }
.nav-link.sub { padding-left: 22px; font-size: 14px; color: var(--text-2); }
.nav-link.sub.active { color: var(--text); }
.nav-ico { color: var(--text-2); display: inline-flex; }
.nav-link.active .nav-ico { color: var(--text); }
.nav-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--neutral); color: var(--text); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .ico { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }

/* ---------- Kontextleiste ---------- */
.ctx-block { margin-bottom: 22px; font-size: 14px; color: var(--text-2); }
.ctx-block p { margin: 0 0 .7em; }
.ctx-title { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.ctx-title .ico { width: 18px; height: 18px; color: var(--text-2); }
.ctx-field { background: var(--neutral); border-radius: var(--radius-sm); padding: 12px 14px; }
.ctx-impulse { border-top: 1px solid var(--line); padding-top: 16px; }
.ctx-source { font-size: 12.5px; }

/* ---------- Seitenkopf ---------- */
.page-head { margin: 8px 0 22px; }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 12px; font-size: 24px; line-height: 1.25; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.back .ico { width: 16px; height: 16px; }
.section { margin: 0 0 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 17px; }
.section-head .count { color: var(--text-2); font-weight: 400; font-size: 14px; margin-left: 6px; }

/* ---------- Karten und Zeilen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: 16.5px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.card-head h2 .ico { color: var(--text-2); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; min-height: 52px; color: var(--text); }
a.row:hover, .row.link:hover { border-color: #cfd5da; text-decoration: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.row-side { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; flex: none; }
.row .chev { color: var(--text-2); width: 18px; height: 18px; }
.meta-dot { display: inline-flex; align-items: center; gap: 6px; }
.meta-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: none; }
.meta-dot.coral::before { background: var(--coral); }
.meta-dot.green::before { background: var(--sage); }
.meta-dot.blue::before { background: var(--blue-mid); }
.status { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.status.success { color: var(--green); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 8px; color: var(--blue); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.more-link .ico { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: #c9d0d6; text-decoration: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn-primary:hover { background: #34444f; border-color: #34444f; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--neutral); color: var(--text); border-color: transparent; }
.btn-danger { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-success { background: var(--surface); border-color: var(--sage); color: var(--green); }
.btn-success.on { background: var(--mint); }
.btn:disabled { opacity: .45; cursor: default; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14.5px; background: none; border: 0; padding: 2px 0; cursor: pointer; }
.text-link .ico { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-size: inherit; }

/* Häkchen und Stern */
.chk { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 1.5px solid #b9c2c9; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: transparent; position: relative; }
.chk::after { content: ""; position: absolute; inset: -8px; }
.chk .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.chk:hover { border-color: var(--green); }
.chk.on { background: var(--green); border-color: var(--green); color: #fff; }
.chk:disabled { opacity: .45; cursor: default; }
.star { width: 34px; height: 34px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #b9c2c9; border-radius: 8px; flex: none; }
.star:hover { color: var(--coral); background: var(--coral-light); }
.star.on { color: var(--coral); }
.star.on .ico { fill: var(--coral); }
.arrow-ur { color: var(--coral); width: 18px; height: 18px; flex: none; }

/* ---------- Auswahl & Filter ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; color: var(--text-2); }
.seg-btn .ico { width: 16px; height: 16px; }
.seg-btn:hover { color: var(--text); border-color: #cbd2d8; }
.seg-btn.on { background: var(--text); border-color: var(--text); color: #fff; }
.seg-btn:disabled { opacity: .4; cursor: default; }
.seg-count { font-size: 12px; opacity: .75; }
.seg.small .seg-btn { min-height: 30px; padding: 3px 10px; font-size: 13.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 9px 12px; font-size: 14.5px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.tab .seg-count { margin-left: 4px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 6px 8px; border-radius: 8px; color: var(--text-2); cursor: pointer; font-size: 14px; }
.filter-toggle .ico { width: 17px; height: 17px; }
.filter-toggle:hover, .filter-toggle.on { color: var(--text); background: var(--neutral); }
.filter-panel { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.filter-line { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.filter-label { font-size: 13px; color: var(--text-2); min-width: 92px; }
.year-nav { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 3px; background: var(--surface); }
.year-nav-val { min-width: 44px; text-align: center; font-weight: 600; font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-weight: 600; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--text-2); margin: 0; }
.input, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface); font-size: 15px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.input.big { font-size: 17px; padding: 11px 14px; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 180px; }
.input.small { width: auto; min-width: 0; }
.form-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.form-group h2 { font-size: 15.5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; position: sticky; bottom: 0; background: var(--bg); padding-bottom: 12px; }
.form-error { color: var(--coral-dark); font-size: 13.5px; }
.check-line { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check-line input { width: 18px; height: 18px; accent-color: var(--green); }

/* Aufgabenliste */
.tasks { display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.task .input { border: 0; padding: 4px 2px; box-shadow: none; }
.task .input:focus { box-shadow: none; }
.task:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.task-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task.done .task-title { color: var(--text-2); text-decoration: line-through; text-decoration-color: #b9c2c9; }
.task-tools { display: flex; gap: 2px; }
.task-tools .icon-btn { width: 30px; height: 30px; }
.task-tools .ico { width: 16px; height: 16px; }

/* ---------- Startseite ---------- */
.home-head { margin: 8px 0 22px; }
.home-head h1 { font-size: 24px; }
.home-date { color: var(--text-2); margin-top: 2px; }
.kpis { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.kpis b { color: var(--text); font-size: 18px; font-weight: 600; margin-right: 4px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.home-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.focus-row .row-title { display: flex; align-items: flex-start; gap: 6px; }
.focus-row .arrow-ur { margin-top: 3px; }
.ring { flex: none; }
.ring-bg { fill: none; stroke: var(--neutral); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--sage); stroke-width: 5; stroke-linecap: round; }
.ring text { font-size: 13px; fill: var(--text); font-family: var(--font); font-weight: 600; }
.ring-wrap { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.review-card .review-month { font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.review-card .review-status { color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.area-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 26px; }
.area-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; min-height: 48px; }
.area-tile:hover { text-decoration: none; border-color: #cfd5da; }
.area-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--neutral); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.area-ico .ico { width: 19px; height: 19px; }
.area-ico.lg { width: 42px; height: 42px; border-radius: 11px; }
.area-ico.lg .ico { width: 23px; height: 23px; }

/* Journal-Box */
.jq { font-size: 16px; font-weight: 500; line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.jq-text { flex: 1; }
.jq-kind { font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.j-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.j-saved { color: var(--text-2); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.j-saved .ico { width: 16px; height: 16px; color: var(--green); }
.j-answer { font-size: 15px; }
.j-answer p:last-child { margin-bottom: 0; }

/* ---------- Routinen ---------- */
.week-strip { display: flex; gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--text-2); min-width: 26px; }
.wd-b { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.wd.planned .wd-b { border-color: #9fb9ab; border-style: dashed; }
.wd.done .wd-b { background: var(--green); border: 1px solid var(--green); color: #fff; }
.wd-b .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.wd.today .wd-l { color: var(--text); font-weight: 700; }
.wd.future { opacity: .55; }
button.wd { cursor: pointer; }
button.wd .wd-b { border-width: 1.5px; border-color: #9aa7b0; border-style: solid; }
button.wd.planned .wd-b { border-color: var(--green); border-style: solid; }
button.wd:hover .wd-b { border-color: var(--green); }
button.wd.done .wd-b { border-color: var(--green); }
.routine-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.routine-card .row-main { min-width: 180px; }
.plan-list { display: flex; flex-direction: column; gap: 6px; }
.plan-item { display: flex; gap: 12px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.plan-item .plan-from { color: var(--text-2); min-width: 120px; }
.helper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.helper dt { font-size: 13px; color: var(--text-2); }
.helper dd { margin: 2px 0 0; }
.days-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.month-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 32px)); gap: 4px; font-size: 11.5px; color: var(--text-2); }
.month-cal .mc { height: 28px; border-radius: 6px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: var(--surface); }
.month-cal .mc.done { background: var(--green); border-color: var(--green); color: #fff; }
.month-cal .mc.planned { border-style: dashed; border-color: #9fb9ab; }
.month-cal .mc.out { visibility: hidden; }
.month-cal .mc.na { background: var(--neutral); border-color: var(--neutral); }
.month-cal .mh { text-align: center; }
.goal-pick { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; background: var(--surface); }

/* ---------- Lebensbereiche ---------- */
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.area-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); overflow: hidden; }
.area-card:hover { text-decoration: none; border-color: #cfd5da; }
.area-card .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; display: flex; flex-direction: column; }
.area-card .accent span { flex: 1; }
.accent .a-coral { background: var(--coral); }
.accent .a-green { background: var(--sage); }
.area-card h2 { font-size: 15.5px; margin-bottom: 3px; }
.area-card .area-sub { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.area-card .vision { font-size: 13.5px; color: var(--text-2); margin-top: 6px; font-style: italic; }
.orient { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.vision-text { font-size: 18px; line-height: 1.45; font-weight: 500; }
.vision-btn { display: block; text-align: left; width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--text); }
.vision-btn:hover .vision-text { color: #000; }
.vision-empty { color: var(--text-2); font-weight: 400; font-style: italic; }
.vision-label, .q-label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.q-list li { display: flex; gap: 10px; align-items: baseline; }
.q-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-mid); flex: none; transform: translateY(-2px); }
.q-edit-row { display: flex; gap: 6px; align-items: center; }

/* ---------- Ziel-Detail ---------- */
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: 14px; margin: -10px 0 20px; }
.prose-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.prose-block h3 { font-size: 13.5px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.prose-block + .prose-block { margin-top: 10px; }
.two-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 26px; }
.two-blocks .prose-block + .prose-block { margin-top: 0; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.goal-card { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px 12px 16px; }
.goal-card a { color: var(--text); }
.goal-card .row-title a:hover { text-decoration: none; color: #000; }

/* ---------- Notizen, Leerzustände ---------- */
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-2); font-size: 14.5px; background: rgba(255, 255, 255, .5); }
.empty p { margin: 0 0 8px; }
.empty p:last-child { margin: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--neutral); font-size: 14px; margin-bottom: 16px; }
.notice .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--text-2); }
.notice-blue { background: var(--blue-light); }
.notice-error { background: var(--coral-light); color: var(--coral-dark); }
.notice-error .ico { color: var(--coral-dark); }

/* ---------- Journal ---------- */
.j-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.j-entry + .j-entry { margin-top: 10px; }
.j-date { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 4px; }
.j-entry .jq { font-size: 15px; margin-bottom: 6px; }
.j-tools { display: flex; gap: 2px; }
.bm.on { color: var(--blue); }
.bm.on .ico { fill: var(--blue-light); }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 14px; color: var(--text-2); gap: 10px; }

/* ---------- Reviews ---------- */
.review-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 26px; }
.rt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.rt-card h2 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.rt-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-light); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rt-ico .ico { width: 19px; height: 19px; }
.period-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.snap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.snap h3 { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.snap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.snap li { display: flex; flex-direction: column; gap: 0; }
.snap li span:last-child { color: var(--text-2); font-size: 13px; }
.snap li span:last-child:empty { display: none; }
.q-block + .q-block { margin-top: 18px; }
.q-theme { font-size: 12.5px; color: var(--blue); font-weight: 600; margin-bottom: 2px; }
.q-text { font-weight: 600; margin-bottom: 6px; }
.wheel-scale { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px 12px; align-items: center; }
.scale { display: flex; gap: 3px; flex-wrap: wrap; }
.scale button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text-2); }
.scale button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.scale button.in { background: var(--blue-light); border-color: var(--blue-mid); color: var(--text); }
.next-list { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Auswertungen ---------- */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; align-items: start; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card h2 { font-size: 15.5px; }
.chart-sub { font-size: 13px; color: var(--text-2); margin: 2px 0 12px; }
.chart-card svg { display: block; max-width: 100%; height: auto; }
.chart-card svg text { font-family: var(--font); font-size: 11px; fill: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-track { height: 12px; background: var(--neutral); border-radius: 6px; overflow: hidden; display: flex; }
.bar-fill { height: 100%; }
.bar-row .num { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.grid-cal { overflow-x: auto; }
.grid-cal table { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.grid-cal th { font-weight: 400; color: var(--text-2); }
.grid-cal th.rn { text-align: left; padding-right: 8px; font-size: 12.5px; color: var(--text); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.grid-cal td { width: 14px; height: 14px; border-radius: 3px; background: var(--neutral); padding: 0; }
.grid-cal td.d { background: var(--green); }
.grid-cal td.p { box-shadow: inset 0 0 0 1.5px #9fb9ab; background: var(--surface); }
.grid-cal td.x { background: transparent; }
.stat-big { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-big div { font-size: 13px; color: var(--text-2); }
.stat-big b { display: block; font-size: 24px; color: var(--text); font-weight: 600; }

/* ---------- Druck ---------- */
.print-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.print-opts { display: flex; flex-direction: column; gap: 16px; }
.preview-area { display: flex; flex-wrap: wrap; gap: 14px; }
.pv-page { width: 105mm; height: 148mm; background: #fff; box-shadow: 0 1px 4px rgba(37, 50, 59, .12); border: 1px solid var(--line); flex: none; position: relative; overflow: hidden; }
.pv-scale { transform-origin: top left; }
.bujo-page { width: 105mm; height: 148mm; padding: 4mm 3mm; overflow: hidden; font-family: var(--font); color: var(--text); font-size: 8.4pt; line-height: 1.38; position: relative; background: #fff; }
.bujo-content { height: 138mm; overflow: hidden; }
.bujo-page h1 { font-size: 12.5pt; margin: 0 0 1.6mm; }
.bujo-page h2 { font-size: 9.6pt; margin: 3mm 0 1.2mm; display: flex; align-items: center; gap: 1.5mm; }
.bujo-page h2::before { content: ""; width: 1.6mm; height: 1.6mm; border-radius: 50%; background: var(--blue-mid); }
.bujo-page h2.c-coral::before { background: var(--coral); }
.bujo-page h2.c-green::before { background: var(--sage); }
.bujo-page p { margin: 0 0 1.4mm; }
.bujo-page .bsub { color: var(--text-2); font-size: 7.6pt; }
.bujo-page ul { margin: 0 0 1.6mm; padding-left: 3.5mm; }
.bujo-page li { margin: 0 0 .6mm; }
.bujo-page .bq { font-weight: 600; margin-bottom: .6mm; }
.bujo-page .bfoot { position: absolute; bottom: 2mm; right: 3mm; font-size: 6.5pt; color: var(--text-2); }
.bujo-page .bjd { color: var(--text-2); font-size: 7.4pt; }
.bujo-page .bgrid td { width: 2.6mm; height: 2.6mm; }
.bujo-page .grid-cal table { border-spacing: .5mm; font-size: 6.5pt; }
.bujo-page .grid-cal th.rn { font-size: 7pt; max-width: 26mm; padding-right: 1.5mm; }
.bujo-page .wheel-svg { width: 52mm; height: auto; display: block; margin: 0 auto 1mm; }
.bujo-page .blk + .blk { margin-top: 1mm; }
.print-root { display: none; }
.sheet-a4 { width: 297mm; height: 210mm; position: relative; display: flex; align-items: center; justify-content: center; gap: 12mm; background: #fff; }
.sheet-a4 .cut { position: relative; width: 105mm; height: 148mm; }
.cut .mk { position: absolute; background: #9aa7b0; }

/* ---------- Coach ---------- */
.briefing { width: 100%; min-height: 260px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.5; background: var(--neutral); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); resize: vertical; }

/* ---------- Dialog & Toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(37, 50, 59, .28); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; padding: 22px 24px 18px; width: min(460px, 100%); box-shadow: 0 10px 40px rgba(37, 50, 59, .18); }
.modal h2 { font-size: 17px; margin-bottom: 8px; }
.modal-text { color: var(--text-2); font-size: 14.5px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast-host { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: #fff; padding: 9px 10px 9px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 22px rgba(37, 50, 59, .22); }
.toast-ico .ico { width: 17px; height: 17px; color: var(--sage); }
.toast-error { background: #fff; color: var(--coral-dark); border: 1px solid #f1c9c6; }
.toast-error .toast-ico .ico { color: var(--coral-dark); }
.toast-msg { flex: 1; }
.toast-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); border: 0; color: inherit; padding: 5px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.toast-error .toast-btn { background: var(--coral-light); }
.toast-btn .ico { width: 15px; height: 15px; }
.toast-close { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; display: inline-flex; }
.toast-close .ico { width: 16px; height: 16px; }

/* ---------- Ergänzungen ---------- */
.wheel-layout { display: flex; flex-direction: column-reverse; gap: 18px; }
.scale { flex-wrap: nowrap; }
@media (max-width: 520px) { .scale { flex-wrap: wrap; } }
.wheel-preview .wheel-svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.wheel-preview .empty { max-width: 360px; margin: 0 auto; }
@media (max-width: 960px) { .wheel-layout { grid-template-columns: minmax(0, 1fr); } }
a.row-title { display: block; color: var(--text); }
a.row-title:hover { text-decoration: none; color: #000; }
.focus-row a.row-title { display: flex; }
a.row-link, .row-link { color: var(--text); display: block; }
a.row-link:hover { text-decoration: none; }
a.row-link .row-title { display: block; }
a.row-link .row-meta { display: flex; }
a.prose-block:hover { border-color: #cfd5da; }
.row-side { text-decoration: none; }
a.row-side:hover { text-decoration: none; }
.done-pill { border-color: var(--sage); color: var(--green); }
.done-pill .ico { color: var(--green); }
.file-in:focus-visible + label { box-shadow: var(--focus); }
.rt-ico + .row-main { margin-left: 2px; }

/* =====================================================================
   Erscheinungsbild – exakt nach Clear Space 0.1 (Werte aus 0.1 übernommen)
   ===================================================================== */
:root {
  --ink: #25323B; --navy: #2E4B63; --muted: #586B78; --muted-2: #65717B; --faint: #A1A9B0;
  --blue-ui: #456D8C; --blue-soft: #EDF3F7; --warm: #F5F1EB; --nav-bg: #F1F3F4; --ctx-bg: #FCFCFD;
  --left-w: 222px; --right-w: 248px;
  --font: "Avenir Next", Avenir, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
body { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--ink); background: #fff; }
.ico { stroke-width: 1.5; }
.main-wrap { background: #fff; }

/* Navigation */
.side-left { background: var(--nav-bg); border-right: 1px solid var(--line); padding: 28px 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 10px 40px; padding: 0; font-size: 19px; letter-spacing: -.6px; font-weight: 600; line-height: 1.6; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue-ui); font-size: 23px; font-weight: 300; line-height: 1; padding: 0 0 4px; flex: none; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -.6px; }
.brand-version { font-size: 10px; color: var(--muted); align-self: flex-end; letter-spacing: 0; font-weight: 400; line-height: 1.6; }
.nav { gap: 0; }
.nav-group + .nav-group { margin-top: 28px; }
.nav-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.nav-label { display: block; font-size: 10px; letter-spacing: 1.1px; margin: 0 12px 10px; padding: 0; color: var(--muted); text-transform: uppercase; line-height: 1.6; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.nav-link:hover { background: rgba(255, 255, 255, .6); text-decoration: none; color: var(--ink); }
.nav-ico { color: inherit; }
.nav-link .ico { width: 18px; height: 18px; }
.nav-link.active { background: var(--blue-soft); color: var(--blue-ui); font-weight: 550; }
.nav-link.active .nav-ico { color: inherit; }
.nav-link[data-module="goals"].active { background: var(--coral-light); color: var(--coral-dark); }
.nav-link[data-module="routines"].active { background: var(--mint); color: var(--green); }
.nav-link[data-module="reviews"].active { background: var(--blue-light); color: var(--blue); }
.nav-foot { margin-top: auto; border-top: 0; padding: 36px 12px 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.small-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-mid); margin-right: 6px; vertical-align: 2px; }

/* Kopfzeile */
.topbar { position: sticky; top: 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); padding: 0 26px; min-height: 64px; height: 64px; gap: 14px; color: var(--navy); backdrop-filter: none; }
.topbar .icon-btn { width: 34px; height: 34px; color: var(--muted); }
.topbar .icon-btn .ico { width: 20px; height: 20px; }
.topbar-title { font-size: 12px; line-height: 1.6; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title a { color: var(--muted); }
.crumb-cur { color: var(--muted); }

/* Arbeitsbereich */
.main { max-width: 1120px; padding: 30px 36px 44px; margin: 0; color: var(--ink); }
.app-foot { display: flex; gap: 15px; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.6; color: var(--faint); margin-top: auto; justify-content: space-between; }

/* Rechte Leiste */
.side-right { background: var(--ctx-bg); border-left: 1px solid var(--line); padding: 30px 22px; }
.context-heading { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); margin: 0 0 26px; line-height: 1.6; }
.context-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.context-summary h2 { font-size: 15px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; margin: 0 0 12px; color: var(--ink); }
.context-summary p { font-size: 12px; line-height: 1.85; color: var(--muted); margin: 0; }
.context-summary + .context-summary, .context-details { margin-top: 18px; }
.context-details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 12px; color: var(--muted); line-height: 1.85; }
.context-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.context-details summary::-webkit-details-marker { display: none; }
.context-details summary .ico { width: 16px; height: 16px; transition: transform .15s; }
.context-details[open] summary .ico { transform: rotate(180deg); }
.context-details hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.context-details p { margin: 0; }
.context-label { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 4px; }
.context-footnote { font-size: 11px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding: 14px 0 0; margin: 20px 0 0; }
.ctx-source { font-size: 11px; }

/* Seitentitel und gemeinsame Elemente */
.page-head { margin: 0 0 24px; }
.page-head h1 { font-size: 34px; font-weight: 600; letter-spacing: -.8px; line-height: 1.25; color: var(--ink); gap: 14px; }
.page-head-row { gap: 16px; }
.back { font-size: 12px; line-height: 1.7; color: var(--muted); padding: 5px 0; margin: 0 0 20px; gap: 6px; }
.back .ico { display: none; }
.back::before { content: "←"; }
.form-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.module-label { display: inline-flex; align-items: center; gap: 8px; }
.module-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--blue); }
.module-dot--goals { background: var(--coral); }
.module-dot--routines { background: var(--sage); }
.module-dot--reviews { background: var(--blue); }
.area-icon-badge, .area-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--warm); color: var(--muted); flex: none; }
.area-icon-badge .ico, .area-ico .ico { width: 18px; height: 18px; }
.area-ico.lg { width: 36px; height: 36px; border-radius: 10px; }
.area-ico.lg .ico { width: 21px; height: 21px; }
.inline-action { background: none; border: 0; padding: 5px 0; font-size: 11px; line-height: 1.6; color: var(--blue); cursor: pointer; }
.inline-action:hover { text-decoration: underline; }
.inline-action--routines { color: var(--green); }
.inline-action--muted { color: var(--muted); }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--neutral); }
.icon-button .ico { width: 20px; height: 20px; }

/* Buttons */
.btn { font-size: 13px; line-height: 1.5; padding: 9px 13px; border-radius: 8px; min-height: 38px; gap: 6px; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--blue-light); border-color: var(--blue-light); color: var(--ink); }
.btn-primary:hover { background: #BFE4F3; border-color: #BFE4F3; }
[data-module="goals"] .btn-primary { background: var(--coral); border-color: var(--coral); color: var(--ink); }
[data-module="goals"] .btn-primary:hover { background: #F77B75; border-color: #F77B75; }
[data-module="routines"] .btn-primary { background: var(--sage); border-color: var(--sage); color: var(--ink); }
[data-module="routines"] .btn-primary:hover { background: #A5CFB8; border-color: #A5CFB8; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #C9D0D6; }
.secondary-action { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.5; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.secondary-action:hover { text-decoration: none; border-color: #C9D0D6; }
.btn-success { background: #fff; border-color: var(--line); color: var(--ink); }

/* Filter wie in 0.1 */
.tabs { border-bottom: 0; gap: 14px; margin: 0; }
.tab { font-size: 13px; line-height: 1.6; color: var(--muted); padding: 8px 0; border-bottom: 2px solid transparent; margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.tab .seg-count { font-size: 11px; margin: 0; opacity: 1; }
.tab.on { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
[data-module="goals"] .tab.on { border-bottom-color: var(--coral); }
[data-module="routines"] .tab.on { border-bottom-color: var(--sage); }
[data-module="reviews"] .tab.on { border-bottom-color: var(--blue); }
.toolbar { margin: 0 0 24px; gap: 14px; }
.filter-toggle { font-size: 12px; line-height: 1.5; color: var(--muted); padding: 8px 0; gap: 7px; border-radius: 8px; background: none; }
.filter-toggle:hover, .filter-toggle.on { background: none; color: var(--ink); }
.filter-toggle .ico { width: 15px; height: 15px; }
.filter-panel { border: 0; padding: 0; background: none; margin: -10px 0 20px; gap: 10px; }
.filter-label { font-size: 12px; min-width: 90px; }
.seg { gap: 5px; }
.seg-btn { font-size: 12px; line-height: 1.5; padding: 7px 10px; min-height: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); }
.seg-btn:hover { color: var(--ink); border-color: transparent; }
.seg-btn.on { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 400; }
.seg-btn .ico { width: 14px; height: 14px; }
.seg.small .seg-btn { font-size: 12px; padding: 7px 10px; min-height: 0; }
.year-nav { border: 0; background: none; gap: 6px; padding: 0; }
.year-nav .icon-btn { width: 27px; height: 36px; color: var(--ink); }
.year-nav-val { font-size: 14px; font-weight: 700; min-width: 0; }

/* Formulare: Auswahl in Modulfarbe wie in 0.1 */
.form .seg-btn { border-color: var(--line); background: #fff; color: var(--ink); font-size: 13px; padding: 8px 13px; }
[data-module="goals"] .form .seg-btn.on { background: var(--coral-light); border-color: var(--coral-light); color: var(--coral-dark); }
[data-module="routines"] .form .seg-btn.on { background: var(--mint); border-color: var(--mint); color: var(--green); }
.form-group { border-radius: 16px; padding: 20px; gap: 16px; }
.form-group h2 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; }
.field > label, .field-label { font-size: 13px; font-weight: 500; }
.input, .textarea { font-size: 14px; border-radius: 8px; }
.input.big { font-size: 15px; }

/* Karten und Zeilen allgemein */
.card { border-radius: 16px; padding: 20px; }
.card-head h2 { font-size: 15px; font-weight: 550; letter-spacing: -.3px; }
.section-head h2 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; display: flex; align-items: center; gap: 9px; }
.section-head .count { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 0; }
.row { border-radius: 10px; padding: 14px 16px; min-height: 0; }
.row-title { font-size: 15px; font-weight: 500; line-height: 1.5; }
.row-meta { font-size: 12px; color: var(--muted); }
.status { font-size: 12px; }
.status.focus { color: var(--coral-dark); }
.pill { display: inline-block; background: var(--neutral); color: var(--muted); border-radius: 6px; padding: 3px 10px; font-size: 12px; }
.empty { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 12px 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.notice { border-radius: 10px; font-size: 12px; }

/* ---------- Startseite ---------- */
.home-page { color: var(--navy); }
.home-welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; }
.home-date { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
#home-greeting { font-size: 34px; font-weight: 500; line-height: 1.2; letter-spacing: -1.1px; color: var(--navy); margin: 0; }
.home-overview-stats { display: flex; gap: 23px; padding-right: 4px; }
.home-overview-stats a { display: block; color: inherit; }
.home-overview-stats a:hover { text-decoration: none; }
.home-overview-stats strong { display: block; font-size: 21px; font-weight: 500; line-height: 1.35; color: var(--ink); padding: 0 3px; }
.home-overview-stats span { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); padding: 0 3px; }
.home-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.home-dashboard-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-panel { background: #fff; padding: 20px; border-radius: 16px; }
.home-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 16px; min-height: 24px; }
.home-panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-panel h2 { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -.2px; color: var(--navy); white-space: nowrap; }
.home-heading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.home-heading-dot--goals { background: var(--coral); }
.home-heading-dot--routines { background: var(--sage); }
.home-panel-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--warm); color: var(--blue); flex: none; }
.home-panel-icon .ico { width: 21px; height: 21px; }
.home-focus-list, .home-routine-list { display: flex; flex-direction: column; gap: 10px; }
.home-focus-item { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 7px 8px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.home-item-category { grid-column: 1 / -1; font-size: 11px; font-weight: 500; line-height: 1.6; color: var(--muted); }
.home-focus-target { grid-column: 1; grid-row: 2; color: var(--navy); }
.home-focus-target:hover { text-decoration: none; }
.home-focus-target strong { display: flex; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--navy); }
.home-focus-arrow { color: var(--coral); flex: none; padding-top: 2px; }
.home-focus-arrow .ico { width: 17px; height: 17px; }
.home-focus-item > .star { grid-column: 2; grid-row: 2; width: 30px; height: 30px; padding: 6px; border-radius: 7px; color: var(--coral-dark); }
.home-focus-item > .star .ico { width: 17px; height: 17px; fill: var(--coral); stroke: var(--coral); }
.home-focus-item .goal-progress { grid-column: 1 / -1; }
.goal-progress p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.home-empty-title { font-size: 14px; color: var(--navy); margin: 0 0 6px; }
.home-empty .form-note { margin-bottom: 18px; }
.home-routine-overview { display: flex; align-items: center; gap: 13px; margin: 0 0 16px; }
.home-routine-ring { position: relative; display: grid; place-items: center; width: 61px; height: 61px; }
.home-routine-ring svg { position: absolute; inset: 0; width: 61px; height: 61px; }
.home-routine-ring svg text { display: none; }
.home-routine-ring .ring-bg { stroke: var(--line); stroke-width: 4; }
.home-routine-ring .ring-fg { stroke: var(--sage); stroke-width: 4; }
.home-routine-ring span { position: relative; font-size: 16px; font-weight: 500; color: var(--ink); }
.home-routine-count strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.home-routine-count span { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.home-habit-row { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.completion-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.completion-toggle-box { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #7C8993; border-radius: 4px; background: #fff; color: var(--green); }
.completion-toggle:hover .completion-toggle-box { border-color: var(--muted); }
.completion-toggle.is-completed .completion-toggle-box { background: var(--sage); border: 0; }
.completion-toggle-box .ico { width: 14px; height: 14px; stroke-width: 2.2; }
.home-habit-open { display: block; min-width: 0; flex: 1; color: var(--navy); padding: 1px 0; }
.home-habit-open:hover { text-decoration: none; }
.home-habit-open strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--navy); }
.home-habit-open span { display: block; font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 3px; }
.home-more { margin-top: 8px; }
.home-review-period h3 { font-size: 22px; font-weight: 450; line-height: 1.4; letter-spacing: -.6px; color: var(--navy); margin: 0; }
.home-review-status { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 7px 0 0; }
.home-review-action-row { display: flex; justify-content: flex-end; margin-top: 20px; }
.home-review-start { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--blue); padding: 6px 0; }
.home-review-start .ico { width: 16px; height: 16px; }
.home-review-calendar { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 7px; color: var(--muted); margin: -6px 0; }
.home-review-calendar:hover { background: var(--neutral); }
.home-review-calendar .ico { width: 20px; height: 20px; }
.journal-question { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
.journal-question p { font-size: 16px; line-height: 1.5; color: var(--navy); margin: 0; }
.journal-question .icon-button { margin: -6px -6px 0 0; }
.journal-answer { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); resize: vertical; }
.journal-answer:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.journal-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.journal-actions .inline-action { font-size: 12px; }
.journal-saved-status p { font-size: 14px; color: var(--navy); margin: 0 0 6px; }
.journal-saved-status .form-note { margin-bottom: 14px; }
.home-areas { margin-top: 28px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.home-section-heading h2 { font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.3px; color: var(--navy); }
.home-area-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.home-area-shortcut { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); min-height: 69px; }
.home-area-shortcut:hover { text-decoration: none; border-color: #CBD2D8; }

/* ---------- Lebensbereiche ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.area-card { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); line-height: 1.5; text-align: left; overflow: visible; }
.area-card:hover { text-decoration: none; border-color: #CBD2D8; }
.area-accent-rail { position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; display: flex; flex-direction: column; gap: 6px; }
.area-accent-rail i { flex: 1; border-radius: 2px; background: var(--coral); }
.area-accent-rail i.area-accent-routines { background: var(--sage); }
.area-card-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.area-card .area-icon-badge { width: 36px; height: 36px; border-radius: 10px; }
.area-card .area-icon-badge .ico { width: 21px; height: 21px; }
.area-card-heading strong { font-size: 16px; font-weight: 550; line-height: 1.5; }
.area-card .number { font-size: 10px; font-weight: 500; letter-spacing: 1px; color: var(--muted); }
.area-activity-meta { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.area-goal-count { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.area-goal-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.area-goal-title { font-size: 14px; line-height: 1.5; color: var(--ink); }
.area-legend { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 20px 0 0; }
.area-orientation { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 0 0 26px; }
.area-orientation h2 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; line-height: 1.4; margin: 0 0 10px; color: var(--ink); }
.area-vision-text { font-size: 15px; line-height: 1.6; color: var(--ink); background: none; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; text-align: left; cursor: pointer; width: calc(100% + 12px); display: block; }
.area-vision-text:hover { background: var(--neutral); }
.area-guiding-block { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.area-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.area-section-heading h2 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.area-section-count { font-size: 11px; color: var(--muted); font-weight: 400; }
.area-section-heading .inline-action { font-size: 12px; color: var(--blue-ui); }
.guiding-questions { margin: 0; padding-left: 18px; }
.guiding-questions li { font-size: 14px; line-height: 1.5; padding: 4px 0 4px 3px; margin: 0 0 7px; color: var(--ink); }
.guiding-questions li::marker { color: var(--blue-mid); }
.area-content-section { margin-bottom: 26px; }
.life-area-links { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.area-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 18px; align-items: center; padding: 14px 16px; color: var(--ink); line-height: 1.5; }
.area-activity-row + .area-activity-row { border-top: 1px solid var(--line); }
.area-activity-row:hover { text-decoration: none; background: #FAFBFB; }
.area-row-copy strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; }
.area-row-copy small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); }
.area-row-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.area-row-status.is-focus { color: var(--coral-dark); }
.area-row-arrow { font-size: 18px; color: var(--muted); }
.area-empty-state { font-size: 13px; line-height: 1.8; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.area-more { margin-top: 8px; font-size: 12px; }

/* ---------- Ziele und Routinen: Karten ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.collection-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.collection-card-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.collection-card-copy { min-width: 0; flex: 1; }
.collection-card-open { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.collection-card-open:hover { text-decoration: none; color: #000; }
.collection-card-area { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.collection-card-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.collection-card .goal-progress p { font-size: 14px; }
.star.labeled { display: inline-flex; align-items: center; gap: 5px; width: auto; height: 30px; padding: 5px; border-radius: 7px; font-size: 11px; line-height: 1.5; color: var(--ink); background: transparent; flex: none; }
.star.labeled .ico { width: 18px; height: 18px; color: var(--coral); stroke: var(--coral); }
.star.labeled.on { background: var(--coral-light); }
.star.labeled.on .ico { fill: var(--coral); }
.star.labeled:hover { background: var(--coral-light); }
.star.labeled span[aria-hidden] { padding-right: 3px; }
.routine-card-frequency { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); margin-bottom: 8px; }
.routine-card-summary { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Wochenleiste wie 0.1 */
.week-strip { display: flex; gap: 7px; }
.wd { display: grid; gap: 6px; justify-items: center; min-width: 22px; font-size: 10px; color: var(--muted); background: none; border: 0; padding: 0; }
.wd-b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--sage); border-radius: 4px; background: #fff; color: var(--green); font-size: 12px; }
.wd-l { font-size: 10px; line-height: 1.6; color: var(--muted); }
.wd.today .wd-l { color: var(--muted); font-weight: 400; }
.wd.planned .wd-b { border-style: solid; border-color: var(--sage); box-shadow: inset 0 -2px 0 var(--sage); }
.wd.done .wd-b { background: var(--mint); border-color: transparent; color: var(--green); box-shadow: none; }
.wd.today .wd-b { outline: 1px solid var(--green); outline-offset: 2px; }
.wd.today.done .wd-b { outline-color: var(--sage); }
.wd.before .wd-b { background: var(--neutral); border: 1px dashed var(--sage); color: var(--muted-2); font-size: 12px; }
.wd.future { opacity: 1; }
button.wd .wd-b { border: 1px solid var(--sage); }
button.wd.done .wd-b { border-color: transparent; }
button.wd:hover .wd-b { border-color: var(--green); }
.wd-b .ico { width: 13px; height: 13px; stroke-width: 2; }

/* ---------- Journal ---------- */
.journal-editor { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 30px; }
.journal-editor-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; color: var(--ink); }
.journal-editor-head .ico { width: 22px; height: 22px; color: var(--ink); }
.journal-editor-head span { font-size: 15px; font-weight: 500; }
.journal-editor .journal-answer { min-height: 110px; }
.journal-editor .btn-primary { background: var(--blue-light); border-color: var(--blue-light); }
.journal-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.journal-history-heading h2 { font-size: 15px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; }
.journal-history-heading .form-note { color: var(--ink); }
.journal-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.journal-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.journal-entry time { font-size: 12px; line-height: 1.6; color: var(--muted); }
.journal-entry h3 { font-size: 14px; font-weight: 550; line-height: 1.6; margin: 8px 0; color: var(--ink); }
.journal-entry .user-text { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 8px 0; }
.journal-entry .user-text p { margin: 0 0 6px; }
.journal-entry .inline-action { font-size: 11px; color: var(--blue-ui); }
.journal-entry .inline-action.is-marked { color: var(--blue); font-weight: 500; }

/* ---------- Reviews ---------- */
.review-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 30px; }
.review-choice { display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 14px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; color: var(--ink); font: inherit; line-height: 1.5; }
.review-choice:hover, .review-choice.on { border-color: #CBD2D8; }
.review-choice.on { box-shadow: 0 0 0 1px var(--blue-mid); border-color: var(--blue-mid); }
.review-choice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--warm); color: var(--blue); }
.review-choice-icon .ico { width: 30px; height: 30px; stroke-width: 1.3; }
.review-choice-title { display: flex; align-items: center; gap: 8px; }
.review-choice-title strong { font-size: 14px; font-weight: 600; }
.review-choice-description { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); padding-left: 15px; margin-top: 4px; }
.review-choice .arrow { color: #9BA8B4; align-self: center; margin-top: 20px; }
.review-choice .arrow .ico { width: 18px; height: 18px; }
.review-picker { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: -14px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.period-pick .seg-btn { border-color: var(--line); background: #fff; color: var(--ink); }
.period-pick .seg-btn.done-pill { background: var(--mint); border-color: var(--mint); color: var(--green); }
.section-label { font-size: 13px; font-weight: 500; line-height: 1.6; margin: 0 0 16px; display: flex; justify-content: space-between; color: var(--ink); }
.section-label span { font-weight: 400; color: var(--muted); }
.saved-review { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.saved-review + .saved-review { margin-top: 10px; }
.saved-review:hover { text-decoration: none; border-color: #CBD2D8; }
.saved-review strong { display: block; font-size: 15px; font-weight: 500; }
.saved-review small { display: block; font-size: 12px; color: var(--muted); }
.saved-review .arrow { color: #9BA8B4; }
.saved-review .arrow .ico { width: 18px; height: 18px; }

/* ---------- Auswertungen ---------- */
.evaluation-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 26px; }
.evaluation-nav a { display: inline-flex; align-items: center; padding: 8px 0; font-size: 12px; line-height: 1.6; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.evaluation-nav a:hover { text-decoration: none; color: var(--ink); }
.evaluation-nav a.on { color: var(--ink); font-weight: 550; border-bottom-color: var(--blue); }
.analysis-filters { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.analysis-year { display: flex; align-items: center; gap: 6px; }
.analysis-year button { background: none; border: 0; padding: 7px; font-size: 14px; color: var(--ink); cursor: pointer; }
.analysis-year button:disabled { opacity: .3; cursor: default; }
.analysis-year strong { font-size: 14px; font-weight: 700; }
.analysis-unit, .analysis-parts { display: flex; gap: 5px; flex-wrap: wrap; }
.analysis-parts { margin: 0 0 16px; }
.analysis-unit button, .analysis-parts button { font: inherit; font-size: 12px; line-height: 1.5; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.analysis-unit button.on, .analysis-parts button.on { background: #fff; border-color: var(--line); color: var(--ink); }
.analysis-unit button:hover, .analysis-parts button:hover { color: var(--ink); }
.analysis-parts button .ico { width: 14px; height: 14px; }
.analysis-filters .filter-toggle { margin-left: auto; }
.analysis-period { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.surface-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.surface-panel.wide { grid-column: 1 / -1; }
.surface-panel h2 { font-size: 15px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; margin: 0 0 16px; }
.surface-panel h3 { font-size: 14px; font-weight: 550; line-height: 1.6; margin: 0 0 12px; }
.surface-panel .form-note { font-size: 13px; line-height: 1.8; }
.analysis-statusbar { display: flex; gap: 3px; height: 10px; border-radius: 5px; overflow: hidden; margin: 18px 0 10px; background: var(--neutral); }
.analysis-statusbar span { height: 100%; }
.analysis-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.analysis-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.analysis-goal { margin-top: 18px; }
.analysis-goal .inline-action { font-size: 13px; line-height: 1.6; padding: 3px 0; text-align: left; display: inline-block; color: var(--blue); }
.analysis-goal .goal-progress p, .analysis-goal .form-note { font-size: 13px; }
.analysis-completed { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.analysis-habit + .analysis-habit { margin-top: 18px; }
.analysis-habit .home-section-heading { margin-bottom: 6px; }
.analysis-habit .inline-action { font-size: 11px; color: var(--blue); }
.analysis-habit .form-note { color: var(--ink); }
.mini-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 28px)); gap: 5px; max-width: 320px; }
.mini-day-label { display: grid; place-items: center; font-size: 11px; line-height: 1.6; color: var(--muted); }
.mini-calendar-day { display: grid; place-items: center; height: 23px; border-radius: 4px; font-size: 11px; color: var(--muted-2); background: var(--neutral); }
.mini-calendar-day.logged { background: var(--sage); color: var(--green); }
.mini-calendar-day.is-inactive { background: transparent; text-decoration: line-through; }
.mini-calendar-day.is-planned { box-shadow: inset 0 -2px 0 var(--sage); }
.analysis-note { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 10px 0 0; }
.month-bars { display: flex; flex-direction: column; gap: 10px; }


/* Ziel-Detail wie 0.1 */
.goal-toolbar { display: flex; align-items: center; gap: 9px; margin: 20px 0 24px; flex-wrap: wrap; }
.goal-toolbar .star.labeled { height: 38px; padding: 8px 10px; border-radius: 10px; font-size: 12px; color: var(--coral-dark); gap: 7px; }
.completion-toggle--labeled { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 38px; padding: 4px 0; font-size: 12px; color: var(--ink); }
.completion-toggle-label { font-size: 12px; line-height: 1.5; }
.action-menu { margin-left: auto; position: relative; }
.action-menu summary { list-style: none; cursor: pointer; font-size: 12px; line-height: 1.6; color: var(--muted); padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu-items { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(37, 50, 59, .08); min-width: 200px; }
.action-menu-items .secondary-action { justify-content: flex-start; border-color: transparent; }
.action-menu-items .secondary-action:hover { background: var(--neutral); }
.goal-facts { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 22px 0 24px; }
.goal-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 0 0 11px; border-bottom: 1px solid var(--line); font-size: 12px; }
.goal-facts > div + div { padding-top: 11px; }
.goal-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.goal-facts dt { font-size: 12px; line-height: 1.7; color: var(--muted); }
.goal-facts dd { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
.goal-field-button { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; color: var(--ink); }
.goal-field-button:hover { background: var(--neutral); text-decoration: none; }
.goal-field-pencil { color: var(--muted); opacity: 0; flex: none; }
.goal-field-button:hover .goal-field-pencil, .goal-field-button:focus-visible .goal-field-pencil { opacity: 1; }
.goal-field-pencil .ico { width: 14px; height: 14px; }
.goal-steps { margin: 20px 0; }
.goal-steps .home-section-heading h2, .supporting-routines-panel .home-section-heading h2 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; color: var(--ink); }
.inline-action--goals { color: var(--coral-dark); }
.goal-step { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 14px 0; }
.goal-step + .goal-step { border-top: 1px solid var(--line); }
.goal-step-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.goal-step-title { font-size: 14px; line-height: 1.5; padding: 5px 0; color: var(--ink); }
.goal-step-title:hover { text-decoration: none; }
.goal-step-title.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: #B9C2C9; }
.step-order { display: flex; gap: 2px; }
.step-order button { background: none; border: 0; font-size: 14px; color: var(--muted); padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.step-order button:hover:not(:disabled) { background: var(--neutral); }
.step-order button:disabled { opacity: .35; cursor: default; }
.goal-step--new .input { border-style: dashed; }
.detail-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.goal-editable-note h2 { font-size: 15px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; margin: 0 0 16px; }
.goal-text-link { font-size: 13px; line-height: 1.9; }
.supporting-routines-panel { margin: 24px 0; }
.supporting-list { display: flex; flex-direction: column; }
.supporting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.supporting-row + .supporting-row { border-top: 1px solid var(--line); }
.supporting-copy { color: var(--ink); }
.supporting-copy:hover { text-decoration: none; }
.supporting-copy strong { display: block; font-size: 14px; font-weight: 500; }
.supporting-copy span { display: block; font-size: 12px; color: var(--muted); }
.period-filter { margin: -14px 0 14px; }
.collection-empty { padding: 40px 0; text-align: center; }
.goal-pick { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; background: #fff; }
.check-line { font-size: 13px; }
.check-line .form-note { margin-left: auto; }


/* Auswertungen: Ergänzungen */
.month-bars-row { display: flex; gap: 6px; align-items: flex-end; }
.mb-col { display: grid; gap: 4px; justify-items: center; flex: 1; max-width: 34px; }
.mb-track { width: 100%; height: 56px; background: var(--neutral); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.mb-fill { width: 100%; background: var(--sage); border-radius: 4px; }
.mb-label { font-size: 10px; color: var(--muted); }
.analysis-achieved { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.analysis-achieved a { color: var(--ink); }
.wheel-compare { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 14px; }
.wheel-compare-chart { flex: 1 1 300px; max-width: 400px; }
.wheel-compare-chart svg { width: 100%; height: auto; }
.wheel-compare-chart svg text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.wheel-table { flex: 1 1 260px; border-collapse: collapse; font-size: 12px; }
.wheel-table th { text-align: right; font-weight: 550; padding: 4px 0; }
.wheel-table th:first-child, .wheel-table td:first-child { text-align: left; }
.wheel-table td { text-align: right; padding: 4px 0; border-top: 1px solid var(--line); }
.wheel-table i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.review-range { font-size: 13px; color: var(--muted); margin: -16px 0 18px; }
.review-state { margin: 0 0 24px; }
.journal-today-status { margin: 0 0 24px; }
.pager { font-size: 12px; }

/* Feinabgleich nach Seitenvergleich mit 0.1 */
.collection-card.routine-card { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 12px; }
.area-card { align-items: stretch; }
.area-card-heading { width: 100%; }
.home-item-category .module-dot { display: none; }
.goal-toolbar .star.labeled, .goal-toolbar .star.labeled.on { background: transparent; }
.goal-toolbar .star.labeled:hover { background: var(--coral-light); }
.period-filter--journal { margin: 0 0 26px; }
.journal-history { margin-top: 0; }
[data-module="space"] .btn-primary { background: var(--blue-ui); border-color: var(--blue-ui); color: #fff; }
[data-module="space"] .btn-primary:hover { background: #385D78; border-color: #385D78; }
.data-panel { margin: 0 0 16px; }
.data-panel > h2 { font-size: 15px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; margin: 0 0 12px; }
.data-panel p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 12px; }
.data-panel .helper dt { font-size: 12px; color: var(--muted); }
.data-panel .helper dd { font-size: 13px; }
.coach-panel { display: flex; flex-direction: column; gap: 18px; }
.coach-panel .field > label, .coach-panel .field-label { font-size: 13px; font-weight: 500; }
.coach-intro { font-size: 13px; color: var(--muted); margin: -12px 0 22px; }
.briefing { font-family: var(--font); font-size: 12px; line-height: 1.8; background: #fff; border-radius: 8px; min-height: 220px; }

.month-cal { grid-template-columns: repeat(7, minmax(0, 28px)); gap: 5px; font-size: 11px; }
.month-cal .mc { height: 23px; border: 0; border-radius: 4px; background: var(--neutral); color: var(--muted-2); }
.month-cal .mc.done { background: var(--sage); color: var(--green); border: 0; }
.month-cal .mc.planned { background: var(--neutral); box-shadow: inset 0 -2px 0 var(--sage); border: 0; }
.month-cal .mc.na { background: transparent; color: var(--muted-2); }
.grid-cal td.d { background: var(--sage); }
.form-foot { background: #fff; }
.detail-meta { font-size: 13px; }

/* Synchronisierung */
.sync-key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; letter-spacing: 1px; padding: 14px 16px; background: var(--neutral); border-radius: 10px; color: var(--ink); overflow-wrap: anywhere; margin: 8px 0; user-select: all; }
.sync-foot { color: var(--muted); }
.sync-foot:hover { text-decoration: none; color: var(--ink); }
.sync-ok .small-dot, .sync-idle .small-dot { background: var(--sage); }
.sync-syncing .small-dot { background: var(--blue-mid); }
.sync-error .small-dot { background: var(--coral); }
.sync-offline .small-dot, .sync-waiting .small-dot { background: #C8CFD5; }
/* ---------- Tab-Leiste (Handy) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11.5px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-decoration: none; min-height: 44px; justify-content: center; }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar .active { color: var(--text); font-weight: 600; }
  .tabbar a[data-tab="ziele"].active .ico { color: var(--coral-dark); }
  .tabbar a[data-tab="routinen"].active .ico { color: var(--green); }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast-host { bottom: calc(80px + env(safe-area-inset-bottom)); }
  #toggle-left { display: none; }
  .form-foot { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { padding-top: calc(8px + env(safe-area-inset-top)); }
}
@media print { .tabbar { display: none !important; } }

/* ---------- Responsiv ---------- */
@media (max-width: 1199px) {
  .shell, .shell.right-closed { grid-template-columns: var(--left-w) minmax(0, 1fr) 0; }
  .shell.left-closed, .shell.left-closed.right-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .shell.right-open .side-right { position: fixed; right: 0; top: 0; bottom: 0; width: min(var(--right-w), 86vw); z-index: 30; box-shadow: -8px 0 30px rgba(37, 50, 59, .12); visibility: visible; padding: 20px 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .home-dashboard-grid { display: flex; flex-direction: column; align-items: stretch; }
  .home-dashboard-column { display: contents; }
  .home-area-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .print-layout { grid-template-columns: minmax(0, 1fr); }
  .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell, .shell.left-closed, .shell.right-closed, .shell.left-closed.right-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .shell.left-open .side-left { position: fixed; left: 0; top: 0; bottom: 0; width: min(var(--left-w), 80vw); z-index: 30; box-shadow: 8px 0 30px rgba(37, 50, 59, .12); visibility: visible; padding: 18px 12px; border-right: 1px solid var(--line); }
  .main { padding: 24px 16px 56px; }
  .page-head h1 { font-size: 28px; }
  .home-head h1 { font-size: 30px; }
  .topbar { padding: 10px 14px; min-height: 52px; }
  .areas, .collection-grid, .review-choices, .analysis-grid, .detail-notes-grid { grid-template-columns: minmax(0, 1fr); }
  .home-area-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-facts > div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .action-menu { margin-left: 0; }
  .topbar { padding: 8px 10px; }
  .bar-row { grid-template-columns: minmax(70px, 110px) 1fr 34px; }
  .wheel-scale { grid-template-columns: 1fr; }
  .wheel-scale .wl { margin-top: 6px; }
  .pv-page { zoom: .8; }
}

/* ---------- Druckausgabe ---------- */
@media print {
  body { background: #fff; }
  .shell, .toast-host, #modal-host, .demo-banner { display: none !important; }
  .print-root { display: block !important; }
  .print-root .bujo-page, .print-root .sheet-a4 { break-after: page; page-break-after: always; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
