/* KI-Recruiting — XOWA Personal Branding */

/* ─── Abteilungs-Reiter (Bau / Medic / Auto / … / Kaufmännisch) ── */
.abteilung-tabs {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  max-width: 100%;
  padding: 0.3rem; background: #f1f1ef; border-radius: 0.85rem;
  margin-bottom: 1rem;
}
.abteilung-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.05rem; border-radius: 0.65rem;
  font-size: 0.92rem; font-weight: 600; color: #6b7280;
  background: transparent; transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.abteilung-tab i { font-size: 0.95rem; opacity: 0.8; }
.abteilung-tab:hover { color: #2D2D2D; background: rgba(255,255,255,.6); }
.abteilung-tab.is-active {
  background: #fff; color: #2D2D2D; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.abteilung-tab.is-active i { color: #C4A962; opacity: 1; }
.abteilung-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.4rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; background: #ece7d8; color: #8a7637;
}
.abteilung-tab.is-active .abteilung-tab-count { background: #FAF6ED; color: #C4A962; }

.vakanz-status-tabs { margin-top: 0.15rem; }

/* Globaler Masken-Umschalter (Dashboard-Hero) */
.maske-switch {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem;
}
.maske-switch-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #9a8c63;
}
.maske-switch-label i { font-size: 0.7rem; color: #C4A962; }
.maske-switch-track {
  position: relative; display: inline-flex; align-items: center; gap: 0.2rem;
  flex-wrap: wrap; justify-content: flex-end; max-width: 100%;
  padding: 0.3rem; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
  border: 1px solid #ece4d2;
  box-shadow: inset 0 1px 2px rgba(45,45,45,.05), 0 4px 14px rgba(45,45,45,.06);
}
.maske-switch-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.15rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: #8a8170; text-decoration: none;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .15s ease;
}
.maske-switch-btn i { font-size: 0.92rem; opacity: 0.7; transition: opacity .25s ease, transform .25s ease; }
.maske-switch-btn:hover { color: #2D2D2D; }
.maske-switch-btn:hover i { opacity: 1; }
.maske-switch-btn:active { transform: scale(0.97); }
.maske-switch-btn.is-active {
  color: #2D2D2D;
  background: linear-gradient(135deg, #f6e9c4 0%, #e9d49a 100%);
  box-shadow: 0 2px 8px rgba(196,169,98,.45), inset 0 1px 0 rgba(255,255,255,.6);
}
.maske-switch-btn.is-active i { color: #8a6d1f; opacity: 1; transform: scale(1.05); }

@media (max-width: 767px) {
  .maske-switch { align-items: stretch; }
  .maske-switch-track { width: 100%; border-radius: 1.1rem; }
  /* Bei fünf Abteilungen reicht eine Zeile nicht — zwei Spalten statt
     Buttons, die auf ein Icon zusammenschrumpfen. */
  .maske-switch-btn { flex: 1 1 45%; justify-content: center; }
}

/* Abteilungs-Auswahl im Formular (Radio als Chips) */
.abteilung-radio { position: relative; cursor: pointer; }
.abteilung-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.abteilung-radio > span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem; border-radius: 0.6rem; border: 1px solid #e5e7eb;
  background: #fff; color: #4b5563; font-size: 0.9rem; font-weight: 600;
  transition: border-color .12s, background .12s, color .12s;
}
.abteilung-radio > span i { color: #9ca3af; }
.abteilung-radio input:checked + span {
  border-color: #C4A962; background: #FAF6ED; color: #2D2D2D;
}
.abteilung-radio input:checked + span i { color: #C4A962; }
.abteilung-radio input:focus-visible + span { box-shadow: 0 0 0 3px rgba(196,169,98,.3); }

/* ─── Kalender ─────────────────────────────────────────────── */
.kal-card { padding: 1rem 1.1rem 1.2rem; }
.kal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.85rem; flex-wrap: wrap;
}
.kal-nav { display: flex; align-items: center; gap: 0.6rem; }
.kal-title { font-size: 1.1rem; font-weight: 700; color: #2D2D2D; min-width: 9.5rem; text-align: center; }
.kal-navbtn {
  width: 2rem; height: 2rem; border-radius: 0.55rem;
  border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.kal-navbtn:hover { background: #FAF6ED; color: #8a7637; border-color: #C4A962; }
.kal-todaybtn {
  padding: 0.35rem 0.8rem; border-radius: 0.55rem; font-size: 0.8rem; font-weight: 600;
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
}
.kal-todaybtn:hover { background: #FAF6ED; color: #8a7637; border-color: #C4A962; }

.kal-weekdays {
  display: grid; grid-template-columns: 1.75rem repeat(7, minmax(0, 1fr)); gap: 6px;
  margin-bottom: 6px;
}
.kal-weekdays span {
  text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: .04em;
  color: #9ca3af; text-transform: uppercase;
}
.kal-kw-head {
  font-size: 0.62rem !important; font-weight: 600 !important; letter-spacing: .02em !important;
  color: #d1d5db !important; align-self: center;
}
.kal-grid {
  display: grid; grid-template-columns: 1.75rem repeat(7, minmax(0, 1fr)); gap: 6px;
  transition: opacity .15s;
}
.kal-kw {
  display: flex; align-items: center; justify-content: center;
  min-height: 6.2rem; padding: 0;
  font-size: 0.62rem; font-weight: 600; color: #d1d5db;
  letter-spacing: 0.02em; user-select: none; line-height: 1;
}
.kal-grid.is-loading { opacity: 0.5; }
.kal-cell {
  min-height: 6.2rem; border: 1px solid #eef0f3; border-radius: 0.6rem;
  background: #fff; padding: 0.35rem 0.4rem; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.kal-cell:hover { border-color: #C4A962; box-shadow: 0 2px 8px rgba(196,169,98,.12); }
.kal-cell--other { background: #fafafa; }
.kal-cell--other .kal-cell-num { color: #cbd0d6; }
.kal-cell--today { border-color: #C4A962; background: #FCFAF4; }
.kal-cell-num { font-size: 0.78rem; font-weight: 700; color: #4b5563; line-height: 1.1; }
.kal-cell--today .kal-cell-num {
  color: #fff; background: #C4A962; width: 1.45rem; height: 1.45rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.kal-cell-events { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.kal-chip {
  display: flex; align-items: baseline; gap: 4px; width: 100%;
  text-align: left; padding: 2px 6px; border-radius: 0.35rem;
  background: #f6f7f9; border-left: 3px solid #C4A962; color: #374151;
  font-size: 0.7rem; line-height: 1.2; cursor: pointer; overflow: hidden;
}
.kal-chip:hover { background: #eef0f3; }
.kal-chip.is-done { opacity: 0.5; text-decoration: line-through; }
.kal-chip-time { font-weight: 700; color: #6b7280; flex: 0 0 auto; }
.kal-chip-titel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-chip-more { font-size: 0.66rem; color: #9ca3af; font-weight: 600; padding-left: 2px; }

.kal-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid #f0f0f0; }
.kal-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; color: #6b7280; }
.kal-legend-dot { width: 0.7rem; height: 0.7rem; border-radius: 999px; display: inline-block; }

/* Kalender: zweispaltiges Layout (Kalender links, gestapelte Liste rechts) */
.kal-layout { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 1024px) { .kal-layout { grid-template-columns: minmax(0, 1fr) 19rem; } }
.kal-main { min-width: 0; }
.kal-side {
  display: flex; flex-direction: column; min-width: 0;
  border-top: 1px solid #f0f0f0; padding-top: 0.85rem;
}
@media (min-width: 1024px) {
  .kal-side { border-top: none; border-left: 1px solid #f0f0f0; padding-top: 0; padding-left: 1.1rem; }
}
.kal-side-head {
  display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700;
  color: #2D2D2D; margin-bottom: 0.6rem;
}
.kal-side-count {
  margin-left: auto; background: #FAF6ED; color: #C4A962;
  border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.7rem; font-weight: 700;
}
.kal-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; max-height: 30rem; }
@media (min-width: 1024px) { .kal-side-list { max-height: 32rem; } }
.kal-side-item {
  border: 1px solid #eef0f3; border-left: 3px solid #C4A962; border-radius: 0.55rem;
  background: #fff; padding: 0.5rem 0.65rem; cursor: pointer;
  transition: background .12s, box-shadow .12s, border-color .12s;
}
.kal-side-item:hover { background: #FCFAF4; box-shadow: 0 2px 8px rgba(196,169,98,.12); }
.kal-side-item.is-today { background: #FCFAF4; }
.kal-side-item.is-overdue { border-left-color: #ef4444; }
.kal-side-titlerow { display: flex; align-items: center; gap: 0.4rem; }
.kal-side-title { font-size: 0.82rem; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.kal-side-flag { flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #B7942F; background: #FBF3DE; border-radius: 999px; padding: 0.05rem 0.4rem; }
.kal-side-flag.is-overdue { color: #b91c1c; background: #fee2e2; }
.kal-side-meta { font-size: 0.72rem; color: #6b7280; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-side-empty { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1.5rem 0.5rem; text-align: center; color: #9ca3af; font-size: 0.78rem; }
.kal-side-empty i { font-size: 1.3rem; color: #d6cba6; }

/* Kalender-Modal */
.kal-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.kal-modal[hidden] { display: none; }
.kal-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.kal-modal-box {
  position: relative; width: 100%; max-width: 32rem; background: #fff;
  border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  max-height: 92vh; overflow-y: auto;
}
.kal-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #f0f0f0;
}
.kal-modal-x { width: 2rem; height: 2rem; border-radius: 0.5rem; color: #9ca3af; display: inline-flex; align-items: center; justify-content: center; }
.kal-modal-x:hover { background: #f3f4f6; color: #4b5563; }
.kal-form { padding: 1rem 1.25rem 1.25rem; }
.kal-form .form-label { display: block; margin-top: 0.7rem; margin-bottom: 0.2rem; }
.kal-form .form-label:first-child { margin-top: 0; }
.kal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 560px) { .kal-form-row { grid-template-columns: repeat(3, 1fr); } }
.kal-form-row > div { min-width: 0; }
.kal-check { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: 0.85rem; color: #374151; cursor: pointer; }
.kal-form-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid #f0f0f0; }
.kal-btn-danger { padding: 0.5rem 0.9rem; border-radius: 0.6rem; background: #fee2e2; color: #b91c1c; font-size: 0.85rem; font-weight: 600; }
.kal-btn-danger:hover { background: #fecaca; }

/* Kandidat-Combobox im Kalender-Modal */
.kal-kand-combo { position: relative; }
.kal-kand-combo-wrap { position: relative; }
.kal-kand-combo-wrap .form-input { padding-right: 2rem; }
.kal-kand-combo-clear {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; border: 0; border-radius: 0.35rem;
  background: transparent; color: #9ca3af; font-size: 1.1rem; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.kal-kand-combo-clear:hover { background: #f3f4f6; color: #4b5563; }
.kal-kand-combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70;
  max-height: 14rem; overflow-y: auto; margin: 0; padding: 0.25rem 0;
  list-style: none; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 0.6rem; box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.kal-kand-combo-list[hidden] { display: none !important; }
.kal-kand-combo-option {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 0.45rem 0.75rem; cursor: pointer; font-size: 0.85rem; color: #1f2937;
}
.kal-kand-combo-option:hover,
.kal-kand-combo-option.is-active { background: #FAF6ED; }
.kal-kand-combo-option .kal-kand-nr { color: #9ca3af; font-size: 0.78rem; margin-left: 0.35rem; }
.kal-kand-combo-empty {
  padding: 0.65rem 0.75rem; font-size: 0.8rem; color: #9ca3af;
}

/* Kandidaten-Nummer (menschenlesbare ID, z. B. K-00042) */
.kandidat-nr-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.kandidat-nr-inline {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.78em;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

:root {
  --xowa-dark: #2D2D2D;
  --xowa-darker: #1F1F1F;
  --xowa-gold: #C4A962;
  --xowa-gold-light: #D4BF82;
  --xowa-gold-bg: #FAF6ED;
  --xowa-gold-border: #E8DBC0;
  --xowa-charcoal: #3A3A3A;
  --xowa-text: #1A1A1A;
  --xowa-muted: #6B6B6B;
  /* Einheitliche Seitenabstände (Abgleich mit max-w-7xl + Tailwind px-4 sm:px-6 lg:px-8) */
  --app-nav-height: 4.75rem;
  --app-main-padding-y: 1.75rem;
  --app-main-padding-y-md: 2rem;
  --app-section-gap: 1.5rem;
  --app-card-padding: 1.25rem;
  --app-card-padding-lg: 1.5rem;
}

/* Layout */
.page-hero {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--xowa-gold-border);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--xowa-dark), var(--xowa-darker));
  color: white;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 4px 14px rgba(45, 45, 45, 0.15);
}

.page-hero h1,
.page-hero .page-hero-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-top: 0.1rem;
}

.page-hero p {
  font-size: 0.8rem;
  line-height: 1.35;
}
.page-hero .text-gray-500,
.page-hero .text-gray-700 {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero .text-xs {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: rgba(196, 169, 98, 0.1);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--xowa-text);
}

.content-card {
  background: white;
  border: 1px solid rgb(235 235 235);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.kandidat-side-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kandidat-doc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.kandidat-kurzprofil-btn,
.kandidat-xowa-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  border: 1.5px solid #E8DBC0;
  background: #fff;
  color: #2D2D2D;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.kandidat-kurzprofil-btn:hover,
.kandidat-xowa-cv-btn:hover,
.kandidat-kurzprofil-btn:focus-visible,
.kandidat-xowa-cv-btn:focus-visible {
  background: #FAF6ED;
  outline: none;
}
.kandidat-xowa-cv-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.kandidat-kurzprofil-btn i,
.kandidat-xowa-cv-btn i {
  color: #C4A962;
}

.profil-doc-modal {
  position: fixed;
  inset: 0;
  /* Über der Kandidaten-Leiste «Zurück» (z-index 100), sonst liegt der
     Knopf auf der Dialogkarte. */
  z-index: 130;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem 1rem;
}
.profil-doc-modal[hidden] { display: none; }
.profil-doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.35);
}
.profil-doc-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid #E8DBC0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 1.1rem 1.2rem 1.2rem;
}
.profil-doc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.profil-doc-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #2D2D2D;
}
.profil-doc-modal-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6B6B6B;
  cursor: pointer;
}
.profil-doc-modal-x:hover { background: #FAF6ED; }
.profil-doc-modal-hint {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: #6B6B6B;
}
.profil-doc-form {
  --doc-h: 2.375rem;
  --doc-r: 8px;
  --doc-pad-y: 0.45rem;
  --doc-pad-x: 0.6rem;
  --doc-label: 0.75rem;
  --doc-label-lh: 1.2;
  --doc-gap-label: 0.25rem;
  --doc-gap-row: 0.7rem;
  --doc-gap-col: 0.75rem;
}
.profil-doc-form label {
  display: block;
  margin-bottom: var(--doc-gap-row);
  font-size: var(--doc-label);
  font-weight: 600;
  line-height: var(--doc-label-lh);
  color: #6B6B6B;
}
.profil-doc-form label[hidden],
.profil-doc-foto-btn-wrap[hidden],
.profil-doc-form input[hidden],
.profil-doc-form [data-foto-upload-input] {
  display: none !important;
}
.profil-doc-form input:not([type="file"]),
.profil-doc-form textarea,
.profil-doc-form select,
.profil-doc-foto-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: var(--doc-gap-label);
  border: 1px solid #E8DBC0;
  border-radius: var(--doc-r);
  padding: var(--doc-pad-y) var(--doc-pad-x);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #2D2D2D;
  background: #fff;
}
.profil-doc-form input:not([type="file"]),
.profil-doc-form select,
.profil-doc-foto-btn {
  height: var(--doc-h);
}
.profil-doc-form input:not([type="file"]):focus,
.profil-doc-form textarea:focus,
.profil-doc-form select:focus,
.profil-doc-foto-btn:focus-visible {
  outline: none;
  border-color: #C4A962;
  box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.18);
}
/* Auswahlfeld wie die Textfelder: gleiche Höhe, eigener Pfeil rechts */
.profil-doc-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C4A962' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem 1rem;
  text-overflow: ellipsis;
  cursor: pointer;
}
.profil-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--doc-gap-col, 0.75rem);
  align-items: start;
}
.profil-doc-foto-btn-paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: var(--doc-gap-label);
}
.profil-doc-foto-btn-paar .profil-doc-foto-btn {
  margin-top: 0;
  min-width: 0;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  font-size: 0.78rem;
}
.profil-doc-foto-btn[hidden] { display: none !important; }
.profil-doc-foto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  appearance: none;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.profil-doc-foto-btn:hover:not(:disabled) {
  border-color: #C4A962;
  background: #FDFBF6;
}
.profil-doc-foto-btn.is-busy {
  color: #92400e;
  border-color: #f3d19a;
  background: #fffbeb;
  cursor: wait;
}
.profil-doc-foto-btn.is-done {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
  cursor: default;
}
.profil-doc-foto-btn i { font-size: 0.85rem; }
/* Wohnort: Klick-Vorschlag («PLZ Ort» übernehmen) unter dem leeren Feld */
.profil-doc-wohnort { position: relative; }
.profil-doc-wohnort-tipp {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: 2px;
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2D2D2D;
  background: #FDFBF6;
  border: 1px solid #E8DBC0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.profil-doc-wohnort-tipp:hover { background: #FAF6ED; }
.profil-doc-wohnort-tipp i { color: #C4A962; margin-right: 0.3rem; }
.profil-doc-beruf { position: relative; margin-bottom: var(--doc-gap-row); }
.profil-doc-beruf label { margin-bottom: 0; }
.profil-doc-beruf-status {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #6B6B6B;
}
.profil-doc-beruf-status.is-fehler { color: #9f1239; }
.profil-doc-beruf-erneut {
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: #9a7b32;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.profil-doc-beruf-liste {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% - 0.15rem);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #FDFBF6;
  border: 1px solid #E8DBC0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  max-height: 16rem;
  overflow-y: auto;
}
.profil-doc-beruf-liste button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.85rem;
  color: #2D2D2D;
  cursor: pointer;
}
.profil-doc-beruf-liste button.is-aktiv,
.profil-doc-beruf-liste button:hover { background: #FAF6ED; }
.profil-doc-beruf-liste button.is-eigen { color: #6B5A32; font-style: italic; }
/* Zeile, deren Beschriftung selbst wählbar ist (Tätigkeit / Qualifikation):
   Das Auswahlfeld sieht aus wie die übrigen Beschriftungen, nicht wie ein Feld. */
.profil-doc-praxis {
  margin-bottom: var(--doc-gap-row);
}
.profil-doc-praxis-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.profil-doc-praxis-titel {
  font-size: var(--doc-label);
  font-weight: 600;
  line-height: var(--doc-label-lh);
  color: #6B6B6B;
}
.profil-doc-form .profil-doc-praxis-kopf select {
  width: auto;
  min-width: 6.6rem;
  height: auto;
  margin: 0;
  padding: 0.15rem 1.7rem 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #6B6B6B;
}
.profil-doc-form .profil-doc-praxis-feld {
  margin-bottom: 0;
}
.profil-doc-form textarea[name="praxis"],
.profil-doc-praxis-feld .profil-doc-fett-feld {
  min-height: 10.5rem;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.45;
}
.profil-doc-label-wahl {
  margin-bottom: var(--doc-gap-row);
}
.profil-doc-form .profil-doc-label-wahl > label {
  margin-bottom: 0;
}
.profil-doc-form .profil-doc-label-wahl select {
  position: relative;
  z-index: 2;
  cursor: pointer;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 1.1rem 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: right center;
  background-size: 0.85rem 0.85rem;
  font-size: 0.75rem;
  line-height: var(--doc-label-lh);
  font-weight: 600;
  color: #6B6B6B;
}
.profil-doc-form .profil-doc-label-wahl select:focus {
  box-shadow: none;
  color: #C4A962;
}
.profil-doc-jobs-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B6B6B;
}
.profil-doc-jobs {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 0.85rem;
  color: #2D2D2D;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profil-doc-job-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 0.35rem;
  align-items: center;
}
.profil-doc-job-row input {
  width: 100%;
  min-width: 0;
}
.profil-doc-job-del {
  border: none;
  background: none;
  color: #9a9a9a;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
}
.profil-doc-job-del:hover {
  color: #b45309;
  background: #f7f0e4;
}
.profil-doc-job-add {
  border: 1px dashed #d8cdb4;
  background: none;
  color: #6B6B6B;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
}
.profil-doc-job-add:hover {
  color: #C4A962;
  border-color: #C4A962;
}
.profil-doc-job-add i {
  margin-right: 0.3rem;
}
.profil-doc-error {
  color: #b45309;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}
.profil-doc-fett-leiste {
  position: fixed;
  z-index: 200;
  margin: 0;
  padding: 4px;
  border: 1px solid #E8DBC0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.14);
}
.profil-doc-fett-leiste[hidden] { display: none; }
.profil-doc-fett-leiste button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #FAF6ED;
  color: #2D2D2D;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.profil-doc-fett-leiste button i { color: #C4A962; font-size: 0.82rem; }
.profil-doc-fett-leiste button.is-duenn { font-weight: 400; }
.profil-doc-fett-leiste button:hover,
.profil-doc-fett-leiste button:focus-visible {
  background: #C4A962;
  color: #fff;
  outline: none;
}
.profil-doc-fett-leiste button:hover i,
.profil-doc-fett-leiste button:focus-visible i { color: #fff; }
.profil-doc-fett-wrap {
  position: relative;
  width: 100%;
  margin-top: var(--doc-gap-label);
}
.profil-doc-form .profil-doc-fett-quelle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.profil-doc-fett-feld {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #E8DBC0;
  border-radius: var(--doc-r);
  padding: var(--doc-pad-y) var(--doc-pad-x);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.2;
  color: #2D2D2D !important;
  -webkit-text-fill-color: #2D2D2D;
  caret-color: #2D2D2D;
  background: #fff;
  outline: none;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
.profil-doc-form,
.profil-doc-form label,
.profil-doc-fett-wrap {
  min-width: 0;
  max-width: 100%;
}
.profil-doc-fett-wrap:not(.is-mehrzeilig) .profil-doc-fett-feld {
  height: var(--doc-h);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
.profil-doc-fett-wrap.is-mehrzeilig .profil-doc-fett-feld {
  min-height: calc(var(--fett-zeilen, 3) * 1.2em + 2 * var(--doc-pad-y) + 2px);
  white-space: pre-wrap;
}
.profil-doc-fett-feld:focus {
  border-color: #C4A962;
  box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.18);
}
.profil-doc-fett-feld:empty:before {
  content: attr(data-placeholder);
  color: #9a9a9a;
  font-weight: 400;
  pointer-events: none;
}
.profil-doc-fett-feld b,
.profil-doc-fett-feld strong {
  font-weight: 700;
}
.profil-doc-job-row .profil-doc-fett-wrap {
  margin-top: 0;
}
.profil-doc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
/* Häkchen «Foto vorher mit KI veredeln» (nur in der Betriebsart «dokument»). */
.profil-doc-foto-opt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
}
.profil-doc-foto-opt input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #d97706;
}
.profil-doc-foto-opt i {
  color: #d97706;
  margin-right: 0.2rem;
}
.profil-doc-foto-opt small {
  color: #6b7280;
}
.profil-doc-foto-hint {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: #92400e;
  line-height: 1.35;
}
.profil-doc-senden i {
  margin-right: 0.35rem;
}
/* Zweispaltig: links das Formular, rechts die Live-Vorschau.
   Beide Spalten scrollen unabhängig; gespeichert wird dabei nichts. */
.profil-doc-split {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
}
.profil-doc-col-form {
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.4rem;
}
/* Rechte Spalte: Vorschau oben, Aktionsknöpfe darunter */
.profil-doc-col-right {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
}
.profil-doc-col-preview {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid #E8DBC0;
  border-radius: 10px;
  overflow: hidden;
  background: #FAF6ED;
}
.profil-doc-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B6B6B;
  border-bottom: 1px solid #E8DBC0;
}
.profil-doc-preview-busy {
  font-weight: 500;
  color: #C4A962;
}
.profil-doc-preview-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #fff;
}
.profil-doc-preview-stage {
  position: relative;
  display: block;
  width: 100%;
}
.profil-doc-col-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.profil-doc-col-preview img:not([src]) { display: none; }
.profil-doc-foto-schein {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  aspect-ratio: 1;
}
.profil-doc-foto-schein::before {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 3px solid rgba(196, 169, 98, 0.55);
  box-shadow: 0 0 10px 2px rgba(196, 169, 98, 0.55),
              0 0 22px 6px rgba(255, 248, 220, 0.35),
              inset 0 0 10px 2px rgba(255, 248, 220, 0.2);
  animation: profil-doc-schein-pulse 1.6s ease-in-out infinite;
}
.profil-doc-foto-schein::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 55%,
    #f8e7b0 68%,
    #fff 76%,
    #C4A962 84%,
    transparent 94% 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 8px rgba(255, 248, 220, 0.95));
  animation: profil-doc-schein-spin 1.4s linear infinite;
}
@keyframes profil-doc-schein-spin {
  to { transform: rotate(360deg); }
}
@keyframes profil-doc-schein-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .profil-doc-foto-schein::before,
  .profil-doc-foto-schein::after {
    animation: none;
  }
}
@media (max-width: 1150px) {
  .profil-doc-split { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .profil-doc-split { grid-template-columns: minmax(0, 1fr); }
  .profil-doc-col-preview { max-height: 50vh; }
}
@media (max-width: 640px) {
  .kandidat-doc-actions,
  .profil-doc-grid { grid-template-columns: 1fr; }
}
body.profil-doc-modal-open { overflow: hidden; }
body.profil-doc-modal-open .kandidat-detail-toolbar {
  visibility: hidden;
  pointer-events: none;
}
.kandidat-profil-senden-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, #d8bd75 0%, #c4a962 55%, #a88a3f 100%);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.kandidat-profil-senden-btn:hover,
.kandidat-profil-senden-btn:focus-visible {
  filter: brightness(0.96);
  color: #1a1a1a;
}
.kandidat-profil-senden-btn:focus-visible {
  outline: 2px solid #C4A962;
  outline-offset: 2px;
}
/* Frage vor "Profil versenden": Kurzprofil erstellen oder Datei hochladen? */
.profil-versand-frage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.profil-versand-frage[hidden] { display: none; }
.profil-versand-frage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.35);
}
.profil-versand-frage-panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid #E8DBC0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 1.2rem 1.3rem 1.1rem;
}
.profil-versand-frage-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2D2D2D;
}
.profil-versand-frage-optionen {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profil-versand-frage-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #E8DBC0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.profil-versand-frage-option:hover {
  background: #FAF6ED;
  border-color: #C4A962;
}
.profil-versand-frage-option i {
  flex: 0 0 auto;
  font-size: 1.1rem;
  color: #C4A962;
}
.profil-versand-frage-option strong {
  display: block;
  font-size: 0.9rem;
  color: #2D2D2D;
}
.profil-versand-frage-option small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6B6B6B;
}
.profil-versand-frage-abbrechen {
  display: block;
  margin: 0.85rem 0 0 auto;
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6B6B6B;
  cursor: pointer;
}
.profil-versand-frage-abbrechen:hover { color: #2D2D2D; }
.kandidat-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
}
.kandidat-whatsapp-btn i {
  font-size: 1.35rem;
}
.kandidat-whatsapp-btn:hover,
.kandidat-whatsapp-btn:focus-visible {
  background: #1EBE57;
  color: #fff;
}
.kandidat-whatsapp-btn:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}
.kandidat-mail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #3E5163;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.kandidat-mail-btn:hover,
.kandidat-mail-btn:focus-visible {
  background: #344656;
  color: #fff;
}
.kandidat-mail-btn:focus-visible {
  outline: 2px solid #3E5163;
  outline-offset: 2px;
}
.kandidat-mail-btn.is-ohne {
  background: #C5D4E4;
  cursor: not-allowed;
}

/* Karten-Haupttitel (Dashboard): dezente Hintergrund-Plakette mit
   Gold-Akzent, damit der Titel sich klar vom Karteninhalt abhebt. */
.dash-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.02);
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d2d2d;
  letter-spacing: 0.01em;
}

/* Titelzeile der Dashboard-Karten: gleicher dunkler Balken wie der Hero. */
.content-card > .dash-kopf {
  margin: -1.25rem -1.25rem 0.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(135deg, #2D2D2D, #1F1F1F);
  color: #fff;
  align-items: center;
}
.kal-card > .kal-toolbar.dash-kopf {
  margin: -1rem -1.1rem 0.85rem;
  padding: 0.7rem 1.1rem;
}
.dash-kopf .dash-card-title {
  background: transparent;
  color: #fff;
  padding: 0;
}
.dash-kopf .text-gray-500,
.dash-kopf .kal-title {
  color: rgba(255, 255, 255, 0.72);
}

/* Hauptbereich: konsistente vertikale Abstände */
.app-main {
  padding-top: 1.5rem;
  padding-bottom: var(--app-main-padding-y-md);
}

@media (min-width: 640px) {
  .app-main {
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
  }
}

/* Seiteninhalt: Standard-Abstand zwischen Hero, Karten und Tabellen */
.app-page-stack {
  display: flex;
  flex-direction: column;
  gap: var(--app-section-gap);
}
.app-page-stack > .page-hero,
.app-page-stack > .abteilung-tabs,
.app-page-stack > .kandidaten-buckets,
.app-page-stack > .content-card,
.app-page-stack > .bulk-recall-toolbar {
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  position: relative;
  background-image: linear-gradient(135deg, #d8bd75 0%, #c4a962 55%, #a88a3f 100%);
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 6px 14px -4px rgba(196, 169, 98, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 10px 22px -6px rgba(196, 169, 98, 0.65),
    0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.97);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 10px -4px rgba(196, 169, 98, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-primary:focus-visible {
  outline: 2px solid rgba(196, 169, 98, 0.55);
  outline-offset: 3px;
}
.btn-primary:disabled,
.btn-primary[disabled],
.btn-primary:disabled:hover,
.btn-primary[disabled]:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 4px rgba(0, 0, 0, 0.12);
}
.btn-primary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.12);
  font-size: 0.78rem;
}

.btn-secondary {
  background-color: rgb(235 235 235);
  color: var(--xowa-dark);
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  transition: background-color 0.15s, transform 0.15s;
}
.btn-secondary:hover {
  background-color: rgb(220 220 220);
  transform: translateY(-1px);
}

/* Kandidaten-Vollansicht: „Zurück“ über globale Modals (CRM/CV), die fixed inset-0 legen */
.kandidat-detail-toolbar {
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.kandidat-detail-toolbar a.btn-secondary {
  cursor: pointer;
  text-decoration: none;
}

.btn-danger {
  background-color: rgb(200 40 40);
  color: white;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  transition: background-color 0.15s, transform 0.15s;
}
.btn-danger:hover {
  background-color: rgb(170 30 30);
  transform: translateY(-1px);
}

/* Form elements */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xowa-dark);
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.5rem;
  background-color: white;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--xowa-gold);
  border-color: var(--xowa-gold);
}

/* Zahlenfelder ohne Browser-Pfeile (Spinner) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Score badges */
.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.score-high {
  background-color: rgb(220 252 231);
  color: rgb(22 101 52);
}

.score-medium {
  background-color: rgb(254 243 199);
  color: rgb(146 64 14);
}

.score-low {
  background-color: rgb(254 226 226);
  color: rgb(153 27 27);
}

/* App navbar — moderne Pill-Navigation (legacy, falls einzelne Seiten sie nutzen) */
.nav-app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.98), rgba(31, 31, 31, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 169, 98, 0.22);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.has-fixed-nav {
  padding-top: var(--app-nav-height);
}

/* ─── Sidebar-Navigation (links, ein-/ausklappbar) ────────────── */
:root {
  --sidebar-width: 16rem;
  --sidebar-width-collapsed: 4.5rem;
  --sidebar-bg: linear-gradient(180deg, rgba(45, 45, 45, 0.99), rgba(31, 31, 31, 0.99));
}

.has-sidebar {
  display: block;
}

/* Anti-Flicker: vor dem JS-Boot bereits den eingeklappten Zustand anwenden,
   damit die Sidebar nicht erst kurz breit erscheint und dann reinspringt. */
html.sidebar-preset-collapsed body.has-sidebar .app-shell {
  margin-left: var(--sidebar-width-collapsed);
}
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar {
  width: var(--sidebar-width-collapsed);
}
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-label {
  opacity: 0;
  width: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
}
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-link {
  justify-content: center;
  padding: 0.55rem 0;
  margin: 0.15rem auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
}
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-link-active {
  background: linear-gradient(135deg, rgba(196, 169, 98, 0.55), rgba(196, 169, 98, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(196, 169, 98, 0.55),
    0 6px 14px -6px rgba(196, 169, 98, 0.6);
}
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  height: 1.05rem;
  min-width: 1.05rem;
  padding: 0 0.3rem;
  font-size: 0.62rem;
  border: 2px solid var(--xowa-darker);
  background: linear-gradient(135deg, #d8bd75 0%, #c4a962 100%);
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translate(35%, -35%);
}

.app-shell {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}

.has-sidebar.sidebar-collapsed .app-shell {
  margin-left: var(--sidebar-width-collapsed);
}

/* Hover-Expand: Sidebar überlagert kurzzeitig den Inhalt, ohne Layout-Sprung */
@media (min-width: 769px) {
  .has-sidebar.sidebar-collapsed .app-sidebar:hover {
    width: var(--sidebar-width);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-label {
    opacity: 1;
    width: auto;
    pointer-events: auto;
    overflow: visible;
    padding: 0 0.35rem;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-link {
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
    margin: 0;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-link-active {
    background: linear-gradient(135deg, rgba(196, 169, 98, 0.35), rgba(196, 169, 98, 0.1));
    box-shadow: inset 0 0 0 1px rgba(196, 169, 98, 0.4);
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-badge {
    position: static;
    transform: none;
    height: 1.125rem;
    min-width: 1.125rem;
    padding: 0 0.35rem;
    font-size: 0.625rem;
    border: 0;
    background: #ef4444;
    color: #fff;
    box-shadow: none;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-link::after {
    display: none;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-header {
    grid-template-columns: 2.75rem 1fr 2.75rem;
    grid-template-rows: auto;
    min-height: 7.25rem;
    padding: 0.85rem 0.75rem;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-brand {
    grid-column: 2;
    grid-row: 1;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-brand img {
    width: auto;
    height: 7.25rem;
    max-width: 100%;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(196, 169, 98, 0.18);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.has-sidebar.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-width-collapsed);
}

.app-sidebar-header {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  min-height: 7.25rem;
}

.app-sidebar-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.15rem;
  transition: background-color 0.15s ease, opacity 0.2s ease;
}
.app-sidebar-brand:hover {
  opacity: 0.85;
}

.app-sidebar-brand img {
  display: block;
  width: auto;
  height: 7.25rem;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.2s ease, width 0.2s ease;
}

/* Eingeklappt: nur Logo; Pin erscheint erst bei Hover (Menü offen) */
.has-sidebar.sidebar-collapsed .app-sidebar-header,
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-header {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  justify-items: center;
  min-height: 0;
  padding: 0.75rem 0.4rem;
  gap: 0;
}

.has-sidebar.sidebar-collapsed .app-sidebar-brand,
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-brand {
  grid-column: 1;
  grid-row: 1;
}

.has-sidebar.sidebar-collapsed .app-sidebar-brand img,
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-brand img {
  height: auto;
  width: 3.4rem;
  max-width: 100%;
}

.has-sidebar.sidebar-collapsed .app-sidebar-toggle,
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-toggle {
  display: none;
}

.app-sidebar-toggle {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
  position: static;
  transform: none;
  padding: 0;
}
.app-sidebar-toggle i {
  font-size: 0.7rem;
  transform: rotate(40deg);
  transition: transform 0.2s ease, color 0.15s ease;
}
.app-sidebar-toggle.is-pinned {
  color: rgba(196, 169, 98, 0.7);
  border: 0;
  background: transparent;
}
.app-sidebar-toggle.is-pinned i {
  transform: rotate(0deg);
}
.app-sidebar-toggle:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}
.app-sidebar-toggle.is-pinned:hover {
  color: #C4A962;
  background: rgba(196, 169, 98, 0.1);
}
.has-sidebar.sidebar-collapsed .app-sidebar-toggle i {
  transform: rotate(40deg);
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.6rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.app-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.6rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  /* Das Einstellungen-Untermenue kann den Fuss hoeher machen als der Platz
     hergibt — dann darf er selbst scrollen, statt Abmelden abzuschneiden. */
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.app-sidebar-link-static {
  cursor: default;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}
.app-sidebar-link-static:hover {
  background: rgba(255, 255, 255, 0.04);
}
.app-sidebar-link-button {
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
}
.app-sidebar-logout-form { margin: 0; }
.app-sidebar-label-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.app-sidebar-link:hover {
  background: rgba(196, 169, 98, 0.14);
  color: #fff;
}

.app-sidebar-link-active {
  background: linear-gradient(135deg, rgba(196, 169, 98, 0.35), rgba(196, 169, 98, 0.1));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(196, 169, 98, 0.4);
}

.app-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.9rem;
  color: var(--xowa-gold-light);
  flex-shrink: 0;
}

.app-sidebar-link-active .app-sidebar-icon {
  color: #fff;
}

.app-sidebar-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease;
}

.app-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.125rem;
  min-width: 1.125rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Sicherheitswarnung: bleibt auch im eingeklappten Menü rot (statt gold),
   damit sie nicht mit normalen Zählern verwechselt wird. */
.app-sidebar-badge-alarm,
.has-sidebar.sidebar-collapsed .app-sidebar-badge-alarm,
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-badge-alarm {
  background: #ef4444;
  color: #fff;
  animation: xowa-warn-puls 2s ease-in-out infinite;
}

@keyframes xowa-warn-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

.has-sidebar.sidebar-collapsed .app-sidebar-label {
  opacity: 0;
  pointer-events: none;
  width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.has-sidebar.sidebar-collapsed .app-sidebar-link {
  justify-content: center;
  padding: 0.55rem 0;
  margin: 0.15rem auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
}

.has-sidebar.sidebar-collapsed .app-sidebar-link-active {
  background: linear-gradient(135deg, rgba(196, 169, 98, 0.55), rgba(196, 169, 98, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(196, 169, 98, 0.55),
    0 6px 14px -6px rgba(196, 169, 98, 0.6);
}

.has-sidebar.sidebar-collapsed .app-sidebar-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  height: 1.05rem;
  min-width: 1.05rem;
  padding: 0 0.3rem;
  font-size: 0.62rem;
  border: 2px solid var(--xowa-darker);
  background: linear-gradient(135deg, #d8bd75 0%, #c4a962 100%);
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translate(35%, -35%);
}

.has-sidebar.sidebar-collapsed .app-sidebar-link::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--xowa-darker);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 70;
}
.has-sidebar.sidebar-collapsed .app-sidebar-link:hover::after {
  opacity: 1;
}

/* ─── Sidebar-Gruppen (ausklappbare Submenüs, z. B. MailBase) ─── */
.app-sidebar-group {
  display: flex;
  flex-direction: column;
}

.app-sidebar-link-parent {
  /* nimmt sich denselben Style wie .app-sidebar-link – nur das Chevron kommt rechts dazu */
  position: relative;
}

.app-sidebar-chevron {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, color 0.15s ease;
}

.app-sidebar-group-open > .app-sidebar-link-parent .app-sidebar-chevron {
  transform: rotate(180deg);
  color: var(--xowa-gold-light);
}

.app-sidebar-badge-zuklapp { display: inline-flex; }
.app-sidebar-group-open > .app-sidebar-link-parent .app-sidebar-badge-zuklapp {
  display: none;
}

.app-sidebar-submenu {
  display: none;
  flex-direction: column;
  margin: 0.15rem 0 0.4rem 0.85rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(196, 169, 98, 0.25);
  gap: 0.1rem;
}

.app-sidebar-group-open > .app-sidebar-submenu {
  display: flex;
}

.app-sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-sidebar-sublink:hover {
  background: rgba(196, 169, 98, 0.10);
  color: #fff;
}

.app-sidebar-sublink-active {
  background: linear-gradient(135deg, rgba(196, 169, 98, 0.30), rgba(196, 169, 98, 0.08));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(196, 169, 98, 0.35);
}

.app-sidebar-subicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.75rem;
  color: var(--xowa-gold-light);
  flex-shrink: 0;
}

.app-sidebar-sublink-active .app-sidebar-subicon {
  color: #fff;
}

/* In eingeklappter Sidebar: Submenü ausblenden, Chevron weg, normales Icon-Verhalten beibehalten */
.has-sidebar.sidebar-collapsed .app-sidebar-submenu,
.has-sidebar.sidebar-collapsed .app-sidebar-chevron {
  display: none;
}
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-submenu,
html.sidebar-preset-collapsed body.has-sidebar .app-sidebar-chevron {
  display: none;
}

/* Beim Hover über die eingeklappte Sidebar das Submenü wieder einblenden */
@media (min-width: 768px) {
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-chevron {
    display: inline-flex;
  }
  .has-sidebar.sidebar-collapsed .app-sidebar:hover .app-sidebar-group-open > .app-sidebar-submenu {
    display: flex;
  }
}

/* Mobile-Overlay & Trigger */
.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 55;
  border: 0;
  cursor: pointer;
}

.app-sidebar-mobile-trigger {
  display: none;
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--xowa-dark);
  color: #fff;
  border: 1px solid rgba(196, 169, 98, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 65;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .app-shell {
    margin-left: 0 !important;
  }
  .app-sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }
  .has-sidebar.sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }
  .has-sidebar.sidebar-mobile-open .app-sidebar-overlay {
    display: block;
  }
  .app-sidebar-mobile-trigger {
    display: inline-flex;
  }
  .app-sidebar-toggle {
    display: none;
  }
  body.has-sidebar {
    padding-top: 4.25rem;
  }
}

/* Sprachumschalter (oben rechts) */
.lang-switch {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 70;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--xowa-dark, #1a1a1a);
  border: 1px solid rgba(196, 169, 98, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.9rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lang-switch-btn.is-active {
  color: var(--xowa-dark, #1a1a1a);
  background: var(--xowa-gold, #c4a962);
}
@media (max-width: 768px) {
  .lang-switch {
    top: 0.85rem;
    right: 0.85rem;
  }
}

.nav-divider {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.nav-pill-group {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  height: 2.625rem;
  min-height: 2.625rem;
  box-sizing: border-box;
}

.nav-no-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.nav-no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.375rem;
  min-height: 2.375rem;
  max-height: 2.375rem;
  padding: 0 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  vertical-align: middle;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.nav-pill:hover {
  background: rgba(196, 169, 98, 0.14);
  color: #fff;
}

.nav-pill-active {
  background: linear-gradient(135deg, rgba(196, 169, 98, 0.35), rgba(196, 169, 98, 0.12));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(196, 169, 98, 0.45), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nav-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  font-size: 0.8rem;
  opacity: 0.92;
  color: var(--xowa-gold-light);
}

.nav-pill-icon i {
  display: block;
  line-height: 1;
}

.nav-pill-active .nav-pill-icon {
  color: #fff;
}

.nav-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 0;
  line-height: 1;
}

.nav-pill-label > span:first-child {
  line-height: 1;
}

.nav-badge-neu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.125rem;
  min-width: 1.125rem;
  padding: 0 0.3rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-mobile-toggle:hover {
  background: rgba(196, 169, 98, 0.18);
  border-color: rgba(196, 169, 98, 0.35);
}

.nav-mobile-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.nav-pill-mobile {
  width: 100%;
  justify-content: flex-start;
  border-radius: 9999px;
  height: 2.375rem;
  min-height: 2.375rem;
  padding: 0 0.9rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.nav-pill-mobile .nav-pill-label {
  min-width: 0;
  flex: 1;
}

.nav-pill-mobile .nav-pill-label > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 639px) {
  .nav-pill-mobile {
    height: 2.5rem;
    min-height: 2.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1100px) {
  .nav-pill {
    font-size: 0.75rem;
    height: 2.25rem;
    min-height: 2.25rem;
    max-height: 2.25rem;
    padding: 0 0.7rem;
  }
  .nav-pill-icon {
    font-size: 0.72rem;
  }
  .nav-pill-group {
    height: 2.5rem;
    min-height: 2.5rem;
  }
}

/* Legacy: einzelne Seiten nutzen noch .nav-link */
.nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover {
  background-color: rgba(196, 169, 98, 0.2);
  color: var(--xowa-gold-light);
}

.nav-link-active {
  background-color: rgba(196, 169, 98, 0.25);
  color: var(--xowa-gold);
}

@media (max-width: 640px) {
  .nav-link {
    font-size: 1rem;
    padding: 0.55rem 0.8rem;
  }
}

/* Gold accent link */
a.gold-link {
  color: var(--xowa-gold);
  font-weight: 600;
}
a.gold-link:hover {
  color: var(--xowa-gold-light);
}

/* Kandidat-Avatar (Foto oder Initialen) */
.kandidat-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--xowa-gold), var(--xowa-gold-light));
  color: var(--xowa-darker);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid var(--xowa-gold-border);
  box-shadow: 0 2px 8px rgba(45, 45, 45, 0.12);
  text-decoration: none;
  user-select: none;
}

.kandidat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kandidat-avatar-initialen {
  font-size: inherit;
  line-height: 1;
}

.kandidat-avatar-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
}

.kandidat-avatar-md {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.85rem;
}

/* Dashboard-Treffer: Foto gross, Zeile wie eine Tabelle (Foto · Score · Text · Details). */
.dash-match-avatar {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.05rem;
}

.dash-match-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.dash-match-list > li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1 0 auto;
  min-height: 4.6rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid #f3f4f6;
}

.dash-match-list > li:last-child {
  border-bottom: none;
}

.dash-match-score {
  min-width: 3.4rem;
  justify-content: center;
}

.kandidat-avatar-lg {
  width: 5rem;
  height: 5rem;
  font-size: 1.5rem;
}

.kandidat-avatar-xl {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.35rem;
}

.kandidat-avatar-neu::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: #ef4444;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ─── Kanban-Board ───────────────────────────────────────────── */
.kanban-wrapper {
  padding-bottom: 0.75rem;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.kanban-col {
  background: #f4f1ea;
  border: 1px solid var(--xowa-gold-border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 14rem);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Board: restliche Viewport-Höhe, Scroll nur in der Spalte */
.app-shell:has(.kandidaten-board-main) {
  height: 100dvh;
  overflow: hidden;
}
.app-main.kandidaten-board-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.kandidaten-board-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0.7rem;
}
.kandidaten-board-page .kanban-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.kandidaten-board-page .kanban-board {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
.kandidaten-board-page .kanban-col {
  max-height: none;
  height: 100%;
  overflow: hidden;
}

.kanban-col-archiv {
  background: #fdecec;
  border-color: #f3c8c8;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1rem 1rem 0 0;
}

.kanban-col-header-archiv {
  background: rgba(255, 255, 255, 0.4);
}

.kanban-col-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--xowa-gold-bg);
  color: var(--xowa-gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.kanban-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--xowa-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-col-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 9999px;
  background: rgba(45, 45, 45, 0.08);
  color: var(--xowa-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.kanban-col-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.6rem;
  padding: 0.75rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  overscroll-behavior: contain;
}

/* Karten bleiben kompakt (Inhaltshöhe), auch in hohen Spalten wie Platziert.
   width:100% + flex-start statt stretch, damit weder Spalten- noch
   Quer-Achse die Karte auf die volle Listenhöhe zieht. */
.kanban-col-list > .kanban-card.uebersicht-card {
  flex: 0 0 auto !important;
  align-self: flex-start;
  width: 100%;
  height: auto !important;
  min-height: 0;
  box-sizing: border-box;
}

.kanban-col-list-archiv {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(243, 200, 200, 0.25) 10px,
    rgba(243, 200, 200, 0.25) 20px
  );
}

.kanban-archiv-hint {
  font-size: 0.75rem;
  color: #b06a6a;
  text-align: center;
  padding: 1rem 0.5rem;
}

.kanban-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgb(235, 235, 235);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.kanban-card a,
.kanban-card img,
.kanban-card .uebersicht-card-body {
  -webkit-user-drag: none;
  user-drag: none;
}

.kanban-card:hover {
  border-color: var(--xowa-gold-border);
  box-shadow: 0 4px 12px rgba(45, 45, 45, 0.08);
}

body.kanban-dragging,
body.kanban-dragging * {
  cursor: grabbing !important;
}
body.kanban-dragging .kanban-card,
.kanban-card-ghost,
.kanban-card-dragging,
.kanban-card-chosen,
.sortable-fallback,
.sortable-drag,
.sortable-chosen,
.sortable-ghost {
  transition: none !important;
}
.sortable-fallback {
  pointer-events: none !important;
}
body.kanban-dragging .kanban-card:hover {
  transform: none;
}

.kanban-card-link {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: inherit;
}

.kanban-card-avatar {
  flex-shrink: 0;
}

.kanban-card-body {
  min-width: 0;
  flex: 1;
}

.kanban-card-name {
  font-weight: 700;
  color: var(--xowa-text);
  font-size: 0.875rem;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kanban-card-beruf {
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 500;
  margin: 0.15rem 0 0 0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kanban-card-verf {
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0.3rem 0 0 0;
  display: inline-block;
}

.kanban-card-verf-ok {
  color: #15803d;
}

.kanban-card-verf-warn {
  color: #b91c1c;
}

.kanban-card-verf-info {
  color: #15803d;
  font-weight: 700;
}

.kanban-card-verf-muted {
  color: #b91c1c;
  font-weight: 700;
}

.kanban-card-ghost {
  opacity: 0.45;
  background: var(--xowa-gold-bg) !important;
  border-color: var(--xowa-gold) !important;
}
.sortable-fallback.kanban-card {
  cursor: grabbing;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.kanban-card-dragging {
  cursor: grabbing;
  box-shadow: 0 12px 32px rgba(45, 45, 45, 0.18);
}

/* ─── Kandidaten-Karten-Übersicht ────────────────────────────── */
.app-shell:has(.kandidaten-uebersicht-main) {
  height: 100dvh;
  overflow: hidden;
}
.app-main.kandidaten-uebersicht-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.kandidaten-uebersicht-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0.7rem;
}
.kandidaten-uebersicht-page > .page-hero,
.kandidaten-board-page > .page-hero {
  padding: 0.55rem 1rem;
}
.kandidaten-uebersicht-page > .page-hero h1,
.kandidaten-board-page > .page-hero h1 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.25;
}
.kandidaten-uebersicht-page > .page-hero .btn-primary,
.kandidaten-board-page > .page-hero .btn-primary {
  padding: 0.48rem 0.95rem;
}
.kandidaten-uebersicht-page > .abteilung-tabs,
.kandidaten-board-page > .abteilung-tabs {
  margin-bottom: 0;
  padding: 0.28rem;
  gap: 0.4rem;
}
.kandidaten-uebersicht-page > .abteilung-tabs .abteilung-tab,
.kandidaten-board-page > .abteilung-tabs .abteilung-tab {
  padding: 0.38rem 0.85rem;
  font-size: 0.84rem;
  gap: 0.4rem;
}
.kandidaten-uebersicht-page > .abteilung-tabs .abteilung-tab i,
.kandidaten-board-page > .abteilung-tabs .abteilung-tab i {
  font-size: 0.8rem;
}
.kandidaten-uebersicht-page > .abteilung-tabs .abteilung-tab-count,
.kandidaten-board-page > .abteilung-tabs .abteilung-tab-count {
  min-width: 1.25rem;
  height: 1.25rem;
  font-size: 0.68rem;
  padding: 0 0.35rem;
}
.kandidaten-uebersicht-page > .kand-toolbar,
.kandidaten-board-page > .kand-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 0.65rem 0.85rem;
}
.kandidaten-uebersicht-page .kand-toolbar .kandidaten-buckets {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0.4rem;
  align-items: center;
}
.kandidaten-uebersicht-page .kand-toolbar .kandidaten-bucket {
  top: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #E8DBC0;
  box-shadow: none;
  font-size: 0.82rem;
  gap: 0.4rem;
}
.kandidaten-uebersicht-page .kand-toolbar .kandidaten-bucket.is-active {
  border-color: #C4A962;
  box-shadow: inset 0 0 0 1px #C4A962;
}
.kandidaten-uebersicht-page .kand-toolbar-form,
.kandidaten-board-page .kand-toolbar-form {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.kandidaten-uebersicht-page .kand-toolbar-form .form-label,
.kandidaten-board-page .kand-toolbar-form .form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kandidaten-uebersicht-page .kand-toolbar-form .form-input,
.kandidaten-board-page .kand-toolbar-form .form-input {
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
  font-size: 0.84rem;
}
.kandidaten-uebersicht-page .kand-toolbar-form .vakanz-view-toggle {
  margin-left: auto;
}
.kandidaten-uebersicht-page #kandidaten-ansicht-scope {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.kandidaten-uebersicht-page #kandidaten-pool-scope {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.5rem;
}
.kandidaten-uebersicht-page #kandMapWrap:not(.hidden) {
  flex: 1 1 auto;
  min-height: 0;
}
.kandidaten-uebersicht-page #kandMapWrap:not(.hidden) .vakanz-map {
  height: 100%;
  min-height: 0;
}
.kandidaten-uebersicht-page #kandMapWrap:not(.hidden) .vakanz-map-side {
  max-height: none;
  height: 100%;
}
.bulk-recall-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(196, 169, 98, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--xowa-dark), var(--xowa-darker));
  color: #fff;
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.25);
}
.bulk-recall-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.bulk-recall-info span {
  font-size: 16px;
  color: var(--xowa-gold-light);
}
.bulk-recall-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
  cursor: pointer;
}
.bulk-recall-link:hover { color: #fff; }
.bulk-recall-link:focus-visible {
  outline: 2px solid rgba(196, 169, 98, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}
.bulk-recall-actions,
.bulk-recall-actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: auto;
  min-width: 0;
}
.bulk-recall-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: none;
}
.bulk-recall-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.bulk-recall-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: none;
}
.bulk-recall-actions .btn-danger {
  background: rgba(200, 60, 60, 0.16);
  color: #f2c4c4;
  border: 1px solid rgba(220, 110, 110, 0.5);
}
.bulk-recall-actions .btn-danger:hover {
  background: rgb(170, 40, 40);
  color: #fff;
  transform: none;
}
.bulk-recall-actions .btn-primary {
  padding: 8px 16px;
  border-radius: 8px;
}
.bulk-recall-actions .btn-primary i {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 14px;
}
.kandidaten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

/* Alle Karten einer Zeile exakt gleich hoch (Wrap füllt die Grid-Zelle,
   die Karte füllt den Wrap; Footer sitzt dadurch immer auf gleicher Höhe). */
.kandidaten-grid > .uebersicht-card-wrap {
  display: flex;
  flex-direction: column;
}
.kandidaten-grid > .uebersicht-card-wrap > .uebersicht-card {
  flex: 1 1 auto;
  min-height: 8.5rem;
}
.kandidaten-grid > .uebersicht-card-wrap.xowa-karte-neu {
  animation: xowa-karte-ein 0.45s ease;
}
@keyframes xowa-karte-ein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kandidaten-grid > .uebersicht-card-wrap.xowa-karte-neu {
    animation: none;
  }
}

.kandidaten-grid.is-list-view {
  --kand-cols: 32px 40px minmax(12rem, 1.2fr) minmax(12rem, 1.3fr) minmax(11rem, 1.2fr) 7.5rem 5.5rem;
  --kand-col-gap: 24px;
  --kand-row-pad-x: 16px;
  grid-template-columns: 1fr;
  gap: 8px;
}
.kandidaten-grid:not(.is-list-view) .kandidaten-list-header,
.kandidaten-grid:not(.is-list-view) .kandidaten-list-row {
  display: none !important;
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap > .uebersicht-card,
.kandidaten-grid.is-list-view > .uebersicht-card-wrap > .uebersicht-card-nr {
  display: none !important;
}
.kandidaten-grid.is-list-view .kandidaten-list-header,
.kandidaten-grid.is-list-view > .uebersicht-card-wrap {
  display: grid;
  grid-template-columns: var(--kand-cols);
  column-gap: var(--kand-col-gap);
  padding-left: var(--kand-row-pad-x);
  padding-right: var(--kand-row-pad-x);
  box-sizing: border-box;
}
.kandidaten-grid.is-list-view .kandidaten-list-header {
  align-items: end;
  padding-top: 0;
  padding-bottom: 4px;
  min-height: 20px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xowa-muted);
}
.kandidaten-grid.is-list-view .kandidaten-list-header > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap {
  align-items: center;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: #fff;
  border: 1px solid rgb(235, 235, 235);
  border-bottom-width: 3px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap.is-selected {
  outline: 2px solid #1f8a3f;
  outline-offset: -2px;
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap:hover {
  border-color: var(--xowa-gold-border);
  box-shadow: 0 6px 16px rgba(45, 45, 45, 0.08);
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap:has(.uebersicht-card-ok) {
  border-bottom-color: #22c55e;
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap:has(.uebersicht-card-warn) {
  border-bottom-color: #f97316;
}
.kandidaten-grid.is-list-view .kandidaten-list-row {
  display: contents;
}
.kandidaten-grid.is-list-view > .uebersicht-card-wrap > .uebersicht-card-check,
.kandidaten-grid.is-list-view .kandidaten-list-check {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 32px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kandidaten-grid.is-list-view .kandidaten-list-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 20px;
}
.kandidaten-grid.is-list-view .kandidaten-list-avatar .kandidat-avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
  flex-shrink: 0;
}
.kandidaten-grid.is-list-view .kandidaten-list-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--xowa-text);
}
.kandidaten-grid.is-list-view .kandidaten-list-beruf {
  font-size: 13px;
  font-weight: 500;
  color: #3b82f6;
}
.kandidaten-grid.is-list-view .kandidaten-list-ort {
  font-size: 13px;
  font-weight: 500;
  color: var(--xowa-text);
}
.kandidaten-grid.is-list-view .kandidaten-list-ort .uebersicht-card-ort-link i {
  margin-right: 6px;
}
.kandidaten-grid.is-list-view .kandidaten-list-status {
  font-size: 13px;
}
.kandidaten-grid.is-list-view .kandidaten-list-nr {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.uebersicht-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid rgb(235, 235, 235);
  border-bottom: 4px solid transparent;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.uebersicht-card:hover {
  border-color: var(--xowa-gold-border);
  box-shadow: 0 6px 16px rgba(45, 45, 45, 0.08);
  transform: translateY(-1px);
}

/* Body füllt die freie Höhe → Footer „Verfügbarkeit“ sitzt immer unten links (Grid + Kanban) */
.uebersicht-card > .uebersicht-card-body {
  flex: 1 1 auto;
  min-height: 0;
}

.uebersicht-card-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.8rem;
  position: relative;
}

/* Avatar in der Karten-Übersicht: kompakt und quadratisch */
.uebersicht-card .kandidat-avatar {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 0.95rem;
  border-radius: 0.4rem;
  border-width: 1px;
  border-color: #e5e7eb;
  flex-shrink: 0;
}

.uebersicht-card .kandidat-avatar img {
  border-radius: 0.3rem;
}

.uebersicht-card-info {
  min-width: 0;
  flex: 1;
}

.uebersicht-card-id {
  font-weight: 700;
  color: var(--xowa-text);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  /* Name bleibt einzeilig; wenn er wirklich nicht passt → "…" statt Umbruch.
     So bleiben alle Karten exakt gleich hoch (symmetrisches Raster). */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uebersicht-card-beruf {
  font-size: 0.78rem;
  font-weight: 500;
  color: #3b82f6;
  margin: 0.2rem 0 0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.uebersicht-card-ort {
  font-size: 0.78rem;
  color: var(--xowa-text);
  margin: 0.25rem 0 0;
  line-height: 1.25;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uebersicht-card-ort-link {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.uebersicht-card-ort-link:hover {
  color: #C4A962;
  border-bottom-color: #C4A962;
}

.uebersicht-card-icon {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  color: #16a34a;
  font-size: 0.9rem;
}

/* Markier-Box der Kandidaten-Übersicht: dezent oben links. Steht im
   Stylesheet im Kopf, damit sie beim Laden langer Listen nicht ungestylt
   über den Karten erscheint. */
.uebersicht-card-wrap { position: relative; }
.uebersicht-card-check {
  position: absolute; top: .3rem; left: .3rem; z-index: 4;
  width: 18px; height: 18px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(45, 50, 65, .1);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: .55;
  transition: background .15s, border-color .15s, opacity .15s;
}
.uebersicht-card-check input { width: 12px; height: 12px; margin: 0; cursor: pointer; }
.uebersicht-card-wrap:hover .uebersicht-card-check,
.uebersicht-card-check:focus-within,
.uebersicht-card-wrap.is-selected .uebersicht-card-check { opacity: 1; }
.uebersicht-card-wrap.is-selected .uebersicht-card-check {
  background: #1f8a3f; border-color: #1f8a3f;
}
.uebersicht-card-wrap.is-selected .uebersicht-card {
  outline: 2px solid #1f8a3f; outline-offset: -2px;
}

/* Kandidaten-Nummer als dezenter Eck-Hinweis oben rechts (Übersicht + Kanban-Board) */
.uebersicht-card-nr {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  z-index: 5;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
/* Platziert-Icon nach unten rücken, wenn ein Nummern-Badge davor steht. */
.uebersicht-card-nr ~ .uebersicht-card .uebersicht-card-icon,
.uebersicht-card-nr ~ .uebersicht-card-body .uebersicht-card-icon {
  top: 2.05rem;
}
/* Name darf nie unter/an die K-Nummer laufen: Platz oben rechts freihalten. */
.uebersicht-card-nr ~ .uebersicht-card-body .uebersicht-card-id,
.uebersicht-card-nr ~ .uebersicht-card .uebersicht-card-id {
  padding-right: 3.6rem;
}

.uebersicht-card-footer {
  border-top: 1px solid #f0eee9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  gap: 0.15rem 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem 0.55rem;
  box-sizing: border-box;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--xowa-muted);
  background: #fafaf6;
  position: relative;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.uebersicht-card-footer strong {
  font-weight: 700;
  margin: 0;
}

.uebersicht-card-verf-ok {
  color: #15803d;
}

.uebersicht-card-verf-warn {
  color: #b91c1c;
}

/* ============================================================
   Vakanz-Karten – Stellen-Listen-Format
   ============================================================ */
.vakanz-card {
  border: 1px solid #e8dbc0;
  border-radius: 0.75rem;
  background: #fffdf8;
  color: var(--xowa-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

/* Firmen-/Kundenname: dezente, editoriale Typografie mit Gold-Akzent */
.vakanz-kunde {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #C4A962;
  margin-bottom: 0.35rem;
}
.vakanz-kunde i {
  /* Icon nutzt Tailwind-Klassen im Template */
  display: inline-block;
}
/* Auf der Detailseite deutlich präsenter: grösser und in dunklerem Gold. */
.vakanz-kunde--detail {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #8a6d2f;
  margin-bottom: 0.5rem;
}
.vakanz-kunde--detail i {
  color: #C4A962;
}

/* Radio-Pillen im Stellen-Formular (Start-Auswahl) */
.vakanz-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  cursor: pointer;
  background: white;
  transition: all 0.15s ease;
  user-select: none;
  font-size: 0.875rem;
}
.vakanz-radio:hover {
  border-color: #C4A962;
}
.vakanz-radio input[type="radio"] {
  accent-color: #C4A962;
  margin: 0;
}
.vakanz-radio:has(input:checked) {
  border-color: #C4A962;
  background: #fdf8eb;
  color: #2D2D2D;
  font-weight: 600;
}

/* Schritt-Nummern im Stellen-Formular */
.vakanz-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  background: #C4A962;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.vakanz-titel {
  /* Plakette + Titel als zwei Spalten: bricht der Titel um, beginnt jede
     weitere Zeile bündig unter der ersten Titelzeile — nie unter der Zahl. */
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xowa-text);
  line-height: 1.25;
  margin: 0;
}

.vakanz-titel-text {
  min-width: 0;
}

.vakanz-anzahl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 0.4rem;
  background: #C4A962;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: 0.4rem;
}

.vakanz-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.6rem;
  border-radius: 9999px;
  background: rgba(196, 169, 98, 0.18);
  color: #C4A962;
  font-weight: 700;
  font-size: 0.85rem;
  vertical-align: middle;
  border: 1px solid transparent;
}
.vakanz-counter--offen {
  background: #ecfccb;
  color: #4d7c0f;
  border-color: #d9f99d;
}
.vakanz-counter--besetzt {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.vakanz-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.vakanz-status-offen { background: #dcfce7; color: #15803d; }
.vakanz-status-besetzt { background: #dbeafe; color: #1d4ed8; }
.vakanz-status-geschlossen { background: #f3f4f6; color: #4b5563; }

/* Besetzt-Karte: dezent schraffierter Hintergrund + Pill oben rechts */
.vakanz-card-besetzt {
  position: relative;
  opacity: 0.95;
  border-color: rgba(31, 41, 55, 0.18);
  background-color: #fafafa;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.085) 0,
    rgba(31, 41, 55, 0.085) 3px,
    transparent 3px,
    transparent 14px
  );
}

.vakanz-card-besetzt .vakanz-titel {
  color: rgba(31, 41, 55, 0.72);
}

.vakanz-card-besetzt .vakanz-anzahl {
  background: rgba(196, 169, 98, 0.25);
  color: rgba(31, 41, 55, 0.65);
}

/* «BESETZT»-Pill: dunkel, mit grünem Check — klickbar = Reset auf Offen */
.vakanz-status-pill-besetzt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #111827;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.34rem 0.7rem 0.34rem 0.45rem;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms, transform 120ms;
}

.vakanz-status-pill-besetzt:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.vakanz-status-pill-besetzt .fa-check,
.vakanz-status-pill-besetzt .fa-check-circle {
  color: #22c55e;
  font-size: 0.95rem;
}

/* Ansicht-Umschalter (Karten / Liste) — segmentierte Pille */
.vakanz-view-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #ffffff;
  height: 2.6rem;
}
.vakanz-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.vakanz-view-btn + .vakanz-view-btn {
  border-left: 1px solid #e5e7eb;
}
.vakanz-view-btn:hover {
  color: #C4A962;
}
.vakanz-view-btn.is-active {
  background: #fdf8eb;
  color: #C4A962;
}
.vakanz-view-btn:focus-visible {
  outline: 2px solid #C4A962;
  outline-offset: -2px;
  z-index: 1;
}

/* Status-Pill: in der Kartenansicht oben rechts schwebend platziert,
   damit Titel und Status sich nie ueberlappen. */
.vakanz-card { position: relative; }
.vakanz-card-head { padding-right: 6rem; }
.vakanz-card-status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.vakanz-card--vorschlaege {
  cursor: pointer;
}
.vakanz-card--vorschlaege .vakanz-card-vorschlaege {
  cursor: default;
}
.vakanz-card-vorschlaege {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E8DBC0;
}
.vakanz-card-vorschlaege-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B6B6B;
}
.vakanz-card-vorschlaege-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: #FAF6ED;
  color: #C4A962;
  font-size: 0.7rem;
  font-weight: 700;
}
.vakanz-card-vorschlaege-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 20rem;
}
.vakanz-card-vorschlag {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px;
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #E8DBC0;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.vakanz-card-vorschlag:hover {
  background: #FAF6ED;
  border-color: #C4A962;
}
.vakanz-card-vorschlag:active {
  transform: scale(0.99);
}
.vakanz-card-vorschlag:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.35);
}
.vakanz-card-vorschlag-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vakanz-card-vorschlag-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #C4A962;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vakanz-card-vorschlag-beruf {
  font-size: 0.75rem;
  color: #6B6B6B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vakanz-card-vorschlaege-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #6B6B6B;
}

.vakanz-einsatz {
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 0.75rem;
  border: 1px solid #E8DBC0;
  background: #FAF6ED;
}
.vakanz-einsatz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.vakanz-einsatz-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2D2D2D;
}
.vakanz-einsatz-title i {
  color: #C4A962;
}
.vakanz-einsatz-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #E8DBC0;
  color: #C4A962;
  font-size: 0.75rem;
  font-weight: 700;
}
.vakanz-einsatz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vakanz-einsatz-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border-radius: 0.6rem;
  background: #fff;
  border: 1px solid #E8DBC0;
}
.vakanz-einsatz-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
a.vakanz-einsatz-link:hover .vakanz-einsatz-name {
  color: #C4A962;
}
a.vakanz-einsatz-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.35);
  border-radius: 0.5rem;
}
.vakanz-einsatz-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vakanz-einsatz-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2D2D2D;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vakanz-einsatz-sub {
  font-size: 0.75rem;
  color: #6B6B6B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vakanz-einsatz-split {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.45rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.625rem;
  font-weight: 700;
}
.vakanz-einsatz-empty {
  margin: 0;
  font-size: 0.875rem;
  color: #6B6B6B;
}

.vakanz-card-besetzt-durch {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #E8DBC0;
}
.vakanz-card-besetzt-durch-label {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B6B6B;
}
.vakanz-card-besetzt-durch-namen {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2D2D2D;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vakanz-card-besetzt-durch-namen.is-empty {
  font-weight: 400;
  color: #6B6B6B;
}
.vakanz-view.is-list-view .vakanz-card-besetzt-durch {
  display: none;
}

/* ── Listenansicht: kompakte Zeilen mit dezenten Trennlinien ── */
/* ============================================================
   LISTENANSICHT = echte Tabelle: 1 Kopfzeile + je Vakanz 1 Zeile,
   alle Werte nebeneinander in fixen Spalten. Gemeinsames Raster
   (--vakanz-cols) fuer Kopfzeile UND Karten -> perfekte Flucht.
   ============================================================ */
.vakanz-view.is-list-view {
  --vakanz-cols:
    [titel] minmax(9rem, 13rem)
    [firma] minmax(7rem, 12rem)
    [auf] minmax(4.5rem, 7rem)
    [nach] minmax(7rem, 11rem)
    [arbeit] minmax(9rem, 1fr)
    [mobilitaet] minmax(6rem, 10rem)
    [erstellt] minmax(5rem, 8rem)
    [status] minmax(5.5rem, max-content);
  --vakanz-col-gap: 1.1rem;
  display: flex !important;
  flex-direction: column;
  gap: 0.35rem;
}
/* Kopfzeile nur in der Listenansicht sichtbar. */
.vakanz-list-header {
  display: grid;
  grid-template-columns: var(--vakanz-cols);
  column-gap: var(--vakanz-col-gap);
  align-items: center;
  padding: 0.3rem 1.1rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--xowa-muted);
}
.vakanz-list-header > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Jede Karte = eine Tabellenzeile mit demselben Spaltenraster. */
.vakanz-view.is-list-view .vakanz-card {
  display: grid;
  grid-template-columns: var(--vakanz-cols);
  column-gap: var(--vakanz-col-gap);
  align-items: center;
  padding: 0.6rem 1.1rem;
}
.vakanz-view.is-list-view .vakanz-card-head {
  margin-bottom: 0 !important;
  padding-right: 0;
  grid-column: titel;
  min-width: 0;
}
.vakanz-view.is-list-view .vakanz-titel {
  font-size: 0.9rem;
  overflow: hidden;
}
.vakanz-view.is-list-view .vakanz-titel-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* dl löst sich auf -> ihre Zeilen werden direkte Spalten der Karte. */
.vakanz-view.is-list-view .vakanz-list {
  display: contents;
}
.vakanz-view.is-list-view .vakanz-row {
  display: block;
  min-width: 0;
}
.vakanz-view.is-list-view .vakanz-row--firma { grid-column: firma; }
.vakanz-view.is-list-view .vakanz-row--auf { grid-column: auf; }
.vakanz-view.is-list-view .vakanz-row--nach { grid-column: nach; }
.vakanz-view.is-list-view .vakanz-row--arbeit { grid-column: arbeit; }
.vakanz-view.is-list-view .vakanz-row--mobilitaet { grid-column: mobilitaet; }
.vakanz-view.is-list-view .vakanz-row--erstellt { grid-column: erstellt; }
/* Labels (FIRMA:/AUF:/…) ausblenden – die Kopfzeile zeigt die Spalten. */
.vakanz-view.is-list-view .vakanz-row dt {
  display: none;
}
.vakanz-view.is-list-view .vakanz-row dd {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 0.82rem;
}
/* Status sitzt in seiner eigenen Spalte ganz rechts. */
.vakanz-view.is-list-view .vakanz-card-status {
  position: static;
  grid-column: status;
  justify-self: end;
  padding-left: 0;
}
.vakanz-view.is-list-view .vakanz-card-vorschlaege {
  display: none;
}

/* Kopfzeile ausserhalb der Listenansicht ausblenden. */
.vakanz-view:not(.is-list-view) .vakanz-list-header { display: none; }

@media (max-width: 820px) {
  /* Auf schmalen Screens: Tabelle aufloesen, wieder als kompakte Karten. */
  .vakanz-view.is-list-view .vakanz-list-header { display: none; }
  .vakanz-view.is-list-view .vakanz-card {
    display: flex;
    flex-flow: row wrap;
    gap: 0.15rem 0.9rem;
  }
  .vakanz-view.is-list-view .vakanz-card-head { flex: 1 1 100%; grid-column: auto; }
  .vakanz-view.is-list-view .vakanz-list { display: contents; }
  .vakanz-view.is-list-view .vakanz-row { grid-column: auto; }
  .vakanz-view.is-list-view .vakanz-row dt {
    display: inline;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--xowa-muted);
    margin-right: 0.25rem;
  }
  .vakanz-view.is-list-view .vakanz-row dd { display: inline; }
  .vakanz-view.is-list-view .vakanz-card-status { grid-column: auto; margin-left: auto; }
}

.vakanz-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.85rem;
}

.vakanz-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.4rem;
  align-items: start;
}

.vakanz-row dt {
  color: var(--xowa-muted);
  font-weight: 600;
}

.vakanz-row dd {
  margin: 0;
  color: var(--xowa-text);
  line-height: 1.35;
}

/* Kachel: gleiche Zeilen, klarere Spalte und mehr Luft. */
.vakanz-view:not(.is-list-view) .vakanz-card {
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(45, 45, 45, 0.045);
}

.vakanz-view:not(.is-list-view) .vakanz-card-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0e6d2;
}

.vakanz-view:not(.is-list-view) .vakanz-list {
  gap: 0.62rem;
}

.vakanz-view:not(.is-list-view) .vakanz-row {
  grid-template-columns: 6.6rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
}

.vakanz-view:not(.is-list-view) .vakanz-row dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a8660;
  white-space: nowrap;
}

.vakanz-view:not(.is-list-view) .vakanz-row dd {
  font-size: 0.9rem;
  line-height: 1.45;
}

.vakanz-view:not(.is-list-view) .vakanz-row--arbeit dd {
  color: #3f3a32;
}

/* Eckdaten-Kasten auf der Stellen-Detailseite: ruhige, einheitliche Labels. */
.vakanz-detail-fakten {
  gap: 0.55rem;
}
.vakanz-detail-fakten .vakanz-row {
  grid-template-columns: 7.5rem 1fr;
}
.vakanz-detail-fakten .vakanz-row dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}
.vakanz-detail-fakten .vakanz-row dd {
  font-size: 0.9rem;
}

.vakanz-ort {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.vakanz-ort:hover {
  color: #C4A962;
  border-bottom-color: #C4A962;
}

.uebersicht-card-verf-info {
  color: #15803d;
  font-weight: 700;
}

.uebersicht-card-verf-muted {
  color: #b91c1c;
  font-weight: 700;
}

/* Farbiger Akzent unten je nach Verfügbarkeit (untere Kartenkante, immer gleiche Höhe) */
.uebersicht-card-ok {
  border-bottom-color: #22c55e;
}

.uebersicht-card-warn {
  border-bottom-color: #f97316;
}

.uebersicht-card-info {
  border-bottom-color: #22c55e;
}

.uebersicht-card-muted {
  border-bottom-color: #b91c1c;
}

/* ─── Karten-Bewertung (Sterne unten in der Pipeline-Karte) ─── */
.kanban-card-bewertung {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #C4A962;
}

.kanban-card-bewertung .kanban-card-star-empty {
  color: #d8d2c2;
}

.kanban-card-bewertung-num {
  margin-left: 6px;
  color: #6B6B6B;
  font-weight: 600;
}

/* ─── Modal: „Einsatz zu Ende“ ────────────────────────────────── */
.einsatz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.einsatz-modal-backdrop[hidden] {
  display: none;
}

body.einsatz-modal-open {
  overflow: hidden;
}

.einsatz-modal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.einsatz-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
}

.einsatz-modal-section {
  margin-bottom: 16px;
}

.einsatz-modal-section + .einsatz-modal-section {
  border-top: 1px solid #f1eee7;
  padding-top: 16px;
}

.einsatz-modal-label {
  font-size: 12px;
  font-weight: 600;
  color: #2D2D2D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.einsatz-modal-text {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 10px;
}

.einsatz-modal-input {
  width: 100%;
}

.einsatz-modal-counter {
  margin: 6px 0 0;
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
}

.einsatz-modal-error {
  margin: -4px 0 12px;
  font-size: 13px;
  color: #b91c1c;
  background: #fee2e2;
  padding: 8px 10px;
  border-radius: 8px;
}

.einsatz-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.platzierung-firma-suche {
  display: block;
  margin: 12px 0 8px;
}
.platzierung-firma-suche input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #E8DBC0;
  border-radius: 10px;
  font-size: 14px;
}
.platzierung-firma-suche input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.35);
  border-color: #C4A962;
}
.platzierung-firma-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  max-height: 16rem;
  overflow-y: auto;
}
.platzierung-firma-leer {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #6B6B6B;
}
.platzierung-firma-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.platzierung-firma-opt:hover {
  border-color: #d6c48a;
}
.platzierung-firma-opt.is-on {
  border-color: #C4A962;
  background: #FAF6ED;
  box-shadow: 0 0 0 1px #C4A962;
}
.platzierung-firma-opt-keine {
  border-style: dashed;
}
.platzierung-firma-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.platzierung-firma-opt-firma {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}
.platzierung-firma-opt-score {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #C4A962;
}
.platzierung-firma-opt-meta {
  font-size: 12px;
  color: #6b7280;
}

.einsatz-stars {
  display: inline-flex;
  gap: 6px;
  margin-top: 4px;
}

.einsatz-star {
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #d8d2c2;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.1s ease;
}

.einsatz-star:hover {
  transform: scale(1.08);
}

.einsatz-star.einsatz-star-on {
  color: #C4A962;
}

/* ─── Kandidat-Profilkopf: Durchschnittliche Sternen-Bewertung ─── */
.kandidat-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #C4A962;
  margin: 0;
}

.kandidat-rating i {
  font-size: 13px;
}

.kandidat-rating-empty,
.kandidat-rating-empty i {
  color: #d8d2c2;
}

.kandidat-rating-num {
  margin-left: 6px;
  color: #2D2D2D;
  font-weight: 600;
}

.kandidat-rating-count {
  margin-left: 4px;
  color: #6B6B6B;
  font-size: 12px;
  font-weight: 500;
}

/* ─── Kanban-Karte: Hover-Popover mit Detail-Infos ────────────── */
.kanban-card.uebersicht-card {
  position: relative;
  overflow: visible; /* Popover darf nach aussen ragen */
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.kanban-wrapper .uebersicht-card > .uebersicht-card-body {
  flex: 0 0 auto;
  cursor: inherit;
  color: inherit;
  text-decoration: none;
}

.kanban-wrapper .uebersicht-card-footer {
  margin-top: 0;
}

/* Board: Kandidat per Klick in Seitenleiste — Hover-Kurz-Popover aus */
.kanban-wrapper .kanban-card-popover {
  display: none !important;
}

.kanban-card-popover {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  width: 290px;
  max-width: 80vw;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  padding: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #1f2937;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.2s;
  z-index: 50;
}

/* In der letzten Spalte (Platziert) Popover nach links zeigen lassen */
.kanban-col:last-child .kanban-card-popover {
  left: auto;
  right: calc(100% + 12px);
}

.kanban-card.uebersicht-card:hover .kanban-card-popover,
.kanban-card.uebersicht-card:focus-within .kanban-card-popover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s, 0.35s, 0s;
}

/* Während des Drags Popover sofort verstecken, damit es nicht stört */
body.kanban-dragging .kanban-card-popover {
  display: none !important;
}

.kanban-popover-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1eee7;
}

.kanban-popover-head-text {
  min-width: 0;
}

.kanban-popover-name {
  font-weight: 700;
  margin: 0;
  font-size: 14px;
  color: #1f2937;
}

.kanban-popover-beruf {
  margin: 2px 0 0;
  font-size: 12px;
  color: #3b82f6;
  font-weight: 500;
}

.kanban-popover-rating {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #C4A962;
}

.kanban-popover-rating span {
  margin-left: 5px;
  color: #6B6B6B;
  font-weight: 600;
}

.kanban-popover-star-empty {
  color: #d8d2c2;
}

.kanban-popover-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kanban-popover-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #374151;
}

.kanban-popover-list li i {
  width: 14px;
  color: #C4A962;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.kanban-popover-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 220px;
}

.kanban-popover-verf-ok    { color: #15803d; font-weight: 700; }
.kanban-popover-verf-warn  { color: #b91c1c; font-weight: 700; }
.kanban-popover-verf-info  { color: #15803d; font-weight: 700; }
.kanban-popover-verf-muted { color: #b91c1c; font-weight: 700; }

.kanban-popover-summary {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f1eee7;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.45;
}

/* ─── Kanban: Kandidaten-Seitenleiste (volle Detailansicht) ───── */
.kandidat-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(45, 45, 45, 0.38);
  cursor: pointer;
}

.kandidat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 111;
  display: flex;
  flex-direction: column;
  width: min(580px, calc(100vw - 12px));
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background: #faf8f5;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
}

.kandidat-drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8dbc0;
  background: #fff;
}

.kandidat-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d2d2d;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kandidat-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kandidat-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f4f1ea;
  color: #2d2d2d;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.kandidat-drawer-close:hover { background: #e8dbc0; }

.kandidat-drawer-fullbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  background: #f4f1ea;
  border: 1px solid #e8dbc0;
  color: #2d2d2d;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.kandidat-drawer-fullbtn:hover {
  background: #e8dbc0;
  color: #2d2d2d;
}
.kandidat-drawer-fullbtn i { font-size: 0.85rem; }

/* ─── Auth-Layout (Login-Seite ohne Sidebar/Footer-Navigation) ───── */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #FBF9F3 0%, #F4F0E1 100%);
  display: flex;
  flex-direction: column;
  margin: 0;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 26rem;
  background: #ffffff;
  border: 1px solid #E8DBC0;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-logo img {
  height: 5rem;
  width: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  /* Logo-Grafik ist freigestellt (weisses X) – auf der hellen
     Login-Karte braucht es dahinter eine dunkle Kachel. */
  background: #2d2d2d;
  padding: 0.6rem 0.8rem;
  box-sizing: content-box;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2D2D2D;
  margin: 0;
}
.auth-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0;
}
.auth-card form { text-align: left; }
.auth-hint {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  margin-top: 1.25rem;
}
.auth-footer {
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  background: #2D2D2D;
}
.auth-footer p { margin: 0; font-size: 0.875rem; }

/* Visuell versteckter, aber fuer Screenreader sichtbarer Text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kandidat-drawer-loading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6b6b6b;
  background: #fff;
  border-bottom: 1px solid #efe9dc;
}

.kandidat-drawer-loading-spin {
  width: 18px;
  height: 18px;
  border: 2px solid #e8dbc0;
  border-top-color: #c4a962;
  border-radius: 50%;
  animation: kandidat-drawer-spin 0.65s linear infinite;
}

@keyframes kandidat-drawer-spin {
  to {
    transform: rotate(360deg);
  }
}

.kandidat-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

/* Drawer: einspaltiges Detail — keine Überlappungen, klare Label/Wert-Zeilen */
.kandidat-drawer-body .kandidat-detail-root--drawer {
  width: 100%;
  max-width: 100%;
}

.kandidat-drawer-body .kandidat-detail-root--drawer > * {
  min-width: 0;
}

.kandidat-drawer-body .kandidat-detail-root--drawer .content-card {
  min-width: 0;
}

.kandidat-dl-kv > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: start;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1eee7;
}

.kandidat-dl-kv > div:last-child {
  border-bottom: none;
}

.kandidat-dl-kv dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.35;
}

.kandidat-dl-kv dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d2d2d;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.kandidat-dl-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 32%) minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f1eee7;
  font-size: 0.875rem;
}
.kandidat-dl-row:last-child { border-bottom: none; }
.kandidat-dl-row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}
.kandidat-dl-row dd {
  margin: 0;
  font-weight: 600;
  color: #2d2d2d;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Sprachen sauber untereinander gelistet statt als dichter Block */
.kandidat-sprachen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.kandidat-sprache-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.kandidat-sprache-name {
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.3;
}
.kandidat-sprache-niveau {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f0e8;
  border: 1px solid #ece8de;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
}

.kandidat-section {
  padding: 0.55rem 0;
  border-bottom: 1px solid #ece8de;
}
.kandidat-section:first-child { padding-top: 0.15rem; }
.kandidat-section:last-child { border-bottom: none; padding-bottom: 0; }
.kandidat-section-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

/* Kompakteres Padding der Profil-Karten ohne globales p-5 zu ändern */
.kandidat-detail-card {
  padding: 1rem 1.1rem 1.1rem;
  position: relative;
}
/* Kandidaten-Nummer als dezenter Eck-Hinweis oben rechts im Profil */
.kandidat-nr-corner {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  z-index: 3;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Platz für den Bearbeiten-Stift lassen (nur Vollansicht) */
.kandidat-nr-corner--with-edit {
  right: 2.7rem;
}
@media (min-width: 768px) {
  .kandidat-detail-card {
    padding: 1.1rem 1.25rem 1.2rem;
  }
}

/* Drawer-Variante: deutlich engere Abstände, weniger scrollen */
.kandidat-detail-root--drawer .kandidat-detail-card {
  padding: 0.75rem 0.85rem 0.85rem;
}
.kandidat-detail-root--drawer .kandidat-section {
  padding: 0.4rem 0;
}
.kandidat-detail-root--drawer .kandidat-section:first-child {
  padding-top: 0.1rem;
}
.kandidat-detail-root--drawer .kandidat-section-title {
  margin-bottom: 0.2rem;
}
.kandidat-detail-root--drawer .kandidat-dl-row {
  padding: 0.22rem 0;
}
.kandidat-detail-root--drawer .kandidat-beruf-row {
  padding: 0.22rem 0;
}
.kandidat-detail-root--drawer .app-page-stack {
  gap: 0.75rem;
}
.kandidat-detail-root--drawer .grid {
  gap: 0.75rem;
}
/* Auch für nachgelagerte Karten (Arbeitshistorie, Erkannte Berufe …) im
   Drawer das Padding und vertikale Abstände reduzieren. */
.kandidat-detail-root--drawer .content-card {
  padding: 0.85rem 0.95rem;
}
.kandidat-detail-root--drawer .content-card .mb-3 {
  margin-bottom: 0.5rem;
}
.kandidat-detail-root--drawer .content-card table th,
.kandidat-detail-root--drawer .content-card table td {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Dokumente-Sektion: kompakt, dezent — kleine Tiles wie Chips */
.dokumente-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.dokumente-tile-wrap {
  position: relative;
}

.dokumente-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #E8DBC0;
  background: #ffffff;
  color: #2D2D2D;
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1;
  transition: background 120ms, border-color 120ms;
}
.dokumente-tile:hover {
  background: #FAF6ED;
  border-color: #d6c094;
}
.dokumente-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: rgba(196, 169, 98, 0.18);
  color: #b08027;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.dokumente-tile-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #2D2D2D;
  white-space: nowrap;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dokumente-tile-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  margin: 0;
  line-height: 0;
  opacity: 0;
  transition: opacity 120ms;
}
.dokumente-tile-wrap:hover .dokumente-tile-delete,
.dokumente-tile-wrap:focus-within .dokumente-tile-delete {
  opacity: 1;
}
.dokumente-tile-delete button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 1px solid #f1d6d6;
  background: #ffffff;
  color: #b94646;
  font-size: 0.55rem;
  cursor: pointer;
  padding: 0;
}
.dokumente-tile-delete button:hover {
  background: #fdecec;
}

/* ─── Live-Status: Anruf laeuft / geplant ────────────────── */
.anruf-live-status {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.anruf-live-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  border: 1px solid;
}
.anruf-live-row--laeuft {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #155e75;
}
.anruf-live-row--geplant {
  background: #FAF6ED;
  border-color: #E8DBC0;
  color: #6b6244;
}
.anruf-live-dot {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.anruf-live-dot--laeuft {
  background: #06b6d4;
  position: relative;
}
.anruf-live-dot--laeuft::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #06b6d4;
  animation: anrufLivePulse 1.4s ease-out infinite;
}
@keyframes anrufLivePulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
.anruf-live-dot--geplant {
  background: #C4A962;
  color: #fff;
}
.anruf-live-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.35;
}
.anruf-live-text strong {
  font-size: 0.82rem;
  font-weight: 700;
}
.anruf-live-row--laeuft .anruf-live-text strong { color: #155e75; }
.anruf-live-row--geplant .anruf-live-text strong { color: #2D2D2D; }
.anruf-live-time { font-size: 0.7rem; opacity: 0.85; }
.anruf-live-meta { font-size: 0.7rem; color: #6b7280; }
.anruf-live-note {
  font-size: 0.72rem;
  font-style: italic;
  color: #6b6244;
  margin-top: 0.15rem;
}
.anruf-live-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.anruf-live-cancel { margin: 0; }
.anruf-live-cancel button,
.anruf-live-edit-btn {
  background: transparent;
  border: 0;
  color: #b8a87a;
  cursor: pointer;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.anruf-live-cancel button:hover { background: #fff; color: #b91c1c; }
.anruf-live-edit-btn:hover { background: #fff; color: #6b6244; }
/* Plan-Edit-Form: standardmaessig versteckt; im Edit-Modus eingeblendet */
.anruf-live-edit-form {
  display: none;
  flex-basis: 100%;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e8dbc0;
}
.anruf-live-row.is-plan-editing { flex-wrap: wrap; }
.anruf-live-row.is-plan-editing .anruf-live-read { display: none; }
.anruf-live-row.is-plan-editing .anruf-live-edit-form { display: block; }

/* ─── KI-Anruf-Plan-Form ─────────────────────────────────── */
.anruf-plan-form .form-label.text-xs { margin-bottom: 0.1rem; }
.anruf-plan-section {
  background: #fff;
  border: 1px solid #E8DBC0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
}
.anruf-plan-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #2D2D2D;
  cursor: pointer;
}
.anruf-plan-toggle input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #C4A962;
}
.anruf-plan-hint {
  color: #6b7280;
  font-weight: 400;
}

/* ─── Anruf-Verlauf (aufklappbar, in Telefonat-Karte) ───── */
.telefonat-karte {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  border: 1px solid #EAE3D2;
  border-radius: 0.75rem;
  background: #FDFBF6;
  overflow: hidden;
}
.telefonat-karte-kopf {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  background: #FAF6ED;
  cursor: pointer;
}
.telefonat-karte-kopf::-webkit-details-marker { display: none; }
.telefonat-karte-kopf::marker { content: ""; }
.telefonat-karte[open] .telefonat-karte-kopf { border-bottom: 1px solid #EAE3D2; }
.telefonat-karte-kopf span.uppercase { white-space: nowrap; }
.telefonat-karte-hinweis {
  margin: 0;
  padding: 0.35rem 0.75rem 0;
  font-size: 10px;
  color: #B0A183;
}
.telefonat-karte-chevron {
  font-size: 0.7rem;
  color: #8b8267;
  transition: transform 0.15s ease;
}
.telefonat-karte[open] .telefonat-karte-chevron { transform: rotate(180deg); }

.anruf-verlauf {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  border: 1px solid #EAE3D2;
  border-radius: 0.75rem;
  background: #FDFBF6;
  overflow: hidden;
}
.anruf-verlauf-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  background: #FAF6ED;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b6244;
}
.anruf-verlauf[open] .anruf-verlauf-summary { border-bottom: 1px solid #EAE3D2; }
.anruf-verlauf-summary::-webkit-details-marker { display: none; }
.anruf-verlauf-summary:hover { color: #C4A962; }
.anruf-verlauf-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.anruf-verlauf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.05rem;
  padding: 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  background: #FAF6ED;
  color: #C4A962;
  border: 1px solid #E8DBC0;
}
.anruf-verlauf-chevron {
  font-size: 0.7rem;
  color: #8b8267;
  transition: transform 0.15s ease;
}
.anruf-verlauf[open] .anruf-verlauf-chevron { transform: rotate(180deg); }

.anruf-verlauf-list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.75rem 0;
  max-height: 18rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.anruf-verlauf-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #FBF9F3;
  border: 1px solid #ECE5D2;
  border-radius: 0.5rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
}
.anruf-verlauf-item--ki { background: #FFF; border-color: #E8DBC0; }
.anruf-verlauf-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FAF6ED;
  color: #C4A962;
  font-size: 0.7rem;
  border: 1px solid #E8DBC0;
}
.anruf-verlauf-item--manuell .anruf-verlauf-icon {
  background: #f4f1ea;
  color: #6b6244;
}
.anruf-verlauf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.72rem;
  color: #6b6244;
}
.anruf-verlauf-time { font-weight: 700; color: #2D2D2D; }
.anruf-verlauf-author { color: #8b8267; }
.anruf-verlauf-dauer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #6b7280;
}
.anruf-verlauf-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-transform: none;
}
.anruf-verlauf-status--ok {
  background: #ecfccb; color: #4d7c0f; border-color: #d9f99d;
}
.anruf-verlauf-status--warn {
  background: #fef3c7; color: #92400e; border-color: #fde68a;
}
.anruf-verlauf-status--off {
  background: #fee2e2; color: #b91c1c; border-color: #fecaca;
}
.anruf-verlauf-status--neutral {
  background: #f4f4f5; color: #52525b; border-color: #e4e4e7;
}
.anruf-verlauf-snippet {
  margin: 0.2rem 0 0;
  color: #2D2D2D;
  font-size: 0.78rem;
  line-height: 1.4;
}
.anruf-verlauf-actions {
  margin: 0;
  padding: 0.35rem 0.75rem 0.7rem;
  display: flex;
  justify-content: flex-end;
}

/* ─── KI-Anruf-Skripte (Modal) ───────────────────────────── */
.anruf-protokoll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.2rem 0;
  font-size: 0.72rem;
  color: #8b8267;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 500;
}
.anruf-protokoll-link:hover {
  color: #C4A962;
  text-decoration: underline;
}

.anruf-protokoll-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  /* Über der Kandidaten-Leiste (100) und der Seitenleiste (111). */
  z-index: 120;
}
.anruf-protokoll-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  background: #fff;
  border: 1px solid #E8DBC0;
  border-radius: 1rem;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  z-index: 121;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.anruf-protokoll-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E8DBC0;
  background: #FAF6ED;
}
.anruf-protokoll-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2D2D2D;
  margin: 0;
}
.anruf-protokoll-modal-title i { color: #C4A962; font-size: 0.85rem; }
.anruf-protokoll-name {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}
.anruf-protokoll-modal-body {
  padding: 0.85rem 1rem 1rem;
  overflow-y: auto;
  flex: 1;
}
.anruf-protokoll-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: #8b8267;
  font-size: 0.85rem;
}

.anruf-protokoll-item {
  border: 1px solid #ECE5D2;
  border-radius: 0.6rem;
  background: #FBF9F3;
  overflow: hidden;
}
.anruf-protokoll-item[open] { background: #fff; }
.anruf-protokoll-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  user-select: none;
}
.anruf-protokoll-head::-webkit-details-marker { display: none; }
.anruf-protokoll-head-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.anruf-protokoll-time { font-weight: 600; color: #2D2D2D; }
.anruf-protokoll-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.05rem 0.45rem;
  border-radius: 9999px;
  background: #FAF6ED;
  color: #6b6244;
  border: 1px solid #E8DBC0;
}
.anruf-protokoll-meta { color: #6b7280; }
.anruf-protokoll-chevron {
  font-size: 0.75rem;
  color: #8b8267;
  transition: transform 0.15s ease;
}
.anruf-protokoll-item[open] .anruf-protokoll-chevron { transform: rotate(180deg); }

.anruf-protokoll-body {
  padding: 0.4rem 0.8rem 0.8rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}
.anruf-call-id {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0.15rem 0 0;
  min-width: 0;
  max-width: 100%;
}
.anruf-call-id span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A88A3F;
}
.anruf-call-id code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8a8172;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.anruf-protokoll-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8267;
  margin-bottom: 0.2rem;
}
.anruf-protokoll-summary p { color: #2D2D2D; line-height: 1.45; margin: 0; }
.anruf-protokoll-transcript pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #FBF9F3;
  border: 1px solid #ECE5D2;
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #2D2D2D;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
}

/* ─── Inline-Edit-Stift in Karten ─────────────────────────── */
.card-edit {
  position: relative;
}
.card-edit > h2 {
  padding-right: 2.1rem;
}
.card-edit-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: #fff;
  color: #b8b3a4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  z-index: 2;
  opacity: 0.8;
}
.card-edit-toggle:hover {
  background: #f4f1ea;
  color: #6b6244;
  opacity: 1;
}
.card-edit.is-editing .card-edit-toggle {
  background: #FAF6ED;
  color: #C4A962;
  opacity: 1;
}
/* Read-/Edit-Bereich umschalten */
.card-edit-form { display: none; }
.card-edit.is-editing .card-edit-read { display: none; }
.card-edit.is-editing .card-edit-form { display: block; }
.card-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #ECE5D2;
  flex-wrap: wrap;
}
.card-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}
@media (max-width: 640px) {
  .card-edit-grid { grid-template-columns: 1fr; }
}
.card-edit-grid > .full { grid-column: 1 / -1; }
.card-edit-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.15rem;
}
.card-edit-field input,
.card-edit-field select,
.card-edit-field textarea {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #E8DBC0;
  border-radius: 0.35rem;
  background: #fff;
  color: #2D2D2D;
}
.card-edit-field textarea { resize: vertical; min-height: 2.5rem; }

/* Readonly-Display innerhalb eines card-edit-field (z. B. Verfügbarkeit) */
.card-edit-field .card-edit-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px dashed #E0D5BA;
  border-radius: 0.4rem;
  background: #FBF8F1;
  color: #5b4f2f;
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 2.1rem;
  cursor: not-allowed;
  user-select: text;
}
.card-edit-field .card-edit-readonly-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-edit-field .card-edit-readonly-value.is-empty {
  color: #b0a78b;
  font-weight: 400;
  font-style: italic;
}
.card-edit-field .card-edit-readonly-lock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #F4EAD0;
  color: #C4A962;
  font-size: 0.7rem;
}
.card-edit-field .card-edit-hint {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #8e826a;
  line-height: 1.3;
}
.card-edit-field .card-edit-hint.is-info    { color: #6b6b6b; }
.card-edit-field .card-edit-hint.is-success { color: #15803d; font-weight: 500; }
.card-edit-field .card-edit-hint.is-error   { color: #b91c1c; }

/* Arbeitsradius: kombinierter Wert+Einheit-Eingabeblock */
.card-edit-field .kandidat-radius-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 18rem;
  border: 1px solid #E8DBC0;
  border-radius: 0.45rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-edit-field .kandidat-radius-group:focus-within {
  border-color: var(--xowa-gold);
  box-shadow: 0 0 0 2px rgba(196, 169, 98, 0.22);
}
.card-edit-field .kandidat-radius-group > input[type="number"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2D2D2D;
  outline: none;
  border-radius: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.card-edit-field .kandidat-radius-group > input[type="number"]::-webkit-outer-spin-button,
.card-edit-field .kandidat-radius-group > input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.card-edit-field .kandidat-radius-group > input[type="number"]::placeholder {
  color: #b0a78b;
  font-weight: 400;
}
.card-edit-field .kandidat-radius-group > .kandidat-radius-sep {
  flex: 0 0 1px;
  background: #ECE5D2;
}
.card-edit-field .kandidat-radius-group > select {
  flex: 0 0 auto;
  width: auto;
  border: 0;
  background-color: #FAF6ED;
  padding: 0.4rem 1.85rem 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8C6A1F;
  cursor: pointer;
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C4A962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='4,6 8,10 12,6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.card-edit-field .kandidat-radius-group > select:hover {
  background-color: #F4EAD0;
  color: #6B4F18;
}

/* Arbeitshistorie-Editor: einheitliches Look der Tabellen-Inputs */
[data-historie-form] table input[type="text"] {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #E8DBC0;
  border-radius: 0.35rem;
  background: #fff;
  color: #2D2D2D;
}
[data-historie-form] table input[type="text"]:focus {
  outline: none;
  border-color: var(--xowa-gold);
  box-shadow: 0 0 0 2px var(--xowa-gold);
}
[data-historie-form] table input[type="text"]::placeholder { color: #b0a78b; }
[data-historie-form] table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
[data-historie-form] table td { vertical-align: middle; }

/* Telefon-Liste in der Persoenlichen-Daten-Edit-Card */
.btn-tel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  border: 1px solid #E8DBC0;
  background: #fff;
  color: #C4A962;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-tel-action:hover {
  background: #FAF6ED;
  border-color: #C4A962;
}
.btn-tel-action--remove {
  color: #b8a87a;
  border-color: #ECE5D2;
}
.btn-tel-action--remove:hover {
  background: #fdecec;
  border-color: #f1d6d6;
  color: #b91c1c;
}

/* Sticky-Spalte rechts auf der Kandidaten-Detailseite: scrollt intern,
   wenn der Inhalt hoeher ist als der Viewport, damit alles erreichbar bleibt. */
@media (min-width: 1024px) {
  .kandidat-detail-root > .lg\:sticky.lg\:top-4 {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
  }
}

/* Drag & Drop Zone für Dokumente */
.dokumente-dropzone-form {
  width: 100%;
}
.dokumente-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.1rem 1rem;
  border: 2px dashed #d6c094;
  border-radius: 0.75rem;
  background: #fdfbf6;
  color: #6b6244;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.dokumente-dropzone:hover {
  background: #FAF6ED;
  border-color: #C4A962;
  color: #2D2D2D;
}
.dokumente-dropzone--hover {
  background: #FAF1DC;
  border-color: #C4A962;
  color: #2D2D2D;
  border-style: solid;
}
.dokumente-dropzone--busy {
  opacity: 0.75;
  pointer-events: none;
}
.dokumente-dropzone-icon {
  font-size: 1.6rem;
  color: #C4A962;
  margin-bottom: 0.15rem;
}
.dokumente-dropzone-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2D2D2D;
}
.dokumente-dropzone-sub {
  font-size: 0.78rem;
  color: #6b7280;
}
.dokumente-dropzone-hint {
  font-size: 0.7rem;
  color: #8b8267;
  margin-top: 0.2rem;
}
.dokumente-dropzone-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #6b6244;
  background: #fff;
  border: 1px solid #E8DBC0;
  border-radius: 0.4rem;
  padding: 0.25rem 0.6rem;
}

/* Dezenter Upload-Bereich (Legacy, wird von Dropzone abgelöst) */
.dokumente-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border: 1px dashed #d6c094;
  border-radius: 0.45rem;
  background: #fdfbf6;
  font-size: 0.75rem;
}
.dokumente-upload__hint {
  width: 100%;
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}
.dokumente-upload input[type="file"] {
  font-size: 0.72rem;
  color: #4b5563;
  flex: 1 1 11rem;
  min-width: 0;
}
.dokumente-upload input[type="file"]::file-selector-button {
  margin-right: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.3rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.7rem;
  cursor: pointer;
}
.dokumente-upload input[type="file"]::file-selector-button:hover {
  background: #f3f4f6;
}
.dokumente-upload select,
.dokumente-upload input[type="text"] {
  font-size: 0.72rem !important;
  padding: 0.25rem 0.45rem !important;
  flex: 1 1 8rem;
  min-width: 0;
}
.dokumente-upload-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.3rem;
  background: #1f2937;
  color: #ffffff;
  border: 0;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.dokumente-upload-submit:hover {
  background: #111827;
}

.kandidaten-buckets {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0 0.5rem;
  margin-bottom: -1px;
  border-bottom: 1px solid #E8DBC0;
}
.kandidaten-bucket {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #F5EFE2;
  border: 1px solid #E8DBC0;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B6B6B;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  top: 1px;
}
.kandidaten-bucket:hover {
  color: #2D2D2D;
  background: #FAF6ED;
}
.kandidaten-bucket.is-active {
  background: #ffffff;
  color: #2D2D2D;
  font-weight: 600;
  border-color: #E8DBC0;
  border-bottom-color: #ffffff;
  box-shadow: 0 -1px 0 #C4A962 inset;
}
.kandidaten-bucket i {
  color: #C4A962;
}
.kandidaten-bucket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(196, 169, 98, 0.12);
  color: #C4A962;
}
.kandidaten-bucket.is-active .kandidaten-bucket-count {
  background: rgba(196, 169, 98, 0.2);
}

.kandidat-collapsible {
  display: block;
}
.kandidat-collapsible[open] .kandidat-collapsible-chevron {
  transform: rotate(180deg);
}
.kandidat-collapsible-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}
.kandidat-collapsible-summary::-webkit-details-marker { display: none; }
.kandidat-collapsible-title {
  font-weight: 600;
  color: #2D2D2D;
  display: inline-flex;
  align-items: center;
}
.kandidat-collapsible-count {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #FAF6ED;
  color: #C4A962;
  border: 1px solid #E8DBC0;
}
.kandidat-collapsible-chevron {
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

/* ─── Notiz-Chat ──────────────────────────────────────────── */
.kandidat-notizen-card { padding: 1rem 1.1rem 1.1rem; }
.kandidat-notiz-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.6rem 0.7rem;
  background: #FFFFFF;
  border: 1px solid #ECE5D2;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  scroll-behavior: smooth;
}
.kandidat-notiz-feed::-webkit-scrollbar { width: 8px; }
.kandidat-notiz-feed::-webkit-scrollbar-thumb {
  background: #d8d2c2; border-radius: 4px;
}

/* Dashboard: Bento-Karten mit konsistenter Hoehe + Flex-Body */
.bento-card {
  display: flex;
  flex-direction: column;
}
.bento-card > .bento-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;       /* erlaubt internen Scroll */
}
.bento-card .bento-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  color: #6B6B6B;
  padding: 1.25rem;
}

/* Dezente Scrollbar fuer scrollbare Listen in Karten (Dashboard etc.) */
.nice-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 169, 98, 0.55) transparent;
}
.nice-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.nice-scroll::-webkit-scrollbar-track { background: transparent; }
.nice-scroll::-webkit-scrollbar-thumb {
  background: rgba(196, 169, 98, 0.45);
  border-radius: 9999px;
}
.nice-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 169, 98, 0.75);
}
/* Token-Usage: Task-Liste scrollt im Kasten, Kopfzeile bleibt stehen. */
.token-task-scroll {
  max-height: 26rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.token-task-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: inset 0 -1px 0 #E8DBC0;
}
/* Sanfter Fade am unteren Rand, signalisiert "es geht noch mehr". */
.scroll-fade-bottom {
  position: relative;
}
.scroll-fade-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.kandidat-notiz-item {
  position: relative;
  background: #FBF9F3;
  border: 1px solid #ECE5D2;
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem 0.45rem;
  font-size: 0.875rem;
  color: #2D2D2D;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  width: 100%;
  align-self: stretch;
}
.kandidat-notiz-item--own {
  background: #FAF1DC;
  border-color: #E8DBC0;
}
.kandidat-notiz-item--import {
  background: #F4EFE0;
  border-style: dashed;
}
.kandidat-notiz-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.kandidat-notiz-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px dashed #ECE5D2;
  font-size: 0.7rem;
  color: #8b8267;
  flex-wrap: wrap;
}
.kandidat-notiz-author {
  font-weight: 600;
  color: #6b6244;
}
.kandidat-notiz-time { color: #8b8267; }
.kandidat-notiz-delete { margin-left: auto; }
.kandidat-notiz-delete button {
  background: transparent;
  border: 0;
  color: #b8a87a;
  cursor: pointer;
  padding: 0.05rem 0.3rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.kandidat-notiz-delete button:hover {
  background: #fff;
  color: #b91c1c;
}
.kandidat-notiz-form { display: flex; flex-direction: column; gap: 0.5rem; }
.kandidat-notiz-form textarea {
  resize: vertical;
  min-height: 64px;
  font-size: 0.875rem;
  line-height: 1.4;
}
.kandidat-notiz-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.kandidat-notiz-author-hint {
  font-size: 0.75rem;
  color: #8b8267;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ─── Schnittstellen-Karten ───────────────────────────────── */
.schnittstelle-card {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
}
.schnittstelle-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: #d8d2c2;
}
.schnittstelle-card--ok::before { background: #4d7c0f; }
.schnittstelle-card--warn::before { background: #d97706; }
.schnittstelle-card--off::before { background: #b91c1c; }

.schnittstelle-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.schnittstelle-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  background: #FAF6ED;
  border: 1px solid #E8DBC0;
  color: #C4A962;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.schnittstelle-kategorie {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8267;
  margin: 0;
}
.schnittstelle-name {
  font-size: 1rem;
  font-weight: 700;
  color: #2D2D2D;
  margin: 0;
  line-height: 1.2;
}
.schnittstelle-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.schnittstelle-status--ok {
  background: #ecfccb;
  color: #4d7c0f;
  border-color: #d9f99d;
}
.schnittstelle-status--warn {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.schnittstelle-status--off {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.schnittstelle-details {
  margin: 0.4rem 0 0 0;
  border-top: 1px dashed #ECE5D2;
  padding-top: 0.4rem;
}
.schnittstelle-detail-row {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
  font-size: 0.78rem;
  padding: 0.18rem 0;
  border-bottom: 1px dotted #f1eee7;
}
.schnittstelle-detail-row:last-child { border-bottom: none; }
.schnittstelle-detail-row dt {
  color: #6b7280;
  font-weight: 500;
  margin: 0;
}
.schnittstelle-detail-row dd {
  color: #2D2D2D;
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}

.schnittstelle-keys { display: flex; flex-direction: column; gap: 0.3rem; }
.schnittstelle-keys-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8267;
}
.schnittstelle-keys-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.schnittstelle-key {
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #FBF9F3;
  color: #6b6244;
  border: 1px solid #ECE5D2;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
}

.schnittstelle-endpoints { font-size: 0.78rem; }
.schnittstelle-endpoints summary {
  cursor: pointer;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0;
  list-style: none;
  user-select: none;
}
.schnittstelle-endpoints summary::-webkit-details-marker { display: none; }
.schnittstelle-endpoints[open] summary { color: #2D2D2D; font-weight: 600; }
.schnittstelle-endpoints ul {
  list-style: none;
  padding: 0.3rem 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.schnittstelle-endpoints li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #FBF9F3;
  border: 1px solid #ECE5D2;
  border-radius: 0.4rem;
  padding: 0.2rem 0.4rem;
}
.schnittstelle-method {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
  flex-shrink: 0;
}
.schnittstelle-method--get    { background: #e0f2fe; color: #075985; }
.schnittstelle-method--post   { background: #dcfce7; color: #166534; }
.schnittstelle-method--patch  { background: #fef3c7; color: #92400e; }
.schnittstelle-method--delete { background: #fee2e2; color: #b91c1c; }
.schnittstelle-endpoint-label {
  font-family: inherit;
  margin-left: auto;
  color: #6b7280;
  font-size: 0.72rem;
  text-align: right;
}

.schnittstelle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

/* Berufe als klare Tabelle: Beruf | Abschluss | Status | Jahre.
   Keine Icons, keine Badges. Quelle/Datum/Grund nur im Tooltip. */
.kandidat-beruf-tabelle {
  display: flex;
  flex-direction: column;
}
.kandidat-beruf-kopf,
.kandidat-beruf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem 3rem;
  gap: 0.75rem;
  align-items: baseline;
}
.kandidat-beruf-kopf {
  padding: 0 0 0.3rem;
  border-bottom: 1px solid #e5e1d8;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.kandidat-beruf-row {
  padding: 0.42rem 0;
  border-bottom: 1px solid #f1eee7;
}
.kandidat-beruf-row:last-child { border-bottom: none; }
.kandidat-beruf-row .beruf-name {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d2d2d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kandidat-beruf-row .beruf-qual,
.kandidat-beruf-row .beruf-status {
  font-size: 0.78rem;
  color: #4b5563;
  white-space: nowrap;
}
.kandidat-beruf-row .beruf-jahre {
  font-size: 0.78rem;
  color: #4b5563;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kandidat-beruf-row.is-ausgeschlossen .beruf-name {
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-color: #c9ccd3;
}
.kandidat-beruf-row.is-ausgeschlossen .beruf-qual,
.kandidat-beruf-row.is-ausgeschlossen .beruf-status,
.kandidat-beruf-row.is-ausgeschlossen .beruf-jahre { color: #b5b9c2; }

/* Tätigkeiten nach Beruf gruppiert: Beruf links, Tätigkeiten rechts. */
.taetigkeiten-gruppen { display: flex; flex-direction: column; }
.taetigkeiten-gruppe {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid #f1eee7;
  align-items: baseline;
}
.taetigkeiten-gruppe:last-child { border-bottom: none; }
.taetigkeiten-beruf {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d2d2d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taetigkeiten-text { font-size: 0.875rem; color: #4b5563; }
.taetigkeiten-gruppe.is-ausgeschlossen .taetigkeiten-beruf { color: #9ca3af; text-decoration: line-through; }
.taetigkeiten-gruppe.is-ausgeschlossen .taetigkeiten-text { color: #b5b9c2; }
@media (max-width: 640px) {
  .taetigkeiten-gruppe { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* CV-Neu-analysieren-Button (in der KI-Zusammenfassung-Karte) */
.btn-reanalyse-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8C6A1F;
  background: #fff;
  border: 1px solid #E0D5BA;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}
.btn-reanalyse-cv:hover {
  background: #C4A962;
  color: #fff;
  border-color: #C4A962;
}
.btn-reanalyse-cv:active {
  transform: scale(0.97);
}
.btn-reanalyse-cv i {
  font-size: 0.72rem;
}
.ki-reanalyse-form { margin: 0; }

/* Ausbildung-Sektion: Liste der erkannten EFZ/EBA-Abschlüsse */
.kandidat-ausbildung-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.kandidat-ausbildung-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  background: #FBF8F1;
  border: 1px solid #ECE5D2;
  border-radius: 0.5rem;
  min-width: 0;
}
.kandidat-ausbildung-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #F4EAD0;
  color: #C4A962;
  font-size: 0.78rem;
}
.kandidat-ausbildung-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2D2D2D;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kandidat-ausbildung-quali {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8C6A1F;
  background: #fff;
  border: 1px solid #E0D5BA;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  white-space: nowrap;
}
.kandidat-detail-root--drawer .kandidat-ausbildung-item {
  padding: 0.32rem 0.5rem;
}
.kandidat-detail-root--drawer .kandidat-ausbildung-icon {
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.7rem;
}

.kandidat-drawer-meta-card {
  border: 1px solid #e8e4dc;
  box-shadow: 0 1px 3px rgba(45, 45, 45, 0.06);
}

.kandidat-drawer-body .kandidat-drawer-meta-card .btn-danger {
  background-color: #fff;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.kandidat-drawer-body .kandidat-drawer-meta-card .btn-danger:hover {
  background-color: #fef2f2;
  color: #7f1d1d;
  transform: none;
}

body.kandidat-drawer-open {
  overflow: hidden;
}

/* Nationalität: durchsuchbare Combobox (Kandidatenformular) */
.nat-combobox-input-wrap {
  position: relative;
}

.nat-combobox-field {
  width: 100%;
  padding-right: 2.5rem;
}

.nat-combobox-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--xowa-gold);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nat-combobox-toggle:hover {
  background: var(--xowa-gold-bg);
  color: var(--xowa-dark);
}

.nat-combobox-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  max-height: 14rem;
  overflow-y: auto;
  z-index: 100;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid var(--xowa-gold-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(45, 45, 45, 0.14);
}

.nat-combobox-dropdown.nat-combobox-open {
  display: block;
}

.nat-combobox-option {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--xowa-text);
  line-height: 1.35;
}

.nat-combobox-prefix-match {
  font-weight: 600;
  color: var(--xowa-dark);
}

.nat-combobox-empty {
  padding: 0.5rem 0.85rem;
  color: var(--xowa-muted);
  font-size: 0.875rem;
}

/* ============================================================
   Inline-Kalender (für KI-Anruf-Form: Verfügbar ab → Datum)
   Erscheint direkt unter dem Dropdown, an Ort und Stelle.
   ============================================================ */
.inline-cal-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem 0.6rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 18rem;
}
.inline-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.inline-cal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  flex: 1;
  text-align: center;
}
.inline-cal-nav {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inline-cal-nav:hover { background: #e5e7eb; }
.inline-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.inline-cal-weekdays span {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0;
}
.inline-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.inline-cal-day {
  height: 1.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1f2937;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 100ms, color 100ms;
}
.inline-cal-day:hover:not(.inline-cal-day-disabled) {
  background: #faf6ed;
  color: #1f2937;
}
.inline-cal-day-empty {
  visibility: hidden;
}
.inline-cal-day-disabled {
  color: #d1d5db;
  cursor: not-allowed;
}
.inline-cal-day-today {
  border: 1px solid #c4a962;
}
.inline-cal-day-active {
  background: #1f2937;
  color: #ffffff;
}
.inline-cal-day-active:hover {
  background: #1f2937;
  color: #ffffff;
}
.inline-cal-selected {
  margin-top: 0.55rem;
  padding: 0.4rem 0.6rem;
  background: #faf6ed;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  color: #2d2d2d;
  border: 1px solid #e8dbc0;
}
.inline-cal-selected strong {
  color: #1f2937;
}

/* ============================================================
   .info-hint — Kleines, dezentes "i" neben Container-Headern.
   Hover/Touch/Tastatur öffnet einen Tooltip mit Erklaerung.
   Verwendung:
     <h2>... <span class="info-hint" tabindex="0"
                       data-info="Hier siehst du ..."></span></h2>
   ============================================================ */
.info-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 1.2px solid #c9b884;
  color: #c9a867;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  font-family: 'Times New Roman', serif;
  line-height: 1;
  cursor: help;
  margin-left: 0.4rem;
  vertical-align: middle;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.info-hint::before { content: 'i'; }
.info-hint:hover,
.info-hint:focus-visible {
  background: #c9a867;
  border-color: #c9a867;
  color: #fff;
  outline: none;
}
.info-hint::after {
  content: attr(data-info);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #F3F4F7;
  color: #2D2D2D;
  border: 1px solid #E2E5EC;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
/* Kleiner Pfeil oben */
.info-hint::before {
  /* "i"-Buchstabe — Pseudo-Element fuer den Pfeil
     muss separat als ::before fuer ::after umgesetzt werden;
     loesen wir mit Box-Shadow am ::after-Element. */
}
.info-hint:hover::after,
.info-hint:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Wenn das Hint-Icon am rechten Container-Rand sitzt, kippt der
   Tooltip an die linke Seite des Icons, statt aus dem Layout zu ragen. */
.info-hint.info-hint--left::after {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-4px);
}
.info-hint.info-hint--left:hover::after,
.info-hint.info-hint--left:focus-visible::after {
  transform: translateX(0) translateY(0);
}
label:has(.info-hint:hover),
label:has(.info-hint:focus-visible),
h2:has(.info-hint:hover),
h2:has(.info-hint:focus-visible),
h3:has(.info-hint:hover),
h3:has(.info-hint:focus-visible) {
  position: relative;
  z-index: 30;
}

/* ─── Beruf-Combobox (Beruf + Qualifikation auf einer Zeile) ─── */
.beruf-combo {
  position: relative;
}
.beruf-combo-menu {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 16rem;
  overflow-y: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.beruf-combo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  text-align: left;
  font-size: 0.875rem;
  color: #1f2937;
  cursor: pointer;
}
.beruf-combo-item:hover,
.beruf-combo-item.is-active {
  background: #faf6ed;
}
.beruf-combo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.beruf-combo-badge {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b7942f;
  background: #fbf3de;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ─── Suchfeld-Vorschläge (Branche, Firma, Ort, …) ─────────────── */
.suche-combo-menu {
  position: absolute;
  z-index: 80;
  left: 0;
  right: auto;
  width: max-content;
  max-width: min(100%, 28rem);
  min-width: 12rem;
  top: calc(100% + 4px);
  max-height: 16rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid #e8dbc0;
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(45, 45, 45, 0.12);
}
.suche-combo-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  text-align: left;
  font-size: 0.875rem;
  color: #2d2d2d;
  cursor: pointer;
}
.suche-combo-item:hover,
.suche-combo-item.is-active {
  background: #faf6ed;
}
.suche-combo-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suche-combo-badge {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b7942f;
  background: #fbf3de;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Sanftes Aktualisieren der Vakanzliste beim Filtern (kein hartes Blinken) */
#vakanzListContainer {
  transition: opacity 0.18s ease;
}
#vakanzListContainer.is-updating {
  opacity: 0.55;
}

.app-shell:has(.matching-page-main) {
  height: 100dvh;
  overflow: hidden;
}
.app-main.matching-page-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.matching-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.matching-page > .matching-table-card {
  flex: 1 1 auto;
  flex-shrink: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.matching-page .matching-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.matching-page .matching-table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.matching-page .matching-table-scroll td,
.matching-page .matching-table-scroll th {
  vertical-align: middle;
}
.matching-zeile {
  display: block;
  white-space: nowrap;
}
.matching-vakanz {
  min-width: 15rem;
}
.matching-begr-zelle {
  min-width: 13rem;
  max-width: 20rem;
}
.matching-begr {
  margin: 0;
}
.matching-begr > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5c564f;
}
.matching-begr > summary::-webkit-details-marker { display: none; }
.matching-begr > summary::before {
  content: "";
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.6px solid #C4A962;
  border-bottom: 1.6px solid #C4A962;
  transform: rotate(-45deg);
  margin-top: -2px;
}
.matching-begr[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -4px;
}
.matching-begr-sum {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matching-begr-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid #efe6d4;
}
.matching-begr-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}
.matching-begr-k {
  flex: 0 0 5.6rem;
  color: #8a8378;
  font-weight: 650;
}
.matching-begr-s {
  flex: 0 0 3.1rem;
  color: #2d2d2d;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.matching-begr-n {
  flex: 1 1 auto;
  min-width: 0;
  color: #5c564f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matching-begr-ok .matching-begr-s { color: #1f7a3f; }
.matching-begr-weak .matching-begr-s { color: #9a6b1f; }

.app-shell:has(.stellen-page-main) {
  height: 100dvh;
  overflow: hidden;
}
.app-main.stellen-page-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.stellen-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0.7rem;
}
.stellen-page > .page-hero {
  padding: 0.55rem 1rem;
}
.stellen-page > .page-hero h1 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.25;
}
.stellen-page > .page-hero .btn-primary {
  padding: 0.48rem 0.95rem;
}
.stellen-page > .page-hero .vakanz-hero-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem 0.95rem;
  min-width: 0;
}
.stellen-page > .page-hero .vakanz-hero-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(196, 169, 98, 0.38);
}
.stellen-page > .page-hero .vakanz-counter {
  height: auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.stellen-page > .page-hero .vakanz-counter i {
  font-size: 0.62rem;
  opacity: 0.8;
}
.stellen-page > .page-hero .vakanz-counter-num {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stellen-page > .page-hero .vakanz-counter-lbl {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}
.stellen-page > .page-hero .vakanz-hero-stats-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  align-self: center;
}
.stellen-page > .page-hero .vakanz-counter--offen {
  background: none;
  border: 0;
  color: #c5e8c8;
}
.stellen-page > .page-hero .vakanz-counter--besetzt {
  background: none;
  border: 0;
  color: rgba(226, 232, 240, 0.78);
}
.stellen-page > .abteilung-tabs {
  margin-bottom: 0;
  padding: 0.28rem;
  gap: 0.4rem;
}
.stellen-page > .abteilung-tabs .abteilung-tab {
  padding: 0.38rem 0.85rem;
  font-size: 0.84rem;
  gap: 0.4rem;
}
.stellen-page > .abteilung-tabs .abteilung-tab i {
  font-size: 0.8rem;
}
.stellen-page > .abteilung-tabs .abteilung-tab-count {
  min-width: 1.25rem;
  height: 1.25rem;
  font-size: 0.68rem;
  padding: 0 0.35rem;
}
.stellen-page > .vakanz-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 0.65rem 0.85rem;
}
.stellen-page .vakanz-toolbar .vakanz-status-tabs {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0.4rem;
  align-items: center;
}
.stellen-page .vakanz-toolbar .abteilung-tab {
  top: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #E8DBC0;
  box-shadow: none;
  font-size: 0.82rem;
  gap: 0.4rem;
  background: #F5EFE2;
}
.stellen-page .vakanz-toolbar .abteilung-tab.is-active {
  background: #fff;
  border-color: #C4A962;
  box-shadow: inset 0 0 0 1px #C4A962;
}
.stellen-page .vakanz-toolbar-form {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.stellen-page .vakanz-toolbar-form .form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.stellen-page .vakanz-toolbar-form .form-input {
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
  font-size: 0.84rem;
}
.stellen-page .vakanz-toolbar-form .vakanz-view-toggle {
  margin-left: auto;
}
.stellen-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.stellen-page #vakanzListContainer {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.stellen-page:has(#vakanzMapWrap:not(.hidden)) #vakanzListContainer {
  flex: 0 0 auto;
}
.stellen-page .vakanz-status-tabs {
  flex: 0 0 auto;
}
.stellen-page #vakanzGrid,
.stellen-page #vakanzEmpty {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.5rem;
  align-content: start;
}
.stellen-page .vakanz-map-wrap:not(.hidden) {
  flex: 1 1 auto;
  min-height: 0;
}
.stellen-page .vakanz-map-wrap:not(.hidden) .vakanz-map {
  height: 100%;
  min-height: 0;
}
.stellen-page .vakanz-map-wrap:not(.hidden) .vakanz-map-side {
  max-height: none;
  height: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────
   Kartenansicht „Karte Schweiz" (Vakanzliste)
   ───────────────────────────────────────────────────────────────────────── */
.vakanz-map-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: stretch;
}
.vakanz-map-wrap--embed {
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
.vakanz-map-wrap--embed .vakanz-map-side {
  display: none;
}
.vakanz-map-wrap--embed .vakanz-map-canvas {
  border-radius: 0.85rem;
  box-shadow: none;
}
.vakanz-map-wrap--embed .vakanz-map {
  height: 22rem;
  min-height: 18rem;
}
@media (max-width: 1024px) {
  .vakanz-map-wrap {
    grid-template-columns: 1fr;
  }
}
.vakanz-map-canvas {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #ece3cf;
  box-shadow: 0 10px 30px rgba(45, 45, 45, 0.08);
  background: #eef1f4;
}
.vakanz-map {
  width: 100%;
  height: 70vh;
  min-height: 480px;
}
.vakanz-map.leaflet-container {
  background: #d5e4c8;
}
.vakanz-map .leaflet-tile {
  opacity: 1 !important;
  visibility: visible;
}
.vakanz-map.leaflet-zoom-anim .leaflet-zoom-animated {
  transition-duration: 0.42s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.vakanz-map.leaflet-zoom-anim .leaflet-tile-container {
  transition-duration: 0.42s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* Kandidatenkarte: Marker mit der Karte skalieren, nicht in einer kürzeren
   Cluster-Animation hinterherhinken. Schattenfilter aus, sonst ruckelt Zoom. */
#kandMap.leaflet-zoom-anim .leaflet-zoom-animated,
#kandMap.leaflet-zoom-anim .leaflet-tile-container,
#kandMap .leaflet-cluster-anim .leaflet-marker-icon,
#kandMap .leaflet-cluster-anim .leaflet-marker-shadow {
  transition-duration: 0.42s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
#kandMap .vmap-person-svg {
  filter: none;
}
#kandMap .vmap-cand-pin-wrap.is-selected .vmap-cand-mark {
  border-radius: 10px;
  box-shadow: 0 0 0 3px #5B8DEF, 0 2px 8px rgba(37, 99, 235, 0.35);
  background: rgba(91, 141, 239, 0.16);
}
#kandMap .vmap-cand-count {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 40, 80, 0.28);
  pointer-events: auto;
}
.vmap-pop-stack .vmap-pop + .vmap-pop {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8dbc0;
}
@media (max-width: 1024px) {
  .vakanz-map {
    height: 58vh;
    min-height: 380px;
  }
}

/* Seitenliste der Vakanzen */
.vakanz-map-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 70vh;
  border-radius: 1rem;
  border: 1px solid #ece3cf;
  background: #fff;
  box-shadow: 0 10px 30px rgba(45, 45, 45, 0.06);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .vakanz-map-side {
    max-height: 420px;
  }
}
.vakanz-map-side-head {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #f0eadb;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #faf6ed;
}
.vakanz-map-side-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d2d2d;
}
.vakanz-map-side-status {
  font-size: 0.72rem;
  color: #8a7c55;
  font-weight: 600;
}
.vakanz-map-side-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.vakanz-map-side-list > li {
  flex: 0 0 auto;
}

/* Vakanz-Kachel in der Seitenliste */
.vmap-card {
  flex: 0 0 auto; /* nicht im Flex-Container zusammenquetschen lassen */
  background: #fff;
  border: 1px solid #ece3cf;
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(45, 45, 45, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.vmap-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.12);
  border-color: #d8c894;
}
.vmap-card.is-selected {
  border-color: #5B8DEF;
  box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.35);
  background: #f3f7ff;
}
#kandMapList .vmap-card.is-selected,
#kandMapUnlocated .vmap-card.is-selected {
  border-color: #C4A962;
  box-shadow: 0 0 0 2px rgba(196, 169, 98, 0.35);
  background: #fff;
}
.vmap-card-profil {
  border-top: 1px solid #E8DBC0;
  background: #FAF6ED;
  padding: 8px 10px 10px;
  max-height: 240px;
  overflow: auto;
  animation: vmap-card-open 0.16s ease;
}
.vmap-profil-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #f1eee7;
}
.vmap-profil-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #C4A962, #D4BF82);
  color: #1F1F1F;
  border: 2px solid #E8DBC0;
  box-shadow: 0 2px 8px rgba(45, 45, 45, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vmap-profil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vmap-profil-head-text {
  min-width: 0;
}
.vmap-profil-name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
}
.vmap-profil-beruf {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: #3b82f6;
  font-weight: 500;
}
.vmap-profil-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.vmap-profil-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #374151;
}
.vmap-profil-row i {
  flex: 0 0 14px;
  width: 14px;
  margin-top: 2px;
  text-align: center;
  color: #C4A962;
  font-size: 12px;
}
.vmap-profil-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.vmap-profil-verf {
  color: #15803d;
  font-weight: 700;
}
.vmap-profil-summary {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f1eee7;
  font-size: 12px;
  line-height: 1.45;
  color: #4b5563;
}
.vmap-profil-empty {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}
.vmap-card.is-besetzt {
  background: #fbfbfa;
}

/* Kopfzeile: Anzahl + Titel + Status-Pill, mit farbiger Statusleiste links */
.vmap-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-left: 4px solid #C4A962;
}
.vmap-card.is-besetzt .vmap-card-head {
  border-left-color: #c2c7cd;
}
.vmap-card-count {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #C4A962;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}
.vmap-card.is-besetzt .vmap-card-count {
  background: #9ca3af;
}
.vmap-card-titel {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-card.is-besetzt .vmap-card-titel {
  color: #6b7280;
}
.vmap-card-status {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}
.vmap-card.is-besetzt .vmap-card-status {
  background: #f3f4f6;
  color: #6b7280;
}

/* Body: Firma + Ort als klare Zeilen, abgetrennt durch dünne Linie */
.vmap-card-body {
  padding: 0.5rem 0.7rem 0.6rem;
  border-top: 1px solid #f3eede;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.vmap-card.is-besetzt .vmap-card-body {
  border-top-color: #eef0f2;
}
.vmap-card-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-card-row i {
  flex: 0 0 0.95rem;
  width: 0.95rem;
  text-align: center;
  color: #b9a877;
  font-size: 0.72rem;
}
.vmap-card-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-card-row.is-unklar {
  color: #b45309;
  font-weight: 600;
}
.vmap-card-row.is-unklar i {
  color: #d97706;
}
.vmap-card-matches {
  border-top: 1px solid #d7eadc;
  background: #f4faf6;
  padding: 8px 8px 8px 12px;
  max-height: 240px;
  overflow: auto;
  animation: vmap-card-open 0.16s ease;
}
@keyframes vmap-card-open {
  from { opacity: 0; }
  to { opacity: 1; }
}
.vmap-card-matches-head {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #1f7a3f;
  margin-bottom: 8px;
}
.vmap-card-matches-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vmap-card-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e3f0e6;
}
a.vmap-card-match:hover {
  border-color: #1f7a3f;
  background: #f8fdf9;
}
.vmap-match-score {
  flex: 0 0 auto;
  min-width: 40px;
  text-align: center;
  background: #1f7a3f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 4px 8px;
  border-radius: 999px;
}
.vmap-match-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vmap-match-name {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: #2d2d2d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-match-meta {
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-side-empty {
  padding: 0.8rem 0.6rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}
.vakanz-map-unlocated {
  border-top: 1px solid #f0eadb;
  max-height: 40%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.vakanz-map-unlocated-head {
  padding: 0.5rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #b45309;
  background: #fff7ed;
}

/* Marker-Pin */
.vmap-pin-wrap,
.vmap-cand-pin-wrap,
.vmap-cluster-wrap,
.vmap-cand-cluster-wrap {
  background: transparent;
  border: 0;
  pointer-events: none !important;
}
.vmap-pin,
.vmap-cluster,
.vmap-cand-mark {
  pointer-events: auto;
}
.vmap-cluster-wrap.is-dimmed,
.vmap-cand-cluster-wrap.is-dimmed {
  opacity: 0.32;
}
.vmap-pin {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  background: #C4A962;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}
.vmap-pin--besetzt {
  background: #9ca3af;
}
.vmap-pin--selected {
  background: #5B8DEF;
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.38), 0 3px 8px rgba(0, 0, 0, 0.3);
}
.vmap-pin-count {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Cluster */
.vmap-cluster-wrap {
  background: transparent;
}
.vmap-cluster {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(196, 169, 98, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 10px rgba(45, 45, 45, 0.25);
}

/* Popup */
.vmap-popup .leaflet-popup-content-wrapper {
  border-radius: 0.85rem;
  box-shadow: 0 16px 36px rgba(45, 45, 45, 0.22);
}
.vmap-popup .leaflet-popup-content {
  margin: 0;
  width: 248px !important;
}
.vmap-popup--profil .leaflet-popup-content-wrapper {
  border-radius: 14px;
  border: 1px solid #E8DBC0;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  padding: 0;
}
.vmap-popup--profil .leaflet-popup-tip {
  background: #fff;
  box-shadow: none;
}
.vmap-popup--profil .leaflet-popup-content {
  width: 300px !important;
}
.vmap-popup--profil .leaflet-popup-close-button {
  color: #8a7637;
  font-size: 18px;
  padding: 6px 8px 0 0;
}
.vmap-pop--profil {
  padding: 14px;
  cursor: pointer;
}
.vmap-pop {
  padding: 0.85rem 0.95rem;
}
.vmap-pop-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.vmap-pop-count {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #C4A962;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.vmap-pop-titel {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.2;
}
.vmap-pop-status {
  display: inline-block;
  margin: 0.5rem 0 0.2rem;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vmap-pop-status.is-offen {
  background: #ecfdf5;
  color: #047857;
}
.vmap-pop-status.is-besetzt {
  background: #f3f4f6;
  color: #6b7280;
}
.vmap-pop-body {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.vmap-pop-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.vmap-pop-lbl {
  flex: 0 0 4.6rem;
  color: #9ca3af;
  font-weight: 600;
}
.vmap-pop-val {
  color: #374151;
  font-weight: 500;
}
.vmap-pop-btn {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  background: #C4A962;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease;
}
.vmap-pop-btn:hover {
  background: #b7942f;
}
.vmap-pop-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.vmap-pop-actions .vmap-pop-btn {
  margin-top: 0;
}
.vmap-pop-btn--connect {
  background: #2563eb;
  border: 0;
  cursor: pointer;
}
.vmap-pop-btn--connect:hover {
  background: #1d4ed8;
}
.vmap-pop-btn--ghost {
  background: #fff;
  color: #2d2d2d !important;
  border: 1px solid #e5e7eb;
}
.vmap-pop-btn--ghost:hover {
  background: #f9fafb;
}
.vmap-pop-cand-ic,
.vmap-pop--cand .vmap-pop-head {
  display: flex;
  align-items: center;
}
.vmap-pop-cand-ic {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
}

/* ── Kandidaten-Marker: Silhouette, Kopf auf Schultern ── */
.vmap-cand-pin-wrap,
.vmap-cand-cluster-wrap {
  background: transparent;
  border: 0;
}
.vmap-cand-mark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  pointer-events: auto;
}
.vmap-person-svg {
  display: block;
  width: 28px;
  height: 36px;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(15, 40, 80, 0.28));
}
.vmap-cand-score {
  align-self: center;
  flex: 0 0 auto;
  background: #1f7a3f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 4px 6px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}
.vmap-pop-matches {
  margin: 10px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #E8DBC0;
}
.vmap-pop-matches-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 6px;
}
.vmap-pop-matches-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vmap-pop-match {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vmap-pop-match-score {
  flex: 0 0 auto;
  min-width: 2.6rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #1f7a3f;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}
.vmap-pop-match-name {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2D2D2D;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-pop-match-dist {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #C4A962;
  cursor: pointer;
}
.vmap-pop-match-dist:hover { text-decoration: underline; }
.vmap-pop-matches-empty {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #6B6B6B;
}

/* Cursor im Verbinden-Modus */
.vakanz-map.vmap-connecting {
  cursor: crosshair;
}

/* Verbindungslinien Vakanz ↔ Kandidat: feine gestrichelte Linie mit hellem Halo */
.vmap-match-ray-glow {
  pointer-events: none;
}
.vmap-match-ray {
  pointer-events: none;
  filter: drop-shadow(0 1px 1.5px rgba(47, 84, 150, 0.28));
}
.vmap-connect-line {
  filter: drop-shadow(0 1px 1.5px rgba(47, 84, 150, 0.28));
}

/* ── Kandidaten-Leiste (schlank, eine Zeile) ── */
.vmap-cand-bar {
  padding: 0.45rem 0.75rem !important;
}
.vmap-cand-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-height: 2rem;
}
.vmap-cand-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
}
.vmap-cand-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vmap-cand-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 2rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.15s ease;
}
.vmap-cand-switch-thumb {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease;
}
.vmap-cand-switch input:checked + .vmap-cand-switch-track {
  background: #2563eb;
}
.vmap-cand-switch input:checked + .vmap-cand-switch-track .vmap-cand-switch-thumb {
  transform: translateX(0.85rem);
}
.vmap-cand-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
}
.vmap-cand-beruf {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 11rem;
  flex: 0 1 14rem;
}
.vmap-cand-beruf > i {
  position: absolute;
  left: 0.55rem;
  font-size: 0.7rem;
  color: #9ca3af;
  pointer-events: none;
}
.vmap-cand-beruf-input {
  width: 100%;
  height: 1.85rem;
  padding: 0.2rem 0.55rem 0.2rem 1.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.8rem;
  color: #1f2937;
  outline: none;
}
.vmap-cand-beruf-input:focus {
  border-color: #C4A962;
  box-shadow: 0 0 0 2px rgba(196, 169, 98, 0.18);
}
.vmap-cand-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.vmap-cand-hint {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.25;
  max-width: 22rem;
}
.vmap-cand-hint i {
  flex-shrink: 0;
  font-size: 0.68rem;
}
@media (max-width: 720px) {
  .vmap-cand-hint { margin-left: 0; max-width: none; }
}

/* ── Hinweis-Banner (Verbinden-Modus) ── */
.vmap-hint {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.75rem 0.55rem 0.85rem;
  border-radius: 0.7rem;
  background: #1e3a8a;
  color: #fff;
  font-size: 0.84rem;
  box-shadow: 0 10px 26px rgba(30, 58, 138, 0.35);
}
.vmap-hint i {
  color: #bfdbfe;
}
.vmap-hint b {
  font-weight: 700;
}
.vmap-hint-cancel {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: #fff;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.vmap-hint-cancel:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* ── Ergebnis-Panel (Distanz) ── */
.vmap-result {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 800;
  width: 250px;
  max-width: calc(100% - 1.8rem);
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(45, 45, 45, 0.22);
  border: 1px solid #e5e7eb;
}
.vmap-result-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background: transparent;
  border: 0;
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.vmap-result-close:hover {
  color: #4b5563;
}
.vmap-result-route {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  padding-right: 1rem;
}
.vmap-result-from,
.vmap-result-to {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmap-result-from i { color: #2563eb; }
.vmap-result-to i { color: #C4A962; }
.vmap-result-arrow { color: #9ca3af; flex: 0 0 auto; }
.vmap-result-metrics {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.vmap-result-metric {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.vmap-result-metric:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.vmap-result-metric.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb inset;
}
.vmap-result-metric[data-route-mode="oev"].is-active {
  border-color: #0e9f6e;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #0e9f6e inset;
}
.vmap-result-metric[data-route-mode="oev"].is-active > i { color: #0e9f6e; }
.vmap-result-metric > i {
  font-size: 1rem;
  color: #2563eb;
}
.vmap-result-tip {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: #9ca3af;
}
.vmap-result-metric > div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.vmap-result-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}
.vmap-result-cap {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  font-weight: 700;
}
.vmap-result-loading {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #6b7280;
}
.vmap-result-loading i { color: #2563eb; }
.vmap-result-err {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #b45309;
}

/* Feier, wenn ein Kandidat auf Platziert gesetzt wird */
.platziert-feier {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: none;
}
.platziert-feier[hidden] { display: none !important; }
.xowa-logo-konfetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10050;
}
.platziert-feier-text {
  position: relative;
  margin: 0;
  padding: 0 1.5rem;
  max-width: min(92vw, 42rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-family: Oswald, "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C4A962;
  text-align: center;
  opacity: 0;
  text-shadow:
    0 1px 0 rgba(45, 45, 45, 0.28),
    0 2px 16px rgba(255, 255, 255, 0.92),
    0 0 28px rgba(255, 255, 255, 0.55);
}
.platziert-feier.is-on .platziert-feier-text {
  animation: platziert-feier-pop 2.9s ease forwards;
}
.platziert-feier-text span { display: block; }
.platziert-feier-text.is-lang {
  font-size: clamp(1.55rem, 4.4vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1.18;
}

@keyframes platziert-feier-pop {
  0% { opacity: 0; transform: translateY(10px); }
  14% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

/* Benutzerverwaltung: ruhige Zwei-Ansichten */
.bu-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #e8dbc0;
  border-radius: 999px;
  background: #fff;
  width: fit-content;
}
.bu-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b6560;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.bu-tab:hover {
  color: #2d2d2d;
  background: #faf6ed;
}
.bu-tab:focus-visible {
  outline: 2px solid rgba(196, 169, 98, 0.55);
  outline-offset: 2px;
}
.bu-tab.is-active {
  background: #2d2d2d;
  color: #fff;
}
.bu-tab.is-active .bu-tab-count {
  background: #c4a962;
  color: #1a1a1a;
}
.bu-tab-count {
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #f3eee3;
  color: #8a7a4a;
  font-size: 0.7rem;
  font-weight: 700;
}
.bu-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bu-panel[hidden] {
  display: none;
}
.bu-card-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2d2d2d;
}
.bu-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b6560;
}
.bu-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8a8378;
}
.bu-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
}
.bu-create-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.bu-role-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #faf6ed;
}
.bu-role-preview p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5c5344;
}
.bu-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8dbc0;
  color: #8a7a4a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bu-fn-line {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #8a8378;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bu-individuell {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0e6d2;
}
.funktion-gruppen {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 16px;
  border: 1px solid #eee6d4;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}
@media (min-width: 768px) {
  .funktion-gruppen {
    grid-template-columns: 1fr 1fr;
  }
}
.funktion-gruppe {
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid #f0ebe0;
  background: #fff;
  min-width: 0;
}
@media (min-width: 768px) {
  .funktion-gruppe:nth-child(odd) {
    border-right: 1px solid #f0ebe0;
  }
  .funktion-gruppe:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}
.funktion-gruppe.is-on,
.funktion-gruppe.is-partial {
  background: #fff;
}
.funktion-zeile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}
.funktion-check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #2d2d2d;
  cursor: pointer;
  user-select: none;
}
.funktion-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 20px;
  height: 24px;
  margin-left: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c9c6bf;
  font-size: 11px;
  line-height: 1;
  cursor: help;
  transition: color 180ms ease;
}
.funktion-zeile:hover .funktion-info {
  color: #b5b2ab;
}
.funktion-info:hover {
  color: #9a978f;
}
.funktion-info:active {
  color: #7a776f;
}
.funktion-info:focus {
  outline: none;
}
.funktion-info:focus-visible {
  color: #8a8680;
  outline: 2px solid rgba(196, 169, 98, 0.4);
  outline-offset: 2px;
}
.funktion-info.is-locked,
.funktion-check.is-locked + .funktion-info {
  cursor: help;
}
.funktion-tip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: max-content;
  max-width: 16rem;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #3a3a3a;
  color: #f5f5f4;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.16);
  pointer-events: none;
}
.funktion-info:hover .funktion-tip,
.funktion-info:focus-visible .funktion-tip {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .funktion-info { transition: none; }
}
.funktion-check.is-parent {
  min-height: 36px;
  font-weight: 700;
  font-size: 14px;
}
.funktion-check.is-parent span {
  letter-spacing: 0.01em;
}
.funktion-kinder {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 4px 0 0;
  padding: 0 0 0 24px;
  border: 0;
}
.funktion-node[data-fn-depth="1"] > .funktion-zeile > .funktion-check {
  font-weight: 600;
  color: #2d2d2d;
}
.funktion-node[data-fn-depth="2"] {
  padding-left: 8px;
}
.funktion-node[data-fn-depth="2"] > .funktion-zeile > .funktion-check {
  font-weight: 400;
  color: #5c5344;
}
.funktion-check.is-child {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: #5c5344;
}
.funktion-check.is-child.is-on {
  border: 0;
  background: transparent;
  color: #2d2d2d;
}
.funktion-check:hover {
  color: #2d2d2d;
}
.funktion-check input {
  margin: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #c4a962;
}
.funktion-check.is-on span {
  color: inherit;
}
.funktion-check.is-locked {
  cursor: not-allowed;
  opacity: 0.55;
}
.funktion-check:focus-within {
  outline: 2px solid rgba(196, 169, 98, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}
.bu-table {
  border-collapse: collapse;
  width: 100%;
}
.bu-table thead {
  background: #faf6ed;
}
.bu-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8378;
}
.bu-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-top: 1px solid #f3efe6;
}
.bu-user-name {
  font-weight: 700;
  color: #2d2d2d;
}
.bu-user-handle,
.bu-mail,
.bu-login {
  font-size: 0.75rem;
  color: #8a8378;
}
.bu-absender {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.bu-absender-input {
  width: 10.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #eee;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  background: #fff;
}
.bu-absender-input:focus {
  outline: none;
  border-color: #c4a962;
  box-shadow: 0 0 0 2px rgba(196, 169, 98, 0.25);
}
.bu-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #eee;
  border-radius: 0.4rem;
  background: #fff;
  color: #8a8378;
  cursor: pointer;
}
.bu-icon-btn:hover {
  background: #faf6ed;
  color: #2d2d2d;
}
.bu-role-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bu-role-select {
  border: 1px solid #e8dbc0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2d2d2d;
}
.bu-role-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(196, 169, 98, 0.35);
}
.bu-role-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.bu-crown {
  color: #c4a962;
  font-size: 0.7rem;
}
.bu-status {
  font-size: 0.75rem;
  font-weight: 700;
}
.bu-status.is-on { color: #15803d; }
.bu-status.is-off { color: #dc2626; }
.bu-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
.bu-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}
.bu-role-tile.is-editing {
  grid-column: 1 / -1;
}
.bu-role-tile.is-editing .bu-fn-line {
  display: none;
}
.bu-role-tile {
  padding: 1.25rem;
  border: 1px solid #eee6d4;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.bu-role-tile.is-master {
  background: linear-gradient(180deg, #fffdf8 0%, #fff 70%);
}
.bu-role-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.bu-role-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d2d2d;
}
.bu-role-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.bu-role-edit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0e6d2;
}
.bu-role-name {
  max-width: 16rem;
  margin-bottom: 0.5rem;
}
.bu-role-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.bu-new-role {
  padding: 0.25rem 1.25rem 1.25rem;
  border-color: #e8dbc0;
}
.bu-new-role summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0;
  font-weight: 700;
  color: #2d2d2d;
  cursor: pointer;
}
.bu-new-role summary::-webkit-details-marker { display: none; }
.bu-new-role summary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #faf6ed;
  color: #c4a962;
  font-size: 0.75rem;
}
.bu-new-role-form {
  padding-bottom: 0.25rem;
}
.bu-new-role-name {
  max-width: 22rem;
  margin: 0.75rem 0 0.25rem;
}
.rolle-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #faf6ed;
  color: #8a7a4a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rolle-editor {
  margin-top: 8px;
}
.rolle-editor-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #f1f1ef;
}
.rolle-editor-tab {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}
.rolle-editor-tab:hover {
  color: #2d2d2d;
  background: rgba(255, 255, 255, 0.6);
}
.rolle-editor-tab.is-active {
  background: #fff;
  color: #2d2d2d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.rolle-editor-tab:focus-visible {
  outline: 2px solid rgba(196, 169, 98, 0.45);
  outline-offset: 2px;
}
.abteilung-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.abteilung-wahl-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #e8dbc0;
  border-radius: 10px;
  background: #faf6ed;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.abteilung-wahl-item i { color: #c4a962; }
.abteilung-wahl-item input { margin: 0; accent-color: #c4a962; }
.abteilung-wahl-item.is-on {
  background: #fff;
  color: #2d2d2d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.abteilung-wahl-item:focus-within {
  outline: 2px solid rgba(196, 169, 98, 0.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .bu-tab { transition: none; }
}

.rav-anleitung-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rav-anleitung-summary::-webkit-details-marker { display: none; }
.rav-anleitung-summary h2 { margin: 0; }
.rav-anleitung-hint {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #C4A962;
}
.rav-anleitung-hint::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.rav-anleitung[open] .rav-anleitung-hint { color: #6B6B6B; }
.rav-anleitung[open] .rav-anleitung-hint::after { transform: rotate(-135deg); margin-top: 3px; }
.rav-anleitung-summary:hover .rav-anleitung-hint { color: #2D2D2D; }
.rav-anleitung-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.35);
  border-radius: 0.5rem;
}
.rav-anleitung-body { margin-top: 16px; }

/* ---------------------------------------------------------------------------
   Excel-Workspace: Dateimanager + Editor
   --------------------------------------------------------------------------- */
.excel-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.excel-crumb {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.excel-crumb:hover { color: #d3ba80; text-decoration: underline; }
.excel-crumb.ist-aktiv { color: #fff; font-weight: 600; }
.excel-crumb-sep { font-size: 0.6rem; color: rgba(255, 255, 255, 0.4); }

.excel-abschnitt-titel {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8577;
  margin: 0 0 0.6rem;
}
.excel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.excel-karte {
  position: relative;
  background: #fff;
  border: 1px solid #e8e4da;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.excel-karte:hover {
  border-color: #d3ba80;
  box-shadow: 0 4px 14px rgba(45, 45, 45, 0.06);
}
.excel-karte-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.excel-icon { font-size: 1.5rem; }
.excel-icon--ordner { color: #d3ba80; }
.excel-icon--datei { color: #1d6f42; }
.excel-icon--word { color: #2b579a; }
.excel-karte-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #2d2d2d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.excel-karte-meta { font-size: 0.72rem; color: #8a8577; }
.excel-karte-aktionen {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.excel-karte:hover .excel-karte-aktionen,
.excel-karte:focus-within .excel-karte-aktionen { opacity: 1; }
.excel-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  border: 1px solid #e8e4da;
  background: #fff;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.excel-mini-btn:hover { border-color: #d3ba80; color: #8a6d2f; background: #faf6ed; }
.excel-mini-btn--rot:hover { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }

/* Editor */
.excel-editor-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.excel-editor-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d2d2d;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.excel-editor-name:hover { background: #faf6ed; color: #8a6d2f; }
.excel-editor-status { font-size: 0.75rem; color: #16a34a; white-space: nowrap; }
.excel-editor-status.ist-offen { color: #b45309; }
.excel-editor-status.ist-fehler { color: #b91c1c; font-weight: 600; }
.excel-editor-flaeche {
  position: relative;
  height: calc(100vh - 150px);
  min-height: 460px;
  border: 1px solid #e8e4da;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 1rem;
}

/* Excel-Freigaben (gemeinsame Tabellen) */
.excel-freigabe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #faf6ed;
  border: 1px solid #e8dbc0;
  color: #8a6d2f;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.excel-karte--freigabe { border-color: #e8dbc0; background: #fffdf8; }
.excel-karte--freigabe .excel-icon--datei { color: #8a6d2f; }

/* ─── Anruf-Skript im WhatsApp-Chat-Look ────────────────────────────
   Gemeinsame Styles für das Skript-Modal (CallAgent) und die
   Anruf-Protokolle im Kandidatenprofil. Farbwelt identisch mit der
   WhatsApp-Seite: Chat-Hintergrund #efeae2, eingehend weiss (Kandidat,
   links), ausgehend grün (wir/KI, rechts). */
.anruf-wa-chat {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,0.028) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.anruf-wa-row { display: flex; margin-top: 2px; }
.anruf-wa-row--in  { justify-content: flex-start; }
.anruf-wa-row--out { justify-content: flex-end; }
.anruf-wa-row--sys { justify-content: center; margin: 8px 0; }
/* Sprecherwechsel: mehr Abstand + Platz für das Schwänzchen */
.anruf-wa-row--first { margin-top: 10px; }
.anruf-wa-bubble {
  position: relative;
  max-width: 78%;
  padding: 6px 9px 7px;
  border-radius: 7.5px;
  box-shadow: 0 1px 0.5px rgba(11,20,26,.13);
  color: #111b21;
  font-size: 14.2px;
  line-height: 19px;
  white-space: pre-wrap;
  word-break: break-word;
}
.anruf-wa-row--in  .anruf-wa-bubble { background: #ffffff; }
.anruf-wa-row--out .anruf-wa-bubble { background: #d9fdd3; }
/* Schwänzchen nur an der ersten Bubble eines Sprecher-Blocks */
.anruf-wa-row--first.anruf-wa-row--in  .anruf-wa-bubble { border-top-left-radius: 0; }
.anruf-wa-row--first.anruf-wa-row--out .anruf-wa-bubble { border-top-right-radius: 0; }
.anruf-wa-row--first .anruf-wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-bottom: 10px solid transparent;
}
.anruf-wa-row--first.anruf-wa-row--in  .anruf-wa-bubble::before { left: -8px;  border-right: 8px solid #ffffff; }
.anruf-wa-row--first.anruf-wa-row--out .anruf-wa-bubble::before { right: -8px; border-left: 8px solid #d9fdd3; }
.anruf-wa-sender {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
}
.anruf-wa-row--in  .anruf-wa-sender { color: #c2417f; }
.anruf-wa-row--out .anruf-wa-sender { color: #008069; }
.anruf-wa-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #667781;
  font-size: 11px;
  margin: 6px -2px -2px 10px;
}
.anruf-wa-meta .fa-check-double { color: #53bdeb; font-size: 11px; }
.anruf-wa-sys {
  background: #fffdf7;
  color: #54656f;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(11,20,26,.1);
  text-align: center;
  max-width: 88%;
}

/* Hinweis auf fehlende Profildaten: schmale Pille, kein Warnbalken */
.profil-luecke {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
  padding: 0.28rem 0.35rem 0.28rem 0.7rem;
  border: 1px solid #E8DBC0;
  border-radius: 999px;
  background: #fff;
  color: #8a8172;
  font-size: 0.75rem;
  line-height: 1.2;
}
.profil-luecke-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #A88A3F;
}
.profil-luecke-feld {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #F6F3EC;
  color: #2D2D2D;
  font-weight: 600;
}
.profil-luecke-link {
  margin-left: 0.15rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  color: #6d5a32;
  font-weight: 600;
  text-decoration: none;
}
.profil-luecke-link:hover {
  background: #F6F3EC;
  color: #2D2D2D;
}

tr.arbeitshistorie-xowa td {
  background: #F1F1F1;
  color: #2D2D2D;
  font-weight: 700;
}
tr.arbeitshistorie-xowa td.hist-xowa-jahre {
  position: relative;
  font-weight: 700;
}
tr.arbeitshistorie-xowa .hist-xowa-logo {
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 21px;
  margin-top: -10px;
  background: url("../img/xowa-logo-zeile.png") center / contain no-repeat;
  pointer-events: none;
}

/* Top Clients: Titel und Formular bleiben, die Liste scrollt in sich */
.app-shell:has(.tc-main) {
  height: 100dvh;
  overflow: hidden;
}
.app-main.tc-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 1rem;
}
.tc-seite {
  display: flex;
  flex-direction: column;
  gap: var(--app-section-gap);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.tc-fest {
  display: flex;
  flex-direction: column;
  gap: var(--app-section-gap);
  flex: none;
}
.tc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.35rem;
}
.tc-tabelle {
  display: grid;
  grid-template-columns:
    max-content
    max-content
    max-content
    max-content
    max-content
    minmax(1.5rem, 1fr)
    max-content;
  column-gap: 1.35rem;
  row-gap: 0.5rem;
  align-items: center;
  width: 100%;
  min-width: max-content;
}
.tc-kopf,
.tc-zeile {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  column-gap: 1.35rem;
}
.tc-kopf {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.15rem 0 0.45rem;
  background: #fafaf9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A88A3F;
}
.tc-kopf > :first-child,
.tc-zeile > :first-child { padding-left: 1rem; }
.tc-kopf > :last-child,
.tc-zeile > :last-child { padding-right: 1rem; }
.tc-zeile {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.tc-firma,
.tc-person,
.tc-tel,
.tc-mail,
.tc-notiz,
.tc-aktionen {
  min-width: 0;
  white-space: nowrap;
  line-height: 1.35;
}
.tc-firma {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2D2D2D;
}
.tc-person,
.tc-tel,
.tc-notiz {
  font-size: 0.875rem;
  color: #4B5563;
}
.tc-mail a {
  font-size: 0.875rem;
  color: #8A6D2F;
  text-decoration: none;
}
.tc-mail a:hover { text-decoration: underline; }
.tc-leer { color: #C4C0B4; }
.tc-aktionen {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.tc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.7rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.tc-pill-offen {
  min-width: 4.5rem;
  background: #FAF6ED;
  color: #8A6D2F;
}
.tc-pill-einsatz {
  min-width: 6.5rem;
  background: #F3F4F6;
  color: #4B5563;
}
.tc-aktionen form { margin: 0; }
.tc-aktionen .btn-secondary {
  height: 1.7rem;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  transform: none;
}





