:root { color-scheme: dark; --awk: #0b2659; --deep: #081929; --field: #13306b; --line: #2d4c8a;
        --text: #f2f5fa; --muted: #a9b8d4; --accent: #8ec9ee; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 "Open Sans", system-ui, sans-serif; background: var(--awk); color: var(--text); }
header { background: var(--deep); padding: 14px 18px; display: flex; align-items: center; gap: 14px;
         border-bottom: 5px solid; border-image: linear-gradient(90deg, #c8187a, #cf1817, #f5e92d, #66b32f, #80c3d3, #8ec9ee, #2b3f8f) 1; }
header img { height: 36px; }
header h1 { margin: 0; font-size: 1.1rem; }
main { max-width: 640px; margin: 0 auto; padding: 18px; }
.card { background: var(--deep); border-radius: 10px; padding: 16px 18px 20px; margin-bottom: 18px; }
h2 { font-size: 1.05rem; margin: 8px 0 4px; }
label { display: block; font-weight: 600; margin: 14px 0 5px; }
label.inline { font-weight: 400; margin-top: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
input[type=text], input[type=password], input[type=number], select {
  width: 100%; padding: 10px; font: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 7px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { margin-top: 18px; padding: 11px 20px; font: inherit; font-weight: 600; border: 0; border-radius: 8px;
         background: #fff; color: var(--awk); cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
button.link { background: none; color: var(--muted); text-decoration: underline; padding: 0; margin: 0 0 30px; }
.ok, .err { padding: 12px 14px; border-radius: 8px; }
.ok { background: #143d2a; color: #b8f0cd; }
.err { background: #4a1420; color: #ffc9cf; }
code { background: var(--field); padding: 2px 6px; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
td { padding: 4px 6px; border-top: 1px solid var(--line); color: var(--muted); }

/* Service-Nachweis additions */
main.wide { max-width: 1280px; }
nav.top { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; }
nav.top a { color: var(--accent); text-decoration: none; font-weight: 600; }
nav.top a.on { color: #fff; text-decoration: underline; }
a { color: var(--accent); }
th { text-align: left; padding: 6px; color: var(--text); font-size: .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.n { text-align: right; white-space: nowrap; }
td img { height: 54px; width: 72px; object-fit: cover; border-radius: 4px; display: block; }
.flag { display: inline-block; padding: 1px 7px; margin: 1px 2px 1px 0; border-radius: 10px; font-size: .75rem;
        background: #5a4410; color: #ffe2a0; white-space: nowrap; }
.flag.info { background: var(--field); color: var(--muted); }
.st { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; white-space: nowrap; }
.st-offen { background: #13306b; color: #cfe3ff; } .st-erledigt { background: #143d2a; color: #b8f0cd; }
.st-nicht_erledigt { background: #4a1420; color: #ffc9cf; } .st-verworfen { background: #333; color: #aaa; }
.st-neu { background: #5a4410; color: #ffe2a0; } .st-freigegeben { background: #143d2a; color: #b8f0cd; }
.st-gesperrt { background: #4a1420; color: #ffc9cf; }
form.filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
form.filter label { margin: 0 0 3px; font-size: .8rem; }
form.filter > div { min-width: 140px; }
form.filter button { margin: 0; padding: 10px 16px; }
input[type=date] { padding: 9px; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 7px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.pair img { width: 100%; border-radius: 8px; display: block; margin-top: 8px; }
.cap { color: var(--muted); font-size: .8rem; margin: 4px 0 10px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--deep); border-radius: 10px; padding: 12px 14px; }
.kpi b { display: block; font-size: 1.5rem; } .kpi span { color: var(--muted); font-size: .8rem; }
.inline-form { display: inline; } .inline-form button { margin: 0; padding: 4px 10px; font-size: .8rem; }
textarea { width: 100%; padding: 10px; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 7px; min-height: 70px; }
.scroll { overflow-x: auto; }
table.stats th:not(:first-child) { text-align: right; }
table.jobs td:first-child { white-space: nowrap; }
table.jobs th:nth-child(10), table.jobs th:nth-child(11) { text-align: right; }
.st-wartet { background: #5a2a10; color: #ffd0a8; }
/* management page (manage.py, 25.11.2026) */
.row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
nav.top span { color: var(--muted); }
input[type=file] { width: 100%; padding: 8px 0; color: var(--text); }
