:root {
  --navy: #142c46;
  --navy-2: #1d4267;
  --blue: #2878d0;
  --blue-light: #eaf3ff;
  --green: #1f8a5b;
  --red: #b42318;
  --ink: #1d2939;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --background: #f5f7fa;
  --shadow: 0 16px 40px rgba(20, 44, 70, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { min-height: 76px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(20px, 4vw, 64px); box-shadow: 0 4px 16px rgba(20,44,70,.18); }
.topbar h1 { margin: -3px 0 0; font-size: 24px; letter-spacing: -.02em; }
.eyebrow { margin: 0; color: #9dc9f6; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.user-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 13px; font-size: 14px; }
.workspace { padding: 28px clamp(16px, 3vw, 48px) 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); }
.summary-card { min-width: 120px; text-align: right; }
.summary-card strong { display: block; color: var(--navy); font-size: 28px; }
.summary-card span { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; }
.tab span { min-width: 28px; text-align: center; padding: 2px 7px; background: #eaecf0; border-radius: 999px; font-size: 12px; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab.active span { background: var(--blue-light); color: var(--blue); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0 14px 14px 14px; box-shadow: var(--shadow); overflow: hidden; }
.toolbar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); background: #fff; }
.search-field { flex: 1; }
input[type="search"], .login-form input { width: 100%; border: 1px solid #d0d5dd; border-radius: 9px; padding: 10px 12px; font: inherit; background: #fff; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,120,208,.14); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 0; border-radius: 9px; padding: 9px 15px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #1d67b8; }
.button-ghost { color: var(--navy); background: #eef2f6; }
.topbar .button-ghost { color: #fff; background: rgba(255,255,255,.12); }
.button.disabled { opacity: .45; pointer-events: none; }
.table-wrap { overflow: auto; max-height: calc(100vh - 300px); }
table { border-collapse: separate; border-spacing: 0; min-width: 2300px; width: 100%; font-size: 13px; }
th { position: sticky; top: 0; z-index: 2; background: var(--navy); color: #fff; text-align: left; white-space: nowrap; }
th a { display: block; padding: 11px 12px; text-decoration: none; }
td { max-width: 360px; min-width: 100px; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); background: #fff; }
tbody tr:nth-child(even) td { background: #f9fafb; }
tbody tr:hover td { background: #eef6ff; }
.column-id, .column-relevant, .column-blogartikel, .column-nischen_level { min-width: 95px; max-width: 130px; }
.column-url { min-width: 340px; }
.column-kurzbeschreibung, .column-begriffserklaerung { min-width: 340px; }
.url-link { color: #175cd3; text-decoration: none; overflow-wrap: anywhere; }
.url-link:hover { text-decoration: underline; }
details summary { cursor: pointer; color: #344054; }
.detail-text { margin-top: 9px; padding: 10px; border-radius: 8px; background: #f2f4f7; line-height: 1.5; }
.null-value { color: #98a2b3; font-style: italic; }
.pill { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-weight: 800; font-size: 11px; }
.pill-blue { background: #eaf3ff; color: #175cd3; }
.pill-gray { background: #eaecf0; color: #475467; }
.category-a1 { background: #dcfae6; color: #067647; }
.category-a2 { background: #ecfdf3; color: #027a48; }
.category-b { background: #eaf3ff; color: #175cd3; }
.category-c { background: #fff4d6; color: #b54708; }
.category-d { background: #eaecf0; color: #475467; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 999px; background: #98a2b3; transition: .18s ease; }
.switch-thumb { position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .18s ease; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(16px); }
.switch.is-null { cursor: pointer; color: #98a2b3; }
.switch.is-null .switch-track { background: #d0d5dd; opacity: .65; outline: 2px dashed #98a2b3; outline-offset: 2px; }
.switch.is-null:hover .switch-track { opacity: 1; outline-color: #175cd3; }
.switch.is-saving { opacity: .55; }
.switch-label { font-weight: 700; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.empty-state { text-align: center; padding: 50px; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; transform: translateY(20px); opacity: 0; pointer-events: none; color: #fff; background: var(--green); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); transition: .2s ease; }
.toast.error { background: var(--red); }
.toast.show { transform: translateY(0); opacity: 1; }
.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #2c6797 0, var(--navy) 35%, #0d1f32 100%); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 38px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.login-card h1 { margin: 3px 0 6px; font-size: 30px; letter-spacing: -.04em; }
.login-card .eyebrow { color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); border-radius: 14px; font-weight: 900; }
.muted { color: var(--muted); }
.login-form { display: grid; gap: 16px; margin-top: 24px; }
.login-form label span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.login-form .button { width: 100%; margin-top: 4px; }
.alert { margin-top: 18px; padding: 11px 13px; border-radius: 9px; font-size: 14px; }
.alert-error { color: #912018; background: #fee4e2; border: 1px solid #fecdca; }
@media (max-width: 760px) {
  .topbar, .page-heading, .toolbar { align-items: stretch; flex-direction: column; }
  .user-actions { justify-content: space-between; }
  .summary-card { text-align: left; }
  .table-wrap { max-height: none; }
}
