
:root{ --red:#dc2626; --green:#16a34a; --amber:#f59e0b; --gray:#64748b; --bg:#f6f7f9; --card:#ffffff; --border:#e5e9f0; }
*{box-sizing:border-box} html,body{height:100%}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:#0b1220;margin:0}
.wrap{max-width:1100px;margin:18px auto 28px;padding:0 16px}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:0 8px 24px rgba(10,22,50,.05);margin-bottom:16px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pill{padding:6px 10px;background:#eef1f5;border-radius:999px;border:1px solid var(--border)}
.muted{color:#6b7280}.small{font-size:12px}
input[type=text],input[type=password],input[type=date],input[type=time],select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:#fff}
a.btn,button.btn,button,.btn{display:inline-block;padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:#fff;color:#0b1220;text-decoration:none;cursor:pointer;line-height:1.2}
.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:hover{filter:brightness(.93)}
.btn.red{background:var(--red);color:#fff;border-color:var(--red)}.btn.red:hover{filter:brightness(.92)}
.btn.gray{background:#eef1f5;color:#0b1220;border-color:var(--border)}.btn.gray:hover{filter:brightness(.98)}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{border-bottom:1px solid var(--border);padding:8px 10px;text-align:left;white-space:nowrap}
thead th{background:#f0f3f7}
.center{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{max-width:560px;width:100%}
.auth-actions{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:12px}
.title{margin:0 0 10px 0;font-size:28px;font-weight:700}
/* KPI states */
.kpi{background:#fafbfc;border:1px solid var(--border);border-radius:12px;padding:12px}
.kpi.low{background:#f8fafc} .kpi.low .tone{color:#475569}
.kpi.warn{background:#fffbeb;border-color:#fde68a} .kpi.warn .tone{color:#b45309}
.kpi.ok{background:#ecfdf5;border-color:#a7f3d0} .kpi.ok .tone{color:#047857}
.bar{height:16px;background:#eef1f5;border-radius:999px;overflow:hidden;margin-top:8px;border:1px solid var(--border)}
.bar>span{display:block;height:100%;background:#1ea97c}
.bar.low>span{background:#94a3b8}
.bar.warn>span{background:#f59e0b}
.bar.ok>span{background:#16a34a}

.brandbar{background:#fff;border-bottom:1px solid #eee}.brandbar .inner{max-width:1100px;margin:0 auto;padding:8px 16px;display:flex;align-items:center;gap:12px}.brandbar .logo{height:32px}.foot{max-width:1100px;margin:20px auto;text-align:center;color:#6b7280}

/* Einheitlicher Backend-Header (aus inc/ui.php gespiegelt) */
.site-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--border)}
.site-header .container{max-width:1100px;margin:0 auto;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
.site-brand{display:flex;align-items:center;gap:.5rem}
.branddot{display:inline-block;width:.9rem;height:.9rem;border-radius:999px;background:var(--red)}
.brand-logo{height:28px;display:block}
.brand-title{font-size:22px;font-weight:800;margin-left:.25rem}
.site-actions{display:flex;gap:.5rem}
