/* techculture Intelligence – minimal, dense, information-first (spec §5). No JavaScript, no external resources. */
:root {
  --bg: #fafafa; --panel: #ffffff; --ink: #14151a; --muted: #6b6f7b; --line: #e6e7eb;
  --accent: #4f46e5; --accent-ink: #ffffff; --ok: #0f7b4b; --warn: #b45309; --bad: #b42318;
  --tag: #eef0f5; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13; --panel: #15171c; --ink: #e8e9ee; --muted: #9a9eab; --line: #262932;
    --accent: #8b87ff; --accent-ink: #0e0f13; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
    --tag: #20232b; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; }
footer { max-width: 1280px; margin: 0 auto; padding: 0 20px 32px; color: var(--muted); font-size: 12px; }
h1 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 28px 0 10px; }
.note { color: var(--muted); max-width: 90ch; margin: 0 0 16px; }
.lead { color: var(--muted); }
.crumb { margin: 0 0 8px; font-size: 13px; }

.top { display: flex; align-items: center; gap: 24px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 650; color: var(--ink); }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); }
.top nav a.on, .top nav a:hover { background: var(--tag); color: var(--ink); text-decoration: none; }
.logout { margin: 0; }
button, .button { font: inherit; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-block; }
button.link { background: none; border: none; color: var(--muted); padding: 4px 8px; }
button.link:hover { color: var(--ink); text-decoration: underline; }
.button:hover { text-decoration: none; filter: brightness(1.05); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
a.card:hover { border-color: var(--accent); text-decoration: none; }
.card b { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.card span { color: var(--muted); font-size: 13px; }

.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; }
.filters .actions { display: flex; gap: 12px; align-items: end; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); position: sticky; top: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--tag) 60%, transparent); }
tbody tr:last-child td { border-bottom: none; }
.pager { display: flex; gap: 16px; align-items: center; margin: 10px 2px; color: var(--muted); font-size: 13px; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--tag); color: var(--muted); font-size: 12px; }
.tag.agency { color: var(--warn); } .tag.closed, .tag.broken { color: var(--bad); }
.tag.open, .tag.active { color: var(--ok); } .tag.degraded { color: var(--warn); }
.tag.personalvermittler { color: var(--warn); } .tag.security_anbieter { color: var(--accent); }
.tag.beratung { color: var(--ok); } .tag.nicht_klassifiziert { color: var(--muted); font-style: italic; } .note-inline { color: var(--muted); font-size: 12px; }
.filters .check span:last-child { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.filters .check input { width: auto; }

.facts { display: grid; grid-template-columns: 240px 1fr; gap: 6px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.data { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: auto; max-height: 420px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.login { max-width: 360px; margin: 12vh auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.login h1 span { color: var(--accent); }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.error { color: var(--bad); margin: 0; }

@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .top { flex-wrap: wrap; gap: 8px; } }

.banner { margin: 0; padding: 8px 16px; background: var(--warn-bg, #fff4d6); color: var(--warn-ink, #5c4400); border-bottom: 1px solid var(--line, #d9d2b8); font-size: 0.9rem; text-align: center; }
