/* ==========================================================================
   /plattform/ai-mitarbeiter-einsetzen: „KI-Mitarbeiter einsetzen" ("ke-")
   --------------------------------------------------------------------------
   Eigene Datei, wie alle Seiten-Styles: in der Route NACH den globalen
   Stylesheets geladen. Sektionsköpfe (.det-sec-head), Hero-Pills und die
   Problem-Liste kommen aus loesungen-detail.css, die dunkle Sektion
   (.hn-ink) aus home-neu.css. Hier steht nur, was diese Seite eigenes hat.
   Responsive-Overrides: assets/responsive.css.
   ========================================================================== */

/* ---------- Vier Einsatzwege ---------- */

.ke-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ke-way { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px;
  border-radius: 16px; border: 1px solid var(--border-1); background: var(--paper);
  min-width: 0; }
.ke-way-top { display: flex; align-items: center; justify-content: space-between; }
.ke-way-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--accent); color: var(--primary); }
.ke-way-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: var(--fg-3); }
.ke-way-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--fg-1); margin: 4px 0 0; }
.ke-way-body { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.ke-way-tag { margin-top: auto; padding-top: 12px; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--fg-3); }

/* Eine Abteilung, eine Farbe (Tokens aus dept-tones.css). */
.ke-way.tone-collab .ke-way-ic { background: var(--dept-collab-tile); color: var(--dept-collab-ink); }
.ke-way.tone-collab .ke-way-tag { color: var(--dept-collab-ink); }
.ke-way.tone-intel .ke-way-ic { background: var(--dept-intel-tile); color: var(--dept-intel-ink); }
.ke-way.tone-intel .ke-way-tag { color: var(--dept-intel-ink); }
.ke-way.tone-automate .ke-way-ic { background: var(--dept-automate-tile); color: var(--dept-automate-ink); }
.ke-way.tone-automate .ke-way-tag { color: var(--dept-automate-ink); }
.ke-way.tone-people .ke-way-ic { background: var(--dept-people-tile); color: var(--dept-people-ink); }
.ke-way.tone-people .ke-way-tag { color: var(--dept-people-ink); }

/* ---------- Arbeitsschleife: Schritte + Werkzeug-Panel ---------- */

.ke-loop { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px; align-items: start; }

.ke-loop-steps { display: flex; flex-direction: column; gap: 0; }
.ke-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px; padding: 0 0 22px; }
/* Rückgrat: läuft durch die Nummernspalte und verbindet die Schritte. */
.ke-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px;
  bottom: 0; width: 2px; background: var(--border-1); }
.ke-step-num { width: 40px; height: 40px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--accent);
  color: var(--primary); font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  position: relative; z-index: 1; }
.ke-step.is-back .ke-step-num { background: var(--dept-automate-tile); color: var(--dept-automate-ink); }
.ke-step-body { padding-top: 5px; min-width: 0; }
.ke-step-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--fg-1); margin: 0 0 6px; }
.ke-step-text { font-size: 15px; line-height: 1.62; color: var(--fg-2); margin: 0; max-width: 62ch; }

.ke-tools { padding: 24px 24px 20px; border-radius: 18px;
  border: 1px solid var(--dept-intel-tile);
  background: linear-gradient(180deg, var(--violet-50) 0%, var(--paper) 55%);
  position: sticky; top: 96px; }
.ke-tools-h { display: flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--dept-intel-ink); }
.ke-tools-list { display: flex; flex-direction: column; gap: 14px; }
.ke-tool { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.ke-tool-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--paper);
  border: 1px solid var(--border-1); color: var(--dept-intel-ink); }
.ke-tool-name { font-size: 14.5px; font-weight: 700; color: var(--fg-1); margin: 0 0 2px; }
.ke-tool-body { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); margin: 0; }
.ke-tools-note { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px;
  align-items: start; margin: 20px 0 0; padding-top: 16px;
  border-top: 1px solid var(--border-1); font-size: 13.5px; line-height: 1.5;
  color: var(--fg-1); font-weight: 600; }
.ke-tools-note svg { margin-top: 2px; color: var(--dept-collab-ink); }

/* ---------- Grenzen: zwei Spalten ---------- */

.ke-lim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ke-lim-col { padding: 24px 26px 22px; border-radius: 18px; border: 1px solid var(--border-1);
  background: var(--paper); min-width: 0; }
.ke-lim-col.is-yes { border-color: var(--dept-collab-tile); }
.ke-lim-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--fg-1); }
.ke-lim-col.is-yes .ke-lim-head svg { color: var(--dept-collab-ink); }
.ke-lim-col.is-no .ke-lim-head svg { color: var(--dept-care-ink); }
.ke-lim-col ul { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 11px; }
.ke-lim-col li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px;
  align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.ke-lim-col li svg { margin-top: 2px; }
.ke-lim-col.is-yes li svg { color: var(--dept-collab-ink); }
.ke-lim-col.is-no li svg { color: var(--dept-care-ink); }

.ke-lim-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 20px;
  padding: 22px 26px; border-radius: 18px; border: 1px solid var(--border-1);
  background: var(--page-bg-surface); }
.ke-lim-note-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--border-1); color: var(--primary); }
.ke-lim-note-h { font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--fg-1); margin: 2px 0 6px; }
.ke-lim-note-p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 82ch; }

/* ---------- Weg zur ersten Stelle ---------- */

.ke-weg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ke-weg-step { position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 22px 18px 18px; border-radius: 14px; border: 1px solid var(--border-1);
  background: var(--paper); min-width: 0; }
.ke-weg-step + .ke-weg-step::before { content: ""; position: absolute; left: -15px;
  top: 40px; width: 15px; height: 1px; background: var(--border-1); }
.ke-weg-num { display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  color: var(--primary); font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }
.ke-weg-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--fg-1); margin: 4px 0 0; }
.ke-weg-body { font-size: 13.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }

/* ---------- Verfügbare Stellen: Abteilungen mit Rollen-Chips ---------- */

.ke-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.ke-roles-group { padding: 18px 20px 16px; border-radius: 14px;
  border: 1px solid var(--border-1); background: var(--paper); min-width: 0; }
.ke-roles-dept { display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-2); }
.ke-roles-group.tone-collab .ke-roles-dept { color: var(--dept-collab-ink); }
.ke-roles-group.tone-intel .ke-roles-dept { color: var(--dept-intel-ink); }
.ke-roles-group.tone-automate .ke-roles-dept { color: var(--dept-automate-ink); }
.ke-roles-group.tone-flow .ke-roles-dept { color: var(--dept-flow-ink); }
.ke-roles-group.tone-people .ke-roles-dept { color: var(--dept-people-ink); }
.ke-roles-group.tone-care .ke-roles-dept { color: var(--dept-care-ink); }
.ke-roles-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ke-role-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border-radius: 100px; border: 1px solid var(--border-1); background: var(--page-bg-surface);
  font-size: 13px; font-weight: 600; color: var(--fg-1); text-decoration: none;
  transition: border-color .15s, background .15s; }
.ke-role-chip:hover { background: var(--paper); }
.ke-roles-group.tone-collab .ke-role-chip svg { color: var(--dept-collab-ink); }
.ke-roles-group.tone-collab .ke-role-chip:hover { border-color: var(--dept-collab-ink); }
.ke-roles-group.tone-intel .ke-role-chip svg { color: var(--dept-intel-ink); }
.ke-roles-group.tone-intel .ke-role-chip:hover { border-color: var(--dept-intel-ink); }
.ke-roles-group.tone-automate .ke-role-chip svg { color: var(--dept-automate-ink); }
.ke-roles-group.tone-automate .ke-role-chip:hover { border-color: var(--dept-automate-ink); }
.ke-roles-group.tone-flow .ke-role-chip svg { color: var(--dept-flow-ink); }
.ke-roles-group.tone-flow .ke-role-chip:hover { border-color: var(--dept-flow-ink); }
.ke-roles-group.tone-people .ke-role-chip svg { color: var(--dept-people-ink); }
.ke-roles-group.tone-people .ke-role-chip:hover { border-color: var(--dept-people-ink); }
.ke-roles-group.tone-care .ke-role-chip svg { color: var(--dept-care-ink); }
.ke-roles-group.tone-care .ke-role-chip:hover { border-color: var(--dept-care-ink); }
