/* allectio Recruiter-Portal – Farben und Schrift nach allectio-consulting.com
   Schwarz, Grün #77bc1f (hell #93c94c), Grau #71717a, Schrift Roboto – kein Blau */
:root {
  --black: #000000;
  --black-soft: #191f23;
  /* Kein Blau in der Oberfläche: Überschriften, Links und Felder in Schwarz, Akzente in Grün */
  --blue: #000000;
  --blue-dark: #000000;
  --blue-soft: #eceff3;
  --green: #77bc1f;
  --green-dark: #62ba1f;
  --green-soft: #eef7e2;
  --grey: #71717a;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #191f23;
  --muted: var(--grey);
  --line: #e4e8ee;
  --danger: #c0392b;
  --danger-soft: #fbeceb;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Roboto wie auf der Website; wird nicht von Google geladen (DSGVO), sondern nur genutzt, wenn lokal vorhanden */
  font: 15px/1.5 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--black); text-decoration-color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1 { font-size: 1.7rem; font-weight: 600; margin: 0 0 .2rem; color: var(--blue-dark); }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .8rem; }
h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; width: 100%; }
main.wrap { padding-top: 28px; padding-bottom: 60px; flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.prewrap { white-space: pre-wrap; margin: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

/* Kopfzeile */
/* Schwarzer Header wie auf der Website, grüne Akzentlinie */
.topbar { background: var(--black); color: #fff; border-bottom: 4px solid var(--green); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 12px; color: #fff; text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; align-self: center; }
.brand-sub { font-size: .95rem; opacity: .85; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav > a { color: #fff; text-decoration: none; opacity: .85; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav > a:hover, .nav > a.active { opacity: 1; border-bottom-color: var(--green); }
.nav > a.btn { opacity: 1; border-bottom: 0; }
.logout { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.3); }
.who { display: flex; flex-direction: column; line-height: 1.2; font-size: .9rem; }
.who small { opacity: .7; }
button.link { background: none; border: 0; color: #fff; opacity: .85; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

.footer { background: var(--black); color: rgba(255,255,255,.7); font-size: .85rem; padding: 16px 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--green); }

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head p { margin: 0; }
.more { text-decoration: none; font-weight: 500; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 .card { margin-bottom: 0; }

.btn {
  display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--black); border: 1px solid #b9c0c9; }
.btn-ghost:hover { border-color: var(--black); background: #f3f5f7; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #e9ecf0; color: var(--black); white-space: nowrap; }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }
.badge-placed, .badge-match { background: var(--green-soft); color: #4d8a0a; }
.badge-warn { background: var(--warn-soft); color: var(--warn); margin-left: 6px; }

.tags { display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; background: #eef1f5; color: #3b4452; }
.tag-hit { background: var(--green-soft); color: #3f7a05; font-weight: 600; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-success { background: var(--green-soft); color: #3f7a05; }
.notice { padding: 10px 14px; border-radius: 8px; background: #eceff3; color: var(--black-soft); margin: 0 0 18px; }
.notice-rejected { background: var(--danger-soft); color: var(--danger); margin: 18px 0 0; }
.notice-placed { background: var(--green-soft); color: #3f7a05; margin: 18px 0 0; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 5px solid var(--green); }
.callout h2 { margin-bottom: .3rem; }
.callout p { margin: 0; color: var(--muted); }
.hint { margin: -4px 0 0; color: var(--muted); font-size: .85rem; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-top: 3px solid var(--black); }
.stat-accent { border-top-color: var(--green); }
.stat b { display: block; font-size: 1.8rem; line-height: 1.1; color: var(--blue-dark); }
.stat-accent b { color: #4d8a0a; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Passende Positionen */
.match-list { display: flex; flex-direction: column; }
.match { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.match:first-child { border-top: 0; }

/* Tabelle */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfc; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; }
.row-muted td { opacity: .7; }

/* Pipeline */
.pipeline { display: flex; list-style: none; margin: 0; padding: 0; }
.pipeline li { flex: 1; position: relative; text-align: center; font-size: .82rem; color: var(--muted); }
.pipeline li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.pipeline li:first-child::before { display: none; }
.pipeline .dot { position: relative; z-index: 1; display: block; width: 20px; height: 20px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.pipeline li.done .dot { background: var(--black); border-color: var(--black); }
.pipeline li.done::before, .pipeline li.current::before, .pipeline li.rejected::before { background: var(--black); }
.pipeline li.current .dot { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.pipeline li.current { color: var(--text); font-weight: 600; }
.pipeline li.rejected .dot { background: var(--danger); border-color: var(--danger); }
.pipeline li.rejected { color: var(--danger); font-weight: 600; }
.pipeline li.placed .dot { background: var(--green); border-color: var(--green); }
.pipeline li.placed::before { background: var(--green); }
.pipeline .lbl { display: block; padding: 0 2px; }
.pipeline.compact { min-width: 160px; }
.pipeline.compact li::before { top: 4px; height: 2px; }
.pipeline.compact .dot { width: 10px; height: 10px; border-width: 2px; margin-bottom: 0; }

/* Details */
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; margin: 0; align-content: start; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--black); }
.timeline li.rej::before { background: var(--danger); }
.timeline li span { color: var(--muted); }

/* Positionen */
.job-list .job { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.job-match { border-left: 5px solid var(--green); }
.job h2 { margin: 0 0 .2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job p { margin: 0; }
.job p.small { margin-top: 6px; }

/* Formulare */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
input, select, textarea {
  font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid #cfd6e0; border-radius: 6px; background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form legend { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; padding: 0; color: var(--blue-dark); }
.form .full { grid-column: 1 / -1; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; accent-color: var(--green); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.login-card { max-width: 420px; margin: 40px auto; border-top: 4px solid var(--green); }
.login-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
form.inline { margin: 0; }
.filter select, form.inline select { width: auto; }
.status-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 22px !important; }
.empty { text-align: center; padding: 40px; }

@media (max-width: 760px) {
  .grid-2, .form fieldset { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .pipeline .lbl { font-size: .68rem; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 8px; }
  .logout { border-left: 0; padding-left: 0; }
  .job-list .job, .match, .callout { flex-direction: column; align-items: flex-start; }
  .brand-sub { display: none; }
}

/* Admin: Zuweisungen, Benutzer, Neu-Hinweis */
.pill { display: inline-block; background: var(--green); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.badge-new { background: var(--green); color: #fff; margin-left: 6px; }
.align-start { align-items: start; }
.stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; align-items: flex-start; }
.check-row:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.check-row input { margin-top: 4px; }
.onetime { border: 2px solid var(--green); background: var(--green-soft); }
.onetime .pw { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; background: #fff; padding: 4px 10px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.nowrap form { display: inline-block; margin-right: 6px; }

.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 0 0 0 6px; }

/* Ansichtswechsel für Admins */
.viewbar { background: #e9ecf0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.viewbar-training { background: var(--warn-soft); color: var(--warn); }
.viewbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.viewswitch label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: .85rem; }
.viewswitch select { width: auto; padding: 5px 10px; font-size: .85rem; }
