/* Seiten-Anordnung Kalender: nur Layout, Komponenten kommen aus app.css. */
.cal { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h div { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: var(--s3) var(--s2); text-align: center; border-bottom: 1px solid var(--line); }
.cal-d { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 52px; margin: 0; padding: 6px; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 120ms ease; }
.cal-g > .cal-d:nth-child(7n+1) { border-left: 0; }
.cal-g > .cal-d:nth-child(-n+7) { border-top: 0; }
.cal-d.we { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.cal-d.out { background: var(--bg); color: var(--text-3); }
.cal-d.sel { background: var(--accent-soft); }
.cal-d .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font: 600 var(--fs-sm)/1 var(--sans); font-variant-numeric: tabular-nums; }
.cal-d.today .n { background: var(--accent-deep); color: #fff; }
.cal-d .it { font-size: var(--fs-xs); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; padding: 2px 6px; background: #fff; border: 1px solid var(--line); }
.cal-d .it.ev { border-color: var(--accent); background: var(--accent-soft); }
.cal-d .it.lv { background: var(--surface-2); border-color: var(--surface-2); color: var(--text-2); }
.cal-d .it.sh.draft { border-style: dashed; }
.cal-d .it.hol { color: var(--bad); background: none; border-color: transparent; padding-left: 2px; }
.cal-d .more { font-size: var(--fs-xs); color: var(--text-3); padding-left: 2px; }
.cal-d .dots { display: none; gap: 3px; justify-content: center; }
.cal-d .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.cal-d .dots i.ev { background: var(--accent-deep); }
.cal-d .dots i.lv { background: var(--line-2); }
.cal-d .dots i.hol { background: var(--bad); }
@media (hover: hover) and (pointer: fine) { .cal-d:hover:not(.sel) { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); } }
@media (max-width: 767px) {
  .cal-d { align-items: center; justify-content: flex-start; min-height: 48px; padding: 4px 2px; }
  .cal-d .it, .cal-d .more { display: none; }
  .cal-d .dots { display: flex; }
}
@media (min-width: 768px) { .cal-d { min-height: 104px; } }
@media (min-width: 1280px) { .cal-d { min-height: 116px; } }

.day-list { margin-top: var(--s2); }
.day-list .sec-title { margin-top: var(--s5); }
.agenda .day { padding: var(--s4) var(--s4) var(--s2); border-top: 1px solid var(--line); font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.agenda .day:first-child { border-top: 0; }
.agenda .day .ic { font-size: 14px; }
.agenda .day.today { color: var(--accent-deep); }
.agenda .list > li:first-child { border-top: 0; }
.list .go { color: var(--text-3); font-size: 18px; }
.kind-ic.hol { background: var(--bad-soft); color: var(--bad); }
.ev-desc { white-space: pre-wrap; margin: var(--s4) 0 0; }
@media (max-width: 767px) {
  .page-kalender .bar .seg { flex: 1 1 calc(50% - var(--s1)); min-width: 0; }
  .page-kalender .bar .seg button { flex: 1; justify-content: center; }
  .page-kalender .bar .select { flex: 1 1 100%; }
}
@media (max-width: 420px) { .page-kalender .bar .seg button .ic { display: none; } }
