/* ============================================================
   Anthrovita TalentOS – Styles
   Design-System übernommen aus „Zielkompass" (Zielmanagement-App)
   ============================================================ */
:root {
  /* Brand */
  --orange: #ed751c;
  --orange-dark: #c85f12;
  --orange-light: #fdf0e5;
  --blau: #2E73B5;
  --gruen-brand: #6f9a10;
  /* Status */
  --green: #5f8a0e;
  --green-light: #eef4da;
  --red: #c0491d;
  --red-light: #f7ddd2;
  --yellow: #ed751c;
  --yellow-light: #fdeadd;
  --blue: #2E73B5;
  --blue-light: #e4eef8;
  /* Neutral */
  --bg: #f6f5f0;
  --card: #ffffff;
  --text: #1b1d1a;
  --text-soft: #6b6f68;
  --muted: #8c9086;
  --faint: #b3b6ac;
  --border: #e7e5dd;
  --divider: #f0eee7;
  --track: #eeece4;
  --input-bg: #faf9f5;
  --pill-bg: #f1efe8;
  --radius: 18px;
  --radius-klein: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3, .kpi-value, .kennzahl .wert, .zahl { font-family: 'Archivo', 'Segoe UI', sans-serif; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8d5cc; border-radius: 8px; border: 3px solid var(--bg); }

@keyframes riseIn { from { transform: translateY(12px); } to { transform: none; } }

/* ---------- App-Shell ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 68px; background: #ffffff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-logo { height: 34px; width: auto; display: block; }
.topbar-trenner { width: 1px; height: 30px; background: var(--border); }
.topbar-produkt { display: flex; flex-direction: column; line-height: 1.1; }
.topbar-produkt .produktname { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -0.2px; }
.topbar-produkt .tagline { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; }
.topbar-rechts { display: flex; align-items: center; gap: 10px; }
.topbar-user { text-align: right; line-height: 1.15; }
.topbar-user .uname { font-size: 13px; font-weight: 700; }
.topbar-user .urolle { font-size: 11px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px;
}

.app { display: flex; flex: 1; align-items: stretch; }

.sidebar {
  width: 232px; flex-shrink: 0; background: #ffffff; border-right: 1px solid var(--border);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
}
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--faint); padding: 6px 14px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 11px; border-radius: 10px; border: none; background: none;
  color: var(--text-soft); font-weight: 600; font-size: 13.5px; font-family: inherit;
  cursor: pointer; text-align: left; width: 100%;
}
.nav-item .nav-bar { width: 3px; align-self: stretch; border-radius: 4px; background: transparent; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--orange-light); color: var(--orange-dark); font-weight: 700; }
.nav-item.active .nav-bar { background: var(--orange); }

.sidebar-fuss { margin-top: auto; padding: 16px 14px 6px; }
.jahres-karte {
  border-radius: var(--radius-klein); padding: 16px;
  background: linear-gradient(135deg, #6f9a10, #2E73B5); color: #fff;
}
.jahres-karte .jk-label { font-size: 11px; font-weight: 600; opacity: 0.85; letter-spacing: 0.3px; }
.jahres-karte .jk-jahr { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; margin-top: 2px; }
.jahres-karte .jk-sub { font-size: 11.5px; opacity: 0.9; margin-top: 4px; line-height: 1.4; }

.main { flex: 1; min-width: 0; padding: 30px 40px 56px; max-width: 1440px; animation: riseIn 0.45s ease; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.6px; color: var(--orange); text-transform: uppercase; }
.page-title { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 30px; margin: 4px 0 0; letter-spacing: -0.4px; }
.page-sub { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; max-width: 680px; }

/* ---------- Cards & Grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.2px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.kpi .kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.kpi .kpi-value { font-size: 28px; font-weight: 800; margin-top: 4px; }
.kpi .kpi-value.warn { color: var(--red); }
.kpi .kpi-value.accent { color: var(--orange); }

.stufen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stufen-zelle { text-align: center; padding: 14px 8px; background: var(--input-bg); border: 1px solid var(--divider); border-radius: var(--radius-klein); }
.stufen-zelle .zahl { font-size: 24px; font-weight: 800; color: var(--orange); }
.stufen-zelle .label { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff; border: none;
  padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--orange-dark); }
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn.secondary:hover { background: var(--orange-light); border-color: var(--orange); color: var(--orange-dark); }
.btn.small { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid var(--border); }
.btn.danger:hover { background: var(--red-light); border-color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 11px 10px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover { background: var(--input-bg); }

/* ---------- Badges/Tags ---------- */
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag.gruen { background: var(--green-light); color: var(--green); }
.tag.rot { background: var(--red-light); color: var(--red); }
.tag.gelb { background: var(--yellow-light); color: var(--yellow); }
.tag.grau { background: var(--pill-bg); color: var(--muted); }
.tag.blau { background: var(--blue-light); color: var(--blue); }
.tag.orange { background: var(--orange-light); color: var(--orange-dark); }

.score-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px;
  padding: 2px 9px; border-radius: 9px; font-weight: 800; font-size: 13.5px;
  font-family: 'Archivo', sans-serif; background: var(--orange-light); color: var(--orange-dark);
}
.score-pill.leer { background: var(--pill-bg); color: var(--muted); font-weight: 600; }

/* ---------- Pipeline / Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(205px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; padding-bottom: 8px; }
.kanban-spalte { background: var(--pill-bg); border-radius: var(--radius-klein); padding: 10px; min-height: 300px; }
.kanban-spalte.dragover { outline: 2px dashed var(--orange); outline-offset: -2px; background: var(--orange-light); }
.kanban-titel { font-size: 11.5px; font-weight: 700; color: var(--text-soft); padding: 4px 6px 10px; display: flex; justify-content: space-between; letter-spacing: 0.2px; }
.kanban-titel .anzahl { background: #fff; border-radius: 999px; padding: 0 9px; font-weight: 700; }
.bewerber-karte {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; cursor: grab;
}
.bewerber-karte:hover { border-color: var(--orange); }
.bewerber-karte:active { cursor: grabbing; }
.bewerber-karte .name { font-weight: 700; font-size: 13px; }
.bewerber-karte .stelle { font-size: 11.5px; color: var(--text-soft); margin: 2px 0 8px; }
.karte-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-progress { height: 6px; background: var(--track); border-radius: 4px; margin-top: 9px; overflow: hidden; }
.mini-progress > div { height: 100%; background: linear-gradient(90deg, var(--orange), #f6ae74); border-radius: 4px; transition: width 0.9s var(--ease); }
.mini-progress-label { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Stellen-Karten ---------- */
.stelle-karte { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; }
.stelle-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.stelle-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--orange); text-transform: uppercase; }
.stelle-titel { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.2px; margin-top: 2px; }
.stelle-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-soft); }
.stelle-meta strong { color: var(--text); font-weight: 700; }
.stelle-trenner { border: none; border-top: 1px solid var(--divider); margin: 16px 0 14px; }
.schaltung-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.schaltung-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--input-bg);
  border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 600;
}
.schaltung-chip .kanal { font-weight: 700; }
.schaltung-chip .zeitraum { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.schaltung-punkt { width: 8px; height: 8px; border-radius: 50%; }
.schaltung-punkt.aktiv { background: var(--green); }
.schaltung-punkt.abgelaufen { background: var(--faint); }
.schaltung-punkt.geplant { background: var(--blau); }
.stelle-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.abschnitt-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Bewerber-Detail ---------- */
.detail-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.detail-kopf .name { font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.detail-kopf .meta { color: var(--text-soft); font-size: 13px; margin-top: 2px; }
.kopf-kennzahlen { display: flex; gap: 24px; flex-wrap: wrap; }
.kennzahl { text-align: center; }
.kennzahl .wert { font-size: 22px; font-weight: 800; }
.kennzahl .label { font-size: 11px; color: var(--muted); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } .kanban { grid-template-columns: repeat(6, 220px); } }

.stammdaten dt { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin-top: 12px; }
.stammdaten dd { font-size: 13.5px; }

/* Stufenverlauf */
.verlauf { list-style: none; }
.verlauf li { display: flex; gap: 10px; position: relative; padding-bottom: 16px; }
.verlauf li:last-child { padding-bottom: 0; }
.verlauf .punkt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); background: #fff; margin-top: 3px; flex-shrink: 0; z-index: 1; }
.verlauf li::before { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--divider); }
.verlauf li:last-child::before { display: none; }
.verlauf .punkt.erledigt { background: var(--green); border-color: var(--green); }
.verlauf .punkt.aktuell { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-light); }
.verlauf .stufe-name { font-size: 13px; font-weight: 600; }
.verlauf .stufe-name.aktuell { font-weight: 700; color: var(--orange-dark); }
.verlauf .stufe-datum { font-size: 11.5px; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tab { padding: 9px 16px; font-weight: 700; font-size: 13.5px; color: var(--text-soft); cursor: pointer; border: none; background: none; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.tab .tab-badge { background: var(--orange); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 7px; margin-left: 5px; vertical-align: 1px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--text-soft); cursor: pointer; font-family: inherit; }
.pill:hover { border-color: var(--orange); color: var(--orange-dark); }
.pill.active { background: var(--orange-light); border-color: var(--orange); color: var(--orange-dark); }
.pill .hint { font-weight: 400; }

/* Scorecards */
.scorecard-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.kategorie-block { margin-top: 14px; }
.kategorie-titel { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; padding: 7px 12px; background: var(--input-bg); border: 1px solid var(--divider); border-radius: 10px; }
.kriterium-zeile { display: grid; grid-template-columns: 220px 60px 1fr; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--divider); align-items: baseline; }
.kriterium-zeile:last-child { border-bottom: none; }
.kriterium-zeile .kname { font-weight: 600; font-size: 13px; }
.kriterium-zeile .beleg { color: var(--text-soft); font-size: 12.5px; font-style: italic; }
.kriterium-zeile.hervorgehoben { background: var(--orange-light); border-radius: 10px; }
.ko-badge { font-size: 10px; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 5px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.wert-chip { display: inline-block; width: 27px; text-align: center; border-radius: 8px; font-weight: 800; font-size: 12.5px; padding: 2px 0; font-family: 'Archivo', sans-serif; }
.wert-1 { background: var(--red-light); color: var(--red); }
.wert-2 { background: var(--yellow-light); color: var(--yellow); }
.wert-3 { background: var(--green-light); color: var(--green); }
.wert-4 { background: var(--green); color: #fff; }

.daumen { font-size: 16px; }

/* ---------- Module: Leitfaden & Aufgaben ---------- */
.akkordeon { border: 1px solid var(--border); border-radius: var(--radius-klein); margin-bottom: 10px; overflow: hidden; background: #fff; }
.akkordeon summary { padding: 12px 16px; font-weight: 700; cursor: pointer; background: var(--input-bg); font-size: 13.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary::after { content: '▸'; color: var(--muted); transition: transform .15s; }
.akkordeon[open] summary::after { transform: rotate(90deg); }
.frage-block { padding: 13px 16px; border-top: 1px solid var(--divider); }
.frage-block.abgehakt { background: #fbfaf6; }
.frage-oben { display: flex; gap: 10px; align-items: flex-start; }
.frage-oben input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--orange); flex-shrink: 0; }
.frage-text { font-weight: 600; font-size: 13.5px; }
.frage-text.abgehakt { color: var(--muted); text-decoration: line-through; }
.frage-kriterium { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.frage-kriterium a { color: var(--orange-dark); text-decoration: none; font-weight: 700; cursor: pointer; }
.frage-kriterium a:hover { text-decoration: underline; }
.frage-hinweis { font-size: 12px; color: var(--orange-dark); background: var(--yellow-light); border-radius: 8px; padding: 5px 10px; margin-top: 7px; display: inline-block; }
.frage-notiz { width: 100%; margin-top: 8px; }

/* Checkliste */
.check-item { display: grid; grid-template-columns: auto 1fr 160px 140px; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--divider); }
.check-item:last-child { border-bottom: none; }
.check-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--orange); }
.check-item .ctext { font-size: 13px; }
.check-item .ctext.done { color: var(--muted); text-decoration: line-through; }
.check-item input[type=text], .check-item input[type=date] { width: 100%; }
@media (max-width: 900px) { .check-item { grid-template-columns: auto 1fr; } .check-item input[type=text], .check-item input[type=date] { grid-column: 2; } }

.progress-bar { height: 8px; background: var(--track); border-radius: 5px; overflow: hidden; flex: 1; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--orange), #f6ae74); border-radius: 5px; transition: width 0.9s var(--ease); box-shadow: 0 0 8px rgba(237,117,28,.38); }
.progress-zeile { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress-text { font-size: 12.5px; font-weight: 700; color: var(--text-soft); white-space: nowrap; }

/* Arbeitsproben */
.aufgabe-karte { border: 1px solid var(--border); border-radius: var(--radius-klein); padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.aufgabe-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.aufgabe-titel { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; }
.aufgabe-meta { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.aufgabe-abschnitt { margin-top: 10px; font-size: 13px; }
.aufgabe-abschnitt .label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; text-transform: uppercase; }
.intern-box { background: var(--input-bg); border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; padding: 9px 13px; font-size: 12.5px; color: var(--text-soft); margin-top: 8px; }

/* Team-Kennenlernen */
.ampel-optionen { display: flex; gap: 10px; flex-wrap: wrap; }
.ampel-option { flex: 1; min-width: 150px; border: 2px solid var(--border); border-radius: var(--radius-klein); padding: 11px; text-align: center; cursor: pointer; font-weight: 700; font-size: 12.5px; background: #fff; }
.ampel-option input { display: none; }
.ampel-option.gruen.selected { border-color: var(--green); background: var(--green-light); color: var(--green); }
.ampel-option.gelb.selected { border-color: var(--yellow); background: var(--yellow-light); color: var(--yellow); }
.ampel-option.rot.selected { border-color: var(--red); background: var(--red-light); color: var(--red); }
.feedback-eintrag { border-left: 3px solid var(--border); padding: 8px 14px; margin-bottom: 10px; }
.feedback-eintrag.gruen { border-color: var(--green); }
.feedback-eintrag.gelb { border-color: var(--yellow); }
.feedback-eintrag.rot { border-color: var(--red); }
.ampel-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.ampel-punkt.gruen { background: var(--green); }
.ampel-punkt.gelb { background: var(--yellow); }
.ampel-punkt.rot { background: var(--red); }

.hinweis-box { background: var(--blue-light); color: var(--blue); border-radius: var(--radius-klein); padding: 11px 16px; font-size: 12.5px; margin-bottom: 14px; }
.leer-hinweis { color: var(--muted); font-size: 13px; padding: 14px; text-align: center; }

/* ---------- Formulare ---------- */
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px;
  font-family: inherit; font-size: 13px; color: var(--text); background: var(--input-bg); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; }
textarea { resize: vertical; min-height: 54px; }
label.feld { display: block; margin-bottom: 12px; }
label.feld .feldname { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 4px; text-transform: uppercase; }
.form-zeile { display: flex; gap: 12px; }
.form-zeile > * { flex: 1; }
.pflicht { color: var(--red); }

.radio-1-4 { display: flex; gap: 8px; }
.radio-1-4 label { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 9px; padding: 5px 13px; cursor: pointer; font-weight: 700; font-size: 13px; background: #fff; }
.radio-1-4 label:has(input:checked) { border-color: var(--orange); background: var(--orange-light); color: var(--orange-dark); }
.radio-1-4 input { accent-color: var(--orange); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(27,29,26,.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 50; overflow-y: auto;
}
.modal { background: #fff; border-radius: 20px; padding: 26px 28px; width: 100%; max-width: 760px; box-shadow: 0 20px 50px rgba(27,29,26,.25); animation: riseIn 0.3s ease; }
.modal.schmal { max-width: 520px; }
.modal h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 16px; }
.modal-fuss { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; border-top: 1px solid var(--divider); padding-top: 16px; }
.form-fehler { color: var(--red); font-size: 12.5px; margin-top: 8px; display: none; }
.form-fehler.sichtbar { display: block; }

/* Editor-Zeilen (Stellen-Pflege) */
.editor-zeile { border: 1px solid var(--border); border-radius: var(--radius-klein); padding: 14px; margin-bottom: 10px; position: relative; background: #fff; }
.editor-zeile .entfernen { position: absolute; top: 10px; right: 10px; }

/* Datei-Liste */
.datei-liste { list-style: none; }
.datei-liste li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.datei-liste .datum { color: var(--muted); font-size: 11.5px; margin-left: auto; }

/* ---------- Login (Microsoft 365 über Intranet) ---------- */
.login-hintergrund {
  min-height: 100vh; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-karte {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 44px; width: 100%; max-width: 440px; text-align: center;
  animation: riseIn 0.45s ease;
}
.login-logo { height: 44px; width: auto; }
.login-produkt { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.4px; margin-top: 14px; }
.login-tagline { font-size: 12px; color: var(--muted); letter-spacing: 0.3px; margin-top: 2px; }
.login-text { font-size: 13.5px; color: var(--text-soft); margin: 4px 0 16px; }
.login-btn { width: 100%; justify-content: center; text-decoration: none; padding: 12px 18px; font-size: 14px; }
.login-fehler { background: var(--red-light); color: var(--red); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px; text-align: left; }
.login-manuell { margin-top: 16px; text-align: left; }
.login-manuell summary { font-size: 12px; color: var(--muted); cursor: pointer; font-weight: 600; }
.login-manuell textarea { margin-top: 8px; font-size: 11px; min-height: 70px; word-break: break-all; }
.login-sso { margin-top: 20px; font-size: 12px; color: #7d8f6e; display: flex; align-items: center; justify-content: center; gap: 7px; }
.sso-punkt { width: 8px; height: 8px; border-radius: 50%; background: #8DA224; display: inline-block; }
.topbar-abmelden { margin-left: 6px; }

/* ---------- Druckansicht Interview-Leitfaden ---------- */
@media print {
  body.druck-leitfaden .topbar,
  body.druck-leitfaden .sidebar,
  body.druck-leitfaden .page-head,
  body.druck-leitfaden .detail-kopf-card,
  body.druck-leitfaden .detail-links,
  body.druck-leitfaden .tabs,
  body.druck-leitfaden .pills,
  body.druck-leitfaden .btn,
  body.druck-leitfaden .frage-notiz { display: none !important; }
  body.druck-leitfaden .main { padding: 0; animation: none; }
  body.druck-leitfaden .detail-grid { display: block; }
  body.druck-leitfaden .card { border: none; padding: 0; }
  body.druck-leitfaden .akkordeon { break-inside: avoid; }
  body.druck-leitfaden .druck-titel { display: block !important; }
}
.druck-titel { display: none; font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 14px; }
