/* ONE HIRING LeadFinder – Corporate Brandbook V01.2024: brand colours, Figtree for text and IBM Plex Mono for numbers,
   PLZ and dates (both bundled, work offline), 10 px corners, line icons, light and dark. ONEred only for warnings and
   errors; ONEturquoise for the few special elements. Every colour is a token below: [data-theme=dark] (set by
   static/boot.js) swaps them. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/plexmono-latin-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/plexmono-latin-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(fonts/plexmono-latin-600.woff2) format("woff2"); }

:root {
  /* brand palette (Farbwerte) */
  --deepblue: #02223C; --greyblue: #2B5473; --midgrey: #64879F; --lightgrey: #ABC6D7;
  --blue: #1E8DEB; --turquoise: #48FFC8; --grey: #F2F4F5; --white: #FFFFFF; --red: #CA5950;
  --gradient: linear-gradient(90deg, #1E8DEB, #48FFC8);
  --mono: "IBM Plex Mono", Consolas, "Cascadia Mono", monospace;
  /* roles: surfaces, text, lines - tints of the palette, a darker ONEred for red text on a light ground */
  --bg: var(--grey); --card: var(--white); --field: var(--white); --chip: var(--grey);
  --text: var(--deepblue); --muted: var(--greyblue); --faint: var(--midgrey);
  --line: #DEE8EF; --field-line: var(--lightgrey); --head: #F7F9FA; --hover: #F5F9FC; --s-mid: #E5EEF4;
  --accent: var(--blue); --accent-weak: #E4F1FD; --turq-weak: #DAFFF4; --turq-line: #A9F5DE;
  --link: #1670C2;  /* ONEblue darkened for text: 5.1:1 on white (ONEblue itself: 3.5:1) */
  --danger: var(--red); --danger-text: #A8443C; --danger-weak: #F8E6E4; --danger-line: #EFC7C3;
  --warn-weak: #FCF2F1; --warn-line: #F0D2CF;
  --btn: var(--deepblue); --btn-text: var(--white); --btn-hover: var(--greyblue);
  --on: var(--turquoise); --on-text: var(--deepblue); --on-hover: #2FF5BB;
  --log-bg: var(--deepblue);
  --radius: 10px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(2, 34, 60, .05), 0 2px 8px rgba(2, 34, 60, .04);
  color-scheme: light;
}
/* dark: background #011627, surfaces #072540 / #0C2F4F, text ONEgrey */
:root[data-theme="dark"] {
  --bg: #011627; --card: #072540; --field: #0C2F4F; --chip: #0C2F4F;
  --text: var(--grey); --muted: var(--lightgrey); --faint: #8FA9BC;
  --line: rgba(171, 198, 215, .16); --field-line: rgba(171, 198, 215, .32); --head: #0C2F4F; --hover: #0B2C4A;
  --s-mid: rgba(171, 198, 215, .16);
  --accent-weak: rgba(30, 141, 235, .22); --turq-weak: rgba(72, 255, 200, .16); --turq-line: rgba(72, 255, 200, .4);
  --link: #5AAEF2;  /* 6.5:1 on #072540 */
  --danger-text: #F09A92; --danger-weak: rgba(202, 89, 80, .2); --danger-line: rgba(202, 89, 80, .45);
  --warn-weak: rgba(202, 89, 80, .12); --warn-line: rgba(202, 89, 80, .35);
  --btn: var(--blue); --btn-text: var(--deepblue); --btn-hover: #5AAEF2;
  --log-bg: #010F1C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }  /* #p123, #kontakte below the sticky bar */
body { margin: 0; font: 14px/1.5 "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
       color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
h2.inline { display: inline; margin: 0; }
code { font: 13px var(--mono); background: var(--chip); padding: 1px 5px; border-radius: 6px; }
.count { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.muted { color: var(--muted); }
.sub { color: var(--muted); font-size: 12px; }
.nowrap { white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }
.center { text-align: center; }
/* numbers, PLZ, dates: IBM Plex Mono, a touch smaller so it sits with Figtree */
.mono, .num { font-family: var(--mono); font-size: .93em; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num { text-align: right; }
.sub.mono { font-size: 11px; }  /* the PLZ beside a place: smaller than the text, as before */
.callto { text-align: left; margin-top: 6px; }  /* lf-tel: name and number of a person to call, Stellen list */

/* line icons from static/icons.svg (<svg class="i"><use href="/static/icons.svg#name"/></svg>) */
.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8;
     stroke-linecap: round; stroke-linejoin: round; }
.i.lg { width: 20px; height: 20px; }

/* top bar: the card colour with the brand gradient as a hairline on top (logo on a light ground, Darstellungsformen;
   dark: the logo with light letters) */
.topbar { display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 64px; background: var(--card);
          border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--text); }
.brand img { height: 26px; width: auto; display: block; }
.brand .logo-dark, [data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.brand .product { font-weight: 600; font-size: 15px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--field-line); line-height: 22px; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: thin; }
.topbar nav a { color: var(--text); font-weight: 500; padding: 7px 12px; border-radius: var(--radius-s); white-space: nowrap; }
.topbar nav a:hover { background: var(--chip); text-decoration: none; }
.topbar nav a.active { background: var(--on); color: var(--on-text); font-weight: 600; }
.topbar nav a:focus-visible { outline-offset: -2px; }  /* the scrolling nav clips anything outside it */
.navcount { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
            min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--link);
            color: var(--btn-text); font-size: 10px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
            vertical-align: 1px; }
/* lf-3nk: a research of one's own finished and not yet looked at - turquoise and pulsing until Recherche is opened */
.navcount.done { background: var(--turquoise); color: var(--deepblue); animation: navpulse 1.8s ease-out infinite; }
@keyframes navpulse { 0% { box-shadow: 0 0 0 0 rgba(72, 255, 200, .9); } 70%, 100% { box-shadow: 0 0 0 7px rgba(72, 255, 200, 0); } }
@media (prefers-reduced-motion: reduce) { .navcount.done { animation: none; } }
.topsearch { margin-left: auto; position: relative; }
.topsearch .i { position: absolute; left: 10px; top: 50%; margin-top: -8px; color: var(--muted); pointer-events: none; }
.topsearch input { width: 230px; padding-left: 32px; background: var(--chip); border-color: transparent; }
.topsearch input:focus { background: var(--field); }
.topuser { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 13px; }
.topuser a, .topuser button:not(.iconbtn) { display: inline-flex; align-items: center; gap: 6px; color: var(--text); background: none;
                              border: 0; padding: 7px 10px; border-radius: var(--radius-s); cursor: pointer; font-weight: 500; }
.topuser a:hover, .topuser button:not(.iconbtn):hover { background: var(--chip); text-decoration: none; }
.topuser a.active { background: var(--chip); }
/* lf-05l the admins' name opens a menu: Mein Konto, Admin (a details element: works without JS) */
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px;
                    border-radius: var(--radius-s); font-weight: 500; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu summary.active, .usermenu[open] summary { background: var(--chip); }
.usermenu[open] summary .i:last-child { transform: rotate(180deg); }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%; z-index: 30; display: flex;
                  flex-direction: column; gap: 2px; padding: 6px; background: var(--card); border: 1px solid var(--line);
                  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(2, 34, 60, .18); }
.usermenu .menu a { padding: 8px 12px; }
.usermenu .menu a.active { font-weight: 600; }
/* light / dark (static/boot.js): the moon switches to dark, the sun back */
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
           border: 1px solid var(--field-line); border-radius: var(--radius-s); background: var(--card); color: var(--text);
           cursor: pointer; padding: 0; }
.iconbtn:hover { border-color: var(--text); }
.iconbtn .i { width: 18px; height: 18px; }
.iconbtn .to-light, [data-theme="dark"] .iconbtn .to-dark { display: none; }
[data-theme="dark"] .iconbtn .to-light { display: inline; }
.brand + .iconbtn { margin-left: auto; }  /* sign-in, first run: nothing else in the bar */
.topuser .iconbtn { margin-left: 4px; }

/* sign-in and first-run: brand panel in ONEdeepblue with the gradient signet and the claim, the form beside it */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 880px; margin: 48px auto;
        border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.auth-brand { background: var(--deepblue); color: var(--white); padding: 40px; display: flex; flex-direction: column;
              justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-brand img { width: 56px; height: 56px; }
.auth-brand .claim { width: fit-content; font-size: 38px; line-height: 1.12; font-weight: 500; margin: 0; letter-spacing: -.01em;
                     background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand .topline { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lightgrey); margin: 0; }
/* a "Plattform" character shape as contour line in the corner (Gestaltungselemente) */
.auth-brand::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 240px; height: 200px;
                     border: 1.5px solid rgba(171, 198, 215, .35); border-radius: var(--radius); transform: skewY(-30deg); }
.auth .authbox { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 40px; }
.authbox { max-width: 440px; margin: 40px auto; }
.narrow { max-width: 560px; }
.authbox .stack input { font-weight: 400; color: var(--text); }
.secret { font: 600 16px var(--mono); user-select: all; }

main { padding: 24px 24px 56px; max-width: 1680px; margin: 0 auto; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pagehead > div:last-child:not(:first-child) { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.headline { margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs { margin: 0 0 8px; font-size: 13px; }
.crumbs a { color: var(--muted); font-weight: 500; }
/* the pages of one top-bar item (Meine Teaser: macro teaser_tabs) or of the Admin area (admin_tabs) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.tabs a { color: var(--text); font-weight: 500; padding: 7px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; border-bottom-color: var(--field-line); }
.tabs a.active { border-bottom-color: var(--turquoise); font-weight: 600; }
.intro { margin-top: -6px; max-width: 900px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
        margin-bottom: 16px; box-shadow: var(--shadow); }
.card.empty { padding: 24px; }
/* flash text: a toast that fades out (the pointer on it holds it, a click closes it: app.js), seen also where the page
   kept its scroll position. Its own ground: the weak accent alone is see-through in dark */
.flash { background: linear-gradient(var(--accent-weak), var(--accent-weak)), var(--card); border-left: 4px solid var(--blue);
         color: var(--text); padding: 10px 14px;
         border-radius: var(--radius); position: fixed; right: 24px; bottom: 24px; z-index: 20;
         max-width: min(560px, calc(100vw - 48px)); box-shadow: 0 8px 32px rgba(2, 34, 60, .25);
         animation: fade 1s 8s forwards; cursor: pointer; }
.flash:hover { animation-play-state: paused; }
@keyframes fade { to { opacity: 0; visibility: hidden; } }
.alert { border: 1px solid; border-left-width: 4px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; color: var(--text); }
.alert.danger { background: var(--danger-weak); border-color: var(--danger-line); border-left-color: var(--red); }
.alert.warn { background: var(--warn-weak); border-color: var(--warn-line); border-left-color: var(--red); }
.alert.ok { background: var(--turq-weak); border-color: var(--turq-line); border-left-color: var(--turquoise); }
/* the duplicate check's window (macro dupe_dialog): open in the page without JS, modal with app.js */
.modal { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; border: 1px solid var(--line);
         border-radius: var(--radius); padding: 18px 20px; background: var(--card); color: var(--text);
         box-shadow: 0 8px 32px rgba(2, 34, 60, .25); }
.modal::backdrop { background: rgba(2, 34, 60, .45); }
.modal h2 { margin-top: 0; }
/* lf-lj8: the CV upload's dialog (teaser_profiles.html) is a card in the page without JS; a file dragged over a page
   with a droppable file input (app.js): the whole window takes it, as Bullhorn */
dialog[data-popup]:not(:modal) { position: static; width: auto; margin: 0 0 16px; }
.dropzone { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
            pointer-events: none; background: rgba(30, 141, 235, .18); border: 4px dashed var(--blue);
            color: var(--deepblue); font-size: 24px; font-weight: 600; }
.dropzone[hidden] { display: none; }
.warntext { color: var(--danger-text); font-size: 12px; margin: 2px 0; }
.warntext .i { width: 14px; height: 14px; }
.errtext { color: var(--danger-text); }

/* forms */
input, select, textarea, button { font: inherit; color: inherit; }
/* :where keeps these defaults weaker than any component rule (.topsearch input …) */
:where(input:not([type=checkbox], [type=radio], [type=range]), select, textarea) { border: 1px solid var(--field-line); border-radius: var(--radius-s);
  padding: 6px 10px; background: var(--field); color: var(--text); min-height: 36px; }
input[type=range] { accent-color: var(--blue); min-height: 32px; margin: 0; }  /* the Klarprofil's Umkreis */
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; vertical-align: -2px; }
:where(input:not([type=checkbox], [type=radio], [type=range]), select, textarea):focus { outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 141, 235, .25); }
input:is([type=checkbox], [type=radio]):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }  /* 7.3:1 on ONEgrey: the top search shows no other label */
textarea { width: 100%; resize: vertical; line-height: 1.45; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--btn);
       background: var(--btn); color: var(--btn-text); border-radius: var(--radius-s); padding: 6px 16px; min-height: 36px;
       cursor: pointer; white-space: nowrap; line-height: 20px; font-weight: 600; }
.btn:hover { text-decoration: none; background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:focus-visible, .chkbtn:focus-visible, .iconbtn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* the page's main action (Anmelden, Senden, Suche starten …): ONEturquoise like the brand's own app */
.btn.cta { background: var(--turquoise); border-color: var(--turquoise); color: var(--deepblue); }
.btn.cta:hover { background: #2FF5BB; border-color: #2FF5BB; }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--field-line); }
.btn.secondary:hover { border-color: var(--text); background: var(--card); }
.btn.small { padding: 2px 10px; min-height: 28px; font-size: 12px; gap: 4px; }
.btn.small .i { width: 14px; height: 14px; }
.btn.on { background: var(--on); border-color: var(--on); color: var(--on-text); }
.btn.on:hover { background: var(--on-hover); border-color: var(--on-hover); }
.btn.danger { background: var(--danger-text); border-color: var(--danger-text); color: var(--white); }
.btn.danger:hover { background: #8E3932; border-color: #8E3932; }
[data-theme="dark"] .btn.danger { color: var(--deepblue); }
[data-theme="dark"] .btn.danger:hover { background: #F5B5AE; border-color: #F5B5AE; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* key-figure tiles over Leads and Stellen (macro tiles): clickable filters; a long category list scrolls in its tile */
/* key figures (macro tiles): one slim strip - label and number side by side, the categories as chips in the
   last tile; a set tile is ONEturquoise like an active tab (brandbook), the number in Plex Mono */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tile { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px;
        background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        color: var(--text); }
a.tile:hover { text-decoration: none; border-color: var(--blue); }
.tile.on { background: var(--turq-weak); border-color: var(--turq-line); }
.tile .tl { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tile.on .tl { color: var(--text); }
.tile .tn { font: 600 20px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile.list { flex: 1 1 320px; }
.tile.list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tile.list a { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
               background: var(--chip); color: var(--text); font-weight: 500; font-size: 12px; line-height: 18px; }
.tile.list a:hover { background: var(--s-mid); text-decoration: none; }
.tile.list a.on { background: var(--turq-weak); box-shadow: inset 0 0 0 1px var(--turq-line); font-weight: 600; }
.tile.list b { font: 600 12px var(--mono); font-variant-numeric: tabular-nums; }

/* filter card (macro filter_form, Leads and Stellen alike): the main filters in a grid, the categories as chips, the
   rest under „Weitere Filter“, the count of set filters with „Filter zurücksetzen“ and „Filtern“ below; a set filter
   is framed in ONEblue. min(…, 100%): one column on a phone, nothing wider than the card. .filters alone: the small
   filter rows of Admin, Watchlist, To be Teased and Klarprofil */
.filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.filters.fcard { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; padding: 12px 16px; }
/* compact: lower fields, chips and buttons (32 px), small gaps - the card is a tool bar, not a form */
.fcard .f select, .fcard .f input:not([type=checkbox]) { min-height: 32px; padding-top: 4px; padding-bottom: 4px; }
.fcard .chks { min-height: 32px; }
.fcard .chk { padding: 3px 10px; }
.fcard .btn { min-height: 32px; padding: 3px 14px; }
/* rows that fill the card (no lone field on a row): each field grows from its basis; Stellen: the searches, Gebiet,
   Status, Kandidat on one row, Neu gefunden, Kategorie and the buttons on the next; a phone: one field per row */
.fgrid { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.fgrid > .f { flex: 1 1 min(170px, 100%); }
.fgrid > .f:has(input[name=stelle]) { flex: 2 1 min(230px, 100%); }
.fgrid > .f:has(input[name=since_date]) { flex: 1.4 1 min(250px, 100%); }
.fgrid > .f:has(input[name=cat]) { flex: 3 1 min(340px, 100%); }
.fgrid > .factions { flex: 0 0 auto; }
.fmore > .fgrid > .f { flex: 0 1 auto; }  /* chip groups at their own width, side by side */
.fmore > .fgrid > .f:has(select) { flex: 0 1 220px; }
.filters .f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted);
              border: 0; padding: 0; margin: 0; min-width: 0; max-width: 100%; }
.filters .fl, .filters legend { display: inline-flex; align-items: center; gap: 6px; }
.filters .fl .i, .filters legend .i { color: var(--text); width: 15px; height: 15px; }
.filters .f select, .filters .f input { font-weight: 400; color: var(--text); font-size: 13px; max-width: 100%; }
.fcard .f select, .fcard .f input:not([type=checkbox]) { width: 100%; min-width: 0; }
.filters .f.set > :is(select, input), .filters .f.set .pair > * { border-color: var(--blue); background: var(--accent-weak); }
.filters legend { padding: 0; margin-bottom: 4px; }
.filters .actions { flex-direction: row; gap: 6px; }
.filters .pair { display: flex; gap: 6px; }  /* Neu gefunden: the choice and the date side by side */
.filters .pair > select { flex: 1 1 90px; width: auto; }
.filters .pair > input { flex: 0 1 150px; min-width: 128px; width: auto; }
/* .fmore, not .more: that is the hint below the card (more_hits) */
.fcard .fmore { border-top: 1px solid var(--line); padding-top: 4px; }
.fmore > summary { font-weight: 600; color: var(--link); font-size: 12px; padding: 2px 0; }  /* a list item: keeps its ▸ */
.fmore > .fgrid { margin-top: 8px; align-items: start; }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.fcount { font-size: 12px; font-weight: 600; color: var(--text); background: var(--accent-weak); border-radius: 6px;
          padding: 0 8px; line-height: 24px; }
.chks { display: flex; flex-wrap: wrap; gap: 4px 12px; min-height: 36px; align-items: center; }
.chk { font-weight: 400; color: var(--text); font-size: 13px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filters .chks { gap: 6px; }
.filters .chk { position: relative; padding: 5px 12px; border-radius: var(--radius-s); background: var(--chip);
                border: 1px solid transparent; line-height: 18px; white-space: normal; }  /* a long chip wraps on a phone */
.filters .chk:hover { border-color: var(--field-line); }
.filters .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filters .chk:has(input:checked) { background: var(--accent-weak); border-color: var(--blue); font-weight: 600; }
.filters .chk:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.srcpick summary { font-weight: 500; color: var(--link); font-size: 13px; padding: 5px 4px; }
.srcpick[open] { flex-basis: 100%; }
.profile details { margin-top: 8px; }
.profile .chks { min-height: 0; margin: 4px 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.scope { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .stack legend { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stack legend { margin-bottom: 5px; }
.stack select, .stack textarea { font-weight: 400; color: var(--text); }
.stack .btn { align-self: flex-start; }
.stack label.chk { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--text); white-space: normal; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap.flat { border: 0; border-radius: 0; box-shadow: none; margin: 0 -4px; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; background: var(--head);
           border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; }
.grid th a.sort { color: var(--muted); }
.grid th a.sort.active { color: var(--text); }
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:last-child > td { border-bottom: 0; }
.grid tbody tr:hover > td { background: var(--hover); }
.grid a strong { color: var(--text); font-weight: 600; }
.grid a:hover strong { color: var(--link); }
.grid tr.closed > td { color: var(--muted); }
.grid tr.closed strong { font-weight: 500; }
.grid tr.done > td, .grid tr.done td > a, .grid tr.done a strong { color: var(--muted); }
.grid tr.done strong { font-weight: 500; }
.chkbtn { border: 0; background: none; line-height: 1; cursor: pointer; padding: 4px; color: var(--faint); border-radius: 6px;
          display: inline-flex; }
.chkbtn:hover { color: var(--text); background: var(--chip); }
.chkbtn .i { width: 20px; height: 20px; }
.chkbtn.on { color: var(--blue); }
.chkbtn.on .i.fill { fill: var(--blue); }  /* merken: a filled bookmark */
.chkbtn .i-on, .chkbtn.on .i-off { display: none; }
.chkbtn.on .i-on { display: inline; }
.grid td.note { min-width: 240px; }  /* Merkliste */
.rowacts { display: flex; flex-direction: column; align-items: center; gap: 4px; }  /* bearbeitet, alle N Orte */
.marks { display: flex; gap: 2px; }  /* bearbeitet and merken side by side (Stellen) */
/* Stellen fits without scrolling sideways: the company under the title, the sources under the date, shortened */
.grid.stellen td, .grid.stellen th { padding-left: 8px; padding-right: 8px; }  /* fits 1280 px wide screens */
.grid a.co { font-size: 13px; }
.grid td.srcs .badge.src { max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
/* a row's actions (macro row_actions): Teasen on top, Ignorieren and the red bin (Löschen…) below */
.acts { display: inline-flex; flex-direction: column; align-items: stretch; gap: 6px; }
.acts .btn-row { flex-wrap: nowrap; gap: 4px; justify-content: space-between; }
.bin { display: inline-flex; padding: 5px; border-radius: var(--radius-s); color: var(--red); }
.bin:hover { background: var(--danger-weak); color: var(--danger-text); }
.bin .i { width: 18px; height: 18px; }
.more { margin: -6px 0 16px; }
/* the long lists: the next rows load while scrolling (static/app.js); a list opened at a later page says where */
.pmore { padding: 18px 20px 40px; text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.fromrow { margin: 0 0 8px; }
.grid tr.blocked > td { background: var(--warn-weak); }
.grid tr.blocked strong { text-decoration: line-through; }
.grid tr.warnrow > td { background: var(--warn-weak); }
.grid.inner { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-s); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.grid.inner td, .grid.inner th { padding: 5px 10px; }
.grid.inner tfoot td { border-top: 2px solid var(--line); font-weight: 600; background: var(--head); }
.grid.inner tfoot td.sub { font-weight: 400; }
.grid td.title { min-width: 220px; }
.grid td.hints { min-width: 150px; }
.grid td.hints .badge { white-space: normal; }
.yes { color: var(--blue); display: inline-flex; }
.yes .i { width: 20px; height: 20px; }
/* candidate match score (macro fit): a meter 0..100 - 'passt gut' from 60 in the brand gradient, below grey */
.fit meter { -webkit-appearance: none; appearance: none; width: 56px; height: 8px; vertical-align: 1px;
             border: 0; border-radius: 4px; background: var(--chip); }
.fit meter::-webkit-meter-bar { background: var(--chip); border: 0; border-radius: 4px; height: 8px; }
.fit meter::-webkit-meter-optimum-value { background: var(--gradient); border-radius: 4px; }
.fit meter::-webkit-meter-suboptimum-value, .fit meter::-webkit-meter-even-less-good-value { background: var(--midgrey); border-radius: 4px; }
.fit meter::-moz-meter-bar { background: var(--midgrey); border-radius: 4px; }
.fit meter:-moz-meter-optimum::-moz-meter-bar { background: var(--gradient); }
.fit { font-family: var(--mono); font-size: .93em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cand-name { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }  /* long Kurznamen */
.tip { cursor: help; border-bottom: 1px dotted var(--muted); color: var(--muted); font-size: 12px; margin-left: 4px; }

/* badges and status */
.badge { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 21px; margin: 1px 4px 1px 0;
         white-space: nowrap; background: var(--chip); color: var(--muted); font-weight: 500; }
.badge.cat { background: var(--accent-weak); color: var(--text); }
.badge.info { background: var(--accent-weak); color: var(--text); }
.badge.ok { background: var(--turq-weak); color: var(--text); }
.badge.warn { background: var(--warn-weak); color: var(--danger-text); box-shadow: inset 0 0 0 1px var(--warn-line); }
.badge.danger { background: var(--danger-weak); color: var(--danger-text); font-weight: 600; }
.badge.src { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 11px; line-height: 19px; font-weight: 500; }
a.badge.src:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--link); text-decoration: none; }
a.badge.ok:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--turquoise); }
.status { display: inline-block; padding: 0 10px; border-radius: 6px; font-size: 12px; line-height: 22px; white-space: nowrap;
          background: var(--chip); color: var(--muted); font-weight: 600; }
.s-neu { background: var(--accent-weak); color: var(--text); }
.s-in_bearbeitung, .s-kontaktiert { background: var(--s-mid); color: var(--muted); }
.s-termin, .s-kunde { background: var(--turquoise); color: var(--deepblue); }
.s-werbesperre { background: var(--danger-weak); color: var(--danger-text); }
.s-kein_interesse, .s-ignoriert { background: var(--card); color: var(--muted); font-weight: 500;
                                 box-shadow: inset 0 0 0 1px var(--field-line); }

/* company page */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; }
.kv > span:nth-child(odd) { color: var(--muted); font-size: 13px; font-weight: 500; }
.links { list-style: none; padding: 0; margin: 0 0 8px; }
.links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.side-col select { max-width: 100%; }  /* an ad page's profile names */
.legal { background: var(--head); border-left: 4px solid var(--field-line); }
.legal ul { padding-left: 18px; margin: 0 0 8px; }
.legal li { margin-bottom: 6px; }
.timeline { list-style: none; padding: 0 0 0 6px; margin: 0; max-height: 420px; overflow-y: auto; }
.timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%;
                       box-sizing: border-box;
                       background: var(--card); border: 2px solid var(--lightgrey); }
.timeline li:first-child::before { border-color: var(--blue); }
.timeline li div { white-space: pre-line; overflow-wrap: anywhere; }

/* runs, research */
.running { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--accent-weak); border-top-color: var(--blue); border-radius: 50%;
           animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
/* lf-prg: the progress panel of a long KI request (app.js) */
.modal.progress { width: min(620px, calc(100vw - 32px)); }
.steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.steps li::before, .steps .spinner { flex: none; width: 16px; margin-top: 2px; }
.steps li.done::before { content: "✓"; color: var(--accent); font-weight: 700; text-align: center; }
.steps li.now { font-weight: 600; }
.steps li.now::before { content: none; }
.steps li.next { color: var(--muted); }
.steps li.next::before { content: "○"; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
details summary { cursor: pointer; }
.addsite form { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
pre.summary { margin: 8px 0 0; font-family: inherit; font-size: 12px; white-space: pre-wrap; color: var(--muted); }
pre.log { max-height: 460px; overflow: auto; background: var(--log-bg); color: #DCE7EF; padding: 14px; border-radius: var(--radius);
          font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
pre.result { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
/* research: the tool's grade with „Warum diese Person“ (research.grade) - a check for what holds, ONEred for gaps */
.why { list-style: none; margin: 0; padding: 0; }
.why li { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; }
.why li .i { width: 16px; height: 16px; margin-top: 2px; }  /* one size for both (.yes .i is 20px), on the 1st line */
.why li.yes .i { color: var(--blue); }
.why li.no .i { color: var(--danger); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; color: var(--muted); }
.pager[hidden] { display: none; }

/* logo, search and user on top, the tabs in a row of their own once they no longer fit beside them */
@media (max-width: 1700px) {
  .topbar { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 6px; }
  .topbar nav { order: 3; flex-basis: 100%; margin: 0 -12px; padding: 0 0 8px; }
  .topbar:not(:has(nav)) { padding-bottom: 12px; }  /* sign-in, first run: no tab row below the logo */
}
@media (max-width: 1000px) { html { scroll-padding-top: 150px; } }  /* the user block takes a row of its own */
@media (max-width: 1150px) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brand .product { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); margin: 16px auto; }
  .auth-brand { padding: 28px; }
  .auth-brand .claim { font-size: 28px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 170px; }
  main { padding: 16px; }
  .topsearch input { width: 140px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv > span:nth-child(odd) { margin-top: 6px; }
  .auth .authbox { padding: 24px; }
}
/* ad page, card „Passung“ (lf-6x0): the ad's requirements by weight, each profile's checklist against them */
.reqs, .cov { list-style: none; padding: 0; margin: 4px 0 6px; }
.reqs li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.reqs li:last-child { border-bottom: 0; }
.reqs .lab { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reqs .sub { white-space: nowrap; }
.reqs .tier { flex: none; width: 84px; font-size: 11px; font-weight: 600; color: var(--muted); }
.reqs .t-schwerpunkt { color: var(--text); }
.reqs li.minor, .cov li.minor { opacity: .62; }
.cand-head { margin-bottom: 2px; }
.cov-sum { font-size: 13px; margin: 2px 0; }
.cov li { display: flex; gap: 6px; align-items: baseline; padding: 1px 0; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.cov .mark { flex: none; width: 18px; height: 18px; border-radius: 50%; text-align: center; font-size: 11px; line-height: 18px; font-weight: 700; }
.cov-ja .mark { background: var(--turq-weak); box-shadow: inset 0 0 0 1px var(--turq-line); color: var(--text); }
.cov-teilweise .mark { background: var(--accent-weak); color: var(--text); }
.cov-nein .mark { background: var(--danger-weak); color: var(--danger-text); }
.cov-nein { color: var(--muted); }
.cov-box > summary { cursor: pointer; }
.cov-box > summary::marker { color: var(--faint); }
/* lf-epv: teaser and Klar profile forms - sections (macro section), cards of chips (macro matching_fieldsets). Chips
   are labels around real inputs: toggles a checkbox, Level a radio of .seg, a Schwerpunkt (.tri) its select –/Kern/auch
   (shown without JS; html.js: hidden, a click cycles it - app.js). Kern / a chosen toggle ONEturquoise, auch light blue */
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec ~ .sec { border-top: 1px solid var(--line); padding-top: 18px; }
/* a floated legend is no longer drawn into the border: a flex item like the rest, below the section's line */
.stack .sec > legend { float: left; display: block; font-size: 16px; font-weight: 600; color: var(--text); margin: 0; }
.sec > .sub { margin: -8px 0 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 16px; align-items: end; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; align-items: start; }
.chipcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: var(--card); }
.chipcard > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); padding: 2px 0; }
.chipcard[open] { grid-column: 1 / -1; }  /* an open card takes the row: its chips flow wide */
.chipcard[open] > summary { margin-bottom: 8px; }
.chipcard .count { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 4px; border-radius: 6px; padding: 0 6px; }
.chipcard:has(input:checked, option:checked:not([value=""])) .count { background: var(--turq-weak); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sec .chip { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 4px 10px;
             border: 1px solid var(--field-line); border-radius: var(--radius-s); background: var(--card); color: var(--text);
             font-size: 13px; font-weight: 400; line-height: 18px; cursor: pointer; }
.sec .chip:hover { border-color: var(--blue); }
.chip > input, .seg input, .js .tri select { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0;
                                            pointer-events: none; }
.chip:has(:focus-visible), .seg label:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.sec .chip:has(input:checked), .sec .tri:has(option[value$=":1"]:checked) { background: var(--on); border-color: var(--on);
                                                                          color: var(--on-text); font-weight: 600; }
.sec .tri:has(option[value$=":0.5"]:checked) { background: var(--accent-weak); border-color: var(--blue); }
.js .tri:has(option[value$=":1"]:checked)::after { content: "Kern"; font-size: 11px; font-weight: 500; }
.js .tri:has(option[value$=":0.5"]:checked)::after { content: "auch"; font-size: 11px; color: var(--muted); }
.tri select { min-height: 0; padding: 0 4px; font-size: 12px; }
.chip:has(:disabled) { cursor: default; }
.seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; border: 1px solid var(--field-line);
       border-radius: var(--radius-s); background: var(--field); overflow: hidden; }
.sec .seg label { position: relative; display: block; padding: 6px 14px; font-size: 13px; font-weight: 400; color: var(--text);
                  cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line); }
.seg label[hidden] { display: none; }
.seg label:hover { background: var(--hover); }
.sec .seg label:has(input:checked) { background: var(--on); color: var(--on-text); font-weight: 600; }
