/* Farbwelt aus dem Solar-Oberberg-Logo:
   Dunkelblau #2469af · Himmelblau #189eda · Hellblau #a5d7f3
   Sonnengelb #ffd317 · Hellgrau #f3f3f4 */
:root {
    --blue: #2469af;
    --blue-dark: #1d5590;
    --sky: #189eda;
    --sky-light: #eaf4fb;
    --sun: #ffd317;
    --ink: #22303c;
    --muted: #6b7681;
    --bg: #f3f3f4;
    --line: #e2e6ea;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 1rem 0; color: var(--ink); }
h2 { font-size: 1.05rem; margin: 1.2rem 0 0.5rem; color: var(--blue); }

.topbar { background: #fff; border-bottom: 3px solid var(--sun); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: 0.55rem 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; display: block; }
.topbar nav { display: flex; gap: 0.4rem; flex: 1; }
.topbar nav a { color: var(--ink); padding: 0.35rem 0.7rem; border-radius: 7px; font-weight: 500; }
.topbar nav a.active, .topbar nav a:hover { color: var(--blue); background: var(--sky-light); text-decoration: none; }
.user-box { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0.5rem 1rem 3rem; }
.flash { background: var(--sky-light); border: 1px solid var(--sky); color: var(--blue); padding: 0.6rem 1rem; border-radius: 8px; margin: 0.8rem 0; }
.muted { color: var(--muted); }
.error { color: #b3261e; font-size: 0.85rem; margin: 0.2rem 0; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; align-items: start; }
.board-col { background: #e8ecf0; border-radius: 10px; padding: 0.7rem; }
.board-col h2 { margin: 0.2rem 0 0.7rem; font-size: 0.9rem; }
.count { background: var(--sun); color: var(--ink); border-radius: 10px; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 700; }
.card { display: block; background: #fff; border-radius: 8px; padding: 0.6rem 0.7rem; margin-bottom: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.08); border-left: 3px solid var(--sky); }
.card:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.card strong { display: block; color: var(--ink); }
.card .muted { display: block; font-size: 0.85rem; }
.card-meta { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.empty { text-align: center; }

.panel { background: #fff; border-radius: 10px; padding: 1rem 1.2rem; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.panel.narrow { max-width: 540px; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

label { display: block; margin: 0.8rem 0 0.25rem; font-weight: 600; font-size: 0.88rem; }
input, select, textarea { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid #c5ced6; border-radius: 7px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #2469af33; border-color: var(--blue); }

.btn { display: inline-block; margin-top: 1rem; background: var(--blue); color: #fff; border: 0; border-radius: 7px; padding: 0.55rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn.small { margin: 0; padding: 0.25rem 0.7rem; font-size: 0.82rem; }
.linklike { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.badge { display: inline-block; background: var(--sky-light); color: var(--blue); border-radius: 6px; padding: 0.15rem 0.6rem; font-size: 0.75rem; vertical-align: middle; }

.task-table { width: 100%; border-collapse: collapse; }
.task-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.task-due { white-space: nowrap; font-weight: 600; width: 5.5rem; }
.task-action { text-align: right; white-space: nowrap; }
tr.overdue .task-due, tr.overdue td:nth-child(2) { color: #b3261e; }
tr.overdue .task-due::after { content: " ⚠"; }
tr.done { opacity: 0.55; }
tr.done td:nth-child(2) { text-decoration: line-through; }

.compare td { white-space: nowrap; padding-right: 1rem; }
.compare td:first-child { width: 9rem; }

.filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter a { background: #e8ecf0; border-radius: 20px; padding: 0.3rem 0.9rem; font-size: 0.85rem; color: var(--ink); }
.filter a.active { background: var(--blue); color: #fff; }

.login-card { max-width: 380px; margin: 8vh auto; background: #fff; border-radius: 12px; padding: 1.5rem 2rem 2rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-top: 4px solid var(--sun); }
.login-logo { display: block; max-width: 240px; margin: 0.5rem auto 1rem; }

/* Cockpit & Ampel */
.cockpit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .cockpit-grid { grid-template-columns: 1fr; } }
.panel.spaced { margin-top: 1rem; }
.group-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 1rem 0 0.2rem; }
.group-label.rot-text { color: #b3261e; }
.small { font-size: 0.85rem; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.45rem; vertical-align: baseline; }
.dot.rot { background: #d3382c; }
.dot.gelb { background: var(--sun); border: 1px solid #d9b000; }
.dot.gruen { background: #3a9e57; }

.upcoming-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.upcoming-row:last-child { border-bottom: 0; }
.upcoming-name { flex: 1; line-height: 1.25; }
.progress-text { white-space: nowrap; font-size: 0.85rem; }

.radar { border-left: 4px solid var(--sun); }

.inline { display: inline; }
.checkline { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.checkline input[type=checkbox], .checkline input[type=hidden] { width: auto; }
.waiting { color: var(--muted); font-size: 0.82rem; font-style: italic; }
.wait-details { display: inline-block; margin-left: 0.4rem; }
.wait-details summary { cursor: pointer; list-style: none; opacity: 0.6; }
.wait-details summary:hover { opacity: 1; }
.wait-details form { display: flex; gap: 0.3rem; margin-top: 0.3rem; }
.wait-details select { width: auto; padding: 0.25rem 0.4rem; font-size: 0.82rem; }
