:root {
  --ink: #14202b;
  --ink-soft: #3a4654;
  --muted: #5b6673;
  --line: #e3e7ec;
  --line-strong: #8a95a3;
  --ground: #f6f7f9;
  --card: #ffffff;
  --accent: #0b7a75;
  --accent-ink: #0b5f5a;
  --accent-soft: #ddf3ef;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent-ink); }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); letter-spacing: -0.3px; }
.brand span.zeit { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--accent-ink); }
.nav form { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 24px 56px; }
.wrap.narrow { max-width: 460px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card h2 { margin-bottom: 14px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; }
.flash.ok { background: var(--accent-soft); color: var(--accent-ink); }
.flash.fehler { background: var(--danger-soft); color: var(--danger); }

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
label input, label select, label textarea { margin-top: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
textarea { padding: 10px 12px; min-height: 84px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > * { flex: 1 1 180px; min-width: 0; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: auto; min-height: 0; margin: 0; }
.abstand { margin-top: 14px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: none; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--accent-ink); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.secondary:hover { background: var(--ground); }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.linklike { background: none; border: none; padding: 0; font: inherit; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); }
.pill.grau { background: #e1e5ea; color: #3f4a57; }
.pill.rot { background: var(--danger-soft); color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 8px; }
td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td form { margin: 0; }
.table-scroll { overflow-x: auto; }

.linkbox { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.linkbox input { flex: 1 1 320px; background: var(--ground); }

.slotliste { display: grid; gap: 10px; }
.slotkarte { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.slotkarte.voll { background: #f0f2f5; color: var(--muted); }
.slotkarte .datum { width: 64px; text-align: center; flex: none; font-weight: 700; }
.slotkarte .datum small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.slotkarte .mitte { flex: 1; min-width: 0; }
.slotkarte .zeit { font-weight: 600; }

.hinweis { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; margin-bottom: 16px; }
.footer { text-align: center; padding: 24px; font-size: 13px; color: var(--muted); }
.footer strong { color: var(--ink); }

.auswahlleiste { margin-bottom: 12px; }
.auswahlleiste .check { margin: 0; }
tr.tagzeile th { text-align: left; background: var(--accent-soft); }
tr.tagzeile td { background: var(--accent-soft); width: 36px; }
td input[type="checkbox"], th input[type="checkbox"] { width: 20px; height: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.slotkarte .btn.small { flex: none; }
.slotkarte { flex-wrap: wrap; }
.slotkarte .pill { flex: none; }
tr.buchungszeile td { background: #fafbfc; border-bottom: 1px solid var(--line); padding-top: 6px; padding-bottom: 6px; }
.buchung { margin-right: 10px; }
.slotkarte .zeit { white-space: nowrap; }
.slotkarte .mitte { min-width: 130px; }
