:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f3ece4;
  --ink: #2a211b;
  --ink-2: #6b5d52;
  --ink-3: #9a8b7e;
  --line: #e7ddd2;
  --accent: #7a3e1d;
  --accent-ink: #fff6ec;
  --accent-soft: #f4e3d5;
  --yes: #2f7d4f;
  --yes-soft: #e1f2e7;
  --maybe: #a36a00;
  --maybe-soft: #fbefd3;
  --no: #b03a2e;
  --no-soft: #f8e1de;
  --shadow: 0 1px 2px rgb(42 33 27 / 6%), 0 4px 16px rgb(42 33 27 / 5%);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

/* Hell · Grau */
:root[data-theme="light-gray"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef1;
  --ink: #1f2328;
  --ink-2: #59616b;
  --ink-3: #8a919a;
  --line: #dde0e5;
  --accent: #475569;
  --accent-ink: #f8fafc;
  --accent-soft: #e4e8ee;
  --shadow: 0 1px 2px rgb(31 35 40 / 6%), 0 4px 16px rgb(31 35 40 / 5%);
}

/* Dunkel: Status-Farben und Schatten (für Kaffee und Grau gleich). Ohne gewähltes
   Design folgt die Seite dem Gerät (dunkel · Kaffee). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #2b221b;
    --surface: #382d24;
    --surface-2: #43362b;
    --ink: #f6ede1;
    --ink-2: #d2bfa8;
    --ink-3: #a89480;
    --line: #54453a;
    --accent: #d9b48a;
    --accent-ink: #2b1d12;
    --accent-soft: #4a3a2c;
    --yes: #6fcf97;
    --yes-soft: #1f3a2a;
    --maybe: #f0be5a;
    --maybe-soft: #3d3218;
    --no: #f08a7e;
    --no-soft: #432420;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme^="dark"] {
  --yes: #6fcf97;
  --yes-soft: #1f3a2a;
  --maybe: #f0be5a;
  --maybe-soft: #3d3218;
  --no: #f08a7e;
  --no-soft: #432420;
  --shadow: none;
  color-scheme: dark;
}
/* Dunkel · Kaffee */
:root[data-theme="dark-coffee"] {
  --bg: #2b221b;
  --surface: #382d24;
  --surface-2: #43362b;
  --ink: #f6ede1;
  --ink-2: #d2bfa8;
  --ink-3: #a89480;
  --line: #54453a;
  --accent: #d9b48a;
  --accent-ink: #2b1d12;
  --accent-soft: #4a3a2c;
}
/* Dunkel · Grau */
:root[data-theme="dark-gray"] {
  --bg: #16181b;
  --surface: #1f2226;
  --surface-2: #292d32;
  --ink: #eceef1;
  --ink-2: #b4bac2;
  --ink-3: #858c95;
  --line: #33373d;
  --accent: #9fb3c8;
  --accent-ink: #12161b;
  --accent-soft: #2a323b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  min-height: 100vh;
}
:root { --cal-size: min(48vw, 240px); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- Kopf ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  max-width: 760px; margin: 0 auto; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand__icon {
  width: 36px; height: 36px; flex: none; padding: 6px; border-radius: 10px;
  background: var(--accent); stroke: var(--accent-ink); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.brand > div { min-width: 0; }
.brand__name { font-weight: 700; letter-spacing: -0.01em; }
.brand__sub { font-size: 13px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top__actions { display: flex; gap: 8px; flex: none; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { color: var(--no); }
.btn--small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 40px; padding: 0; }

/* ---------- Abschnitte ---------- */
main { padding-top: 18px; padding-bottom: 40px; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.section-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); flex: 1; }
.month { margin: 28px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .spacer { flex: 1; }

.tabs { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.tabs button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Karten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero { padding: 24px; margin-top: 12px; }
.hero h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.hero p { margin: 0 0 18px; color: var(--ink-2); }

.event { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 14px; margin-bottom: 10px; }
.event.is-past { opacity: .6; }
.event.is-mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.date {
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 58px; line-height: 1;
}
.date__wd { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.date__d { font-size: 24px; font-weight: 800; margin-top: 3px; }
.event__body { min-width: 0; }
.event__title { font-weight: 700; font-size: 17px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event__meta { color: var(--ink-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.event__note { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.event__team { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.event__foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.event__foot .spacer { flex: 1; }
.event__admin { grid-column: 1 / -1; border-top: 1px solid var(--line); margin: 4px -14px -14px; padding: 14px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--ink-2);
}
.chip--team { background: var(--accent-soft); color: var(--accent); }
.chip--none { background: var(--no-soft); color: var(--no); }
.chip--part { background: var(--maybe-soft); color: var(--maybe); }
.chip--full { background: var(--yes-soft); color: var(--yes); }
.counts { font-size: 13px; color: var(--ink-3); }
.counts b { font-weight: 700; }
.counts .y { color: var(--yes); } .counts .m { color: var(--maybe); } .counts .n { color: var(--no); }

/* Antwort-Reihe */
.answer { display: inline-flex; gap: 6px; }
.answer button {
  min-height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2);
}
.answer button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.answer button[data-a="yes"][aria-pressed="true"] { background: var(--yes-soft); border-color: var(--yes); color: var(--yes); }
.answer button[data-a="maybe"][aria-pressed="true"] { background: var(--maybe-soft); border-color: var(--maybe); color: var(--maybe); }
.answer button[data-a="no"][aria-pressed="true"] { background: var(--no-soft); border-color: var(--no); color: var(--no); }

/* Zuteilen */
.pick-list { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.pick {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; min-height: 44px;
}
.pick input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.pick__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.pick__mail { color: var(--ink-3); font-size: 13px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: none; }
.badge--yes { background: var(--yes-soft); color: var(--yes); }
.badge--maybe { background: var(--maybe-soft); color: var(--maybe); }
.badge--no { background: var(--no-soft); color: var(--no); }
.badge--none { background: var(--surface-2); color: var(--ink-3); }
.pick-head { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; font-weight: 600; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea.input { min-height: 70px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.error { color: var(--no); font-size: 14px; margin: 0 0 12px; min-height: 0; }
.error:empty { display: none; }

/* ---------- Dialog ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(480px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
}
dialog::backdrop { background: rgb(30 20 12 / 45%); }
.dlg__head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 6px; }
.dlg__head h3 { margin: 0; font-size: 18px; flex: 1; }
.dlg__body { padding: 8px 18px 4px; max-height: 70vh; overflow: auto; }
.dlg__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 18px 18px; flex-wrap: wrap; }

.member-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-row > div { flex: 1; min-width: 0; }
.member-row .name { font-weight: 600; }
.member-row .mail { font-size: 13px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.linkbox { display: flex; gap: 8px; }
.linkbox .input { font-size: 13px; color: var(--ink-2); }

.empty { text-align: center; color: var(--ink-2); padding: 40px 16px; }
.empty svg { width: 40px; height: 40px; stroke: var(--ink-3); fill: none; stroke-width: 1.6; margin-bottom: 8px; }

.mine-list { display: grid; gap: 8px; }
.mine { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.mine .date { width: 46px; height: 46px; flex: none; }
.mine .date__d { font-size: 18px; }
.mine .date__wd { font-size: 10px; }
.mine > div:last-child { min-width: 0; }

.foot { color: var(--ink-3); font-size: 13px; padding-bottom: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }
.legal { padding-top: 20px; padding-bottom: 40px; line-height: 1.55; }
.legal h1 { font-size: 24px; margin: 8px 0 12px; }
.legal h2 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal a.btn { color: inherit; text-decoration: none; }
.foot button { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; font-size: 13px; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .answer button span { display: none; }
  .answer button { padding: 0; width: 40px; justify-content: center; }
  .top .btn .label { display: none; }
  .top .btn { width: 40px; padding: 0; }
}

/* ---------- Filter ---------- */
.section-head { flex-wrap: wrap; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; margin: 0 0 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.filter .n { font-size: 12px; font-weight: 700; opacity: .65; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }

/* ---------- Plan (Mitglieder × Termine) ---------- */
body.is-plan .wrap { max-width: 1180px; }
.plan-wrap {
  overflow: auto; max-height: calc(100vh - 220px); margin-top: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.plan { border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 100%; }
.plan th, .plan td { padding: 4px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plan thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 8px 4px; vertical-align: bottom; font-weight: 600; }
.plan .plan__name {
  position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left;
  padding: 6px 12px; min-width: 128px; max-width: 170px; border-right: 1px solid var(--line);
}
.plan thead .plan__name { z-index: 3; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.plan__wd { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.plan__d { font-weight: 700; }
.plan__fill { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.plan__fill--full { background: var(--yes-soft); color: var(--yes); }
.plan__fill--part { background: var(--maybe-soft); color: var(--maybe); }
.plan__fill--none { background: var(--no-soft); color: var(--no); }
.plan .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.plan .who-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.plan tr.is-me .plan__name { box-shadow: inset 3px 0 0 var(--accent); }
.plan tr.is-me .who { color: var(--accent); }
.plan tfoot th, .plan tfoot td { border-bottom: 0; font-size: 13px; font-weight: 700; color: var(--yes); }
.plan tfoot th { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.plan tfoot td.is-short { color: var(--no); }
.plan__none { color: var(--ink-3); padding: 24px !important; }

.cell {
  width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px dashed var(--line);
  background: transparent; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.cell svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
button.cell { cursor: pointer; }
button.cell:hover { border-color: var(--ink-3); }
.cell--yes { background: var(--yes-soft); color: var(--yes); border: 1px solid transparent; }
.cell--maybe { background: var(--maybe-soft); color: var(--maybe); border: 1px solid transparent; }
.cell--no { background: var(--no-soft); color: var(--no); border: 1px solid transparent; }
.cell.is-assigned { background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; box-shadow: 0 0 0 2px var(--accent-soft); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 2px 0; font-size: 13px; color: var(--ink-3); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .cell { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.legend .cell svg { width: 12px; height: 12px; }

/* ---------- Bescheid geben ---------- */
.pick-row { display: flex; align-items: center; gap: 6px; }
.pick-row .pick { flex: 1; min-width: 0; }
.send-btn {
  flex: none; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.send-btn:hover { background: var(--accent-soft); }
.send-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-action { background: transparent; }

.menu {
  position: fixed; z-index: 50; min-width: 220px; padding: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 22%);
}
.menu__head { padding: 8px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu__item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--surface-2); outline: none; }
.menu__item svg { width: 20px; height: 20px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu__item[title] { color: var(--ink-2); }

/* ---------- Kopf der Termine: Filter-Knopf + Ansicht ---------- */
.section-head { gap: 8px; }
.icon-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent);
}
.icon-pill:hover { background: var(--surface-2); }
.icon-pill.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.icon-pill svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-pill__n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; line-height: 18px;
}
.tabs--icons button { width: 44px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.tabs--icons svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs--icons button[aria-pressed="true"] { color: var(--accent); }

.filter.is-active { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.filter.is-active svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }

.menu .menu__head:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.menu__item--check svg { stroke: transparent; }
.menu__item--check.is-on { color: var(--accent); font-weight: 700; }
.menu__item--check.is-on svg { stroke: var(--accent); }
.menu__item > span:first-of-type { flex: 1; }
.menu__n { font-size: 13px; font-weight: 700; color: var(--ink-3); }

/* ---------- Kalender unten rechts ---------- */
body.has-cal .foot { padding-bottom: calc(var(--cal-size) + 40px); }
.cal {
  position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
  width: var(--cal-size); height: var(--cal-size); display: flex; flex-direction: column; padding: 6px 10px 10px;
  border-radius: 24px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 12px 40px rgb(0 0 0 / 22%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cal { background: var(--surface); } }
.cal__head { display: flex; align-items: center; gap: 4px; }
.cal__nav {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal__nav:hover { background: var(--surface-2); }
.cal__nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal__month { flex: 1; min-width: 0; height: 34px; border: 0; background: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.cal__month:disabled { cursor: default; }
.cal__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__wd { padding: 2px 0 4px; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cal__day {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0;
  border: 0; background: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.cal__num { display: flex; align-items: center; justify-content: center; height: min(24px, 100%); aspect-ratio: 1; border-radius: 999px; }
.cal__day.is-past { color: var(--ink-3); }
.cal__day.is-today .cal__num { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.cal__day--ev { cursor: pointer; }
.cal__num--none { background: var(--no-soft); color: var(--no); box-shadow: inset 0 0 0 1.5px var(--no); font-weight: 700; }
.cal__num--part { background: var(--maybe-soft); color: var(--maybe); box-shadow: inset 0 0 0 1.5px var(--maybe); font-weight: 700; }
.cal__num--full { background: var(--yes-soft); color: var(--yes); box-shadow: inset 0 0 0 1.5px var(--yes); font-weight: 700; }
.cal__day--ev.is-past .cal__num { opacity: .6; }
.cal__count {
  position: absolute; top: 50%; left: 50%; transform: translate(7px, -16px); min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink-3); font-size: 9px; line-height: 14px; color: var(--ink-2);
}
/* Du bist eingeteilt: Punkt in Akzent unter dem Tag. */
.cal__mine { position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; transform: translateX(-50%); border-radius: 999px; background: var(--accent); }

/* Nach dem Sprung aus dem Kalender kurz hervorgehoben. */
@keyframes dp-flash { from { background-color: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent); } }
.event.is-flash { animation: dp-flash 1.8s ease-out; }
@keyframes dp-flash-col { from { background-color: var(--accent-soft); } }
.plan th.is-flash, .plan td.is-flash { animation: dp-flash-col 1.8s ease-out; }
.event { scroll-margin-top: 90px; }

/* ---------- Design-Knopf ---------- */
.theme-btn { position: relative; }
.theme-btn__dot {
  position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}
