/* book your desk — schlichtes, kontrastreiches Design. Keine externen Quellen. */
:root {
  --brand: #155e52;
  --brand-dark: #0e463d;
  --bg: #f5f4f0;
  --card: #ffffff;
  --text: #1d2521;
  --muted: #5a655f;
  --line: #d8ddd9;
  --free: #1e7b34;
  --busy: #b3541e;
  --blocked: #8a8f8b;
  --danger: #a3252d;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: .5rem; z-index: 10; }

.topbar {
  background: var(--brand); color: #fff; display: flex; flex-wrap: wrap;
  align-items: center; gap: .5rem 1.25rem; padding: .6rem 1rem;
}
.brand { display: flex; align-items: center; gap: .55rem; color: #fff;
  text-decoration: none; }
.logo { width: 1.9rem; height: 1.9rem; }
.logo-big { width: 4rem; height: 4rem; }
.wordmark { font-size: 1.2rem; letter-spacing: .01em; }
.wordmark b { font-weight: 700; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.topbar nav a, .topbar .linklike {
  color: #eaf3f0; text-decoration: none; padding: .25rem 0; border: 0;
  background: none; font: inherit; cursor: pointer;
}
.topbar nav a:hover, .topbar nav a:focus, .topbar .linklike:hover { text-decoration: underline; }

.wrap { max-width: 68rem; width: 100%; margin: 0 auto; padding: 1rem; flex: 1; }
.footer { border-top: 1px solid var(--line); padding: .8rem 1rem; display: flex;
  flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: .85rem; }
.footer a { color: var(--muted); }

h1 { font-size: 1.45rem; margin: .4rem 0 .8rem; }
h2 { font-size: 1.1rem; margin: .8rem 0 .4rem; }
h3 { font-size: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem; margin-bottom: .9rem; }
.card.inner { background: var(--bg); }
.narrow { max-width: 26rem; }
.center-card { margin: 3rem auto; text-align: center; }
.center-card form { text-align: left; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

label { display: block; margin: .5rem 0 .15rem; font-weight: 600; font-size: .9rem; }
label.check { font-weight: 400; display: flex; gap: .4rem; align-items: center; }
input, select {
  width: 100%; max-width: 24rem; padding: .5rem .6rem; border: 1px solid var(--line);
  border-radius: 7px; font: inherit; background: #fff;
}
input[type=checkbox] { width: auto; }
.filterbar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end;
  margin-bottom: 1rem; }
.filterbar label { margin: 0; }
.filterbar input, .filterbar select { max-width: 14rem; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .2rem .9rem; }

button, .btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  padding: .55rem 1rem; border-radius: 7px; font: inherit; cursor: pointer;
  text-decoration: none; margin-top: .4rem;
}
button:hover, .btn:hover, button:focus-visible { background: var(--brand-dark); }
button.subtle, .btn.subtle { background: #e6e9e7; color: var(--text); }
button.danger { background: var(--danger); }
button:disabled { background: var(--blocked); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
form.inline { display: inline; }

.flash { background: #fff8e6; border: 1px solid #e5d9a8; border-radius: 8px;
  padding: .6rem .9rem; margin-bottom: .8rem; }
.flash.notice { background: #e8f2ef; border-color: #b9d4cc; }

.pill { display: inline-block; background: #e6e9e7; color: var(--text);
  border-radius: 99px; padding: .05rem .6rem; font-size: .78rem; margin: 0 .15rem; }
.pill.ok { background: #dcefe0; color: var(--free); }
.pill.warn { background: #fbe9d9; color: var(--busy); }
.pill.danger { background: #f6dddd; color: var(--danger); }

.booking { display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  justify-content: space-between; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.deskhead { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.bookform { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; }
.bookform label { margin: 0; }
.customtimes { display: flex; gap: .8rem; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { padding: .5rem .7rem; text-align: left; border-bottom: 1px solid var(--line);
  font-size: .92rem; vertical-align: top; }
thead th { background: #eceeec; }
table.grid td, table.grid th { text-align: center; min-width: 5.2rem; }
table.grid th.today { background: var(--brand); color: #fff; }
.cell.frei a { color: var(--free); font-weight: 700; text-decoration: none; }
.cell.frei { background: #edf7ef; }
.cell.belegt { background: #fbf1e8; color: var(--busy); }
.cell.gesperrt { background: #ececec; color: var(--blocked); }

.planwrap { position: relative; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; max-width: 100%; }
.planwrap img { display: block; width: 100%; height: auto; }
.desk-marker {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--card); border: 2px solid var(--blocked); border-radius: 8px;
  padding: .15rem .5rem; font-size: .8rem; text-decoration: none; color: var(--text);
  white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.desk-marker.frei { border-color: var(--free); color: var(--free); font-weight: 700; }
.desk-marker.belegt { border-color: var(--busy); color: var(--busy); }
.desk-marker.gesperrt { border-color: var(--blocked); color: var(--blocked); }
.planwrap.edit .desk-marker { cursor: grab; }
.legend .dot { display: inline-block; width: .8rem; height: .8rem;
  border-radius: 50%; margin: 0 .3rem 0 1rem; vertical-align: middle; }
.dot.frei { background: var(--free); }
.dot.belegt { background: var(--busy); }
.dot.gesperrt { background: var(--blocked); }

.wrapcode { display: block; word-break: break-all; background: var(--bg);
  padding: .6rem; border-radius: 7px; font-size: .85rem; }

@media (max-width: 640px) {
  .topbar nav { font-size: .9rem; }
  .booking, .bookform { flex-direction: column; align-items: stretch; }
  .actions { justify-content: flex-start; }
}
