:root{
  --bg:#f7f6fc;--card:#ffffff;--text:#242331;--muted:#77758a;--line:#e6e3f1;
  --accent:#7567d8;--accent-2:#9588ee;--accent-soft:#eeebff;--green:#61a98b;--red:#d16772;--orange:#d89a58;
  --papa:#6c86d9;--papa-soft:#eaf0ff;--mama:#d8799b;--mama-soft:#fdeaf1;
  --mika:#6686df;--leni:#d58a65;--verena:#ca7195;
  --shadow:0 10px 30px rgba(57,48,103,.07);--shadow-soft:0 5px 18px rgba(57,48,103,.05);
  font-family:Inter,ui-rounded,"SF Pro Rounded",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;min-width:320px;background:
  radial-gradient(circle at 8% -5%,rgba(149,136,238,.16),transparent 28rem),
  radial-gradient(circle at 94% 12%,rgba(216,121,155,.10),transparent 24rem),var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
.app-shell{max-width:840px;margin:0 auto;min-height:100%;padding:0 16px 106px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0 11px;position:sticky;top:0;background:rgba(247,246,252,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:5}
.brand-lockup{min-width:0}.brand-line{display:flex;align-items:center;gap:8px}.brand-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:11px;background:linear-gradient(145deg,var(--accent),#9f8df2);color:#fff;font-size:19px;font-weight:900;box-shadow:0 5px 12px rgba(117,103,216,.24)}
.brand{font-size:27px;font-weight:900;letter-spacing:-1.2px;background:linear-gradient(100deg,#29263a 10%,#7464d3 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.subline,.muted,.eyebrow{color:var(--muted)}.subline{font-size:11px;margin:1px 0 0 39px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.11em;font-weight:850}
.profile-pill,.small-btn,.icon-btn,.ghost,.primary,.quick-card,.nav-item,.seg,.close-btn,.profile-choice,.filter-chip,.calendar-nav,.calendar-day{font:inherit;border:0;cursor:pointer}
.profile-pill{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:999px;padding:5px 11px 5px 5px;min-height:44px;font-weight:800;box-shadow:var(--shadow-soft)}
.profile-dot{width:32px;height:32px;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:900;background:var(--accent);border-radius:11px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
h1{font-size:30px;line-height:1.04;margin:4px 0 0;letter-spacing:-.85px}h2{font-size:18px;margin:27px 0 12px;letter-spacing:-.25px}
.hero-row,.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:17px 0}.hero-row{margin-top:20px}
.icon-btn{width:48px;height:48px;border-radius:16px;background:var(--card);border:1px solid var(--line);font-size:20px;box-shadow:var(--shadow-soft)}
.small-btn{min-height:42px;padding:9px 13px;border-radius:13px;background:var(--accent-soft);color:#5448b2;font-weight:850}
.view{display:none}.view.active{display:block}.stack,.week-list,.check-list,.timeline{display:grid;gap:11px}
.card,.day-card,.check-row,.timeline-row{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:21px;box-shadow:var(--shadow-soft)}
.card{padding:16px}.card-title{font-weight:850;font-size:16px}.card-meta{color:var(--muted);font-size:12px;margin-top:4px;line-height:1.4}
button.card{width:100%;text-align:left;color:var(--text)}
.today-meal{display:flex;gap:13px;align-items:center}.meal-icon{width:50px;height:50px;border-radius:17px;background:linear-gradient(145deg,#fff1dc,#ffe4bf);display:grid;place-items:center;font-size:23px;flex:0 0 auto}
.today-custody{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;border:0;color:#fff;box-shadow:0 12px 28px rgba(81,73,145,.17)}
.today-custody::after{content:"";position:absolute;width:105px;height:105px;border-radius:50%;right:-35px;top:-50px;background:rgba(255,255,255,.14)}
.today-custody.custody-papa{background:linear-gradient(135deg,#667fd1,#7d72dd)}.today-custody.custody-mama{background:linear-gradient(135deg,#ce7596,#d88e91)}
.today-custody .eyebrow,.today-custody .card-meta{color:rgba(255,255,255,.78)}.today-custody .custody-mini-icon{width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:21px}.today-custody .custody-next{font-size:11px;font-weight:850;white-space:nowrap;background:rgba(255,255,255,.15);padding:7px 9px;border-radius:999px;z-index:1}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick-card{position:relative;min-height:112px;border-radius:21px;background:var(--card);border:1px solid var(--line);text-align:left;padding:15px;display:grid;align-content:center;gap:2px;box-shadow:var(--shadow-soft);overflow:hidden;transition:transform .16s ease,border-color .16s ease}.quick-card::after{content:"";position:absolute;width:62px;height:62px;border-radius:22px;right:-19px;bottom:-23px;opacity:.34}.quick-card:nth-child(1)::after{background:#ffbf69}.quick-card:nth-child(2)::after{background:#77c6a5}.quick-card:nth-child(3)::after{background:#8da3ef}.quick-card:nth-child(4)::after{background:#d987aa}.quick-card:active{transform:scale(.98)}.quick-card span{font-size:25px}.quick-card b{font-size:15px}.quick-card small{color:var(--muted)}
.day-card{padding:14px 15px;position:relative;overflow:hidden}.day-card.is-today{border-color:#b8afea;box-shadow:0 8px 25px rgba(117,103,216,.12)}.day-card.is-today::before{content:"";position:absolute;left:0;top:17px;bottom:17px;width:4px;border-radius:0 6px 6px 0;background:var(--accent)}
.day-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.day-name{font-weight:900}.date-badge{font-size:11px;color:var(--muted);font-weight:700}.meal-line{margin-top:10px;font-weight:750;display:flex;align-items:center;gap:7px}.meal-line .meal-bubble{width:29px;height:29px;display:grid;place-items:center;border-radius:10px;background:#fff0d9;flex:0 0 auto}.mini-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.chip{font-size:11px;padding:6px 8px;border-radius:999px;background:#f2f0f8;color:#605d70;font-weight:650}
.day-head-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.custody-pill{font-size:10px;font-weight:900;padding:5px 8px;border-radius:999px}.custody-pill.custody-papa{background:var(--papa-soft);color:#536bb7}.custody-pill.custody-mama{background:var(--mama-soft);color:#b45b7b}
.segmented{display:grid;grid-template-columns:1fr 1fr;background:#eae7f5;padding:4px;border-radius:16px;margin:12px 0 16px}.seg{min-height:42px;padding:9px;border-radius:12px;background:transparent;color:var(--muted);font-weight:750}.seg.active{background:var(--card);color:var(--text);font-weight:900;box-shadow:0 3px 10px rgba(57,48,103,.07)}
.inline-form{display:grid;grid-template-columns:1fr 48px;gap:8px;margin-bottom:12px}.inline-form input,.field input,.field select,.field textarea{width:100%;min-height:48px;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:11px 12px;font:inherit;color:var(--text);font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}.inline-form input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#aaa0e8;box-shadow:0 0 0 4px rgba(117,103,216,.10)}.inline-form button{border:0;border-radius:15px;background:linear-gradient(145deg,var(--accent),#8d7ee6);color:white;font-size:22px}
.check-row{padding:12px 13px;display:flex;gap:11px;align-items:center}.check-row input[type=checkbox]{appearance:none;width:23px;height:23px;border:2px solid #c9c4dc;border-radius:8px;display:grid;place-items:center;flex:0 0 auto}.check-row input[type=checkbox]:checked{background:linear-gradient(145deg,var(--accent),#9486ea);border-color:transparent}.check-row input[type=checkbox]:checked::after{content:"✓";color:#fff;font-weight:900;font-size:14px}.check-main{min-width:0;flex:1}.check-title{font-weight:800}.done{opacity:.63}.done .check-title{text-decoration:line-through;color:var(--muted)}
.owner{font-size:10px;font-weight:900;background:var(--accent-soft);color:#5b4fc0;padding:6px 8px;border-radius:999px;white-space:nowrap}.owner-papa{background:var(--papa-soft);color:#536bb7}.owner-verena{background:#f9e8f0;color:#ad5678}.owner-mika{background:#e9efff;color:#536fca}.owner-leni{background:#fff0e8;color:#b66f4e}.owner-alle{background:#eeebff;color:#6255c4}
.delete-btn{border:0;background:transparent;color:#aaa6b5;font-size:20px;min-width:40px;min-height:40px;border-radius:12px}.delete-btn:active{background:#f5edf0;color:var(--red)}
.filter-row{display:flex;gap:7px;overflow:auto;padding:2px 1px 11px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}.filter-chip{border:1px solid var(--line);background:rgba(255,255,255,.85);border-radius:999px;padding:8px 12px;min-height:40px;white-space:nowrap;color:var(--muted);font-weight:750}.filter-chip.active{background:linear-gradient(145deg,var(--accent),#8d7fe4);color:#fff;border-color:transparent;box-shadow:0 5px 13px rgba(117,103,216,.18)}
.timeline-row{padding:14px;display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:start}.timeline-date{font-weight:900;font-size:13px}.timeline-time{color:var(--accent);font-size:12px;font-weight:800}.timeline-title{font-weight:850}.timeline-meta{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(840px,100%);display:grid;grid-template-columns:repeat(6,1fr);background:rgba(255,255,255,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(225,221,239,.9);padding:7px 7px calc(7px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -9px 28px rgba(57,48,103,.06)}.nav-item{background:transparent;color:#9591a5;min-height:57px;display:grid;place-items:center;align-content:center;gap:2px;border-radius:15px}.nav-item span{font-size:19px;line-height:1}.nav-item small{font-size:9px;font-weight:750}.nav-item.active{color:#594dc2;font-weight:900;background:var(--accent-soft)}
.sheet{border:0;background:transparent;padding:0;width:min(600px,100%);max-width:none;margin:auto 0 0;left:50%;transform:translateX(-50%)}.sheet::backdrop{background:rgba(30,27,48,.38);backdrop-filter:blur(4px)}.sheet-card{background:#f9f8fd;border-radius:28px 28px 0 0;padding:12px 18px calc(23px + env(safe-area-inset-bottom));max-height:90vh;overflow:auto;box-shadow:0 -20px 50px rgba(30,27,48,.16)}.sheet-handle{width:44px;height:5px;border-radius:9px;background:#cbc6dd;margin:0 auto 15px}.sheet-title{display:flex;justify-content:space-between;align-items:center}.sheet-title h2,.sheet-card h2{margin:3px 0 6px}.close-btn{width:44px;height:44px;border-radius:14px;background:#eeebf6;font-size:27px;color:#686477}
.profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.profile-choice{border:1px solid var(--line);background:var(--card);border-radius:20px;min-height:112px;padding:14px 10px;font-weight:850;font-size:16px;display:grid;place-items:center;align-content:center;gap:8px;box-shadow:var(--shadow-soft)}.profile-avatar{width:52px;height:52px;border-radius:18px;background:var(--member-color,var(--accent));color:#fff;display:grid;place-items:center;font-size:20px;font-weight:900;box-shadow:inset 0 0 0 2px rgba(255,255,255,.38),0 7px 14px color-mix(in srgb,var(--member-color,var(--accent)) 25%,transparent)}.profile-choice small{font-size:10px;color:var(--muted);font-weight:700}
.field{margin:13px 0}.field label{display:block;font-size:12px;font-weight:850;margin:0 0 6px}.field textarea{min-height:90px;resize:vertical}.field .hint{font-size:11px;color:var(--muted);margin-top:5px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary,.ghost{min-height:50px;border-radius:15px;font-weight:900}.primary{background:linear-gradient(145deg,var(--accent),#8f7fe5);color:white;box-shadow:0 7px 16px rgba(117,103,216,.18)}.ghost{background:#ece9f5;color:var(--text);margin-top:10px}.full{width:100%}.toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,15px);background:#2f2c3d;color:#fff;padding:11px 14px;border-radius:14px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:30;max-width:calc(100% - 32px);box-shadow:0 8px 28px rgba(35,31,54,.22)}.toast.show{opacity:1;transform:translate(-50%,0)}.empty{border:1px dashed #d6d1e4;border-radius:18px;padding:22px;text-align:center;color:var(--muted);background:rgba(255,255,255,.45)}
.app-shell.is-locked{visibility:hidden}.danger-text{color:var(--red)}.pin-hint{font-size:12px;color:var(--muted);margin:4px 0 14px}.security-note{font-size:12px;line-height:1.5;color:#666176;background:#efedf8;border-radius:15px;padding:12px 13px;margin:8px 0 14px}.sheet-card select{width:100%;min-height:48px;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:11px 12px;font:inherit;color:var(--text);font-size:16px}
.document-upload{background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:21px;padding:14px;margin:12px 0;box-shadow:var(--shadow-soft)}.document-upload .field:first-child{margin-top:0}.document-upload input[type=file]{padding:8px}.document-storage{margin:12px 2px 14px}.storage-row{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;margin-bottom:7px}.storage-bar{height:8px;background:#e9e6f2;border-radius:999px;overflow:hidden}.storage-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#a18ff1);border-radius:inherit}.document-list{display:grid;gap:10px}.document-card{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:21px;padding:13px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:start;box-shadow:var(--shadow-soft)}.document-icon{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#eeebff,#e2e8ff);color:#5d52bd;display:grid;place-items:center;font-size:10px;font-weight:950;letter-spacing:.04em}.document-main{min-width:0}.document-name{font-weight:850;overflow-wrap:anywhere}.document-note{font-size:13px;margin-top:7px;line-height:1.35}.document-actions{display:flex;align-items:center;gap:3px}.document-actions .small-btn{padding:8px 9px}.document-actions .delete-btn{min-width:38px;min-height:38px}.primary:disabled{opacity:.55;cursor:wait}
/* Wechselwochen / Familienkalender */
.custody-summary{display:flex;gap:12px;align-items:center;border:0;border-radius:22px;padding:15px;margin:8px 0 15px;color:#fff;box-shadow:0 12px 28px rgba(67,59,123,.14);overflow:hidden;position:relative}.custody-summary::after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-36px;top:-57px;background:rgba(255,255,255,.12)}.custody-summary.custody-papa{background:linear-gradient(135deg,#637ed2,#8173da)}.custody-summary.custody-mama{background:linear-gradient(135deg,#cc7596,#d98a8f)}.custody-icon{width:48px;height:48px;flex:0 0 auto;border-radius:17px;background:rgba(255,255,255,.17);display:grid;place-items:center;font-size:22px}.custody-summary-main{display:grid;gap:2px;min-width:0;z-index:1}.custody-summary-main .eyebrow{color:rgba(255,255,255,.76)}.custody-summary-main strong{font-size:16px}.custody-summary-main small{color:rgba(255,255,255,.78);line-height:1.4}
.calendar-toolbar{display:grid;grid-template-columns:46px 1fr 46px;gap:8px;align-items:center;margin:12px 0 8px}.calendar-title{text-align:center;font-weight:900;font-size:17px;text-transform:capitalize}.calendar-nav{width:46px;height:46px;border-radius:15px;background:var(--card);border:1px solid var(--line);color:var(--text);font-size:27px;box-shadow:var(--shadow-soft)}.calendar-legend{display:flex;flex-wrap:wrap;gap:8px 13px;margin:4px 3px 11px;color:var(--muted);font-size:10px;font-weight:750}.calendar-legend span{display:flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.papa{background:var(--papa)}.legend-dot.mama{background:var(--mama)}.legend-switch{width:11px;height:11px;border-left:3px solid #8b72aa;display:inline-block}
.month-calendar{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:22px;padding:9px;overflow:hidden;box-shadow:var(--shadow-soft)}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekdays{padding:3px 0 7px}.calendar-weekdays span{text-align:center;font-size:10px;font-weight:900;color:#8e8a9d}.calendar-day{position:relative;min-width:0;min-height:76px;border:1px solid transparent;border-radius:13px;padding:7px 6px;background:var(--card);color:var(--text);text-align:left;overflow:hidden;transition:transform .12s ease}.calendar-day.custody-papa{background:linear-gradient(145deg,#eef3ff,#e5ecff)}.calendar-day.custody-mama{background:linear-gradient(145deg,#fff1f5,#fbe6ee)}.calendar-day.outside{opacity:.34}.calendar-day.today{outline:2px solid var(--accent);outline-offset:-2px}.calendar-day.switch-day{box-shadow:inset 4px 0 0 #8c70a7}.calendar-day:active{transform:scale(.96)}.calendar-day:focus-visible{outline:3px solid var(--accent);outline-offset:1px}.calendar-day-number{font-weight:950;font-size:13px}.home-mini{position:absolute;right:6px;bottom:5px;font-size:9px;font-weight:950;color:#77718b;background:rgba(255,255,255,.5);padding:2px 4px;border-radius:6px}.switch-mark{position:absolute;right:6px;top:5px;font-size:11px;font-weight:950;color:#745d91}.calendar-event-dots{display:flex;gap:2px;position:absolute;left:6px;bottom:8px;max-width:calc(100% - 29px)}.calendar-event-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px rgba(255,255,255,.55)}
@media(hover:hover) and (pointer:fine){.quick-card:hover,.day-card:hover,.check-row:hover,.timeline-row:hover,.document-card:hover{border-color:#d4ceee}.quick-card:hover{transform:translateY(-2px)}}
@media(min-width:680px){.quick-grid{grid-template-columns:repeat(4,1fr)}.week-list{grid-template-columns:repeat(2,1fr)}.profile-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:430px){.app-shell{padding-left:13px;padding-right:13px}.bottom-nav{padding-left:3px;padding-right:3px}.nav-item small{font-size:8px}.nav-item span{font-size:18px}.brand{font-size:25px}.brand-mark{width:29px;height:29px}.subline{margin-left:37px}.document-card{grid-template-columns:42px minmax(0,1fr)}.document-icon{width:42px;height:42px}.document-actions{grid-column:2;justify-content:flex-start}.document-actions .small-btn{min-height:40px}.month-calendar{padding:5px}.calendar-weekdays,.calendar-grid{gap:2px}.calendar-day{min-height:61px;padding:5px 4px;border-radius:9px}.calendar-day-number{font-size:12px}.home-mini{right:4px;bottom:4px;font-size:8px}.calendar-event-dots{left:4px;bottom:7px}.custody-summary-main small{font-size:10px}.calendar-legend{gap:7px 10px}.today-custody{grid-template-columns:auto 1fr}.today-custody .custody-next{grid-column:2;justify-self:start}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Termin-Kategorien */
.event-card{border-left:4px solid #b9b3cb}.category-border-schule{border-left-color:#6d8be4}.category-border-freizeit{border-left-color:#65b58e}.category-border-geburtstag{border-left-color:#d985ad}.category-border-arzt{border-left-color:#d86f70}.category-border-ferien{border-left-color:#d8a04f}.category-border-familie{border-left-color:#856fd8}.category-border-privat{border-left-color:#9a95a9}
.event-category{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:900;margin-bottom:5px;background:#f0eef6;color:#6f6b7d}.event-category.category-schule{background:#e9efff;color:#5671c7}.event-category.category-freizeit{background:#e7f7ef;color:#4e9677}.event-category.category-geburtstag{background:#fdeaf4;color:#b45f88}.event-category.category-arzt{background:#fdeaea;color:#b75658}.event-category.category-ferien{background:#fff2dc;color:#aa7631}.event-category.category-familie{background:#eeeaff;color:#6352bd}
.calendar-event-dot.category-schule{background:#6686df}.calendar-event-dot.category-freizeit{background:#61ad88}.calendar-event-dot.category-geburtstag{background:#d879a2}.calendar-event-dot.category-arzt{background:#d76c70}.calendar-event-dot.category-ferien{background:#d99c49}.calendar-event-dot.category-familie{background:#806bd6}.calendar-event-dot.category-privat{background:#8e899a}
.event-timed-fields[hidden],.event-all-day-fields[hidden]{display:none!important}
