:root {
  --bg: #F4F6F4; --surface: #FFFFFF; --surface2: #EEF2EF; --ink: #0F1A14; --sub: #5A6860; --line: #E2E8E4; --line-strong: #B8C5BD;
  --accent: #1E6B4F; --on-accent: #FFFFFF; --accent-soft: #DDEEE5; --accent-ink: #17573F;
  --sun: #FF8A3D; --on-sun: #1A0D03; --sun-soft: #FFE9D9; --sun-ink: #A1450B;
  --hero: #0F2E22; --on-hero: #FFFFFF; --hero-sub: #A9CDBC;
  --shadow: 0 1px 2px rgba(20,24,30,.05), 0 8px 24px rgba(20,24,30,.06);
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { --shadow: 0 1px 2px rgba(0,0,0,.35); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
body { transition: background-color .2s; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.screen { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 22px) 18px calc(env(safe-area-inset-bottom, 0px) + 130px); display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--sub); }
h1 { margin: 4px 0 0; font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
h2 { margin: 6px 0 0; font-family: var(--display); font-size: 20px; font-weight: 800; }
.card { background: var(--surface); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.muted { color: var(--sub); font-size: 14px; }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.hero { position: relative; overflow: hidden; background: var(--hero); color: var(--on-hero); border-radius: 28px; padding: 20px; border: none; text-align: left; width: 100%; }
.hero .sub { color: var(--hero-sub); }
.hero .deco { position: absolute; right: -40px; top: -50px; width: 180px; height: 180px; pointer-events: none; }
.big { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }

.btn { border: none; border-radius: 16px; padding: 14px 18px; font-weight: 700; font-size: 15px; background: var(--accent); color: var(--on-accent); min-height: 48px; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.ghost { background: var(--surface2); color: var(--ink); }
.btn.danger { background: transparent; color: #B42318; }
:root[data-theme="dark"] .btn.danger { color: #FF8A80; }
.btn.block { width: 100%; }
.icon-btn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn.solid { border: none; background: var(--accent); color: var(--on-accent); width: 52px; height: 52px; border-radius: 18px; }
.link { border: none; background: none; color: var(--accent-ink); font-weight: 700; font-size: 15px; padding: 10px 0; }

.input, .select, .textarea { width: 100%; min-height: 52px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 16px; }
.textarea { padding: 14px 16px; min-height: 90px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; color: var(--sub); }
.check-line { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.check-line input { width: 22px; height: 22px; accent-color: var(--accent); }

.avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatars { display: inline-flex; }
.avatars .avatar { margin-right: -8px; border: 2.5px solid var(--bg); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { text-align: left; border: none; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.tile .num { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; }
.tile .lbl { font-size: 13px; font-weight: 600; color: var(--sub); }
.tile .ic { color: var(--accent-ink); }
.tile.sun { background: var(--sun-soft); color: var(--sun-ink); box-shadow: none; }
.tile.sun .lbl { color: var(--sun-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px dashed var(--line-strong); background: transparent; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.pick { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px 8px 8px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pick .avatar { width: 24px; height: 24px; font-size: 10px; }
.pick.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-ink); }
.pick.plain { padding: 9px 14px; }

.cat { font-size: 13px; font-weight: 700; color: var(--sub); margin: 4px 0 8px; }
.list { background: var(--surface); border-radius: 22px; padding: 4px 14px; box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item.tap { cursor: pointer; }
.check { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; border: 2px solid var(--line-strong); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--on-accent); }
.check.round { border-radius: 50%; }
.check.on { background: var(--accent); border-color: var(--accent); }
.item.done .name { text-decoration: line-through; color: var(--sub); }
.name { font-size: 16px; font-weight: 600; }
.meta { font-size: 13px; color: var(--sub); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta.late { color: #B42318; font-weight: 700; }
:root[data-theme="dark"] .meta.late { color: #FF8A80; }
.del { border: none; background: none; color: var(--sub); padding: 8px; }

.seg { display: flex; background: var(--surface2); border-radius: 16px; padding: 4px; }
.seg button { flex: 1; border: none; border-radius: 12px; padding: 10px 12px; font-weight: 700; background: transparent; color: var(--sub); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { border: none; border-radius: 18px; padding: 10px 0 8px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.day .d { font-size: 12px; font-weight: 700; opacity: .8; }
.day .n { font-family: var(--display); font-size: 20px; font-weight: 800; }
.day .dots { display: flex; gap: 3px; height: 6px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; }
.day.today .n { color: var(--accent-ink); }
.day.on { background: var(--accent); color: var(--on-accent); }
.day.on .n { color: var(--on-accent); }
.event { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); border: none; text-align: left; width: 100%; color: var(--ink); }
.event .time { width: 62px; flex-shrink: 0; font-family: var(--display); font-size: 18px; font-weight: 800; }

.pin { border-radius: 22px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); box-shadow: var(--shadow); }
.pin.sun { background: var(--sun-soft); box-shadow: none; border: none; width: 100%; text-align: left; color: var(--ink); }
.pin .text { font-size: 16px; font-weight: 600; line-height: 1.4; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }

.schemes { display: flex; flex-direction: column; gap: 10px; }
.scheme { border: 2px solid var(--line); border-radius: 22px; padding: 8px; background: var(--surface); display: flex; align-items: center; gap: 14px; text-align: left; }
.scheme.on { border-color: var(--accent); }
.scheme .pv { width: 96px; height: 64px; flex-shrink: 0; border-radius: 16px; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.scheme .pv b { display: block; flex: 1; border-radius: 9px; }
.scheme .pv span { display: flex; gap: 5px; height: 18px; }
.scheme .pv span i { border-radius: 6px; }
.scheme .t { font-size: 16px; font-weight: 800; }

.fab { position: fixed; right: max(18px, calc(50% - 302px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); width: 62px; height: 62px; border-radius: 22px; border: none; background: var(--sun); color: var(--on-sun); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); z-index: 20; }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 10px); }
nav.tabs button { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--sub); font-size: 12px; font-weight: 700; padding: 4px 0; position: relative; }
nav.tabs .pill { width: 54px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
nav.tabs button.on { color: var(--accent-ink); }
nav.tabs button.on .pill { background: var(--accent-soft); }
nav.tabs .badge { position: absolute; top: 0; left: 50%; margin-left: 8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--sun); color: var(--on-sun); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; border: none; background: rgba(10,14,20,.45); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 30px 30px 0 0; padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 24px); display: flex; flex-direction: column; gap: 14px; animation: rise .25s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); align-self: center; }
.sheet .input, .sheet .textarea { background: var(--surface2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 13px 18px; border-radius: 16px; font-size: 14px; font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; }
.error { color: #B42318; font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .error { color: #FF8A80; }
.empty { text-align: center; padding: 26px 18px; }
.version { text-align: center; font-size: 13px; color: var(--sub); margin-top: 8px; }
.gtag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--surface2); color: var(--sub); }

/* schlanke Kopfzeile (Startseite) */
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar .today { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.topbar .wx { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sub); margin-top: 2px; }
.topbar .avatars .avatar { border-color: var(--bg); }
.tipline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sun-ink); background: var(--sun-soft); border-radius: 14px; padding: 9px 12px; margin-top: -4px; }
.tipline svg { flex-shrink: 0; }

/* Strichcode-Scanner (Kamerabild, deshalb feste dunkle Fläche statt Farbschema) */
.scanbox { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox .frame { position: absolute; left: 10%; right: 10%; top: 28%; bottom: 28%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }

/* Kalender: Ansichtswahl und Personenfilter */
.vseg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 16px; padding: 4px; border: 1px solid var(--line); }
.vseg button { border: none; background: none; border-radius: 12px; padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--sub); }
.vseg button.on { background: var(--accent-soft); color: var(--accent-ink); }
.filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.filter::-webkit-scrollbar { display: none; }
.filter .pick { white-space: nowrap; flex-shrink: 0; }

/* Kalender: Monat */
.month { background: var(--surface); border-radius: 24px; padding: 12px 8px 8px; box-shadow: var(--shadow); }
.month .wd { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; font-weight: 700; color: var(--sub); text-align: center; margin-bottom: 6px; }
.month .wd span:nth-child(n+6) { color: var(--line-strong); }
.month .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mday { border: none; background: none; border-radius: 14px; padding: 6px 2px 5px; min-height: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.mday .n { font-family: var(--display); font-size: 15px; font-weight: 800; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mday.other { color: var(--line-strong); }
.mday.we:not(.other) { color: var(--sub); }
.mday.today .n { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-ink); }
.mday.on .n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.mday .bars { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 3px; }
.mday .bars i { display: block; height: 4px; border-radius: 2px; }
.mday .bars i.more { height: auto; font-size: 10px; font-weight: 800; color: var(--sub); font-style: normal; text-align: center; line-height: 1; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--sub); font-weight: 600; padding: 0 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* Kalender: Tag (Zeitleiste) */
.allday { display: flex; flex-wrap: wrap; gap: 8px; }
.allday .chip { border: none; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.allday .chip .avatar { width: 20px; height: 20px; font-size: 9px; }
.timeline { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 18px 0 10px; }
.hours { position: relative; }
.hour { position: absolute; left: 0; right: 0; display: flex; align-items: flex-start; }
.hour span { width: 52px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--sub); text-align: right; padding-right: 10px; transform: translateY(-7px); }
.hour:after { content: ''; flex: 1; border-top: 1px solid var(--line); margin-right: 8px; }
.blk { position: absolute; border-radius: 14px; padding: 7px 10px; font-size: 14px; font-weight: 700; line-height: 1.25; border: none; border-left: 4px solid; overflow: hidden; text-align: left; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.blk .bt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.blk .t { font-size: 12px; font-weight: 600; color: var(--sub); display: block; white-space: nowrap; }
.blk.tight { padding: 4px 10px; flex-direction: row; align-items: center; gap: 8px; }
.blk.tight .t { display: none; }
.blk .ppl { position: absolute; right: 8px; top: 7px; }
.blk .ppl .avatar { width: 22px; height: 22px; font-size: 9px; margin-right: -6px; border: 2px solid var(--surface); }
.now { position: absolute; left: 52px; right: 8px; border-top: 2px solid var(--sun); z-index: 2; pointer-events: none; }
.now:before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }

/* Kalender: Liste */
.lday { display: flex; gap: 12px; align-items: flex-start; }
.lday .dcol { width: 52px; flex-shrink: 0; text-align: center; background: var(--surface); border-radius: 16px; padding: 8px 0 6px; box-shadow: var(--shadow); border: none; color: var(--ink); }
.lday .dcol.today { background: var(--accent); color: var(--on-accent); }
.lday .dcol .d { font-size: 11px; font-weight: 700; opacity: .8; }
.lday .dcol .n { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.1; }
.lday .items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.litem { background: var(--surface); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; border: none; border-left: 4px solid; text-align: left; width: 100%; color: var(--ink); }
.litem .tm { font-size: 12px; font-weight: 700; color: var(--sub); width: 58px; flex-shrink: 0; }
.litem .nm { font-weight: 700; }
.sticky { position: sticky; top: 0; background: var(--bg); padding: 8px 0 4px; z-index: 3; font-size: 13px; font-weight: 700; color: var(--sub); }


/* Startseite: Begrüßung, Tagesüberblick, Wochenstreifen */
.greet { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.sum { color: var(--sub); font-size: 14px; font-weight: 600; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.sum span, .sum button { display: inline-flex; align-items: center; gap: 4px; }
.sum b { color: var(--ink); }
.plainbtn { border: none; background: none; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; width: 100%; display: block; cursor: pointer; }
.hero .avatars .avatar { border-color: var(--hero); }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.strip button { border: none; background: var(--surface); border-radius: 14px; padding: 8px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); min-height: 58px; }
.strip .d { font-size: 11px; font-weight: 700; color: var(--sub); }
.strip .n { font-family: var(--display); font-size: 17px; font-weight: 800; line-height: 1; }
.strip .dots { display: flex; gap: 3px; height: 5px; }
.strip .dots i { width: 5px; height: 5px; border-radius: 50%; }
.strip button.today { background: var(--accent); color: var(--on-accent); }
.strip button.today .d { color: var(--on-accent); opacity: .85; }
.strip button.today .dots i { background: var(--on-accent) !important; }
.nudge { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 20px; padding: 12px 14px; }
.nudge b { display: block; }
.nudge .small { opacity: .85; }
.nudge .del { color: var(--accent-ink); }
.meal { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); border: none; width: 100%; text-align: left; color: var(--ink); }
.meal .ph { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; overflow: hidden; display: block; }
.meal .ph img, .meal .ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pinnwand: Reaktionen, „gesehen von“, Antworten */
.react { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.react button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; min-height: 34px; transition: transform .15s; }
.react button.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-ink); }
.react button:active { transform: scale(1.15); }
.react .seen { font-size: 12px; color: var(--sub); font-weight: 600; margin-left: auto; }
.pin.sun .react .seen { color: var(--sun-ink); }
.quote { font-size: 13px; color: var(--sub); border-left: 3px solid var(--line-strong); padding: 2px 0 2px 10px; margin: 6px 0 2px; line-height: 1.35; }

/* Leere Zustände mit kleiner Zeichnung */
.empty .ill { width: 72px; height: 72px; margin: 0 auto 8px; display: block; }

/* Abhaken mit Gefühl */
.check { transition: background .18s, border-color .18s; }
.check svg { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .25s ease-out .05s; }
.check.on svg { stroke-dashoffset: 0; }
.check.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.item.leaving { animation: leave .35s ease-in forwards; overflow: hidden; }
@keyframes leave { from { max-height: 140px; } to { opacity: 0; transform: translateX(-30px); max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; } }

/* Einkauf: Vorschläge, Kategoriepunkte, Wischen zum Löschen */
.chip.hit { border-style: solid; border-color: var(--accent-ink); background: var(--accent-soft); color: var(--accent-ink); }
.cat { display: flex; align-items: center; gap: 7px; }
.cat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.list.swipes { padding: 0; overflow: hidden; }
.swipe { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: inherit; }
.swipe:first-child { border-top: none; }
.swipe .item { border-bottom: none; padding: 12px 14px; transition: transform .2s; touch-action: pan-y; background: inherit; position: relative; }
.swipe .del { position: absolute; right: 0; top: 0; bottom: 0; width: 84px; background: #C8402F; color: #fff; border: none; border-radius: 0; font-weight: 800; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; padding: 0; }
.swipe.open .del { opacity: 1; }

/* Meldung mit „Rückgängig“ */
#toast button { border: none; background: none; color: var(--sun); font-weight: 800; font-size: 14px; padding: 0 0 0 14px; }

/* Kalender: Mülltonne rechts oben in der Tageszelle */
.mday, .day { position: relative; }
.wmark { position: absolute; top: 4px; right: 5px; display: flex; gap: 1px; pointer-events: none; }
.wmark span { display: flex; }
.day.on .wmark span { color: var(--on-accent) !important; }

/* Familie: Avatar, Symbol in Monat (unten) und Woche (Punktreihe) */
.avatar.fam { color: #fff; }
.avatar.fam svg { display: block; }
.mday { min-height: 70px; padding-bottom: 18px; }
.fmark { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); display: flex; pointer-events: none; }
.fdot { display: inline-flex; align-items: center; margin-left: 1px; }
.fdot svg { display: block; }
/* Einstellungen: Farbwahl */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 52px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; padding: 0; box-shadow: inset 0 0 0 2px var(--surface); }
.swatch.on { border-color: var(--ink); }
/* Blatt: Schließen-Kreuz; Datum/Uhrzeit am iPhone nicht breiter als das Blatt */
.sheet { overflow-x: hidden; }
.sheet-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 14px; border: none; background: var(--surface2); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.sheet .grab { margin-bottom: 6px; }
.field { min-width: 0; }
.input, .select, .textarea { min-width: 0; max-width: 100%; }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }
input::-webkit-date-and-time-value { text-align: left; }

/* Kalender-Kopf: Monat und Jahr immer einzeilig, sonst springt das Raster zwischen den Monaten */
.calhead h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calhead .icon-btn { width: 44px; height: 44px; }

/* Einkauf: Stückzahl-Marke, Artikel-Blatt mit − +, Wischen nach rechts = eingekauft */
.qty { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 8px; margin-left: 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; vertical-align: 2px; }
.step { display: flex; align-items: center; gap: 10px; }
.step button { width: 64px; height: 56px; border-radius: 18px; border: none; background: var(--accent-soft); color: var(--accent-ink); font-size: 28px; font-weight: 800; }
.step .n { flex: 1; text-align: center; font-family: var(--display); font-size: 34px; font-weight: 800; }
.swipe .ok { position: absolute; left: 0; top: 0; bottom: 0; width: 84px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.swipe.openr .ok { opacity: 1; }
.swipe .item .grow { cursor: pointer; }

/* Monat: dezentes Linienraster zwischen den Tagen */
.month .grid { gap: 0; }
.mday { border-radius: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mday:nth-child(7n) { border-right: none; }
.mday:nth-last-child(-n+7) { border-bottom: none; }
.month .wd { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
