:root{--red:#d62828;--bg:#f4f5f7;--card:#fff;--text:#1f2430;--muted:#6b7280;--line:#e5e7eb;--blue:#1d4ed8}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
.nav{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:1.2rem;padding:.7rem 1.2rem;flex-wrap:wrap}
.brand{color:var(--red);font-weight:800;letter-spacing:.06em;font-size:1.15rem}
.nav a.link{color:var(--text);font-weight:500}.nav a.link:hover{color:var(--red);text-decoration:none}
.nav .spacer{flex:1}.nav form{margin:0}
main{max-width:1050px;margin:1.5rem auto;padding:0 1rem}
h1{margin:.2rem 0 1rem;font-size:1.6rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1.1rem;margin-bottom:1.2rem}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:1.2rem}
.stat{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1rem}
.stat .n{font-size:1.7rem;font-weight:700}.stat .l{color:var(--muted);font-size:.9rem}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.8rem;text-transform:uppercase;color:var(--muted);letter-spacing:.04em}
.table-wrap{overflow-x:auto}
.btn{display:inline-block;background:var(--red);color:#fff;border:0;border-radius:8px;padding:.55rem 1rem;font-size:.95rem;cursor:pointer;font-weight:600}
.btn:hover{background:#b91f1f;text-decoration:none}
.btn.secondary{background:#e5e7eb;color:var(--text)}.btn.secondary:hover{background:#d1d5db}
.btn.small{padding:.3rem .65rem;font-size:.85rem}
.btn.danger{background:#fff;color:var(--red);border:1px solid var(--red)}.btn.danger:hover{background:#fde8e8}
.toolbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.toolbar .spacer{flex:1}
label{display:block;font-weight:600;font-size:.9rem;margin:.8rem 0 .25rem}
input,select,textarea{width:100%;padding:.55rem .7rem;border:1px solid #cfd4dc;border-radius:8px;font:inherit;background:#fff}
input:focus,select:focus,textarea:focus{outline:2px solid #f4b4b4;border-color:var(--red)}
.toolbar input,.toolbar select{width:auto}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:600px){.row2{grid-template-columns:1fr}}
.flash{padding:.7rem 1rem;border-radius:8px;margin-bottom:1rem}
.flash.ok{background:#e7f6ec;color:#166534}.flash.error{background:#fde8e8;color:#991b1b}
.badge{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.8rem;font-weight:600;background:#e5e7eb}
.badge.angebot{background:#e0e7ff;color:#3730a3}.badge.geplant{background:#fef3c7;color:#92400e}
.badge.in-arbeit{background:#dbeafe;color:#1e40af}.badge.erledigt{background:#d1fae5;color:#065f46}
.badge.bezahlt{background:#bbf7d0;color:#14532d}
.muted{color:var(--muted)}.inline{display:inline}
.status-form select{width:auto;padding:.25rem .4rem;font-size:.85rem}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}
.login-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:2rem;width:100%;max-width:380px;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.login-card h1{color:var(--red);text-align:center;letter-spacing:.08em;font-size:2rem;margin:0 0 .3rem}
.login-card p.sub{text-align:center;color:var(--muted);margin:0 0 1rem}
.login-card .btn{width:100%;margin-top:1.2rem;padding:.7rem}
/* Kalender */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cal-head{background:#f9fafb;padding:.4rem;text-align:center;font-size:.8rem;font-weight:600;color:var(--muted)}
.cal-day{background:#fff;min-height:96px;padding:.25rem;display:flex;flex-direction:column;gap:2px}
.cal-day.other{background:#fafafa}.cal-day.other .cal-num span{color:#c0c4cc}
.cal-day.today{background:#fff5f5;box-shadow:inset 0 0 0 2px var(--red)}
.cal-num{display:flex;justify-content:space-between;font-size:.85rem;font-weight:600}
.cal-add{color:#c0c4cc;font-weight:700;padding:0 .3rem;border-radius:6px}.cal-add:hover{background:var(--red);color:#fff;text-decoration:none}
.ev{display:block;font-size:.75rem;padding:1px 4px;border-radius:4px;border-left:3px solid #6b7280;background:#e5e7eb;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev:hover{text-decoration:none;filter:brightness(.95)}
.ev.fensterreinigung{border-left-color:#2563eb;background:#dbeafe}
.ev.it-hilfe{border-left-color:#7c3aed;background:#ede9fe}
.ev.done{text-decoration:line-through;opacity:.6}
.dot{display:inline-block;width:.7rem;height:.7rem;border-radius:3px;background:#6b7280;vertical-align:middle}
.dot.fensterreinigung{background:#2563eb}.dot.it-hilfe{background:#7c3aed}
.legend{margin:.7rem 0 1.2rem;font-size:.9rem}
.cal-title{min-width:9rem;text-align:center}
@media(max-width:600px){.cal-day{min-height:58px}.ev{font-size:.6rem;padding:0 2px}.cal-add{display:none}}
