[hidden]:not([hidden=until-found i]){display:none!important}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibmplexmono-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibmplexmono-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibmplexmono-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibmplexmono-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/nunito-cyrillic-4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/nunito-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/nunito-cyrillic-4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/nunito-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/nunito-cyrillic-4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/nunito-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/onest-cyrillic-6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/onest-latin-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/onest-cyrillic-6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/onest-latin-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/onest-cyrillic-6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/onest-latin-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/onest-cyrillic-6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/onest-latin-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Design C "Himmel": Babyblau, Weiß und Rosa. Handy zuerst: Kopf mit rundem Familienfoto, Tagesansicht als Zeitleiste,
   untere Leiste mit Plus-Knopf, Menü als seitliche Schublade. */
:root{
  --bg:#F6FAFF; --surface:#FFFFFF; --surface-2:#EEF5FD; --ink:#243350; --ink-2:#56627F; --line:#E1ECF8;
  --accent:#3570C2; --accent-ink:#FFFFFF; --accent-soft:#D9ECFC;
  --rose:#D6577F; --rose-ink:#B03A63; --rose-soft:#FBD6E1;
  --warn:#A9560B; --warn-soft:#FCEBD6; --bad:#C23B3B; --bad-soft:#FBE0E0; --good:#2A8556; --good-soft:#DDF3E6;
  --p1:#3570C2; --p2:#D6577F; --p3:#DD8A25; --p4:#2A9D8F; --p5:#7A5BD0; --p6:#56627F;
  --hero-a:#CDE6FA;
  --shadow:0 1px 2px rgba(36,51,80,.05),0 8px 24px rgba(60,100,160,.10);
  --f-display:'Nunito',system-ui,sans-serif;
  --f-body:'Onest',system-ui,sans-serif;
  --f-mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0E1424; --surface:#161E33; --surface-2:#1D2742; --ink:#E8EEFB; --ink-2:#9DABCB; --line:#27324F;
    --accent:#85A7F2; --accent-ink:#0B1530; --accent-soft:#1F2D52;
    --rose:#F08FAE; --rose-ink:#F08FAE; --rose-soft:#3A2030;
    --warn:#F0A55E; --warn-soft:#3A2814; --bad:#F08585; --bad-soft:#3C2020; --good:#6FCB95; --good-soft:#173324;
    --p1:#85A7F2; --p2:#F08FAE; --p3:#F2B35E; --p4:#5CC6B8; --p5:#AA94F0; --p6:#9DABCB;
    --hero-a:#1B2A4C;
    --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.3);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0E1424; --surface:#161E33; --surface-2:#1D2742; --ink:#E8EEFB; --ink-2:#9DABCB; --line:#27324F;
  --accent:#85A7F2; --accent-ink:#0B1530; --accent-soft:#1F2D52;
  --rose:#F08FAE; --rose-ink:#F08FAE; --rose-soft:#3A2030;
  --warn:#F0A55E; --warn-soft:#3A2814; --bad:#F08585; --bad-soft:#3C2020; --good:#6FCB95; --good-soft:#173324;
  --p1:#85A7F2; --p2:#F08FAE; --p3:#F2B35E; --p4:#5CC6B8; --p5:#AA94F0; --p6:#9DABCB;
  --hero-a:#1B2A4C;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.3);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--f-body)}
h1{font:900 1.55rem/1.15 var(--f-display);letter-spacing:-.01em;margin:0}
h2{font:800 1.4rem/1.2 var(--f-display);margin:0 0 6px;text-wrap:balance}
h3{font:800 1.02rem/1.3 var(--f-display);margin:0 0 8px}
h3.sec{font-size:1.1rem;margin:24px 0 10px}
.lede{margin:0 0 18px;color:var(--ink-2);max-width:66ch;font-size:.93rem}

/* Seitengerüst */
.app{max-width:600px;margin:0 auto;padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
.top{background:linear-gradient(180deg,var(--hero-a),var(--bg));padding:0 16px 4px}
.topbar{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--hero-a)}
.topbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:10px;background:linear-gradient(180deg,rgba(36,51,80,.07),transparent);pointer-events:none}
.iconbtn{width:46px;height:46px;min-height:46px;border-radius:50%;background:var(--surface);border:none;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);padding:0;color:var(--ink)}
.iconbtn .ic{width:22px;height:22px}
.hero{text-align:center;padding:2px 0 16px}

.hero h1{margin-top:8px}
.sub{margin:2px 0 0;color:var(--ink-2);font-size:.92rem;overflow-wrap:anywhere}
.seg{display:inline-flex;background:var(--surface);border-radius:99px;padding:3px;box-shadow:var(--shadow)}
.seg button{border:none;background:transparent;border-radius:99px;min-width:50px;min-height:40px;padding:0 14px;font-weight:800;font-size:.85rem;color:var(--ink-2)}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.panel{background:var(--surface);border-radius:28px;margin:0 12px;padding:20px 16px 28px;min-height:420px;box-shadow:var(--shadow);min-width:0}
@media (min-width:600px){.panel{margin:0 16px;padding:26px 24px 34px}}

/* Untere Leiste */
.dock{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:600px;z-index:10;background:var(--surface);border-radius:28px 28px 0 0;box-shadow:0 -6px 24px rgba(53,112,194,.14);display:flex;align-items:flex-start;padding:10px 8px calc(12px + env(safe-area-inset-bottom,0px))}
.bt{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:58px;border:none;background:transparent;color:var(--ink-2);font:600 .72rem var(--f-body);padding:0;border-radius:14px}
.bt span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bt .pi{width:56px;height:32px;border-radius:16px;display:flex;align-items:center;justify-content:center}
.bt .ic{width:24px;height:24px}
.bt[aria-current="page"]{color:var(--accent);font-weight:700}
.bt[aria-current="page"] .pi{background:var(--accent-soft)}
.bt.plus .pi{width:54px;height:54px;border-radius:50%;background:var(--accent);color:var(--accent-ink);margin-top:-26px;box-shadow:0 8px 20px rgba(53,112,194,.38)}
.bt.plus .ic{width:28px;height:28px}

/* Schublade und Anlegen-Blatt */
.drawer,.sheet{position:fixed;inset:0;z-index:40}
.drawer[hidden],.sheet[hidden]{display:none}
.scrim{position:absolute;inset:0;background:rgba(36,51,80,.38)}
.dpanel{position:absolute;left:0;top:0;bottom:0;width:min(88vw,340px);background:var(--surface);border-radius:0 28px 28px 0;overflow-y:auto;padding:16px 14px 28px;box-shadow:var(--shadow)}
.dhead{display:flex;align-items:center;justify-content:space-between;gap:10px;font:900 1.1rem var(--f-display)}
.who{display:flex;flex-direction:column;gap:4px;font-size:.8rem;color:var(--ink-2);margin:12px 0 4px}
.dfoot{margin:18px 4px 0}
.tag{display:inline-block;font:500 .68rem var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:2px 9px}
.grp{display:flex;flex-direction:column;gap:2px}
.grp+.grp{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
.gl{font:500 .68rem var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);padding:8px 12px 3px}
.tab{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:46px;border:none;background:transparent;border-radius:14px;padding:8px 12px;color:var(--ink);font-weight:500;text-align:left}
.tab:hover{background:var(--surface-2)}
.tab[aria-current="page"]{background:var(--accent-soft);color:var(--accent);font-weight:700}
.ic{width:20px;height:20px;flex:none}
.n{margin-left:auto;font:500 .68rem var(--f-mono);background:var(--rose-soft);color:var(--rose-ink);border-radius:99px;padding:1px 7px}
.sheet{display:flex;align-items:flex-end;justify-content:center}
.spanel{position:relative;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;background:var(--surface);border-radius:28px 28px 0 0;padding:20px 16px calc(22px + env(safe-area-inset-bottom,0px));box-shadow:var(--shadow)}
.sgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sbtn{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:84px;border:none;border-radius:22px;padding:14px;background:var(--accent-soft);color:var(--ink);font:800 1rem var(--f-display);text-align:left}
.sbtn:nth-child(even){background:var(--rose-soft)}

/* Heute: Zeitleiste */
.tl{list-style:none;margin:0 0 6px 8px;padding:0 0 0 20px;border-left:3px solid var(--rose-soft)}
.tl li{position:relative;margin-bottom:14px}
.tl li::before{content:'';position:absolute;left:-29px;top:2px;width:11px;height:11px;border-radius:50%;background:var(--rose);border:2px solid var(--surface)}
.tlt{display:block;font:800 .76rem var(--f-body);color:var(--rose-ink);margin-bottom:3px}
.tlc{border-radius:18px;padding:11px 14px;display:flex;flex-direction:column;gap:3px;font-weight:600;min-width:0}
.tlc.ev{background:var(--accent-soft)}
.tlc.rm{background:var(--rose-soft)}
.tlc.tk{background:var(--surface-2);border:1px solid var(--line)}
.tlc .meta{font-weight:400}
button.tlc{width:100%;text-align:left;border:0;cursor:pointer;min-height:44px;font-family:inherit;font-size:inherit}
button.tlc.tk{border:1px solid var(--line)}
button.tlc:active,.tap:active{transform:scale(.99)}
.tap{cursor:pointer;border-radius:12px}
.tap:hover{background:var(--surface-2)}
.dhd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.dhd h3{margin:0;font-size:1.2rem;overflow-wrap:anywhere}
.dkind{display:inline-block;margin-bottom:6px}
.dact{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

/* Notfallkarte und Listen */
.sos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sosb{display:flex;flex-direction:column;gap:2px;border-radius:18px;background:var(--bad-soft);color:var(--bad);text-decoration:none;padding:12px 10px;min-height:80px}
.sosb b{font:900 1.35rem var(--f-display);font-variant-numeric:tabular-nums}
.sosb span{font-size:.72rem;line-height:1.25;color:var(--ink)}
.kv{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.kv:last-child{border-bottom:none}
.kv span{color:var(--ink-2)}
.kv b{text-align:right;overflow-wrap:anywhere;font-weight:600}
.rowbtn{flex:1;min-width:140px;text-align:left;border:none;background:transparent;padding:4px 0;display:flex;flex-direction:column;gap:2px;border-radius:10px}
.rowbtn[aria-pressed="true"] .t{color:var(--accent)}
.chk{display:flex;align-items:center;gap:8px;font-size:.9rem;min-height:44px}
.lnk .ic{width:16px;height:16px}
/* Bedienelemente */
button,input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:9px 12px;min-width:0;min-height:44px}
button{cursor:pointer}
input,select,textarea{width:100%;font-size:16px}
input[type=date],input[type=time],input[type=number],input[type=tel],input[type=search],select{-webkit-appearance:none;appearance:none;display:block;max-width:100%;min-width:0;line-height:1.3}
select{padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2356627F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
input::-webkit-date-and-time-value{text-align:left;min-height:1.3em}
.fset{border:1px solid var(--line);border-radius:14px;padding:4px 12px 6px;margin:0;min-width:0;grid-column:1/-1}
.fset legend{font-size:.76rem;color:var(--ink-2);padding:0 4px}
.alerts{margin:0 12px}
.alerts:empty{display:none}
.alert{display:flex;align-items:center;gap:10px;background:var(--rose-soft);border-radius:18px;padding:8px 8px 8px 14px;margin-bottom:8px;font-size:.92rem}
.alert .meta{display:block}
.x.ed:hover{color:var(--accent)}
.item:has(.x.ed){flex-wrap:nowrap}
.item:has(.x.ed) .grow{min-width:0}
input[type=checkbox]{width:22px;height:22px;min-height:0;padding:0;accent-color:var(--accent);flex:none;margin:0}
input:disabled,select:disabled,button:disabled{opacity:.55;cursor:not-allowed}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:700}
.ghost{background:transparent;padding:5px 12px;font-size:.86rem;min-height:40px}
.ghost:hover{background:var(--surface-2)}
.x{background:transparent;border:none;color:var(--ink-2);font-size:1.3rem;line-height:1;padding:4px 8px;min-width:44px;min-height:44px}
.x:hover{color:var(--bad)}
.f{display:flex;flex-direction:column;gap:4px;font-size:.76rem;color:var(--ink-2);min-width:0}
.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:10px;align-items:end}
.fgrid>*{min-width:0}
.addbox{margin-top:24px;padding-top:16px;border-top:1px dashed var(--line)}
.list{list-style:none;margin:0;padding:0}
.item{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);min-width:0;flex-wrap:wrap}
.item:last-child{border-bottom:none}
.grow{flex:1;min-width:140px}
.t{overflow-wrap:anywhere}
.done .t{text-decoration:line-through;color:var(--ink-2)}
.meta{font:400 .75rem var(--f-mono);color:var(--ink-2);display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center}
.d{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.tagdd{position:relative}
.tagdd>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer;font-size:16px;line-height:1.3}
.tagdd>summary::-webkit-details-marker{display:none}
.tagdd>summary::after{content:"";flex:none;width:12px;height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2356627F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center}
.tagdd[open]>summary{border-color:var(--accent)}
.tagdd .tdv{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tagdd .tdv.ph{color:var(--ink-2)}
.tagdd .tdl{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;max-height:240px;overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:4px 12px}
.tagdd .tdl .chk{min-height:44px}
.tagdd .tdl .chk input:disabled+span{opacity:.55}
.pill{display:inline-block;font:500 .7rem var(--f-mono);padding:2px 9px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);white-space:nowrap}
.pill.warn{background:var(--warn-soft);color:var(--warn);border-color:transparent}
.pill.bad{background:var(--bad-soft);color:var(--bad);border-color:transparent}
.pill.good{background:var(--good-soft);color:var(--good);border-color:transparent}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.chip{border-radius:99px;padding:6px 14px;font-size:.88rem;min-height:40px}
.chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:600}
.note{border-radius:14px;background:var(--warn-soft);padding:10px 14px;font-size:.85rem;margin:0 0 16px;max-width:72ch}
.card{background:var(--surface-2);border:1px solid var(--line);border-radius:18px;padding:16px;min-width:0}
.card h3{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tiles{display:grid;grid-template-columns:1fr;gap:12px}
.split{display:grid;grid-template-columns:1fr;gap:24px}
.empty{color:var(--ink-2);font-size:.88rem;margin:6px 0}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.searchbox{position:relative;margin-bottom:14px;max-width:420px}
.searchbox .ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--ink-2);width:18px;height:18px;pointer-events:none}
.searchbox input{padding-left:38px;border-radius:99px}

/* Kalender */
.calhead{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.calhead strong{flex:1;font:800 1.05rem var(--f-display);text-transform:capitalize}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.dow{font:500 .68rem var(--f-mono);text-align:center;color:var(--ink-2);padding:4px 0}
.day{min-height:54px;padding:5px 6px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-align:left;font-size:.82rem;border-radius:12px;background:var(--surface-2);border-color:transparent}
.day.today{box-shadow:inset 0 0 0 2px var(--rose);font-weight:700}
.day.sel{background:var(--accent-soft);border-color:var(--accent)}
.dots{display:flex;flex-wrap:wrap;gap:3px}
.dots .d.pl,.legend .d.pl{border-radius:2px;background:transparent!important;border:2px solid currentColor;width:8px;height:8px;box-sizing:border-box}
.plmark{display:inline-block;width:10px;height:10px;border-radius:3px;border:2px solid var(--ink-2);flex:none;box-sizing:border-box}
.item.plitem{border-left:3px dashed var(--rose);padding-left:10px}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:.78rem;color:var(--ink-2)}
.legend span{display:inline-flex;align-items:center;gap:5px}

/* Balken, Zahlen, Tabellen */
.bar{height:9px;background:var(--surface-2);border-radius:99px;overflow:hidden;border:1px solid var(--line)}
.bar i{display:block;height:100%;background:var(--accent);transition:width .3s}
.bar.warn i{background:var(--warn)}
.bar.bad i{background:var(--bad)}
.catrow{padding:9px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.cr-top{display:flex;justify-content:space-between;gap:10px;font-size:.88rem;flex-wrap:wrap}
.stats{display:flex;flex-wrap:wrap;gap:10px 32px;margin-bottom:18px}
.stat{display:flex;flex-direction:column}
.stat span{font:500 .7rem var(--f-mono);text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2)}
.stat b{font:900 1.5rem var(--f-display);font-variant-numeric:tabular-nums}
.scroll{overflow-x:auto;max-width:100%}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:.86rem}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
th{font:500 .72rem var(--f-mono);text-transform:uppercase;letter-spacing:.05em;color:var(--ink-2)}
td.num,th.num{text-align:center;font-family:var(--f-mono)}
tr.sum td{font-weight:700;background:var(--surface-2)}
.cols3{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin-bottom:24px}
.cols3 ul,.block ul,.block ol{margin:6px 0 0;padding-left:1.1em}
.cols3 li,.block li{margin-bottom:5px}
.block{margin-bottom:26px;max-width:78ch}
pre{font:400 .78rem/1.6 var(--f-mono);background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px;overflow-x:auto;margin:8px 0 0}
svg{max-width:100%;height:auto}
svg.ic{max-width:none}
.mapbox{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface-2)}
.map-bg{fill:var(--surface-2)}
.street{stroke:var(--line);stroke-width:6;fill:none}
.zone{fill:var(--accent-soft);stroke:var(--accent);stroke-width:1.5;stroke-dasharray:5 4}
.zl{fill:var(--ink);font:700 12px var(--f-body);text-anchor:middle}
.pl{fill:var(--accent-ink);font:700 9.5px var(--f-body)}
.pdot{stroke:var(--surface);stroke-width:2}
.pl2{fill:var(--ink-2);font:500 10px var(--f-mono);text-anchor:middle}
.treebox{overflow-x:auto;border:1px solid var(--line);border-radius:18px;background:var(--surface-2);padding:8px}
.treebox svg{min-width:560px;display:block}
.edge{stroke:var(--ink-2);stroke-width:1.5;fill:none}
.node rect{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.node{cursor:pointer}
.node.sel rect{stroke:var(--accent);stroke-width:2.5}
.node .n1{fill:var(--ink);font:700 13px var(--f-body);text-anchor:middle}
.node .n2{fill:var(--ink-2);font:400 10px var(--f-mono);text-anchor:middle}
.tlabel{fill:var(--ink-2);font:400 10px var(--f-mono);text-anchor:middle}
.sugcard{border:1px solid var(--line);border-radius:18px;padding:14px 16px;background:var(--surface-2);display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.sugcard .why{font:400 .78rem var(--f-mono);color:var(--ink-2)}
.sugcard .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}

/* Kinderbereich */
.kidgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-bottom:8px}
.babyhero{border-radius:22px;padding:16px 18px;margin:0 0 16px;background:linear-gradient(135deg,var(--accent-soft),var(--rose-soft));display:flex;flex-direction:column;gap:4px}
.babyhero b{font:900 1.1rem var(--f-display)}
.babyhero span{font-size:.9rem;color:var(--ink-2)}
.babygrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.babycard{border:1px solid var(--line);border-radius:20px;padding:14px 16px;background:var(--surface-2);margin-bottom:12px;min-width:0}
.babycard h3{margin-bottom:4px}
.uplan{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.uplan li{display:flex;align-items:center;gap:10px;font-size:.9rem}
.upill{font:700 .75rem var(--f-mono);min-width:44px;text-align:center;padding:4px 8px;border-radius:99px;background:var(--rose-soft);color:var(--rose-ink)}
.tipl{margin:6px 0 0;padding-left:1.1em;font-size:.9rem}
.tipl li{margin-bottom:5px}
.song{border:1px solid var(--line);border-radius:18px;padding:14px;background:var(--surface-2);display:flex;flex-direction:column;gap:8px;min-width:0}
.song h3{margin:0}
.song .tags{display:flex;gap:6px;flex-wrap:wrap}
.song .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
a.lnk{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:99px;border:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:.82rem;font-weight:600;background:var(--surface)}
a.lnk:hover{background:var(--accent-soft);border-color:var(--accent)}
.nrow select{width:auto;flex:none}
.tip{font-size:.8rem;color:var(--ink-2);margin:6px 0 0;max-width:70ch}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(108px + env(safe-area-inset-bottom,0px));max-width:min(92vw,440px);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:14px;font-size:.88rem;z-index:20;box-shadow:0 6px 24px rgba(0,0,0,.25)}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* Budget-Balken: Ausgaben im Budget, Budget per Ziehen anpassbar */
.fb{margin:4px 0 16px}
.fb-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.split>*{min-width:0}
.fb-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;margin-bottom:6px;min-width:0}
.fb-name{font-weight:700;overflow-wrap:anywhere}
.fb-val{font:500 .76rem var(--f-mono);color:var(--ink-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.fb-val b{color:var(--ink);font-weight:600}
.fb-track{position:relative;height:30px;border-radius:11px;background:var(--surface-2);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.fb-track.ed{cursor:ew-resize}
.fb-budget{position:absolute;left:0;top:0;bottom:0;border-radius:11px;background:var(--accent-soft);transform-origin:left center}
.fb-spent{position:absolute;left:0;top:6px;bottom:6px;border-radius:7px;background:var(--accent);transform-origin:left center}
.fb-spent.warn{background:var(--warn)}
.fb-spent.bad{background:var(--bad)}
.fb-knob{position:absolute;top:50%;width:24px;height:40px;margin-left:-12px;transform:translateY(-50%);border-radius:12px;background:var(--surface);border:2px solid var(--accent);box-shadow:var(--shadow);touch-action:none;cursor:grab;transition:transform .15s}
.fb-knob::after{content:"";position:absolute;left:50%;top:12px;bottom:12px;width:2px;margin-left:-1px;border-radius:1px;background:var(--accent);box-shadow:-4px 0 0 var(--accent),4px 0 0 var(--accent);opacity:.7}
.fb-knob.drag{cursor:grabbing;transform:translateY(-50%) scale(1.12)}
.fb-knob.drag::before{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--ink);color:var(--bg);font:600 .75rem var(--f-mono);padding:4px 8px;border-radius:8px}
.fb-sub{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:.78rem;color:var(--ink-2)}
.fb-leg{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.76rem;color:var(--ink-2);margin-top:14px}
.fb-leg i{display:inline-block;width:14px;height:9px;border-radius:3px;margin-right:5px}
.fb-tbl{min-width:0;font-size:.84rem}
.fb-tbl th,.fb-tbl td{padding:8px 4px}
.fb-tbl th{font-size:.64rem;letter-spacing:.03em}
.fb-tbl .r{text-align:right;font-family:var(--f-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.fb-tbl .neg{color:var(--bad)}
.fb-tbl td{transition:background .3s}
.fb-tbl td.hot{background:var(--accent-soft)}
@keyframes fbgrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes fbfade{from{opacity:0}to{opacity:1}}
.panel[data-enter="1"] .fb-budget{animation:fbgrow .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 60ms)}
.panel[data-enter="1"] .fb-spent{animation:fbgrow .9s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 60ms + 200ms)}
.panel[data-enter="1"] .fb-knob,.panel[data-enter="1"] .fb-sub{animation:fbfade .4s ease-out both;animation-delay:calc(var(--i) * 60ms + 700ms)}
@media (prefers-reduced-motion:reduce){.panel[data-enter="1"] .fb-budget,.panel[data-enter="1"] .fb-spent,.panel[data-enter="1"] .fb-knob,.panel[data-enter="1"] .fb-sub{animation:none}}
/* Baby-Tagebuch */
.bt-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
.bt-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border-radius:18px;padding:11px 10px;min-height:88px;border:1px solid var(--line);background:var(--surface-2)}
.bt-tile[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
.bt-tile span{font:500 .6rem var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.bt-tile b{font:900 1.2rem/1.15 var(--f-display);font-variant-numeric:tabular-nums}
.bt-tile small{font-size:.7rem;line-height:1.3;color:var(--ink-2);overflow-wrap:anywhere}
.bt-card{border:1px solid var(--line);border-radius:20px;background:var(--surface-2);padding:14px 10px 8px;margin-bottom:12px;min-width:0}
.bchart{display:block;width:100%;height:auto}
.bchart text{font:500 10px var(--f-mono);fill:var(--ink-2)}
.bchart .mid{text-anchor:middle}
.bchart .end{text-anchor:end}
.bchart .now{fill:var(--accent);font-weight:700}
.bchart .bt-val{fill:var(--ink)}
.bt-bar{fill:var(--accent);opacity:.32}
.bt-now{fill:var(--accent)}
.bt-zero{fill:var(--line)}
.bt-avg{stroke:var(--rose);stroke-width:1.5;stroke-dasharray:4 4}
.bt-grid{stroke:var(--line);stroke-width:1}
.bt-track{fill:var(--surface)}
.bt-night{fill:var(--accent-soft)}
.bt-sleep{fill:var(--p5)}
.bt-sleep.on{fill:var(--rose)}
.bchart .bt-tot{fill:var(--ink);font-weight:700}
.bt-band{fill:var(--accent-soft)}
.bt-p{stroke:var(--accent);stroke-width:1;opacity:.4;fill:none}
.bt-med{stroke:var(--accent);stroke-width:1.5;stroke-dasharray:5 4;fill:none;opacity:.75}
.bt-line{stroke:var(--rose);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.bt-dot{fill:var(--surface);stroke:var(--rose);stroke-width:2.5}
.bt-dot.last{fill:var(--rose)}
.bchart .bt-vl{fill:var(--rose-ink);font-weight:700;font-size:11px}
.bt-fig{margin:0 0 12px;border:1px solid var(--line);border-radius:20px;background:var(--surface-2);padding:12px 8px 6px;min-width:0}
.bt-fig figcaption{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:baseline;padding:0 6px 4px}
.bt-fig figcaption b{font:800 1rem var(--f-display)}
.bt-fig figcaption span{font:500 .75rem var(--f-mono);color:var(--ink-2)}
.bt-leg{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.74rem;color:var(--ink-2);padding:4px 6px 4px}
.bt-leg i{display:inline-block;width:14px;height:8px;border-radius:3px;margin-right:5px}
.bt-live{display:flex;align-items:center;gap:12px;border-radius:20px;padding:12px 14px;background:linear-gradient(135deg,var(--accent-soft),var(--rose-soft));margin-bottom:12px}
.bt-live .grow{min-width:0}
.bt-live b{display:block;font:800 1rem var(--f-display)}
.pulse{width:12px;height:12px;border-radius:50%;background:var(--rose);flex:none;animation:btp 1.6s ease-in-out infinite}
@keyframes btp{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.75)}}
.bt-quick{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
@media (prefers-reduced-motion:reduce){.pulse{animation:none}}
/* Live-Version: Monogramm statt Foto, Anmeldung, Offline-Hinweis, iPhone */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{min-height:100dvh;-webkit-font-smoothing:antialiased}
.photo{width:112px;height:112px;border-radius:50%;border:5px solid var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;margin:0 auto;background:var(--accent-soft);color:var(--accent);font:900 3.4rem/1 var(--f-display);-webkit-user-select:none;user-select:none}
body.locked .app,body.locked .dock,body.locked .drawer,body.locked .sheet{display:none!important}
.gate{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px));background:var(--hero-a)}
.gatecard{width:100%;max-width:380px;background:var(--surface);border-radius:28px;box-shadow:var(--shadow);padding:28px 22px;display:flex;flex-direction:column;gap:14px;text-align:center}
.gatecard h1{margin:4px 0 0}
.gatecard .sub{margin:0}
.gform{display:flex;flex-direction:column;gap:12px}
.gform[hidden],.gform p[hidden],.gform button[hidden]{display:none!important}
.gfields{display:flex;flex-direction:column;gap:12px;text-align:left}
.gerr{min-height:1.2em;margin:0;color:var(--bad);font-size:.88rem}
.ghint{margin:0;font-size:.85rem;color:var(--ink-2)}
.gsteps{text-align:left;font-size:.85rem;color:var(--ink-2)}
.gsteps summary{cursor:pointer;min-height:32px}
.gsteps ol{margin:6px 0 0;padding-left:20px}
.vh{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.gatecard .seg{align-self:center}
.offbar{background:var(--warn-soft);color:var(--warn);text-align:center;font-weight:600;font-size:.85rem;padding:calc(6px + env(safe-area-inset-top,0px)) 12px 6px}
.whoami{margin:12px 4px 4px;font-size:.85rem;color:var(--ink-2)}
body.offline .dock .plus{opacity:.4}
button:disabled,select:disabled,input:disabled{cursor:not-allowed}
/* iPhone: Statusleiste, Ränder, Scrollsperre, Tastatur */
.topbar{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}
.dpanel{padding-top:calc(16px + env(safe-area-inset-top,0px));padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.spanel{overscroll-behavior:contain;max-height:calc(var(--vvh,100dvh) - 20px - env(safe-area-inset-top,0px));-webkit-overflow-scrolling:touch}
.drawer{height:100dvh;bottom:auto}
.sheet{top:var(--vvt,0px);bottom:auto;height:var(--vvh,100dvh)}
body.scroll-lock{position:fixed;left:0;right:0;width:100%;overflow:hidden}
body.kb-open .dock{display:none}
#alerts,#ihint{overscroll-behavior:contain}
#ihint{margin:0 12px 8px;display:flex;align-items:center;gap:10px;background:var(--accent-soft);border-radius:18px;padding:8px 8px 8px 14px;font-size:.92rem}
#ihint[hidden]{display:none}
#update-bar{position:fixed;left:12px;right:12px;top:calc(12px + env(safe-area-inset-top,0px));z-index:90;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--accent);box-shadow:var(--shadow);max-width:560px;margin:0 auto}
/* Bedienelemente nicht markierbar, Text und Eingaben schon */
button,.dock,.topbar,.tab,.chip,.seg,.iconbtn,.sosb,.bt-tile,.day,.scrim{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,.t,.meta,p,li{-webkit-user-select:text;user-select:text}
button,.tab,.chip,.item.tap,.day{-webkit-tap-highlight-color:transparent}
