
:root{--bg:#f6f7fb;--text:#0f172a;--muted:#64748b;--border:#e5e7eb;--primary:#b81f27;--primary2:#d12a33;--shadow:0 12px 28px rgba(15,23,42,.08);--today:rgba(37,99,235,.16);--todayBorder:rgba(37,99,235,.45)}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--text);background:radial-gradient(1200px 600px at 20% 0%,#fff 0%,var(--bg) 55%)}
.topbar{height:64px;display:flex;align-items:center;padding:0 18px;background:rgba(255,255,255,.85);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}
.brand img{height:34px}
.navright{margin-left:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.userchip{display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted);font-weight:900}
.userchip .role{font-weight:950;color:#0f172a;background:#f1f5f9;border:1px solid var(--border);padding:2px 8px;border-radius:999px;font-size:12px}
.container{min-height:calc(100% - 64px);display:grid;place-items:center;padding:24px 16px 90px}
.card{width:min(980px,96vw);background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr}
@media(max-width:880px){.card{grid-template-columns:1fr}}
.left{padding:34px;background:linear-gradient(180deg,#fff 0%,#fbfbff 100%);border-right:1px solid var(--border)}
@media(max-width:880px){.left{border-right:none;border-bottom:1px solid var(--border)}}
.h1{font-size:44px;line-height:1.05;margin:6px 0 12px;letter-spacing:-.02em}
.sub{color:var(--muted);font-size:16px;max-width:44ch}
.right{padding:34px}
label{display:block;font-weight:900;margin:18px 0 8px}
.input{width:100%;padding:14px;border:1px solid var(--border);border-radius:16px;font-size:16px;background:#f2f6ff;outline:none}
.input:focus{border-color:rgba(184,31,39,.55);box-shadow:0 0 0 4px rgba(184,31,39,.12);background:#fff}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.chk{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:900}
.chk input{width:18px;height:18px}
.btn{width:100%;padding:14px 16px;border:0;border-radius:18px;font-size:16px;font-weight:950;cursor:pointer;margin-top:16px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.primary{background:linear-gradient(90deg,var(--primary) 0%,var(--primary2) 100%);color:#fff}
.btn.ghost{background:#f1f5f9;color:#0f172a;border:1px solid var(--border)}
.btn.small{width:auto;margin:0;padding:10px 12px;border-radius:14px;font-size:14px}
.btn.mini{width:auto;margin:0;padding:8px 10px;border-radius:12px;font-size:13px}
.btn.mini.green{background:#16a34a;color:#fff}.btn.mini.red{background:#dc2626;color:#fff}.btn.mini.ghost{background:#f1f5f9;color:#0f172a;border:1px solid var(--border)}
.msg{margin-top:14px;padding:12px 14px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:900}
.msg.ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.page{padding:18px 16px 90px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1400px;margin:0 auto 10px}
.title{font-size:22px;font-weight:1000}
.tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.legend{max-width:1400px;margin:0 auto 12px;display:flex;gap:10px;flex-wrap:wrap}
.pill{padding:6px 10px;border-radius:999px;font-weight:950;font-size:12px;border:1px solid var(--border);background:#fff}
.pill.approved{background:rgba(22,163,74,.08);border-color:rgba(22,163,74,.25);color:#14532d}
.pill.pending{background:rgba(234,88,12,.08);border-color:rgba(234,88,12,.25);color:#7c2d12}
.pill.weekend{background:#fafafa;color:#475569}
.pill.holiday{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.25);color:#7f1d1d}
.pill.today{background:var(--today);border-color:var(--todayBorder);color:#1d4ed8}
.gridwrap{max-width:1400px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);overflow:auto}
.grid{border-collapse:separate;border-spacing:0;width:100%;min-width:980px}
.grid th,.grid td{border-bottom:1px solid var(--border);border-right:1px solid var(--border);padding:0}
.grid thead th{background:#f8fafc;font-weight:1000;font-size:12px;text-align:center;padding:10px 0}
.grid .namecol{min-width:220px;text-align:left;padding:10px 12px}
.grid .daycol{min-width:34px}
.grid .sticky{position:sticky;left:0;z-index:5;background:#fff}
.grid thead .sticky{z-index:10;background:#f8fafc}
.cell{height:28px;position:relative}
.cell.weekend{background:#fafafa}
.cell.holiday{background:rgba(239,68,68,.06)}
.cell.cell-approved{background:rgba(22,163,74,.14)}
.cell.cell-pending{background:rgba(234,88,12,.14)}
.cell.todaycol{background:var(--today)}
.grid thead th.todaycol{background:var(--today);box-shadow:inset 0 0 0 2px var(--todayBorder)}
.celllink{position:absolute;inset:0;display:block}
.panel{max-width:720px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:18px}
.panel.wide{max-width:1200px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.row3{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px}
@media(max-width:760px){.row2,.row3{grid-template-columns:1fr}.grid{min-width:860px}}
.hint{color:var(--muted);font-weight:900;margin-top:14px}
.list{width:100%;border-collapse:separate;border-spacing:0;margin-top:10px;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.list th,.list td{padding:10px;border-bottom:1px solid var(--border);text-align:left;font-weight:900}
.list th{background:#f8fafc;font-weight:1000}
.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.footer{position:fixed;left:0;right:0;bottom:0;padding:10px 14px;text-align:center;color:var(--muted);font-size:12px;background:rgba(246,247,251,.88);backdrop-filter:blur(8px);border-top:1px solid var(--border)}


/* Wochenenden/Feiertage Farben wie Excel-Planer */
.grid thead th.saturday, .cell.saturday { background: rgba(239,68,68,.22); } /* hellrot */
.grid thead th.sunday, .cell.sunday { background: rgba(239,68,68,.42); }   /* dunkelrot */
.grid thead th.holiday, .cell.holiday { background: rgba(239,68,68,.42); } /* dunkelrot */

.grid thead th.daycol{padding:6px 0}
.grid thead th .dow{font-size:11px;font-weight:1000;line-height:1.0;color:#0f172a;opacity:.9}
.grid thead th .dom{font-size:12px;font-weight:1000;margin-top:3px}

/* Drag-Auswahl */
.cell.sel{outline: 2px solid rgba(37,99,235,.55); outline-offset:-2px; background: rgba(37,99,235,.12) !important;}

.badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-weight:1000;font-size:12px;margin-left:6px}

.btn.outline{background:#fff;border:2px solid var(--border)}

/* Filter buttons column */
.btncol{display:flex;flex-direction:column;gap:8px}
.btncol .btn{width:120px}
