/* Skillzeit: neutrale Hell- und Dunkel-Palette, Terrakotta als Akzent, WSS-Farben für Zufriedenheit */
:root {
  --ground: #f4f4f2;
  --paper: #ffffff;
  --ink: #1b1b19;
  --muted: #66655f;
  --line: #e3e2de;
  --brand: #1b1b19;        /* Hauptknöpfe */
  --brand-hover: #3a3a36;
  --brand-ink: #1b1b19;    /* Links, Auswahl, Balken */
  --brand-soft: #ebeae6;   /* Flächen für Auswahl und Etiketten */
  --on-brand: #ffffff;
  --accent: #c8553d;
  --flame-off: #d9d8d3;
  /* Zufriedenheit wie im Work Smarter System */
  --z1: #c9594f;
  --z2: #e3934a;
  --z3: #a9c46a;
  --z4: #5e9567;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgb(27 27 25 / .04), 0 10px 28px -14px rgb(27 27 25 / .18);
  --w: 560px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #121211; --paper: #1d1d1b; --ink: #f0efeb; --muted: #a3a19b; --line: #2f2e2b;
    --brand: #f0efeb; --brand-hover: #d6d5d0; --brand-ink: #f0efeb; --brand-soft: #2a2927; --on-brand: #121211;
    --accent: #e27a61; --flame-off: #3a3936;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #121211; --paper: #1d1d1b; --ink: #f0efeb; --muted: #a3a19b; --line: #2f2e2b;
  --brand: #f0efeb; --brand-hover: #d6d5d0; --brand-ink: #f0efeb; --brand-soft: #2a2927; --on-brand: #121211;
  --accent: #e27a61; --flame-off: #3a3936;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
h1, h2 { letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .small { color: var(--muted); }
.small { font-size: .875rem; }

/* Rahmen */
.demo { background: var(--brand-soft); color: var(--brand-ink); font-size: .8125rem; text-align: center; padding: 8px 16px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in, .main, .tabs__in { max-width: var(--w); margin: 0 auto; padding-inline: 16px; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand span { font-weight: 300; color: var(--muted); }
.brand--big { font-size: 1.6rem; }
.main { padding-block: 20px 120px; display: grid; gap: 18px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs__in { display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { background: none; border: 0; padding: 10px 4px 12px; display: grid; justify-items: center; gap: 3px; font-size: .75rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active { color: var(--brand-ink); }
.tab.is-active svg { stroke-width: 2.4; }

/* Heute */
.date { color: var(--muted); font-size: .9375rem; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; display: grid; gap: 14px; }
.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.card__title { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem); font-weight: 800; }
.card__task { font-size: 1.15rem; line-height: 1.5; }
.card__skill { font-size: .9375rem; color: var(--muted); }
.card__skill strong { color: var(--ink); font-weight: 650; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 650; background: var(--brand-soft); color: var(--brand-ink); }
.flames { display: inline-flex; gap: 1px; }
.fl { color: var(--flame-off); display: inline-flex; }
.fl.is-on { color: var(--accent); }
.why { border-top: 1px solid var(--line); padding-top: 12px; }
.why summary { cursor: pointer; font-weight: 650; color: var(--brand-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.why[open] summary::after { content: "–"; }
.why p { margin-top: 8px; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.btn { appearance: none; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; padding: 13px 24px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--wide { width: 100%; }
.hint { font-size: .875rem; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.linkbtn--danger { color: var(--accent); }

.card--done .card__title { font-size: 1.5rem; }
.done-badge { font-size: .8125rem; font-weight: 700; color: var(--brand-ink); }
.done-badge::before { content: "✓ "; }
.rated { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.rated dt { font-size: .8125rem; color: var(--muted); }
.rated dd { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.note { font-style: italic; color: var(--muted); }
.next { color: var(--muted); text-align: center; font-size: .9375rem; }

/* Bewertung */
.rate { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.rate input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rate__flames { display: flex; align-items: center; gap: 6px; }
.flamebtn { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ground); color: var(--flame-off); cursor: pointer; position: relative; }
.flamebtn svg { width: 22px; height: 28px; }
.flamebtn.is-on { color: var(--accent); }
.flamebtn:focus-within { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.rate__lbl { margin-left: 8px; font-weight: 600; color: var(--muted); }
.rate__colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.colorbtn { display: grid; justify-items: center; gap: 6px; cursor: pointer; text-align: center; position: relative; }
.colorbtn__sw { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--ink); transition: box-shadow .15s, transform .15s; }
.colorbtn__t { font-size: .75rem; line-height: 1.25; color: var(--muted); }
.colorbtn.is-on .colorbtn__sw { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); transform: scale(1.04); }
.colorbtn.is-on .colorbtn__t { color: var(--ink); font-weight: 650; }
.colorbtn:focus-within .colorbtn__sw { outline: 3px solid var(--brand-ink); outline-offset: 5px; }
.z1 { --c: var(--z1); } .z2 { --c: var(--z2); } .z3 { --c: var(--z3); } .z4 { --c: var(--z4); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

.field { display: grid; gap: 6px; }
.field > span, .field > legend { font-weight: 650; font-size: .9375rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type="email"], input:not([type]), textarea, select { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 11px 13px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-ink); }

/* Verlauf */
.h { font-size: 1.8rem; font-weight: 800; }
.h2 { font-size: 1.15rem; font-weight: 750; margin-top: 8px; }
.sub { color: var(--muted); }
.empty { color: var(--muted); background: var(--paper); border-radius: var(--radius-s); padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: var(--paper); border-radius: var(--radius-s); padding: 14px; display: grid; gap: 2px; }
.stats strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats span { font-size: .8125rem; color: var(--muted); }
.panel { background: var(--paper); border-radius: var(--radius-s); padding: 18px; display: grid; gap: 12px; }
.panel__h { font-size: 1.05rem; font-weight: 750; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack span { background: var(--c); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2ch; align-items: center; gap: 10px; font-size: .875rem; }
.bars__t { height: 10px; background: var(--ground); border-radius: 999px; overflow: hidden; }
.bars__f { display: block; height: 100%; background: var(--brand-ink); border-radius: 999px; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.log__i { position: relative; background: var(--paper); border-radius: var(--radius-s); padding: 14px 16px 14px 18px; overflow: hidden; display: grid; gap: 2px; }
.corner { position: absolute; left: 0; top: 0; width: 0; height: 0; border-style: solid; border-width: 22px 22px 0 0; border-color: var(--c) transparent transparent transparent; }
.log__head { display: flex; justify-content: space-between; align-items: center; }
.log__d { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.log__t { font-weight: 700; }
.log__b { font-size: .8125rem; color: var(--muted); }
.log__n { font-size: .9375rem; font-style: italic; color: var(--muted); margin-top: 4px; }

/* Eigene */
.form { gap: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg input { position: absolute; opacity: 0; }
.seg label { position: relative; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .875rem; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.own { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.own__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.own__confirm { display: inline-flex; gap: 12px; align-items: center; font-size: .875rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.switch input:checked + span { background: var(--brand-ink); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid var(--brand-ink); outline-offset: 2px; }

/* Konto */
.kv { margin: 0; display: grid; gap: 12px; }
.kv dt { font-size: .8125rem; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv .muted { font-weight: 400; font-size: .875rem; }
.roles { display: grid; gap: 8px; }
.role { text-align: left; background: var(--ground); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .9375rem; }
.role.is-chosen { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); }
.panel--demo { background: transparent; border: 1.5px dashed var(--line); }
.demo-actions { display: flex; flex-direction: column; gap: 4px; }

/* Anmeldung */
.login { min-height: 100%; }
.login__in { max-width: 440px; margin: 0 auto; padding: 48px 16px; display: grid; gap: 20px; }
.login__lead { font-size: 1.15rem; color: var(--muted); }
.login__buy { font-size: .9375rem; color: var(--muted); }
.login__buy a { color: var(--brand-ink); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; z-index: 10; animation: pop .25s ease-out; white-space: nowrap; }
@keyframes pop { from { transform: translate(-50%, 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } * { transition: none !important; } }
@media (max-width: 380px) { .card { padding: 20px 16px; } .rated { grid-template-columns: 1fr; } }

/* Einstellungen */
.panel__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; }
.day span { display: grid; place-items: center; aspect-ratio: 1; max-width: 48px; margin: 0 auto; border-radius: 50%; border: 1.5px solid var(--line); font-size: .8125rem; font-weight: 650; cursor: pointer; color: var(--muted); }
.day input:checked + span { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--paper); }
.day input:focus-visible + span { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.field--row { grid-template-columns: 1fr auto; align-items: center; }
input[type="time"] { border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px 12px; font-variant-numeric: tabular-nums; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; overflow-wrap: anywhere; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-ink); flex: none; }
.warn { color: var(--accent); }

/* Alle Pushes */
.filters { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
.filter { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 11px; white-space: nowrap; font-size: .875rem; font-weight: 600; cursor: pointer; }
.filter span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.filter.is-on span { color: inherit; opacity: .7; }
.group { display: grid; gap: 8px; }
.group__h { font-size: 1.05rem; font-weight: 750; display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.group__h span { font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pitem { background: var(--paper); border-radius: var(--radius-s); }
.pitem summary { list-style: none; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 13px 14px; cursor: pointer; }
.pitem summary::-webkit-details-marker { display: none; }
.pitem__mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.pitem.is-done .pitem__mark { background: var(--brand-ink); border-color: var(--brand-ink); }
.pitem.is-done .pitem__mark::after { content: ""; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.pitem__t { font-weight: 650; line-height: 1.3; }
.pitem.is-done .pitem__t { color: var(--muted); }
.pitem.is-off { opacity: .6; }
.pitem__own { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.pitem__own--today { color: var(--paper); background: var(--accent); }
.pitem[open] summary { border-bottom: 1px solid var(--line); }
.pitem__body { padding: 12px 14px 14px 46px; display: grid; gap: 8px; }
.pitem__why { font-size: .9375rem; color: var(--muted); }
.pitem__why strong { color: var(--ink); font-weight: 650; }
.btn--small { padding: 9px 18px; font-size: .9375rem; }
.tag-today { font-size: .875rem; font-weight: 700; color: var(--accent); }
@media (max-width: 380px) { .pitem__body { padding-left: 14px; } }

/* Eigener Bereich */
.chip--E { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.bars__own { border-top: 1px solid var(--line); padding-top: 10px; }
.group__own { display: block; font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.group__h:has(.group__own) { display: grid; grid-template-columns: 1fr auto; }
.group__h:has(.group__own) .group__own { grid-column: 1 / -1; }

/* Mehrere Challenges pro Tag */
.date__count { color: var(--accent); font-weight: 650; }
.more { display: grid; justify-items: center; gap: 10px; }

/* ===== Skillbook ===== */
.card__why { font-size: .9375rem; font-weight: 650; color: var(--accent); }
.panel--cta { background: var(--ink); color: var(--ground); }
.panel--cta .kicker, .panel--cta .sub { color: color-mix(in srgb, var(--ground) 70%, transparent); margin: 0; }
.panel--cta .btn { justify-self: start; }
.panel--row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel--row .linkbtn { flex: none; }
.back { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 650; cursor: pointer; justify-self: start; }
.meter { display: block; height: 8px; border-radius: 999px; background: var(--ground); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--brand-ink); }
.delta { font-size: .75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.delta.is-up { color: var(--z4); }
.delta.is-down { color: var(--accent); }

/* Meilensteine */
.ms { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ms__i { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ms__i:first-child { border-top: 0; }
.ms__i .check { flex: 1; }
.ms__i.is-done .check span { color: var(--muted); text-decoration: line-through; }
.ms__ziel { display: block; font-style: normal; font-size: .8125rem; color: var(--muted); text-decoration: none; }
.ms__d { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms__d.is-late { color: var(--accent); font-weight: 700; }
.x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.x:hover { color: var(--accent); }

/* Ziele */
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.goal { width: 100%; text-align: left; background: var(--paper); border: 0; border-radius: var(--radius-s); padding: 16px; display: grid; gap: 6px; cursor: pointer; box-shadow: var(--shadow); }
.goal__t { font-weight: 750; font-size: 1.1rem; line-height: 1.3; }
.goal__d, .goal__m { font-size: .8125rem; color: var(--muted); }
.goal__prog { display: grid; gap: 6px; }
.skilltags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skilltags li { background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; padding: 4px 11px; font-size: .8125rem; font-weight: 650; }
.skilltags b { font-weight: 800; margin-left: 2px; font-variant-numeric: tabular-nums; }
.inline-add { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.inline-add input { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; min-width: 0; font-size: .9375rem; }
.inline-add input[type="date"] { width: 9.5rem; }
@media (max-width: 420px) { .inline-add { grid-template-columns: 1fr auto; } .inline-add input[name="titel"] { grid-column: 1 / -1; } }
.skillpick__k { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.skillpick, .picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { position: relative; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.3; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick.is-on { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); }
.pick:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pick:focus-within { outline: 3px solid var(--brand-ink); outline-offset: 2px; }

/* Skills */
.bars--skills li { grid-template-columns: minmax(0, 11rem) 1fr 2.2ch 3.2ch; }
.skillcat summary { grid-template-columns: 1fr auto; }
.skilllist { list-style: none; margin: 0; padding: 12px 14px 14px; display: grid; gap: 14px; }
.skilllist li { display: grid; gap: 4px; }
.skilllist__h { display: flex; justify-content: space-between; gap: 10px; font-weight: 650; font-size: .9375rem; }
.skilllist__h b { font-variant-numeric: tabular-nums; }
.segtabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 999px; padding: 4px; gap: 4px; }
.segtab { border: 0; background: none; border-radius: 999px; padding: 8px 10px; font-weight: 650; font-size: .9375rem; cursor: pointer; color: var(--muted); }
.segtab.is-on { background: var(--ink); color: var(--ground); }

/* Abläufe */
.flow__top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--ground); border-bottom: 1px solid var(--line); }
.flow__in { max-width: var(--w); margin: 0 auto; padding-inline: 16px; display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.flow__steps { list-style: none; margin: 0 auto; padding: 0 16px 10px; max-width: var(--w); display: flex; gap: 6px; }
.flow__steps li { flex: 1; font-size: .75rem; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; line-height: 1.25; }
.flow__steps li.is-on { color: var(--ink); border-color: var(--accent); }
.flow__steps li.is-done { border-color: var(--brand-ink); }
.flow__main { padding-bottom: 60px; }
.flow__actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--ground) 70%, transparent); padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); }
.how { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.sliders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sliders label { font-size: .9375rem; line-height: 1.4; }
.slider { display: grid; grid-template-columns: 1fr 3.5rem; align-items: center; gap: 10px; margin-top: 4px; }
.slider input { width: 100%; accent-color: var(--brand-ink); }
.slider output { font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.scales { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: q; }
.scales p { font-weight: 600; font-size: .9375rem; line-height: 1.4; margin-bottom: 8px; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale__b { border: 1.5px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 0; font-weight: 700; font-size: .875rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.scale__b.is-on { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--paper); }
.yn { display: grid; gap: 8px; }
.yn p { font-size: .9375rem; line-height: 1.4; }
.yn__b { display: flex; gap: 6px; }
.seg__b { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 20px; font-weight: 650; cursor: pointer; }
.seg__b.is-on { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); }
.rem { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rem__t { font-weight: 700; }
.rem .panel__row { align-items: flex-start; }
.rem .switch { margin-top: 2px; }
.checks--sub { padding-left: 2px; }
.ci__t { font-size: .8125rem; font-weight: 700; margin-top: 6px; }
.ci__n { font-size: .9375rem; white-space: pre-line; }

/* ===== Heute: Tageseintrag, Tagesleiste, kompakte Challenge ===== */
.tb__h { font-size: 1.35rem; }
button.colorbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.tb__colors .colorbtn__sw { max-width: 52px; }
.tb__sum { display: flex; gap: 12px; align-items: center; }
.tb__sum .kicker { margin: 0; }
.tbsq { display: block; width: 26px; height: 26px; border-radius: 6px; background: var(--c); flex: none; }
.tbsq.is-empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tb__more select { margin-top: 8px; font-size: .9375rem; padding: 8px 10px; }
.tb__leit summary { font-size: .9375rem; }
.tb__leit .field { margin-top: 8px; }
.pick:disabled { opacity: .45; cursor: not-allowed; }

.strip { display: grid; gap: 8px; }
.strip__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.strip__d { display: grid; justify-items: center; gap: 3px; }
.strip__d .tbsq { width: 100%; height: auto; aspect-ratio: 1; max-width: 26px; border-radius: 5px; }
.strip__d.is-today .tbsq { outline: 2px solid var(--ink); outline-offset: 2px; }
.strip__c { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.strip__c.is-on { background: var(--accent); }
.strip__t { font-size: .6875rem; color: var(--muted); }
.strip__leg { display: flex; align-items: center; gap: 6px; font-size: .75rem; }

.chall { gap: 8px; }
.chall__k { margin: 0; }
.chall__sum { list-style: none; cursor: pointer; display: grid; gap: 6px; }
.chall__sum::-webkit-details-marker { display: none; }
.chall__t { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.3; }
.chall__more { font-size: .875rem; font-weight: 650; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.chall__body { display: grid; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.chall__body .card__task { font-size: 1.05rem; }
.chall--done .chall__t { color: var(--muted); }
.chall__rated { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; }
.chall__rated .dot { margin-left: 6px; }
.chall .done-badge { order: -1; }
.chall[open] .m-auf, .chall:not([open]) .m-zu { display: none; }
.strip__b { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 3px; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.strip__d.is-sel .tbsq { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb--nachtrag { box-shadow: inset 0 0 0 2px var(--accent); }
.tb--nachtrag .kicker { color: var(--accent); margin: 0; }
.inline-add--tb { grid-template-columns: 1fr auto; align-items: end; }
.inline-add--tb input[type="date"] { width: 100%; }
.tb { scroll-margin-top: 72px; }
.chall__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chall__streak { font-weight: 800; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.chall__streak span { font-weight: 500; color: var(--muted); font-size: .8125rem; }

/* Pakete */
.pitem__own--pak { color: var(--accent); background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.paks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pak { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.pak.is-on { border-color: var(--brand-ink); background: var(--brand-soft); }
.pak__st { font-size: .75rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pak.is-on .pak__st { color: var(--brand-ink); }
.pak .btn { justify-self: start; }
.pak--soon { border-style: dashed; }
.filters { display: flex; flex-wrap: wrap; }

/* Neutrale Palette: Feinschliff */
.panel--cta .btn { background: var(--paper); color: var(--ink); }
.panel--cta .btn:hover { background: var(--brand-soft); }
.switch input:checked + span { background: var(--accent); }
.day input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.scale__b.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pitem.is-done .pitem__mark { background: var(--ink); border-color: var(--ink); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* Logo */
.logo { display: block; height: 22px; width: auto; color: var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand--big .logo { height: 40px; }

/* Aktive Pakete rechts im Kopf */
.paks-top { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pill { background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }

/* Kategorie-Überschriften in der Challenge-Liste: größer, mit Linie, bleiben beim Scrollen oben stehen */
.group { gap: 10px; margin-top: 14px; }
.group__h {
  position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 3;
  background: var(--ground); margin: 0 -16px; padding: 12px 16px 10px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
}
.group__h span { font-size: .875rem; font-weight: 700; color: var(--muted); }

/* Kalender */
.cal__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal__nav { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cal__year { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.cal__m { align-content: start; }
@media (min-width: 520px) { .cal__year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cal__m { display: grid; gap: 6px; }
.cal__mt { justify-self: start; background: none; border: 0; padding: 0; font-weight: 750; font-size: .9375rem; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal__grid li { min-width: 0; }
.cal__d { position: relative; display: block; width: 100%; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font: inherit; color: var(--ink); }
.cal__d.is-set { background: var(--c); box-shadow: none; }
.cal__d:disabled { cursor: default; opacity: .35; }
.cal__d.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal__d.has-ch::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal__d.is-set.has-ch::after { background: var(--paper); }
.cal__wd { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; font-size: .75rem; color: var(--muted); text-align: center; font-weight: 600; }
.cal__grid--big { gap: 6px; }
.cal__grid--big .cal__d { border-radius: 8px; font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.cal__grid--big .cal__d.is-set { color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / .25); }
.cal__grid--big .cal__d.has-ch::after { width: 6px; height: 6px; right: 5px; bottom: 5px; }
/* kleines Datum in der Jahresansicht */
.cal__n { position: absolute; left: 2px; top: 1px; font-size: 7.5px; line-height: 1; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cal__d.is-set .cal__n { color: rgb(255 255 255 / .9); }
@media (min-width: 520px) { .cal__n { font-size: 8.5px; } }

/* Punkt für erledigte Challenge: schwarz im hellen, weiß im dunklen Modus, immer in der Kachel */
.strip__c.is-on, .cal__d.has-ch::after, .cal__d.is-set.has-ch::after { background: var(--ink); }
.strip__d .tbsq { position: relative; }
.tbsq.has-ch::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* Eigene Kästchen: offen hellgrau umrandet, erledigt gefüllt mit Haken */
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0;
  width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--muted) 55%, transparent); background: var(--paper);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.check input[type="checkbox"]:hover { border-color: var(--muted); }
.check input[type="checkbox"]::after { content: ""; width: 9px; height: 5px; border: solid transparent; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after { border-color: var(--paper); }
.check input[type="checkbox"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Challenge-Karte: links Titel, rechts Kategorie mit Flammen und Bewertung darunter */
.chall__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.chall__l { display: grid; gap: 6px; justify-items: start; }
.chall__r { display: grid; gap: 6px; justify-items: end; text-align: right; }
.chall__r .flames { margin-right: 2px; }
.chall__rated { display: flex; }
.chall__z { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chall--done .done-badge { order: 0; }
.chall__k .date__count { text-transform: none; letter-spacing: 0; font-size: .8125rem; }

/* Abo-Auswahl im Konto */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.plan { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--paper); }
.plan b { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan span:not(.small) { font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.plan--best { border-color: var(--ink); }

/* App installieren (PWA) und Offline-Hinweis */
.offline { margin: 0; padding: 8px 16px; text-align: center; font-size: .875rem; font-weight: 600; background: var(--ink); color: var(--ground); }
.inst .btn { margin-top: 4px; }
.segtabs--inset { background: var(--ground); margin: 4px 0 12px; }
.steps-mini { margin: 0 0 8px; padding-left: 1.25rem; display: grid; gap: 8px; }
.steps-mini li { padding-left: 4px; line-height: 1.45; }
.ico-inline { width: 1.1em; height: 1.1em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Challenges: Kategorie, Sortierung, Mehr anzeigen */
.sortsel { display: flex; width: fit-content; justify-content: flex-start; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .875rem; font-weight: 600; color: var(--muted); }
.sortsel select { width: auto; max-width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 28px 6px 10px; }
.sortinfo { margin: 6px 0 0; }
.more { display: block; width: 100%; margin: 8px 0 0; padding: 11px 12px; border: 1.5px dashed var(--line); border-radius: 12px; background: none; color: var(--ink); font: inherit; font-weight: 650; font-size: .9375rem; cursor: pointer; }
.more:hover { border-color: var(--ink); }
.ctrl { display: grid; gap: 0; }
.more-row { display: flex; gap: 8px; margin-top: 8px; }
.more-row .more { margin: 0; flex: 1; }
.more span { color: var(--muted); font-weight: 500; }
.more--less { flex: 0 0 auto !important; width: auto; border-style: solid; }

/* Erreichte Ziele (Archiv) */
.archiv { margin-top: 8px; }
.archiv > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 6px 0; }
.archiv > summary::-webkit-details-marker { display: none; }
.archiv > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.archiv[open] > summary::after { transform: rotate(-135deg); }
.archiv > summary .h2 { margin: 0; }
.archiv__n { font-size: .8125rem; font-weight: 700; color: var(--muted); background: var(--line); border-radius: 999px; padding: 2px 9px; }
.archiv .goals { margin-top: 10px; }
.goal--done .goal__t { color: var(--muted); }
.goal--done .goal__t::before { content: "✓ "; color: var(--ink); }
.card--done .kicker { color: var(--ink); }
.zb__t { margin-bottom: 0; } .zb__d { margin: -8px 0 4px; }

/* Check-in/out pausiert, Meilensteine in der Zwischenbilanz */
.pausebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; }
.pausebar > span:first-child { flex: 1 1 100%; }
.pausebar__ask { font-weight: 500; color: var(--muted); }
.zb__ms > summary { cursor: pointer; list-style: none; }
.zb__ms > summary::-webkit-details-marker { display: none; }
.zb__ms > summary u { text-underline-offset: 2px; }
.zb__ms[open] > summary u { text-decoration: none; }
.zb__ms .ms { margin: 10px 0 6px; }

/* Check-in/out auf dem Reiter Skills */
.h3 { margin: 6px 0 0; font-size: 1rem; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.ciinfo { display: grid; gap: 10px; }
.ciinfo .sub, .ciinfo p { margin: 0; }
.ciinfo__n { font-size: .9375rem; }
.ciinfo .btn { justify-self: start; }
.log--ci details > summary { cursor: pointer; list-style: none; }
.log--ci details > summary::-webkit-details-marker { display: none; }
.log--ci details > summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; }
.log--ci details[open] > summary::after { transform: rotate(-135deg); }
.log--ci .log__head .small { margin-left: auto; }
.log--ci details[open] > summary { margin-bottom: 6px; }
.h2--abschnitt { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.bars--ci { gap: 6px; margin: 4px 0 8px; }
.bars--ci li { font-size: .8125rem; }

/* Journal nach Monaten */
.tb__jahr { margin: 14px 0 0; }
.tbmonat { background: none; }
.tbmonat > summary { display: grid; grid-template-columns: 1fr minmax(64px, 30%) auto; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.tbmonat > summary::-webkit-details-marker { display: none; }
.tbmonat > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.tbmonat[open] > summary::after { transform: rotate(-135deg); }
.tbmonat__t { font-weight: 750; font-size: 1.0625rem; }
.tbmonat__n { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); }
.stack--mini { height: 10px; }
.tbmonat > .log { margin-top: 12px; }
.cal__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
/* Check-in/out-Verlauf: mehr Luft zwischen den Bereichen */
.log--ci .ci__t { margin-top: 18px; margin-bottom: 4px; }
.log--ci details[open] > summary + .ci__t { margin-top: 10px; }
.log--ci details[open] > summary { margin-bottom: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.log--ci .bars--ci { margin: 6px 0 0; gap: 8px; }
.log--ci .ci__n { margin: 0; line-height: 1.5; }
.log--ci .ci__sub { margin: 2px 0 0; }
.goal__skh { margin: 14px 0 6px; font-size: .8125rem; font-weight: 700; }
.panel--ask { border: 1.5px solid var(--ink); }
.ask__list { margin: 4px 0 10px; padding-left: 1.2rem; display: grid; gap: 4px; font-size: .9375rem; }

/* Neuer Meilenstein mit sichtbaren Beschriftungen */
.ms-add { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ms-add__h { margin: 0; font-size: .875rem; font-weight: 700; }
.ms-add__f { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.ms-add__f em { font-style: normal; font-weight: 500; }
.ms-add__f input { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 9px 10px; min-width: 0; font: inherit; font-size: .9375rem; font-weight: 500; }
.ms-add__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.ms-add__row input[type="date"] { width: 100%; }

/* Skill-Kategorien: aufklappbar erkennbar */
.skillcat summary { grid-template-columns: 1fr auto auto; align-items: center; }
.skillcat summary::after { content: ""; width: 8px; height: 8px; margin: 0 2px 0 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.skillcat[open] summary::after { transform: rotate(-135deg); }
.skillcat__n { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.skillcat__intro { margin-top: -8px; }
.pitem__own--fokus { color: #fff; background: var(--accent); }

/* Skills im Fokus (aus den Zielen) */
.skilltags--fokus .delta { font-size: .75rem; margin-left: 2px; }
.skilltags .pitem__own--fokus { margin-left: 6px; }

/* ================= Desktop-Layout ================= */
.heute-grid, .heute-col { display: grid; gap: 18px; align-content: start; }
.heute-grid > .heute-col { min-width: 0; }

@media (min-width: 1024px) {
  :root { --side: 248px; }
  .shell { padding-left: var(--side); min-height: 100vh; }
  /* Seitenleiste: Logo oben, Reiter darunter */
  .top { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); border-bottom: 0; border-right: 1px solid var(--line); background: var(--paper); backdrop-filter: none; z-index: 6; }
  .top__in { max-width: none; margin: 0; padding: 28px 22px 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; min-height: 0; }
  .top .logo { height: 26px; }
  .tabs { left: 0; right: auto; top: 128px; bottom: auto; width: var(--side); background: transparent; border-top: 0; padding: 0; z-index: 7; }
  .tabs__in { max-width: none; margin: 0; padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
  .tab { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: .9375rem; text-align: left; }
  .tab:hover { background: var(--ground); color: var(--ink); }
  .tab.is-active { background: var(--ground); color: var(--ink); }
  /* Inhalt */
  .main { max-width: 760px; padding: 36px 40px 80px; }
  .main--breit { max-width: 1120px; }
  .main--breit .heute-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .demo, .pausebar, .offline { padding-inline: 40px; }
  .toast { left: calc(50% + var(--side) / 2); bottom: 28px; }
  .group__h { top: 0; margin: 0; padding-inline: 0; }
  .goals:not(.goals--done) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal__year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow__in, .flow__main { max-width: 760px; }
}
@media (min-width: 1440px) {
  :root { --side: 272px; }
  .main { padding-inline: 56px; }
}
.log__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .875rem; }

/* Begrüßung auf der Heute-Seite und Namensfelder */
.hello { display: grid; gap: 2px; }
.hello__t { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hello .date { margin: 0; }
.namefelder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .namefelder { grid-template-columns: 1fr; } }
.opt { font-style: normal; font-weight: 500; font-size: .8125rem; color: var(--muted); }
@media (min-width: 1024px) { .hello__t { font-size: 2rem; } }

/* Nächste Meilensteine auf der Heute-Seite */
.ms__i--heute { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 10px; row-gap: 2px; }
.ms__i--heute .ms__d { display: grid; justify-items: end; text-align: right; line-height: 1.3; padding-top: 2px; }
.ms__i--heute .ms__d small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.ms__i--heute .ms__ziel { grid-column: 1 / -1; margin: 0 0 0 30px; font-size: .8125rem; color: var(--muted); }
.ms__i--heute .ms__ziel .linkbtn { display: inline; padding: 0; font-size: inherit; color: var(--ink); font-weight: 600; text-align: left; }
.ms__ask { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 2px 30px; padding: 10px 12px; background: var(--ground); border-radius: 10px; font-size: .875rem; font-weight: 600; }
.ms__ask span { flex: 1 1 100%; }
.ms__link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Kalender und Journal unter den letzten 14 Tagen */
.strip__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.navbtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 650; cursor: pointer; box-shadow: var(--shadow); }
.navbtn:hover { background: var(--line); }
.navbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hilfe und Rechtliches */
.hilfe { display: grid; gap: 12px; }
.hilfe .btn { justify-self: start; }
.rlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; }
.hilfe__del { padding-top: 10px; border-top: 1px solid var(--line); }
.version { margin: 0; font-size: .75rem; color: var(--muted); }
.login .rlinks { justify-content: center; margin-top: 8px; color: var(--muted); }
.recht { min-height: 100vh; }
.recht__in { max-width: 680px; margin: 0 auto; padding: 24px 16px 80px; display: grid; gap: 16px; }
.recht__s h2 { font-size: 1rem; font-weight: 750; margin: 0 0 4px; }
.recht__s p { margin: 0; line-height: 1.55; }
.recht .rlinks { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.hinweis { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: .875rem; }
.todo { background: #fff3a8; color: #1b1b19; border-radius: 3px; padding: 0 2px; }
