/* =====================================================================
   Familienzentrale – Design-System
   Warm, ruhig, freundlich. Farben pro Familienmitglied als roter Faden.
   ===================================================================== */
@font-face {
  font-family: "Jakarta";
  src: url("/static/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Jakarta";
  src: url("/static/fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f6f3ee;
  --bg-2: #efebe4;
  --surface: #ffffff;
  --surface-2: #fbf9f6;
  --surface-3: #f3f0ea;
  --ink: #1f1d1a;
  --ink-2: #5e5a54;
  --ink-3: #9a948b;
  --line: #ebe6de;
  --line-2: #ded8ce;
  --accent: #5b5bd6;
  --accent-2: #7c6cf0;
  --accent-soft: #ecebfc;
  --accent-ink: #ffffff;
  --success: #1fa971;
  --success-soft: #e3f6ed;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --warning: #f5a524;
  --shadow-s: 0 1px 2px rgba(40, 30, 10, 0.05), 0 1px 1px rgba(40, 30, 10, 0.03);
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.04), 0 4px 14px -4px rgba(40, 30, 10, 0.08);
  --shadow-l: 0 2px 6px rgba(40, 30, 10, 0.05), 0 22px 48px -12px rgba(40, 30, 10, 0.22);
  --radius: 20px;
  --radius-m: 14px;
  --radius-s: 10px;
  --note-yellow: #fff1a8; --note-pink: #ffd5e4; --note-blue: #d3e8ff; --note-green: #d2f4e1; --note-purple: #e6dcff; --note-orange: #ffe0c2;
  --note-ink: #3b3326;
  --sidebar-w: 252px;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312; --bg-2: #1a1917; --surface: #1e1d1b; --surface-2: #232220; --surface-3: #2a2926;
    --ink: #f3f1ed; --ink-2: #b9b3aa; --ink-3: #7f7a72; --line: #2e2c29; --line-2: #3a3834;
    --accent: #8d8cff; --accent-2: #a597ff; --accent-soft: #2a2950; --accent-ink: #12111f;
    --success: #3ccf8e; --success-soft: #16342a; --danger: #ff6b6f; --danger-soft: #3a1d1e;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
    --shadow-l: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
    --note-yellow: #4a4226; --note-pink: #4a2a37; --note-blue: #233a52; --note-green: #213f31; --note-purple: #352c52; --note-orange: #4b3524;
    --note-ink: #f4ede0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141312; --bg-2: #1a1917; --surface: #1e1d1b; --surface-2: #232220; --surface-3: #2a2926;
  --ink: #f3f1ed; --ink-2: #b9b3aa; --ink-3: #7f7a72; --line: #2e2c29; --line-2: #3a3834;
  --accent: #8d8cff; --accent-2: #a597ff; --accent-soft: #2a2950; --accent-ink: #12111f;
  --success: #3ccf8e; --success-soft: #16342a; --danger: #ff6b6f; --danger-soft: #3a1d1e;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  --shadow-l: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  --note-yellow: #4a4226; --note-pink: #4a2a37; --note-blue: #233a52; --note-green: #213f31; --note-purple: #352c52; --note-orange: #4b3524;
  --note-ink: #f4ede0;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden; min-height: 100dvh;
}
body.sheet-open { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 750; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; margin: 14px 0 6px; }
p { margin: 0 0 8px; }
a { color: var(--accent); text-decoration: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: var(--surface-3); padding: 1px 5px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: 0.5; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  padding: 11px 13px; width: 100%; outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
textarea { resize: vertical; min-height: 44px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a948b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input[type="date"], input[type="time"] { min-height: 46px; }
::placeholder { color: var(--ink-3); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.icon { flex-shrink: 0; display: block; }

/* ---------------------------------------------------------------- Utilities */
.row { display: flex; align-items: center; }
.gap { gap: 14px; } .gap-s { gap: 8px; } .gap-xs { gap: 4px; }
.between { justify-content: space-between; } .end { justify-content: flex-end; } .center { text-align: center; display: flex; justify-content: center; }
.grow { flex: 1; min-width: 0; } .spacer { flex: 1; }
.mt { margin-top: 18px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 12px; }
.pad { padding: 18px; } .pad-s { padding: 4px 16px 12px; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .strike { text-decoration: line-through; opacity: 0.6; }
.danger-text { color: var(--danger); } .success-text { color: var(--success); display: inline-flex; gap: 6px; align-items: center; }
.hint { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { width: 100%; justify-content: center; }
.scroll-x { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
.scroll-x::-webkit-scrollbar { display: none; }
.wrap { flex-wrap: wrap; }
.count { font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.tag.danger { color: var(--danger); background: var(--danger-soft); }
.link-btn { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.desktop-only { display: none !important; }
@media (min-width: 768px) { .desktop-only { display: inline-flex !important; } .mobile-only { display: none !important; } }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px;
  font-weight: 650; font-size: 15px; white-space: nowrap; transition: transform 0.12s, background 0.15s, box-shadow 0.15s, opacity 0.15s;
  background: var(--surface-3); color: var(--ink);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--danger); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.pill { border-radius: 999px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--ink-2);
  transition: background 0.15s, color 0.15s, transform 0.12s; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.subtle { width: 32px; height: 32px; color: var(--ink-3); border-radius: 10px; }
.icon-btn.filled { background: var(--accent); color: #fff; }
.icon-btn.filled:hover { background: var(--accent-2); color: #fff; }
.icon-btn.big { width: 48px; height: 48px; border-radius: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); white-space: nowrap; transition: all 0.15s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.member-chip.active { background: var(--c); border-color: var(--c); color: #fff; }
.dot-emoji { font-size: 16px; line-height: 1; }
.fab-add {
  position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); width: 58px; height: 58px; border-radius: 20px; z-index: 30;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--accent) 75%, transparent);
}

/* ---------------------------------------------------------------- Avatare */
.avatar {
  --size: 32px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  font-size: calc(var(--size) * 0.52); line-height: 1; background: color-mix(in srgb, var(--c, var(--accent)) 22%, var(--surface));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); color: var(--c); font-weight: 700; user-select: none;
}
.avatar.family { --c: var(--ink-3); color: var(--ink-2); background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--line-2); }
.avatar.ring { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 5px var(--c); }
.avatar.more { --c: var(--ink-3); font-size: calc(var(--size) * 0.38); background: var(--surface-3); color: var(--ink-2); }
.avatar-stack { display: inline-flex; flex-shrink: 0; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.avatar-stack .avatar + .avatar { margin-left: calc(var(--size) * -0.3); }
.progress-ring { position: absolute; inset: 0; margin: auto; }
.pr-bg { stroke: var(--line); }
.pr-fg { transition: stroke-dashoffset 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fc-avatar { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }

/* ---------------------------------------------------------------- App-Shell */
.app { display: flex; min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); padding: 18px 14px; display: none; flex-direction: column; gap: 6px;
  background: var(--surface); border-right: 1px solid var(--line); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; cursor: pointer; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow); }
.brand-logo.sm { width: 30px; height: 30px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 16px; letter-spacing: -0.01em; }
.brand-text span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.assist-btn {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; margin-bottom: 10px; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, #ff8fb1 12%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font-weight: 650; transition: transform 0.15s, box-shadow 0.15s;
}
.assist-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ab-orb { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #ff6fa5); box-shadow: 0 6px 14px -6px var(--accent); }
.ab-label { flex: 1; }
kbd { font-family: inherit; font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600;
  transition: background 0.15s, color 0.15s; position: relative; width: 100%;
}
.nav-item:hover { background: var(--surface-3); color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-badge { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-members { display: flex; gap: 6px; padding: 12px 10px 2px; cursor: pointer; flex-wrap: wrap; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); animation: fadeUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); max-width: 100vw; }
.mobile-header {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(var(--safe-t) + 8px) 12px 8px 16px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.mh-title { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.tabbar {
  position: fixed; inset: auto 0 0 0; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); z-index: 25;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--ink-3); padding: 6px 0; transition: color 0.15s; }
.tab.active { color: var(--accent); }
.tab.active .icon { transform: translateY(-1px); }
.tab-mic { display: grid; place-items: center; }
.tab-mic span {
  width: 58px; height: 58px; border-radius: 22px; display: grid; place-items: center; color: #fff; margin-top: -26px;
  background: linear-gradient(135deg, var(--accent), #ff6fa5); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 0 5px var(--bg);
  transition: transform 0.15s;
}
.tab-mic:active span { transform: scale(0.93); }
.offline-banner { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--warning); color: #3b2a00; font-size: 13px; font-weight: 650; padding: 6px; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.boot img { width: 84px; height: 84px; border-radius: 24px; box-shadow: var(--shadow-l); animation: breathe 1.6s ease-in-out infinite; }

@media (min-width: 768px) {
  .sidebar { display: flex; width: 84px; padding: 18px 12px; align-items: center; }
  .brand-text, .nav-label, .ab-label, .assist-btn kbd, .nav-badge { display: none; }
  .brand { padding: 4px 0 14px; }
  .assist-btn { padding: 8px; background: none; border: 0; }
  .nav-item { width: 52px; justify-content: center; padding: 0; }
  .sidebar-members { flex-direction: column; align-items: center; padding: 10px 0 0; }
  .main { margin-left: 84px; }
  .mobile-header, .tabbar { display: none; }
  .content { padding: 28px 28px 48px; }
}
@media (min-width: 1100px) {
  .sidebar { width: var(--sidebar-w); align-items: stretch; padding: 18px 14px; }
  .brand-text, .nav-label, .ab-label, .assist-btn kbd { display: initial; }
  .brand-text { display: flex; }
  .nav-badge { display: inline-block; }
  .assist-btn { padding: 9px 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, #ff8fb1 12%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
  .nav-item { width: 100%; justify-content: flex-start; padding: 0 12px; }
  .sidebar-members { flex-direction: row; padding: 12px 10px 2px; }
  .main { margin-left: var(--sidebar-w); }
  .content { padding: 32px 40px 56px; }
}

/* ---------------------------------------------------------------- Karten & Seiten */
.page { max-width: 1380px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 8px 18px; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h3 .icon { color: var(--ink-3); }
.sub-head { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 10px 18px 6px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px 30px; }
.empty-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.empty-title { font-weight: 700; font-size: 16px; }
.empty-text { color: var(--ink-3); font-size: 14px; max-width: 340px; }
.spinner { display: inline-block; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.skeleton { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sk-line, .skeleton-hero { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3), var(--line), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton-hero { height: 150px; border-radius: var(--radius); margin-bottom: 18px; }

/* ---------------------------------------------------------------- Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field-hint { font-size: 12.5px; color: var(--ink-3); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1); }
.toggle input:checked + .toggle-track { background: var(--success); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); transition: transform 0.15s; }
.swatch.active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); transform: scale(1.05); }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 4px; }
.emoji-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; display: grid; place-items: center; transition: background 0.15s, transform 0.15s; }
.emoji-btn:hover { background: var(--surface-3); }
.emoji-btn.active { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.segmented { display: inline-flex; background: var(--surface-3); padding: 3px; border-radius: 13px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented button { height: 34px; padding: 0 13px; border-radius: 10px; font-weight: 650; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all 0.15s; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.member-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; padding: 10px 4px 8px; border-radius: 16px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2); border: 1.5px solid transparent; background: var(--surface-2); transition: all 0.15s;
}
.mp-item:hover { background: var(--surface-3); }
.mp-item.active { border-color: var(--c, var(--ink-2)); background: color-mix(in srgb, var(--c, var(--ink-3)) 10%, var(--surface)); color: var(--ink); }
.mp-check { position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; animation: pop 0.3s; }
.check {
  --size: 26px; width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: transparent;
  border: 2.2px solid color-mix(in srgb, var(--c) 60%, var(--line-2)); background: var(--surface); transition: all 0.18s;
}
.check:hover { background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.25s 0.05s ease-out; }
.check.on { background: var(--c); border-color: var(--c); color: #fff; }
.check.on svg path { stroke-dashoffset: 0; }
.check.pop { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* ---------------------------------------------------------------- Sheets (Dialoge) */
.sheet-layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 10, 0.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn 0.2s; }
.sheet {
  position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface);
  border-radius: 26px 26px 0 0; box-shadow: var(--shadow-l); padding-bottom: var(--safe-b); animation: sheetUp 0.32s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.sheet-layer.closing .sheet { animation: sheetDown 0.2s ease-in forwards; }
.sheet-layer.closing .sheet-backdrop { animation: fadeOut 0.2s forwards; }
.sheet-grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 8px auto 0; }
.sheet-body { padding: 8px 20px 20px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 14px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.sheet-actions { display: flex; align-items: center; gap: 10px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (min-width: 768px) {
  .sheet-layer { align-items: center; padding: 24px; }
  .sheet { max-width: 560px; border-radius: 26px; animation: dialogIn 0.25s cubic-bezier(0.2, 0.9, 0.25, 1); }
  .sheet-layer.closing .sheet { animation: dialogOut 0.18s ease-in forwards; }
  .sheet-grabber { display: none; }
  .sheet-body { padding: 18px 26px 24px; }
}
.confirm-text { font-size: 16px; font-weight: 600; padding: 14px 0 18px; }
.menu-sheet { padding-top: 14px; }
.menu-title { font-weight: 750; font-size: 17px; padding: 0 6px 10px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 10px; border-radius: 14px; font-weight: 600; font-size: 16px; text-align: left; }
.menu-item:hover { background: var(--surface-3); }
.menu-item .icon { color: var(--ink-3); }
.menu-item.danger, .menu-item.danger .icon { color: var(--danger); }
.menu-hint { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.title-input { font-size: 22px; font-weight: 700; border: 0; background: transparent; padding: 6px 0 12px; border-radius: 0; border-bottom: 2px solid var(--line); margin-bottom: 16px; letter-spacing: -0.01em; }
.title-input:focus { box-shadow: none; border-bottom-color: var(--accent); background: transparent; }
.card-inset { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.dt-row { display: grid; grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.dt-row:has(> :nth-child(2):last-child) { grid-template-columns: 52px minmax(0, 1fr); }
.dt-row input { padding: 9px 10px; }
.dt-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.detail-list { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 10px; }
.detail { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.detail .icon { color: var(--ink-3); }
.detail.notes { align-items: flex-start; white-space: pre-wrap; }
.member-hero { display: flex; justify-content: center; padding: 4px 0 18px; }
.note-preview { border-radius: 18px; padding: 6px; background: var(--note-yellow); margin-bottom: 12px; }
.note-preview textarea { background: transparent; border: 0; font-size: 18px; font-weight: 600; color: var(--note-ink); box-shadow: none; }
.note-colors { display: flex; gap: 10px; margin-bottom: 16px; }
.note-swatch { width: 34px; height: 34px; border-radius: 12px; border: 2px solid rgba(0, 0, 0, 0.06); }
.note-swatch.active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink-2); }
.note-yellow { background: var(--note-yellow); } .note-pink { background: var(--note-pink); } .note-blue { background: var(--note-blue); }
.note-green { background: var(--note-green); } .note-purple { background: var(--note-purple); } .note-orange { background: var(--note-orange); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 6px; }
.quick-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--line); text-align: left; transition: all 0.15s; }
.quick-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.qt-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-s); margin-bottom: 8px; }
.qt-label { font-weight: 700; font-size: 16px; }
.qt-hint { font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------- Toasts */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; padding: 0 16px; }
@media (min-width: 768px) { .toasts { bottom: 24px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; max-width: 520px; font-weight: 600; font-size: 14px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-l); animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.success .icon { color: #5ee0a0; }
.toast.error { background: var(--danger); color: #fff; }
.toast-action { font-weight: 750; color: var(--accent-2); margin-left: 6px; }

/* ---------------------------------------------------------------- Badges */
.source-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px 1px 5px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.source-badge.s-siri { background: #e7f0ff; color: #2563eb; }
.source-badge.s-ki { background: #f2e8ff; color: #8b3fd9; }
.source-badge.s-mcp { background: #fff0e3; color: #c25e10; }
:root[data-theme="dark"] .source-badge.s-siri, :root[data-theme="dark"] .source-badge.s-ki, :root[data-theme="dark"] .source-badge.s-mcp { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .source-badge[class*="s-"] { background: var(--surface-3); } }

/* ---------------------------------------------------------------- Heute / Dashboard */
.hero {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 18px; padding: 26px 24px; border-radius: 28px; margin-bottom: 18px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 143, 177, 0.55), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(38, 194, 129, 0.35), transparent 60%),
    linear-gradient(135deg, #4f4fd0, #7c6cf0 55%, #a874e8);
  box-shadow: 0 20px 44px -20px rgba(80, 70, 200, 0.6);
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.hero-main { position: relative; z-index: 1; min-width: 0; }
.hero-date { font-size: 13px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-title { font-size: 30px; margin: 6px 0 6px; font-weight: 800; letter-spacing: -0.03em; }
.hero-sub { opacity: 0.92; font-weight: 550; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero .btn.primary { background: #fff; color: #4f4fd0; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35); }
.hero .btn.soft { background: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(8px); }
.weather { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.w-now { display: flex; align-items: center; gap: 8px; }
.w-temp { font-size: 44px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.w-text { font-weight: 650; font-size: 14px; margin-top: 4px; }
.hero .w-text .muted { color: rgba(255, 255, 255, 0.75); }
.w-range { font-size: 13px; opacity: 0.85; margin-top: 2px; }
.weather.compact .w-temp { font-size: 26px; }
@media (max-width: 767px) {
  .hero { padding: 20px 18px; border-radius: 24px; flex-direction: column; gap: 6px; }
  .hero-title { font-size: 25px; }
  .weather { position: absolute; top: 14px; right: 16px; }
  .weather .w-text, .weather .w-range { display: none; }
  .weather .w-now .icon { width: 24px; height: 24px; }
  .w-temp { font-size: 24px; }
  .hero-date { padding-right: 84px; }
  .hero-actions .btn { flex: 1; }
}
.focus-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 16px; margin: 0 -2px; }
.focus-row::-webkit-scrollbar { display: none; }
.focus-chip { display: flex; align-items: center; gap: 6px; padding: 3px 14px 3px 3px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 650; flex-shrink: 0; transition: all 0.15s; }
.focus-chip .fc-avatar { width: 42px; height: 42px; }
.focus-chip.active { border-color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink-3)) 12%, var(--surface)); }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } }
@media (min-width: 1280px) { .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .agenda-card.span-2 { grid-column: span 2; grid-row: span 2; } .week-card.span-2 { grid-column: span 2; } }
.timeline { display: flex; flex-direction: column; gap: 4px; padding: 0 10px 10px; }
.event-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 14px; text-align: left;
  transition: background 0.15s, transform 0.15s; min-width: 0;
}
.event-row:hover { background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); }
.event-row.past { opacity: 0.5; }
.event-row.current { background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, transparent); }
.er-time { display: flex; flex-direction: column; width: 46px; flex-shrink: 0; font-size: 13px; color: var(--ink-3); line-height: 1.25; font-variant-numeric: tabular-nums; }
.er-time b { color: var(--ink); font-size: 14.5px; }
.er-allday { font-size: 11px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.03em; }
.er-bar { width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; min-height: 30px; }
.er-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.er-title { font-weight: 650; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-rep { color: var(--ink-3); }
.er-meta { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event-row.compact { padding: 7px 8px; }
.event-row.compact .er-bar { min-height: 22px; }
.now-badge { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--c); border-radius: 999px; padding: 1px 7px; text-transform: uppercase; letter-spacing: 0.04em; }
.tomorrow { border-top: 1px dashed var(--line-2); margin: 0 10px; padding-bottom: 10px; }
.tomorrow .sub-head { padding-left: 8px; }
.task-list { display: flex; flex-direction: column; padding: 0 8px 6px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; cursor: pointer; transition: background 0.15s; }
.task-row:hover { background: var(--surface-2); }
.tr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tr-title { font-weight: 600; transition: color 0.2s; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.tr-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.tr-meta:empty { display: none; }
.task-row.done .tr-title { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.task-row.overdue .tr-title { color: var(--danger); }
.add-row { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 650; padding: 10px 18px 16px; width: 100%; }
.add-row:hover { color: var(--accent); }
.inline-add { display: flex; gap: 8px; padding: 0 14px 10px; }
.inline-add input { height: 42px; border-radius: 12px; }
.inline-add .icon-btn { height: 42px; width: 42px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 16px 18px; }
.shop-chip { padding: 7px 13px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; transition: all 0.15s; color: var(--ink); }
.shop-chip:hover { border-color: var(--success); background: var(--success-soft); text-decoration: line-through; }
.shop-chip.more { color: var(--accent); }
.mini-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 16px 18px; }
.mini-note {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 86px; padding: 12px; border-radius: 6px 16px 16px 16px; text-align: left;
  font-weight: 600; font-size: 14px; color: var(--note-ink); transform: rotate(var(--r, 0deg)); box-shadow: 0 6px 14px -8px rgba(60, 40, 0, 0.35); transition: transform 0.2s;
}
.mini-note:hover { transform: rotate(0) scale(1.02); }
.mini-note .avatar { align-self: flex-end; }
.meal-today { padding: 0 16px; }
.meal-big { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff3e0, #ffe7ef); margin-bottom: 8px; cursor: pointer; }
:root[data-theme="dark"] .meal-big { background: linear-gradient(135deg, #3a2e1f, #3a2430); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .meal-big { background: linear-gradient(135deg, #3a2e1f, #3a2430); } }
.meal-slot { font-size: 11.5px; font-weight: 800; color: #c2601a; text-transform: uppercase; letter-spacing: 0.06em; }
.meal-title { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.meal-week { padding: 6px 16px 16px; display: flex; flex-direction: column; }
.mw-row { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mw-row:last-child { border-bottom: 0; }
.mw-day { width: 26px; font-weight: 750; color: var(--ink-3); }
.mw-title { font-weight: 600; }
.bday { display: flex; align-items: center; gap: 12px; padding: 8px 18px 14px; }
.bday-name { font-weight: 700; }
.up-day { display: flex; gap: 12px; padding: 6px 14px; border-top: 1px solid var(--line); }
.up-day:first-of-type { border-top: 0; }
.up-date { width: 44px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.up-wd { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; }
.up-d { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; }
.up-events { flex: 1; min-width: 0; padding-bottom: 6px; }
.week-card { padding-bottom: 8px; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 9px 18px; }
.act-row.big { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.act-row.big:last-child { border-bottom: 0; }
.act-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.act-row.big .act-icon { width: 34px; height: 34px; }
.act-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 600; }
.act-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.act-input { font-size: 13px; color: var(--ink-2); font-weight: 500; font-style: italic; }
.activity-card { padding-bottom: 8px; }

/* ---------------------------------------------------------------- Kalender */
.cal-toolbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.cal-title h1 { font-size: 26px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.calendar-page > .chips { margin-bottom: 14px; }
@media (max-width: 767px) {
  .cal-toolbar { gap: 10px; }
  .cal-title { min-width: 0; flex-basis: 100%; }
  .cal-title h1 { font-size: 22px; }
  .cal-nav { flex: 1; }
  .cal-nav .btn { flex: 1; }
  .cal-views { flex-basis: 100%; order: 3; }
  .cal-views button { flex: 1; justify-content: center; padding: 0 6px; }
}
.agenda { display: flex; flex-direction: column; gap: 10px; }
.agenda-day { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px 10px 12px; box-shadow: var(--shadow-s); }
.agenda-day.is-today { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.agenda-date { display: flex; flex-direction: column; align-items: center; width: 46px; flex-shrink: 0; padding-top: 4px; }
.ad-wd { font-size: 11.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; }
.ad-num { font-size: 26px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.is-today .ad-num { color: #fff; background: var(--accent); border-radius: 12px; width: 40px; text-align: center; margin-top: 2px; }
.agenda-events { flex: 1; min-width: 0; }
.agenda-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 4px 10px 2px; }
.timegrid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tg-head, .tg-allday { display: grid; grid-template-columns: 54px repeat(var(--days), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tg-dayhead { display: flex; flex-direction: column; align-items: center; padding: 10px 2px 8px; gap: 2px; border-left: 1px solid var(--line); }
.tg-wd { font-size: 12px; font-weight: 750; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.tg-num { font-size: 20px; font-weight: 750; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; letter-spacing: -0.03em; }
.tg-dayhead.today .tg-num { background: var(--accent); color: #fff; }
.tg-dayhead.today .tg-wd { color: var(--accent); }
.tg-gutter { display: flex; align-items: center; justify-content: center; font-size: 10px; }
.tg-allday-col { border-left: 1px solid var(--line); padding: 4px 3px; display: flex; flex-direction: column; gap: 3px; min-height: 32px; }
.tg-allday-ev { font-size: 12px; font-weight: 650; text-align: left; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-scroll { height: calc(100dvh - 300px); min-height: 420px; overflow-y: auto; position: relative; }
@media (max-width: 767px) { .tg-scroll { height: calc(100dvh - 330px - var(--tabbar-h)); } }
.tg-body { display: grid; grid-template-columns: 54px repeat(var(--days), minmax(0, 1fr)); position: relative; height: calc(var(--hour) * 24); }
.tg-hours { position: relative; }
.tg-hour { height: var(--hour); position: relative; }
.tg-hour span { position: absolute; top: -8px; right: 8px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.tg-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) - 1px), var(--line) calc(var(--hour) - 1px), var(--line) var(--hour)); cursor: crosshair; }
.tg-col.weekend, .tg-dayhead.weekend { background-color: color-mix(in srgb, var(--surface-3) 45%, transparent); }
.tg-col.today { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }
.tg-event {
  position: absolute; border-radius: 10px; padding: 4px 6px 4px 10px; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 1px;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s; z-index: 1; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.tg-event:hover { transform: scale(1.015); box-shadow: var(--shadow); z-index: 3; }
.tg-ev-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.tg-ev-title { hyphens: auto; -webkit-hyphens: auto; font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tg-ev-time { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ev-avatars { margin-top: auto; }
.tg-event.short { flex-direction: row; align-items: center; padding-top: 1px; padding-bottom: 1px; }
.tg-event.short .tg-ev-title { -webkit-line-clamp: 1; white-space: nowrap; }
.now-line { position: absolute; left: -1px; right: 0; height: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.now-line span { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.month-wrap { display: flex; flex-direction: column; gap: 14px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.m-wd { text-align: center; font-size: 12px; font-weight: 750; color: var(--ink-3); padding: 10px 0 8px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.m-cell { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; transition: background 0.15s; min-width: 0; }
.m-cell:nth-child(7n) { border-right: 0; }
.m-cell:hover { background: var(--surface-2); }
.m-cell.weekend { background: color-mix(in srgb, var(--surface-3) 40%, transparent); }
.m-cell.other { opacity: 0.45; }
.m-num { font-size: 13.5px; font-weight: 700; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; }
.m-cell.today .m-num { background: var(--accent); color: #fff; }
.m-cell.selected { background: var(--accent-soft); }
.m-events { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-ev { font-size: 12px; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.m-ev.allday { background: color-mix(in srgb, var(--c) 24%, var(--surface)); font-weight: 650; }
.m-ev b { font-weight: 700; color: var(--ink-2); }
.m-more { font-size: 11.5px; color: var(--ink-3); font-weight: 650; padding-left: 6px; }
.m-dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
.m-dots i { width: 6px; height: 6px; border-radius: 50%; }
@media (max-width: 767px) {
  .m-cell { min-height: 56px; align-items: center; padding: 4px 2px; }
  .month-day-list { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 4px 8px 10px; }
  .month-day-list .sub-head { padding-left: 10px; }
}

/* ---------------------------------------------------------------- Aufgaben */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.board-col { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; scroll-snap-align: start; min-height: 300px; overflow: hidden; }
.board-col::before { content: ""; height: 5px; background: var(--c); }
.board-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.board-head .fc-avatar { width: 52px; height: 52px; }
.board-name { font-weight: 750; font-size: 17px; }
.board-col.all-done .board-head { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), transparent); }
.board-tasks { flex: 1; display: flex; flex-direction: column; padding: 0 6px; }
.board-tasks .task-row { padding: 10px 10px; }
.board-empty { color: var(--ink-3); text-align: center; padding: 26px 0; font-weight: 600; }
.board-add { display: flex; align-items: center; gap: 8px; margin: 8px 12px 14px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); border: 1.5px dashed var(--line-2); color: var(--ink-3); }
.board-add input { border: 0; background: transparent; padding: 10px 0; box-shadow: none !important; }
.board-add:focus-within { border-color: var(--c); border-style: solid; }
.task-groups { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }

/* ---------------------------------------------------------------- Listen */
.lists-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .lists-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .lists-nav { position: sticky; top: 24px; } }
.lists-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lists-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lists-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .lists-tabs { flex-direction: column; overflow: visible; } }
.list-tab { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 650; white-space: nowrap; transition: all 0.15s; flex-shrink: 0; }
.list-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lt-emoji { font-size: 20px; }
.lt-name { flex: 1; text-align: left; }
.lt-count { font-size: 12px; font-weight: 750; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.list-detail { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 0 14px; min-width: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 18px; }
.list-title { display: flex; align-items: center; gap: 12px; }
.list-emoji { font-size: 32px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--surface-3); border-radius: 18px; }
.list-add { display: flex; align-items: center; gap: 10px; margin: 10px 16px 6px; padding: 4px 6px 4px 14px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-3); transition: border-color 0.15s, box-shadow 0.15s; }
.list-add:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.list-add input { border: 0; background: transparent; box-shadow: none !important; padding: 10px 0; font-size: 16px; font-weight: 600; }
.suggest { padding: 6px 16px 4px; display: flex; flex-direction: column; gap: 6px; }
.suggest-chip { height: 32px; font-size: 13.5px; padding: 0 11px 0 8px; gap: 4px; }
.suggest-chip:hover { border-color: var(--accent); color: var(--accent); }
.item-groups { padding: 4px 8px; }
.cat-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 10px 4px; }
.cat-head span { font-size: 16px; }
.item-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px 3px 4px; border-radius: 14px; transition: background 0.15s; animation: fadeUp 0.25s; }
.item-row:hover { background: var(--surface-2); }
.item-row .icon-btn.subtle { opacity: 0; transition: opacity 0.15s; }
.item-row:hover .icon-btn.subtle { opacity: 1; }
@media (hover: none) { .item-row .icon-btn.subtle { opacity: 0.6; } }
.item-check { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.ic-circle { width: 26px; height: 26px; border-radius: 50%; border: 2.2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all 0.2s; }
.item-check:hover .ic-circle { border-color: var(--success); }
.item-row.done .ic-circle { background: var(--success); border-color: var(--success); color: #fff; }
.item-text { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; cursor: pointer; padding: 8px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.item-note { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; }
.item-row.done .item-text { color: var(--ink-3); text-decoration: line-through; }
.item-meta { display: flex; align-items: center; gap: 6px; }
.item-edit { flex: 1; height: 40px; }
.done-section { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.done-toggle { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }

/* ---------------------------------------------------------------- Essensplan */
.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.meal-day { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.meal-day.today { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.meal-day.past { opacity: 0.6; }
.meal-day-head { display: flex; justify-content: space-between; align-items: baseline; }
.md-wd { font-weight: 750; font-size: 16px; }
.md-date { color: var(--ink-3); font-weight: 650; font-size: 13px; }
.meal-slot-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); min-height: 52px; }
.meal-slot-row.empty { background: transparent; border: 1.5px dashed var(--line-2); }
.ms-label { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 750; color: var(--ink-3); text-transform: uppercase; width: 68px; flex-shrink: 0; }
.ms-title { flex: 1; text-align: left; font-weight: 650; min-height: 30px; }
.ms-input { flex: 1; height: 36px; padding: 6px 10px; }

/* ---------------------------------------------------------------- Merkzettel */
.notes-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; padding: 10px 2px; }
.sticky {
  position: relative; padding: 26px 18px 14px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; cursor: pointer;
  border-radius: 4px 4px 22px 4px; color: var(--note-ink); transform: rotate(var(--r)); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.25s;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 14px 22px -14px rgba(70, 50, 0, 0.45);
}
.sticky:hover { transform: rotate(0) translateY(-3px) scale(1.02); box-shadow: 0 22px 32px -16px rgba(70, 50, 0, 0.5); }
.sticky-pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #d63a3a); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25); }
.sticky-text { font-size: 17px; font-weight: 650; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.sticky-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.sticky-foot .tag { background: rgba(255, 255, 255, 0.5); color: var(--note-ink); }
.sticky-done { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.55); color: var(--note-ink); transition: all 0.15s; }
.sticky-done:hover { background: var(--success); color: #fff; }

/* ---------------------------------------------------------------- Familie */
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member-card { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; transition: transform 0.2s, box-shadow 0.2s; }
.member-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 76px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); }
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.mc-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.member-card h3 { font-size: 20px; }
.mc-stats { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin: 6px 0 2px; }
.mc-stats b { color: var(--c); font-size: 16px; }
.member-card.add { align-items: center; justify-content: center; color: var(--ink-3); border-style: dashed; border-width: 2px; box-shadow: none; background: transparent; font-weight: 650; min-height: 200px; }
.member-card.add::before { display: none; }

/* ---------------------------------------------------------------- Einstellungen */
.settings-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .settings-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } .settings-nav { position: sticky; top: 24px; } }
@media (max-width: 899px) { .settings-nav.has-section { display: none; } .settings-content.no-section { display: none; } }
.settings-nav h1 { margin-bottom: 14px; }
.settings-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); font-weight: 650; transition: background 0.15s; }
.settings-link:hover { background: var(--surface-3); }
.settings-link.active { background: var(--surface); box-shadow: var(--shadow); }
.sl-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sl-chev { margin-left: auto; color: var(--ink-3); }
.settings-title { margin-bottom: 16px; }
.settings-stack { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.back-btn { display: flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 650; margin-bottom: 10px; }
.place-list { display: flex; flex-direction: column; gap: 2px; margin-top: -6px; }
.place { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; text-align: left; font-weight: 600; }
.place:hover { background: var(--surface-3); }
.cal-row { display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: flex-start; }
.cal-color { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.cal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-controls { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 4px; }
.cal-controls select { width: auto; padding: 6px 32px 6px 10px; margin-left: 6px; border-radius: 10px; font-size: 13.5px; }
.cal-actions { display: flex; gap: 2px; }
.color-dots { display: inline-flex; gap: 5px; }
.cdot { width: 18px; height: 18px; border-radius: 50%; }
.cdot.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink-2); }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.connect-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); text-align: left; transition: all 0.2s; box-shadow: var(--shadow-s); }
.connect-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.ct-logo { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.ct-logo.icloud { background: linear-gradient(135deg, #5ac8fa, #2f80ed); }
.ct-logo.google { background: linear-gradient(135deg, #34a853, #4285f4 60%, #fbbc05); }
.ct-title { font-weight: 750; font-size: 16px; }
.ct-text { font-size: 13.5px; color: var(--ink-3); }
.steps { padding-left: 22px; margin: 6px 0 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.steps li::marker { color: var(--accent); font-weight: 800; }
.advanced { margin: 4px 0 14px; }
.advanced summary { cursor: pointer; font-weight: 650; color: var(--ink-2); font-size: 14px; margin-bottom: 10px; }
.pick-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); }
.pick-row.on { border-color: var(--accent); }
.pick-name { flex: 1; font-weight: 650; }
.pick-row select { width: auto; }
.ai-intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; color: var(--ink-2); }
.radio-cards { display: flex; flex-direction: column; gap: 8px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; }
.radio-card input { width: auto; accent-color: var(--accent); }
.radio-card.active { border-color: var(--accent); background: var(--accent-soft); }
.token-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.token-row.active { background: var(--accent-soft); }
.token-row .icon { color: var(--accent); }
.token-new { display: flex; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.token-new input { flex: 2; min-width: 180px; }
.token-new select { flex: 1; min-width: 140px; width: auto; }
.guide { padding: 6px 20px 20px; color: var(--ink-2); }
.guide h4 { color: var(--ink); margin-top: 20px; }
.copy-line { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin: 6px 0; }
.cl-label { font-size: 12px; font-weight: 750; color: var(--ink-3); width: 70px; flex-shrink: 0; text-transform: uppercase; }
.cl-value { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; padding: 0; font-size: 13px; color: var(--ink); scrollbar-width: none; }
.api-table { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0; font-size: 14px; align-items: center; }
.wall-promo { display: flex; gap: 18px; align-items: flex-start; }
.wall-promo > .icon { color: var(--accent); }
.tips { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------------------- Sprachassistent */
.assistant { min-height: 380px; }
.speak-toggle { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.speak-toggle .toggle-track { width: 38px; height: 24px; }
.speak-toggle .toggle-thumb { width: 18px; height: 18px; }
.speak-toggle .toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(14px); }
.assist-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0 16px; }
.orb {
  position: relative; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, #a8a3ff, transparent 55%), radial-gradient(circle at 75% 80%, #ff7eb0, transparent 60%), linear-gradient(135deg, #5b5bd6, #9b6cf0);
  box-shadow: 0 18px 40px -14px rgba(91, 91, 214, 0.8), inset 0 -6px 18px rgba(0, 0, 0, 0.15); transition: transform 0.2s; flex-shrink: 0;
}
.orb:not(:disabled):hover { transform: scale(1.04); }
.orb:active { transform: scale(0.96); }
.orb.small { width: 52px; height: 52px; }
.orb > .icon, .orb > .spinner { position: relative; z-index: 2; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(124, 108, 240, 0.5); opacity: 0; pointer-events: none; }
.orb.listening { animation: orbPulse 1.6s ease-in-out infinite; }
.orb.listening .orb-ring { animation: ring 2.1s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.orb.listening .r2 { animation-delay: 0.7s; }
.orb.listening .r3 { animation-delay: 1.4s; }
.orb.thinking { animation: orbPulse 1.1s ease-in-out infinite; }
.assist-status { font-weight: 650; color: var(--ink-2); text-align: center; }
.transcript { font-size: 19px; font-weight: 650; text-align: center; max-width: 460px; line-height: 1.4; letter-spacing: -0.01em; }
.interim { color: var(--ink-3); }
.assist-input { display: flex; gap: 10px; align-items: flex-end; }
.assist-input textarea { font-size: 16px; border-radius: 16px; }
.assist-error { display: flex; align-items: center; gap: 8px; color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 12px; margin: 10px 0; font-weight: 600; font-size: 14px; }
.examples { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.chip.example { height: auto; min-height: 34px; padding: 7px 12px; white-space: normal; text-align: left; font-weight: 550; font-size: 13.5px; }
.chip.example:hover { border-color: var(--accent); color: var(--accent); }
.you-said { font-size: 14px; color: var(--ink-3); font-style: italic; margin-bottom: 10px; }
.reply-bubble { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 6px 18px 18px 18px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 14px; animation: fadeUp 0.3s; }
.reply-bubble .icon { color: var(--accent); margin-top: 2px; }
.result-cards { display: flex; flex-direction: column; gap: 8px; }
.result-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); animation: cardIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.rc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-s); flex-shrink: 0; }
.rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.rc-text { font-weight: 700; }
.rc-detail { font-size: 13px; color: var(--ink-2); }
.rc-ok { color: var(--success); }
.result-card.failed { background: var(--danger-soft); }
.result-card.failed .rc-icon { color: var(--danger); }
.assist-setup { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 10px 20px; }

/* ---------------------------------------------------------------- Wanddisplay */
html.wall-mode, html.wall-mode body { background: var(--bg); overflow: hidden; }
.wall { background: var(--bg); color: var(--ink); height: 100dvh; display: flex; flex-direction: column; gap: 16px; padding: 18px 22px; transition: filter 1s; }
.wall.night {
  --bg: #121110; --surface: #1c1b19; --surface-2: #21201e; --surface-3: #2a2926; --ink: #ece8e1; --ink-2: #aaa39a; --ink-3: #78726a;
  --line: #2c2a27; --line-2: #3a3834; --accent: #8d8cff; --accent-soft: #2a2950;
  --note-yellow: #4a4226; --note-pink: #4a2a37; --note-blue: #233a52; --note-green: #213f31; --note-purple: #352c52; --note-orange: #4b3524; --note-ink: #f4ede0;
  background: var(--bg); color: var(--ink); filter: brightness(0.8);
}
.wall.night .wall-day.today .wd-head { background: #3d3c8f; }
.wall.night .wd-meal { color: #f0a66a; }
.wall-top { display: flex; align-items: center; gap: 26px; }
.wall-clock { display: flex; flex-direction: column; }
.wc-time { font-size: 64px; font-weight: 250; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.wc-date { font-size: 18px; font-weight: 650; color: var(--ink-2); }
.wall-weather { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.wall-weather .icon { color: var(--warning); }
.ww-temp { font-size: 38px; font-weight: 300; letter-spacing: -0.04em; }
.ww-text { font-size: 14px; font-weight: 650; line-height: 1.3; }
.wall-family { display: flex; gap: 8px; margin-left: auto; }
.wall-actions { display: flex; align-items: center; gap: 10px; }
.wall-mic { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 24px 0 18px; border-radius: 22px; color: #fff; font-weight: 750; font-size: 18px; background: linear-gradient(135deg, var(--accent), #ff6fa5); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.wall-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.wall-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.wall-day { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.wall-day.today { box-shadow: 0 0 0 3px var(--accent), var(--shadow-l); border-color: transparent; }
.wall-day.weekend { background: color-mix(in srgb, var(--surface) 70%, var(--surface-3)); }
.wd-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 12px 8px; border-bottom: 1px solid var(--line); cursor: pointer; flex-wrap: wrap; }
.wall-day.today .wd-head { background: var(--accent); color: #fff; border-bottom: 0; }
.wd-name { font-weight: 750; font-size: 15px; }
.wd-num { font-size: 15px; font-weight: 650; opacity: 0.6; }
.wd-weather { margin-left: auto; display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; opacity: 0.8; }
.wd-events { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.wd-free { color: var(--ink-3); font-size: 13px; text-align: center; padding: 14px 0; font-weight: 600; }
.wall-ev { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 8px 8px 12px; border-radius: 12px; text-align: left; background: color-mix(in srgb, var(--c) 15%, var(--surface)); overflow: hidden; min-height: 44px; }
.wall-ev.allday { background: color-mix(in srgb, var(--c) 28%, var(--surface)); }
.wall-ev.past { opacity: 0.45; }
.we-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.we-body { width: 100%; min-width: 0; display: flex; flex-direction: column; }
.we-time { font-size: 12px; font-weight: 750; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.we-title { font-size: 14px; font-weight: 700; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.wd-meal { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12.5px; font-weight: 650; color: #c2601a; border-top: 1px solid var(--line); background: color-mix(in srgb, #ffb36b 10%, transparent); }
.wall-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.wall-card { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 16px; }
.wall-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; }
.wall-card h3 .icon { color: var(--ink-3); }
.wall-people { display: flex; flex-direction: column; gap: 12px; }
.wp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wp-head .fc-avatar { width: 40px; height: 40px; }
.wall-task { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-weight: 650; font-size: 15px; cursor: pointer; border-radius: 12px; }
.wall-task.done span { text-decoration: line-through; color: var(--ink-3); }
.wall-shop { display: flex; flex-wrap: wrap; gap: 6px; }
.wall-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wall-notes .mini-note { min-height: 70px; font-size: 13px; }
@media (max-width: 1100px) { .wall-main { grid-template-columns: 1fr; overflow-y: auto; } .wall-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wall-side { overflow: visible; } html.wall-mode, html.wall-mode body { overflow: auto; } .wall { height: auto; min-height: 100dvh; } }
@media (max-width: 700px) { .wall-week { grid-template-columns: 1fr 1fr; } .wall-top { flex-wrap: wrap; gap: 14px; } .wc-time { font-size: 48px; } .wall-family { display: none; } }

/* ---------------------------------------------------------------- Anmeldung / Einrichtung */
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: float 14s ease-in-out infinite; }
.auth-blobs span:nth-child(1) { width: 380px; height: 380px; background: #8d8cff; top: -100px; left: -80px; }
.auth-blobs span:nth-child(2) { width: 320px; height: 320px; background: #ff8fb1; bottom: -80px; right: -60px; animation-delay: -5s; }
.auth-blobs span:nth-child(3) { width: 260px; height: 260px; background: #4fd1a5; bottom: 20%; left: 30%; animation-delay: -9s; opacity: 0.35; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 28px; box-shadow: var(--shadow-l); padding: 34px 28px; display: flex; flex-direction: column; gap: 14px; text-align: center; border: 1px solid var(--line); }
.auth-card.setup { max-width: 560px; text-align: left; }
.auth-logo { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 6px; box-shadow: var(--shadow-l); }
.auth-card input { text-align: inherit; font-size: 16px; }
.setup-steps { display: flex; gap: 6px; margin-bottom: 6px; }
.ss { flex: 1; font-size: 11.5px; font-weight: 750; color: var(--ink-3); padding-top: 8px; border-top: 3px solid var(--line); text-transform: uppercase; letter-spacing: 0.04em; }
.ss.active { color: var(--accent); border-color: var(--accent); }
.ss.done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.setup-pane { display: flex; flex-direction: column; gap: 12px; animation: fadeUp 0.3s; }
.setup-pane h1, .setup-pane > .auth-logo { text-align: center; }
.setup-members { display: flex; flex-direction: column; gap: 10px; }
.setup-member { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid color-mix(in srgb, var(--c) 35%, var(--line)); align-items: flex-start; }
.setup-member .grow { display: flex; flex-direction: column; gap: 8px; }
.setup-member input { padding: 9px 11px; }
.small-input { font-size: 14px !important; }

/* ---------------------------------------------------------------- Animationen */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes dialogOut { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes orbPulse { 50% { transform: scale(1.06); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translate(30px, -20px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
