/* ===== Farben ===== */
:root {
  --p-light: #2e7d4f;
  --p-dark: #5cbf86;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #eceeea;
  --text: #1b1f1c;
  --muted: #646d67;
  --border: #dde1dc;
  --danger: #c62828;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 20px rgb(0 0 0 / .05);
  --primary: var(--p-light);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, var(--surface));
  --on-primary: #ffffff;
  --radius: 16px;
  --topbar-h: 56px;
  --tabbar-h: 62px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-mode="hell"]) {
    --bg: #111312;
    --surface: #1b1e1c;
    --surface-2: #262a27;
    --text: #e7eae8;
    --muted: #98a19c;
    --border: #2e3330;
    --danger: #ef6b6b;
    --shadow: none;
    --primary: var(--p-dark);
    --on-primary: #0c120e;
    color-scheme: dark;
  }
  :root:not([data-mode="hell"]) .uc { --c: var(--c-d); }
}
:root[data-mode="dunkel"] {
  --bg: #111312;
  --surface: #1b1e1c;
  --surface-2: #262a27;
  --text: #e7eae8;
  --muted: #98a19c;
  --border: #2e3330;
  --danger: #ef6b6b;
  --shadow: none;
  --primary: var(--p-dark);
  --on-primary: #0c120e;
  color-scheme: dark;
}
:root[data-mode="dunkel"] .uc { --c: var(--c-d); }

/* Farbschemata (müssen zu public/shared/themes.js passen) */
:root[data-theme="blau"] { --p-light: #2563eb; --p-dark: #7aa7ff; }
:root[data-theme="koralle"] { --p-light: #d9482f; --p-dark: #ff8a75; }
:root[data-theme="lila"] { --p-light: #7c3aed; --p-dark: #b09afc; }
:root[data-theme="petrol"] { --p-light: #0f766e; --p-dark: #2dd4bf; }
:root[data-theme="orange"] { --p-light: #c2570c; --p-dark: #fb9a4b; }
:root[data-theme="rosa"] { --p-light: #c0266d; --p-dark: #f472b6; }
:root[data-theme="schiefer"] { --p-light: #475569; --p-dark: #a3b1c6; }

/* Kennfarbe einer Person */
.uc { --c: var(--c-l); }
.c-gruen { --c-l: #2e7d4f; --c-d: #5cbf86; }
.c-blau { --c-l: #2563eb; --c-d: #7aa7ff; }
.c-koralle { --c-l: #d9482f; --c-d: #ff8a75; }
.c-lila { --c-l: #7c3aed; --c-d: #b09afc; }
.c-petrol { --c-l: #0f766e; --c-d: #2dd4bf; }
.c-orange { --c-l: #c2570c; --c-d: #fb9a4b; }
.c-rosa { --c-l: #c0266d; --c-d: #f472b6; }
.c-schiefer { --c-l: #475569; --c-d: #a3b1c6; }

/* ===== Grundlagen ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ic { flex: none; display: block; }

/* ===== Rahmen ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 6px 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.topbar h1 {
  flex: 1;
  min-width: 0;
  margin: 0 10px;
  font-size: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar #back + h1 { margin-left: 0; }
.top-actions { display: flex; }

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 96px);
}

.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
}
.tabbar a.active { color: var(--primary); }

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.sync-badge.offline { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }

/* ===== Bedienelemente ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: .55; }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--on-primary); }
.btn.soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; border-radius: 11px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.btn-row .btn { flex: 1; }

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn:disabled { opacity: .3; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
}
textarea { min-height: 110px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--primary); }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; }

.field { display: flex; flex-direction: column; gap: 5px; grid-column: 1 / -1; }
.field.half { grid-column: span 1; }
.field > label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field small { color: var(--muted); }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chip {
  flex: none;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.active { background: var(--primary); border-color: transparent; color: var(--on-primary); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 13px; background: var(--surface-2); }
.seg button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 500; }
.seg button.active { background: var(--surface); box-shadow: var(--shadow); font-weight: 700; }

.fab {
  position: fixed;
  right: max(16px, calc(50vw - 304px));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 25;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 19px;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 20px rgb(0 0 0 / .22);
  text-decoration: none;
}

/* ===== Karten & Zeilen ===== */
.card {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 22px 4px 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title a { display: inline-flex; align-items: center; gap: 2px; color: inherit; text-decoration: none; }
.section-title .grow { flex: 1; }
.section-title .icon-btn { width: 34px; height: 34px; color: var(--muted); }

.rows { margin: 0; padding: 0; list-style: none; }
.rows > * + * { border-top: 1px solid var(--border); }

.row-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.row-link > .ic:first-child { color: var(--primary); }
.row-link .grow { flex: 1; min-width: 0; }
.row-link .sub { display: block; color: var(--muted); font-size: .85rem; }
.count {
  min-width: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}
.count.hot { background: var(--primary-soft); color: var(--primary); }

.empty { padding: 40px 16px; color: var(--muted); text-align: center; }
.empty-small { margin: 4px 4px 0; color: var(--muted); }
.empty-small.pad { margin: 0; padding: 14px 16px; }
.loading { display: grid; place-items: center; padding: 60px 0; color: var(--primary); }
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hello { margin: 10px 4px 4px; font-size: 1.35rem; font-weight: 700; }
.hello .muted { font-size: 1rem; font-weight: 500; }

/* ===== Listen-Einträge ===== */
.add-bar {
  position: sticky;
  top: calc(var(--topbar-h) + env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 4px 16px 10px;
  background: var(--bg);
}
.add-bar input { flex: 1; }
.add-bar .btn { width: 46px; padding: 0; }

.store-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.store-bar label { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.store-bar select { min-height: 40px; padding: 6px 10px; font-weight: 600; }

.items { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.item { display: flex; align-items: center; min-height: 54px; padding-right: 12px; }
.item + .item { border-top: 1px solid var(--border); }
.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.check span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  color: transparent;
  transition: background .15s, border-color .15s;
}
.done .check span, .check.on span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.item-main {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.item-text { display: block; overflow-wrap: anywhere; }
.item-text b { font-weight: 700; }
.item-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .82rem; }
.item.done .item-text { color: var(--muted); text-decoration: line-through; }
.item.pending .item-text::after { content: " ⟳"; color: var(--muted); font-size: .8em; }

.group-h { display: flex; align-items: center; gap: 8px; margin: 18px 4px 6px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.group-h:first-child { margin-top: 4px; }
.group-h.overdue { color: var(--danger); }

.done-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin: 18px 0 8px; padding: 6px 4px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; }
.done-toggle .grow { flex: 1; text-align: left; }

.who { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.due.overdue { color: var(--danger); font-weight: 600; }
.due.today { color: var(--primary); font-weight: 600; }

/* ===== Kalender ===== */
.cal-head { display: flex; align-items: center; gap: 4px; margin: 4px 0 8px; }
.cal-head h2 { flex: 1; margin: 0 6px; font-size: 1.15rem; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cal-grid .wd { padding: 2px 0 6px; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
}
.day.other { opacity: .38; }
.day.today .n { color: var(--primary); font-weight: 800; }
.day.sel { background: var(--primary); color: var(--on-primary); }
.day.sel .n { color: inherit; }
.dots { display: flex; gap: 3px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.day.sel .dots i { background: currentColor; }

.ev {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}
.ev + .ev { border-top: 1px solid var(--border); }
.ev .bar { flex: none; width: 4px; border-radius: 2px; background: var(--c); }
.ev-main { display: flex; flex-direction: column; min-width: 0; }
.ev-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ev-meta { color: var(--muted); font-size: .85rem; }

/* ===== Rezepte ===== */
.recipe-head h2 { margin: 6px 0 4px; font-size: 1.5rem; }
.servings { display: flex; align-items: center; gap: 6px; }
.servings .icon-btn { width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface); }
.servings b { min-width: 2ch; font-size: 1.1rem; text-align: center; }
.ing-list { margin: 0; padding: 0; list-style: none; }
.ing-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; }
.ing-list li + li { border-top: 1px solid var(--border); }
.ing-list .qty { flex: none; min-width: 5.5em; font-weight: 700; }
.ing-list label { display: flex; gap: 10px; align-items: center; width: 100%; }
.ing-list input:checked ~ span { color: var(--muted); text-decoration: line-through; }
.instructions { margin: 0; font-size: 1.05rem; line-height: 1.65; white-space: pre-line; }

.ing-edit { display: grid; grid-template-columns: 68px 84px 1fr 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.ing-edit input { min-height: 42px; padding: 8px; }
.ing-edit .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.ing-warn { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 6px; color: var(--danger); font-size: .88rem; font-weight: 600; }
.warn-box { margin: 8px 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-weight: 600; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }

.preview-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.preview-row + .preview-row { border-top: 1px solid var(--border); }
.preview-row .grow { flex: 1; min-width: 0; }
.preview-row .merge { display: block; color: var(--primary); font-size: .85rem; }
.preview-row.off .grow { opacity: .5; }

.ai-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }

/* ===== Einstellungen ===== */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 46px;
  height: 46px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.swatch.active { border-color: var(--text); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: .85rem; }

.order-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 14px; }
.order-row + .order-row { border-top: 1px solid var(--border); }
.order-row .grow { flex: 1; }
.order-row .pos { width: 1.6em; color: var(--muted); font-size: .85rem; font-weight: 700; }

/* ===== Login ===== */
.auth { max-width: 380px; margin: 9vh auto 0; text-align: center; }
.auth h1 { margin: 12px 0 6px; }
.auth form { margin-top: 22px; text-align: left; }
.auth-logo { border-radius: 18px; }
.auth-or { margin: 14px 0 10px; }

/* ===== Dialog als Bottom-Sheet ===== */
dialog#sheet {
  width: 100%;
  max-width: 640px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
dialog#sheet[open] { animation: up .2s ease-out; }
dialog::backdrop { background: rgb(0 0 0 / .45); }
@keyframes up { from { transform: translateY(30%); opacity: .4; } }
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 8px 6px 18px;
  background: var(--surface);
}
.sheet-head h2 { margin: 8px 0 0; font-size: 1.15rem; }
.sheet-head p { margin: 4px 0 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 8px 18px; }
.sheet-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
}
.sheet-foot .btn.primary { flex: 1; }
.menu { display: flex; flex-direction: column; padding: 4px 10px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
}
.menu-item:active { background: var(--surface-2); }
.menu-item.danger { color: var(--danger); }

/* ===== Hinweise ===== */
#toast {
  position: fixed;
  inset: auto 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 6px 20px rgb(0 0 0 / .2);
  font-weight: 500;
  transition: opacity .35s;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; }

/* ===== Geld: Haushaltsbuch, Bons, Preise, Angebote ===== */
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tabbar a { font-size: .66rem; }
.chips a.chip { text-decoration: none; }
.big-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.bars { display: block; width: 100%; height: 90px; margin-top: 10px; }
.bars rect { fill: color-mix(in srgb, var(--primary) 35%, var(--surface)); }
.bars rect.hl { fill: var(--primary); }
.bar-labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 4px; color: var(--muted); font-size: .75rem; text-align: center; }
.bar-labels .hl { color: var(--primary); font-weight: 700; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 6px 0; }
.share-row .share { grid-column: 1 / -1; }
.share { display: block; width: 100%; height: 6px; }
.share rect { fill: var(--primary); }
.share rect.bg { fill: var(--surface-2); }
.cat-icon { flex: none; width: 24px; text-align: center; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .8rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .icon-btn { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; background: rgb(0 0 0 / .55); color: #fff; }
.receipt-img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.fields.flat { padding: 0; margin-bottom: 8px; }
.badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .78rem; font-weight: 600; }
.badge.good { background: var(--primary-soft); color: var(--primary); }
.row-link .badge { display: table; }
.price-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 12px; margin-top: 8px; align-items: baseline; }
.price-grid .best { color: var(--primary); font-weight: 700; }
.line { display: block; width: 100%; height: 90px; margin-top: 6px; }
.line polyline { fill: none; stroke: var(--primary); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.line circle { fill: var(--primary); }
.line-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
label.btn { cursor: pointer; }

/* ===== Priorität & Kinder ===== */
.item.prio-high { box-shadow: inset 4px 0 0 var(--danger); }
.prio-high .item-text, .prio-high .ev-title, .prio-high .t-title { color: var(--danger); font-weight: 700; }
.ev.prio-high .bar { background: var(--danger); }
.prio-low .item-text, .prio-low .ev-title { color: var(--muted); }
.chip.imp.active { background: var(--danger); color: #fff; }
.dots i.imp { background: var(--danger); }
.day.sel .dots i.imp { background: #fff; }
.ev-members { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.item-sub .who + .who { margin-left: 2px; }

/* Wünsche & Anschaffungen */
.wish { gap: 8px; padding-right: 6px; }
.wish .wish-main { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wish .t-title { display: block; font-weight: 600; }
.wish .icon-btn { flex: none; width: 38px; height: 38px; color: var(--muted); }
.wish.prio-high { box-shadow: inset 4px 0 0 var(--danger); }
.wish.prio-low .t-title { color: var(--muted); font-weight: 500; }
.danger-text { color: var(--danger); }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
