/* Sitt Wein Team – Design: viel Weißraum, Roboto Condensed, Schwarz/Weiß/Grau, Weinrot als Akzent */
:root {
  --black: #000000; --white: #ffffff;
  --wine: #712828; --wine-dark: #521c1c; --wine-light: #f4ecec;
  --gray-1: #686868; --gray-2: #cccccc; --gray-3: #ececec; --gray-4: #f7f7f7;
  --gold: #ffc107; --gold-light: #fff6d6;
  --ok: #2e7d32; --ok-light: #e8f3e9; --warn: #b26a00; --warn-light: #fff3df;
  --err: #b3261e; --err-light: #fbe9e7; --info: #1f4e79; --info-light: #e8eff6;
  --text: var(--black); --muted: var(--gray-1); --border: var(--gray-3); --bg: var(--white); --card: var(--white);
  --sidebar-w: 248px; --topbar-h: 68px; --radius: 6px;
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
h1 { font-size: 34px; } h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; } h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mr { margin-right: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--white); border-right: 1px solid var(--border); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 14px; padding: 26px 24px 22px; }
.brand img { width: 40px; height: 40px; }
.brand .name { font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.brand .sub { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { padding: 8px 14px; flex: 1; overflow-y: auto; }
.nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 22px 10px 8px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--text); font-size: 15px; }
.nav a:hover { background: var(--gray-4); text-decoration: none; }
.nav a.active { background: var(--black); color: var(--white); font-weight: 700; }
.nav a .ico { width: 22px; display: inline-flex; justify-content: center; }
.ic-svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.nav a.active .ic-svg { stroke: #fff; }
.stats .ic-svg, .sub .ic-svg { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; stroke-width: 1.8; }
.week-summary .ic-svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.nav a .badge { margin-left: auto; }
.sidebar .me { padding: 18px 20px; border-top: 1px solid var(--border); font-size: 13px; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); display: flex; align-items: center; gap: 16px; padding: 0 40px; background: var(--white); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 26px; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.content { padding: 36px 40px 60px; max-width: 1500px; width: 100%; }
.bottomnav { display: none; }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .content { padding: 18px 16px 100px; }
  .topbar { padding: 0 16px; height: 58px; }
  .topbar h1 { font-size: 20px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
  .bottomnav a.active { color: var(--black); font-weight: 700; }
  .bottomnav a .ico { display: inline-flex; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 861px) { .hide-desktop { display: none !important; } }

/* ---------- Karten, Buttons, Formulare ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.card.tight { padding: 16px 18px; }
.card h2 { margin-bottom: 16px; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--wine); color: #fff; border: 1px solid var(--wine); border-radius: var(--radius); padding: 10px 18px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; font-family: var(--font); }
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--black); border-color: var(--black); color: #fff; }
.btn.secondary:hover { background: #222; }
.btn.ghost { background: transparent; color: var(--black); border-color: var(--gray-2); }
.btn.ghost:hover { background: var(--gray-4); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn.danger:hover { background: var(--err-light); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon { padding: 6px 10px; text-transform: none; letter-spacing: 0; }

label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 5px; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { width: 100%; padding: 11px 12px; font-size: 15px; border: 1px solid var(--gray-2); border-radius: var(--radius); background: #fff; color: var(--text); font-family: var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; }
input[type="checkbox"] { width: auto; margin-right: 6px; vertical-align: middle; accent-color: var(--black); }
input[type="color"] { width: 48px; height: 40px; padding: 2px; }
input[type="file"] { padding: 8px; }
textarea { min-height: 70px; resize: vertical; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); margin: 8px 0; cursor: pointer; text-transform: none; letter-spacing: 0; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gray-3); color: var(--gray-1); }
.badge.wine { background: var(--wine-light); color: var(--wine); }
.badge.black { background: var(--black); color: #fff; }
.badge.ok { background: var(--ok-light); color: var(--ok); }
.badge.warn { background: var(--warn-light); color: var(--warn); }
.badge.err { background: var(--err-light); color: var(--err); }
.badge.info { background: var(--info-light); color: var(--info); }
.badge.gold { background: var(--gold-light); color: #7a5c00; }
.badge.count { background: var(--wine); color: #fff; min-width: 20px; text-align: center; padding: 2px 6px; border-radius: 10px; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border-left: 3px solid currentColor; }
.alert.err { background: var(--err-light); color: var(--err); }
.alert.ok { background: var(--ok-light); color: var(--ok); }
.alert.info { background: var(--gray-4); color: var(--gray-1); }
.alert.warn { background: var(--gold-light); color: #6b5000; }

.toast-wrap { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--black); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.2); animation: fadein .2s; }
.toast.err { background: var(--err); }
.toast.ok { background: var(--ok); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tbl tr:hover td { background: var(--gray-4); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--black); }
/* kompaktes Monatsraster */
.tbl.grid-compact th, .tbl.grid-compact td { padding: 2px 6px; font-size: 13px; line-height: 1.2; }
.tbl.grid-compact input, .tbl.grid-compact select { padding: 2px 5px; font-size: 13px; height: 26px; border-radius: 4px; }
.tbl.grid-compact input[type="time"] { padding-right: 2px; }
.tbl.grid-compact .btn.sm { padding: 3px 8px; font-size: 11px; }
.tbl.grid-compact .badge { padding: 1px 5px; font-size: 10px; }
.scroll-x { overflow-x: auto; }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--black); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; font-size: 14px; cursor: pointer; color: var(--muted); white-space: nowrap; font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tabs button.active { color: var(--black); border-bottom-color: var(--black); }

.empty { padding: 36px; text-align: center; color: var(--muted); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--gray-2); border-top-color: var(--black); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { padding: 80px; text-align: center; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--white); width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; border-radius: 10px 10px 0 0; padding: 28px; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 8px; } }
.modal h2 { margin-bottom: 6px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.modal .actions .left { margin-right: auto; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--black); }
.auth-card { background: var(--white); border-radius: 8px; padding: 40px 36px; width: 100%; max-width: 420px; }
.auth-card .logo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.auth-card .logo img { width: 48px; height: 48px; }

/* ---------- Location Switcher ---------- */
.loc-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.loc-switch button { border: 1px solid var(--gray-2); background: #fff; padding: 7px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; color: var(--text); font-family: var(--font); letter-spacing: .03em; }
.loc-switch button.active { background: var(--black); color: #fff; border-color: var(--black); }
.loc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------- Wochenplaner ---------- */
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-nav .label { font-weight: 700; font-size: 18px; min-width: 210px; text-align: center; letter-spacing: .02em; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input.search { max-width: 220px; padding: 8px 12px; font-size: 14px; }
.planner { display: grid; grid-template-columns: 210px repeat(7, minmax(128px, 1fr)); min-width: 1080px; border: 1px solid var(--border); background: var(--white); }
.planner .hd { padding: 12px 12px 10px; background: var(--white); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; font-weight: 700; position: sticky; top: 0; z-index: 3; }
.planner .hd.today { color: var(--wine); }
.planner .hd .stats { font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 3px; display: flex; gap: 10px; }
.planner .hd .bar { height: 4px; background: var(--gray-3); margin-top: 8px; display: flex; overflow: hidden; }
.planner .hd .bar i { display: block; height: 100%; background: var(--ok); }
.planner .hd .bar i.draft { background: var(--gold); }
.planner .rowhd { padding: 10px 12px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; background: var(--white); position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.planner .rowhd .sub { font-size: 11px; color: var(--muted); display: flex; gap: 8px; margin-top: 2px; }
.planner .rowhd.over { background: var(--err-light); box-shadow: inset 3px 0 0 var(--err); }
.planner .cell { padding: 5px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--gray-4); min-height: 64px; position: relative; }
.planner .cell.today { background: #fcfaf7; }
.planner .cell.can-add { cursor: pointer; }
.planner .cell.can-add:hover { background: var(--gray-4); }
.planner .cell .add { position: absolute; right: 6px; bottom: 2px; font-size: 16px; color: var(--gray-2); opacity: 0; }
.planner .cell:hover .add { opacity: 1; }
.planner .hd.closed { color: var(--muted); background: var(--gray-4); }
.planner .cell.closed { background: repeating-linear-gradient(135deg, var(--gray-4), var(--gray-4) 6px, #efefef 6px, #efefef 12px); }
.planner .cell.special { background: #fffbea; }
.badge.closed-badge { background: var(--gray-3); color: var(--gray-1); }
.daylist .day h3.closed { color: var(--muted); }
.avail-day.closed { background: var(--gray-4); border-color: var(--gray-3); color: var(--muted); }
.avail-day.closed .avail-btns .av:not(.on) { opacity: .45; }
.avail-day.special { border-color: var(--gold); }
.avail-day.past { opacity: .55; cursor: default; }
.avail-day.past:hover { border-color: var(--border); }
.opendays { display: flex; gap: 6px; flex-wrap: wrap; }
.opendays .od { min-width: 42px; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--gray-2); background: var(--gray-4); color: var(--gray-1); font: inherit; font-size: 13px; cursor: pointer; }
.opendays .od.on { background: var(--black); border-color: var(--black); color: #fff; }
.planner .cell.unavail { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f7e9e9 6px, #f7e9e9 12px); }
.planner .cell.avail { box-shadow: inset 0 0 0 2px var(--ok-light); }
.planner .ft { padding: 10px 12px; border-right: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--gray-4); }
.planner .ft b { color: var(--black); }
.avail-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; display: inline-block; margin: 1px 0 3px; text-transform: uppercase; letter-spacing: .04em; }
.avail-tag.available { background: var(--ok-light); color: var(--ok); }
.avail-tag.unavailable { background: var(--err-light); color: var(--err); }
.shift-chip { border-radius: 4px; padding: 6px 8px; margin-bottom: 5px; font-size: 12px; line-height: 1.3; cursor: pointer; color: #fff; position: relative; }
.shift-chip .t { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.shift-chip .t .ic { margin-left: auto; font-size: 11px; opacity: .9; display: inline-flex; gap: 3px; }
.shift-chip .s { opacity: .92; }
.shift-chip.draft { background: #fff !important; color: var(--text); border: 1.5px dashed var(--gray-1); }
.shift-chip.open { background: #fff !important; color: var(--text); border: 1.5px dashed var(--gold); }
.shift-chip.open.draft { border-color: var(--gray-1); }
.shift-chip.conflict { outline: 2px solid var(--err); outline-offset: -2px; }
.shift-chip .dot { position: absolute; left: 5px; top: 5px; width: 7px; height: 7px; border-radius: 50%; }
.shift-chip .prog { height: 3px; background: rgba(0,0,0,.12); margin-top: 5px; }
.shift-chip .prog i { display: block; height: 100%; background: var(--gold); }
.swap-badge { position: absolute; left: 6px; bottom: 6px; background: var(--gold); color: #000; border-radius: 8px; font-size: 10px; padding: 0 6px; font-weight: 700; }
.swap-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.swap-item:last-of-type { border-bottom: 0; }
.swap-item.warn { background: var(--warn-light); padding: 8px 10px; border-radius: var(--radius); border-bottom: 0; margin-bottom: 6px; }
.badge.info { background: var(--info-light); color: var(--info); }
.claim-badge { position: absolute; right: 6px; bottom: 6px; background: var(--wine); color: #fff; border-radius: 8px; font-size: 10px; padding: 0 6px; }
.week-summary { display: flex; gap: 32px; flex-wrap: wrap; padding: 18px 0 0; font-size: 14px; }
.week-summary .item { display: flex; gap: 8px; align-items: baseline; }
.week-summary .item b { font-size: 22px; }
.week-summary .item span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* Mobile day list */
.daylist .day { margin-bottom: 18px; }
.daylist .day h3 { padding: 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.daylist .day h3.today { color: var(--wine); }
.shift-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); margin-bottom: 8px; }
.shift-line .bar { width: 4px; align-self: stretch; border-radius: 2px; }
.shift-line .info { flex: 1; min-width: 0; }
.shift-line .info .t { font-weight: 700; }
.shift-line .info .s { font-size: 13px; color: var(--muted); }

/* ---------- Verfügbarkeit ---------- */
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.avail-day { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; background: var(--white); min-height: 78px; cursor: pointer; }
.avail-day:hover { border-color: var(--black); }
.avail-day.today { border-color: var(--wine); }
.avail-day .d { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.avail-day.available { background: var(--ok-light); border-color: var(--ok); }
.avail-day.unavailable { background: var(--err-light); border-color: var(--err); }
.avail-day .n { font-size: 12px; margin-top: 4px; }
.avail-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.avail-btns { display: flex; gap: 4px; }
.avail-btns .av { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gray-2); background: var(--white); color: var(--gray-1); font-size: 13px; line-height: 1; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.avail-btns .av.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.avail-btns .av.no.on { background: var(--err); border-color: var(--err); color: #fff; }
.avail-btns .av:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) {
  .avail-grid { grid-template-columns: 1fr; gap: 3px; }
  .avail-day { min-height: 0; padding: 5px 10px; border-radius: 6px; }
  .avail-day .d { font-size: 13px; }
  .avail-day .d .dn { font-weight: 400; color: var(--gray-1); }
  .avail-btns .av { width: 34px; height: 34px; font-size: 15px; }
  .avail-body:empty { display: none; }
  .avail-day .n { margin-top: 2px; }
}

/* ---------- Stempeluhr ---------- */
.clock-hero { text-align: center; padding: 30px 12px; }
.clock-hero .time { font-size: 60px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock-hero .status { margin: 12px 0 22px; }
.clock-btn { width: 190px; height: 190px; border-radius: 50%; border: 0; color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; transition: transform .1s; font-family: var(--font); }
.clock-btn:active { transform: scale(.97); }
.clock-btn.in { background: var(--black); }
.clock-btn.in:hover { background: #222; }
.clock-btn.out { background: var(--wine); }
.clock-btn:disabled { opacity: .35; }
.geo-line { font-size: 13px; color: var(--muted); margin-top: 16px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Übersicht ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 34px; font-weight: 700; line-height: 1; }
.stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.notif { padding: 12px 0; border-bottom: 1px solid var(--border); }
.notif.unread { font-weight: 700; }
.notif .b { font-size: 13px; color: var(--muted); font-weight: 400; }
.notif .d { font-size: 11px; color: var(--muted); font-weight: 400; }
.notif-pop { position: absolute; right: 0; top: 52px; width: 360px; max-height: 440px; overflow-y: auto; z-index: 30; padding: 12px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.15); }
@media (max-width: 480px) { .notif-pop { position: fixed; left: 8px; right: 8px; width: auto; } }

.member-card { display: flex; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--gray-2); border-radius: 16px; padding: 4px 12px; font-size: 13px; background: #fff; cursor: pointer; }
.chip.on { background: var(--black); border-color: var(--black); color: #fff; }
.template-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: -2px; }
code.copy { display: block; background: var(--gray-4); padding: 10px 12px; border-radius: var(--radius); font-size: 12px; word-break: break-all; margin: 8px 0; font-family: Consolas, monospace; }
.kpi-row { display: flex; gap: 40px; flex-wrap: wrap; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-nav button { border: 1px solid var(--gray-2); background: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; font-family: var(--font); }
.pill-nav button.active { background: var(--black); color: #fff; border-color: var(--black); }
.dropzone { border: 2px dashed var(--gray-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

/* Onboarding neuer Mitarbeiter */
.onb-wrap { min-height: 100vh; background: var(--gray-4); }
.onb-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--white); border-bottom: 1px solid var(--border); }
.onb-head .brand { display: flex; align-items: center; gap: 10px; }
.onb-head .brand img { width: 30px; height: 30px; }
.onb-head .brand .name { font-weight: 700; letter-spacing: .06em; }
.onb-head .brand .sub { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.onb-body { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
.onb-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.onb-steps span { font-size: 12px; padding: 4px 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); color: var(--muted); }
.onb-steps span.on { background: var(--black); color: #fff; border-color: var(--black); }
.onb-steps span.done { color: var(--ok); border-color: var(--ok); }
.onb-sub { border-left: 3px solid var(--gray-3); padding: 6px 12px; margin: 10px 0; }
.onb-privacy p { margin: 6px 0; }
.sigpad canvas { border: 1px dashed var(--gray-2); border-radius: 6px; background: #fff; }
.tbl.compact td { padding: 4px 8px; font-size: 13px; }
.err-text { color: var(--err); }
.alert.info { background: var(--info-light); color: var(--info); }

.card.forecast { box-shadow: inset 0 0 0 2px var(--wine); }
.cost-sheet td { padding: 7px 10px; }
.cost-sheet tr.sum td { font-weight: 700; border-top: 1px solid var(--black); }
.cost-sheet tr.total td { font-size: 17px; background: var(--gray-4); }

/* Lernbereich */
.learn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.learn-item { cursor: pointer; }
.learn-item:hover { border-color: var(--black); }
.progress { height: 8px; background: var(--gray-3); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); }
.md h2 { font-size: 18px; margin: 16px 0 6px; }
.md h3 { font-size: 15px; margin: 14px 0 4px; text-transform: none; letter-spacing: 0; }
.md p { margin: 6px 0; line-height: 1.5; }
.md ul { margin: 6px 0 6px 18px; line-height: 1.5; }
.md li { margin: 3px 0; }
.quiz-q { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0; }
.quiz-q.right { border-color: var(--ok); background: var(--ok-light); }
.quiz-q.wrong { border-color: var(--err); background: var(--err-light); }
.quiz-edit { border-left: 3px solid var(--gray-3); padding: 4px 12px; margin: 8px 0; }
details.faq { border-bottom: 1px solid var(--border); padding: 8px 0; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.akte { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin-top: 10px; }
details.akte summary { cursor: pointer; }
.md figure { margin: 10px 0; }
.md figure img { max-width: 100%; max-height: 420px; border-radius: 6px; border: 1px solid var(--border); display: block; }
.md figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
