*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-4) var(--s-1); overflow-y: auto; scrollbar-width: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; justify-content: center; gap: var(--s-3); }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md);
  background: var(--accent); color: var(--accent-fg);
  font-weight: 700; font-size: 11px; letter-spacing: 0.02em;
}
.brand-name { font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.01em; }
.sidebar .brand-name { display: none; } /* Leiste: nur die Wortmarke, der Name steht im Fenstertitel */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: var(--s-2) 2px; border-radius: var(--r-md);
  color: var(--text-secondary); font-weight: 500; font-size: 11px; line-height: 1.2; text-align: center; letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav a:hover { background: var(--surface-hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent); }
.nav svg, .icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav a { position: relative; }
.nav-badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center; background: var(--danger-subtle); color: var(--danger);
  font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums;
}
.sidebar-foot { margin-top: auto; text-align: center; }
.proto-badge {
  display: inline-block; padding: 2px var(--s-2); border-radius: var(--r-md);
  background: var(--warning-subtle); color: var(--text-secondary);
  font-size: 10px; font-weight: 500; line-height: 1.3;
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-8);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar-search { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.topbar-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.topbar-search input {
  width: 100%; height: 34px; padding: 0 var(--s-3) 0 32px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.topbar-search input:hover { border-color: var(--border-strong); }
.topbar-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.topbar-date { color: var(--text-secondary); font-size: var(--fs-sm); white-space: nowrap; }
#view { padding: var(--s-8); outline: none; max-width: 1440px; width: 100%; }
/* Belegungsplan: ganze Fläche rechts der Leiste, der Plan füllt die Höhe bis zum Fensterrand */
.main:has(#view.is-cal) { height: 100dvh; }
#view.is-cal { max-width: none; padding: var(--s-3) var(--s-5) var(--s-4); flex: 1; min-height: 0; display: flex; flex-direction: column; }
#view.is-cal .cal { flex: 1; min-height: 240px; max-height: none; }

/* Segmented control */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg button {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 5px var(--s-3); border-radius: calc(var(--r-md) - 3px);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 36px; padding: 0 var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-weight: 500; font-size: var(--fs-sm); white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-subtle); border-color: var(--danger); }
.btn-solid-danger { background: var(--danger); border-color: var(--danger); color: oklch(0.99 0 0); }
.btn-solid-danger:hover { background: color-mix(in oklch, var(--danger) 88%, black); border-color: color-mix(in oklch, var(--danger) 88%, black); }
.btn-sm { height: 30px; padding: 0 var(--s-3); }
.btn-icon { width: 36px; padding: 0; }
.btn-ghost { border-color: transparent; background: transparent; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; line-height: var(--lh-tight); }
.page-head p { color: var(--text-secondary); margin-top: var(--s-1); }
.head-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-subtle); }
.card-head h2 { font-size: var(--fs-md); font-weight: 600; }
.card-head .count { color: var(--text-muted); font-weight: 500; margin-left: var(--s-1); }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
.kpi { padding: var(--s-4) var(--s-5) var(--s-5); }
.kpi-value { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: var(--fs-lg); color: var(--text-secondary); font-weight: 500; margin-left: 2px; }
.kpi-sub { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: var(--s-1); }
.kpi-primary .kpi-value { color: var(--accent); }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); margin-top: var(--s-3); overflow: hidden; border: 1px solid var(--border-subtle); }
.meter > span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }

.hotel-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.hotel-tile { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.hotel-tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.hotel-tile-head h3 { font-size: var(--fs-base); font-weight: 600; }
.hotel-tile-head .num { font-size: var(--fs-lg); font-weight: 600; }
.hotel-tile-meta { display: flex; gap: var(--s-4); color: var(--text-secondary); font-size: var(--fs-sm); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 44px; position: relative; }
.spark-bar { flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.spark-bar > span { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.85; transition: opacity var(--dur-fast); }
.spark-bar.is-weekend > span { opacity: 0.55; }
.spark-bar:hover > span, .spark-bar:focus-visible > span { opacity: 1; }
.spark-axis { display: flex; justify-content: space-between; color: var(--text-muted); font-size: var(--fs-xs); margin-top: calc(-1 * var(--s-2)); }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--n-900); color: var(--n-0);
  padding: var(--s-1) var(--s-2); border-radius: var(--r-sm);
  font-size: var(--fs-xs); white-space: nowrap; box-shadow: var(--shadow-md);
  transform: translate(-50%, calc(-100% - 8px));
}
:root[data-theme="dark"] .tooltip { background: var(--n-0); color: var(--n-900); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tooltip { background: var(--n-0); color: var(--n-900); } }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: var(--s-4); }
.list { list-style: none; margin: 0; padding: var(--s-1) 0; }
.list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-5); min-height: 56px; }
.list li + li { border-top: 1px solid var(--border-subtle); }
.room-chip { display: grid; place-items: center; height: 32px; border-radius: var(--r-sm); background: var(--surface-sunken); border: 1px solid var(--border-subtle); font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.list-main { min-width: 0; }
.list-link { border: 0; background: none; padding: var(--s-1) var(--s-2); margin: 0 calc(-1 * var(--s-2)); border-radius: var(--r-sm); text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.list-link:hover { background: var(--surface-hover); }
.list-link:hover strong { color: var(--accent); }
.list-more { display: block; width: 100%; border: 0; border-top: 1px solid var(--border-subtle); background: none; padding: var(--s-3); color: var(--accent); font-weight: 500; font-size: var(--fs-sm); cursor: pointer; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.list-more:hover { background: var(--surface-hover); }
.list.is-collapsed li:nth-child(n+7) { display: none; }
.list-main strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main span { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); color: var(--text-secondary); font-size: var(--fs-sm); }
.list-empty { padding: var(--s-6) var(--s-5); color: var(--text-muted); text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--s-2); height: 22px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.tag-ok { background: var(--success-subtle); color: var(--success); }
.tag-warn { background: var(--warning-subtle); color: var(--warning); }
.tag-danger { background: var(--danger-subtle); color: var(--danger); }
.tag-muted { background: var(--surface-sunken); color: var(--text-secondary); }
.ch { display: inline-flex; align-items: center; gap: 6px; }
.task-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); }
.task-icon.payment { background: var(--danger-subtle); color: var(--danger); }
.task-icon.clean { background: var(--warning-subtle); color: var(--warning); }
.task-icon.inspect { background: var(--accent-subtle); color: var(--accent); }
.sync-card { padding: var(--s-4) var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; }
.sync-card p { color: var(--text-secondary); font-size: var(--fs-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 7px; background: var(--warning); box-shadow: 0 0 0 3px var(--warning-subtle); }
.dot.is-on { background: var(--success); box-shadow: 0 0 0 3px var(--success-subtle); }

/* Channex */
.cx-status { padding: var(--s-4) var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-4); }
.cx-status-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.cx-status-main p { color: var(--text-secondary); font-size: var(--fs-sm); }
.cx-hotels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--s-4); margin: var(--s-4) 0 var(--s-3); align-items: start; }
.cx-hotel .form-actions, .cx-hotel .form-error { padding: 0 var(--s-5) var(--s-4); }
.cx-map td { vertical-align: middle; }
.cx-map .cx-plan td:first-child { padding-left: var(--s-6); }
.cx-id { width: 100%; min-width: 0; font-size: var(--fs-sm); }
.cx-revs .is-problem { background: var(--danger-subtle); }
.cx-problem { white-space: normal; max-width: 42ch; color: var(--danger); }
.count.is-warn { background: var(--danger-subtle); color: var(--danger); }

/* ---------- Kalender ---------- */
.cal-toolbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.cal-toolbar .spacer { flex: 1; }
.cal-nav { display: inline-flex; gap: var(--s-1); align-items: center; }
.cal-range { font-weight: 600; min-width: 190px; font-variant-numeric: tabular-nums; }
.cal-title { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; margin-right: var(--s-2); white-space: nowrap; }
#view.is-cal .cal-toolbar { margin-bottom: var(--s-2); }
#view.is-cal .legend { margin-bottom: var(--s-2); align-items: center; }
.legend { display: flex; gap: var(--s-4); flex-wrap: wrap; color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.legend .hint { margin-left: auto; color: var(--text-muted); }
.legend-group { display: inline-flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.legend-group + .legend-group { padding-left: var(--s-4); border-left: 1px solid var(--border); }
.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key-swatch { width: 22px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px var(--edge); background: var(--fill); }
.key-swatch.is-block { background: repeating-linear-gradient(135deg, var(--block-bg) 0 3px, var(--block-stripe) 3px 6px); --edge: var(--border-strong); }
.key .unpaid { height: 16px; min-width: 16px; padding: 0 4px; border-radius: var(--r-pill); display: inline-grid; place-items: center; background: var(--surface-sunken); color: var(--bar-unpaid-fg); font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--border); }

.cal { overflow: auto; max-height: calc(100vh - 210px); position: relative; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.cal-grid { position: relative; width: max-content; min-width: 100%; user-select: none; -webkit-user-select: none; }
.cal-head, .cal-row, .cal-group { display: flex; }
.cal-head { position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--border); }
.cal-side { position: sticky; left: 0; z-index: 4; width: var(--cal-side-w); flex: none; background: var(--surface); border-right: 1px solid var(--border); display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3) 0 var(--s-4); }
.cal-head .cal-side { z-index: 7; color: var(--text-muted); font-size: var(--fs-xs); }
.cal-day { width: var(--cal-day-w); flex: none; text-align: center; padding: 6px 0; border-left: 1px solid var(--border-subtle); line-height: 1.2; }
.cal-day .wd { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; display: block; }
.cal-day .dn { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-day.is-weekend { background: var(--weekend); }
.cal-day.is-today { background: var(--accent-subtle); }
.cal-day.is-today .dn, .cal-day.is-today .wd { color: var(--accent); }
.cal-day.is-month-start { border-left-color: var(--border-strong); }

.cal-group { height: 32px; background: var(--surface-sunken); border-bottom: 1px solid var(--border-subtle); }
.cal-group .cal-side { background: var(--surface-sunken); font-weight: 600; font-size: var(--fs-sm); }
.cal-group .avail { width: var(--cal-day-w); flex: none; display: grid; place-items: center; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; border-left: 1px solid var(--border-subtle); }
.cal-group .avail.none { color: var(--danger); font-weight: 600; }

.cal-row { height: var(--cal-row-h); border-bottom: 1px solid var(--border-subtle); }
.cal-row .cal-side { font-size: var(--fs-base); }
.cal-row .cal-side strong { font-variant-numeric: tabular-nums; font-weight: 600; width: 36px; }
.cal-row .cal-side .rt { color: var(--text-muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-left: auto; }
.hk-clean { background: var(--success); }
.hk-dirty { background: var(--warning); }
.hk-inspect { background: var(--accent); }
.hk-blocked { background: var(--danger); }
.cal-lane { position: relative; display: flex; cursor: cell; }
.cal-cell { width: var(--cal-day-w); flex: none; border-left: 1px solid var(--border-subtle); }
.cal-cell.is-weekend { background: var(--weekend); }
.cal-cell.is-today { background: var(--today-col); }
.cal-row:hover .cal-side { background: var(--surface-hover); }

.bar {
  --bar-bg: var(--bar-upcoming); --bar-edge: var(--bar-upcoming-edge); --bar-fg: var(--bar-upcoming-text);
  position: absolute; top: 4px; height: calc(var(--cal-row-h) - 8px);
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 4px; padding: 0 var(--s-2);
  border: 0; border-radius: var(--r-sm); cursor: grab; text-align: left; line-height: 1.15;
  background: var(--bar-bg); color: var(--bar-fg); font-size: var(--fs-base); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--bar-edge);
  overflow: hidden; white-space: nowrap; z-index: 2;
  transition: box-shadow var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.bar:hover { box-shadow: inset 0 0 0 1px var(--bar-edge), var(--shadow-md); z-index: 3; }
.bar .bar-top, .bar .bar-sub { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bar .bar-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar .bar-meta { font-weight: 400; font-size: var(--fs-xs); opacity: 0.85; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar.is-block { flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; }
.bar.is-in { --bar-bg: var(--bar-inhouse); --bar-edge: var(--bar-inhouse-edge); --bar-fg: var(--bar-inhouse-text); }
.bar.is-out { --bar-bg: var(--bar-past); --bar-edge: var(--bar-past-edge); --bar-fg: var(--bar-past-text); cursor: pointer; font-weight: 500; }
.bar .icon { width: 15px; height: 15px; flex: none; }
/* Kanal als Abzeichen im Balken (eigene Buchstaben, keine Fremdlogos) */
.ch-badge {
  display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--badge-color, var(--badge-other)); color: var(--badge-fg);
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0;
  box-shadow: 0 0 0 1.5px var(--badge-ring, var(--surface));
}
/* Portal-Logos: Booking.com weißes B auf Blau, Expedia Pfeil auf Gelb/Navy, Airbnb und Google auf weißem Kreis */
.ch-badge.is-logo { background: none; overflow: hidden; }
.ch-badge.is-logo svg { width: 100%; height: 100%; display: block; }
.logo-booking, .logo-expedia { border-radius: 4px; }
.logo-booking .logo-bg, .logo-airbnb .logo-bg, .logo-google .logo-bg { fill: var(--logo-plate); }
.logo-booking .logo-fg { fill: var(--logo-booking); }
.logo-expedia .logo-bg { fill: var(--logo-expedia-bg); }
.logo-expedia .logo-fg { fill: var(--logo-expedia); }
.logo-airbnb .logo-fg { fill: var(--logo-airbnb); }
.logo-google .logo-fg { fill: var(--logo-google); }
/* Im Balken trägt der Rand die Schriftfarbe des Balkens: so hebt sich das Abzeichen auf jeder Statusfarbe ab (≥ 5:1). */
.bar .ch-badge { --badge-ring: var(--bar-fg); width: 18px; height: 18px; font-size: 11px; }
.bar .unpaid {
  flex: none; height: 16px; min-width: 16px; margin-left: auto; padding: 0 4px; border-radius: var(--r-pill); display: inline-grid; place-items: center;
  background: var(--bar-unpaid-bg); color: var(--bar-unpaid-fg); font-size: 11px; font-weight: 700; line-height: 1;
}
.bar.is-clipped-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.is-clipped-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar .grip { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.bar.is-dragging { opacity: 0.35; }
.bar.is-block {
  background: repeating-linear-gradient(135deg, var(--block-bg) 0 6px, var(--block-stripe) 6px 12px);
  box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); font-weight: 500;
}
.bar.is-block:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-md); }
.ghost {
  position: absolute; z-index: 8; pointer-events: none;
  height: calc(var(--cal-row-h) - 8px); border-radius: var(--r-sm);
  border: 2px dashed var(--accent); background: var(--accent-subtle);
  display: flex; align-items: center; padding: 0 var(--s-2); font-size: var(--fs-sm); font-weight: 500; color: var(--accent);
  white-space: nowrap; overflow: hidden;
}
.ghost.is-invalid { border-color: var(--danger); background: var(--danger-subtle); color: var(--danger); }
.select-box { position: absolute; z-index: 1; top: 4px; height: calc(var(--cal-row-h) - 8px); border-radius: var(--r-sm); background: var(--accent-subtle-strong); border: 1px solid var(--accent); pointer-events: none; }
.select-box.is-invalid { background: var(--danger-subtle); border-color: var(--danger); }

/* ---------- Hotels ---------- */
.hotel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.hotel-card { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); cursor: pointer; transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); text-align: left; font: inherit; color: inherit; }
.hotel-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hotel-card h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.hotel-card .addr { color: var(--text-secondary); font-size: var(--fs-sm); }
.type-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-sm); }
.type-list li { display: flex; justify-content: space-between; gap: var(--s-3); color: var(--text-secondary); }
.type-list li span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.stats { display: flex; gap: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.stat .eyebrow { display: block; }
.stat strong { font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.add-card { display: grid; place-items: center; gap: var(--s-2); padding: var(--s-8); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-muted); text-align: center; font-size: var(--fs-sm); }

.detail-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.detail-col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.form { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); }
.field textarea {
  padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  resize: vertical; min-height: 60px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea:hover { border-color: var(--border-strong); }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.label-note { color: var(--text-muted); font-weight: 400; }
.field input, .field select {
  height: 38px; padding: 0 var(--s-3); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:hover, .field select:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.form-actions { display: flex; gap: var(--s-2); justify-content: flex-end; }
/* Hauptknopf steht im DOM vorne (Enter löst ihn aus), optisch aber rechts. */
.form-actions.is-reversed { flex-direction: row-reverse; justify-content: flex-start; flex-wrap: wrap; }
.form-error { color: var(--danger); font-size: var(--fs-sm); background: var(--danger-subtle); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }
.back { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--s-2); }
.back:hover { color: var(--text); }

.table-wrap { overflow-x: auto; position: relative; } /* hält auch visuell versteckte Labels im Scrollbereich */
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th { text-align: left; font-weight: 600; font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: var(--s-2) var(--s-5); border-bottom: 1px solid var(--border); }
td { padding: var(--s-2) var(--s-5); border-bottom: 1px solid var(--border-subtle); height: 48px; }
tr:last-child td { border-bottom: 0; }
td select { height: 32px; padding: 0 var(--s-2); border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); }
.add-room { display: flex; gap: var(--s-2); align-items: flex-end; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.add-room .field input { width: 100px; }

/* ---------- Buchungsliste & Arbeitslisten ---------- */
.filters { display: flex; align-items: center; gap: var(--s-3) var(--s-4); flex-wrap: wrap; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-subtle); }
.seg-count { margin-left: 6px; color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.seg button[aria-pressed="true"] .seg-count { color: var(--accent); }
.seg button:disabled { opacity: 0.45; cursor: not-allowed; }
.range { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-left: auto; }
.field-inline { flex-direction: row; align-items: center; gap: var(--s-2); }
.field-inline input { height: 34px; }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }
.check { display: inline-flex; align-items: center; gap: var(--s-2); margin-left: auto; font-size: var(--fs-sm); color: var(--text-secondary); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.filter-note { padding: var(--s-3) var(--s-5); color: var(--text-secondary); font-size: var(--fs-sm); border-bottom: 1px solid var(--border-subtle); }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btable td { height: 52px; }
.btable tbody tr { cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.btable tbody tr:hover { background: var(--surface-hover); }
.btable tbody tr:hover .list-link strong { color: var(--accent); }
.btable th { white-space: nowrap; }
.btable th, .btable td { padding-left: var(--s-3); padding-right: var(--s-3); }
.btable th:first-child, .btable td:first-child { padding-left: var(--s-5); }
.btable th:last-child, .btable td:last-child { padding-right: var(--s-5); }
.cell-main { min-width: 180px; }
.cell-main .list-link { display: block; margin: 0 calc(-1 * var(--s-2)); }
.cell-main .list-link strong { font-weight: 500; }
.cell-sub { display: flex; gap: var(--s-2); color: var(--text-secondary); font-size: var(--fs-xs); white-space: nowrap; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Rechnung ---------- */
.invoice-tools { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); flex-wrap: wrap; max-width: 820px; }
.invoice-tools .back { margin: 0; }
.invoice-tools .spacer { flex: 1; }
.banner { max-width: 820px; margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--warning-subtle); color: var(--text); font-size: var(--fs-sm); }
.invoice { max-width: 820px; padding: var(--s-12) var(--s-12) var(--s-8); display: flex; flex-direction: column; gap: var(--s-6); }
.inv-head { display: flex; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; }
.inv-return { font-size: var(--fs-xs); color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; margin-bottom: var(--s-2); }
.inv-to address { font-style: normal; line-height: 1.5; }
.inv-from { display: flex; flex-direction: column; text-align: right; font-size: var(--fs-sm); color: var(--text-secondary); }
.inv-from strong { color: var(--text); font-size: var(--fs-md); }
.invoice h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; margin-top: var(--s-4); }
.inv-sub { color: var(--text-secondary); margin-top: calc(-1 * var(--s-4)); }
.inv-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s-2) var(--s-8); margin: 0; }
.inv-meta dt, .inv-sum dt { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }
.inv-meta dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.inv-lines th, .inv-lines td { padding-left: 0; padding-right: var(--s-4); }
.inv-lines th:last-child, .inv-lines td:last-child { padding-right: 0; }
.inv-lines tr:last-child td { border-bottom: 1px solid var(--border); }
.inv-sum { margin: 0 0 0 auto; width: min(320px, 100%); display: flex; flex-direction: column; gap: var(--s-2); }
.inv-sum > div { display: flex; justify-content: space-between; gap: var(--s-4); }
.inv-sum dt { font-size: var(--fs-sm); color: var(--text-secondary); }
.inv-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.inv-total { padding-top: var(--s-2); border-top: 1px solid var(--border); }
.inv-total dt, .inv-total dd { font-weight: 600; color: var(--text); font-size: var(--fs-md); }
.inv-open dt, .inv-open dd { font-weight: 600; color: var(--text); }
.inv-foot { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- Drawer / Modal / Toast ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: oklch(0.2 0.02 205 / 0.25); animation: fade var(--dur-base) var(--ease-out); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(480px, 100vw); /* Platz für sechs Reiter */
  background: var(--surface); box-shadow: var(--shadow-lg); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; animation: slide-in var(--dur-slow) var(--ease-out);
}
.drawer-head { padding: var(--s-5) var(--s-6) var(--s-4); border-bottom: 1px solid var(--border-subtle); display: flex; gap: var(--s-3); align-items: flex-start; }
.drawer-head h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.drawer-head .sub { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 2px; }
.drawer-head .btn { margin-left: auto; }
.drawer-body { padding: var(--s-5) var(--s-6); overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: var(--s-6); }
.drawer-foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--border-subtle); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.drawer-foot .btn-primary { flex: 1; }
.drawer-hint { flex-basis: 100%; font-size: var(--fs-sm); color: var(--text-secondary); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-4); margin: 0; }
.facts dt { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }
.facts dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.section-title { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s-3); }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.stack > .section-title { margin-bottom: 0; }
.tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hint { color: var(--text-muted); font-size: var(--fs-sm); }
.muted { color: var(--text-muted); }
.note { background: var(--warning-subtle); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.note p { margin-top: var(--s-1); white-space: pre-line; }

/* Geldkacheln im Buchungsdetail: immer sichtbar */
.money { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border-subtle); background: var(--surface-sunken); }
.money > div { padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.money > div + div { border-left: 1px solid var(--border-subtle); }
.money span { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }
.money strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--fs-sm); }
.money .is-open strong { color: var(--danger); }
.money .is-refund strong { color: var(--warning); }
.drawer-tabs { display: flex; gap: var(--s-1); padding: 0 var(--s-4); border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; }
.drawer-tabs button {
  border: 0; background: none; cursor: pointer; padding: var(--s-3) var(--s-2); margin-bottom: -1px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast);
}
.drawer-tabs button:hover { color: var(--text); }
.drawer-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count { margin-left: 4px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ledger { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.ledger li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); min-height: 52px; }
.ledger li + li { border-top: 1px solid var(--border-subtle); }
.ledger li > div { flex: 1; min-width: 0; }
.ledger strong { display: block; font-weight: 500; font-size: var(--fs-sm); }
.ledger li > div span { color: var(--text-secondary); font-size: var(--fs-xs); }
.ledger .num { font-weight: 500; white-space: nowrap; }
.amount-open { color: var(--danger); font-weight: 500; }
.amount-refund { color: var(--warning); font-weight: 500; }
.preview-line { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-sunken); font-weight: 500; }
.form-section { margin: var(--s-2) 0 calc(-1 * var(--s-1)); padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); }

.modal { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.seg-full { display: flex; }
.seg-full button { flex: 1; }
.modal::backdrop { background: oklch(0.2 0.02 205 / 0.3); }
.modal[open] { animation: pop var(--dur-base) var(--ease-out); }
/* Kopf bleibt beim Scrollen stehen, damit das X immer erreichbar ist. */
.modal-head { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: var(--s-5) calc(var(--s-5) + 40px) var(--s-3) var(--s-5); }
.modal-x { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; }
.modal-head h2 { font-size: var(--fs-lg); font-weight: 600; }
.modal-head p { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 2px; }

.toasts { position: fixed; bottom: var(--s-6); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: var(--s-2); align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--n-900); color: var(--n-0); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); animation: pop var(--dur-base) var(--ease-out); }
.toast.is-error { background: var(--danger); color: oklch(0.99 0 0); }
.toast button { background: none; border: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: var(--s-1) var(--s-2); }
:root[data-theme="dark"] .toast:not(.is-error) { background: var(--n-0); color: var(--n-900); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast:not(.is-error) { background: var(--n-0); color: var(--n-900); } }

.skeleton { height: 120px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface-sunken), var(--surface-hover), var(--surface-sunken)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes pop { from { transform: translateY(6px) scale(0.98); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Preise (Tagespreise) ---------- */
.rates { overflow: auto; max-height: calc(100vh - 250px); overscroll-behavior: contain; }
.rate-grid { display: grid; grid-template-columns: var(--cal-side-w) repeat(var(--days), minmax(var(--rate-w), 1fr)); width: max-content; min-width: 100%; }
.rate-grid > * { border-left: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.rate-side { position: sticky; left: 0; z-index: 2; background: var(--surface); border-left: 0; border-right: 1px solid var(--border); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); }
.rate-corner { z-index: 4; top: 0; position: sticky; display: flex; align-items: center; color: var(--text-muted); font-size: var(--fs-xs); }
.rate-day { position: sticky; top: 0; z-index: 3; background: var(--surface); text-align: center; padding: 6px 0; line-height: 1.2; border-bottom-color: var(--border); }
.rate-corner { border-bottom-color: var(--border); }
.rate-day .wd { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rate-day .dn { font-weight: 600; font-variant-numeric: tabular-nums; }
.rate-day.is-weekend { background: var(--weekend); }
.rate-day.is-today { background: var(--accent-subtle); }
.rate-day.is-today .wd, .rate-day.is-today .dn { color: var(--accent); }
.rate-type { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: var(--fs-sm); }
.rate-type strong { font-weight: 600; line-height: 1.25; }
.rate-type .link { align-self: flex-start; font-size: var(--fs-xs); color: var(--text-secondary); text-decoration-color: var(--border-strong); }
.rate-type .link:hover { color: var(--accent); text-decoration-color: currentColor; }
.rate-free { display: grid; place-items: center; height: 26px; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; background: var(--surface-sunken); }
.rate-free.none { color: var(--danger); font-weight: 600; }
.rate-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 52px; padding: 0 2px;
  border-top: 0; border-right: 0; background: var(--surface); color: var(--text-secondary); cursor: pointer;
  transition: background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.rate-cell.is-weekend { background: var(--weekend); }
.rate-cell.is-today { background: var(--today-col); }
.rate-cell:hover:not(:disabled) { background: var(--accent-subtle); }
.rate-cell:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.rate-cell:disabled { cursor: default; opacity: 0.5; }
.rate-cell .rp { font-size: var(--fs-sm); font-weight: 500; }
.rate-cell.is-override .rp { color: var(--accent); font-weight: 600; }
.rate-cell .rm { font-size: 11px; color: var(--warning); font-weight: 600; }
.rate-cell.is-closed { background: repeating-linear-gradient(135deg, var(--block-bg) 0 6px, var(--block-stripe) 6px 12px); }
.rate-cell.is-closed .rp { color: var(--text-secondary); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.05em; font-weight: 600; }
/* Text auf der Schraffur bekommt eine ruhige Unterlage, damit er lesbar bleibt. */
.rate-cell.is-closed .rp, .rate-cell.is-closed .rm { background: var(--surface); padding: 0 4px; border-radius: 4px; }
.rate-key { display: inline-flex; align-items: center; gap: 6px; }
.rate-key::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rate-key.is-override::before { background: var(--accent-subtle); box-shadow: inset 0 0 0 1px var(--accent); }
.rate-key.is-closed::before { background: repeating-linear-gradient(135deg, var(--block-bg) 0 2px, var(--border-strong) 2px 4px); }
.rates-foot { margin-top: var(--s-3); }

/* Auswahl-Chips (Zimmertypen, Wochentage, Extras) */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); padding: 0; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm); cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.chip:hover { border-color: var(--border-strong); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); color: var(--text); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus-ring); }
.chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.chip-sm { padding: 0 10px 0 var(--s-2); gap: 6px; }
.chips:has(.chip-sm) { gap: 6px; }
.chip-note { color: var(--text-muted); font-size: var(--fs-xs); }
.warn-note { font-size: var(--fs-sm); color: var(--warning); background: var(--warning-subtle); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }
.rate-form .form-actions .rate-reset { margin-right: auto; color: var(--text-secondary); }

/* Leistungen in der Buchung und Hoteleinstellungen */
.ledger .ledger-sum { min-height: 44px; background: var(--surface-sunken); }
.ledger .ledger-sum strong { font-weight: 600; }
.ledger .ledger-sum .num { font-weight: 600; }
.ledger-compact li { min-height: 44px; }
.check-block { margin-left: 0; margin-top: var(--s-3); }
.card-note { padding: var(--s-3) var(--s-5) var(--s-4); border-top: 1px solid var(--border-subtle); }
tr.is-inactive td { color: var(--text-muted); }

/* ---------- Gäste, Meldeschein, Nachrichten ---------- */
.guest-search { flex-wrap: nowrap; }
.guest-search .grow { flex: 1; }
.guest-search .grow input { width: 100%; max-width: 420px; }
.field-row-zip { grid-template-columns: 7rem 1fr; }
.reg-box { border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.reg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.reg-head .section-title { margin: 0; }
.tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); margin-left: 6px; vertical-align: 2px; }
.msg-list li { display: block; padding: 0; }
.msg-list summary { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); min-height: 52px; cursor: pointer; list-style: none; }
.msg-list summary::-webkit-details-marker { display: none; }
.msg-list summary > div { flex: 1; min-width: 0; }
.msg-list summary > div span { display: block; color: var(--text-secondary); font-size: var(--fs-xs); }
.msg-list summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-list summary:hover { background: var(--surface-hover); }
.msg-list summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring); }
.msg-body { white-space: pre-wrap; font-size: var(--fs-sm); color: var(--text-secondary); padding: var(--s-3); margin: 0 var(--s-3) var(--s-3); background: var(--surface-sunken); border-radius: var(--r-sm); }
.proto-note { border-top: 1px solid var(--border-subtle); padding-top: var(--s-3); }
.cell-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.chip { font: inherit; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r-md); margin: var(--s-6) 0; }
.reg-fields > div { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-subtle); min-height: 64px; }
.reg-fields > div:nth-child(odd):not(.wide) { border-right: 1px solid var(--border-subtle); }
.reg-fields > .wide { grid-column: span 2; }
.reg-fields dt { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }
.reg-fields dd { margin: 4px 0 0; font-weight: 500; }
.reg-empty { display: inline-block; width: 100%; min-height: 20px; }
.sign { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-8); margin: var(--s-12) 0 var(--s-6); }
.sign > div { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-xs); color: var(--text-muted); }
.sign-line { display: block; border-bottom: 1px solid var(--text); min-height: 28px; font-size: var(--fs-base); color: var(--text); }

/* ---------- Anmeldung ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--s-8) var(--s-4); background: var(--bg); }
.login-inner { width: min(400px, 100%); display: flex; flex-direction: column; gap: var(--s-6); }
.login-brand { display: flex; align-items: center; gap: var(--s-3); justify-content: center; }
.login-brand .brand-mark { width: 40px; height: 40px; font-size: 13px; }
.login-brand .brand-name { font-size: var(--fs-lg); }
.login-card { padding: var(--s-6); box-shadow: var(--shadow-md); }
.login-card h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.login-card .btn { height: 40px; }
.login-demo h2 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--s-2); }
.demo-list { display: flex; flex-direction: column; gap: var(--s-1); }
.demo-user {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: var(--s-2) var(--s-3); min-height: 44px;
  border: 1px solid transparent; border-radius: var(--r-md); background: none; cursor: pointer; text-align: left;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.demo-user:hover { background: var(--surface); border-color: var(--border); }
.demo-user strong { font-weight: 500; }
.demo-user span { color: var(--text-muted); font-size: var(--fs-sm); }

/* Benutzermenü oben rechts */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: var(--s-2); height: 36px; padding: 0 var(--s-2) 0 3px; border: 1px solid transparent; border-radius: var(--r-pill); background: none; cursor: pointer; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--surface); border-color: var(--border); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; }
.user-name { font-size: var(--fs-sm); font-weight: 500; }
.user-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; padding: var(--s-1); box-shadow: var(--shadow-lg); z-index: 40; display: flex; flex-direction: column; }
.user-head { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--s-1); }
.user-head span { color: var(--text-muted); font-size: var(--fs-sm); }
.user-pop [role="menuitem"] { text-align: left; padding: var(--s-2) var(--s-3); min-height: 40px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; }
.user-pop [role="menuitem"]:hover, .user-pop [role="menuitem"]:focus-visible { background: var(--surface-hover); }

/* ---------- Reinigung ---------- */
.hk-filter { margin-bottom: var(--s-4); }
.hk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); }
.hk-card { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); border-left: 4px solid var(--success); }
.hk-card.hk-is-dirty { border-left-color: var(--warning); }
.hk-card.hk-is-inspect { border-left-color: var(--accent); }
.hk-card.hk-is-blocked { border-left-color: var(--border-strong); }
.hk-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.hk-no { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.hk-type { color: var(--text-secondary); font-size: var(--fs-sm); }
.hk-who { font-size: var(--fs-sm); min-height: 1.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-set { margin-top: var(--s-3); }
.hk-set button { min-height: 44px; font-size: var(--fs-xs); padding-inline: var(--s-1); }

/* ---------- Verwaltung ---------- */
.admin-tabs { margin-bottom: var(--s-6); }
.seg a {
  white-space: nowrap; padding: 5px var(--s-3); border-radius: calc(var(--r-md) - 3px);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.seg a:hover { color: var(--text); }
.seg a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.export-bar { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.export-bar .field { min-width: 220px; }
.export-bar .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.export-bar + .warn-note { margin-bottom: var(--s-4); }
.export-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: var(--s-4); align-items: start; }
.export-stats { padding: var(--s-4) var(--s-5); border-top: 0; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; row-gap: var(--s-3); }
.export-rows { max-height: 480px; overflow-y: auto; }
.export-rows thead th { position: sticky; top: 0; background: var(--surface); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.account-grid label { font-size: var(--fs-xs); }
.copy-row { display: flex; gap: var(--s-2); }
.copy-row input { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.u-hotels { border: 0; padding: 0; margin: 0; }
.u-hotels legend { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; padding: 0; }
.u-hotels .check { margin-left: 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md); }
.u-hotels .check:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); color: var(--text); }
.rate-base { font-size: var(--fs-xs); color: var(--text-secondary); }
.plan-note { font-size: var(--fs-sm); color: var(--text-secondary); background: var(--accent-subtle); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); margin-bottom: var(--s-3); }
.card > .policy-list { border: 0; border-radius: 0; }
.policy-list li { align-items: center; padding: var(--s-3) var(--s-5); }
.policy-list li > div span { white-space: normal; }
.fee-form { border-top: 1px solid var(--border-subtle); }

/* ---------- Berichte ---------- */
.report-tabs { margin-bottom: var(--s-4); }
.report-bar { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-6); }
.report-bar .field input, .report-bar .field select { min-width: 150px; }
.report-dates { display: flex; gap: var(--s-3); }
.report-kpis { margin-bottom: var(--s-3); }
.report-kpis-3 { grid-template-columns: 1.3fr 1fr 1fr; }
.report-note { margin: 0 0 var(--s-4); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; margin-bottom: var(--s-4); }
.report > .card + .card { margin-top: var(--s-4); }
.card-body { padding: var(--s-5); }
.report-scroll { max-height: 520px; overflow-y: auto; }
.report-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
tfoot th { color: var(--text); font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; border-top: 1px solid var(--border); border-bottom: 0; padding-top: var(--s-3); padding-bottom: var(--s-3); }
tr.is-weekend td { background: var(--weekend); }

/* Auslastung je Tag: Säulen mit 0/50/100-%-Linien, ab heute heller */
.occ-chart { position: relative; padding-left: 44px; }
.occ-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.occ-grid span { font-size: var(--fs-xs); color: var(--text-muted); border-top: 1px solid var(--border-subtle); line-height: 0; padding-top: 0; }
.occ-bars { height: 180px; gap: 2px; }
.occ-bars .spark-bar > span { border-radius: 4px 4px 0 0; opacity: 1; }
/* Gebucht ab heute: schraffiert statt blass, damit die Säule genug Kontrast behält */
.occ-bars .spark-bar.is-forecast > span, .occ-key.is-forecast::before { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, color-mix(in oklch, var(--accent) 40%, var(--surface)) 2px 5px); box-shadow: inset 0 0 0 1px var(--accent); }
.occ-bars .spark-bar:hover > span, .occ-bars .spark-bar:focus-visible > span { opacity: 1; filter: brightness(1.1); }
.occ-axis { display: flex; gap: 2px; margin-top: var(--s-1); }
.occ-axis span { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: visible; }
.occ-legend { margin: var(--s-3) 0 0; }
.occ-key { display: inline-flex; align-items: center; gap: 6px; }
.occ-key::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }

/* Waagerechte Balken mit Beschriftung */
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.bar-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-3); row-gap: 2px; align-items: center; }
.bar-label { font-size: var(--fs-sm); font-weight: 500; grid-row: span 2; }
.bar-track { height: 10px; background: var(--surface-sunken); border-radius: 0 4px 4px 0; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.bar-value { font-size: var(--fs-xs); color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .export-grid, .report-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi-primary { grid-column: span 4; }
}
@media (max-width: 1100px) and (min-width: 901px), (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-primary { grid-column: span 2; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30;
    flex-direction: row; padding: var(--s-1) var(--s-2) calc(var(--s-1) + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--border);
  }
  .brand, .sidebar-foot { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 2px; font-size: var(--fs-xs); padding: var(--s-2) var(--s-3); flex: 1; }
  .main:has(#view.is-cal) { height: auto; }
  #view.is-cal { padding: var(--s-3) var(--s-3) var(--s-2); }
  #view.is-cal .cal { flex: none; max-height: calc(100dvh - 280px); }
  .legend-group + .legend-group { padding-left: 0; border-left: 0; }
  /* Legende in einer Zeile zum Wischen, der Hausname steht schon in der Auswahl oben */
  #view.is-cal .legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  #view.is-cal .legend-group { flex-wrap: nowrap; }
  #view.is-cal .cal-title { display: none; }
  .nav a { padding: var(--s-2) var(--s-1); min-width: 0; }
  .nav-rest { display: none; }
  .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
  .main { padding-bottom: 72px; }
  .topbar { padding: var(--s-3) var(--s-4); }
  #view { padding: var(--s-5) var(--s-4); }
  .dash-grid, .detail-grid, .export-grid { grid-template-columns: 1fr; }
  .cal { max-height: calc(100vh - 260px); }
  .legend .hint { display: none; }
  .toasts { bottom: 88px; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .topbar-date { display: none; }
}
@media (max-width: 760px) {
  .range { margin-left: 0; }
  .check { margin-left: 0; }
  .invoice { padding: var(--s-6) var(--s-5); }
  .inv-meta { grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
  .inv-from { text-align: left; }
}
@media (max-width: 600px) {
  .user-name { display: none; }
  .report-kpis-3 { grid-template-columns: 1fr; }
  .occ-chart { padding-left: 36px; }
  .occ-bars { height: 140px; gap: 1px; }
  .bar-list li { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
  .hk-grid { grid-template-columns: 1fr; }
  :root { --cal-day-w: 52px; --cal-side-w: 92px; }
  .topbar-date { display: none; }
  .topbar { flex-wrap: wrap; }
  /* Zeile 1: Hotel-Umschalter, Zeile 2: Suche und Benutzermenü */
  .scope { flex-basis: 100%; }
  .scope:empty { display: none; }
  .topbar-search { max-width: none; flex: 1 1 0; order: 2; }
  .user-menu { order: 3; }
  /* Mehr als sieben Menüpunkte (Inhaber): Leiste seitlich wischen statt quetschen */
  .nav:has(a:not([hidden]):nth-of-type(8)) { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav:has(a:not([hidden]):nth-of-type(8)) a { flex: 0 0 64px; }
  .money { grid-template-columns: 1fr 1fr; }
  .money > div:nth-child(3) { border-left: 0; }
  .money > div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .filters { padding: var(--s-3) var(--s-4); }
  .filter-note { padding: var(--s-3) var(--s-4); }
  .range { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .range .seg { grid-column: span 2; }
  .field-inline { flex-direction: column; align-items: stretch; gap: 4px; }
  .field-inline input { width: 100%; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .kpis { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .kpi-primary { grid-column: span 2; }
  .kpi { padding: var(--s-3) var(--s-4) var(--s-4); }
  .kpi-value { font-size: var(--fs-xl); }
  .cal-row .cal-side .rt { display: none; }
  .cal-range { min-width: 0; flex-basis: 100%; order: -1; }
  .cal-toolbar { gap: var(--s-2); }
  .cal-toolbar .spacer { display: none; }
  .cal-toolbar .seg { order: 5; }
  .cal-group .cal-side { font-size: var(--fs-xs); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 32px; }
  .list li { padding: var(--s-2) var(--s-4); }
  .field-row { grid-template-columns: 1fr; }
  .field-row-zip { grid-template-columns: 6rem 1fr; }
  .hotel-cards { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .glist .btable th, .glist .btable td { padding-left: var(--s-3); padding-right: var(--s-3); }
  .glist .cell-main { min-width: 0; }
  .glist .cell-sub { overflow-wrap: anywhere; }
  .guest-search { flex-wrap: wrap; }
  .guest-search .grow input { max-width: none; }
}

/* Sieben Menüpunkte auf schmalen Handys: Beschriftung 10 px wie in der iOS-Tab-Leiste. */
@media (max-width: 420px) {
  .nav a { padding-inline: 0; font-size: 10px; letter-spacing: -0.01em; }
  .reg-fields { grid-template-columns: 1fr; }
  .reg-fields > .wide { grid-column: auto; }
  .reg-fields > div:nth-child(odd):not(.wide) { border-right: 0; }
}

/* ---------- Druck (Rechnung, Buchungsliste) ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: var(--surface); }
  .sidebar, .topbar, .no-print, .drawer, .drawer-backdrop, .toasts, .modal { display: none !important; }
  .shell { display: block; }
  #view { padding: 0; max-width: none; }
  .card { border: 0; }
  .invoice { padding: 0; max-width: none; }
  .table-wrap { overflow: visible; }
  .btable tbody tr:hover { background: none; }
}

/* Objekte und Wohnvermietung: bestehende Farben und Komponenten weiterverwenden. */
.object-filters { padding: var(--s-4) var(--s-5); display:flex; flex-wrap:wrap; gap:var(--s-4); align-items:end; }
.object-filters .range { margin:0; align-items:end; }
.object-filters input, .object-filters button { min-height:var(--control-min); }
.object-sections { display:flex; flex-direction:column; gap:var(--s-6); margin-top:var(--s-6); }
.object-hotel { display:flex; align-items:center; justify-content:space-between; gap:var(--s-4); padding:var(--s-4) var(--s-5); }
.object-hotel + .object-hotel { border-top:1px solid var(--border-subtle); }
.unit-row { display:grid; grid-template-columns:minmax(0,1.2fr) auto minmax(0,1.5fr) auto; gap:var(--s-3) var(--s-4); padding:var(--s-4) var(--s-5); border-top:1px solid var(--border-subtle); align-items:start; }
.unit-row.is-child { padding-left:calc(var(--s-5) + var(--unit-indent)); background:var(--surface-sunken); }
.unit-name, .unit-tenant { display:flex; flex-direction:column; gap:var(--s-1); overflow-wrap:anywhere; }
.unit-tenant > span { color:var(--text-secondary); font-size:var(--fs-sm); }
.unit-name strong, .unit-tenant strong { font-weight:500; }
.unit-actions .btn { min-height:var(--control-min); }
.unit-history { grid-column:1 / -1; font-size:var(--fs-sm); }
.unit-history summary, .access-property summary { cursor:pointer; color:var(--accent); padding:var(--s-2) 0; }
.unit-history .ledger { margin-top:var(--s-2); }
.object-note { margin-top:var(--s-6); max-width:65ch; }
.access-property { border-top:1px solid var(--border-subtle); padding:var(--s-2) 0; }
.access-child { padding-left:var(--unit-indent); }
.u-selected { display:flex; flex-direction:column; gap:var(--s-3); }
@media(max-width:900px) {
  .unit-row { grid-template-columns:minmax(0,1fr) auto; }
  .unit-tenant { grid-column:1; }
  .unit-actions { grid-column:2; }
}
@media(max-width:600px) {
  .object-filters { padding:var(--s-4); }
  .object-filters .range { display:flex; width:100%; flex-wrap:wrap; }
  .object-filters .field { flex:1 1 100%; min-width:0; }
  .unit-row { display:flex; flex-direction:column; padding:var(--s-4); }
  .unit-row.is-child { padding-left:calc(var(--s-4) + var(--unit-indent)); }
  .unit-history, .unit-actions { width:100%; }
  .unit-actions .btn { width:100%; }
  .object-hotel { align-items:start; flex-direction:column; }
}
@media(max-width:600px) {
  .object-filters > .seg { flex-wrap:wrap; overflow:visible; }
  .object-building .card-head { flex-wrap:wrap; gap:var(--s-3); }
  .object-building .card-head > div { min-width:0; }
}
/* Preisplan: Preisart als Umschalter, feste Preise je Zimmertyp im Raster */
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 5px var(--s-3); border-radius: calc(var(--r-md) - 3px); font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.seg-opt:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-opt input { accent-color: var(--accent); margin: 0; }
.plan-fixed { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-3); }
.hk-note { font-size: var(--fs-sm); color: var(--text); background: var(--warning-subtle); border-radius: var(--r-sm); padding: var(--s-1) var(--s-2); }
/* Gruppen */
.bar .bar-group { display: inline-flex; flex: none; }
.bar .bar-group .icon { width: 14px; height: 14px; }
.group-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-sm); }
.group-list li { display: flex; justify-content: space-between; gap: var(--s-3); }
.group-list li.is-current { font-weight: 600; }
.group-list span { color: var(--text-secondary); white-space: nowrap; }

/* Übernahme aus eviivo */
.imp-steps { margin: 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); color: var(--text-secondary); max-width: 75ch; }
.imp-steps strong { color: var(--text); font-weight: 500; }
.imp-sum { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.imp-cols summary { cursor: pointer; font-size: var(--fs-sm); color: var(--text-secondary); }
.imp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-1) var(--s-4); margin: var(--s-3) 0 0; font-size: var(--fs-sm); }
.imp-map div { display: flex; gap: var(--s-2); }
.imp-map dt { color: var(--text-secondary); }
.imp-map dt::after { content: ':'; }
.imp-map dd { margin: 0; font-weight: 500; }

/* Rabatt-Staffel im Aktionsformular */
.tier-rows { display: flex; flex-direction: column; gap: var(--s-2); }
.tier-row { display: grid; grid-template-columns: auto 5.5rem auto 5.5rem auto; align-items: center; gap: var(--s-2); justify-content: start; font-size: var(--fs-sm); color: var(--text-secondary); }
.promo-sub { white-space: normal; }

/* Markierungen: Streifen links am Balken, Punkt in Listen und Legende */
.bar.has-tag { box-shadow: inset 5px 0 0 var(--tag), inset 0 0 0 1px var(--bar-edge); padding-left: calc(var(--s-2) + 5px); }
.bar.has-tag:hover { box-shadow: inset 5px 0 0 var(--tag), inset 0 0 0 1px var(--bar-edge), var(--shadow-md); }
.tag-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tag); }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-secondary); white-space: nowrap; }
.tag-colors { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.tag-colors label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-sm); }
.tag-colors label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tag-colors input { position: absolute; opacity: 0; pointer-events: none; }
.tag-colors label:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Sperre über mehrere Zimmer */
.block-rooms-head { display: flex; gap: var(--s-4); margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.block-rooms { max-height: 168px; overflow-y: auto; padding: 2px; }
.door-code { width: 9rem; min-height: 32px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-variant-numeric: tabular-nums; }
.door-code:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }

/* Vorlage: Abstand Tage / Stunden / Minuten */
.offset-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Überbuchung im Belegungsplan: rot gestrichelter Rand, zusätzlich im Text (aria-label) */
.bar.is-clash { outline: 2px dashed var(--danger); outline-offset: -2px; height: calc((var(--cal-row-h) - 10px) / 2); }
.bar.is-clash .bar-sub { display: none; }
.bar.is-clash.is-clash-low { top: calc(var(--cal-row-h) / 2 + 1px); }
.task-icon.overbooked { color: var(--danger); }
.cx-actions { display: flex; flex-direction: column; gap: var(--s-2); align-items: stretch; }
