:root {
  --ink: #1a2421;
  --muted: #5c6b66;
  --paper: #f3f0e8;
  --card: #fffcf8;
  --line: #e3dcd0;
  --teal: #0f6e62;
  --teal-dark: #0b534b;
  --mint: #d7f3ec;
  --danger: #9d3d38;
  --danger-bg: #f8e4e1;
  --warn: #f8e7c9;
  --shadow: 0 18px 40px rgba(28, 36, 32, 0.08);
  --row: 48px;
  --head: 52px;
  --sidebar: 248px;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: 16px;
}
a { color: inherit; }
button, [role="button"], .hot, .ghost, .danger { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
img { max-width: 100%; }

.hot, .ghost, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font: inherit;
  text-decoration: none;
  line-height: 1.2;
}
@keyframes confirmblink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.confirmblink { animation: confirmblink 1.15s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .confirmblink { animation: none; }
}
.hot:hover { background: var(--teal-dark); }
.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.ghost:hover { border-color: #c9bfb0; }
.danger { background: var(--danger-bg); color: var(--danger); }
.hot.on, a.hot { color: #fff; }

.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  background: #132420;
  color: #f4f7f5;
  padding: 22px 14px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 4px 10px 18px; text-decoration: none; color: inherit; }
.brand .brandtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand strong { font-family: var(--display); font-size: 26px; font-weight: 560; letter-spacing: -0.03em; line-height: 1; color: #f4f7f5; }
.logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; display: block; }
.toplogo { display: none; line-height: 0; }
.toplogo .logo { width: 36px; height: 36px; }
html.nav-collapsed .toplogo { display: inline-flex; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; text-decoration: none; letter-spacing: -0.03em; }
.mark .logo { width: 40px; height: 40px; }
.auth .mark { margin: 0 0 14px; }
.brand span { color: #b7c7c2; font-size: 13px; }
.navgroup { margin: 0 0 16px; }
.navgroup p { margin: 0 8px 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8aa39c; }
.sidebar a.item {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: #e7f1ee;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 15px;
}
.sidebar a.item:hover { background: rgba(255, 255, 255, 0.08); }
.sidebar a.item.on { background: var(--teal); color: #fff; }
.sidefoot { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.workspace { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.titleblock { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1, .card h1, .home h1, .bookflow h1, .auth h1 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.topbar h1 { margin: 0; font-size: 34px; }
main.pad { padding: 14px 22px 48px; }
.menuBtn { display: none; }
.drawerOpen {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 45;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 110, 98, 0.55);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(15, 110, 98, 0.22);
}
.drawerClose {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin: 0;
  background: transparent;
  color: #f4f7f5;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}
.drawerhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 10px;
}
.appPin {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #132420;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 901px) {
  html.nav-collapsed .app { grid-template-columns: minmax(0, 1fr); }
  html.nav-collapsed .sidebar { display: none; }
  html.nav-collapsed .drawerOpen { display: inline-flex; }
  html.nav-collapsed .topbar { padding-left: 72px; }
}
.scrim { position: fixed; inset: 0; background: rgba(19, 36, 32, 0.45); z-index: 30; }
.scrim[hidden] { display: none !important; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 12px; font-size: 18px; }
.muted { color: var(--muted); }
.ok { color: var(--teal-dark); font-weight: 600; }
.bad { color: var(--danger); font-weight: 600; }
a.card { text-decoration: none; color: inherit; display: block; }
details.card { margin-top: 12px; }
details summary { cursor: pointer; font-weight: 600; }
details form { margin-top: 12px; }
.split, .tools { display: grid; gap: 16px; }
.stack { display: grid; gap: 10px; }

.card input, .card select, .card textarea,
.auth input, .auth select, .auth textarea,
.dialog input, .dialog select, .dialog textarea,
.bookflow input, .bookflow select, .bookflow textarea {
  width: 100%;
  border: 1px solid #d9d1c4;
  border-radius: 12px;
  padding: 12px;
  margin: 4px 0 0;
  font: inherit;
  background: #fff;
  color: inherit;
}
textarea { min-height: 88px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; margin: 0; accent-color: var(--teal); }
.field { display: block; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.checks label { display: flex; gap: 6px; align-items: center; color: var(--ink); font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td, th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.people { list-style: none; margin: 8px 0 0; padding: 0; }
.people a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.people a.on, .people a:hover { background: var(--mint); }
.people li.withdel { display: flex; align-items: center; gap: 6px; }
.people li.withdel > a { flex: 1; min-width: 0; }
.people li.withdel form { margin: 0; }
.people li.withdel button { padding: 8px 10px; }
.people small { color: var(--muted); }
.badge { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; background: var(--mint); color: var(--teal-dark); }
.badge.warn { background: var(--warn); color: #6d4b16; }
.badge.bad { background: var(--danger-bg); color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.calbar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin: 0 0 12px; }
.views, .pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pager strong { min-width: 12ch; text-align: center; }
.arrow { width: 40px; height: 40px; padding: 0; border-radius: 999px; }
.daypick { position: relative; }
.up {
  position: absolute;
  z-index: 25;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-width: 240px;
  box-shadow: var(--shadow);
}
.up[hidden], .dialog[hidden], .picker[hidden], .ctx[hidden] { display: none !important; }
.boardwrap {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: none;
  margin-left: -20px;
  margin-right: -20px;
  max-height: calc(100vh - 168px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
html.cal-folded .calfold { display: none !important; }
html.cal-folded .boardwrap { max-height: calc(100vh - 78px); }
html.cal-folded .calbar { position: relative; align-items: center; justify-content: flex-end; min-height: 46px; margin-bottom: 8px; }
.calopen {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 110, 98, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(15, 110, 98, 0.22);
}
html.cal-folded .calopen {
  display: inline-flex;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 46;
}
.sortrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.sortitem {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.sortitem span { font-weight: 600; }
.sortitem .arrow { flex: 0 0 40px; }
.board { display: flex; align-items: flex-start; width: 100%; max-width: 100%; min-width: 0; position: relative; }
.times {
  flex: 0 0 46px;
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  padding-top: var(--head);
  box-sizing: border-box;
}
.times .colhead { background: #fff; }
.hour {
  display: block;
  height: var(--row);
  width: 100%;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  pointer-events: none;
}
.hour span {
  position: absolute;
  top: 0;
  left: 2px;
  right: auto;
  z-index: 2;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  background: #fff;
  padding: 0;
}
.hour .hourend {
  top: auto;
  bottom: 0;
  transform: translateY(50%);
}
.cols { display: flex; flex: 1 1 auto; min-width: 0; }
.col { flex: 0 1 168px; width: auto; min-width: 0; max-width: 168px; }
.board.week .cols { flex: 1 1 auto; width: auto; min-width: 0; }
.board.week .col { flex: 0 1 176px; width: auto; min-width: 0; max-width: 176px; }
.board.week .col.daystart { box-shadow: inset 3px 0 0 var(--teal); }
.col.slim { flex: 0 1 84px; max-width: 84px; }
.board.week .col.slim { flex: 0 1 88px; max-width: 88px; }
.col.slim .colhead strong,
.col.slim .colhead span { font-size: 11px; }
.col.slim .block { font-size: 5px; padding: 1px 2px; }
.colhead {
  height: var(--head);
  box-sizing: border-box;
  padding: 6px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}
.colhead strong { font-size: 13px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colhead span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slots {
  position: relative;
  height: calc(var(--row) * var(--hours));
  background-color: #fff;
  background-image: linear-gradient(#d7e4de 1px, transparent 1px);
  background-size: 100% var(--row);
  background-repeat: repeat-y;
  border-left: 1px solid #e6eee9;
  cursor: pointer;
}
.col.tone1 .slots { background-color: #fff; }
.col.tone1 .hour span, .col.tone1 { background-color: transparent; }
.col.tone1 .colhead { background: #f7f5f0; }
.onlineband {
  position: absolute;
  left: 2px;
  right: 2px;
  z-index: 1;
  border-radius: 8px;
  background: var(--online, #e4f6ec);
  box-shadow: 0 1px 2px rgba(15, 110, 98, 0.14), 0 5px 12px rgba(15, 110, 98, 0.1);
  pointer-events: none;
}
.colhead .resname { display: block; cursor: context-menu; }
.colhead[data-resource] { cursor: context-menu; }
.resdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: 1px;
}
.tonepop {
  position: fixed;
  z-index: 80;
  width: min(280px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.tonepop[hidden] { display: none !important; }
.tonepop .help { color: var(--muted); font-size: 12px; }
.tonepop input[type="color"] { width: 100%; height: 44px; padding: 4px; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.legend i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: inline-block;
}
.legend i.work { background: #fff; border: 1px solid var(--line); }
.legend i.online { background: #e4f6ec; box-shadow: 0 2px 6px rgba(15, 110, 98, 0.16); }
.legend i.off {
  background: repeating-linear-gradient(-52deg, rgba(26, 36, 33, 0.03), rgba(26, 36, 33, 0.03) 4px, rgba(26, 36, 33, 0.08) 4px, rgba(26, 36, 33, 0.08) 8px);
  border: 1px solid var(--line);
}
.block {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 2;
  background: #c9efe6;
  color: #12312c;
  border: 1px solid rgba(15, 110, 98, 0.28);
  border-radius: 6px;
  padding: 1px 3px;
  font-size: 6px;
  line-height: 1.15;
  overflow: hidden;
}
.block .btime,
.chip .btime {
  display: block;
  font-size: 4.5px;
  line-height: 1.1;
  opacity: 0.9;
}
.block .bwho,
.block .bsvc,
.chip .bwho,
.chip .bsvc {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block strong { font-weight: 600; }
.shade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  background: repeating-linear-gradient(-52deg, rgba(26, 36, 33, 0.03), rgba(26, 36, 33, 0.03) 6px, rgba(26, 36, 33, 0.07) 6px, rgba(26, 36, 33, 0.07) 12px);
  pointer-events: none;
}
.offtag {
  position: sticky;
  top: 6px;
  margin: 6px;
  z-index: 3;
  display: inline-block;
  background: var(--warn);
  color: #6d4b16;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  pointer-events: none;
}
.watermark {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.watermark span {
  position: absolute;
  left: -30%;
  right: -30%;
  top: 50%;
  transform: translateY(-50%) rotate(-28deg);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(16px, 1.6vw, 28px);
  white-space: nowrap;
}
.wm-n3 span:nth-child(1) { top: 22%; }
.wm-n3 span:nth-child(2) { top: 50%; }
.wm-n3 span:nth-child(3) { top: 78%; }
.wm-krank { background: repeating-linear-gradient(-28deg, transparent, transparent 16px, rgba(36, 80, 143, 0.1) 16px, rgba(36, 80, 143, 0.1) 17px); }
.wm-krank span, .mstamp.wm-krank { color: rgba(25, 70, 140, 0.55); }
.wm-urlaub { background: repeating-linear-gradient(-28deg, transparent, transparent 16px, rgba(138, 100, 16, 0.12) 16px, rgba(138, 100, 16, 0.12) 17px); }
.wm-urlaub span, .mstamp.wm-urlaub { color: rgba(110, 80, 10, 0.58); }
.wm-abwesend { background: repeating-linear-gradient(-28deg, transparent, transparent 16px, rgba(40, 40, 40, 0.08) 16px, rgba(40, 40, 40, 0.08) 17px); }
.wm-abwesend span, .mstamp.wm-abwesend { color: rgba(40, 40, 40, 0.45); }
.mstamp { display: block; margin: 2px 0; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; background: none; }
.legend i.stamp { background: repeating-linear-gradient(-28deg, #d7e4f6, #d7e4f6 3px, #24508f 3px, #24508f 4px); }
.reslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rescard { display: grid; gap: 2px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; }
.rescard strong { font-size: 18px; }
.splitbox, .groupbox, .mailask { border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 4px; margin: 14px 0; background: #f7f5f0; }
.splitbox h3, .groupbox h3 { margin: 0 0 6px; font-size: 16px; }
.mailask legend { padding: 0 6px; font-weight: 650; }
.quiet { background: transparent; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 0; }
.dangerzone { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
.aim {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 5;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: rgba(201, 239, 230, 0.72);
  color: #12312c;
  font-size: 12px;
  padding: 2px 6px;
  pointer-events: none;
}
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mh { font-size: 12px; color: var(--muted); padding: 0 4px 2px; }
.mday {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 104px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mday.off { opacity: 0.48; }
.mday a { text-decoration: none; font-weight: 600; }
.chip { display: block; font-size: 6px; line-height: 1.15; background: var(--mint); border-radius: 8px; padding: 2px 4px; overflow: hidden; }
#custPop { z-index: 90; }
#custPopText { white-space: pre-wrap; margin: 0 0 14px; }
.dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  background: rgba(19, 36, 32, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog .card {
  width: min(440px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  flex: 0 1 auto;
}
.dialog .hot, .dialog .ghost, .dialog .danger { max-width: 100%; }
.inboxline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.inboxline input, .inboxline .actions { width: 100%; }
.inboxline .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inboxline .actions button { flex: 1 1 140px; }
.liste { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.liste button { justify-content: flex-start; }
.picker, .ctx {
  position: fixed;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  display: grid;
  gap: 4px;
  min-width: 148px;
  box-shadow: var(--shadow);
}
.picker button, .ctx button { width: 100%; }
.agenda { display: grid; gap: 12px; }
.agenda article { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; }
.when { font-variant-numeric: tabular-nums; font-weight: 600; }

.public { min-height: 100vh; }
.pubbar { max-width: 760px; margin: 0 auto; padding: 22px 16px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pubbar a.mark { font-family: var(--display); font-size: 26px; text-decoration: none; letter-spacing: -0.03em; }
.bookflow { max-width: 760px; margin: 0 auto; padding: 12px 16px 48px; }
.bookflow h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 46px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.steps span { text-align: center; font-size: 13px; padding: 8px 4px; border-radius: 999px; background: #e7eee9; color: var(--muted); }
.steps .on { background: var(--teal); color: #fff; }
.summary { background: #f6f3ec; border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.dayrow { display: flex; gap: 8px; overflow: auto; margin: 0 0 16px; padding-bottom: 4px; }
.dayrow a { min-width: 74px; text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; background: #fff; text-decoration: none; color: inherit; }
.dayrow a.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.dayrow a.closed { opacity: 0.45; }
.choicegrid, .timesgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.choicegrid a, .timesgrid a, .timesgrid button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  text-decoration: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.choicegrid a:hover, .timesgrid a:hover, .timesgrid button:hover { border-color: var(--teal); color: var(--teal-dark); }
.choicegrid a small, .timesgrid a small, .choicegrid button small { font-weight: 500; color: var(--muted); }
.band { margin: 0 0 16px; }
.band h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.choicegrid a small.desc {
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bookflow .band h3 {
  margin: 2px 0 8px;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal-dark);
}
.bookflow .choicegrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.back { color: var(--muted); }
.row3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; }
.hourgrid { display: grid; gap: 6px; margin: 8px 0 4px; }
.hourgroups, .hourline { display: grid; grid-template-columns: minmax(88px, 112px) repeat(var(--pairs), minmax(0, 1fr)); gap: 6px; align-items: center; }
.hourgroups { color: var(--muted); font-size: 12px; }
.hourline strong { font-size: 14px; }
.hourpair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hourpair input[type="hidden"] { display: none; }
.hourpair input[type="time"] { width: 100%; min-width: 0; }
@media (max-width: 800px) {
  .hourgroups { display: none; }
  .hourline { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
  .hourpair::before { content: attr(data-label); display: block; grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
}
.locbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.checkline { display: flex; gap: 8px; align-items: center; }
.auth .checkline { align-items: flex-start; font-size: 14px; line-height: 1.4; }
.auth .checkline input { margin-top: 3px; }
.checks .checkline { margin: 0; }
.avatar { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--mint); }
.thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--mint); }
.tablewrap td { vertical-align: middle; }

.home { min-height: 100vh; display: flex; flex-direction: column; }
.home header, .home main { width: min(1100px, 100%); margin: 0 auto; }
.home header { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px; }
.home header .mark { font-family: var(--display); font-size: 28px; text-decoration: none; }
.home main { flex: 1; display: block; max-width: 760px; padding: 12px 20px 48px; }
.welcome main { max-width: none; width: min(1120px, 100%); padding: 8px 20px 80px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--teal-dark); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.welcome h1 { font-size: clamp(42px, 6vw, 68px); max-width: 12ch; }
.free { margin: 8px 0 0; font-family: var(--display); font-size: clamp(34px, 4vw, 48px); color: var(--teal-dark); letter-spacing: -0.03em; }
.freelead { max-width: 42ch; }
.featuregrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.featuregrid article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 8px; }
.featuregrid h2 { margin: 0 0 6px; font-size: 18px; }
.featuregrid p { margin: 0 0 10px; color: var(--muted); }
.featuregrid article.featurefree { background: var(--mint); }
.mock { background: #132420; color: #f3f0e8; border-radius: 28px; padding: 18px 16px 14px; box-shadow: var(--shadow); }
.mocktop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mocktop strong { font-family: var(--display); font-size: 28px; font-weight: 560; }
.mocktop span, .mocknote { color: #b7c7c2; font-size: 13px; }
.mockgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; min-height: 220px; }
.mockgrid div { position: relative; background: rgba(255,255,255,0.04); border-radius: 14px; min-height: 210px; }
.mockgrid b { display: block; padding: 8px 0 0; text-align: center; font-size: 12px; color: #d7f3ec; }
.mockgrid i { position: absolute; left: 6px; right: 6px; top: calc(28px + var(--t) * 28px); height: calc(var(--h) * 26px); border-radius: 8px; background: #1aa894; display: block; }
.mockgrid i.alt { background: #d7f3ec; }
.mockgrid i.soft { background: #f8e7c9; }
.mocknote { margin: 12px 0 0; }
.calmark { min-width: 0; }
@media (min-width: 901px) {
  html.cal-folded .topbar:has(.calfold) { display: none; }
}
.caldomain {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 560;
}
.calslogan {
  margin: 2px 0 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 400;
}
.placeinfo { width: min(760px, calc(100% - 32px)); margin: 12px auto 0; padding: 12px 16px; white-space: pre-line; color: var(--ink); font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.keller { width: min(1100px, 100%); margin: 0 auto; padding: 28px 16px 80px; }
.keller h1 { font-family: var(--display); font-size: 42px; margin: 0 0 8px; }
.keller .stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.keller .stats span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.keller form.inline { display: inline; }
.keller td form { display: inline; }
@media (max-width: 800px) {
  .hero, .featuregrid { grid-template-columns: 1fr; }
  .caldomain { font-size: 22px; }
  .calslogan { margin-left: 0; font-size: 13px; }
}
.home h1 { margin: 0; font-size: clamp(52px, 8vw, 92px); }
.welcome h1 { font-size: clamp(42px, 6vw, 68px); max-width: 12ch; }
.lede { font-size: 18px; color: var(--muted); max-width: 42ch; }
.firmlist { display: grid; gap: 10px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(460px, 100%); }
.auth h1 { margin: 8px 0; font-size: 40px; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .split.even { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 40;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .menuBtn { display: inline-flex; }
  .toplogo { display: inline-flex; }
  .home main { grid-template-columns: 1fr; }
  .topbar, main.pad { padding-left: 14px; padding-right: 14px; }
  .topbar h1 { font-size: 28px; }
  .boardwrap, html.cal-folded .boardwrap { max-height: none; margin-left: -12px; margin-right: -12px; }
  .boardwrap:has(.board.week) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .board.week { width: max-content; max-width: none; min-width: max-content; }
  .board.week .cols { flex: 0 0 auto; width: max-content; min-width: max-content; }
  .board.week .col { flex: 0 0 101px; width: 101px; min-width: 101px; max-width: 101px; }
  .board.week .col.slim { flex: 0 0 50px; width: 50px; min-width: 50px; max-width: 50px; }
  .agenda article { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .month { gap: 4px; }
  .mday { min-height: 76px; padding: 5px; border-radius: 10px; }
  .chip { font-size: 6px; }
  .dialog { padding: 12px; align-items: center; justify-content: center; }
  .dialog .card { width: 100%; max-height: calc(100dvh - 24px); border-radius: 16px; padding: 14px; }
  .inboxline .actions { flex-direction: column; }
  .inboxline .actions button { width: 100%; flex-basis: auto; }
  .reserve { padding: 8px; }
  .actions { flex-wrap: wrap; }
}
.views .ghost, .views .hot { padding: 4px 10px; font-weight: 400; }
.views a.today, .pager a.today { font-weight: 700; }
.block.pending { animation: reserveBlink 1s steps(2, end) infinite; }
.block.hintpulse,
.chip.hintpulse {
  animation: hintpulse 3.2s ease-in-out infinite;
}
@keyframes hintpulse {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { filter: brightness(1.18); box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.45); }
}
.hintstack {
  position: fixed;
  top: 76px;
  right: 12px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(280px, calc(100vw - 24px));
}
.hintcard {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(19, 36, 32, 0.55);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(19, 36, 32, 0.18);
}
.hintcard p { margin: 0 0 10px; }
.hintcard .hot { background: #fff; color: #132420; }
@keyframes reserveBlink { 50% { opacity: 0.35; } }
.reserve {
  background: #fff4d6;
  border: 1px solid #e0b44d;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 10px;
  animation: slideDown 0.35s ease;
}
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches label { width: 26px; height: 26px; border-radius: 50%; display: inline-block; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches label:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 2px; }
.wheel { width: 100%; }
.dialog select.wheel { width: 100%; padding: 4px 8px; line-height: 1.35; }
.kind-urlaub { background: #f6e27a; }
.kind-krank { background: #8eb7e8; }
.kind-abwesend { background: #d5d5d2; }
.kind-anwesend { background: #f3c1d4; }
.shiftblock { border-radius: 8px; padding: 4px 6px; margin: 2px 0; font-size: 12px; }
.switchline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.switchline input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d9d1c4;
  position: relative;
  display: inline-block;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.switchline input:checked + .switch { background: var(--teal); }
.switchline input:checked + .switch::after { transform: translateX(20px); }
.switchline input:focus-visible + .switch { outline: 2px solid var(--teal); outline-offset: 2px; }
.dutyboard {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(88px, 1fr));
  gap: 8px 6px;
  overflow-x: auto;
  --row: 34px;
}
.dutyhead { text-align: center; font-size: 13px; }
.dutyhour { height: var(--row); font-size: 11px; color: var(--muted); position: relative; }
.dutyhour span { position: absolute; top: 0; right: 4px; transform: translateY(-50%); }
.dutyday {
  position: relative;
  height: calc(var(--row) * var(--hours));
  background-color: #fff;
  background-image: linear-gradient(#e6eee9 1px, transparent 1px);
  background-size: 100% var(--row);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dutyblock {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 1;
  overflow: auto;
  border-radius: 8px;
  padding: 4px;
  font-size: 12px;
}
.dutyblock form { margin: 4px 0 0; }
.dutyblock button { padding: 3px 6px; font-size: 11px; }
.csvtable { width: 100%; }
.csvtable td, .csvtable th { vertical-align: middle; }
.csvtable select { width: 100%; }
.csvlook { color: var(--ink); }
.fullbtn {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(44, 44, 44, 0.82);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}
.fullbtn:hover { background: rgba(28, 28, 28, 0.92); }
.fullbtn.on { background: rgba(180, 35, 24, 0.92); }
.fullbtn.on:hover { background: #9d2418; }
.fullbtn .full-exit { display: none; }
.fullbtn.on .full-enter { display: none; }
.fullbtn.on .full-exit { display: block; }
.trashbin {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 47;
  width: 108px;
  height: 100px;
  pointer-events: none;
}
.trashbin .bincore {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: rgba(44, 44, 44, 0.9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transition: width 0.16s ease, height 0.16s ease, left 0.16s ease, bottom 0.16s ease, background 0.16s ease;
}
.trashbin .bincore svg { width: 34px; height: 34px; }
.trashbin.armed { display: block; width: 200px; height: 188px; pointer-events: auto; }
.trashbin.snap .bincore {
  left: 46px;
  bottom: 42px;
  width: 108px;
  height: 108px;
  background: rgba(180, 35, 24, 0.94);
}
.trashbin .binslot {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  max-width: 84px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 1px 56px 1px 8px;
  background: rgba(243, 240, 232, 0.94);
  border-top: 1px solid var(--line);
}
.legal .donate {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 0;
}
.legal .donate input[type="image"] {
  height: 11px;
  width: auto;
  border: 0;
  padding: 0;
  display: block;
}
.legal .donate img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.legal button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  line-height: 11px;
  text-decoration: underline;
}
.legalpop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 36, 32, 0.35);
}
.legalpop[hidden] { display: none !important; }
.legalpop .card {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 22px 22px 16px;
}
.legalpop #legalClose { position: sticky; bottom: 0; margin-top: 14px; background: var(--card); }
#legalStore { display: none; }
.legaltext h3 { margin: 16px 0 6px; font-size: 15px; }
.legaltext p, .legaltext li { font-size: 14.5px; line-height: 1.55; }
.legaltext ul { margin: 6px 0 10px; padding-left: 1.2em; }
.legaltext a { color: var(--teal-dark); text-decoration: underline; }
.legaltext .stand { color: var(--muted); font-size: 13px; margin-top: 16px; }
.mapper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.csvchip, .drop {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}
.csvchip { cursor: grab; }
.csvchip strong, .drop strong { display: block; }
.csvchip span, .drop em { color: var(--muted); font-style: normal; font-size: 13px; word-break: break-word; }
.drop.on { border-color: var(--teal); background: var(--mint); }
.nr { width: 72px; }
@media (max-width: 800px) {
  .mapper { grid-template-columns: 1fr; }
}
