.login { max-width: 420px; margin: 20px auto; display: grid; gap: 18px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.range label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.range input[type="date"] { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.stat b { display: block; font: 700 26px var(--serif); }
.stat span { color: var(--muted); font-size: 13px; }
.table-card { padding: 0; overflow-x: auto; }
.bookings { width: 100%; border-collapse: collapse; font-size: 14px; }
.bookings th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bookings td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bookings tr:last-child td { border-bottom: 0; }
.bookings tr.day-start td { border-top: 2px solid var(--cream-2); }
.bookings tr.cancelled td { color: #b3a697; text-decoration: line-through; }
.bookings tr.cancelled td:last-child { text-decoration: none; }
.bookings td.nowrap { white-space: nowrap; }
.bookings .code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.bookings .notes { max-width: 240px; overflow-wrap: anywhere; color: var(--muted); }
.bookings .btn { padding: .4em .9em; font-size: 13px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eee3d1; color: var(--muted); text-decoration: none; }
.table-card .empty { padding: 18px; }

/* Reiter */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  font: 600 15px var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tab-panel { display: grid; gap: 16px; }
.panel-title { font-size: 22px; }
.narrow-form { max-width: 760px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; align-items: end; }
.form select {
  font: 16px var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.form-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--free-bg); color: var(--free); font-weight: 600; }
.who { color: #cdb997; font-size: 14px; }
.actions { min-width: 220px; }
.bookings tr.inactive td { color: #b3a697; }
.actions .btn { margin: 2px 0; }

/* Stunden-Übersicht beim manuellen Eintragen */
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  width: 38px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--free-bg); color: var(--free); border: 2px solid transparent;
}
.chip.past { opacity: .55; }
.chip.booked { background: #f1e2c8; color: #8a5a34; }
.chip.blocked { background: #3e2414; color: #f3dfb5; }
.chip.sel { border-color: var(--red); }
.chip-legend { font-size: 12px; color: var(--muted); margin-left: 6px; }
.chip-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.chip-legend i.booked { background: #f1e2c8; }
.chip-legend i.blocked { background: #3e2414; }

dialog.card { padding: 24px; max-width: 440px; width: calc(100% - 32px); border: 1px solid var(--line); }
dialog::backdrop { background: rgb(20 12 7 / .5); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 label:first-child { grid-column: 1 / -1; }
}
.chip-legend i.free { background: var(--free-bg); border: 1px solid #cfe6d7; }

.notify-set { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; margin: 0; display: grid; gap: 10px; }
.notify-set legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.muted { color: var(--muted); }
