/* Strike – Mitarbeiter-Oberflächen (Counter, Admin, Küche)
   Stil: offene Fläche, eine Markenfarbe nur auf kleinen Marken, ihre hellen Töne auf Flächen */
@font-face { font-family: 'Epilogue'; font-weight: 100 900; font-display: swap; src: url(/fonts/epilogue-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Epilogue'; font-weight: 100 900; font-display: swap; src: url(/fonts/epilogue-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
:root {
  --ground: #faf7f4; --surface: #ffffff; --raised: #f3f1ef; --border: #e8e5e2; --rule: #efedea; --control: #d9d5d1;
  --text: #18191b; --muted: #66686d; --faint: #8d8f94;
  --hue: #7f112c; --hue-ink: #7f112c; --hue-50: #fbf0f2; --hue-100: #f6dde3; --hue-200: #ebbac6;
  --amber-50: #fff6e0; --amber-ink: #8a5a00; --green-50: #e9f7ef; --green-ink: #1d6b3f; --red-50: #fdecec; --red-ink: #a32121; --blue-50: #eaf1fb; --blue-ink: #1f4f8f;
  --r: 8px; --r-sm: 6px;
  --side: 240px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--text); font: 400 14px/1.45 'Epilogue', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; }
.num, td.n, .tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 2px; overflow-y: auto; border-right: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-weight: 900; font-size: 17px; letter-spacing: -0.03em; display: block; line-height: 1.1; }
.brand span { color: var(--muted); font-size: 12px; }
.side .group { font-size: 12px; color: var(--muted); padding: 22px 10px 6px; }
.side a.nav-i { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-size: 14px; transition: background-color .12s, color .12s; }
.side a.nav-i svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.side a.nav-i:hover { background: var(--raised); color: var(--text); }
.side a.nav-i.on { background: var(--hue-50); color: var(--hue-ink); font-weight: 500; }
.side a.nav-i.on svg { stroke: var(--hue); }
.side .badge { margin-left: auto; background: var(--hue); color: #fff; font-size: 11px; font-weight: 500; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.side .spacer { flex: 1; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--hue-100); color: var(--hue-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 13px; flex: none; }
.main { padding: 30px clamp(20px, 3vw, 40px) 60px; min-width: 0; }
.topbar-m { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0; z-index: 60; background: var(--ground); transform: translateX(-100%); transition: transform .2s; width: 100%; height: 100%; }
  .side.open { transform: none; }
  .topbar-m { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--ground); z-index: 50; }
  .topbar-m b { font-weight: 500; }
  .main { padding: 18px 16px 60px; }
}

/* ---------- Kopfzeile ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Bedienelemente ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--control);
  background: var(--surface); color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .12s, border-color .12s, transform .08s; }
.b:hover { background: var(--raised); }
.b:active { transform: translateY(1px); }
.b.primary { background: var(--text); color: #fff; border-color: var(--text); }
.b.primary:hover { background: #000; }
.b.hue { background: var(--hue); border-color: var(--hue); color: #fff; }
.b.hue:hover { background: #951538; }
.b.danger { color: var(--red-ink); }
.b.danger:hover { background: var(--red-50); border-color: #f2c5c5; }
.b.ghost { border-color: transparent; background: transparent; }
.b.ghost:hover { background: var(--raised); }
.b.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.b.lg { height: 48px; padding: 0 20px; font-size: 15px; }
.b[disabled] { opacity: .45; pointer-events: none; }
.b svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.in, select.in, textarea.in { height: 36px; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--surface); width: 100%; min-width: 0; }
textarea.in { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
.in:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--hue-100); }
.in.lg { height: 48px; font-size: 16px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
label.f > span { font-size: 13px; }
label.ck { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
label.ck input { width: 16px; height: 16px; accent-color: var(--hue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; }
.span2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr 1fr; } }
.seg-c { display: inline-flex; background: var(--raised); border-radius: var(--r-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-c button { height: 30px; padding: 0 12px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg-c button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.search { position: relative; }
.search input { padding-left: 34px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--faint); fill: none; stroke-width: 1.8; }

/* ---------- Flächen ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.card > .ch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 0; }
.card > .ch h2, .card > .ch h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card > .cb { padding: 14px 16px 16px; }
.sec-t { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(var(--k, 5), 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.kpis > div { padding: 14px 16px; border-left: 1px solid var(--rule); min-width: 0; }
.kpis > div:first-child { border-left: 0; }
.kpis .l { font-size: 13px; color: var(--muted); }
.kpis .v { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpis .c { font-size: 12px; color: var(--faint); margin-top: 2px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(odd) { border-left: 0; } .kpis > div { border-top: 1px solid var(--rule); } }
.layout-rail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1200px) { .layout-rail { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Tabellen ---------- */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 12px; white-space: nowrap; }
table.t td { padding: 11px 12px; border-top: 1px solid var(--rule); vertical-align: middle; }
table.t th.n, table.t td.n { text-align: right; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fcfbfa; }
table.t td .sub { display: block; font-size: 12px; color: var(--muted); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* ---------- Status-Marken ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--raised); color: var(--muted); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.request { background: var(--amber-50); color: var(--amber-ink); }
.pill.confirmed { background: var(--blue-50); color: var(--blue-ink); }
.pill.checked_in { background: var(--green-50); color: var(--green-ink); }
.pill.playing { background: var(--hue-50); color: var(--hue-ink); }
.pill.completed { background: var(--raised); color: var(--muted); }
.pill.cancelled, .pill.no_show, .pill.declined, .pill.void, .pill.failed { background: var(--red-50); color: var(--red-ink); }
.pill.active, .pill.sent, .pill.ok { background: var(--green-50); color: var(--green-ink); }
.pill.pending, .pill.queued, .pill.not_configured, .pill.waiting { background: var(--amber-50); color: var(--amber-ink); }
.pill.redeemed, .pill.closed, .pill.notified, .pill.booked { background: var(--raised); color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 4px; background: var(--raised); color: var(--muted); margin-right: 4px; }

/* ---------- Bahnen-Board (Counter) ---------- */
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ln { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 196px; position: relative; transition: border-color .15s; }
.ln .top { display: flex; justify-content: space-between; align-items: center; }
.ln .name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.ln .who { font-size: 15px; font-weight: 500; line-height: 1.25; }
.ln .meta { font-size: 13px; color: var(--muted); }
.ln .big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.ln .bar { height: 6px; background: var(--raised); border-radius: 3px; overflow: hidden; }
.ln .bar i { display: block; height: 100%; background: var(--hue); border-radius: 3px; }
.ln .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ln .acts .b { flex: 1; height: 38px; }
.ln.free { border-color: var(--border); }
.ln.playing { border-color: var(--hue-200); }
.ln.overtime { border-color: var(--hue); box-shadow: inset 0 0 0 1px var(--hue); }
.ln.overtime .big { color: var(--hue-ink); }
.ln.due, .ln.soon { border-color: #f1d79c; }
.ln.blocked, .ln.off { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--raised) 8px 9px); }
.ln .next { font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 8px; }
.st { font-size: 12px; font-weight: 500; }
.st.free { color: var(--green-ink); } .st.playing { color: var(--hue-ink); } .st.overtime { color: #fff; background: var(--hue); padding: 2px 8px; border-radius: 10px; }
.st.due, .st.soon { color: var(--amber-ink); } .st.blocked, .st.off { color: var(--muted); }

/* ---------- Zeitachse (Tagesplan / Kalender) ---------- */
.tl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: auto; position: relative; }
.tl-grid { display: grid; grid-template-columns: 110px 1fr; min-width: 900px; }
.tl-hours { position: relative; height: 32px; border-bottom: 1px solid var(--rule); }
.tl-hours span:first-child { transform: none; }
.tl-hours span { position: absolute; top: 9px; font-size: 12px; color: var(--muted); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tl-lane { display: flex; align-items: center; padding: 0 12px; height: 52px; border-bottom: 1px solid var(--rule); font-weight: 500; font-size: 13px; position: sticky; left: 0; background: var(--surface); z-index: 3; }
.tl-lane small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 11px; }
.tl-row { position: relative; height: 52px; border-bottom: 1px solid var(--rule); cursor: copy; }
.tl-row .hr { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.tl-row .hh { position: absolute; top: 0; bottom: 0; width: 1px; border-left: 1px dashed #f3f1ee; }
.tl-bk { position: absolute; top: 6px; height: 40px; border-radius: 4px; padding: 4px 8px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: pointer; background: var(--blue-50); color: var(--blue-ink); border-left: 3px solid #6a93cc; z-index: 2; transition: transform .1s, box-shadow .1s; white-space: nowrap; }
.tl-bk:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 4; }
.food-extra { border-left: 3px solid #d9731a; padding-left: 10px; }
.sub3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .sub3 { grid-template-columns: 1fr; } }
/* Küche: heutige Speisen-Termine */
.food-board { margin: 0 0 18px; border: 2px solid #d9731a; border-radius: 14px; overflow: hidden; }
.food-board > h2 { margin: 0; padding: 10px 14px; background: #d9731a; color: #fff; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.food-board .fb-list { display: grid; gap: 8px; padding: 12px 14px; }
.food-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; background: var(--raised, #fff6ee); border: 1px solid rgba(217, 115, 26, .3); }
.food-row .fr-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.food-row .fr-when { font-weight: 800; font-size: 18px; color: #b85e14; }
.food-row .fr-who { font-weight: 700; }
.food-row .fr-meta { color: var(--muted); font-size: 14px; }
.food-row .fr-info { grid-column: 1 / -1; font-size: 15px; }
.lane-pick { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 8px 2px; }
.lane-pick .ck { white-space: nowrap; }
.tl-bk .food { display: inline-block; font-weight: 800; font-size: 11px; background: #d9731a; color: #fff; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: middle; }
.tl-bk.movable, .tl-block.movable { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
body.dragging-move, body.dragging-move * { -webkit-user-select: none !important; user-select: none !important; cursor: grabbing !important; }
.tl-bk.dragging, .tl-block.dragging { cursor: grabbing; z-index: 9; opacity: .92; box-shadow: 0 8px 20px rgba(0,0,0,.22); transition: none; }
.tl-bk b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.tl-bk.request { background: var(--amber-50); color: var(--amber-ink); border-left: 3px dashed #d9a520; }
.tl-bk.checked_in { background: var(--green-50); color: var(--green-ink); border-left-color: #3b9c64; }
.tl-bk.playing { background: var(--hue-100); color: var(--hue-ink); border-left-color: var(--hue); }
.tl-bk.completed { background: var(--raised); color: var(--muted); border-left-color: var(--control); }
.tl-bk.no_show { background: var(--red-50); color: var(--red-ink); border-left-color: #d66; text-decoration: line-through; }
.tl-block { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.07) 6px 7px); border-left: 1px solid var(--control); border-right: 1px solid var(--control); font-size: 11px; color: var(--muted); padding: 4px 6px; z-index: 1; cursor: pointer; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--hue); z-index: 5; pointer-events: none; }
.tl-closed { position: absolute; top: 0; bottom: 0; background: var(--raised); z-index: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Drawer / Modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(24,25,27,.32); z-index: 80; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--ground); z-index: 81; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.18); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer .dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.drawer .dh h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.drawer .dh p { margin: 4px 0 0; color: var(--muted); }
.drawer .db { flex: 1; overflow-y: auto; padding: 16px 20px 32px; }
.drawer .df { padding: 12px 20px; border-top: 1px solid var(--rule); background: var(--surface); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--rule); margin: 0 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 0; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: 12px; z-index: 91; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .15s ease-out; }
.modal.wide { width: min(920px, calc(100% - 24px)); }
@keyframes pop { from { transform: translate(-50%, -48%); opacity: 0; } }
.modal .mh { padding: 18px 20px 6px; display: flex; justify-content: space-between; align-items: center; }
.modal .mh h2 { margin: 0; font-size: 18px; font-weight: 700; }
.modal .mb { padding: 10px 20px 16px; }
.modal .mf { padding: 12px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.scrim.m { z-index: 90; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: pop2 .2s; max-width: 90vw; }
.toast.err { background: var(--red-ink); }
@keyframes pop2 { from { transform: translateY(8px); opacity: 0; } }

/* Rechnung */
.bill { display: grid; gap: 0; }
.bill .it { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.bill .it:first-child { border-top: 0; }
.bill .it .x { opacity: 0; transition: opacity .1s; }
.bill .it:hover .x { opacity: 1; }
.bill .sum { display: flex; justify-content: space-between; padding: 12px 0 4px; font-size: 18px; font-weight: 600; border-top: 1px solid var(--border); }
.bill .open { display: flex; justify-content: space-between; font-size: 22px; font-weight: 700; padding: 6px 0; }
.bill .open.zero { color: var(--green-ink); }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-grid .b { height: 52px; font-size: 15px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; }
.quick button { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; font-size: 13px; line-height: 1.25; min-height: 52px; transition: background-color .1s; }
.quick button:hover { background: var(--hue-50); border-color: var(--hue-200); }
.quick button small { display: block; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.note-box { background: var(--amber-50); color: var(--amber-ink); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; }
.hist { font-size: 13px; }
.hist div { padding: 6px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 120px 110px 1fr; gap: 8px; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: #7f112c; color: #faf6f0; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; overflow: hidden; }
.login .art .word { font-weight: 900; font-size: clamp(90px, 13vw, 220px); letter-spacing: -0.055em; line-height: .8; }
.login .art p { margin: 0; color: #e9c3cc; max-width: 34ch; }
.login .art .kind { font-weight: 900; font-size: 28px; letter-spacing: -0.03em; color: #faf6f0; }
.login .art img { height: 40px; width: auto; }
.login form { align-self: center; justify-self: center; width: min(380px, 100% - 32px); display: flex; flex-direction: column; gap: 14px; }
.login form h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } .login .art { min-height: 220px; } }

/* Diagramme */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { font-size: 11px; fill: var(--muted); }
.heat { display: grid; grid-template-columns: 34px repeat(var(--cols), 1fr); gap: 2px; font-size: 11px; color: var(--muted); }
.heat i { display: block; height: 22px; border-radius: 3px; background: var(--hue); }

/* Küche */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kds h2 { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; }
.ticket { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; animation: pop2 .2s; }
.ticket.late { border-color: var(--hue); }
.ticket .th { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.ticket ul { list-style: none; margin: 8px 0; padding: 0; font-size: 16px; }
.ticket li { padding: 3px 0; }
.ticket li b { display: inline-block; min-width: 28px; }
.ticket .src { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .kds { grid-template-columns: 1fr; } }

/* Druck: nur Beleg / QR-Bögen */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; display: block !important; }
}
.receipt { width: 72mm; font-size: 12px; line-height: 1.35; color: #000; font-family: 'Epilogue', sans-serif; }
.receipt h3 { text-align: center; margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.receipt .c { text-align: center; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }

/* ================= STRIKE OS ================= */
:root { --r: 10px; --r-sm: 8px; }
.side { padding-top: 20px; gap: 3px; }
.side .brand { display: flex; align-items: baseline; gap: 6px; padding: 2px 10px 16px; text-decoration: none; color: var(--text); }
.side .brand b { font-weight: 900; font-size: 22px; letter-spacing: -0.04em; }
.side .brand .os { font-weight: 800; font-size: 12px; letter-spacing: .08em; color: #fff; background: var(--hue); padding: 3px 6px; border-radius: 5px; transform: translateY(-3px); }
.switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--raised); border-radius: 9px; padding: 3px; margin: 0 4px 10px; }
.switch a { text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 4px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.switch a[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.searchbtn { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 4px 8px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14px; }
.searchbtn:hover { border-color: var(--control); color: var(--text); }
.searchbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.searchbtn kbd { margin-left: auto; font: 11px 'Epilogue', sans-serif; background: var(--raised); border-radius: 4px; padding: 2px 5px; color: var(--faint); }
.side .group { padding-top: 18px; }
.side a.nav-i { height: 36px; }

/* Unterreiter in Bereichen */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.subnav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.subnav a:hover { background: var(--raised); color: var(--text); }
.subnav a[aria-current="page"] { background: var(--hue-50); color: var(--hue-ink); }

/* Schnellsuche */
.qs-res { margin-top: 8px; max-height: 60vh; overflow-y: auto; }
.qs-h { font-size: 12px; color: var(--muted); margin: 14px 2px 4px; font-weight: 600; }
.qs-i { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.qs-i:hover, .qs-i:focus-visible { background: var(--hue-50); }
.qs-i > span:last-child { color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Bestellung: Kacheln + Warenkorb */
.modal.xl { width: min(1100px, calc(100% - 24px)); }
.order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.order-pick { min-width: 0; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.cat-tabs button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); }
.cat-tabs button:hover { color: var(--text); border-color: var(--control); }
.cat-tabs button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; align-content: start; padding: 2px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 76px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .1s, background-color .1s, transform .08s; }
.tile:hover { border-color: var(--hue-200); background: var(--hue-50); }
.tile:active { transform: scale(.97); }
.tile.on { border-color: var(--hue); background: var(--hue-50); }
.tile .tn { font-weight: 600; font-size: 14px; line-height: 1.25; }
.tile .tp { font-size: 13px; color: var(--muted); }
.tile .tq { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--hue); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.order-cart { background: var(--ground); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 0; }
.cart { display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow-y: auto; }
.cart-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.cart-row .qty { display: flex; align-items: center; gap: 4px; }
.cart-row .qty .b { width: 28px; padding: 0; height: 28px; }
.cart-row .qty b { min-width: 18px; text-align: center; }
.cart-row .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-sum b { font-size: 22px; }
@media (max-width: 820px) { .order { grid-template-columns: minmax(0, 1fr); } .tiles { max-height: 40vh; } .order-cart { position: static; } }

/* Bilder in Formularen und Tabellen */
.imgrow { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; }
.imgrow > .stack { flex: 1 1 150px; min-width: 0; } .imgrow > .stack .b { width: 100%; justify-content: center; }
.imgprev { flex: 0 1 200px; min-width: 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--raised); display: flex; align-items: center; justify-content: center; }
.imgprev .std { position: relative; width: 100%; height: 100%; } .imgprev .std img { width: 100%; height: 100%; object-fit: cover; }
.imgprev .std small { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.narrow .imgprev { flex-basis: 100%; }
.imgprev img { width: 100%; height: 100%; object-fit: cover; }
.imggal { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 10px; max-height: 240px; overflow-y: auto; }
.imggal button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; background: var(--raised); }
.imggal button:hover { border-color: var(--hue); }
.imggal img { width: 100%; height: 100%; object-fit: cover; }
label.b input[type=file] { display: none; }
.thumb { display: block; width: 56px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--raised); }
.thumb.sw-wine { background: #7f112c; } .thumb.sw-dark { background: #290c11; } .thumb.sw-light { background: #f2ece4; }

/* Login */
.login .art .word { font-size: clamp(72px, 10vw, 160px); }
.login .art .word span { font-size: .28em; letter-spacing: .05em; background: #faf6f0; color: #7f112c; padding: .1em .25em; border-radius: .15em; margin-left: .2em; vertical-align: .9em; font-weight: 800; }
.login .art .kind { margin-top: 12px; color: #e9c3cc; }

/* allgemeiner Feinschliff */
.head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.card { border-radius: 12px; }
.kpis { border-radius: 12px; }
.ln { border-radius: 12px; }
.modal { border-radius: 14px; }
.drawer .tabs { flex-wrap: nowrap; }
.drawer .tabs button { flex: none; }
.main { max-width: 1600px; }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis > div { padding: 10px 12px; border-left: 1px solid var(--rule); border-top: 0; }
  .kpis > div:nth-child(3n + 1) { border-left: 0; }
  .kpis > div:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .kpis .v { font-size: 20px; }
  .kpis .c { display: none; }
}
.closed-note { background: var(--raised); color: var(--muted); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.ticket { border-radius: 12px; padding: 14px 16px; }
.ticket .th { font-size: 19px; }
.ticket ul { font-size: 18px; }
.kds h2 { font-size: 16px; }

/* ================= Kalender als Terminplatz ================= */
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-date { display: flex; align-items: center; gap: 10px; }
.cal-date > .b { width: 44px; height: 44px; font-size: 24px; padding: 0; border-radius: 50%; }
.cal-date h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cal-date h1 span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cal-date p { margin: 4px 0 0; color: var(--muted); }
.cal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.undo-pair { display: flex; gap: 6px; align-self: center; }
.undo-pair .b { white-space: nowrap; }
.undo-pair .b span { font-size: 15px; }
.bigbtn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--text); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .1s, background-color .15s; }
.bigbtn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.bigbtn:hover { background: #000; }
.bigbtn:active { transform: scale(.97); }
.bigbtn.kitchen { background: var(--hue); }
.bigbtn.kitchen:hover { background: #951538; }
.weekbar { display: flex; align-items: stretch; gap: 6px; margin-bottom: 10px; }
.weekbar > .wk-nav { align-self: center; }
.weekdays { display: flex; gap: 6px; flex: 1; min-width: 0; }
.cal-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-controls .in { width: 160px; }
.wd { flex: 1; min-width: 78px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .12s, background-color .12s; }
.wd span { font-size: 12px; color: var(--muted); font-weight: 600; }
.wd b { font-size: 20px; font-weight: 800; }
.wd small { font-size: 11px; color: var(--faint); }
.wd:hover { border-color: var(--hue-200); }
.wd.today span { color: var(--hue); }
.wd.on { background: var(--hue); border-color: var(--hue); color: #fff; }
.wd.on span, .wd.on small { color: #f6dde3; }
.tl.big .tl-lane, .tl.big .tl-row { height: 60px; }
.tl.big .tl-bk { top: 7px; height: 46px; font-size: 13px; padding: 5px 9px; border-radius: 6px; }
.tl.big .tl-bk b { font-size: 13.5px; }

/* ---- Kalender am Handy: Timeline ist der Star, der Rest wird kompakt ---- */
@media (max-width: 640px) {
  .cal-top { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 12px; }
  .cal-date { gap: 6px; }
  .cal-date > div { flex: 1; text-align: center; }
  .cal-date h1 { font-size: 22px; justify-content: center; gap: 8px; }
  .cal-date h1 span { font-size: 13px; }
  .cal-date p { font-size: 12.5px; line-height: 1.35; }
  .cal-date > .b { width: 40px; height: 40px; font-size: 21px; flex: 0 0 auto; }
  /* Aktionen als aufgeräumtes Raster: Neuer Termin breit, Küche + Einzeichnen nebeneinander, Rückgängig/Wiederholen klein */
  .cal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cal-actions .bigbtn { height: 48px; padding: 0 12px; font-size: 15px; border-radius: 12px; justify-content: center; gap: 8px; }
  .cal-actions #nb { order: 1; grid-column: 1 / -1; }
  .cal-actions #kitchen { order: 2; }
  .cal-actions #draw { order: 3; }
  .cal-actions .undo-pair { order: 4; grid-column: 1 / -1; gap: 8px; }
  .cal-actions .undo-pair .b { flex: 1; justify-content: center; height: 42px; }
  /* Wochenleiste: horizontal wischbare Chips statt großer Karten */
  .wk-nav { display: none; }
  .weekdays { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
  .weekdays::-webkit-scrollbar { display: none; }
  .wd { flex: 0 0 auto; min-width: 56px; scroll-snap-align: center; padding: 6px 10px; border-radius: 10px; }
  .wd b { font-size: 17px; }
  .cal-controls .in { flex: 1; width: auto; }
  .cal-controls #fs span { display: none; }
  .cal-controls #fs { padding: 0 12px; }
  /* Timeline als eigenes, in sich scrollbares Panel; Stunden-Zeile + Bahn-Spalte bleiben beim Scrollen sichtbar */
  .tl.big { max-height: 62vh; }
  .tl-grid { grid-template-columns: 62px 1fr; min-width: 720px; }
  .tl-lane { padding: 0 8px; font-size: 12px; }
  .tl-lane small { display: none; }
  .tl-grid > .tl-lane:first-child { position: sticky; top: 0; left: 0; z-index: 6; }
  .tl-hours { position: sticky; top: 0; z-index: 4; background: var(--surface); }
  .tl.big .tl-lane, .tl.big .tl-row { height: 54px; }
  .legend-row { font-size: 12px; }
}
.legend-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.who-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px; }
.who-row + .who-row { border-top: 1px solid var(--rule); }
.who-row:hover { background: var(--ground); }
.who-row .wt { font-size: 17px; font-weight: 700; }
.who-row .wn b { display: block; font-size: 15px; }
.who-row .wn span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-row .wa { display: flex; gap: 6px; }
.who-row.completed { opacity: .55; }
@media (max-width: 700px) { .who-row { grid-template-columns: 48px minmax(0, 1fr); } .who-row .pill, .who-row .wa { grid-column: 2; } }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pick-grid button { text-align: left; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.pick-grid button:hover { border-color: var(--hue); background: var(--hue-50); }
.pick-grid b { font-size: 18px; }
.pick-grid span { font-size: 13px; color: var(--muted); }

/* Neuer Termin */
.nb .nb-row { display: grid; grid-template-columns: 180px auto minmax(0, 1fr); gap: 16px; align-items: end; }
@media (max-width: 760px) { .nb .nb-row { grid-template-columns: minmax(0, 1fr); } }
.nb .f > span { font-weight: 600; color: var(--text); }
.pstep { display: inline-flex; align-items: center; gap: 4px; background: var(--raised); border-radius: 12px; padding: 4px; height: 48px; }
.pstep button { width: 40px; height: 40px; border-radius: 9px; border: 0; background: var(--surface); font-size: 20px; cursor: pointer; }
.pstep button:hover { background: var(--hue-50); }
.pstep output { min-width: 40px; text-align: center; font-size: 20px; font-weight: 800; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.chips button:hover:not([disabled]) { border-color: var(--hue-200); }
.chips button[aria-pressed="true"] { background: var(--hue); border-color: var(--hue); color: #fff; }
.chips button[disabled] { opacity: .4; cursor: not-allowed; }
.nb .times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.nb .times button { height: 54px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nb .times button small { font-size: 11px; font-weight: 500; color: var(--green-ink); }
.nb .times button.busy small { color: var(--muted); }
.nb .times button:hover:not([disabled]) { border-color: var(--hue); }
.nb .times button[aria-pressed="true"] { background: var(--hue); border-color: var(--hue); color: #fff; }
.nb .times button[aria-pressed="true"] small { color: #f6dde3; }
.nb .times button[disabled] { background: var(--raised); color: var(--faint); cursor: not-allowed; }
.nb-guest { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.hits { display: grid; gap: 4px; margin-top: 6px; }
.hits button { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 14px; }
.hits button:hover { border-color: var(--hue); background: var(--hue-50); }
.hits button span { color: var(--muted); }
.picked { background: var(--green-50); color: var(--green-ink); border-radius: 9px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.nb-quote { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; background: var(--hue-50); color: var(--hue-ink); border-radius: 10px; padding: 0; }
.nb-quote:not(:empty) { padding: 12px 14px; }
.nb-quote span { font-size: 13px; }

/* Gutschein-Design (Bildschirm-Vorschau und Druck) */
.vcard { aspect-ratio: 148 / 105; width: 100%; max-width: 520px; background: #7f112c; color: #faf6f0; border-radius: 14px; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; font-family: 'Epilogue', sans-serif; position: relative; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.vcard::after { content: ''; position: absolute; right: -18%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #290c11; opacity: .55; }
.vcard > * { position: relative; z-index: 1; }
.vcard .vtop { display: flex; justify-content: space-between; align-items: center; }
.vcard .vtop img { height: 2.1em; width: auto; }
.vcard .vtop span { font-size: .8em; letter-spacing: .18em; text-transform: uppercase; color: #e9c3cc; }
.vcard .vfor { font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.vcard .vmsg { font-size: .9em; color: #f3dfe4; max-width: 70%; margin-top: .3em; }
.vcard .vbot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.vcard .vamt { font-size: 3.6em; font-weight: 900; letter-spacing: -0.05em; line-height: .85; }
.vcard .vmeta { text-align: right; display: flex; flex-direction: column; gap: .15em; font-size: .7em; color: #f3dfe4; }
.vcard .vmeta b { font-size: 1.5em; letter-spacing: .06em; color: #fff; }
.vp-prev { display: flex; justify-content: center; font-size: 15px; }
@media print {
  .vsheet.a6 { width: 148mm; height: 105mm; }
  .vsheet.a6 .vcard { width: 148mm; height: 105mm; max-width: none; border-radius: 0; font-size: 13pt; aspect-ratio: auto; }
  .vsheet.a4 { width: 210mm; padding: 15mm 31mm; display: flex; flex-direction: column; gap: 0; }
  .vsheet.a4 .vcard { width: 148mm; height: 105mm; max-width: none; font-size: 13pt; aspect-ratio: auto; }
  .vsheet.a4 .cut { height: 15mm; border-bottom: 1px dashed #999; margin-bottom: 15mm; }
  .vlabel { width: 62mm; height: 29mm; padding: 3mm 4mm; display: flex; flex-direction: column; justify-content: center; font-family: 'Epilogue', sans-serif; color: #000; }
  .vlabel b { font-size: 17pt; letter-spacing: .05em; }
  .vlabel span { font-size: 8pt; }
}
/* Login: Logo klein und sauber */
.login .art > img { align-self: flex-start; height: 26px; width: auto; object-fit: contain; opacity: .9; }

/* Sortieren per Ziehen */
td.drag { width: 34px; padding-right: 0; cursor: grab; touch-action: none; }
td.drag .grip { display: inline-flex; width: 26px; height: 30px; align-items: center; justify-content: center; border-radius: 6px; color: var(--faint); font-size: 18px; user-select: none; }
tr:hover td.drag .grip { background: var(--raised); color: var(--text); }
tbody.sorting { cursor: grabbing; }
tr.dragging td { background: var(--hue-50) !important; }
tr.dragging { box-shadow: 0 6px 18px rgba(0,0,0,.12); position: relative; z-index: 2; }

/* Seitenleiste einklappbar */
.brand-row { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; }
.collapse { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.collapse:hover { background: var(--raised); color: var(--text); }
.collapse svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; }
.shell { transition: grid-template-columns .2s ease; }
body.side-min .shell { grid-template-columns: 68px minmax(0, 1fr); }
body.side-min .side { padding-left: 10px; padding-right: 10px; }
body.side-min .brand-row { flex-direction: column; gap: 6px; padding: 0; }
body.side-min .brand { padding: 2px 0 4px; justify-content: center; }
body.side-min .brand b { display: none; }
body.side-min .brand .os { transform: none; font-size: 13px; padding: 5px 7px; }
body.side-min .collapse svg { transform: rotate(180deg); }
body.side-min .switch, body.side-min .side .group, body.side-min .me > div, body.side-min .me #pw { display: none; }
body.side-min .searchbtn { justify-content: center; padding: 0; margin: 0 0 8px; }
body.side-min .searchbtn span, body.side-min .searchbtn kbd { display: none; }
body.side-min .side a.nav-i { justify-content: center; padding: 0; position: relative; }
body.side-min .side a.nav-i span:not(.badge) { display: none; }
body.side-min .side a.nav-i svg { width: 20px; height: 20px; }
body.side-min .side .badge { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; }
body.side-min .me { flex-direction: column; padding: 8px 0; gap: 6px; }
@media (max-width: 900px) { body.side-min .shell { grid-template-columns: 1fr; } .collapse { display: none; } }

/* Kalender im Vollbild */
#main:fullscreen { background: var(--ground); overflow-y: auto; padding: 24px 32px; max-width: none; }
#main:fullscreen .tl.big .tl-lane, #main:fullscreen .tl.big .tl-row { height: calc((100vh - 330px) / 8); min-height: 56px; }
#fs svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Ergebnisse hochladen */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px; border: 2px dashed var(--control); border-radius: 12px; cursor: pointer; background: var(--ground); transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--hue); background: var(--hue-50); }
.drop.has { border-style: solid; border-color: var(--green-ink); background: var(--green-50); }
.drop .drop-ic svg { width: 26px; height: 26px; stroke: var(--hue); fill: none; stroke-width: 1.8; }
.drop span.faint { font-size: 13px; }
.files { display: grid; gap: 6px; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.file a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .faint { font-size: 12px; }

.ticket .since { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 7px 10px; border-radius: 8px; background: var(--amber-50); color: var(--amber-ink); font-size: 14px; }
.ticket .since.long { background: var(--red-50); color: var(--red-ink); }
.ticket .since b { font-size: 16px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
body.cal-full #main { position: fixed; inset: 0; z-index: 70; background: var(--ground); overflow-y: auto; padding: 20px 28px; max-width: none; }
body.cal-full .side, body.cal-full .topbar-m { display: none; }
body.cal-full .tl.big .tl-lane, body.cal-full .tl.big .tl-row { height: calc((100vh - 330px) / 8); min-height: 56px; }

/* ---------- Kalender v4: Sperren / Training einzeichnen ---------- */
.bigbtn.draw { background: #fff; color: var(--text); box-shadow: inset 0 0 0 2px var(--rule-strong, #d9d4cf); }
.bigbtn.draw:hover { background: var(--hue-50); }
.bigbtn.draw.on { background: #2f5fa8; color: #fff; box-shadow: none; }
.draw-hint { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; padding: 12px 16px; border-radius: 12px; background: #eaf1fb; color: #1f4f8f; font-size: 14px; animation: hintIn .3s ease; }
.draw-hint[hidden] { display: none; }
.draw-hint svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
@keyframes hintIn { from { opacity: 0; transform: translateY(-6px); } }
.tl.drawing .tl-row { cursor: crosshair; touch-action: none; background-image: linear-gradient(rgba(47, 95, 168, .04), rgba(47, 95, 168, .04)); }
.tl.drawing .tl-row:hover { background-color: rgba(47, 95, 168, .06); }
.tl-ghost { position: absolute; top: 4px; bottom: 4px; z-index: 4; border-radius: 8px; background: rgba(47, 95, 168, .18); border: 2px dashed #2f5fa8; color: #1f4f8f; font-size: 12px; font-weight: 700; padding: 4px 8px; white-space: nowrap; overflow: hidden; pointer-events: none; }
/* Arten farbig */
.tl-block.k-training { background: repeating-linear-gradient(135deg, #e6efff 0 6px, #d8e5fb 6px 7px); color: #1f4f8f; border-color: #6a93cc; font-weight: 700; }
.tl-block.k-liga { background: repeating-linear-gradient(135deg, #efe8ff 0 6px, #e3d8fb 6px 7px); color: #4b2f8f; border-color: #8a6acc; font-weight: 700; }
.tl-block.k-event { background: repeating-linear-gradient(135deg, #fff1e0 0 6px, #fbe5c8 6px 7px); color: #8a5a00; border-color: #d9a520; font-weight: 700; }
.tl-block.k-wartung { background: repeating-linear-gradient(135deg, #f4f2f0 0 6px, #e6e2de 6px 7px); color: #5c5650; font-weight: 700; }
.tl-block.k-intern { background: repeating-linear-gradient(135deg, #f7eef0 0 6px, #ecdbe0 6px 7px); color: var(--hue); font-weight: 700; }
.kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.kind-pick .kp { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; border: 2px solid var(--rule); cursor: pointer; font-weight: 600; font-size: 14px; transition: border-color .15s, background-color .15s; }
.kind-pick .kp input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick .kp i, .blk-row i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.kind-pick .kp:has(input:checked) { border-color: var(--text); background: var(--raised, #f7f5f2); }
.kind-pick .kp:has(input:focus-visible) { outline: 2px solid var(--hue); outline-offset: 2px; }
.k-training i, i.k-training { background: #6a93cc; } .k-liga i, i.k-liga { background: #8a6acc; } .k-wartung i, i.k-wartung { background: #8c857e; }
.k-event i, i.k-event { background: #d9a520; } .k-intern i, i.k-intern { background: var(--hue); }
.blk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.blk-row b { display: block; font-size: 14px; } .blk-row small { color: var(--muted); font-size: 12px; }
/* Termin-Fenster: links Absage / Löschen, rechts der Rest */
#dacts { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#dacts .dacts-l, #dacts .dacts-r { display: flex; gap: 8px; flex-wrap: wrap; }
.b.danger-t { color: var(--red-ink); }
.b.danger-t:hover { background: var(--red-50); }

/* Absagen nach Wochentag */
.abs-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 130px; align-items: end; }
.abs-wd > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.abs-wd i { display: block; width: 100%; max-width: 46px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--hue-200); }
.abs-wd b { font-size: 12px; }
.abs-wd span { font-size: 12px; color: var(--muted); }

/* ---------- Stift: Termin oder Sperre wählen ---------- */
.pen-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pen-pick button { display: grid; justify-items: start; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background-color .15s, transform .2s; }
.pen-pick button:hover { border-color: var(--hue); transform: translateY(-1px); }
.pen-pick button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--hue); }
.pen-pick b { font-size: 17px; }
.pen-pick span { font-size: 13px; color: var(--muted); }
.pen-pick .pp-main { background: var(--hue-50, #fbeef1); border-color: var(--hue-200, #e8b5c1); }
@media (max-width: 520px) { .pen-pick { grid-template-columns: 1fr; } }
.ln .acts .b svg { width: 16px; height: 16px; }

/* ---------- Kalender-Zugänge ---------- */
.ro .cal-actions, .ro .edit-only, .ro [data-act], .ro [data-unblock], .ro #dacts, .ro .drawer .db button:not([role="tab"]), .ro .drawer .db form, .ro .drawer .edit-only { display: none !important; }
.ro .drawer input, .ro .drawer select, .ro .drawer textarea { pointer-events: none; }
.cal-only #kitchen, .cal-only [data-order] { display: none !important; }

/* ---------- Abholbereit: gelber Hinweis ---------- */
.ready-flash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(255, 214, 10, .42);
  -webkit-backdrop-filter: blur(3px) saturate(140%); backdrop-filter: blur(3px) saturate(140%); opacity: 0; transition: opacity .35s ease; }
.ready-flash.on { opacity: 1; }
.rf-panel { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 22px; background: rgba(255, 250, 225, .96); border: 2px solid #f0c400;
  box-shadow: 0 30px 80px rgba(80, 60, 0, .35); padding: 18px; display: grid; gap: 12px; transform: translateY(12px) scale(.98); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.ready-flash.on .rf-panel { transform: none; animation: rfpulse 1.6s ease-in-out 2; }
@keyframes rfpulse { 50% { box-shadow: 0 30px 80px rgba(80, 60, 0, .35), 0 0 0 10px rgba(255, 214, 10, .35); } }
.rf-head { display: flex; align-items: center; gap: 14px; }
.rf-head > div { flex: 1; display: grid; }
.rf-head b { font-size: 26px; letter-spacing: -0.02em; color: #4a3800; }
.rf-head span { color: #6b5600; }
.rf-bell { font-size: 34px; }
.rf-o { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #f3dc7a; }
.rf-w { grid-column: 1; display: flex; gap: 10px; align-items: baseline; }
.rf-w b { font-size: 20px; color: #1d1600; }
.rf-w span { color: #8a7300; font-size: 13px; }
.rf-o ul { grid-column: 1; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.rf-o ul span { color: var(--muted); }
.rf-o .b { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Admin: Cup, Anfragen, Passwort ---------- */
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: center; }
.res-grid .res-h { font-size: 12px; font-weight: 600; color: var(--ink-3, #8a7b7e); text-transform: uppercase; letter-spacing: .05em; }
.res-grid .num { text-align: right; font-size: 17px; font-weight: 600; }
.team-row { padding: 6px 0; border-top: 1px solid var(--rule); }
.team-row:first-child { border-top: 0; }
.cup-adm tr.m1 td { background: rgba(212, 175, 55, .14); } .cup-adm tr.m1 td:first-child { box-shadow: inset 3px 0 0 #d4af37; }
.cup-adm tr.m2 td { background: rgba(184, 190, 199, .18); } .cup-adm tr.m2 td:first-child { box-shadow: inset 3px 0 0 #b8bec7; }
.cup-adm tr.m3 td { background: rgba(197, 138, 90, .14); } .cup-adm tr.m3 td:first-child { box-shadow: inset 3px 0 0 #c58a5a; }
.inq-c.done { opacity: .72; }
.new-dot { margin-left: 6px; font-size: 12px; color: var(--hue); }
.pw-row { display: flex; gap: 6px; }
.pw-row .in { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.pw-cur { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pw-cur code { background: var(--bg-2, #f4efe9); padding: 4px 10px; border-radius: 8px; font-size: 15px; letter-spacing: .02em; user-select: all; }
.hero-now { display: grid; gap: 6px; margin-top: 12px; } .hero-now img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }

/* Cup-Verwaltung: Ergebnisse & Tabelle groß in der Hauptspalte, Inhalte rechts */
.cup-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 18px; align-items: start; }
@media (max-width: 1100px) { .cup-work { grid-template-columns: minmax(0, 1fr); } }
.res-grid.big { grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; }
.res-grid.big .in { height: 46px; font-size: 16px; } .res-grid.big .num { font-size: 20px; }
.blk-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; flex-wrap: wrap; }
.blk-sub .sub { display: block; width: 100%; }
.blk-sub.logos img { height: 22px; width: auto; max-width: 60px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; border: 1px solid var(--rule); }
.sp-edit { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; min-height: 64px; align-items: center; }
.sp-item { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 6px 10px; background: #ebe6e6; border: 1px solid var(--rule); border-radius: 8px; }
.sp-item img { max-height: 42px; max-width: 120px; object-fit: contain; }
.sp-item .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink, #290c11); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }

/* Abholbereit: kleiner dauerhafter Hinweis oben in der Mitte */
.ready-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 190; display: inline-flex; align-items: center; gap: 10px; max-width: min(640px, calc(100vw - 24px));
  padding: 8px 8px 8px 14px; border-radius: 999px; border: 2px solid #f0c400; background: #ffe45c; color: #3d2f00; font: inherit; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(80, 60, 0, .3); animation: rbglow 2.4s ease-in-out infinite; }
.ready-bar b { white-space: nowrap; }
.ready-bar .rb-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b5600; }
.ready-bar .rb-go { flex: none; padding: 4px 12px; border-radius: 999px; background: #3d2f00; color: #ffe45c; font-weight: 600; font-size: 13px; }
@keyframes rbglow { 50% { box-shadow: 0 10px 30px rgba(80, 60, 0, .3), 0 0 0 6px rgba(255, 214, 10, .35); } }
/* rot: die Küche hat erinnert – bleibt stehen, bis jemand reagiert */
.ready-flash.red { background: rgba(200, 16, 46, .55); }
.ready-flash.red .rf-panel { background: #fff5f6; border-color: #d0102e; box-shadow: 0 30px 80px rgba(90, 0, 15, .45); }
.ready-flash.red.on .rf-panel { animation: rfred 1.2s ease-in-out infinite; }
@keyframes rfred { 50% { box-shadow: 0 30px 80px rgba(90, 0, 15, .45), 0 0 0 14px rgba(208, 16, 46, .4); } }
.ready-flash.red .rf-head b { color: #8a0018; } .ready-flash.red .rf-head span { color: #8a0018; }
.ready-flash.red .rf-o { border-color: #f3a3b0; } .ready-flash.red .rf-w span { color: #b0122d; }
.ready-flash.red [data-rf-ack] { background: #d0102e; color: #fff; border-color: #d0102e; font-weight: 600; }
/* Küche: Erinnern-Knopf */
.ticket .b.remind { background: #fdecef; color: #b0122d; border-color: #f3b4bf; }
.ticket .b.remind small { font-size: 11px; opacity: .8; }

/* ---------- Hilfe-Rundgang ---------- */
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #7f112c; color: #fff; font: 800 22px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(41, 12, 17, .28); display: grid; place-items: center; transition: transform .15s, background-color .15s; }
.help-fab:hover { transform: scale(1.08); background: #94173a; }
.help-fab:focus-visible { outline: 3px solid #f2c94c; outline-offset: 3px; }
.tour { position: fixed; inset: 0; z-index: 2000; }
.tour.center { background: rgba(20, 6, 9, .62); }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(20, 6, 9, .62), 0 0 0 4px #f2c94c; transition: all .28s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(420px, calc(100vw - 24px)); background: #fff; color: #290c11; border-radius: 18px; padding: 20px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: left .28s ease, top .28s ease; }
.tour.center .tour-card { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tour-card.wait { opacity: .6; }
.tour-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tour-n { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7f112c; }
.tour-x { border: 0; background: #f3eded; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: #290c11; }
.tour-card h2 { margin: 2px 0 8px; font-size: 22px; line-height: 1.25; }
.tour-t { margin: 0; font-size: 17px; line-height: 1.55; }
.tour-dots { display: flex; gap: 6px; margin: 16px 0 14px; flex-wrap: wrap; }
.tour-dots span { width: 8px; height: 8px; border-radius: 50%; background: #e6dcdc; }
.tour-dots span.on { background: #7f112c; width: 22px; border-radius: 4px; }
.tour-nav { display: flex; justify-content: space-between; gap: 10px; }
.tour-nav .b { min-height: 48px; padding: 0 20px; font-size: 16px; }
.tour-nav .b:disabled { opacity: .35; }
@media print { .help-fab { display: none; } }
