:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --ink: #2a2622;
  --ink-2: #6d655d;
  --ink-3: #a59d94;
  --line: #ece5dc;
  --accent: #e2673f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6dd;
  --today: #2a2622;
  --danger: #c8382f;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); min-height: 100%; }
body { font-size: 16px; line-height: 1.35; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.screen { max-width: 760px; margin: 0 auto; padding: 0 14px calc(96px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  display: flex; align-items: center; gap: 8px; padding: 12px 0 8px;
}
.topbar h1 { font-size: 22px; margin: 0; flex: 1; font-weight: 700; letter-spacing: -0.01em; }
.topbar h1 small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2);
}
.icon-btn:active { background: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Avatare ---------- */
.avatar {
  --c: #999; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--c); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--c); }
.avatar.lg { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c); }
.avatar.xl { width: 110px; height: 110px; font-size: 40px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c); }

/* ---------- Segment ---------- */
.seg { display: inline-flex; background: var(--line); border-radius: 999px; padding: 3px; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.filterbar { display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; }
.filterbar .people { display: flex; gap: 10px; margin-left: auto; }
.filterbar .people button { opacity: .35; transition: opacity .15s; }
.filterbar .people button.on { opacity: 1; }

/* ---------- Monatsraster ---------- */
.month { background: var(--card); border-radius: var(--radius); padding: 8px 6px 6px; box-shadow: 0 1px 0 var(--line); }
.wd { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--ink-3); text-align: center; font-weight: 600; padding-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day {
  min-height: 62px; border-radius: 10px; padding: 3px 2px; display: flex; flex-direction: column;
  align-items: stretch; gap: 2px; text-align: left; overflow: hidden;
}
.day .n { font-size: 13px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; align-self: center; }
.day.other .n { color: var(--ink-3); }
.day.today .n { background: var(--today); color: #fff; }
.day.sel { background: var(--accent-soft); }
.day.we .n { color: var(--ink-2); }
.day.today.we .n { color: #fff; }
.pill {
  font-size: 10.5px; line-height: 1.25; padding: 1px 4px; border-radius: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #fff; background: var(--c, #999); font-weight: 600;
}
.pill.hint { background: transparent; color: var(--c); border: 1px dashed var(--c); padding: 0 3px; }
.pill.priv { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 80%, #000) 6px 8px); }
.more { font-size: 10px; color: var(--ink-3); text-align: center; font-weight: 600; }

/* ---------- Tagesliste ---------- */
.agenda { margin-top: 16px; }
.agenda h2 { font-size: 15px; margin: 18px 4px 8px; color: var(--ink-2); font-weight: 600; }
.agenda h2 b { color: var(--ink); }
.ev {
  display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 8px;
  align-items: center; width: 100%; text-align: left; position: relative; overflow: hidden;
}
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--bar, #999); }
.ev .time { width: 50px; flex: none; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-left: 4px; }
.ev .time b { display: block; color: var(--ink); font-size: 15px; }
.ev .body { flex: 1; min-width: 0; }
.ev .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .meta { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.ev .who { display: flex; gap: 6px; flex: none; }
.ev.hint { background: transparent; border: 1.5px dashed var(--line); }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.empty { text-align: center; color: var(--ink-3); padding: 18px 10px; font-size: 14px; }

/* ---------- FAB & Nav ---------- */
.fab {
  position: fixed; right: max(18px, calc(50% - 362px)); bottom: calc(84px + var(--safe-b)); z-index: 10;
  width: 60px; height: 60px; border-radius: 20px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(226,103,63,.38);
}
.fab svg { width: 28px; height: 28px; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding: 6px 8px calc(8px + var(--safe-b));
}
.nav button { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 4px 0; }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--accent); }
.nav button.soon { opacity: .45; }

/* ---------- Karten / Formulare ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 14px; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 12px 0 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-height: 52px; }
.card > .row:first-of-type, .card h3 + .row { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .label { font-weight: 600; }
.row .sub { font-size: 13px; color: var(--ink-2); }
.row input[type=text], .row input[type=password], .row input[type=date], .row input[type=time], .row input[type=tel],
.row select, .row textarea {
  border: 0; background: transparent; outline: none; padding: 4px 0; width: 100%;
}
.row textarea { resize: vertical; min-height: 64px; }
.title-input { font-size: 22px; font-weight: 700; }
.dt { display: flex; gap: 8px; }
.dt input { background: var(--bg) !important; border-radius: 10px !important; padding: 8px 10px !important; width: auto !important; }
.dt input[type=date] { flex: 1; min-width: 0; }
.dt input[type=time] { width: 104px !important; flex: none; }
.dt.grow { min-width: 0; }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--bg); font-size: 14px; font-weight: 600; border: 2px solid transparent;
}
.chip.plain { padding: 7px 13px; }
.chip.on { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, #fff); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px;
  border-radius: 14px; font-weight: 700; background: var(--accent); color: var(--accent-ink); min-height: 48px;
}
.btn.block { width: 100%; }
.btn.ghost { background: var(--line); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); }
.btn:disabled { opacity: .5; }
.btns { display: flex; gap: 10px; margin: 18px 0; }
.btns .btn { flex: 1; }
.help { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.help ol { padding-left: 20px; margin: 6px 0; }
.code { font-family: ui-monospace, monospace; font-size: 12.5px; background: var(--bg); border-radius: 10px; padding: 10px; word-break: break-all; }

.colors { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 12px; }
.colors button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); }
.colors button.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.colors label { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); position: relative; overflow: hidden; }
.colors label input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; }

/* ---------- Sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(42,38,34,.35); z-index: 30; animation: fade .15s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 31; background: var(--bg);
  overflow-y: auto; animation: up .2s ease-out; max-width: 760px; margin: 0 auto;
}
@media (min-width: 780px) { .sheet { top: 24px; bottom: 24px; border-radius: 20px; } }
.sheet-head { position: sticky; top: 0; background: var(--bg); z-index: 2; display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; }
.sheet-head h2 { flex: 1; font-size: 17px; margin: 0; text-align: center; }
.sheet-head .btn { padding: 8px 16px; min-height: 38px; border-radius: 12px; }
.sheet-body { padding: 4px 14px 40px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; text-align: center; }
.login h1 { font-size: 28px; margin: 0 0 6px; }
.login p { color: var(--ink-2); margin: 0 0 30px; }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 34px; }
.who-grid button { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 22px 0 24px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; justify-content: center; }
.pinpad button { width: 72px; height: 72px; border-radius: 50%; background: var(--card); font-size: 26px; font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.pinpad button:active { background: var(--line); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

#toast {
  position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.detail-time { font-size: 15px; color: var(--ink-2); margin: 4px 0 14px; }
.notice { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.imp-list .row .tag { margin-left: 6px; }

/* ---------- Marke & Installation ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.brand-logo { width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgba(220,86,52,.28)); }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.brand.small { flex-direction: row; gap: 10px; }
.brand.small .brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 4px 8px rgba(220,86,52,.25)); }
.brand.small .brand-name { font-size: 20px; }
.install-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(135deg, #fff 0%, #fdeee6 100%); border: 1px solid #f6d6c8;
  border-radius: var(--radius); padding: 12px 12px 12px 14px; margin-bottom: 14px;
}
.install-card img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.install-card .grow { flex: 1; min-width: 0; }
.install-card .label { font-weight: 700; }
.install-card .sub { font-size: 12.5px; color: var(--ink-2); }
.install-card .btn { padding: 10px 14px; min-height: 42px; border-radius: 12px; font-size: 14.5px; }

/* ---------- Aufgaben ---------- */
.todo {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px;
  padding: 11px 12px; margin-bottom: 7px; cursor: pointer; transition: opacity .25s;
}
.todo .body { flex: 1; min-width: 0; }
.todo .title { font-weight: 600; overflow-wrap: anywhere; }
.todo .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.todo .who { display: flex; gap: 6px; flex: none; }
.todo.prio { box-shadow: inset 4px 0 0 var(--danger); }
.todo.low .title { color: var(--ink-2); font-weight: 500; }
.todo.done .title { text-decoration: line-through; color: var(--ink-3); }
.todo.done { opacity: .75; }
.todo.temp { opacity: .6; }
.check {
  width: 28px; height: 28px; border-radius: 50%; flex: none; border: 2.5px solid var(--c);
  display: grid; place-items: center; transition: background .15s, transform .15s;
}
.check:active { transform: scale(.88); }
.check.on { background: var(--c); }
.check.on::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.tag.red { background: #fbe0dd; color: var(--danger); }
.tag.prio { background: #fbe0dd; color: var(--danger); }
.todo-h { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 18px 4px 8px; color: var(--ink-2); }
.todo-h span { font-size: 12px; background: var(--line); border-radius: 999px; padding: 1px 8px; }
.todo-h.red { color: var(--danger); }
.empty.big { padding: 50px 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty.big .label { color: var(--ink); font-size: 18px; font-weight: 700; }
.done-toggle { font-weight: 700; color: var(--ink-2); padding: 14px 4px 8px; font-size: 14.5px; }

.quick-add { display: flex; gap: 8px; align-items: center; background: var(--card); border-radius: 14px; padding: 6px 6px 6px 14px; margin-bottom: 14px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.quick-add input { flex: 1; border: 0; outline: none; background: transparent; padding: 8px 0; font-size: 16px; min-width: 0; }
.qa-btn { width: 40px; height: 40px; border-radius: 11px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.qa-btn svg { width: 22px; height: 22px; }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .list-grid { grid-template-columns: repeat(3, 1fr); } }
.list-card {
  background: var(--card); border-radius: var(--radius); padding: 14px; text-align: left; min-height: 128px;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
  box-shadow: inset 0 4px 0 var(--c);
}
.list-card .lc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.lc-emoji { font-size: 30px; line-height: 1; }
.lc-badge { font-size: 11px; font-weight: 700; background: var(--line); border-radius: 999px; padding: 2px 7px; }
.lc-badge.red { background: #fbe0dd; color: var(--danger); }
.lc-name { font-weight: 700; font-size: 16.5px; flex: 1; }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.lc-who { display: flex; gap: 4px; align-items: center; }
.list-card.add { align-items: center; justify-content: center; color: var(--ink-2); font-weight: 700; border: 2px dashed var(--line); background: transparent; box-shadow: none; }
.list-card.add span svg { width: 28px; height: 28px; }

.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; padding: 4px 0 12px; }
.emoji-grid button { font-size: 24px; height: 44px; border-radius: 12px; }
.emoji-grid button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.row select { width: auto; text-align: right; }

/* ---------- Stufe 3 ---------- */
.nav button { font-size: 10.5px; min-width: 0; }
.pill.sp { background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }

/* Sterne – Kinderansicht */
.kid-head { text-align: center; padding: 10px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kid-hello { font-size: 26px; font-weight: 800; }
.jar {
  width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff6d6, #ffd970 60%, #f5b83d); box-shadow: 0 12px 28px rgba(245,184,61,.45), inset 0 -6px 0 rgba(0,0,0,.06);
}
.jar-num { font-size: 56px; font-weight: 900; line-height: 1; color: #5a3b00; }
.jar-sym { font-size: 30px; }
.kid-wait { font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--card); padding: 6px 12px; border-radius: 999px; }
.kid-h { font-size: 19px; margin: 22px 4px 10px; }
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .task-grid { grid-template-columns: repeat(3, 1fr); } }
.task-tile {
  background: var(--card); border-radius: 20px; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 2px 0 var(--line); transition: transform .1s;
}
.task-tile:active { transform: scale(.94); background: #fff6d6; }
.tt-emoji { font-size: 50px; line-height: 1.1; }
.tt-title { font-weight: 700; font-size: 15px; text-align: center; }
.tt-stars { font-size: 18px; }
.reward-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.reward { background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.reward img, .reward-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #fdeee6; display: grid; place-items: center; font-size: 48px; }
.reward-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.reward-title { font-weight: 700; }
.reward-cost { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.reward.ready { box-shadow: 0 0 0 3px #f5b83d; }
.reward .btn { padding: 9px 12px; min-height: 40px; }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd970, #f5a623); border-radius: 999px; }
.ok-btn, .no-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; font-weight: 800; flex: none; }
.ok-btn { background: #dff2e3; color: #2f8a45; }
.no-btn { background: #fbe0dd; color: var(--danger); }
.pending-card { box-shadow: 0 0 0 2px #f5b83d; }
.kid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kid-card { background: var(--card); border-radius: var(--radius); padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: inset 0 4px 0 var(--c); }
.kc-name { font-weight: 800; font-size: 18px; margin-top: 6px; }
.kc-bal { font-size: 26px; font-weight: 900; }
.kc-next { font-size: 12.5px; color: var(--ink-2); text-align: center; }
.kc-hint { font-size: 11.5px; color: var(--ink-3); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti span { position: absolute; top: -40px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .9; } }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); font-size: 22px; font-weight: 700; }
.stepper-num { min-width: 44px; text-align: center; font-size: 20px; font-weight: 800; }
.thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.reward-prev { width: 160px; height: 120px; border-radius: 16px; background: #fdeee6; display: grid; place-items: center; font-size: 54px; overflow: hidden; }
.reward-prev img { width: 100%; height: 100%; object-fit: cover; }

/* Urlaub */
.leave-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.leave-card { background: var(--card); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 4px 0 0 var(--c); }
.lv-name { font-weight: 700; }
.lv-big { font-size: 28px; font-weight: 900; line-height: 1.1; }
.lv-big small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lv-sub { font-size: 12px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); margin: 4px 2px 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lgd { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lgd.hol { background: #fff; box-shadow: inset 0 0 0 2px #c8382f; }
.lgd.school { background: #d9f0dd; }
.lgd.kita { background: #e7d9f7; }
.lgd.trip { background: #2fa59b; }
.lgd.leave { background: linear-gradient(transparent 65%, #e2673f 65%); background-color: #fff; }
.year-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .year-grid { grid-template-columns: repeat(3, 1fr); } }
.ymonth { background: var(--card); border-radius: 14px; padding: 8px 6px 6px; }
.ym-title { font-weight: 800; font-size: 13.5px; padding: 0 4px 4px; }
.ym-wd, .ym-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ym-wd span { font-size: 9px; color: var(--ink-3); text-align: center; font-weight: 700; }
.yd { position: relative; height: 22px; font-size: 10.5px; display: grid; place-items: center; border-radius: 5px; font-weight: 600; color: var(--ink); }
.yd.empty { visibility: hidden; }
.yd.we { color: var(--ink-3); }
.yd.school { background: #d9f0dd; }
.yd.kita { background: #e7d9f7; }
.yd.trip { background: #2fa59b; color: #fff; }
.yd.hol { color: #c8382f; font-weight: 900; box-shadow: inset 0 0 0 1.5px #c8382f; }
.yd.today { outline: 2px solid var(--ink); outline-offset: -1px; }
.lbars { position: absolute; left: 2px; right: 2px; bottom: 1px; display: flex; gap: 1px; }
.lbars i { flex: 1; height: 3px; border-radius: 2px; }
.fold { padding: 12px 16px; }
.fold summary { font-weight: 700; cursor: pointer; padding: 2px 0; }
.kind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 0 12px; }
.kind-grid button { background: var(--bg); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; border: 2px solid transparent; }
.kind-grid button span { font-size: 24px; }
.kind-grid button.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Stufe 4+5: Essen ---------- */
.qa-btn.mic { background: var(--bg); color: var(--ink); font-size: 20px; }
.qa-btn.mic.rec { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.amt { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.plan-day { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.plan-day:first-of-type { border-top: 0; }
.plan-day.today .pd-label { color: var(--accent); }
.pd-label { width: 64px; flex: none; font-weight: 800; font-size: 14px; }
.pd-label small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.pd-meals { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pd-meal { text-align: left; background: var(--accent-soft); border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 14.5px; }
.sugg { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 8px; border: 2px solid transparent; }
.sugg.on { border-color: var(--accent); }
.sugg .body { flex: 1; min-width: 0; cursor: pointer; }
.sugg .title { font-weight: 700; font-size: 16px; }
.sugg .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.sugg .check { margin-top: 2px; }
.tag.offer { background: #fff1c9; color: #8a5a00; }
.steps { padding-left: 20px; margin: 6px 0 12px; line-height: 1.5; }
.steps li { margin-bottom: 6px; }
.sub { font-size: 13px; color: var(--ink-2); }

/* ---------- Tablet / Querformat ---------- */
.kid-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
@media (min-width: 900px) {
  .nav {
    top: 0; bottom: 0; left: 0; right: auto; width: 88px; flex-direction: column; justify-content: flex-start;
    padding: 18px 6px; gap: 4px; border-top: 0; border-right: 1px solid var(--line);
  }
  .nav button { flex: none; max-width: none; width: 100%; padding: 10px 0; font-size: 11.5px; border-radius: 14px; }
  .nav button.on { background: var(--accent-soft); }
  .screen { max-width: 1320px; padding: 0 28px 40px 116px; }
  .fab { right: 32px; bottom: 32px; }
  #toast { bottom: 40px; }
  /* Kalender: Monat links, Tagesliste rechts */
  #cal { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); column-gap: 22px; align-items: start; }
  #cal > .topbar, #cal > .filterbar { grid-column: 1 / -1; }
  #cal > .agenda { margin-top: 0; position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 4px; }
  #cal > .agenda h2:first-child { margin-top: 2px; }
  .day { min-height: max(70px, calc((100vh - 230px) / 6)); padding: 4px; }
  .day .n { font-size: 14px; }
  .pill { font-size: 12px; padding: 2px 6px; }
  .task-grid, .reward-grid, .kid-cards, .list-grid, .leave-cards { grid-template-columns: repeat(4, 1fr); }
  .year-grid { grid-template-columns: repeat(4, 1fr); }
  .tt-emoji { font-size: 60px; }
  .who-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1250px) {
  .task-grid, .reward-grid { grid-template-columns: repeat(5, 1fr); }
  .year-grid { grid-template-columns: repeat(6, 1fr); }
}
/* Handy quer: wenig Höhe */
@media (orientation: landscape) and (max-height: 560px) {
  .day { min-height: 44px; }
  .who-grid { grid-template-columns: repeat(4, 1fr); gap: 14px 24px; }
  .avatar.xl { width: 76px; height: 76px; font-size: 28px; }
  .login { justify-content: flex-start; padding-top: 16px; }
  .jar { width: 110px; height: 110px; }
  .jar-num { font-size: 42px; }
}
.sugg-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; cursor: pointer; }
.recipe-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; margin-top: 6px; }
