:root{--bg:#f4f6f9;--panel:#fff;--ink:#152033;--muted:#718096;--brand:#2563eb;--dark:#111827;--line:#e5e7eb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{min-height:100vh;display:flex}.sidebar{width:250px;background:var(--dark);color:white;padding:24px 16px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 25px}.brand>span,.brand-mark{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#7c3aed);display:grid;place-items:center;color:white;font-weight:800}.brand div{display:flex;flex-direction:column}.brand small,.sidebar-bottom small{color:#94a3b8}.sidebar nav{display:grid;gap:5px}.sidebar nav a{color:#cbd5e1;text-decoration:none;padding:11px 12px;border-radius:10px;display:flex;gap:10px}.sidebar nav a:hover,.sidebar nav a.active{background:#1f2937;color:white}.sidebar-bottom{margin-top:auto;border-top:1px solid #293344;padding:16px 8px 0;display:flex;flex-direction:column}.sidebar-bottom a{color:#93c5fd;text-decoration:none}.content{margin-left:250px;width:calc(100% - 250px);padding:34px}.mobile-top{display:none}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.page-head h1{font-size:2rem;margin:0}.page-head p{color:var(--muted);margin:.4rem 0 0}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 6px 30px rgba(15,23,42,.04)}.hero{min-height:220px;color:white;background:linear-gradient(135deg,#1d4ed8,#312e81);display:flex;align-items:center}.hero h2{font-size:2rem;margin:8px 0 24px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:700;opacity:.72}.metric-row{display:flex;justify-content:space-between;gap:15px}.metric-row>div{display:flex;flex-direction:column}.metric-row strong{font-size:1.55rem}.metric-row span,.section-title span,.panel small{color:var(--muted);font-size:.84rem}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-title h3{margin:0}.list-row,.leave-admin{padding:11px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:center}.list-row>div{display:flex;flex-direction:column}.status-dot{width:10px;height:10px;border-radius:50%;background:#f59e0b}.status-dot.missing{background:#ef4444}.status-dot.short{background:#f59e0b}.active-order{padding:14px;background:#eff6ff;border-radius:12px;margin-bottom:12px}.order-mini{padding:10px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column}.empty{padding:20px;color:var(--muted);text-align:center}.live-order-time{font-size:1.8rem;font-weight:800;margin:15px 0}.order-card h3{margin-top:8px}.badge-box{background:#dcfce7;color:#166534;padding:10px 14px;border-radius:12px;font-weight:700}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.permission-grid label{border:1px solid var(--line);padding:10px;border-radius:10px;display:grid;grid-template-columns:auto 1fr;column-gap:8px}.permission-grid small{grid-column:2}.employee-checks{display:flex;gap:15px;flex-wrap:wrap}.change-form{display:grid;gap:5px;padding-top:8px}.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#dbeafe,#f8fafc 55%)}.login-card{width:min(430px,calc(100% - 32px));background:white;padding:34px;border-radius:24px;box-shadow:0 20px 60px rgba(15,23,42,.15)}.login-card h1{margin-top:15px}.table td,.table th{vertical-align:middle}.form-control,.form-select{border-radius:10px}@media(max-width:900px){.sidebar{display:none}.content{margin:0;width:100%;padding:18px}.mobile-top{display:flex;justify-content:space-between;margin-bottom:20px;background:#111827;color:white;padding:13px;border-radius:12px}.mobile-top a{color:white}.page-head{align-items:flex-start}.metric-row{flex-wrap:wrap}.permission-grid{grid-template-columns:1fr}}@media(max-width:520px){.content{padding:12px}.panel{padding:16px}.page-head h1{font-size:1.55rem}.hero h2{font-size:1.5rem}.metric-row strong{font-size:1.25rem}}

/* Admin-Mitarbeiterdetail */
.back-link{display:inline-block;margin-bottom:5px;text-decoration:none;color:var(--brand);font-weight:650}.employee-head{align-items:flex-end}.month-toolbar{display:flex;align-items:center;justify-content:center;gap:16px;padding:14px 20px}.month-toolbar>strong{font-size:1.2rem;min-width:90px;text-align:center}.month-arrow{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;text-decoration:none;font-size:1.8rem;color:var(--ink);background:#fff}.month-select{display:flex;gap:8px}.month-select .form-select{width:auto}.employee-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.kpi-card{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 6px 30px rgba(15,23,42,.04);display:flex;flex-direction:column}.kpi-card>span{font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:700}.kpi-card strong{font-size:1.75rem;margin:5px 0}.kpi-card small{color:var(--muted)}.kpi-danger{border-color:#fecaca;background:#fff7f7}.kpi-danger strong{color:#b91c1c}.kpi-success{border-color:#bbf7d0;background:#f7fff9}.kpi-success strong{color:#15803d}.big-progress{height:14px;border-radius:99px}.legend{display:flex;flex-wrap:wrap;gap:8px}.legend span,.day-status{padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:700}.legend-work,.status-work{background:#f3f4f6;color:#111827}.legend-vacation,.status-vacation{background:#dcfce7;color:#166534}.legend-holiday,.status-holiday{background:#dbeafe;color:#1d4ed8}.legend-sick,.status-sick{background:#fee2e2;color:#b91c1c}.legend-special,.status-special{background:#fef3c7;color:#92400e}.status-none{background:#f3f4f6;color:#6b7280}.status-weekend{background:#f8fafc;color:#94a3b8}.vacation-big{display:flex;align-items:baseline;gap:8px;margin:18px 0}.vacation-big strong{font-size:2.4rem}.anomaly-panel{border-color:#fecaca}.anomaly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.anomaly-item{padding:12px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;display:flex;flex-direction:column}.anomaly-item span{color:#9a3412}.employee-days tbody tr td{border-top:4px solid #fff}.employee-days tr.day-work td{background:#fff}.employee-days tr.day-vacation td{background:#effcf3}.employee-days tr.day-holiday td{background:#eff6ff}.employee-days tr.day-sick td{background:#fff1f2}.employee-days tr.day-special td{background:#fffbeb}.employee-days tr.day-weekend td{background:#f8fafc;color:#94a3b8}.employee-days tr.day-none td{background:#fff}.employee-days tr.day-anomaly td:first-child{box-shadow:inset 4px 0 #ef4444}.employee-days td:first-child small{display:block;color:var(--muted)}.stamp-list{display:flex;gap:6px;flex-wrap:wrap}.stamp-list span{background:rgba(255,255,255,.75);border:1px solid rgba(148,163,184,.28);padding:4px 7px;border-radius:8px;font-size:.82rem}.warning-text{color:#b91c1c;font-weight:700}.muted-dash{color:#cbd5e1}.report-card .metric-row{gap:8px}.report-card .metric-row>div{min-width:0}.report-card .metric-row strong{font-size:1.25rem}

/* Zeitänderungswünsche */
.change-request-card{border:1px solid var(--line);border-radius:16px;padding:18px;margin-top:14px;background:#fff}.change-request-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:14px}.change-request-head>div{display:flex;flex-direction:column}.change-request-head small{color:var(--muted)}.change-compare{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:12px}.change-side{border-radius:14px;padding:15px;display:flex;flex-direction:column;gap:4px}.change-side.old{background:#f8fafc;border:1px solid #e2e8f0}.change-side.new{background:#eff6ff;border:1px solid #bfdbfe}.change-label{font-size:.68rem;font-weight:800;letter-spacing:.12em;color:var(--muted)}.change-time{font-size:1.35rem;font-weight:800}.change-time span{font-size:.8rem;font-weight:500;color:var(--muted);margin:0 4px}.change-arrow{font-size:1.7rem;display:grid;place-items:center;color:var(--brand)}.change-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}

@media(max-width:1100px){.employee-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.anomaly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.employee-head{align-items:flex-start}.employee-head>div:last-child{width:100%;display:grid!important}.month-toolbar{flex-wrap:wrap}.month-select{order:3;width:100%;justify-content:center}.employee-kpis{grid-template-columns:1fr 1fr}.change-compare{grid-template-columns:1fr}.change-arrow{transform:rotate(90deg);height:24px}.change-actions{justify-content:stretch}.change-actions form,.change-actions button{width:100%}.anomaly-grid{grid-template-columns:1fr}}
@media(max-width:480px){.employee-kpis{grid-template-columns:1fr}}

/* Mitarbeiterstatistik V1 Final */
.employee-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}.employee-title-row{display:flex;align-items:center;gap:14px}.employee-title-row h1{margin:0;font-size:2rem;letter-spacing:-.02em}.employee-title-row p{margin:4px 0 0;color:var(--muted)}.employee-avatar{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#dbeafe,#e0e7ff);color:#1d4ed8;display:grid;place-items:center;font-size:1.5rem;font-weight:800;border:1px solid #bfdbfe}.employee-actions{display:flex;gap:10px}.employee-filter-card{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(180deg,#fff,#fbfdff)}.employee-filter-card h3{margin:3px 0 4px}.employee-filter-card p{margin:0;color:var(--muted)}.employee-filter-form{display:flex;gap:10px;min-width:370px}.employee-filter-form .form-select{min-width:175px;height:46px}.yearly-overview{overflow:hidden}.month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.month-card{text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;transition:.15s ease;min-height:132px;display:flex;flex-direction:column}.month-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.08);border-color:#bfdbfe}.month-card.selected{border:2px solid #2563eb;background:#eff6ff;padding:13px}.month-card-top{display:flex;justify-content:space-between;gap:6px;align-items:center}.month-card-top>strong{font-size:1rem}.closed-badge{font-size:.62rem;font-weight:800;color:#166534;background:#dcfce7;border-radius:999px;padding:3px 6px}.month-values{display:grid;gap:3px;margin-top:12px}.month-values span{font-size:.74rem;color:var(--muted);display:flex;justify-content:space-between;gap:5px}.month-values b{color:var(--ink)}.month-balance{margin-top:auto;font-size:1.15rem;font-weight:800;padding-top:9px}.month-balance.minus{color:#b91c1c}.month-balance.plus{color:#15803d}.month-close-box{border-top:1px solid var(--line);padding-top:15px;display:flex;justify-content:space-between;gap:15px;align-items:center}.month-close-box>div{display:flex;flex-direction:column}.month-close-box small{margin-top:2px}.vacation-summary{background:linear-gradient(180deg,#fff,#f7fff9)}.vacation-meter{height:9px;border-radius:99px;background:#e5e7eb;overflow:hidden;margin:5px 0 12px}.vacation-meter>div{height:100%;background:#22c55e;border-radius:99px}.vacation-numbers{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.vacation-numbers span{display:flex;flex-direction:column;color:var(--muted);font-size:.8rem}.vacation-numbers b{font-size:1rem;color:var(--ink)}.vacation-history-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}.day-legend{display:flex;gap:6px;flex-wrap:wrap}.day-legend span{padding:5px 8px;border-radius:999px;font-size:.75rem;font-weight:700}.employee-days thead th{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom-width:1px}.employee-days td{padding-top:12px;padding-bottom:12px}
@media(max-width:1350px){.month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:950px){.employee-page-head,.employee-filter-card{align-items:flex-start;flex-direction:column}.employee-actions{width:100%}.employee-actions .btn{flex:1}.employee-filter-form{width:100%;min-width:0}.employee-filter-form .form-select{flex:1;min-width:0}.month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-filter-form{flex-direction:column}.month-close-box{align-items:flex-start;flex-direction:column}.employee-actions{flex-direction:column}.employee-title-row h1{font-size:1.6rem}.employee-avatar{width:48px;height:48px;border-radius:14px}}

/* Tagesstatus-Modal */
.btn-day-edit{border:1px solid #cbd5e1;background:#fff;color:#334155;font-weight:700;border-radius:9px;white-space:nowrap}.btn-day-edit:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}.day-status-dialog{border:0;padding:0;border-radius:20px;width:min(620px,calc(100% - 28px));box-shadow:0 28px 80px rgba(15,23,42,.28);background:transparent}.day-status-dialog::backdrop{background:rgba(15,23,42,.52);backdrop-filter:blur(3px)}.day-status-modal{background:#fff;border-radius:20px;overflow:hidden}.day-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px 18px;border-bottom:1px solid var(--line)}.day-modal-head h3{margin:3px 0 2px;font-size:1.5rem}.day-modal-head p{margin:0;color:var(--muted)}.dialog-close{border:0;background:#f1f5f9;color:#475569;width:38px;height:38px;border-radius:12px;font-size:1.55rem;line-height:1;display:grid;place-items:center}.dialog-close:hover{background:#e2e8f0;color:#0f172a}.day-modal-body{padding:22px 24px;display:grid;gap:14px}.day-status-preview{border-radius:14px;padding:13px 15px;display:flex;flex-direction:column;border:1px solid var(--line);background:#f8fafc}.day-status-preview strong{font-size:1rem}.day-status-preview span{font-size:.84rem;color:var(--muted);margin-top:2px}.day-status-preview.preview-2{background:#eff6ff;border-color:#bfdbfe}.day-status-preview.preview-3{background:#effcf3;border-color:#bbf7d0}.day-status-preview.preview-4{background:#fff1f2;border-color:#fecdd3}.day-status-preview.preview-5{background:#fffbeb;border-color:#fde68a}.remove-work-option{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;cursor:pointer}.remove-work-option input{margin-top:3px}.remove-work-option span{display:flex;flex-direction:column}.remove-work-option small{color:#9a3412;margin-top:2px}.day-credit-note{padding:12px 14px;border-radius:12px;background:#f8fafc;color:#475569;font-size:.86rem;border:1px solid #e2e8f0}.day-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px 22px;border-top:1px solid var(--line)}@media(max-width:650px){.employee-days th:last-child,.employee-days td:last-child{position:sticky;right:0;background:inherit}.btn-day-edit{font-size:.74rem;padding:.35rem .5rem}.day-modal-actions{flex-direction:column-reverse}.day-modal-actions .btn{width:100%}}
.day-edit-dialog{width:min(760px,calc(100% - 28px))}.work-time-editor{border:1px solid #dbe4ef;border-radius:16px;padding:16px;background:#f8fafc;transition:.2s}.work-time-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.work-time-head h4{margin:2px 0 0;font-size:1.08rem}.work-time-head small{display:block;color:var(--muted);margin-top:2px}.work-blocks{display:grid;gap:10px}.work-block-row{display:grid;grid-template-columns:1fr 1fr 42px;gap:10px;align-items:end;background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:12px}.work-block-row label{display:block;font-size:.76rem;font-weight:800;color:#475569;margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}.work-block-row small{display:block;color:#94a3b8;font-size:.7rem;margin-top:4px}.work-block-delete{width:38px;height:38px;border:0;border-radius:10px;background:#fff1f2;color:#be123c;font-size:1.35rem;line-height:1}.work-block-delete:hover{background:#ffe4e6}.work-time-summary{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px dashed #cbd5e1;color:#475569}.work-time-summary strong{font-size:1.05rem;color:#0f172a}.work-times-disabled{opacity:.5}.day-section-divider{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.day-section-divider:before,.day-section-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}@media(max-width:650px){.work-time-head{flex-direction:column}.work-time-head .btn{width:100%}.work-block-row{grid-template-columns:1fr 1fr 38px;padding:10px;gap:8px}.work-block-row .form-control{padding:.55rem .6rem}}
