/* Familienplaner – Stil: flach und bunt mit dicken schwarzen Konturen (Cartoon-Look), bewusst OHNE Schatten und Weichzeichner. */
:root {
  --sky: #78cdf7;
  --yellow: #ffd90f;
  --line: #17171a;
  --bg: #e6f6ff;            /* helle Himmelsfläche für Chat-Hintergründe */
  --card: #ffffff;
  --text: #17171a;
  --muted: #4b5563;
  --accent: #2f9e44;        /* Füllfarbe grün */
  --accent-ink: #1b6e2f;    /* grün für Schrift auf Weiß */
  --error: #d7261e;
  --radius: 22px;
  --bw: 3px;
  --topbar: 68px; --tabs: 50px;
  --clouds: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420'><g fill='%23ffffff'><circle cx='120' cy='96' r='34'/><circle cx='160' cy='78' r='44'/><circle cx='210' cy='92' r='38'/><circle cx='244' cy='104' r='26'/><rect x='96' y='96' width='160' height='34' rx='17'/><circle cx='430' cy='290' r='30'/><circle cx='468' cy='272' r='40'/><circle cx='514' cy='288' r='34'/><circle cx='546' cy='300' r='24'/><rect x='404' y='290' width='160' height='34' rx='17'/></g></svg>");
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); }
body {
  background: var(--sky) var(--clouds) 0 0 / 640px 420px repeat;
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
#app { min-height: 100%; display: flex; flex-direction: column; }

/* Schrift mit schwarzer Kontur (Titel-Look) */
.outlined { color: #fff; -webkit-text-stroke: 3px var(--line); paint-order: stroke fill; letter-spacing: .01em; font-weight: 900; }

/* ---------- Avatar ---------- */
.avatar {
  --size: 64px;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%; border: var(--bw) solid var(--line);
  background: var(--c); color: #fff;
  display: grid; place-items: center;
  font-size: calc(var(--size) * .42); font-weight: 900;
  position: relative; overflow: hidden;
}
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 15%;
  transform: scale(1.3); transform-origin: 50% 28%;
  background: #fff;
}
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 4px var(--c); } /* Farbring (Rahmen, kein Schatten) */

/* ---------- Login ---------- */
.login {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; padding: 24px;
}
.login h1 { margin: 0; font-size: clamp(34px, 6vw, 60px); color: var(--yellow); -webkit-text-stroke: 4px var(--line); paint-order: stroke fill; font-weight: 900; }
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 4vw, 56px); }
.face {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; padding: 8px; border-radius: var(--radius);
}
.face .avatar { --size: clamp(100px, 16vw, 160px); transition: transform .15s; }
.face:active .avatar { transform: scale(.94); }
.face .name { font-size: 22px; font-weight: 900; background: #fff; border: var(--bw) solid var(--line); border-radius: 999px; padding: 3px 18px; }

.pin { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dots { display: flex; gap: 18px; }
.dots span { width: 20px; height: 20px; border-radius: 50%; border: var(--bw) solid var(--line); background: #fff; transition: background .1s; }
.dots span.on { background: var(--line); }
.msg { min-height: 24px; color: var(--error); font-weight: 700; text-align: center; }
.login .msg { background: #fff; border-radius: 999px; padding: 0 12px; }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.pad button {
  height: 76px; border: var(--bw) solid var(--line); border-radius: 50%;
  background: #fff; font-size: 28px; font-weight: 900;
}
.pad button:active { background: var(--yellow); }
.pad .ghost { background: transparent; border-color: transparent; font-size: 18px; color: var(--line); font-weight: 700; }

.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

/* ---------- Allgemein ---------- */
.btn {
  border: var(--bw) solid var(--line); border-radius: 14px; padding: 8px 16px;
  background: var(--yellow); color: var(--line); font-weight: 900;
}
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.light { background: #fff; }
.btn.danger { background: var(--error); color: #fff; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px 22px; border: var(--bw) solid var(--line); }
.card h3 { margin: 0 0 14px; font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.muted { color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: var(--topbar); padding: 0 22px;
  background: var(--yellow); border-bottom: var(--bw) solid var(--line);
  position: sticky; top: 0; z-index: 4;
}
.clock { display: flex; align-items: baseline; gap: 14px; }
.clock b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.clock span { font-size: 18px; font-weight: 700; }
.me { display: flex; align-items: center; gap: 12px; }
.me .avatar { --size: 44px; }
.topbar .btn { background: #fff; }
.topbar .btn#addEvent { background: var(--accent); color: #fff; }

/* ---------- Dashboard ---------- */
/* Die Seite füllt genau den Bildschirm: links drei gleich hohe Kacheln (je ein Drittel), rechts scrollt der Rest. */
.dash {
  height: calc(100vh - var(--topbar) - var(--tabs)); height: calc(100dvh - var(--topbar) - var(--tabs));
  display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 20px;
  padding: 18px 22px; overflow: hidden;
}
.people { display: grid; grid-template-rows: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; min-height: 0; }
.person {
  position: relative; display: flex; min-height: 0; overflow: hidden;
  border-radius: 26px; border: var(--bw) solid var(--line);
  /* flache Farbfläche + etwas dunklerer „Boden“ im unteren Zehntel (harte Kante, kein Verlauf) */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 50%, #fff) 0 90%, color-mix(in srgb, var(--c) 72%, #fff) 90% 100%);
}
.fig {
  position: relative; z-index: 1; flex: none; align-self: flex-end;
  height: 100%; width: auto; max-width: 46%; object-fit: contain; object-position: left bottom; pointer-events: none;
}
.p-body { position: relative; z-index: 2; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 8px 4px; }
.person:not(:has(.fig)) .p-body { padding-left: 18px; }
.p-name {
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; margin-bottom: 8px;
  color: #fff; -webkit-text-stroke: 3.5px var(--line); paint-order: stroke fill; font-weight: 900; letter-spacing: .01em;
}
.events {
  list-style: none; margin: 0; padding: 0 0 16px; flex: 1; min-width: 0; min-height: 0; font-size: 15px; font-weight: 600;
  overflow-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent);
}
.events::-webkit-scrollbar { display: none; }
.events li { padding: 3px 0; }
.events li.ev { display: grid; grid-template-columns: minmax(58px, max-content) 1fr; gap: 6px; line-height: 1.25; cursor: pointer; }
.events .day {
  display: inline-block; margin-top: 8px; padding: 1px 10px; border-radius: 999px;
  border: 2.5px solid var(--line); background: #fff; color: var(--line);
  font-weight: 900; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.events .day:first-child { margin-top: 0; }
.events .t { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 800; }
.events .family .tt::after { content: " 👨‍👩‍👧"; }

/* ---------- Dialog ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10;
  background: rgb(15 40 70 / .55);
  display: grid; place-items: center; padding: 16px;
}
.sheet {
  width: min(460px, 100%); max-height: 100%; overflow: auto;
  background: var(--card); border: var(--bw) solid var(--line); border-radius: 26px; padding: 24px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 14px;
}
.sheet h3 { margin: 0; font-size: 24px; font-weight: 900; }
.sheet p { margin: 0; }
.sheet label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: var(--muted); flex: 1; min-width: 0; }
.sheet input, .sheet select {
  font: inherit; font-size: 17px; color: var(--text); user-select: text;
  padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: 12px; background: #fff;
}
.sheet .check { flex-direction: row; align-items: center; gap: 10px; font-size: 17px; color: var(--text); }
.sheet .check input { width: 22px; height: 22px; }
.sheet .row { display: flex; gap: 12px; }
.sheet .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sheet input[type=time], .sheet input[type=date] { min-width: 0; width: 100%; box-sizing: border-box; }
.sheet .m-recipe { align-self: flex-start; }

/* ---------- Rezept-Lightbox ---------- */
.sheet.big { width: min(680px, 100%); max-height: calc(100vh - 32px); }
.sheet h4 { margin: 6px 0 0; font-size: 18px; font-weight: 900; color: var(--accent-ink); }
.r-meta { color: var(--muted); font-weight: 700; }
.r-ing, .r-steps { margin: 0; padding-left: 22px; line-height: 1.5; user-select: text; }
.r-ing { list-style: none; padding-left: 0; }
.r-ing li { padding: 3px 0; border-bottom: 2px solid rgb(0 0 0 / .1); display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 10px; }
.r-steps li { padding: 4px 0; }
.r-tip { background: #fff3a6; border: 2.5px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.r-src { font-size: 13px; }
.wp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 900; }
.wp-nav button { width: 44px; height: 38px; border: var(--bw) solid var(--line); border-radius: 12px; background: #fff; font-size: 22px; font-weight: 900; line-height: 1; }
.wp-nav button:disabled { opacity: .3; }
.wp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wp-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border: 2.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; font-weight: 800; }
.wp-day b { font-size: 15px; }
.wp-day.free { background: var(--accent); color: #fff; }
.wp-day.sel { background: var(--yellow); color: var(--line); outline: 3px solid var(--line); outline-offset: 2px; }
.wp-day.used { background: #d4d4d8; color: #52525b; border-color: #a1a1aa; }
.wp-day.past { background: #f4f4f5; color: #a1a1aa; border-color: #d4d4d8; }
.r-foot { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; bottom: -24px; background: var(--card); padding: 12px 0 0; }
.r-foot select { flex: 1 1 150px; min-width: 0; font: inherit; padding: 9px; border: var(--bw) solid var(--line); border-radius: 12px; background: #fff; }
.w-card-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.w-recipe, .w-plan { background: none; border: 0; padding: 4px 0; color: var(--accent-ink); font-weight: 900; text-align: left; }
.w-plan-box { margin-top: 8px; }
.w-plan-box[hidden] { display: none; }
.w-card .wp-nav { margin-bottom: 6px; font-size: 14px; }
.w-card .wp-nav button { height: 32px; width: 40px; }
.w-card .wp-days { gap: 4px; }
.w-card .wp-day { min-height: 50px; font-size: 12px; }

.rate-dish { font-size: 26px; font-weight: 900; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.stars button { border: 0; background: none; font-size: 54px; line-height: 1; color: #e4e4e7; padding: 2px 4px; -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; }
.stars button.on { color: var(--yellow); }

/* ---------- Externe Kalender + Wochenkalender ---------- */
.events li.ev.ext { cursor: default; }
.events li.ev.busy .tt { font-style: italic; color: #52525b; }
.wk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.wk-head h3 { margin: 0; }
.wk-nav { display: flex; gap: 6px; }
.wk-nav button { height: 36px; min-width: 40px; padding: 0 12px; border: var(--bw) solid var(--line); border-radius: 12px; background: #fff; font-weight: 900; font-size: 18px; }
.wk-nav #wk-today { font-size: 14px; background: var(--yellow); }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-day { border: 2.5px solid var(--line); border-radius: 14px; background: #fff; padding: 6px; min-height: 130px; min-width: 0; }
.wk-day h4 { margin: 0 0 4px; font-size: 14px; font-weight: 900; color: var(--line); }
.wk-day h4 span { font-weight: 700; color: var(--muted); font-size: 12px; }
.wk-day.today { background: #fff6bf; }
.wk-day.past { opacity: .6; }
.wk-ev { margin-top: 4px; padding: 2px 5px; border-left: 5px solid var(--c); border-radius: 5px; background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 12px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.wk-ev .w { font-weight: 900; font-variant-numeric: tabular-nums; }
.wk-ev.busy { font-style: italic; color: #52525b; }
.wk-none { text-align: center; }
.cal-row { border: var(--bw) solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.cal-top { display: flex; align-items: center; gap: 8px; }
.cal-top b { flex: 1; font-size: 18px; font-weight: 900; }
.cal-top .btn { padding: 2px 10px; }
.cal-meta { font-size: 13px; }
.cal-opts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sheet label.cal-chk { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--text); flex: none; }
.sheet .cal-chk input { width: 20px; height: 20px; padding: 0; border: 0; accent-color: var(--accent); }
.sheet details summary { cursor: pointer; font-weight: 800; }
@media (max-width: 900px) { .wk-grid { grid-template-columns: 1fr; } .wk-day { min-height: 0; } }

/* ---------- Rechteverwaltung ---------- */
.rights-user { border: var(--bw) solid var(--line); border-radius: 16px; padding: 12px 14px; }
.rights-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.rights-head b { font-size: 19px; font-weight: 900; }
.rights-head .btn { padding: 4px 10px; font-size: 14px; }
.rights-head .muted { flex: 1; }
.sheet label.rights-row { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; color: var(--text); padding: 4px 0; }
.sheet .rights-row input[type=checkbox] { width: 22px; height: 22px; padding: 0; border: 0; flex: none; accent-color: var(--accent); }

#alexa-code { width: 110px; font: inherit; font-size: 18px; letter-spacing: .25em; text-align: center; padding: 8px; border: var(--bw) solid var(--line); border-radius: 12px; user-select: text; }
.alexa-log { margin: 4px 0 0; padding-left: 18px; font-size: 14px; font-weight: 600; }
.alexa-log li.undone { text-decoration: line-through; color: #71717a; }

/* ---------- Einkaufsliste ---------- */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.shop-head h3 { margin: 0; }
.shop-add { display: flex; gap: 8px; margin-bottom: 8px; }
.shop-add input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: 12px; user-select: text; }
.shop-add .btn { width: 50px; font-size: 24px; padding: 0; }
.shop-list { list-style: none; margin: 0; padding: 0; max-height: 44vh; overflow-y: auto; }
.shop-list li { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid rgb(0 0 0 / .1); }
.shop-list li label, .sp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 1; min-width: 0; padding: 10px 2px; cursor: pointer; font-size: 17px; font-weight: 600; }
.shop-list input[type=checkbox], .sp-row input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: var(--accent); }
.shop-list .a, .sp-row .a { color: var(--muted); font-weight: 700; }
.shop-list small, .sp-row small { flex-basis: 100%; padding-left: 34px; margin-top: -4px; font-weight: 600; }
.shop-list li.done .n, .shop-list li.done .a { text-decoration: line-through; color: #a1a1aa; }
.shop-list .x { background: none; border: 0; color: #71717a; font-size: 18px; font-weight: 900; padding: 10px; }
.shop-list .empty { padding: 10px 2px; }
.shop-foot { margin-top: 10px; }
.sheet label.sp-row { flex-direction: row; font-size: 17px; color: var(--text); }
.sheet .sp-row input[type=checkbox] { width: 24px; height: 24px; padding: 0; border: 0; }
.sp-days { display: flex; flex-direction: column; }
.sp-row { border-bottom: 2px solid rgb(0 0 0 / .1); }
.sp-row .n { font-weight: 900; }

/* ---------- Chili ---------- */
.chili-fab {
  --f: 1;                                         /* Füllstand 0..1, setzt app.js */
  --tc: hsl(calc(var(--f) * 120) 75% 45%);        /* 120 = grün, 0 = rot */
  position: fixed; right: 20px; bottom: 20px; z-index: 5;
  border: var(--bw) solid var(--line); padding: 6px; border-radius: 50%;
  background: conic-gradient(var(--tc) calc(var(--f) * 360deg), #e4e4e7 0);
}
.chili-fab.low { animation: pulse-ring 1.2s infinite; }
@keyframes pulse-ring { 50% { transform: scale(1.1); } }
.chili-fab .avatar { --size: 72px; }
.w-low { background: #ffe3e0; color: var(--error); padding: 8px 16px; font-size: 14px; font-weight: 800; border-top: var(--bw) solid var(--line); }
.w-low[hidden] { display: none; }
.w-topup input { width: 80px; font: inherit; padding: 5px 8px; border: var(--bw) solid var(--line); border-radius: 10px; }
.chili-panel {
  position: fixed; right: 20px; bottom: 116px; z-index: 6;
  width: min(420px, calc(100vw - 24px)); height: min(620px, calc(100vh - 124px));
  background: var(--card); border: var(--bw) solid var(--line); border-radius: 26px;
  display: flex; flex-direction: column; overflow: hidden;
}
.chili-panel[hidden] { display: none; }
.w-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--yellow); border-bottom: var(--bw) solid var(--line); }
.w-head .avatar { --size: 42px; }
.w-head b { flex: 1; font-size: 20px; font-weight: 900; }
.w-close, .w-gear { background: none; border: 0; font-size: 20px; font-weight: 900; }
.w-set { padding: 12px 16px; background: var(--bg); border-bottom: var(--bw) solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 700; }
.w-set[hidden], .w-set label[hidden] { display: none; }
.w-set label { display: flex; align-items: center; gap: 10px; }
.w-set label > :first-child { width: 80px; flex: none; }
.w-set select { flex: 1; min-width: 0; font: inherit; padding: 7px; border: var(--bw) solid var(--line); border-radius: 10px; background: #fff; }
.w-set input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.w-set-row { display: flex; align-items: center; gap: 10px; }
.w-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; user-select: text; }
.w-msg { max-width: 88%; padding: 9px 14px; border: 2.5px solid var(--line); border-radius: 18px; line-height: 1.4; position: relative; font-weight: 600; }
.w-msg p { margin: 0; }
.w-msg.bot { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.w-msg.me { background: var(--yellow); align-self: flex-end; border-bottom-right-radius: 4px; }
.w-msg.err { background: #ffe3e0; color: var(--error); }
.w-speak { background: none; border: 0; padding: 4px 0 0; font-size: 16px; }
.w-chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.w-chips button { border: 2.5px solid var(--line); background: #fff; font-weight: 800; border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.w-card { background: #fff; border: 2.5px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.w-card-title { font-weight: 900; }
.w-card .muted { font-size: 14px; }
.w-shop { display: flex; flex-direction: column; margin-top: 4px; }
.w-shop-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 2px solid rgb(0 0 0 / .1); font-weight: 700; cursor: pointer; }
.w-shop-row input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.w-shop-row .a { color: var(--muted); font-weight: 700; }
.w-card-act { display: flex; gap: 8px; margin-top: 8px; }
.w-card-act select { flex: 1; min-width: 0; font: inherit; padding: 7px; border: var(--bw) solid var(--line); border-radius: 10px; background: #fff; }
.w-card-act .btn { padding: 6px 12px; white-space: nowrap; }
.w-card .ok { color: var(--accent-ink); font-weight: 900; }
.w-form { display: flex; gap: 8px; padding: 10px; border-top: var(--bw) solid var(--line); background: #fff; }
.w-input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: 12px; user-select: text; }
.w-mic { flex: none; width: 46px; border: var(--bw) solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; }
.w-mic.on { background: var(--error); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }

.main {
  display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0;
  overflow-y: auto; padding: 0 4px 96px 0; scrollbar-width: thin;
}
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.meal { background: #fff6bf; border: 2.5px solid var(--line); border-radius: 16px; padding: 10px 12px; min-height: 110px; }
.meal .d { font-weight: 900; margin-bottom: 6px; }
.meal .d span { font-weight: 700; color: var(--muted); font-size: 14px; }
.meal .dish { font-size: 15px; font-weight: 600; line-height: 1.3; }
.meal[data-day] { cursor: pointer; }
.meal.today { background: var(--yellow); }
.meal.today .d span { color: var(--line); }
.meal.past { opacity: .5; }
.chili-card { position: relative; display: flex; align-items: center; gap: 18px; min-height: 170px; overflow: hidden; padding-right: 190px; }
.chili-card .btn { margin-top: 12px; }
.b-fig { position: absolute; right: 14px; bottom: 0; height: 160px; width: auto; pointer-events: none; }

/* ---------- Ladebildschirm: Familie wird von unten nach oben farbig ---------- */
#splash {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; gap: 0;
  background: var(--sky) var(--clouds) 0 0 / 640px 420px repeat;
  transition: opacity .5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
.sp-stage { position: relative; height: min(76vh, 700px, calc(86vw * 1.5)); aspect-ratio: 2 / 3; }
.sp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sp-gray { filter: grayscale(1) brightness(1.5) contrast(.7); opacity: .6; }
.sp-color { clip-path: inset(100% 0 0 0); animation: sp-fill 1.5s cubic-bezier(.3, .6, .2, 1) .15s forwards; }
@keyframes sp-fill { to { clip-path: inset(0 0 0 0); } }
.sp-title { position: absolute; bottom: 4vh; font-size: clamp(26px, 5vw, 44px); letter-spacing: .06em; color: var(--yellow); -webkit-text-stroke: 4px var(--line); paint-order: stroke fill; font-weight: 900; }

/* Handy / schmale Bildschirme */
@media (max-width: 600px) {
  .topbar { padding: 0 12px; }
  .clock span { display: none; }
  .me { gap: 6px; }
  .me .btn { padding: 6px 10px; font-size: 14px; }
  .chili-panel { right: 12px; bottom: 112px; height: calc(100vh - 132px); }
}
@media (max-width: 900px), (orientation: portrait) {
  .dash { height: auto; overflow: visible; grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .people { grid-template-rows: none; }
  .person { min-height: 230px; }
  .main { overflow: visible; padding: 0 0 100px; }
  .chili-card { padding-right: 150px; }
  .b-fig { height: 130px; }
  .week { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .clock b { font-size: 26px; }
  .clock span { font-size: 15px; }
}

/* Termin: Personenauswahl, Plus im Wochenkalender, Google-Ziele */
.who-label { margin-top: 10px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.who-all { border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; padding: 2px 10px; }
.who-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.who-chip { min-height: 44px; padding: 0 18px; border: 2.5px solid var(--line); border-radius: 999px; background: #e5e7eb; color: #52525b; font: inherit; font-weight: 800; }
.who-chip.on { background: var(--c); color: #fff; outline: 3px solid var(--line); outline-offset: 2px; }
.wk-day h4 { display: flex; align-items: center; gap: 4px; }
.wk-plus { margin-left: auto; width: 22px; height: 22px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); font: inherit; font-size: 15px; font-weight: 900; line-height: 1; color: var(--line); }
.wk-dots { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.wk-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.g-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.g-row b { min-width: 60px; }
.g-in { flex: 1; min-width: 160px; font: inherit; padding: 7px; border: var(--bw) solid var(--line); border-radius: 10px; }

/* ---------- Personen-Karussell (Handy + Tablet hochkant) ---------- */
.pdots { display: none; }
@media (max-width: 900px), (orientation: portrait) {
  .people { display: block; position: relative; height: 370px; overflow: hidden; touch-action: pan-y; user-select: none; }
  .person {
    position: absolute; left: 50%; top: 0; width: 74%; height: 100%; margin-left: -37%;
    min-height: 0; transition: transform .35s ease, opacity .35s ease;
  }
  .person.pos-c { transform: none; z-index: 3; }
  .person.pos-r { transform: translateX(88%) scale(.82); z-index: 1; opacity: .8; }
  .person.pos-l { transform: translateX(-88%) scale(.82); z-index: 1; opacity: .8; }
  .person:not(.pos-c) .events, .person:not(.pos-c) .p-more { visibility: hidden; }
  .events { overflow: visible; -webkit-mask-image: none; mask-image: none; flex: none; padding-bottom: 6px; }
  .events.all { max-height: 60vh; overflow-y: auto; }
  .p-more { align-self: flex-start; margin: 2px 0 6px; padding: 5px 12px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; color: var(--line); }
  .pdots { display: flex; justify-content: center; gap: 14px; margin: -4px 0 2px; }
  .pdots button { width: 16px; height: 16px; padding: 0; border: 2.5px solid var(--line); border-radius: 50%; background: #fff; }
  .pdots button.on { background: var(--c); transform: scale(1.3); }
}
@media (max-width: 900px), (orientation: portrait) {
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar .btn { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .me { gap: 6px; }
  .me .avatar { --size: 36px; }
  .clock span { display: none; }
  .fig { max-width: 38%; }
  .p-body { padding-right: 10px; }
  .events li.ev { grid-template-columns: minmax(46px, max-content) 1fr; }
  .events { width: 100%; }
}
@media (max-width: 480px) { .me .avatar { display: none; } }

/* Plus in der Personen-Kachel */
.p-add {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; padding: 0;
  border: var(--bw) solid var(--line); border-radius: 50%; background: var(--yellow); color: var(--line);
  font: inherit; font-size: 24px; font-weight: 900; line-height: 1;
}
.person .p-name { padding-right: 44px; }
@media (max-width: 480px) { .sheet { padding: 16px; } }
@media (max-width: 900px), (orientation: portrait) { .person:not(.pos-c) .p-add { visibility: hidden; } }
.wk-day.hol h4 { color: #b91c1c; }
.wk-hol { margin-top: 4px; padding: 2px 5px; border-radius: 5px; background: #fecaca; color: #7f1d1d; font-size: 12px; font-weight: 800; line-height: 1.25; }
.p-add { top: auto; bottom: 14px; right: 12px; }
.person .p-name { padding-right: 0; }
.p-more { margin-right: 52px; }

/* ---------- Reiter + Monatskalender + Stundenplan ---------- */
.dash[hidden], .page[hidden] { display: none; }
.tabs { display: flex; gap: 8px; height: var(--tabs); align-items: center; padding: 0 22px; background: #fff7c2; border-bottom: var(--bw) solid var(--line); box-sizing: border-box; overflow-x: auto; }
.tabs button { flex: none; height: 34px; padding: 0 16px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 800; color: var(--line); white-space: nowrap; }
.tabs button.on { background: var(--yellow); outline: 3px solid var(--line); outline-offset: 1px; }
.page { padding: 18px 22px 110px; max-width: 1100px; margin: 0 auto; }
.m-who { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.m-who .who-chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.m-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.m-wd { display: contents; }
.m-wd span { text-align: center; font-weight: 900; font-size: 13px; color: var(--muted); padding: 2px 0; }
.m-day { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 4px 5px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; overflow: hidden; }
.m-day b { font-size: 15px; font-weight: 900; }
.m-day.other { opacity: .45; }
.m-day.today { background: #fff6bf; }
.m-day.hol { background: #fee2e2; }
.m-day.hol b { color: #b91c1c; }
.m-day.sel { outline: 3px solid var(--line); outline-offset: 1px; }
.m-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.m-dots i, .m-list .who i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-block; }
.m-h { display: none; font-size: 10px; font-weight: 800; color: #7f1d1d; line-height: 1.1; }
.m-ts { display: none; flex-direction: column; gap: 2px; width: 100%; }
.m-t { display: block; border-left: 4px solid var(--c); padding: 0 3px; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 3px; }
.m-more { font-size: 11px; font-weight: 800; color: var(--muted); }
.m-detail { margin-top: 14px; border-top: 3px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.m-detail h4 { margin: 0; font-size: 18px; }
.m-hol { color: #b91c1c; font-size: 14px; }
.m-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; width: 100%; }
.m-list .w { font-weight: 900; font-variant-numeric: tabular-nums; }
.m-list .who { display: inline-flex; gap: 3px; }
.school h4 { margin: 12px 0 4px; }
.s-list { margin: 0; padding-left: 20px; line-height: 1.45; font-weight: 600; }
.s-list li { margin-bottom: 6px; }
.s-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.s-links .btn { text-decoration: none; display: inline-block; }
@media (min-width: 700px) {
  .m-day { min-height: 96px; }
  .m-ts, .m-h { display: flex; }
  .m-dots { display: none; }
}
@media (max-width: 900px), (orientation: portrait) { .tabs { padding: 0 10px; } .page { padding: 12px 10px 110px; } }

/* Karten anordnen (nur Handy / Tablet hochkant) */
.chili-hint { margin: 4px 4px 0; font-weight: 700; }
.arr-btn { display: none; }
.main.arranging [data-card], .main.arranging .chili-hint { display: none; }
.arr-panel { background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.arr-help { margin: 0; font-weight: 600; line-height: 1.35; }
.arr-list { display: flex; flex-direction: column; gap: 8px; }
.arr-item { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 6px 0 16px; border: var(--bw) solid var(--line); border-radius: 16px; background: #fff; font-weight: 800; font-size: 17px; }
.arr-item.drag { background: var(--yellow); outline: 3px solid var(--line); outline-offset: 2px; }
.arr-grip { display: grid; place-items: center; width: 56px; height: 48px; font-size: 30px; font-weight: 900; touch-action: none; cursor: grab; user-select: none; }
.arr-done { align-self: flex-end; }
@media (max-width: 900px), (orientation: portrait) {
  .arr-btn { display: inline-block; align-self: flex-end; height: 34px; padding: 0 14px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 800; color: var(--line); white-space: nowrap; }
  .arr-btn[hidden] { display: none; }
}
.tabs { justify-content: center; }
@media (max-width: 600px) { .tabs button { flex: 1 1 0; padding: 0 6px; font-size: 14px; } }
.shop-head { flex-wrap: wrap; }
.shop-head h3 { white-space: nowrap; }
.shop-head .btn { white-space: nowrap; }

/* Köpfe der beteiligten Personen */
.heads { display: inline-flex; }
.head { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: -8px; border: 2.5px solid var(--line); border-radius: 50%; background: var(--c); overflow: hidden; }
.head b { color: #fff; font-size: 15px; font-weight: 900; }
.head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-people { display: flex; align-items: center; gap: 14px; margin-top: 6px; }

/* ---------- Einkaufsliste als Kacheln ---------- */
.shop-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.st-cat { grid-column: 1 / -1; margin-top: 6px; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-cat:first-child { margin-top: 0; }
.st-done-h { display: flex; align-items: center; gap: 10px; }
.st-clear { border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 11px; font-weight: 800; padding: 1px 8px; text-transform: none; letter-spacing: 0; color: var(--line); }
.st-empty { grid-column: 1 / -1; padding: 8px 2px; font-weight: 700; }
.stile { position: relative; display: flex; flex-direction: column; align-items: stretch; border: 2.5px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.st-main { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 4px; border: 0; background: transparent; font: inherit; color: var(--text); -webkit-touch-callout: none; user-select: none; }
.st-name { font-size: 13px; font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.ic { width: 52px; height: 52px; object-fit: contain; pointer-events: none; }
.ic-e { display: grid; place-items: center; width: 52px; height: 52px; font-size: 38px; line-height: 1; pointer-events: none; }
.st-amt { margin: 0 6px 6px; padding: 3px 4px; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); font: inherit; font-size: 13px; font-weight: 900; color: var(--line); text-align: center; }
.st-amt.empty { background: #f4f4f5; color: var(--muted); border-style: dashed; }
span.st-amt { display: block; }
.st-note { position: absolute; top: 2px; right: 3px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; font-size: 14px; }
.stile.done { background: #dcfce7; border-color: #16a34a; opacity: .85; }
.stile.done .st-name { text-decoration: line-through; color: #166534; }
.stile.done .ic, .stile.done .ic-e { width: 36px; height: 36px; font-size: 26px; filter: grayscale(.4); }
.stile.done .st-amt { background: #bbf7d0; }
.shop-sugg { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.shop-sugg:empty { display: none; }
.sg { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; padding: 6px 4px; border: 2.5px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; color: var(--text); }
.sg .ic, .sg .ic-e { width: 44px; height: 44px; font-size: 32px; }
.sg.on { background: #dcfce7; border-color: #16a34a; }
.sg.on b { color: #16a34a; }
.sg.raw { background: var(--yellow); }
.st-edit-h { display: flex; align-items: center; gap: 10px; }
.st-edit-h .ic, .st-edit-h .ic-e { width: 44px; height: 44px; font-size: 32px; }
.amt-row { display: flex; gap: 8px; }
.amt-row input { flex: 1; min-width: 0; text-align: center; font-size: 22px; font-weight: 900; }
.amt-row .btn { width: 56px; padding: 0; font-size: 28px; }
.unit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.unit-chips button { min-height: 40px; padding: 0 14px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 800; color: var(--line); }
@media (max-width: 900px), (orientation: portrait) { .shop-tiles { max-height: none; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }
.shop-credit { margin-top: 8px; font-size: 11px; font-weight: 600; }
.shop-credit a { color: inherit; }

/* Verlauf (ausklappbar) */
.st-hist { margin-top: 12px; border-top: 2.5px solid var(--line); padding-top: 8px; }
.st-hist summary { cursor: pointer; font-weight: 900; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 36px; }
.st-hist summary::-webkit-details-marker { display: none; }
.st-hist summary::after { content: "▾"; margin-left: auto; font-size: 18px; }
.st-hist[open] summary::after { content: "▴"; }
.hist-tabs { display: flex; gap: 8px; margin: 6px 0 10px; }
.hist-tabs button { min-height: 34px; padding: 0 14px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: var(--line); }
.hist-tabs button.on { background: var(--yellow); outline: 3px solid var(--line); outline-offset: 1px; }
.hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 40vh; overflow-y: auto; padding: 2px; }
.htile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 2.5px solid var(--line); border-radius: 14px; background: #f0fdf4; font: inherit; color: var(--text); }
.htile .ic, .htile .ic-e { width: 40px; height: 40px; font-size: 28px; }
.htile small { font-size: 11px; font-weight: 800; color: var(--muted); }
.htile i { position: absolute; top: 2px; right: 5px; font-style: normal; font-size: 11px; font-weight: 900; color: #166534; }
.htile:disabled { opacity: .6; }

/* Symbole auf farbiger Fläche (flache Farbe + Kontur, Simpsons-Stil) */
.ic-wrap { --s: 62px; display: grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--tint, #dcdcea); border: 2.5px solid var(--line); }
.ic-wrap .ic { width: 70%; height: 70%; }
.ic-wrap .ic-e { width: auto; height: auto; font-size: calc(var(--s) * .52); }
.sg .ic-wrap { --s: 50px; }
.htile .ic-wrap { --s: 44px; }
.st-edit-h .ic-wrap { --s: 52px; }
.stile.done .ic-wrap { --s: 40px; }

/* Farbfläche wieder weg: Symbole als reine Strichzeichnung (Stephan: war vorher besser) */
.ic-wrap { --s: 52px; background: none; border: 0; border-radius: 0; }
.ic-wrap .ic { width: 100%; height: 100%; }
.ic-wrap .ic-e { font-size: calc(var(--s) * .72); }
.sg .ic-wrap { --s: 44px; }
.htile .ic-wrap { --s: 40px; }
.st-edit-h .ic-wrap { --s: 44px; }
.stile.done .ic-wrap { --s: 36px; }
.st-more { grid-column: 1 / -1; min-height: 44px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; font-weight: 800; color: var(--line); }

/* ---------- Einkauf läuft ---------- */
.shop-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.trip-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 12px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff6bf; font-weight: 700; }
.trip-bar[hidden] { display: none; }
.trip-bar.mine { background: #dcfce7; border-color: #16a34a; }
.trip-bar .btn { margin-left: auto; padding: 6px 18px; }
.trip-bar b { font-weight: 900; }
.cart-anim { display: inline-block; font-size: 26px; animation: cart-drive 1.1s ease-in-out infinite; }
@keyframes cart-drive { 0% { transform: translateX(-5px) rotate(-5deg); } 50% { transform: translateX(5px) rotate(5deg); } 100% { transform: translateX(-5px) rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .cart-anim { animation: none; } }


/* Vollbild: nur die Einkaufsliste (Handy / Tablet hochkant, nur bei dem, der einkauft) */
body.trip-on { overflow: hidden; }
body.trip-on .chili-fab, body.trip-on .topbar, body.trip-on .tabs { display: none; }
.shop.trip-full { position: fixed; inset: 0; z-index: 9; margin: 0; border-radius: 0; border-width: 0; overflow-y: auto; padding: 14px 12px 40px; background: var(--card); max-height: none; }
.shop.trip-full .shop-tiles { max-height: none; overflow: visible; }
.shop.trip-full #shop-plan, .shop.trip-full .mv, .shop.trip-full .shop-credit { display: none; }
.shop.trip-full .trip-bar { position: sticky; top: 0; z-index: 2; }

/* ---------- Burger-Menü ---------- */
.topbar { position: sticky; }
.menu { position: absolute; top: calc(var(--topbar) - 6px); right: 12px; z-index: 6; min-width: 230px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #fff; border: var(--bw) solid var(--line); border-radius: 18px; }
.menu[hidden] { display: none; }
.menu-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; border-bottom: 2.5px solid var(--line); font-size: 18px; }
.menu-user .avatar { --size: 38px; }
.menu-item { text-align: left; min-height: 46px; padding: 0 14px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 800; color: var(--line); }
.menu-item:active { background: var(--yellow); }
#menuBtn { min-width: 46px; font-size: 22px; padding: 6px 12px; }

@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { #pushBtn { animation: none; } }
body.trip-on .menu { display: none; }

/* ---------- Glocke / Posteingang ---------- */
#bellBtn { position: relative; font-size: 20px; padding: 6px 12px; }
#bellBtn .badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border: 2.5px solid var(--line); border-radius: 999px; background: #ff5a4d; color: #fff; font-size: 12px; font-weight: 900; line-height: 17px; text-align: center; }
#bellBtn .badge[hidden] { display: none; }
#bellBtn.wobble { animation: bell-ring 2.4s ease-in-out infinite; }
.ib-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; }
.ib-card.new { background: #fff6bf; }
.ib-card.todo, .ib-card.push { background: #dcfce7; border-color: #16a34a; }
.ib-card .btn { align-self: flex-start; margin-top: 4px; }
.ib-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ib-head .muted { font-size: 12px; white-space: nowrap; }
.sheet.big h4 { margin-top: 10px; }
.ib-card.read { background: #f4f4f5; border-color: #a1a1aa; color: #52525b; }
.ib-card[data-tag="rate"] { cursor: pointer; }
.ib-card.done-note::after { content: "Diese Abstimmung ist nicht mehr offen."; font-size: 12px; font-weight: 700; color: var(--muted); }
.ib-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ib-ok { align-self: flex-end; min-height: 34px; padding: 0 12px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; color: var(--line); }
.ib-all { margin-left: 8px; min-height: 28px; padding: 0 10px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; color: var(--line); vertical-align: middle; }

/* Bearbeiten: Auswahl „Änderung gilt für“ */
.scope { display: flex; flex-direction: column; gap: 8px; }
.sheet label.scope-opt { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 800; color: var(--text); }
.scope-opt input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); padding: 0; }
.scope-opt small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.scope-opt:has(input:checked) { background: #fff6bf; }
.events li.ev.ext.gcal { cursor: pointer; } /* Google-Termine sind jetzt antippbar (bearbeiten/löschen) */
.wk-ev, .m-list .m-li { cursor: pointer; }
.m-list .m-li { padding: 8px 10px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; }
.m-list .m-li:active, .wk-ev:active { background: var(--yellow); }
.ask-text { white-space: pre-line; font-weight: 700; }
.pin-hint { margin-top: 2px; padding: 2px 10px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--yellow); font-size: 15px; font-weight: 900; letter-spacing: .12em; }
@media (max-width: 900px), (orientation: portrait) { .person.pos-h { transform: scale(.6); opacity: 0; pointer-events: none; z-index: 0; } }

/* Benachrichtigungs-Einstellungen */
.nf-list { display: flex; flex-direction: column; gap: 8px; }
.sheet label.nf-row { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 800; color: var(--text); }
.nf-row input { width: 24px; height: 24px; flex: none; accent-color: var(--accent); padding: 0; }
.nf-lead select { font: inherit; font-size: 17px; padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
/* Schulferien im Monatskalender */
.m-day.sch { background: #dcfce7; border-color: #16a34a; }
.m-day.sch.today { background: #fff6bf; }
.m-s { display: none; font-size: 10px; font-weight: 800; color: #166534; line-height: 1.1; }
.m-sch { color: #166534; font-size: 14px; font-weight: 800; }
@media (min-width: 700px) { .m-s { display: block; } }

/* Feiertage & Ferien bearbeiten */
.dy-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; margin-top: 6px; }
.dy-row.past { opacity: .55; }
.dy-main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; }
.dy-main b { font-weight: 900; }
.dy-btn { flex: none; width: 42px; height: 42px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 18px; }
.ib-card.linked { cursor: pointer; }
