/* ─────────────────────────────────────────────
   Catania Dienstplan – Mobile-first Styles
   Farben: Tomate, Basilikum, Teig, Holzofen
   ───────────────────────────────────────────── */
:root {
  --bg: #f7f2e9;
  --surface: #fffdf9;
  --surface-2: #f1eadd;
  --line: #e4d9c6;
  --text: #2a211b;
  --muted: #7d6f62;
  --brand: #b3261e;
  --brand-2: #8f1d17;
  --brand-soft: #f7dcd6;
  --basil: #2f6b3f;
  --basil-soft: #dcebdc;
  --amber: #c9861a;
  --amber-soft: #f6e6c7;
  --closed: #b8ad9f;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .08);
  --radius: 16px;
  --radius-s: 10px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171311; --surface: #221c19; --surface-2: #2c2420; --line: #3a302a;
    --text: #f3ebe1; --muted: #a8998b; --brand: #e0533f; --brand-2: #f06a55; --brand-soft: #4a221c;
    --basil: #6fbf86; --basil-soft: #1f3526; --amber: #e6a84a; --amber-soft: #3d2f17; --closed: #5b5048;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.4; overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .wide-only { display: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── App-Rahmen ── */
#app { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 10px;
}
.topbar h1 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandmark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.demo { background: var(--amber-soft); color: var(--amber); }
.pill.ok { background: var(--basil-soft); color: var(--basil); }
.pill.draft { background: var(--amber-soft); color: var(--amber); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }

main { overflow-x: clip; flex: 1; padding: 4px 16px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 1100px; width: 100%; margin: 0 auto; }
main.with-pool { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 128px); }

/* ── Bottom-Navigation ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
}
.tabbar a {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; position: relative;
}
.tabbar .tab-ic { display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; border-radius: 99px; transition: background .15s; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar .tab-label { max-width: 100%; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar a.active { color: var(--brand); }
.tabbar a.active .tab-ic { background: var(--brand-soft); }
.tabbar a .badge { position: absolute; transform: translate(12px, -14px); }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ── Grundbausteine ── */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2, .section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 800; }
.section-title { margin: 22px 4px 10px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px; border: 0;
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 15px;
  transition: transform .08s ease, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:active { background: var(--brand-2); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--brand-soft); color: var(--brand); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.plain { background: transparent; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); min-height: 56px; }
.list-item:last-child { border-bottom: 0; }
.list-item .title { font-weight: 700; }
.list-item .sub { color: var(--muted); font-size: 14px; }
button.list-item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.chev { color: var(--muted); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px 2px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; outline: none;
}
.input:focus { border-color: var(--brand); }
textarea.input { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; white-space: nowrap; padding: 0 12px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.toggle { position: relative; width: 52px; height: 32px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--basil); }
.toggle input:checked + span::after { transform: translateX(20px); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; user-select: none; }
.check input { display: none; }
.check:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; letter-spacing: -.02em; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }

.empty { text-align: center; color: var(--muted); padding: 28px 16px; border: 2px dashed var(--line); border-radius: var(--radius); }
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* ── Wochenkopf ── */
.weekbar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.weekbar .label { flex: 1; text-align: center; }
.weekbar .label b { display: block; font-size: 17px; }
.weekbar .label small { color: var(--muted); font-size: 13px; }

.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.daystrip button {
  border: 0; background: var(--surface); border-radius: 12px; padding: 7px 0 6px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; color: var(--muted); font-weight: 700;
}
.daystrip button b { font-size: 17px; color: var(--text); }
.daystrip button.on { background: var(--brand); color: #fff; }
.daystrip button.on b { color: #fff; }
.daystrip button.closed b { color: var(--closed); text-decoration: line-through; }
.daystrip button.on.closed b { color: #fff; }
.daystrip .dots { display: flex; gap: 3px; height: 6px; margin-top: 2px; }
.daystrip .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--basil); }
.daystrip .dots i.warn { background: var(--amber); }
.daystrip button.on .dots i { background: #fff; }
.daystrip button.today:not(.on) { outline: 2px solid var(--brand); outline-offset: -2px; }

/* ── Planer ── */
.days { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 min(100%, 420px); scroll-snap-align: center; }
@media (min-width: 1000px) { .day { flex-basis: 340px; } }
.day-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-head h3 { margin: 0; font-size: 19px; font-family: var(--serif); flex: 1; }
.day-head h3 small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.day.closed .closed-box { text-align: center; padding: 34px 12px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--line) 35%, transparent) 10px 20px); }
.closed-box b { display: block; font-size: 18px; color: var(--text); margin-bottom: 4px; }

.service { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; }
.service-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.service-head .name { font-weight: 800; font-size: 16px; flex: 1; }
.service-head .time { color: var(--muted); font-size: 13px; font-weight: 600; }
.svc-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--amber-soft); }
.svc-ico.evening { background: #2d2a4a22; }

.lane { border-radius: 12px; padding: 7px; margin-top: 6px; background: var(--surface-2); transition: background .12s, box-shadow .12s; min-height: 52px; }
.lane-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); padding: 0 3px 5px; }
.lane-head .count { margin-left: auto; font-weight: 700; }
.lane-head .count.missing { color: var(--amber); }
.lane-head .count.ok { color: var(--basil); }
.lane-body { display: flex; flex-wrap: wrap; gap: 6px; }
.lane.drop-hover { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.lane.selectable { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 45%, transparent); }
.slot-empty { height: 38px; min-width: 92px; flex: 1; border: 2px dashed color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 3px;
  border-radius: 99px; background: var(--surface); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1);
  font-weight: 700; font-size: 14px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: pan-x pan-y; max-width: 100%;
}
.chip .avatar { width: 32px; height: 32px; font-size: 12px; }
.chip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .t { font-size: 11px; color: var(--muted); font-weight: 700; }
.chip.warn { box-shadow: 0 0 0 2px var(--amber); }
.chip.selected { box-shadow: 0 0 0 3px var(--brand); transform: scale(1.04); }
.chip.dim { opacity: .45; }
.chip.dragging-src { opacity: .3; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -60%) scale(1.08) rotate(-2deg); box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Mitarbeiter-Pool */
.pool {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(60,40,20,.08);
  padding: 8px 0 10px;
}
.pool-head { display: flex; align-items: center; gap: 8px; padding: 0 12px 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.pool-head .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px; scrollbar-width: none; }
.pool-list::-webkit-scrollbar { display: none; }
.pool.remove-hover { background: var(--brand-soft); }
.pool { min-height: 104px; }
.pool .remove-zone { display: none; align-items: center; justify-content: center; min-height: 86px; margin: 0 12px; border: 2px dashed var(--brand); border-radius: 14px; font-weight: 800; color: var(--brand); }
.pool.dragging-assigned .remove-zone { display: flex; }
.pool.dragging-assigned .pool-list, .pool.dragging-assigned .pool-head { display: none; }
.selbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 110px); z-index: 26; background: var(--text); color: var(--bg); border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.selbar button { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; }

/* ── Übersicht (Matrix) ── */
.matrix-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 360px; table-layout: fixed; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.matrix th, .matrix td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix th { font-size: 12px; color: var(--muted); font-weight: 800; background: var(--surface-2); }
.matrix th.closed { color: var(--closed); }
.matrix td.name { text-align: left; padding-left: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: var(--surface); }
.matrix col.c-name { width: 34%; } .matrix col.c-h { width: 9%; }
.matrix td.name .avatar { width: 26px; height: 26px; font-size: 10px; }
@media (max-width: 480px) { .matrix .mk { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; } .matrix th, .matrix td { padding: 7px 1px; } }
.fixed-row { display: grid; grid-template-columns: 1fr 1fr 1fr 42px; gap: 6px; margin-bottom: 8px; }
.fixed-row .input { padding: 8px; min-width: 0; }
.matrix td.closed { background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--line) 50%, transparent) 6px 12px); }
.matrix .mk { display: inline-flex; width: 24px; height: 24px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #fff; margin: 1px; }
.matrix tr.me td { background: var(--brand-soft); }

/* ── Meine Schichten ── */
.next-card { background: linear-gradient(135deg, var(--brand), #d9480f); color: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; position: relative; overflow: hidden; }
.next-card::after { content: "🍕"; position: absolute; right: -10px; bottom: -22px; font-size: 110px; opacity: .14; transform: rotate(-18deg); }
.next-card small { opacity: .85; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.next-card .big { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 4px 0; }
.next-card .meta { font-weight: 600; opacity: .95; }
.shift-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.shift-row .date { width: 48px; text-align: center; flex: none; }
.shift-row .date b { display: block; font-size: 20px; line-height: 1; }
.shift-row .date small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.shift-row .bar { width: 4px; align-self: stretch; border-radius: 4px; }

/* ── Öffnungszeiten-Editor ── */
.pattern { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; align-items: center; }
.pattern .wd { font-weight: 800; font-size: 14px; }
.pattern .svc-toggle { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--muted); }
.pattern .svc-toggle.on { background: var(--basil-soft); border-color: var(--basil); color: var(--basil); }
.preview-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.preview-day { flex: 0 0 auto; width: 56px; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.preview-day b { display: block; font-size: 16px; color: var(--text); }
.preview-day .svc { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.preview-day .svc i { font-style: normal; font-size: 10px; padding: 1px 4px; border-radius: 4px; background: var(--basil); color: #fff; }
.preview-day.closed b { color: var(--closed); }
.preview-day.special { box-shadow: inset 0 0 0 2px var(--amber); }

/* ── Bottom-Sheet & Dialoge ── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 12, 6, .45); z-index: 100; animation: fade .18s ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-b));
  animation: up .24s cubic-bezier(.2,.9,.3,1); max-width: 640px; margin: 0 auto;
}
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet .actions .btn { flex: 1; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.tool { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: var(--surface-2); border: 0; border-radius: 14px; padding: 14px; margin-bottom: 8px; }
.tool .ic { font-size: 22px; line-height: 1; }
.tool b { display: block; }
.tool small { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 140px); transform: translateX(-50%); z-index: 200; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: fade .2s; max-width: calc(100% - 32px); text-align: center; }

/* ── Login ── */
.login { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b)); max-width: 440px; margin: 0 auto; }
.login .logo { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 14px; display: block; box-shadow: var(--shadow); }
.login h1 { font-family: var(--serif); text-align: center; font-size: 32px; margin: 0; }
.login .sub { text-align: center; color: var(--muted); margin: 4px 0 26px; font-weight: 600; }
.langs { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.langs button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.langs button.on { border-color: var(--brand); color: var(--brand); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media print {
  .tabbar, .pool, .topbar .icon-btn, .weekbar button { display: none !important; }
  main { padding: 0; }
  .matrix-wrap { overflow: visible; }
}

/* Drag-Hervorhebung: passende Felder leuchten, andere treten zurück */
.lane.can { background: var(--basil-soft); box-shadow: inset 0 0 0 2px var(--basil); }
.lane.can .lane-head { color: var(--basil); }
.lane.cannot { opacity: .32; filter: saturate(.3); }
.lane.can.drop-hover { background: color-mix(in srgb, var(--basil) 25%, var(--surface)); box-shadow: inset 0 0 0 3px var(--basil); }
.lane.cannot.drop-hover { opacity: .7; box-shadow: inset 0 0 0 2px var(--amber); background: var(--amber-soft); }

/* ── Wochenplan im Catania-Format (Rollen × Schichten) ── */
.plan-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; --plan-role: 92px; --plan-col: 104px; }
@media (min-width: 900px) { .plan-wrap { --plan-role: 130px; --plan-col: 120px; } }
.plan { display: grid; gap: 3px; min-width: min-content; }
.plan-corner, .plan-role { position: sticky; left: 0; z-index: 2; background: var(--bg); }
.plan-role { display: flex; align-items: center; font-weight: 800; font-size: 14px; padding-right: 6px; }
.plan-head { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.plan-head b { color: var(--text); font-size: 13px; white-space: nowrap; }
.plan-head.holiday { background: #ffe7e7; } .plan-head.holiday b { color: #a11424; }
.plan-head.today { box-shadow: inset 0 0 0 2px var(--brand); }
.plan-cell { min-height: 58px; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; font-size: 13px; }
.plan-cell b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-cell.open { background: var(--surface); border: 2px dashed var(--amber); color: var(--amber); }
.plan-cell.off { background: var(--surface-2); color: var(--muted); opacity: .6; }
.plan-cell.me { outline: 3px solid var(--text); outline-offset: -3px; }

/* Eine Person pro Rolle: Rolle links, Name rechts – wie auf dem Dienstplan-Ausdruck */
.lane.single { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 6px 6px 6px 10px; }
.lane.single .lane-head { padding: 0; width: 112px; flex: none; font-size: 14px; color: var(--text); }
.lane.single .lane-body { flex: 1; min-width: 0; }
.lane.single .chip { width: 100%; justify-content: flex-start; }
.lane.single .slot-empty { height: 38px; }
.lane.unneeded { opacity: .55; }
.lane.unneeded .slot-empty { border-style: dotted; }
.plan-cell.takeable { border-color: var(--basil); color: var(--basil); background: var(--basil-soft); cursor: pointer; }

/* ── Überarbeitung: Lesbarkeit, Menü, kein Überlauf ── */
button, .btn { text-align: center; }
.btn { line-height: 1.2; white-space: normal; }
.btn.small { white-space: nowrap; }
.title { font-weight: 700; overflow-wrap: anywhere; }
.title.small { font-size: 14px; }
.sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.center { text-align: center; }
.hint.error, .error { color: var(--brand); font-weight: 700; min-height: 1em; }
.list-item .grow { min-width: 0; }
.card { overflow: hidden; }
.menu-card { padding: 4px 14px; }
.menu-ic { font-size: 20px; width: 32px; text-align: center; flex: none; }
.topbar .menu-btn { position: relative; }
.badge.dot { position: absolute; top: 6px; right: 6px; min-width: 10px; width: 10px; height: 10px; padding: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding-bottom: 6px; }
.menu-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 10px 6px;
  border: 0; border-radius: 16px; background: var(--surface-2); font-weight: 700; font-size: 13px; color: var(--text); }
.menu-tile.on { box-shadow: inset 0 0 0 2px var(--brand); }
.menu-tile-ic { font-size: 26px; line-height: 1; }
.menu-tile-label { line-height: 1.2; overflow-wrap: anywhere; }
.menu-tile .badge { position: absolute; top: 8px; right: 8px; }
.hours-num { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.hours-num b { font-size: 18px; }
.hours-num small { color: var(--muted); font-size: 11px; font-weight: 700; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin-top: 0; }
.login .langs { justify-content: center; margin-top: 22px; }
.seg { flex-wrap: nowrap; }
.seg button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.check { max-width: 100%; }
.chip .nm { min-width: 0; }
.input { min-width: 0; }
select.input { padding-right: 30px; text-overflow: ellipsis; }
.weekbar .label { min-width: 0; }
.weekbar .label b, .weekbar .label small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-head h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tool { align-items: center; }
.tool > div { min-width: 0; }
.sheet h3 { overflow-wrap: anywhere; padding-right: 8px; }
.toast { overflow-wrap: anywhere; }
.empty { overflow-wrap: anywhere; }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } .lane.single .lane-head { width: 92px; } }

/* Dark Mode: helle Sonderfarben nachziehen */
@media (prefers-color-scheme: dark) {
  .plan-head.holiday { background: #4a1f22; } .plan-head.holiday b { color: #ffb4b0; }
  .svc-ico.evening { background: #2d2a4a; }
  .day.closed .closed-box { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255,255,255,.04) 10px 20px); }
  .chip { background: var(--surface-2); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
  .lane { background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); }
  .next-card { color: #fff; }
}

.seg button { flex: 1 1 auto; }
.seg { flex: none; max-width: 100%; }

/* ── Kompakter Kopf (v5) ── */
.topbar { padding: calc(6px + var(--safe-t)) 14px 6px; }
.topbar h1 { font-size: 20px; }
.topbar .icon-btn { width: 38px; height: 38px; }
.weekbar.compact { margin: 0 0 6px; gap: 6px; }
.weekbar.compact .icon-btn { width: 38px; height: 38px; border-radius: 11px; }
.weekbar.compact .label { line-height: 1.15; }
.weekbar.compact .label b { font-size: 16px; }
.weekbar.compact .label small { font-size: 12px; }
.plan-top .daystrip { gap: 4px; margin-bottom: 8px; }
.plan-top .daystrip button { padding: 4px 0 3px; border-radius: 10px; font-size: 11px; box-shadow: none; }
.plan-top .daystrip button b { font-size: 15px; line-height: 1.1; }
.plan-top .daystrip .dots { height: 5px; margin-top: 1px; }
.plan-top .daystrip .dots i { width: 5px; height: 5px; }
.day-head { margin-bottom: 4px; min-height: 32px; }
.day-head h3 { font-size: 16px; }
.day-head h3 small { font-size: 13px; }
.day-head .icon-btn { width: 32px; height: 32px; }
.service { padding: 8px 8px 6px; margin-bottom: 8px; }
.service-head { margin-bottom: 2px; }
.service-head .name { font-size: 15px; }
.svc-ico { width: 24px; height: 24px; font-size: 13px; }
.lane { margin-top: 4px; }
.lane.single { min-height: 44px; padding: 3px 4px 3px 10px; }
.lane.single .lane-head { width: 104px; font-size: 13.5px; }
.lane.single .chip, .lane.single .slot-empty { height: 36px; }
.lane.single .chip .avatar { width: 30px; height: 30px; }
main.with-pool { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 112px); }
.pool { padding: 6px 0 8px; min-height: 92px; }
.pool-head { padding-bottom: 4px; font-size: 12px; }

/* Wochenübersicht: feste Rollenspalte ohne durchscheinende Felder */
.plan-wrap { margin: 0 -16px 0 0; padding: 0 16px 8px 0; --plan-role: 84px; --plan-col: 96px; }
.plan-corner, .plan-role { box-shadow: 4px 0 0 var(--bg); }
.plan-role { font-size: 13px; }
.plan-cell { min-height: 48px; padding: 6px 8px; }
.plan-cell b { font-size: 14px; }
.plan-head { padding: 6px 8px; }
.legal-link { display: block; margin: 14px auto 0; color: var(--muted); font-size: 12px; }
.legal .card { display: flex; flex-direction: column; gap: 3px; }
.legal a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* ── v5: Wochenstatus, Feiertage, Live-Musik ── */
.wk-state { display: inline-block; margin-left: 6px; font-weight: 800; font-size: 11px; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; }
.wk-state.ok { background: var(--basil-soft); color: var(--basil); }
.wk-state.draft { background: var(--amber-soft); color: var(--amber); }
.wk-state.part { background: var(--surface-2); color: var(--muted); }
:root { --holiday: #d6334a; --holiday-soft: #fde6e9; --music: #7c4dff; --music-soft: #efe8ff; }
@media (prefers-color-scheme: dark) { :root { --holiday-soft: #3d1a20; --music-soft: #2a2140; } }
.pill.holiday { background: var(--holiday-soft); color: var(--holiday); }
.pill.music { background: var(--music-soft); color: var(--music); }
.daystrip button.holiday { background: var(--holiday-soft); color: var(--holiday); }
.daystrip button.holiday b { color: var(--holiday); }
.daystrip button.music { box-shadow: inset 0 -3px 0 var(--music); }
.daystrip .note-ic { font-style: normal; font-size: 10px; color: var(--music); margin-left: 1px; vertical-align: super; }
.day.holiday > .day-head h3 { color: var(--holiday); }
.day.music > .day-head h3::after { content: ' ♪'; color: var(--music); }
.plan-head.holiday { background: var(--holiday-soft); } .plan-head.holiday b { color: var(--holiday); }
.plan-head.music { background: var(--music-soft); } .plan-head.music b { color: var(--music); }

/* ── Wochenübersicht: Spalten aus --cols, am Handy alles auf einen Blick ── */
.plan { grid-template-columns: var(--plan-role) repeat(var(--cols, 6), minmax(var(--plan-col), 1fr)); }
.plan-role .short { display: none; }
@media (max-width: 699px) {
  .plan-wrap { --plan-role: 44px; --plan-col: 0px; margin: 0; padding: 0 0 6px; overflow-x: visible; }
  .plan { gap: 2px; min-width: 0; }
  .plan-corner, .plan-role { box-shadow: none; }
  .plan-role .long { display: none; } .plan-role .short { display: inline; }
  .plan-role { font-size: 11px; padding-right: 2px; line-height: 1.1; }
  .plan-head { padding: 4px 3px; border-radius: 6px; min-width: 0; }
  .plan-head b { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
  .plan-head span { font-size: 10px; white-space: nowrap; }
  .plan-cell { min-height: 40px; padding: 4px 4px; border-radius: 6px; min-width: 0; font-size: 10px; }
  .plan-cell b { font-size: 11.5px; letter-spacing: -.2px; }
  .plan-cell span { font-size: 10px; }
  .plan-cell.open { border-width: 1.5px; }
  .plan-cell.open b { font-size: 10px; }
}

/* ── Planer am PC: ganze Breite, alle Tage nebeneinander ── */
@media (min-width: 1000px) {
  main.with-pool { max-width: none; padding-left: 20px; padding-right: 20px; }
  main.with-pool .plan-top { max-width: 1100px; margin: 0 auto; }
  .days { margin: 0; padding: 0 0 6px; gap: 8px; scroll-snap-type: none; }
  .day { flex: 1 1 0; min-width: 188px; }
  .day.closed { flex: 0 0 120px; min-width: 120px; }
  .day.closed .closed-box { padding: 14px 8px; font-size: 13px; }
  .lane.single { padding: 3px 4px 3px 7px; gap: 4px; }
  .lane.single .lane-head { width: 70px; font-size: 12.5px; gap: 3px; overflow: hidden; }
  .lane.single .chip { padding: 0 6px 0 3px; gap: 4px; }
  .lane.single .chip .avatar { width: 24px; height: 24px; font-size: 10px; }
  .lane.single .chip .nm { font-size: 13px; }
  .service-head .time { font-size: 11px; }
}
@media (min-width: 1500px) { .lane.single .lane-head { width: 92px; font-size: 13.5px; } }

/* ── Hinweis-Banner ── */
.banner { border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-weight: 700; font-size: 14px; line-height: 1.4; }
.banner.info { background: var(--amber-soft); color: var(--text); }
.banner.danger { background: #d6334a; color: #fff; }
.banner.ok { background: var(--basil-soft); color: var(--text); }
.banner .btn { margin-top: 8px; }

/* ── Abwesenheitskalender ── */
.cal { padding: 10px 8px 12px; margin-top: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-size: 16px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 2px 0; text-transform: uppercase; }
.cal-day { min-height: 64px; border-radius: 8px; background: var(--surface-2); padding: 3px 2px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; text-align: left; border: 0; color: var(--text); cursor: pointer; }
.cal-day.out { opacity: .38; }
.cal-day.closed { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-day.holiday { background: var(--holiday-soft); }
.cal-day.holiday .cal-num { color: var(--holiday); }
.cal-day.music .cal-num i { font-style: normal; color: var(--music); margin-left: 2px; font-size: 10px; }
.cal-num { font-size: 12px; font-weight: 800; padding-left: 3px; }
.cal-bars { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-bar { display: block; font-size: 9.5px; font-weight: 800; line-height: 1.35; padding: 0 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bar.pending { opacity: .55; background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,.35) 4px 8px); }
.cal-more { font-size: 9.5px; font-weight: 800; color: var(--muted); padding-left: 3px; }
@media (min-width: 700px) { .cal-day { min-height: 86px; padding: 5px 4px; } .cal-bar { font-size: 11px; padding: 1px 5px; } .cal-num { font-size: 13px; } }

/* ── Mein Plan ── */
.my-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 4px 10px; }
.my-head b { font-family: var(--font-display, inherit); font-size: 20px; }
.my-head span { color: var(--muted); font-weight: 700; font-size: 13px; }
button.next-card { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; }
.card.req { padding: 12px 14px; }
.card.req.in { box-shadow: inset 4px 0 0 var(--brand), var(--shadow, 0 1px 2px rgba(0,0,0,.06)); }
.req-title { font-weight: 800; font-size: 15px; }
.swap-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; }
.swap-pair > div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.swap-pair small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.swap-pair b { display: block; font-size: 13px; line-height: 1.3; }
.swap-pair.big b { font-size: 15px; }
.swap-arrow { font-size: 22px; color: var(--brand); font-weight: 900; }
.my-plan .plan-cell { border: 0; font: inherit; text-align: left; cursor: pointer; }
.my-plan .plan-cell.picked { outline: 4px solid var(--brand); outline-offset: -4px; transform: scale(.97); }
.my-plan .plan-cell.can { box-shadow: 0 0 0 3px var(--basil); }
.my-plan .plan-cell.cannot { opacity: .35; filter: saturate(.4); }
.shift-row { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }

/* ── Einstellungen: Startzeiten & Basistag ── */
.role-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.role-time { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 4px 4px 4px 10px; font-weight: 700; font-size: 14px; }
.role-time .input { width: 104px; min-height: 38px; padding: 4px 8px; }
.base-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 18px; align-items: center; }
.base-grid input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand); }

/* ── Erster Start ── */
.onboard-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.onboard-step.done { background: var(--basil-soft); }
.onboard-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; }
.onboard-step.done .onboard-num { background: var(--basil); }

/* ── Passwort-Station (Vollbild am PC des Chefs) ── */
body.station-open { overflow: hidden; }
.station { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow: auto; padding: 24px clamp(16px, 5vw, 64px) 40px; }
.station-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.station-head img { width: 52px; height: 52px; border-radius: 14px; }
.station-head h1 { flex: 1; margin: 0; font-size: clamp(24px, 4vw, 38px); }
.station-lead { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.station-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.station-person { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: 18px; border: 0; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: pointer; font: inherit; font-size: 18px; color: var(--text); }
.station-person:hover { box-shadow: 0 0 0 3px var(--brand); }
.station-form { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.station-user { font-size: 18px; } .station-user b { margin-left: 8px; font-size: 22px; }
.input.big { min-height: 58px; font-size: 20px; }
.btn.big { min-height: 58px; font-size: 18px; }
.station-steps { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.station-steps ol { flex: 1; min-width: 260px; font-size: 19px; line-height: 1.5; padding-left: 24px; margin: 0; }
.station-steps li { margin-bottom: 10px; }
.station-qrbox { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; padding: 14px; border-radius: 16px; }
.station-qr { width: 220px; height: 220px; display: grid; place-items: center; word-break: break-all; color: #000; font-size: 12px; }
.station-qr svg { width: 100%; height: 100%; }
.station-qrbox small { color: #333; font-weight: 700; }

/* ── Mein Plan v6: einfache Schichtkarten ── */
.next-card { padding: 14px 16px; margin-bottom: 12px; }
.next-card .big { font-size: 26px; }
.next-card::after { font-size: 80px; bottom: -14px; }
.my-shift { background: var(--surface); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06)); }
.my-shift-top { display: flex; align-items: center; gap: 12px; }
.my-shift .date { display: flex; flex-direction: column; align-items: center; width: 40px; }
.my-shift .date small { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; }
.my-shift .date b { font-size: 22px; line-height: 1; }
.my-shift .bar { width: 4px; align-self: stretch; border-radius: 4px; }
.my-shift-title { font-weight: 800; font-size: 17px; }
.my-shift-sub { color: var(--muted); font-weight: 700; font-size: 14px; }
.my-shift-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.my-shift-actions .btn { min-height: 42px; font-size: 15px; }
.my-shift-open { margin-top: 8px; font-weight: 700; color: var(--amber); font-size: 14px; }
.swap-give { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.swap-give small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.swap-give b { font-size: 15px; }
.swap-list { display: flex; flex-direction: column; gap: 6px; }
.swap-option { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.swap-option .date { display: flex; flex-direction: column; align-items: center; width: 36px; }
.swap-option .date small { color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.swap-option .date b { font-size: 19px; line-height: 1; }
.swap-option-title { font-weight: 800; font-size: 15px; }
.swap-option-who { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-weight: 700; font-size: 14px; }
.swap-option-who .avatar { width: 22px; height: 22px; font-size: 9px; }
.swap-option .chev { font-size: 20px; color: var(--brand); font-weight: 900; }

/* ── Tagesleiste: nur HEUTE ist rot, der gewählte Tag nur umrandet ── */
.daystrip button.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--brand); }
.daystrip button.on b { color: var(--text); }
.daystrip button.on .dots i { background: var(--brand); }
.daystrip button.on.closed b { color: var(--closed); }
.daystrip button.today { background: var(--brand); color: #fff; }
.daystrip button.today b { color: #fff; }
.daystrip button.today .dots i { background: #fff; }
.daystrip button.today.on { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--brand); }
.this-week { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft, rgba(214,51,74,.12)); padding: 1px 7px; border-radius: 99px; vertical-align: 2px; }
.today-btn { display: inline-block; margin: 2px auto; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; cursor: pointer; }
.weekbar .label small { white-space: normal; overflow: visible; text-overflow: clip; display: block; }
/* Gewählter Tag: neutral (grau) umrandet – Rot bleibt allein für HEUTE */
.daystrip button.on:not(.today) { box-shadow: inset 0 0 0 2px var(--muted); background: var(--surface-2); }
.daystrip button.on:not(.today) .dots i { background: currentColor; opacity: .7; }

/* ── PC: keine extra Tagesleiste – jeder Tag hat oben eine große Kachel, alles bündig untereinander ── */
@media (min-width: 1000px) {
  main.with-pool .plan-top { max-width: none; }
  .plan-top .daystrip { display: none; }
  .day-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 0;
    background: var(--surface); border-radius: 14px; padding: 10px 10px 10px 14px; margin-bottom: 8px; }
  .day-head h3 { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; font-size: 20px; }
  .day-head h3 .wd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .day-head h3 small { font-size: 26px; font-weight: 800; color: var(--text); font-family: inherit; margin: 2px 0 0; }
  .day.is-today > .day-head { background: var(--brand); }
  .day.is-today > .day-head h3, .day.is-today > .day-head h3 small, .day.is-today > .day-head .icon-btn { color: #fff; }
  .day.holiday:not(.is-today) > .day-head { background: var(--holiday-soft); }
  .day.closed > .day-head { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
  .day.closed > .day-head h3 { font-size: 15px; } .day.closed > .day-head h3 small { font-size: 20px; color: var(--muted); }
  .day > .row, .day > .badges { margin-bottom: 6px; }
}
@media (min-width: 1700px) { .lane.single .lane-head { width: 112px; } }
.time-select { max-width: 120px; }
/* Startzeiten: Auswahl nicht abschneiden */
.role-times { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.role-time { min-width: 0; }
.role-time span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-time .time-select, .role-time .input { flex: none; width: 96px; min-width: 96px; padding: 4px 6px; }
/* Ruhetag-Kachel: Knopf passt in die schmale Spalte */
.closed-box { overflow: hidden; }
.closed-box .btn { max-width: 100%; white-space: normal; line-height: 1.2; }
@media (min-width: 1000px) { .day.closed .closed-box .btn { font-size: 12.5px; padding: 6px 8px; min-height: 0; } .day.closed .closed-box b { font-size: 16px; } }
.legal-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legal-links a { color: var(--muted); text-decoration: underline; }
