/* ============================================================
   Selbstfürsorge-Kompass · Stil
   Ruhig, warm, erdend. Leinen-Hintergrund, Moos-Grün als Akzent.
   ============================================================ */
:root {
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 0.94rem;
  --text-lg: 1.08rem;
  --text-xl: 1.3rem;
  --text-2xl: 1.6rem;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;

  --radius-sm: 2px; --radius-md: 3px; --radius-lg: 4px;

  --bg: #c9d3ee;
  --panel: #f8f9fc;
  --surface: #fefeff;
  --surface-2: #e8ebf6;
  --line: #d2d7ea;
  --line-strong: #8f97c6;
  --text: #000;
  --muted: #383d5c;
  --primary: #1b1b86;
  --primary-hover: #101058;
  --primary-soft: #e3e6f7;
  --accent2: #3a3f95;
  --dark: #14144a;
  --hover-bg: #eef0fa;
  --clay: #8c3f1b;
  --navy: #1b1b86;

  /* Kategorien */
  --c-phys: #4A7A58;
  --c-psych: #45698C;
  --c-emo: #A4566A;
  --c-prof: #9C7020;
  --c-sts: #5B6890;
  --c-bo: #A9602B;
  --c-sd: #77496A;
  --c-safe: #38706A;

  /* Stufen */
  --lv0-bg: #E1EEE4; --lv0-fg: #25603C;
  --lv1-bg: #F4EAC9; --lv1-fg: #6F5510;
  --lv2-bg: #F5DDCB; --lv2-fg: #8C3F1B;
  --lv3-bg: #F1D1CB; --lv3-fg: #8A2A2A;
  --lv4-bg: #EBCAD6; --lv4-fg: #741C3C;

  --font-display: Arial, Helvetica, Geneva, Swiss, sans-serif;
  --font-body: Arial, Helvetica, Geneva, Swiss, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 15px 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-underline-offset: 3px; }

a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid #1D5FA8; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: var(--space-3) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-2); top: var(--space-2); }
.small { font-size: var(--text-sm); }
.muted { color: var(--muted); }
.plain li + li { margin-top: var(--space-2); }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-5); border-radius: var(--radius-md); border: 1.5px solid transparent; font-weight: 700; font-size: var(--text-sm); cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Views ---------- */
.view { padding-block: var(--space-4) var(--space-10); }
.view-head { margin-bottom: var(--space-6); max-width: 70ch; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-2); }
.h-page { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.015em; }
.h-section { font-weight: 700; font-size: var(--text-lg); line-height: 1.25; margin-bottom: var(--space-3); }
.h-card { font-weight: 700; font-size: var(--text-base); line-height: 1.3; }
.lede { font-size: var(--text-base); color: var(--muted); margin-top: var(--space-3); max-width: 62ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.card + .card { margin-top: var(--space-4); }
.section { margin-top: var(--space-12); }
.section:first-child { margin-top: 0; }

/* ---------- Start ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-10); align-items: center; padding-block: var(--space-4) var(--space-8); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { font-size: var(--text-base); margin-top: var(--space-5); }
.hero .btn-row { margin-top: var(--space-6); }
.compass-art { width: 100%; max-width: 380px; justify-self: center; color: var(--primary); }

.facts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.facts .card + .card { margin-top: 0; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }
.fact-list li { display: flex; gap: var(--space-3); padding-block: var(--space-2); border-bottom: 1px dashed var(--line); font-size: var(--text-sm); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list .k { font-weight: 700; min-width: 5.4rem; color: var(--text); }
.callout { border-left: 4px solid var(--clay); background: #f6ebd2; padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-sm); }
.callout strong { color: var(--clay); }
.callout.info { border-color: var(--primary); background: var(--primary-soft); }
.callout.info strong { color: var(--primary); }

.model { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
@media (max-width: 820px) { .model { grid-template-columns: 1fr 1fr; } }
.model > div { border-top: 3px solid var(--c); padding-top: var(--space-3); }
.model h3 { font-size: var(--text-sm); font-weight: 700; }
.model p { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-1); }

/* ---------- Fragebogen ---------- */
.progress { margin-bottom: var(--space-6); }
.progress-segs { display: flex; gap: var(--space-1); }
.progress-segs button { flex: 1; height: 28px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.progress-segs button::after { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 3px; background: var(--line); transition: background-color .2s; }
.progress-segs button.done::after { background: var(--primary); opacity: .55; }
.progress-segs button.current::after { background: var(--primary); opacity: 1; }
.progress-meta { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-1); font-size: var(--text-xs); color: var(--muted); flex-wrap: wrap; }

.step-head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-6); }
.step-ico { flex-shrink: 0; width: 36px; height: 36px; color: var(--c); margin-top: 4px; }
.step-head .lede { margin-top: var(--space-2); }

.q { border: 0; padding: var(--space-5) 0; border-top: 1px solid var(--line); min-width: 0; }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q legend { display: block; width: 100%; padding: 0; margin-bottom: var(--space-3); font-weight: 500; line-height: 1.45; }
.q legend .qn { display: inline-block; min-width: 1.6rem; color: var(--c); font-weight: 700; }
.scale { display: grid; gap: var(--space-2); }
.scale.n5 { grid-template-columns: repeat(5, 1fr); }
.scale.n3 { grid-template-columns: repeat(3, 1fr); }
.scale label { position: relative; display: block; cursor: pointer; }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: var(--space-2) 2px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); text-align: center; line-height: 1.15; transition: background-color .12s, border-color .12s, color .12s; }
.chip .num { font-weight: 700; font-size: var(--text-sm); color: var(--muted); }
.chip .lbl { font-size: 0.75rem; overflow-wrap: anywhere; }
@media (min-width: 560px) { .chip .lbl { font-size: var(--text-sm); } .chip { min-height: 56px; } }
.scale label:hover .chip { border-color: var(--primary); background: var(--hover-bg); }
.scale input:checked + .chip { background: var(--primary); border-color: var(--primary); color: #fff; }
.scale input:checked + .chip .num { color: #fff; }
.scale input:focus-visible + .chip { outline: 3px solid #1D5FA8; outline-offset: 2px; }
.scale-note { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-4); }

.step-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.step-count { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Auswertung ---------- */
.summary { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 560px) { .summary { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: 3px; font-size: var(--text-xs); font-weight: 700; background: var(--b); color: var(--f); white-space: nowrap; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lv0 { --b: var(--lv0-bg); --f: var(--lv0-fg); } .lv1 { --b: var(--lv1-bg); --f: var(--lv1-fg); }
.lv2 { --b: var(--lv2-bg); --f: var(--lv2-fg); } .lv3 { --b: var(--lv3-bg); --f: var(--lv3-fg); }
.lv4 { --b: var(--lv4-bg); --f: var(--lv4-fg); }
.overall { border-left: 6px solid var(--f); }
.overall h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.15; margin: var(--space-2) 0 var(--space-3); }
.meta-line { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-3); }

.alert { border: 1.5px solid var(--f); background: var(--b); color: var(--text); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-4); }
.alert h3 { font-weight: 700; color: var(--f); font-size: var(--text-base); margin-bottom: var(--space-2); }
.alert ul { margin-top: var(--space-3); font-size: var(--text-sm); }
.alert li { padding-left: var(--space-4); position: relative; }
.alert li + li { margin-top: var(--space-1); }
.alert li::before { content: '–'; position: absolute; left: 0; }
.alert p { font-size: var(--text-sm); }

.profile { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; gap: var(--space-4); } }
.radar { width: 100%; max-width: 400px; height: auto; margin-inline: auto; display: block; }
.radar text { font-family: var(--font-body); font-size: 14px; fill: var(--text); }
.cat-row { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.cat-row:first-child { padding-top: 0; }
.cat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.cat-top svg { width: 22px; height: 22px; color: var(--c); flex-shrink: 0; }
.cat-name { font-weight: 700; }
.cat-pct { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); margin-top: var(--space-2); overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 5px; transition: width .5s ease; }
.bar-ticks { position: relative; height: 0; }
.bar-ticks b { position: absolute; top: -10px; width: 1px; height: 10px; background: var(--surface); }
.detail { margin-top: var(--space-2); font-size: var(--text-sm); }
.detail summary { cursor: pointer; color: var(--primary); font-weight: 500; min-height: 32px; display: flex; align-items: center; }
.detail ul { margin-top: var(--space-2); }
.detail li { padding: var(--space-1) 0; display: flex; gap: var(--space-2); }
.detail .dot { flex-shrink: 0; margin-top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.detail .dot.hi { background: var(--lv0-fg); } .detail .dot.lo { background: var(--lv2-fg); }
.tag-line { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }
.tag-line b { color: var(--text); }

.gauges { display: grid; gap: var(--space-4); }
.gauge .g-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.gauge .g-name { font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }
.gauge .g-name svg { width: 22px; height: 22px; color: var(--c); }
.gauge .badge { margin-left: auto; }
.track { position: relative; display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: var(--space-3); gap: 2px; }
.track span { flex: 1; }
.track span:nth-child(1) { background: #CFE2D5; } .track span:nth-child(2) { background: #EBDDAE; }
.track span:nth-child(3) { background: #E8BC93; } .track span:nth-child(4) { background: #D58E82; }
.marker-wrap { position: relative; height: 14px; margin-top: 2px; }
.marker { position: absolute; top: 0; width: 0; height: 0; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid var(--text); transition: left .5s ease; }
.zone-labels { display: flex; gap: 2px; font-size: 0.75rem; color: var(--muted); }
.zone-labels span { flex: 1; text-align: left; line-height: 1.2; }
@media (max-width: 560px) { .zone-labels span { font-size: 0.75rem; hyphens: auto; overflow-wrap: anywhere; } }

.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); border-top: 4px solid var(--f, var(--primary)); }
.insight h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.insight p { font-size: var(--text-sm); color: var(--muted); }
.insight .do { margin-top: var(--space-3); color: var(--text); }
.insight .do b { color: var(--f, var(--primary)); }

.method summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.method table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-size: var(--text-sm); }
.method th, .method td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.method th { font-weight: 700; background: var(--surface-2); }

.empty { text-align: left; padding: var(--space-8); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty p { margin-block: var(--space-3) var(--space-5); color: var(--muted); max-width: 55ch; }

/* ---------- Plan ---------- */
.ladder { display: grid; gap: var(--space-2); counter-reset: step; }
.ladder li { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.ladder li::before { counter-increment: step; content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); border: 1.5px solid var(--line-strong); color: var(--muted); }
.ladder li.rec { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 4px 0 0 var(--primary); }
.ladder li.rec::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.ladder .l-t { font-weight: 700; font-size: var(--text-sm); }
.ladder .l-d { font-size: var(--text-sm); color: var(--muted); }
.ladder .l-flag { font-size: var(--text-xs); font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 560px) { .ladder li { grid-template-columns: 2rem 1fr; } .ladder .l-flag { grid-column: 2; } }

.focus-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: 3px; border: 1px solid var(--line-strong); font-size: var(--text-sm); background: var(--surface); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

.horizon { margin-top: var(--space-10); }
.horizon-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.horizon-head p { font-size: var(--text-sm); color: var(--muted); }
.iv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); transition: border-color .15s, box-shadow .15s; }
.iv + .iv { margin-top: var(--space-3); }
.iv.on { border-color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
.iv-top { display: flex; gap: var(--space-3); align-items: flex-start; }
.iv-check { position: relative; flex-shrink: 0; width: 44px; height: 44px; margin: -8px 0 0 -8px; display: grid; place-items: center; cursor: pointer; }
.iv-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.iv-check .box { width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); display: grid; place-items: center; transition: background-color .12s, border-color .12s; }
.iv-check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.iv-check input:checked + .box::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.iv-check input:focus-visible + .box { outline: 3px solid #1D5FA8; outline-offset: 2px; }
.iv-body { flex: 1; min-width: 0; }
.iv-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.mini { font-size: var(--text-xs); font-weight: 700; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); }
.mini.prio { background: var(--lv2-bg); color: var(--lv2-fg); }
.mini.rec { background: var(--primary-soft); color: var(--primary); }
.iv-why { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }
.iv details { margin-top: var(--space-2); font-size: var(--text-sm); }
.iv summary { cursor: pointer; color: var(--primary); font-weight: 500; min-height: 36px; display: flex; align-items: center; }
.iv ol { list-style: decimal; padding-left: var(--space-5); }
.iv ol li + li { margin-top: var(--space-1); }
.iv-note { margin-top: var(--space-3); }
.field { display: block; }
.field > span { display: block; font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-1); }
.field small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
input[type=text], textarea { width: 100%; padding: var(--space-3); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: #fff; line-height: 1.45; font-size: var(--text-sm); }
textarea { resize: vertical; min-height: 80px; }
input[type=text]:focus, textarea:focus { border-color: var(--primary); outline: 3px solid color-mix(in oklab, var(--primary) 25%, transparent); outline-offset: 0; }
.more-btn { margin-top: var(--space-3); }
.plan-bar { position: sticky; bottom: var(--space-3); margin-top: var(--space-8); display: flex; align-items: center; gap: var(--space-4); justify-content: space-between; flex-wrap: wrap; background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: var(--space-3) var(--space-5); box-shadow: 0 6px 24px rgba(0,40,0,.25); z-index: 10; }
.plan-bar .btn-ghost { border-color: #ffffff88; color: #fff; }
.plan-bar .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Reflexion ---------- */
.subtabs { display: flex; gap: var(--space-2); overflow-x: auto; margin-bottom: var(--space-6); padding-bottom: var(--space-1); scrollbar-width: thin; }
.subtabs button { white-space: nowrap; min-height: 44px; padding: var(--space-2) var(--space-4); border-radius: 3px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: var(--text-sm); cursor: pointer; }
.subtabs button:hover { border-color: var(--primary); }
.subtabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.form-grid { display: grid; gap: var(--space-5); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }
.slider-wrap { display: flex; align-items: center; gap: var(--space-4); }
input[type=range] { flex: 1; accent-color: var(--primary); height: 44px; }
.slider-val { font-weight: 700; min-width: 4.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-2); }
.role-grid label { position: relative; cursor: pointer; display: block; }
.role-grid input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-card { display: block; height: 100%; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.role-card b { display: block; font-size: var(--text-sm); }
.role-card span { font-size: var(--text-xs); color: var(--muted); }
.role-grid label:hover .role-card { border-color: var(--primary); }
.role-grid input:checked + .role-card { background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
.role-grid input:focus-visible + .role-card { outline: 3px solid #1D5FA8; outline-offset: 2px; }
.flow { display: grid; gap: var(--space-4); counter-reset: flow; }
.flow > label { counter-increment: flow; display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); }
.flow > label > * { grid-column: 2; }
.flow > label::before { grid-column: 1; grid-row: 1 / span 2; align-self: start; content: counter(flow); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); background: var(--surface-2); color: var(--muted); margin-top: 2px; }
.sign-group + .sign-group { margin-top: var(--space-5); }
.sign-group h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-2); }
.sign-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-2); }
.check { position: relative; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) var(--space-3); border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; min-height: 44px; font-size: var(--text-sm); }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check .box { flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 5px; background: #fff; display: grid; place-items: center; }
.check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .box::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.check input:focus-visible ~ .box { outline: 3px solid #1D5FA8; outline-offset: 2px; }
.levels { display: grid; gap: var(--space-3); }
.level { border-left: 6px solid var(--f); background: var(--b); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.level h4 { font-size: var(--text-sm); font-weight: 700; color: var(--f); margin-bottom: var(--space-2); }
.level textarea { min-height: 64px; }
.note-saved { font-size: var(--text-xs); color: var(--muted); }
.soft-warn { font-size: var(--text-sm); color: var(--muted); border-top: 1px solid var(--line); margin-top: var(--space-6); padding-top: var(--space-4); }

.pacer { display: grid; place-items: center; gap: var(--space-4); padding-block: var(--space-4); text-align: center; }
.pacer-circle { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); border: 2px solid var(--primary); color: var(--primary); font-weight: 700; transform: scale(.62); transition: transform 4s ease-in-out; }
.pacer-circle.in { transform: scale(1); transition-duration: 4s; }
.pacer-circle.out { transform: scale(.62); transition-duration: 6s; }
.pacer-text { font-size: var(--text-lg); font-weight: 700; min-height: 2rem; }
.pacer-sub { font-size: var(--text-sm); color: var(--muted); min-height: 1.4rem; }
@media (prefers-reduced-motion: reduce) { .pacer-circle, .pacer-circle.in, .pacer-circle.out { transition: none; } .bar > i, .marker { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Footer / Dialog ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: var(--space-10); margin-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.footer-h { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-3); }
.footer-grid ul { font-size: var(--text-sm); }
.footer-note { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--line-strong); }
.footer-note > * { max-width: 90ch; }
.footer-grid p + ul { margin-top: var(--space-3); }

dialog { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(92vw, 720px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(35, 46, 41, .55); }
.dialog-inner { padding: var(--space-6); display: grid; gap: var(--space-4); }
.dialog-h { font-size: var(--text-lg); font-weight: 700; }
#export-text { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.8125rem; min-height: 260px; background: var(--bg); }
.dialog-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

@media print {
  .site-header, .site-footer, .btn-row, .plan-bar, .step-foot, .subtabs { display: none !important; }
  body { background: #fff; }
}

/* ---------- Mobile-Feinschliff ---------- */
@media (max-width: 560px) {
  .card { padding: var(--space-4); }
  .scale { gap: var(--space-1); }
  .chip { padding-inline: 0; }
  .chip .lbl { overflow-wrap: normal; word-break: normal; hyphens: none; }
  .compass-art { max-width: 150px; }
  .view { padding-top: var(--space-6); }
  .hero { padding-top: 0; }
  .step-head { gap: var(--space-3); }
  .step-ico { width: 28px; height: 28px; }
  .plan-bar { padding: var(--space-3) var(--space-4); }
  .alert { padding: var(--space-4); }
}

/* ============================================================
   Praxis-Layout (angelehnt an psychische-balance.de)
   Feste Seitenbreite 900 px, Kopf mit Logo und Bild, linke Navigation
   ============================================================ */
.page { width: min(100%, 900px); margin-inline: auto; background: var(--panel); }
.praxis-head { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto auto auto; column-gap: 0; }
.praxis-head .brand { grid-row: 1; grid-column: 1; background: none; border: 0; padding: 0; cursor: pointer; display: block; justify-self: start; }
.praxis-head .brand img { display: block; width: 186px; height: auto; }
.praxis-head .banner { grid-row: 1; grid-column: 2; width: 100%; height: 150px; object-fit: cover; display: block; }
.praxis-head .signature { grid-row: 2; grid-column: 1; align-self: center; margin-left: 12px; max-width: calc(100% - 12px); height: auto; }
.praxis-head .slogan { grid-row: 2; grid-column: 2; align-self: center; margin: 0; padding: 6px 0 6px 0; color: var(--navy); font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif; font-variant: small-caps; font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; line-height: 1.3; }

.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; margin-top: 3px; }
.side { position: sticky; top: 0; padding-top: 12px; align-self: start; }
.tabs { display: flex; flex-direction: column; }
.tabs button { background: none; border: 0; border-left: 4px solid transparent; text-align: left; padding: 7px 10px 7px 16px; min-height: 44px; font-weight: 700; font-size: var(--text-sm); color: var(--primary); cursor: pointer; line-height: 1.3; }
.tabs button:hover { background: var(--surface-2); color: var(--primary-hover); }
.tabs button[aria-current="page"] { background: var(--surface-2); border-left-color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.ext { display: flex; flex-direction: column; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); margin-inline: 16px 10px; }
.ext a { display: flex; align-items: center; min-height: 40px; font-weight: 700; font-size: var(--text-xs); color: var(--primary); text-decoration: none; }
.ext a:hover { text-decoration: underline; }

.content { container-type: inline-size; padding-right: 22px; min-width: 0; }
main { display: block; }
.h-page, .hero h1 { color: #000; }
.hero h1 { font-size: var(--text-2xl); line-height: 1.2; letter-spacing: 0; }
.h-page { line-height: 1.25; letter-spacing: 0; }
.overall h2 { line-height: 1.25; }
.eyebrow { color: var(--accent2); }
.lede, .iv-why, .insight p { text-align: left; }
.btn { border-radius: 3px; }
.btn-primary { background: var(--primary); }
.card, .iv, .insight, .alert, .empty, .ladder li { box-shadow: none; }
.spruch { margin-top: var(--space-8); color: var(--accent2); font-style: italic; font-weight: 700; font-size: 0.85rem; line-height: 1.8; }

/* Layout-Anpassungen an die schmale Inhaltsspalte */
.hero { grid-template-columns: 1fr 190px; gap: var(--space-6); padding-block: var(--space-2) var(--space-4); }
.compass-art { max-width: 190px; }
.facts { grid-template-columns: 1fr; }
.model { grid-template-columns: repeat(2, 1fr); }
.profile { grid-template-columns: 1fr; gap: var(--space-4); }
.radar { max-width: 380px; }
@container (min-width: 620px) {
  .model { grid-template-columns: repeat(4, 1fr); }
}
@container (max-width: 520px) {
  .hero { grid-template-columns: 1fr; }
  .compass-art { order: -1; max-width: 150px; justify-self: start; }
  .model { grid-template-columns: 1fr 1fr; }
}

/* Fußzeile */
.site-footer { background: transparent; border-top: 1px solid var(--line-strong); padding: var(--space-6) 22px var(--space-4) 0; margin-top: var(--space-6); }
.footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
.fusszeile { margin-top: var(--space-4); color: var(--accent2); font-weight: 700; font-size: var(--text-xs); }
.fusszeile a { color: var(--accent2); }

/* Schmale Bildschirme: Navigation oben, Bild kleiner */
@media (max-width: 760px) {
  body { padding-top: 0; }
  .praxis-head { grid-template-columns: 96px minmax(0, 1fr); }
  .praxis-head .brand img { width: 90px; }
  .praxis-head .banner { height: 96px; }
  .praxis-head .signature { display: none; }
  .praxis-head .slogan { grid-row: 2; grid-column: 1 / -1; padding: 8px 12px; font-size: 1rem; }
  .layout { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .side { min-width: 0; position: static; padding-top: 0; border-block: 1px solid var(--line); background: var(--surface-2); }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 8px 12px; }
  .tabs button[aria-current="page"] { border-bottom-color: var(--primary); background: transparent; }
  .ext { flex-direction: row; gap: var(--space-4); margin: 0; padding: 0 12px; border-top: 1px solid var(--line); }
  .content { padding: 0 14px; }
  .site-footer { padding-right: 0; }
}
@media (max-width: 560px) {
  .view { padding-top: var(--space-4); }
  .compass-art { max-width: 130px; }
}
@media print { .praxis-head, .side { display: none !important; } .page { background: #fff; } }

/* ---------- Kennzeichnung Traumapädagogik ---------- */
.praxis-head .banner { filter: hue-rotate(70deg) saturate(.85); }
.praxis-head { border-bottom: 4px solid var(--primary); }
.kompass-tag { display: inline-block; margin-right: .4em; padding: 1px 8px; background: var(--primary); color: #fff; font-variant: normal; font-family: Arial, Helvetica, sans-serif; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; vertical-align: 2px; }
.tabs button[aria-current="page"] { background: var(--surface-2); }
