/* Signalradar – Oberfläche. Ruhig, hell/dunkel nach Systemeinstellung, ohne externe Abhängigkeiten. */
@font-face {
  font-family: "InterVar"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVar"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f7;
  --line: #e7e9ee;
  --line-2: #eef0f3;
  --line-strong: #d3d8e0;
  --text: #101828;
  --text-2: #475467;
  --text-3: #858fa1;
  --text-4: #a9b1be;
  --accent: #3b4fd8;
  --accent-2: #3243c4;
  --accent-weak: #eef0fd;
  --accent-line: #c9cff7;
  --accent-text: #3040c0;
  --hover: #f2f4f7;
  --row-hover: #f7f8fb;
  --row-active: #eef1fe;
  --row-sel: #f3f5fe;
  --focus-ring: 0 0 0 3px rgba(59, 79, 216, .22);
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .14), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22), 0 4px 12px -4px rgba(16, 24, 40, .08);
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;

  /* Signal-Kategorien */
  --c-fuehrung: #7a3fe4; --c-fuehrung-bg: #f4efff; --c-fuehrung-line: #e2d6fd;
  --c-personal: #1d6fd6; --c-personal-bg: #ecf4ff; --c-personal-line: #cfe2fc;
  --c-wachstum: #0b8a5c; --c-wachstum-bg: #e9f8f1; --c-wachstum-line: #c4ebd8;
  --c-sichtbarkeit: #c25a0a; --c-sichtbarkeit-bg: #fff3e8; --c-sichtbarkeit-line: #fbdcc0;
  --c-digital: #0c7a8a; --c-digital-bg: #e8f7f9; --c-digital-line: #c3e9ee;
  --c-warnung: #d92d20; --c-warnung-bg: #fef1f0; --c-warnung-line: #fbd0cc;
  --c-sonstige: #667085; --c-sonstige-bg: #f2f4f7; --c-sonstige-line: #e4e7ec;

  /* Hitze */
  --h-heiss: #e5484d; --h-warm: #f2780c; --h-lau: #e8a90c; --h-kalt: #b9c0cc;
  --h-heiss-bg: #fdecec; --h-warm-bg: #fff1e5; --h-lau-bg: #fff8e1; --h-kalt-bg: #f2f4f7;

  --rail-w: 76px;
  --top-h: 68px;
  --drawer-w: 620px;
  --filters-w: 252px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #141a22;
    --surface-2: #171e27;
    --surface-3: #1c2430;
    --line: #252e3b;
    --line-2: #202834;
    --line-strong: #344052;
    --text: #e7ebf1;
    --text-2: #a8b2c1;
    --text-3: #7c8799;
    --text-4: #5b6576;
    --accent: #7c8cff;
    --accent-2: #93a0ff;
    --accent-weak: #1d2346;
    --accent-line: #313c7a;
    --accent-text: #a4b0ff;
    --hover: #1c2430;
    --row-hover: #18202a;
    --row-active: #1d2442;
    --row-sel: #1a2036;
    --focus-ring: 0 0 0 3px rgba(124, 140, 255, .3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
    --c-fuehrung: #b69cff; --c-fuehrung-bg: #241d3d; --c-fuehrung-line: #3a2e63;
    --c-personal: #79b4ff; --c-personal-bg: #15263d; --c-personal-line: #22406a;
    --c-wachstum: #4fd1a1; --c-wachstum-bg: #10291f; --c-wachstum-line: #1b4a37;
    --c-sichtbarkeit: #ffaa66; --c-sichtbarkeit-bg: #33210f; --c-sichtbarkeit-line: #5a3a18;
    --c-digital: #56d0df; --c-digital-bg: #0f2a2e; --c-digital-line: #19484e;
    --c-warnung: #ff7b72; --c-warnung-bg: #3a1614; --c-warnung-line: #5f2420;
    --c-sonstige: #a8b2c1; --c-sonstige-bg: #1c2430; --c-sonstige-line: #2b3544;
    --h-kalt: #4a5465; --h-heiss-bg: #3a1a1c; --h-warm-bg: #3a2414; --h-lau-bg: #352a10; --h-kalt-bg: #1c2430;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss03";
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { display: block; }
kbd {
  font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; min-width: 20px;
  display: inline-flex; align-items: center; justify-content: center; height: 20px; line-height: 1;
}
::selection { background: rgba(59, 79, 216, .18); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ Grundgerüst */
.app {
  display: grid; height: 100vh; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr);
}
.rail {
  grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 12px;
  background: var(--surface); border-right: 1px solid var(--line); z-index: 5;
}
.rail-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.rail-logo:hover { background: var(--hover); }
.rail-item {
  position: relative; width: 64px; padding: 8px 0 6px; border: 0; background: none; border-radius: 10px; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 550; letter-spacing: .01em;
  transition: background .15s, color .15s;
}
.rail-item svg { width: 20px; height: 20px; stroke-width: 1.8; }
.rail-item:hover { background: var(--hover); color: var(--text); }
.rail-item.is-active { color: var(--accent-text); background: var(--accent-weak); }
.rail-item.is-active svg { stroke-width: 2.1; }
.rail-item--small { opacity: .85; }
.rail-spacer { flex: 1; }
.rail-badge {
  position: absolute; top: 3px; right: 9px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; font-size: 10px;
  font-weight: 700; line-height: 17px; text-align: center; color: #fff; background: var(--text-3); box-shadow: 0 0 0 2px var(--surface);
}
.rail-badge--hot { background: var(--h-heiss); }

.top {
  grid-column: 2; display: flex; align-items: center; gap: 14px; padding: 0 24px; justify-content: space-between; background: var(--surface);
  border-bottom: 1px solid var(--line); z-index: 4;
}
.searchbox {
  flex: 1; max-width: 920px; min-width: 0; position: relative; display: flex; align-items: center; height: 44px; border-radius: 11px;
  background: var(--surface-3); border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, background .15s;
}
.searchbox:focus-within { background: var(--surface); border-color: var(--accent-line); box-shadow: var(--focus-ring); }
.searchbox-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.searchbox input {
  flex: 1; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 8px 0 42px; font-size: 15px; font-weight: 450;
  min-width: 0;
}
.searchbox input::placeholder { color: var(--text-3); font-weight: 400; }
.searchbox-clear { border: 0; background: none; color: var(--text-3); padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.searchbox-clear:hover { color: var(--text); background: var(--hover); }
.searchbox-kbd { margin-right: 6px; }
.searchbox:focus-within .searchbox-kbd { display: none; }
.searchbox-go { margin-right: 4px; height: 36px; }
body.is-home .top .searchbox { display: none; }
.top-brand { display: none; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.top-brand span { font-weight: 500; color: var(--text-3); font-size: 13px; letter-spacing: 0; }
body.is-home .top-brand { display: flex; }

.main { grid-column: 2; overflow: auto; position: relative; outline: none; }
.main.is-split { overflow: hidden; }

/* ------------------------------------------------------------------ Knöpfe, Felder */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 550;
  white-space: nowrap; box-shadow: var(--shadow-xs); transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-3); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(59, 79, 216, .3); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn-dark:hover { opacity: .9; background: var(--text); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { color: var(--c-warnung); }
.btn-danger:hover { background: var(--c-warnung-bg); border-color: var(--c-warnung-line); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 6px; gap: 5px; }
.btn-icon { width: 34px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn.is-on { color: var(--accent-text); background: var(--accent-weak); border-color: var(--accent-line); }
.btn-star.is-on { color: #c88a04; background: #fff8e1; border-color: #f5dc8f; }
.btn-star.is-on svg { fill: #f5b301; stroke: #d69600; }
@media (prefers-color-scheme: dark) { .btn-star.is-on { background: #33290f; border-color: #5a4612; color: #f5c84b; } }

.input, .select, .textarea {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); padding: 0 11px; outline: 0;
  font-size: 13.5px; transition: border-color .12s, box-shadow .12s; min-width: 0;
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; width: 100%; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858fa1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; cursor: pointer; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 6px; font-size: 12.5px; font-weight: 550;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button .count { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Vertriebsfokus */
.focus { position: relative; flex: none; }
.focus-btn {
  height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--surface); text-align: left; min-width: 236px; box-shadow: var(--shadow-xs);
}
.focus-btn:hover { border-color: var(--text-4); }
.focus-btn .lbl { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); line-height: 1.1; }
.focus-btn .val { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.focus-btn > svg:last-child { margin-left: auto; color: var(--text-3); }
.focus-btn .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-text); }
.focus-btn .ico svg { width: 16px; height: 16px; }

/* Menüs */
.menu {
  position: absolute; z-index: 60; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .12s ease-out;
}
.menu-item {
  width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px;
  text-align: left; font-size: 13px; color: var(--text);
}
.menu-item:hover, .menu-item.is-hl { background: var(--hover); }
.menu-item small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; }
.menu-item .check { width: 16px; color: var(--accent); margin-top: 2px; }
.menu-item.is-danger { color: var(--c-warnung); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-title { font-size: 11px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Seitenköpfe */
.page { padding: 28px 32px 64px; max-width: 1320px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-head .grow { flex: 1; }
.h2 { font-size: 15px; font-weight: 650; margin: 0; letter-spacing: -.005em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.card-head .grow { flex: 1; }
.card-body { padding: 0 18px 18px; }
.link { color: var(--accent-text); font-weight: 550; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ Startseite */
.home { padding: 0 32px 64px; max-width: 1240px; margin: 0 auto; }
.hero { text-align: center; padding: 56px 0 30px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 -40px auto; height: 300px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 220px at 50% 30%, rgba(76, 95, 240, .10), transparent 70%);
}
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 750; }
.hero p { margin: 0 auto 26px; color: var(--text-2); font-size: 15.5px; max-width: 640px; }
.hero-search { max-width: 760px; margin: 0 auto; height: 58px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-md); }
.hero-search:focus-within { border-color: var(--accent); }
.hero-search input { font-size: 17px; padding-left: 50px; }
.hero-search .searchbox-icon { left: 18px; width: 20px; height: 20px; }
.hero-search .btn { height: 44px; margin-right: 7px; padding: 0 20px; font-size: 14px; border-radius: 10px; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; align-items: center; }
.examples .lead { color: var(--text-3); font-size: 13px; margin-right: 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); box-shadow: var(--shadow-xs); transition: all .12s;
}
.pill:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.pill svg { width: 13px; height: 13px; color: var(--text-3); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.home-side { display: grid; gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.kpi { padding: 14px 16px; }
.kpi .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.kpi .bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

.segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px; }
.seg-tile {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); transition: all .12s; min-width: 0;
}
.seg-tile:hover { border-color: var(--accent-line); background: var(--accent-weak); }
.seg-tile b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-tile span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.seg-tile .hot { color: var(--c-wachstum); font-weight: 600; }
.seg-more { margin-top: 12px; }

.sig-list { display: flex; flex-direction: column; }
.sig-item { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line-2); cursor: pointer; align-items: flex-start; }
.sig-item:first-child { border-top: 0; padding-top: 2px; }
.sig-item:hover .sig-item-title { color: var(--accent-text); }
.sig-item-main { min-width: 0; flex: 1; }
.sig-item-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.sig-item-meta { color: var(--text-3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }

.cat-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.cat-ico svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ Suche: Aufteilung */
.split { display: grid; grid-template-columns: var(--filters-w) minmax(0, 1fr); height: 100%; }
.split.no-filters { grid-template-columns: 0 minmax(0, 1fr); }
.split.no-filters .filters { visibility: hidden; border: 0; }
.filters { overflow: auto; border-right: 1px solid var(--line); background: var(--surface); padding: 16px 14px 40px; }
.results { overflow: auto; position: relative; display: flex; flex-direction: column; overflow-anchor: none; }
.results-head { padding: 20px 24px 12px; display: flex; flex-direction: column; gap: 10px; }
.rh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh-row .grow { flex: 1; }
.rh-title { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.rh-title .count { font-size: 14px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rh-terms { color: var(--text-3); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.term { padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; border: 1px solid var(--line-2); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.af {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; font-size: 12.5px;
  background: var(--accent-weak); color: var(--accent-text); border: 1px solid var(--accent-line); font-weight: 550;
}
.af button { border: 0; background: none; color: inherit; padding: 2px; display: grid; place-items: center; border-radius: 50%; opacity: .7; }
.af button:hover { opacity: 1; background: rgba(59, 79, 216, .12); }
.af button svg { width: 12px; height: 12px; }

/* Filterleiste */
.f-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.f-head b { font-size: 13px; font-weight: 650; }
.f-group { border-top: 1px solid var(--line-2); padding: 12px 0 10px; }
.f-group:first-of-type { border-top: 0; }
.f-title { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 0 4px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.f-title svg { width: 14px; height: 14px; transition: transform .15s; }
.f-group.is-closed .f-title svg { transform: rotate(-90deg); }
.f-group.is-closed .f-opts { display: none; }
.f-opt {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 0; background: none; border-radius: 7px;
  font-size: 13px; color: var(--text); text-align: left; min-height: 30px;
}
.f-opt:hover { background: var(--hover); }
.f-opt .box {
  width: 16px; height: 16px; border-radius: 4.5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none;
  background: var(--surface); transition: all .1s;
}
.f-opt .box svg { width: 11px; height: 11px; stroke-width: 3; color: #fff; opacity: 0; }
.f-opt.is-on .box { background: var(--accent); border-color: var(--accent); }
.f-opt.is-on .box svg { opacity: 1; }
.f-opt.radio .box { border-radius: 50%; }
.f-opt.radio.is-on .box { background: var(--surface); border: 5px solid var(--accent); }
.f-opt.radio .box svg { display: none; }
.f-opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.f-opt .n { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.f-opt.is-zero { color: var(--text-4); }
.f-opt .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.f-opt .logo { width: 16px; height: 16px; }
.f-more { border: 0; background: none; color: var(--accent-text); font-size: 12.5px; font-weight: 550; padding: 4px 6px; }
.f-sub { padding-left: 22px; }
.toggle {
  width: 30px; height: 18px; border-radius: 9px; background: var(--line-strong); position: relative; flex: none; transition: background .15s;
}
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.f-opt.is-on .toggle { background: var(--accent); }
.f-opt.is-on .toggle::after { transform: translateX(12px); }

/* Websuche */
.discover {
  margin: 0 24px 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-xs);
}
.discover.is-offer { background: linear-gradient(90deg, var(--accent-weak), var(--surface) 70%); border-color: var(--accent-line); }
.discover .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.discover .ico img { width: 20px; height: 20px; }
.discover .txt { flex: 1; min-width: 0; }
.discover .txt b { display: block; font-size: 13.5px; font-weight: 650; }
.discover .txt span { color: var(--text-2); font-size: 12.5px; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 8px; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), #7b8bff); border-radius: 6px; transition: width .6s ease; }
.progress.is-indet i { width: 35% !important; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { left: -35%; } 100% { left: 100%; } }
.dstats { display: flex; gap: 16px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.dstats b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 650; }

/* ------------------------------------------------------------------ Ergebnistabelle */
.tbl { --cols: 40px minmax(220px, 1.4fr) minmax(130px, .85fr) minmax(250px, 1.9fr) minmax(130px, .85fr) 114px 122px; padding: 0 24px 40px; }
.tbl-head, .tr { display: grid; grid-template-columns: var(--cols); align-items: center; }
.tbl-head {
  position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); height: 36px;
  font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .045em;
}
.tbl-head > div { padding: 0 10px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.tbl-head .sortable { cursor: pointer; }
.tbl-head .sortable:hover { color: var(--text); }
.tbl-head .is-sorted { color: var(--text); }
.tbl-body { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-xs); }
.tr { position: relative; min-height: 66px; border-top: 1px solid var(--line-2); cursor: pointer; transition: background .08s; }
.tr:first-child { border-top: 0; }
.tr:hover { background: var(--row-hover); }
.tr.is-sel { background: var(--row-sel); }
.tr.is-cursor { background: var(--row-active); }
.tr.is-cursor::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.tr.is-open { background: var(--row-active); }
.tr.is-dim { opacity: .55; }
.tr > div { padding: 10px 10px; min-width: 0; }
.tr.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: rgba(34, 197, 94, .14); } 100% { background: transparent; } }
.tr.enter { animation: enter .45s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(-6px); background: var(--accent-weak); } to { opacity: 1; transform: none; } }
.group-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12px; font-weight: 650; color: var(--accent-text);
  background: var(--accent-weak); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); text-transform: uppercase; letter-spacing: .04em;
}
.group-row:first-child { border-top: 0; }
.group-row img { width: 14px; height: 14px; }

.cb {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: all .1s; padding: 0;
}
.cb svg { width: 12px; height: 12px; stroke-width: 3; color: #fff; opacity: 0; }
.cb:hover { border-color: var(--accent); }
.cb.is-on { background: var(--accent); border-color: var(--accent); }
.cb.is-on svg { opacity: 1; }
.cb.is-mixed { background: var(--accent); border-color: var(--accent); }
.cb.is-mixed::after { content: ""; width: 8px; height: 2px; background: #fff; border-radius: 1px; }
.cb.is-mixed svg { display: none; }
.c-cb { display: flex; justify-content: center; padding-left: 14px !important; padding-right: 0 !important; }

.firm { display: flex; gap: 11px; align-items: center; min-width: 0; }
.firm-txt { min-width: 0; flex: 1; }
.firm-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.firm-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm-meta { font-size: 12.5px; color: var(--text-2); display: flex; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.firm-meta > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.firm-meta > .sep { flex: none; }
.firm-meta .sz { flex: none; }
.firm-meta a:hover { color: var(--accent-text); text-decoration: underline; }
.firm-meta .sep { color: var(--text-4); }
.firm-star { border: 0; background: none; padding: 4px; border-radius: 6px; color: var(--text-4); opacity: 0; transition: opacity .1s; display: grid; place-items: center; }
.tr:hover .firm-star, .firm-star.is-on { opacity: 1; }
.firm-star:hover { color: var(--text-2); background: var(--hover); }
.firm-star.is-on { color: #e2a400; }
.firm-star.is-on svg { fill: #f5b301; }
.badge-new {
  font-size: 10px; font-weight: 750; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; background: var(--accent);
  color: #fff; text-transform: uppercase; flex: none;
}
.badge-status { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; flex: none; border: 1px solid; }
.st-interessant { color: var(--c-wachstum); background: var(--c-wachstum-bg); border-color: var(--c-wachstum-line); }
.st-kontaktiert { color: var(--c-personal); background: var(--c-personal-bg); border-color: var(--c-personal-line); }
.st-kein_fit { color: var(--text-3); background: var(--surface-3); border-color: var(--line); }

.av {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; overflow: hidden; font-weight: 700;
  font-size: 13px; color: #fff; background: var(--surface-3); border: 1px solid var(--line); letter-spacing: -.02em;
}
.av img { width: 22px; height: 22px; object-fit: contain; }
.av.has-img { background: var(--surface); }
.av-lg { width: 52px; height: 52px; border-radius: 13px; font-size: 19px; }
.av-lg img { width: 34px; height: 34px; }
.av-sm { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.av-sm img { width: 16px; height: 16px; }
.pav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; flex: none; }

.ind b { display: block; font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.ind .from-wlw { color: var(--text-3); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 4px 5px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 7px 0 7px; border-radius: 6px; font-size: 12px; font-weight: 560;
  border: 1px solid var(--cl, var(--line)); background: var(--cb, var(--surface-3)); color: var(--cc, var(--text-2)); white-space: nowrap;
  max-width: 100%; cursor: default;
}
.chip > span { overflow: hidden; text-overflow: ellipsis; }
.chip em { font-style: normal; font-weight: 500; opacity: .72; font-size: 11.5px; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cc); flex: none; }
.chip svg { width: 12px; height: 12px; stroke-width: 2.2; }
.chip-more { color: var(--text-3); font-size: 12px; font-weight: 600; padding: 0 3px; }
.cat-fuehrung { --cc: var(--c-fuehrung); --cb: var(--c-fuehrung-bg); --cl: var(--c-fuehrung-line); }
.cat-personal { --cc: var(--c-personal); --cb: var(--c-personal-bg); --cl: var(--c-personal-line); }
.cat-wachstum { --cc: var(--c-wachstum); --cb: var(--c-wachstum-bg); --cl: var(--c-wachstum-line); }
.cat-sichtbarkeit { --cc: var(--c-sichtbarkeit); --cb: var(--c-sichtbarkeit-bg); --cl: var(--c-sichtbarkeit-line); }
.cat-digital { --cc: var(--c-digital); --cb: var(--c-digital-bg); --cl: var(--c-digital-line); }
.cat-warnung { --cc: var(--c-warnung); --cb: var(--c-warnung-bg); --cl: var(--c-warnung-line); }
.cat-sonstige { --cc: var(--c-sonstige); --cb: var(--c-sonstige-bg); --cl: var(--c-sonstige-line); }
.cat-ico.cat-fuehrung, .cat-ico.cat-personal, .cat-ico.cat-wachstum, .cat-ico.cat-sichtbarkeit, .cat-ico.cat-digital, .cat-ico.cat-warnung, .cat-ico.cat-sonstige { background: var(--cb); color: var(--cc); }
.no-sig { color: var(--text-4); font-size: 12.5px; }

.pending { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; }
.pending .spin { width: 14px; height: 14px; color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--surface-3) 0%, var(--line) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel + .skel { margin-top: 7px; }

.contact b { display: block; font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact span { display: block; color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Herkunft */
.srcs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.src-main { display: flex; gap: 4px; }
.logo {
  width: 28px; height: 28px; border-radius: 7px; background: #fff; display: grid; place-items: center;
  overflow: hidden; flex: none; position: relative; box-shadow: 0 0 0 1px rgba(16, 24, 40, .10);
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.is-pad img { width: 70%; height: 70%; }
.logo-txt { font-size: 10px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1; }
.logo-sm { width: 20px; height: 20px; border-radius: 5px; }
.logo-sm .logo-txt { font-size: 7.5px; }
.logo-xs { width: 16px; height: 16px; border-radius: 4px; }
.logo-xs .logo-txt { font-size: 7px; }
.src-listed { display: flex; align-items: center; gap: 3px; }
.src-listed .more { font-size: 11px; color: var(--text-3); font-weight: 650; margin-left: 4px; }
.src-hit { display: inline-flex; border-radius: 8px; }

/* Signalstärke */
.score { display: flex; flex-direction: column; gap: 4px; }
.score-top { display: flex; align-items: center; gap: 8px; }
.score-num { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 22px; }
.score-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; max-width: 64px; }
.score-bar i { display: block; height: 100%; border-radius: 6px; background: var(--hc); }
.score-lbl { font-size: 11.5px; font-weight: 600; color: var(--hc); display: flex; align-items: center; gap: 3px; }
.score-lbl svg { width: 11px; height: 11px; }
.heat-heiss { --hc: var(--h-heiss); --hb: var(--h-heiss-bg); }
.heat-warm { --hc: var(--h-warm); --hb: var(--h-warm-bg); }
.heat-lau { --hc: var(--h-lau); --hb: var(--h-lau-bg); }
.heat-kalt { --hc: var(--h-kalt); --hb: var(--h-kalt-bg); }
.heat-kalt .score-lbl { color: var(--text-4); }
.heat-kalt .score-num { color: var(--text-3); }

.load-more { display: flex; justify-content: center; padding: 16px 0 0; }
.tbl-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: 12.5px; padding: 14px 0; }

/* Mehrfachauswahl */
.bulk {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 40;
  display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 16px; border-radius: 14px; background: #121826; color: #fff;
  box-shadow: var(--shadow-lg); transition: all .18s ease;
}
.bulk.is-on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.bulk b { font-size: 13px; margin-right: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bulk .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.bulk .btn:hover { background: rgba(255,255,255,.16); }
.bulk .sep { width: 1px; height: 22px; background: rgba(255,255,255,.15); margin: 0 4px; }

/* ------------------------------------------------------------------ Leere Zustände, Hinweise */
.empty { text-align: center; padding: 56px 24px; color: var(--text-2); max-width: 520px; margin: 0 auto; }
.empty .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-3); box-shadow: var(--shadow-xs); }
.empty .ico svg { width: 24px; height: 24px; }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; font-weight: 650; }
.empty p { margin: 0 0 16px; font-size: 13.5px; }
.empty .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); }
.notice svg { width: 16px; height: 16px; margin-top: 1px; color: var(--text-3); }
.notice b { color: var(--text); }
.notice.is-info { background: var(--accent-weak); border-color: var(--accent-line); color: var(--accent-text); }
.notice.is-info svg { color: var(--accent); }
.notice.is-warn { background: var(--c-warnung-bg); border-color: var(--c-warnung-line); color: var(--c-warnung); }
.notice.is-warn svg { color: var(--c-warnung); }
.error-box { margin: 40px auto; }

/* ------------------------------------------------------------------ Hovercard / Tooltip */
.hovercard {
  position: fixed; z-index: 80; max-width: 360px; min-width: 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 13px; color: var(--text); animation: pop .1s ease-out;
}
.hovercard.is-tip { min-width: 0; max-width: 300px; padding: 6px 9px; font-size: 12px; border-radius: 7px; background: #161c28; color: #f1f3f7; border-color: #161c28; }
.hc-row { display: flex; gap: 10px; align-items: flex-start; }
.hc-row + .hc-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.hc-title { font-weight: 650; font-size: 13px; line-height: 1.35; }
.hc-sub { color: var(--text-2); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.hc-q { margin-top: 7px; padding-left: 9px; border-left: 2px solid var(--cl, var(--line-strong)); color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.hc-cat { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; }
.hc-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.hc-link:hover { text-decoration: underline; }
.hc-link svg { width: 12px; height: 12px; }
.hc-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ Detail-Schublade */
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(var(--drawer-w), 100vw); z-index: 30; background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.dw-bar { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); flex: none; }
.dw-bar .grow { flex: 1; }
.dw-bar .pos { font-size: 12px; color: var(--text-3); margin: 0 6px; font-variant-numeric: tabular-nums; }
.dw-scroll { overflow: auto; flex: 1; overscroll-behavior: contain; }
.dw-head { padding: 18px 24px 16px; }
.dw-id { display: flex; gap: 14px; align-items: flex-start; }
.dw-id h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.dw-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-2); font-size: 13px; margin-top: 5px; }
.dw-meta span, .dw-meta a { display: inline-flex; align-items: center; gap: 5px; }
.dw-meta svg { width: 13px; height: 13px; color: var(--text-3); }
.dw-meta a:hover { color: var(--accent-text); }
.dw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 550; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); }
.dw-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.dw-actions .seg button { height: 26px; }
.dw-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 2px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dw-nav a { padding: 10px 7px 9px; font-size: 12.5px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 5px; align-items: center; }
.dw-nav a:hover { color: var(--text); }
.dw-nav a.is-on { color: var(--text); border-bottom-color: var(--accent); }
.dw-nav .n { font-size: 11px; color: var(--text-3); font-weight: 600; background: var(--surface-3); border-radius: 9px; padding: 0 6px; }
.dw-sec { padding: 20px 24px 6px; scroll-margin-top: 44px; }
.dw-sec + .dw-sec { border-top: 1px solid var(--line-2); }
.dw-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dw-sec-h h3 { margin: 0; font-size: 14px; font-weight: 650; }
.dw-sec-h .n { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.dw-sec-h .grow { flex: 1; }
.why {
  padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-weak), var(--surface-2)); border: 1px solid var(--accent-line);
  display: flex; gap: 14px; align-items: flex-start;
}
.why .txt { flex: 1; font-size: 13.5px; line-height: 1.55; }
.why .txt .lbl { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); margin-bottom: 5px; }
.why .txt .lbl svg { width: 13px; height: 13px; }
.why .big-score { text-align: center; min-width: 74px; padding: 6px 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.why .big-score b { display: block; font-size: 24px; font-weight: 750; color: var(--hc); line-height: 1.1; font-variant-numeric: tabular-nums; }
.why .big-score span { font-size: 11px; font-weight: 650; color: var(--hc); text-transform: uppercase; letter-spacing: .05em; }
.why .contact-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }

.tl { position: relative; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line-2); border-radius: 1px; }
.tl-item:last-child::before { display: none; }
.tl-item .cat-ico { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--cl); }
.tl-body { flex: 1; min-width: 0; padding-top: 1px; }
.tl-top { display: flex; align-items: baseline; gap: 8px; }
.tl-title { font-weight: 600; font-size: 13.5px; flex: 1; line-height: 1.4; }
.tl-date { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-lbl { font-size: 11.5px; font-weight: 650; color: var(--cc); margin-top: 1px; }
.tl-q { margin: 7px 0 0; padding: 8px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.tl-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; }
.tl-foot a { color: var(--text-3); display: inline-flex; gap: 4px; align-items: center; max-width: 320px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-foot a:hover { color: var(--accent-text); }
.tl-foot svg { width: 12px; height: 12px; }
.tl-foot button { border: 0; background: none; color: var(--text-3); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; padding: 2px 4px; border-radius: 5px; margin-left: auto; opacity: 0; }
.tl-item:hover .tl-foot button { opacity: 1; }
.tl-foot button:hover { color: var(--text); background: var(--hover); }
.tl-item.is-hidden { opacity: .5; }
.tl-item.is-hidden .tl-foot button { opacity: 1; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.person { padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.person.is-key { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-weak); }
.person-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.person-top > div { min-width: 0; }
.person-name { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-role { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.person-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.person-contact { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.person-contact a, .person-contact > span { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.person-contact a:hover { color: var(--accent-text); }
.person-contact svg { width: 13px; height: 13px; color: var(--text-3); }
.person-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 12px; }
.person-foot .src { color: var(--text-3); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.li-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: #0a66c2; white-space: nowrap; }
.li-link svg { width: 13px; height: 13px; }
.li-link:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .li-link { color: #70b5f9; } }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); align-items: baseline; font-size: 13px; }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item .t { flex: 1; min-width: 0; }
.list-item .t a:hover { color: var(--accent-text); text-decoration: underline; }
.list-item .t small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; }
.list-item .d { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 7px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd .yes { color: var(--c-wachstum); font-weight: 600; }
.kv dd .no { color: var(--c-warnung); font-weight: 600; }
.src-list { display: flex; flex-direction: column; gap: 8px; }
.src-item { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.src-item .t { flex: 1; min-width: 0; font-size: 13px; }
.src-item .t b { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.src-item .t small { display: block; color: var(--text-3); font-size: 12px; }
.src-kind { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text-3); }
.src-kind.is-origin { background: var(--accent-weak); color: var(--accent-text); }
.dw-foot { padding: 18px 24px 26px; color: var(--text-3); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.analysis-banner { margin: 0 24px 4px; }
.more-toggle { border: 0; background: none; color: var(--accent-text); font-weight: 600; font-size: 12.5px; padding: 4px 0; display: inline-flex; gap: 4px; align-items: center; }

/* ------------------------------------------------------------------ Feed */
.feed-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ff-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ff-row .grow { flex: 1; }
.ff-hint { font-size: 12.5px; color: var(--text-3); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12.5px; font-weight: 560; color: var(--text-2); box-shadow: var(--shadow-xs);
}
.cat-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); }
.cat-pill .n { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 500; }
.cat-pill:hover { border-color: var(--line-strong); color: var(--text); }
.cat-pill.is-on { background: var(--cb); border-color: var(--cl); color: var(--cc); }
.cat-pill.is-on .n { color: var(--cc); opacity: .8; }
.feed-day { margin-bottom: 22px; }
.feed-day-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 0 0 8px 2px; display: flex; gap: 8px; }
.feed-day-h .n { font-weight: 500; }
.feed-list { overflow: hidden; }
.feed-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); cursor: pointer; align-items: flex-start; }
.feed-item:first-child { border-top: 0; }
.feed-item:hover { background: var(--row-hover); }
.feed-item.is-cursor { background: var(--row-active); }
.feed-item .cat-ico { width: 34px; height: 34px; }
.fi-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.fi-co { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12.5px; color: var(--text-2); min-width: 0; flex-wrap: wrap; }
.fi-co b { font-weight: 600; color: var(--text); }
.fi-q { margin-top: 6px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fi-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fi-date { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Merkliste */
.status-tabs { margin-bottom: 4px; }
.wl-head { padding: 24px 24px 12px; display: flex; flex-direction: column; gap: 14px; }

/* Gespeicherte Suchen */
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.saved { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.saved:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.saved-top { display: flex; gap: 12px; align-items: flex-start; }
.saved-top .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-text); flex: none; }
.saved-top h3 { margin: 0; font-size: 15px; font-weight: 650; }
.saved-top p { margin: 2px 0 0; color: var(--text-3); font-size: 12.5px; }
.saved-new { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--h-heiss); background: var(--h-heiss-bg); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.saved-stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); }
.saved-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.saved-foot { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* Bestand */
.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stock-grid .wide { grid-column: span 2; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.stack i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table td, .mini-table th { padding: 8px 0; border-top: 1px solid var(--line-2); text-align: left; }
.mini-table th { font-size: 11.5px; color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; border-top: 0; padding-top: 0; }
.mini-table td.r, .mini-table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table .nm { display: flex; align-items: center; gap: 9px; }
.add-form { display: flex; gap: 8px; flex-wrap: wrap; }
.add-form .input { flex: 1; min-width: 160px; }
.meter { height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 5px; background: var(--c-wachstum); }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .38); z-index: 90; display: grid; place-items: center; animation: fade .12s; padding: 16px; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px; animation: pop .14s ease-out; }
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal p { margin: 0 0 18px; color: var(--text-2); font-size: 13.5px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal .input { width: 100%; margin-bottom: 16px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13px; margin-bottom: 18px; align-items: center; }
.keys div:nth-child(odd) { display: flex; gap: 4px; }

/* Toasts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; background: #121826; color: #f4f6fa; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast .2s ease-out; }
.toast svg { width: 15px; height: 15px; color: #6ee7a8; }
.toast.is-err svg { color: #ff8a80; }
.toast button { border: 0; background: none; color: #a9b5ff; font-weight: 600; padding: 0 0 0 6px; }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
.bulk.is-on ~ .toasts, body.has-bulk .toasts { bottom: 84px; }

/* Scrollbalken dezent */
.main, .results, .filters, .dw-scroll { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ------------------------------------------------------------------ Responsiv */
@media (max-width: 1599px) {
  :root { --filters-w: 236px; --drawer-w: 580px; }
}
@media (max-width: 1279px) {
  .tbl { padding: 0 16px 40px; }
  .tbl-head { display: none; }
  .tbl-body { border-top: 1px solid var(--line); border-radius: 12px; }
  .tr {
    grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "cb firm score" ". ind ind" ". sig sig" ". con src";
    padding: 6px 4px 10px; row-gap: 0;
  }
  .tr > div { padding: 4px 10px; }
  .tr > .c-cb { grid-area: cb; align-self: start; padding-top: 14px !important; }
  .tr > .c-firm { grid-area: firm; }
  .tr > .c-ind { grid-area: ind; }
  .tr > .c-sig { grid-area: sig; }
  .tr > .c-con { grid-area: con; }
  .tr > .c-src { grid-area: src; justify-self: end; }
  .tr > .c-score { grid-area: score; align-self: start; padding-top: 10px; min-width: 100px; }
  .tr.is-cursor::before { display: none; }
  .results-head, .discover { margin-left: 0; margin-right: 0; }
  .discover { margin: 0 16px 12px; }
  .results-head { padding: 18px 16px 10px; }
  .home-grid { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .split, .split.no-filters { grid-template-columns: minmax(0, 1fr); }
  .split .filters { position: fixed; left: var(--rail-w); top: var(--top-h); bottom: 0; width: 290px; z-index: 20; box-shadow: var(--shadow-lg); transform: translateX(-110%); transition: transform .2s; visibility: visible; }
  .split.show-filters-mobile .filters { transform: none; }
  .split.no-filters .filters { visibility: visible; border-right: 1px solid var(--line); }
  .focus-btn { min-width: 0; }
  .focus-btn .lbl { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --rail-w: 0px; --top-h: 60px; }
  .app { grid-template-rows: var(--top-h) minmax(0, 1fr) 62px; }
  .rail { grid-row: 3; grid-column: 1 / span 2; flex-direction: row; justify-content: space-around; padding: 4px 6px; border-right: 0; border-top: 1px solid var(--line); }
  .rail-logo, .rail-spacer, #btn-keys { display: none; }
  .top { grid-column: 1 / span 2; padding: 0 12px; gap: 8px; }
  .main { grid-column: 1 / span 2; }
  .searchbox-kbd, .searchbox-go { display: none; }
  .searchbox input { font-size: 14px; }
  .focus-btn { height: 44px; padding: 0 6px; gap: 4px; }
  .focus-btn .val { display: none; }
  .focus-btn > span:nth-child(2) { display: none; }
  .page, .home { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 25px; }
  .hero-search .btn { display: none; }
  .split .filters { left: 0; top: var(--top-h); }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-grid .wide { grid-column: auto; }
  .kv { grid-template-columns: 120px minmax(0, 1fr); }
  .tr { grid-template-areas: "cb firm firm" ". score score" ". ind ind" ". sig sig" ". con src"; }
  .tr > .c-score { padding-top: 0; }
  .bulk { left: 12px; right: 12px; transform: translateY(20px); flex-wrap: wrap; }
  .bulk.is-on { transform: none; }
  .feed-item { grid-template-columns: 30px minmax(0, 1fr); }
  .feed-item .fi-right { grid-column: 2; align-items: flex-start; flex-direction: row; }
}

.discover.is-done { padding: 8px 12px; gap: 10px; background: var(--surface-2); box-shadow: none; }
.discover.is-done .ico { width: 28px; height: 28px; border-radius: 8px; }
.discover.is-done .ico img { width: 16px; height: 16px; }
.discover.is-done .dstats { margin-top: 0; }
.discover.is-done .dstats b { font-weight: 650; }
.discover.is-done .ok { color: var(--c-wachstum); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; }
.tbl-head > div:last-child { padding-right: 4px; }

.discover .dstats b { display: inline; }
.f-btn { position: relative; }
.f-btn .cnt { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 5px; }

.firm-dom { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; width: fit-content; }
.firm-dom:hover { color: var(--accent-text); text-decoration: underline; }

.firm-dom-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.firm-dom-row .badge-status { font-size: 10.5px; padding: 0 6px; line-height: 16px; }

.firm-meta .sz { display: inline-flex; align-items: center; gap: 3px; }
.firm-meta .sz svg { width: 12px; height: 12px; color: var(--text-3); }
.firm-meta > span:first-child:not(.sz) { min-width: 3.5em; }
body.drawer-open .toasts { left: calc((100vw - min(var(--drawer-w), 100vw) + var(--rail-w)) / 2); }
.tl-group { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 6px 0 12px; }
@media (max-width: 1600px) { .rh-row .btn .lbl-long { display: none; } }
@media (min-width: 1601px) { .rh-row .btn .lbl-short { display: none; } }

.tr > .c-src { padding-left: 8px; padding-right: 6px; }
@media (max-width: 1279px) {
  .tr > .c-con .contact::before { content: "Ansprechpartner"; display: block; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 1px; }
  .discover { flex-wrap: wrap; }
}

.dstats span { white-space: nowrap; }
@media (max-width: 760px) {
  .discover .txt { flex-basis: calc(100% - 50px); }
  .discover.is-done .dstats { gap: 4px 12px; }
  .rh-row { gap: 8px; }
  .rh-title { flex-basis: 100%; order: -1; font-size: 18px; }
  #f-toggle { order: 0; }
}

/* Hintergrunddienst (Worker) läuft nicht: ruhige Hinweise statt Lade-Animation */
.pending.is-paused { color: var(--text-3); }
.pending.is-paused svg { width: 14px; height: 14px; flex: none; color: var(--h-warm); }
.notice.is-paused { background: var(--h-warm-bg); border-color: color-mix(in srgb, var(--h-warm) 30%, transparent); }
.notice.is-paused svg { color: var(--h-warm); }
.discover.is-paused { background: var(--surface-2); box-shadow: none; }
.discover.is-paused .dstats span { white-space: normal; }
.progress.is-paused i { width: 35%; background: var(--line-strong); }
.worker-st { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; margin-bottom: 14px; color: var(--text-2); }
.worker-st b { color: var(--c-wachstum); font-weight: 650; }
.worker-st > i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c-wachstum); box-shadow: 0 0 0 3px var(--c-wachstum-bg); }
.worker-st.is-off b { color: var(--c-warnung); }
.worker-st.is-off > i { background: var(--c-warnung); box-shadow: 0 0 0 3px var(--c-warnung-bg); }
.worker-st .muted { font-size: 12.5px; }
body.worker-down .rail-item[data-nav="bestand"]::after {
  content: ""; position: absolute; top: 6px; right: 18px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--h-warm); box-shadow: 0 0 0 2px var(--surface);
}

/* ------------------------------------------------------------------ Datenbank-Ansicht (Ausbau 2) */
.kpis.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
a.kpi:hover { border-color: var(--accent-line); }
.src-groups tr.grp td { padding: 12px 0 4px; border-top: 0; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.src-groups tr.grp td .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.src-groups tr.grp:first-child td { padding-top: 0; }
.mini-table a.nm:hover { color: var(--accent-text); }

/* Firmen-Tabelle mit Personen-/Stellenzahl */
.tbl.has-counts { --cols: 40px minmax(210px, 1.5fr) minmax(110px, .75fr) minmax(210px, 1.5fr) minmax(120px, .85fr) 100px 88px 78px 112px; }
.tbl.has-counts .tbl-head > div { overflow: hidden; }
.c-cnt { font-variant-numeric: tabular-nums; }
.cnt-n { font-weight: 650; font-size: 13.5px; }

/* Filterleiste */
.split.db { grid-template-columns: 276px minmax(0, 1fr); }
.db-filters { padding-top: 14px; }
.db-filters .f-head { position: sticky; top: -14px; z-index: 2; background: var(--surface); margin: -14px -14px 0; padding: 14px 18px 10px; gap: 8px; }
.db-filters .f-head b { flex: 1; }
.db-fdone { display: none; }
.db-find { position: relative; margin: 2px 0 10px; }
.db-find svg { position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.db-find .input { width: 100%; padding-left: 32px; height: 34px; font-size: 13px; }
.f-find .input { width: 100%; height: 30px; font-size: 12.5px; margin: 0 0 6px; }
.f-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 7px; vertical-align: middle; }
.f-title > span { display: inline-flex; align-items: center; }
.f-sub-h { font-size: 11px; font-weight: 650; color: var(--text-3); padding: 9px 6px 3px; }
.f-empty { font-size: 12.5px; color: var(--text-4); padding: 4px 6px; }
.f-hint { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); padding: 6px 6px 0; }
.f-hint svg { width: 12px; height: 12px; }
.f-foot { font-size: 11.5px; color: var(--text-4); padding: 14px 4px 0; border-top: 1px solid var(--line-2); margin-top: 6px; }
.f-sect { margin: 16px 0 2px; padding: 10px 4px 0; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-2); display: flex; flex-direction: column; gap: 1px; }
.f-sect span { font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.f-tabbox { background: var(--accent-weak); border: 1px solid var(--accent-line); border-radius: 12px; padding: 10px 10px 4px; margin: 2px 0 12px; }
.f-tabbox-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--accent-text); padding: 0 4px 8px; }
.f-tabbox .db-find .input { background: var(--surface); }
.f-tabbox .f-group { border-top-color: var(--accent-line); padding: 9px 0 7px; }
.f-tabbox .f-opt:hover { background: rgba(255, 255, 255, .55); }
.f-opt.is-not .box { background: var(--c-warnung); border-color: var(--c-warnung); }
.f-opt.is-not .box svg { opacity: 1; }
.f-opt.is-not .lbl { text-decoration: line-through; text-decoration-color: var(--c-warnung); color: var(--text-2); }
.pf-row { display: flex; align-items: center; gap: 2px; }
.pf-row .f-opt { flex: 1; min-width: 0; }
.pf-not { flex: none; width: 26px; height: 26px; border: 0; background: none; border-radius: 6px; color: var(--text-4); display: grid; place-items: center; opacity: .55; }
.pf-not svg { width: 14px; height: 14px; }
.pf-row:hover .pf-not { opacity: 1; }
.pf-not:hover { background: var(--c-warnung-bg); color: var(--c-warnung); }
.pf-not.is-on { opacity: 1; color: var(--c-warnung); background: var(--c-warnung-bg); }
.pf-group { font-size: 11px; font-weight: 650; color: var(--text-3); padding: 8px 6px 2px; }
.pf-mode { display: flex; margin: 0 2px 6px; }
.pf-mode button { flex: 1; justify-content: center; height: 24px; font-size: 12px; }

/* Kopf: Reiter */
.db-head { padding-bottom: 8px; gap: 8px; }
.db-fbtn { display: none; }
.db-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: 2px; }
.db-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px 10px; border: 0; background: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-size: 13.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.db-tab svg { width: 15px; height: 15px; }
.db-tab:hover { color: var(--text); }
.db-tab.is-on { color: var(--text); border-bottom-color: var(--accent); }
.db-tab .n { font-size: 11.5px; font-weight: 600; color: var(--text-3); background: var(--surface-3); border-radius: 9px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.db-tab .n:empty { display: none; }
.db-tab.is-on .n { color: var(--accent-text); background: var(--accent-weak); }
.af.is-not { background: var(--c-warnung-bg); color: var(--c-warnung); border-color: var(--c-warnung-line); }
.af.af-mode { background: var(--surface-3); color: var(--text-2); border-color: var(--line); padding-right: 10px; }

/* Tabellen Personen, Stellen, Änderungen */
.dbt { padding: 0 24px 40px; }
.dbt-personen { --cols: minmax(190px, 1.35fr) minmax(110px, .7fr) minmax(190px, 1.3fr) 92px 128px 116px 72px; }
.dbt-stellen { --cols: minmax(210px, 1.6fr) minmax(110px, .7fr) 92px minmax(190px, 1.25fr) 92px 150px 110px; }
.dbt-aenderungen { --cols: minmax(130px, .8fr) minmax(190px, 1.2fr) minmax(170px, 1fr) minmax(150px, 1fr) minmax(160px, 1.1fr) 150px; }
.dbt-head, .dr { display: grid; grid-template-columns: var(--cols); align-items: center; }
.dbt-head { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); height: 36px;
  font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .045em; }
.dbt-head > div { padding: 0 10px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.dbt-head .sortable { cursor: pointer; }
.dbt-head .sortable:hover, .dbt-head .is-sorted { color: var(--text); }
.dbt-body { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-xs); }
.dr { position: relative; min-height: 56px; border-top: 1px solid var(--line-2); cursor: pointer; transition: background .08s; font-size: 13px; }
.dr:first-child { border-top: 0; }
.dr:hover { background: var(--row-hover); }
.dr.is-cursor, .dr.is-open { background: var(--row-active); }
.dr.is-cursor::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.dc { padding: 9px 10px; min-width: 0; }
.dc-main { display: flex; gap: 10px; align-items: center; padding-left: 14px; }
.dc .t { display: flex; flex-direction: column; min-width: 0; }
.dc .t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .t span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .t b.fn { font-weight: 550; }
.dc-main .t b { font-size: 13.5px; }
.ji { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--c-personal-bg); color: var(--c-personal); flex: none; }
.co { display: flex; gap: 9px; align-items: center; min-width: 0; }
.co .av { flex: none; }
.co .t b { font-size: 13px; }
.dr:hover .co .t b { color: var(--accent-text); }
.when { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12.5px; }
.stb { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; border: 1px solid; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stb.is-ok { color: var(--c-wachstum); background: var(--c-wachstum-bg); border-color: var(--c-wachstum-line); }
.stb.is-gone { color: var(--text-3); background: var(--surface-3); border-color: var(--line); }
.lnk { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12.5px; }
.lnk svg { width: 12px; height: 12px; color: var(--text-3); }
.lnk:hover { color: var(--accent-text); text-decoration: underline; }
.dc-ct { display: flex; gap: 4px; }
.dc-ct a { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }
.dc-ct a:hover { color: var(--accent-text); border-color: var(--accent-line); }
.dc-ct svg { width: 13px; height: 13px; }
.chg { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--cl, var(--line)); background: var(--cb, var(--surface-3)); color: var(--cc, var(--text-2)); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg svg { width: 12px; height: 12px; flex: none; }
.k-person_added, .k-job_added { --cc: var(--c-wachstum); --cb: var(--c-wachstum-bg); --cl: var(--c-wachstum-line); }
.k-person_removed { --cc: var(--c-sichtbarkeit); --cb: var(--c-sichtbarkeit-bg); --cl: var(--c-sichtbarkeit-line); }
.k-role_changed { --cc: var(--c-fuehrung); --cb: var(--c-fuehrung-bg); --cl: var(--c-fuehrung-line); }
.k-job_removed { --cc: var(--c-sonstige); --cb: var(--c-sonstige-bg); --cl: var(--c-sonstige-line); }
.k-fact_changed { --cc: var(--c-digital); --cb: var(--c-digital-bg); --cl: var(--c-digital-line); }
.tag-gf { height: 20px; font-size: 11px; margin: 4px 0 0; color: var(--c-fuehrung); background: var(--c-fuehrung-bg); border-color: var(--c-fuehrung-line); }
.dc .tag-gf { display: flex; width: fit-content; }
.ba { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; min-width: 0; }
.ba s { color: var(--text-3); text-decoration-color: var(--c-warnung); }
.ba b { font-weight: 600; }
.ba svg { width: 12px; height: 12px; color: var(--text-4); }
.belege { display: flex; gap: 10px; margin-top: 2px; }
.src-l { color: var(--text-2) !important; font-size: 12.5px; }

/* Schublade: Verlauf */
.hs-note { margin-bottom: 12px; }
.hs-sum { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.hs { position: relative; }
.hs-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.hs-item::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line-2); border-radius: 1px; }
.hs-item:last-child::before { display: none; }
.hs-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-3);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hs-dot svg { width: 14px; height: 14px; }
.hs-item.is-archive .hs-dot { background: var(--c-digital-bg); color: var(--c-digital); box-shadow: 0 0 0 1px var(--c-digital-line); }
.hs-item.has-diff .hs-dot { background: var(--accent-weak); color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-line); }
.hs-body { flex: 1; min-width: 0; padding-top: 4px; }
.hs-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hs-top b { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hs-src { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.hs-diff { font-size: 11.5px; font-weight: 650; color: var(--accent-text); background: var(--accent-weak); border-radius: 5px; padding: 1px 7px; }
.hs-first, .hs-same { font-size: 11.5px; color: var(--text-4); }
.hs-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 6px; font-size: 11.5px; color: var(--text-3); align-items: center; }
.hs-meta > span:not(.hs-links) { padding: 0 6px; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--line-2); }
.hs-links { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; margin-left: 4px; }
.hs-links a { white-space: nowrap; }
.hs-links a { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); font-weight: 550; }
.hs-links a:hover { color: var(--accent-text); text-decoration: underline; }
.hs-links svg { width: 11px; height: 11px; }
.hs-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; font-size: 12.5px; padding: 3px 0; align-items: baseline; }
.hs-row .k { color: var(--text-3); }
.hs-row .v { display: flex; flex-wrap: wrap; gap: 4px 5px; align-items: center; min-width: 0; }
.hp { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 550;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hp em, .hs-jobs em { font-style: normal; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.hp.is-new { color: var(--c-wachstum); background: var(--c-wachstum-bg); border-color: var(--c-wachstum-line); }
.hp.is-chg { color: var(--c-fuehrung); background: var(--c-fuehrung-bg); border-color: var(--c-fuehrung-line); }
.hp.is-gone { color: var(--c-sichtbarkeit); background: var(--c-sichtbarkeit-bg); border-color: var(--c-sichtbarkeit-line); }
.hf { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.hf s { color: var(--text-3); }
.hs-detail { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.hs-dh { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin: 6px 0 6px; }
.hs-dh:first-child { margin-top: 0; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; }
.hs-jobs { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.hs-jobs li { padding: 3px 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.hs-jobs li small { color: var(--text-3); }
.hs-jobs li.is-new { color: var(--c-wachstum); font-weight: 600; }
.hs-jobs li.is-gone s { color: var(--text-3); }
.kv-sm { grid-template-columns: 120px minmax(0, 1fr); font-size: 12.5px; gap: 4px 10px; }
.hs-toggle { margin-top: 4px; }
.hs-toggle svg { width: 13px; height: 13px; }
.chg-list { display: flex; flex-direction: column; }
.chg-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line-2); }
.chg-item:first-child { border-top: 0; padding-top: 0; }
.chg-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--cb, var(--surface-3)); color: var(--cc, var(--text-3)); }
.chg-ico svg { width: 13px; height: 13px; }
.chg-item .t { min-width: 0; font-size: 13px; }
.chg-item .t b { font-weight: 600; display: block; overflow-wrap: anywhere; }
.chg-item .t small { display: block; color: var(--text-3); font-size: 12px; }
.tag-since svg { width: 11px; height: 11px; color: var(--text-3); }
.tag-gone { color: var(--c-sichtbarkeit); background: var(--c-sichtbarkeit-bg); border-color: var(--c-sichtbarkeit-line); }

@media (max-width: 1599px) {
  .tbl.has-counts { --cols: 40px minmax(190px, 1.5fr) minmax(100px, .7fr) minmax(190px, 1.45fr) minmax(110px, .85fr) 92px 86px 76px 108px; }
}
@media (max-width: 1279px) {
  .tbl.has-counts .tr { grid-template-areas: "cb firm score" ". ind ind" ". sig sig" ". con src" ". ppl job"; }
  .tr > .c-ppl { grid-area: ppl; }
  .tr > .c-job { grid-area: job; justify-self: end; }
  .tr > .c-cnt::before { content: attr(data-l) " "; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-right: 4px; }
  .dbt { padding: 0 16px 40px; }
  .dbt-head { display: none; }
  .dbt-body { border-top: 1px solid var(--line); border-radius: 12px; }
  .dr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px 12px; }
  .dr .dc { padding: 2px 0; }
  .dr .dc-main { grid-column: 1 / -1; padding: 0 0 6px; }
  .dr .dc[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 2px; }
  .dbt-aenderungen .dr .dc-main::before { content: "Zeitraum"; display: block; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
  .dbt-aenderungen .dc-main { display: block; }
  .dr.is-cursor::before { display: none; }
}
@media (max-width: 1023px) {
  .split.db { grid-template-columns: minmax(0, 1fr); }
  .db-fbtn { display: inline-flex; }
  .db-fdone { display: inline-flex; }
  .db-filters .f-head { position: sticky; }
  .kpis.kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rail-item { width: auto; flex: 1 1 0; min-width: 0; font-size: 9.5px; }
  .rail-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail-badge { right: 4px; }
  .split.db .filters { width: min(330px, 100vw); bottom: 62px; }
  .db-head .rh-row #sort { max-width: 150px !important; }
  .db-tab { padding: 8px 9px 9px; font-size: 13px; gap: 5px; }
  .db-tab:not(.is-on) .n { display: none; }
  .db-head #export .lbl { display: none; }
  .db-tab svg { display: none; }
  .tbl.has-counts .tr { grid-template-areas: "cb firm firm" ". score score" ". ind ind" ". sig sig" ". con src" ". ppl job"; }
  .hs-row { grid-template-columns: 1fr; gap: 2px; }
}
/* Websuche: Ergebnis je Suchmaschine */
.eng-stats { margin-top: 5px; gap: 12px; }
.eng-stats .eng { display: inline-flex; align-items: center; gap: 5px; }
.eng-stats .logo-xs { box-shadow: 0 0 0 1px var(--line); }
.group-row svg { width: 14px; height: 14px; }
