/* ── Icons ── */

.icon {
  flex-shrink: 0;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: var(--gray-0);
  border-color: var(--border);
  color: var(--text-1);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-25);
}

.btn--ghost {
  color: var(--text-2);
}

.btn--ghost:hover {
  background: var(--gray-100);
  color: var(--text-1);
}

.btn--danger {
  background: var(--tx-failed);
  color: #fff;
}

.btn--danger:hover {
  background: #b91c1c;
}

.btn--sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Cards ── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--hover {
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card--hover:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gray-300);
  cursor: pointer;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: 13px;
  font-weight: 600;
}

.card__hint {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

/* Schalter (Einstellungen, rein visuell) */
.switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  transition: background 0.15s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease;
}

.switch.is-on {
  background: var(--accent);
}

.switch.is-on::after {
  transform: translateX(14px);
}

/* ── KPI-Karten ── */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.kpi__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: var(--space-3);
}

.kpi__label .icon {
  color: var(--text-3);
}

.kpi__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi__value--warn {
  color: var(--tx-pending);
}

.kpi__value--bad {
  color: var(--tx-failed);
}

.kpi__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}

/* ── Chips / Pills ── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  color: var(--chip-color, var(--text-2));
  background: var(--chip-bg, var(--gray-100));
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chip-color, var(--text-3));
  flex-shrink: 0;
}

.chip--outline {
  background: var(--gray-0);
  border: 1px solid var(--border);
}

.chip .icon {
  width: 12px;
  height: 12px;
}

.chip--pulse .chip__dot {
  animation: chip-pulse 1.4s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Skill-Tags */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.skill-tag--hit {
  background: var(--accent-soft);
  border-color: var(--pink-200);
  color: var(--pink-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ── Avatar ── */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
}

/* ── Tabellen ── */

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
}

/* Pagination-Footer (Enterprise-Volumen) */
.table-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-2);
}
.table-pager__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-pager__pos {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.table-pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--gray-0);
  color: var(--text-1);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.table-pager__btn:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--border-strong, var(--border));
}
.table-pager__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Spalten-Editor: Button (neben dem Filter-Button) + Auswahl-Menü */
.cols-picker {
  position: relative;
  display: inline-flex;
}
.cols-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 230px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.cols-menu .check-row {
  padding: 7px 8px;
  border-bottom: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cols-menu .check-row:hover {
  background: var(--gray-50);
}
.cols-menu .check-row.is-locked {
  cursor: default;
}
.cols-menu .check-row.is-locked:hover {
  background: none;
}
.cols-menu__title {
  padding: 4px 8px 6px;
  font-size: 11px;
  color: var(--text-3);
}
.cols-menu__reset {
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  border: none;
  border-top: 1px solid var(--border-subtle);
  background: none;
  color: var(--pink-700);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.cols-menu__reset:hover {
  background: var(--gray-50);
}

.data-table {
  width: 100%;
  font-size: 12.5px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--gray-25);
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  user-select: none;
}

.data-table thead th.is-sortable {
  cursor: pointer;
}

.data-table thead th.is-sortable:hover {
  color: var(--text-2);
}

.data-table th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
}

.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr.is-clickable {
  cursor: pointer;
  transition: background 0.1s ease;
}

.data-table tbody tr.is-clickable:hover {
  background: var(--gray-25);
}

.data-table tbody tr.is-flagged {
  background: #fdf5f5;
}

.data-table tbody tr.is-flagged:hover {
  background: #fbeeee;
}

.cell-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cell-main__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.cell-main__title {
  font-weight: 500;
  color: var(--text-1);
}

.cell-main__sub {
  font-size: 11.5px;
  color: var(--text-3);
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.cell-muted {
  color: var(--text-3);
}

.cell-num {
  font-variant-numeric: tabular-nums;
}

/* ── Filter-Bar ── */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.filter-bar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 280px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  color: var(--text-3);
}

.filter-bar__search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text-1);
}

.filter-bar__search input::placeholder {
  color: var(--text-3);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.filter-chip:hover {
  border-color: var(--gray-300);
  color: var(--text-1);
}

.filter-chip.is-active {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: #fff;
}

.filter-bar__spacer {
  flex: 1;
}

/* Filter-Button-Badge */
.filter-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* Aktiver Quick-Filter-Chip: Dunkel + Weiß (hoher Kontrast in jeder CI) —
   bewusst KEIN akzentfarbener Text auf dunklem Grund (schlecht lesbar). */
.filter-chip.is-active {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: #fff;
}

.filter-chip.is-active .icon {
  color: #fff;
}

/* Aktive-Filter-Leiste über der Tabelle */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--gray-0);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.active-filter:hover {
  border-color: var(--gray-300);
  background: var(--gray-25);
}

.active-filter .icon {
  color: var(--text-3);
}

.active-filter--reset {
  border-style: dashed;
  color: var(--text-2);
}

.active-filters__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Filter-Panel (Slideover-Inhalt) */
.filter-grp {
  border-bottom: 1px solid var(--border-subtle);
}

/* Kopf = Klick-Fläche zum Auf-/Zuklappen der Kategorie */
.filter-grp__head {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: var(--space-3) 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
}

.filter-grp:first-child .filter-grp__head {
  padding-top: 0;
}

.filter-grp__head .icon {
  color: var(--text-3);
}

.filter-grp__label {
  flex: 1;
}

.filter-grp__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 11px;
  font-weight: 600;
}

.filter-grp__chevron {
  display: inline-flex;
  color: var(--text-3);
  transition: transform 0.15s ease;
}

.filter-grp.is-collapsed .filter-grp__chevron {
  transform: rotate(-90deg);
}

.filter-grp__body {
  padding-bottom: var(--space-3);
}

.filter-grp__opts {
  max-height: 220px;
  overflow-y: auto;
}

/* Segment-Umschalter (z. B. Liste / Pipeline) */
.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-0);
}

.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.seg__btn + .seg__btn {
  border-left: 1px solid var(--border);
}

.seg__btn:not(.is-active):hover {
  background: var(--gray-50);
  color: var(--text-1);
}

.seg__btn.is-active {
  background: var(--gray-900);
  color: #fff;
}

/* ── Dropdown ── */

.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 250px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 100;
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}

.dropdown__item:hover {
  background: var(--gray-50);
}

.dropdown__item.is-selected {
  background: var(--accent-soft);
  color: var(--pink-700);
  font-weight: 500;
}

.dropdown__count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  padding: 0 7px;
  line-height: 17px;
}

.dropdown__item.is-selected .dropdown__count {
  background: var(--pink-100);
  color: var(--pink-700);
}

/* ── Identitäts-Umschalter ("Ansehen als") im Sidebar-Footer ── */
.identity-switcher {
  position: relative;
  margin-top: auto;
}

.identity-switcher .sidebar__user {
  margin-top: 0;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border-subtle);
  font: inherit;
}

.identity-switcher.is-open .sidebar__user-name {
  color: var(--accent);
}

.identity-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 5px;
  z-index: 200;
  max-height: 60vh;
  overflow-y: auto;
}

.identity-menu__head {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding: 6px 8px 5px;
}

.identity-menu__group-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  padding: 9px 8px 3px;
}

.identity-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}

.identity-menu__item:hover {
  background: var(--gray-50);
}

.identity-menu__item.is-selected {
  background: var(--accent-soft);
}

.identity-menu__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  margin-right: auto;
}

.identity-menu__name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-menu__role {
  font-size: 11px;
  color: var(--text-3);
}

/* ── Dashboard: Niederlassungs-Vergleich + Schnellaktionen ── */
.nl-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.nl-compare th {
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11px;
  padding: 2px 10px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.nl-compare th.cell-num,
.nl-compare td.cell-num {
  text-align: right;
}

.nl-compare td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.nl-compare tbody tr:last-child td {
  border-bottom: none;
}

.nl-compare tbody tr:hover {
  background: var(--gray-50);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-action:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gray-300);
}

.quick-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.quick-action__title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-1);
}

.quick-action__sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ── Forecast-Karte (Berichte) ── */
.forecast-card .forecast-body {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: var(--space-5);
  align-items: center;
}

.forecast-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.fbar {
  display: grid;
  grid-template-columns: 160px 1fr 84px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.fbar__k {
  color: var(--text-2);
}

.fbar__t {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.fbar__t i {
  display: block;
  height: 100%;
  border-radius: 4px;
}

.fbar__v {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.forecast-kpis {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--space-5);
}

.forecast-kpi__label {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 3px;
}

.forecast-kpi__value {
  font-size: 24px;
  font-weight: 650;
  color: var(--text-1);
}

/* Forecast: erwarteter Abschluss je Monat */
.forecast-monthsec {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.forecast-monthsec__title {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.fc-months {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
}

.fc-month {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fc-month__val {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fc-month__bar {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: flex-end;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fc-month__bar i {
  display: block;
  width: 100%;
  min-height: 2px;
  background: var(--accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.fc-month__lbl {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ── Aktivitätsprotokoll ── */
.akt-log {
  display: flex;
  flex-direction: column;
}

.akt-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.akt-row:last-child {
  border-bottom: none;
}

.akt-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--gray-400);
}

.akt-row__dot--intern {
  background: var(--accent);
}

.akt-row__dot--endkunde {
  background: #1d4ed8;
}

.akt-row__main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.akt-row__text {
  font-size: 12.5px;
  color: var(--text-1);
}

.akt-row__meta {
  font-size: 11px;
  color: var(--text-3);
}

/* ── Echtzeit-Sync-Indikator ── */
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15803d;
  display: inline-block;
  flex-shrink: 0;
  animation: sync-pulse 2.2s infinite;
}

@keyframes sync-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(21, 128, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0);
  }
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
}

.sidebar__sync {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text-3);
}

/* ── Benachrichtigungs-Center ── */
.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif {
  position: relative;
}

.notif__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.12s ease;
}

.notif__bell:hover {
  background: var(--gray-100);
  color: var(--text-1);
}

.notif__badge {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.notif__panel {
  position: fixed; /* fixed statt absolute, damit der Sidebar-Overflow das Panel nicht abschneidet */
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 5px;
  z-index: 300;
}

.notif__head {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding: 6px 8px 5px;
}

.notif__item {
  display: flex;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}

.notif__item:hover {
  background: var(--gray-50);
}

.notif__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-2);
}

.notif__item--fehler .notif__icon {
  background: var(--red-soft);
  color: #b91c1c;
}

.notif__item--warten .notif__icon {
  background: var(--amber-soft);
  color: #b45309;
}

.notif__item--status .notif__icon {
  background: var(--green-soft);
  color: #15803d;
}

.notif__item--auftrag .notif__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.notif__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notif__text {
  font-size: 12px;
  color: var(--text-1);
  line-height: 1.3;
}

.notif__time {
  font-size: 10.5px;
  color: var(--text-3);
}

.notif__empty {
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ── In-Mockup-Feedback ── */
.fb {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
}

.fb__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.fb__btn:hover {
  filter: brightness(1.05);
}

.fb__btn-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 0 7px;
  font-size: 11px;
  line-height: 17px;
}

.fb__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
}

.fb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.fb__close {
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
}

.fb__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  margin-bottom: var(--space-3);
}

.fb__mark:hover {
  background: var(--accent-soft);
}

.fb__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}

.fb__num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.fb__item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fb__item-text {
  text-align: left;
  font-size: 12px;
  color: var(--text-1);
  cursor: pointer;
}

.fb__item-text:hover {
  text-decoration: underline;
}

.fb__item-page {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: capitalize;
}

.fb__del {
  flex-shrink: 0;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
}

.fb__del:hover {
  color: var(--tx-failed, #b91c1c);
}

.fb__empty {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  padding: 4px 2px;
}

.fb-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 350;
}

.fb-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 2px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: 2px solid #fff;
  pointer-events: auto;
}

body.fb-marking,
body.fb-marking #main-content {
  cursor: crosshair;
}

.fb-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-1);
  color: var(--gray-0);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
}

.fb-banner kbd {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}

.fb-pop {
  position: absolute;
  transform: translateX(-50%);
  z-index: 360;
  width: 240px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
}

.fb-pop__text {
  width: 100%;
  resize: vertical;
  font: inherit;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px;
}

.fb-pop__row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

/* ── Integrations-Katalog ── */
.intg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.intg-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.intg-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.intg-card__name {
  font-weight: 600;
  font-size: 13px;
}

.intg-card__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
}

.intg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

.intg-dot--on {
  background: #15803d;
}

/* ── KI-Assistent ── */
.assi {
  display: flex;
  gap: var(--space-5);
  height: calc(100vh - 57px);
  padding: var(--space-3) 32px var(--space-4);
  box-sizing: border-box;
}

.assi__rail {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-right: 1px solid var(--border-subtle);
  padding-right: var(--space-4);
  overflow-y: auto;
}

.assi-newchat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  background: var(--gray-0);
}

.assi-newchat:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.assi-chats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assi-chatitem {
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assi-chatitem:hover {
  background: var(--gray-50);
}

.assi-chatitem.is-active {
  background: var(--accent-soft);
  color: var(--pink-700);
  font-weight: 500;
}

.assi-rail__empty {
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 2px;
}

.assi__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.assi__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.assi-head__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.assi-head__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
}

.assi-head__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assi-scope {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--gray-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.assi-quota {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assi-quota__bar {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-100);
  overflow: hidden;
}

.assi-quota__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.assi-quota__txt {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.assi__thread {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.assi-msg {
  display: flex;
  gap: 10px;
  max-width: 760px;
}

.assi-msg--user {
  align-self: flex-end;
}

.assi-msg--ai {
  align-self: flex-start;
}

.assi-msg__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assi-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.5;
}

.assi-bubble--user {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.assi-bubble--ai {
  background: var(--gray-50);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.assi-answer p {
  margin: 0 0 8px;
}

.assi-answer p:last-child {
  margin-bottom: 0;
}

.assi-answer ul,
.assi-answer ol {
  margin: 4px 0 8px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.assi-msg__model {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.assi-typing {
  display: inline-flex;
  gap: 4px;
  padding: 2px 0;
}

.assi-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: assi-blink 1.2s infinite;
}

.assi-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.assi-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes assi-blink {
  0%, 60%, 100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}

.assi-welcome {
  margin: auto;
  text-align: center;
  max-width: 560px;
}

.assi-welcome__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.assi-welcome h2 {
  margin-bottom: 6px;
}

.assi-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-4);
}

.assi-chip {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  background: var(--gray-0);
}

.assi-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.assi__composer {
  display: flex;
  gap: 8px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.assi__input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 13px;
}

.assi__input:focus {
  outline: none;
  border-color: var(--accent);
}

.assi__send {
  padding: 0 16px;
}

/* ── Admin-Cockpit: Niederlassungs-Switcher + Branch-Kopf + Drill-Banner ── */
.nl-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.nl-switch__btn {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  background: var(--gray-0);
}

.nl-switch__btn:hover {
  border-color: var(--gray-300);
}

.nl-switch__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--accent-soft);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-lg);
}

.branch-head__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.branch-head__name {
  margin: 0;
  font-size: 18px;
}

.sidebar__drill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  cursor: pointer;
}

.sidebar__drill:hover {
  border-color: var(--accent);
}

.sidebar__drill-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.sidebar__drill-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
}

/* ── Empty State ── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--text-3);
}

.empty-state .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  color: var(--gray-300);
}

.empty-state__title {
  font-weight: 500;
  color: var(--text-2);
}

/* ── Kanban-Board ── */

.board {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: var(--space-3);
}

.board__col {
  flex: 0 0 248px;
  background: var(--gray-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
}

.board__col-header {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}

.board__col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.board__col-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board__col-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  padding: 0 7px;
  line-height: 17px;
}

.board__col-toggle {
  display: inline-flex;
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.board__col-header:hover .board__col-toggle {
  opacity: 1;
}

.board__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 40px;
}

/* "+N weitere": Hinweis bei gekappten Spalten (Enterprise-Volumen) */
.board__more {
  padding: 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.kcard {
  position: relative;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.kcard:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gray-300);
}

.kcard--failed {
  border-left: 3px solid var(--tx-failed);
}

/* Entwurf-Karte: angefangene, noch nicht abgesendete Vorstellung */
.kcard--entwurf {
  border-style: dashed;
  background: var(--gray-25);
}

.kcard--entwurf .kcard__footer span:first-child {
  color: var(--text-2);
  font-weight: 600;
}

.kcard__entwurf-ph {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--text-3);
  flex-shrink: 0;
}

.board__col--entwurf {
  background: repeating-linear-gradient(
    -45deg,
    var(--gray-50),
    var(--gray-50) 8px,
    var(--gray-25) 8px,
    var(--gray-25) 16px
  );
  border-style: dashed;
  border-color: var(--gray-300);
}

/* Eingeklappt (Asana-Stil): schmaler vertikaler Streifen, Titel gedreht */
.board__col.is-collapsed {
  flex: 0 0 40px;
  width: 40px;
  /* min-width:0 verhindert, dass min-content (langer Titel) die 40px aufbläht */
  min-width: 0;
  align-self: flex-start;
  cursor: pointer;
  overflow: hidden;
}

.board__col.is-collapsed .board__cards {
  display: none;
}

.board__col.is-collapsed .board__col-header {
  writing-mode: vertical-rl;
  width: 100%;
  min-height: 132px;
  padding: 12px 0;
  gap: 10px;
  justify-content: flex-start;
}

/* Titel bleibt eine vertikale Zeile (kein Umbruch → Spalte bleibt schmal) */
.board__col.is-collapsed .board__col-name {
  white-space: nowrap;
}

.board__col.is-collapsed .board__col-count {
  margin-left: 0;
}

/* Entwurf-Section in der Listen-Ansicht (einklappbar) */
.entwurf-sec {
  margin-bottom: var(--space-4);
}

.board__col-chevron {
  display: inline-flex;
  color: var(--text-3);
  transition: transform 0.18s ease;
}

.entwurf-sec__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 2px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.entwurf-sec__head > .icon {
  color: var(--text-3);
}

.entwurf-sec__hint {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

.kcard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.kcard__name {
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kcard__channel {
  margin-left: auto;
  color: var(--text-3);
  display: inline-flex;
}

.kcard__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--text-2);
}

.kcard__meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.kcard__meta-row .icon {
  width: 12px;
  height: 12px;
  color: var(--text-3);
}

.kcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-3);
}

/* "Abgelehnt"-Spalte: terminaler Bucket ganz rechts — heller abgesetzt + gedimmte Karten */
.board__col--rejected {
  background: var(--gray-25);
}

.board__col--rejected .kcard {
  opacity: 0.8;
}

.board__col--rejected .kcard:hover {
  opacity: 1;
}

/* ── Feldliste (Detail-Ansichten) ── */

.field-list {
  display: flex;
  flex-direction: column;
}

.field-list__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-4);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}

.field-list__row:last-child {
  border-bottom: none;
}

.field-list__label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.field-list__value {
  font-size: 13px;
  color: var(--text-1);
  min-width: 0;
}

/* ── Timeline ── */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  position: relative;
  padding: 0 0 var(--space-4) 24px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -2px;
  width: 1.5px;
  background: var(--border);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gray-0);
  border: 2.5px solid var(--gray-300);
}

.timeline__dot--accent {
  border-color: var(--accent);
}

.timeline__dot--ok {
  border-color: var(--tx-delivered);
}

.timeline__dot--bad {
  border-color: var(--tx-failed);
}

.timeline__title {
  font-weight: 500;
  font-size: 12.5px;
}

.timeline__meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.timeline__body {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-2);
}

/* ── Match-Panel ("Warum dieser Kandidat passt") ── */

.match-panel {
  background: linear-gradient(180deg, var(--pink-50), var(--gray-25) 140px);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.match-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.match-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.match-panel__title .icon {
  color: var(--accent);
}

.match-panel__item {
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}

.match-panel__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 4px;
}

.match-panel__item-title {
  font-weight: 600;
  font-size: 12.5px;
}

.match-panel__item-body {
  font-size: 12.5px;
  color: var(--text-2);
}

/* ── Status-Stepper (Bewertungskette) ── */

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.stepper__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
}

.stepper__step .stepper__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
}

.stepper__step.is-done {
  color: var(--text-2);
}

.stepper__step.is-done .stepper__dot {
  background: var(--step-color, var(--accent));
}

.stepper__step.is-current {
  color: var(--text-1);
  font-weight: 600;
}

.stepper__step.is-current .stepper__dot {
  background: var(--step-color, var(--accent));
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--step-color, var(--accent)) 20%, transparent);
}

.stepper__sep {
  width: 18px;
  height: 1.5px;
  background: var(--gray-200);
  margin: 0 2px;
}

/* ── Formulare ── */

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 5px;
}

.input,
.textarea,
select.input {
  width: 100%;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  font-size: 13px;
  transition: border-color 0.12s ease;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px var(--pink-50);
}

.input:disabled,
.textarea:disabled,
select.input:disabled {
  background: var(--gray-25);
  color: var(--text-3);
  cursor: not-allowed;
}

.textarea {
  resize: vertical;
  min-height: 72px;
}

/* Radio-Karten (z. B. Kanalwahl) */
/* Auftrag-Auswahl (Neue Vorstellung): nach Kundenunternehmen gruppiert */
.pick-grp {
  margin-bottom: var(--space-5);
}
.pick-grp__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2);
}
.pick-grp__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.pick-grp__name {
  font-weight: 600;
  font-size: 13px;
}
.pick-grp__sub {
  font-size: 11.5px;
  color: var(--text-3);
}
.pick-grp__count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
}
.pick-grp__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--gray-0);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.pick-row:hover {
  border-color: var(--pink-400);
  background: var(--pink-50);
}
.pick-row.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pick-row.is-selected .pick-row__arrow {
  color: var(--accent);
}
.pick-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pick-row__title {
  font-weight: 500;
}
.pick-row__sub {
  font-size: 12px;
  color: var(--text-2);
}
.pick-row__arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--text-3);
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.radio-card:hover {
  border-color: var(--gray-300);
}

.radio-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--pink-50);
}

.radio-card__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}

.radio-card.is-selected .radio-card__radio {
  border-color: var(--accent);
}

.radio-card.is-selected .radio-card__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.radio-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.radio-card__desc {
  font-size: 12px;
  color: var(--text-2);
}

/* Schlanke, einzeilige Variante (z. B. Kandidatenwahl): Name + Metadaten in einer Reihe */
.radio-card--slim {
  align-items: center;
  padding: 9px 14px;
  gap: 10px;
}
.radio-card--slim .radio-card__name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-1);
  white-space: nowrap;
}
.radio-card--slim .radio-card__meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-card--slim .radio-card__match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Charts ── */

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.chart-grid__wide {
  grid-column: 1 / -1;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.chart-card__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Kopfzeile mit Titel links + kleinem "alle weiteren …"-Link rechts */
.chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.chart-card__head .chart-card__title {
  margin-bottom: 0;
}
.chart-card__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
}
.chart-card__link:hover {
  color: var(--pink-700);
  text-decoration: underline;
}

/* ── Report-Baukasten (eigenen Report erstellen) ─────────────────── */
.chart-card--builder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 210px;
  text-align: center;
  border: 1.5px dashed var(--gray-300);
  background: var(--gray-50);
  color: var(--text-1);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chart-card--builder:hover {
  border-color: var(--pink-500);
  background: var(--pink-50);
}
.report-builder__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
}
.report-builder__sub {
  font-size: 12px;
  color: var(--text-2);
  max-width: 32ch;
  line-height: 1.45;
}

/* Grauer "Baukasten": skizzierte Chart-Bausteine */
.report-blocks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 52px;
}
.report-blocks__bar {
  width: 15px;
  border-radius: 4px 4px 2px 2px;
  background: var(--gray-200);
}
.report-blocks__donut {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 7px solid var(--gray-200);
  align-self: center;
}

/* Eigener Report (per Freitext angefragt, "In Vorbereitung") */
.chart-card--custom .report-custom__desc {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.45;
  margin-bottom: var(--space-4);
}
.report-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--gray-100);
}

/* Report-Formular im Slideover */
.report-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.report-form__intro {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.report-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-chip {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--gray-0);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.report-chip:hover {
  border-color: var(--pink-500);
  color: var(--pink-700);
}
.report-form__label {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 4px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: var(--space-3);
  font-size: 12px;
  color: var(--text-2);
}

.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-legend__value {
  font-weight: 600;
  color: var(--text-1);
}

/* ── Funnel-Labels (klickbar als Filter) ── */

.funnel-label {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--border-subtle);
  padding: 2px 0 2px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.funnel-label.is-clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}

.funnel-label.is-clickable:hover {
  background: var(--gray-50);
}

.funnel-label.is-active {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding-left: 9px;
}

/* ── Slideover (Panel von rechts) ── */

.slideover-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.35);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slideover-backdrop.is-open {
  opacity: 1;
}

.slideover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  background: var(--gray-0);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
}

.slideover.is-open {
  transform: none;
}

.slideover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.slideover__title {
  font-weight: 600;
  font-size: 14px;
}

.slideover__body {
  padding: var(--space-5);
  overflow-y: auto;
  flex: 1;
}

/* Fester Aktions-Footer: scrollt nicht mit, deckender Hintergrund */
.slideover__foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--gray-0);
}

/* ── Command-Palette / Globale Suche ── */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17, 17, 19, 0.4);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.cmdk-backdrop.is-open {
  opacity: 1;
}
.cmdk {
  position: fixed;
  z-index: 301;
  top: 12vh;
  left: 50%;
  width: min(640px, 92vw);
  transform: translate(-50%, -8px);
  opacity: 0;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, var(--shadow-md));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.cmdk.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cmdk__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-3);
}
.cmdk__field {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text-1);
}
.cmdk__input kbd {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-3);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.cmdk__results {
  max-height: 56vh;
  overflow-y: auto;
  padding: 6px;
}
.cmdk__group {
  margin-bottom: 2px;
}
.cmdk__group-label {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cmdk__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cmdk__item.is-active {
  background: var(--gray-100);
}
.cmdk__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--text-2);
}
.cmdk__item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.cmdk__item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk__item-sub {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk__type {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 2px 8px;
}
.cmdk__empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.cmdk__footer {
  display: flex;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-3);
}
.cmdk__footer kbd {
  font-family: var(--font-ui);
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 3px;
}

/* ── Wizard (Vorstellungsworkflow) ── */

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
}

.wizard-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-step.is-active {
  color: var(--text-1);
}

.wizard-step.is-active .wizard-step__num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px var(--pink-100);
}

.wizard-step.is-done {
  color: var(--text-2);
  cursor: pointer;
}

.wizard-step.is-done .wizard-step__num {
  background: var(--pink-100);
  color: var(--pink-700);
}

.wizard-step.is-done:hover {
  color: var(--text-1);
}

.wizard-step__sep {
  width: 22px;
  height: 1.5px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* Statische Leiste (Connect-Flow): Schritte sind reine Anzeige, nicht klickbar */
.wizard-steps--static .wizard-step,
.wizard-steps--static .wizard-step.is-done {
  cursor: default;
}

.wizard-steps--static .wizard-step.is-done:hover {
  color: var(--text-2);
}

/* Vertikaler Accordion-Flow (Vorstellungsworkflow) */
.acc-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  scroll-margin-top: 16px;
}

.acc-step.is-active {
  border-color: var(--pink-200);
  box-shadow: var(--shadow-md);
}

.acc-step.is-pending {
  opacity: 0.5;
  background: var(--bg-subtle);
}

.acc-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  min-height: 56px;
}

.acc-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.acc-step.is-active .acc-step__num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px var(--pink-100);
}

.acc-step.is-done .acc-step__num {
  background: var(--pink-100);
  color: var(--pink-700);
}

.acc-step__title {
  font-weight: 600;
  white-space: nowrap;
}

.acc-step.is-done .acc-step__title {
  color: var(--text-2);
  font-weight: 500;
}

.acc-step__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--text-2);
  font-size: 12.5px;
}

.acc-step__body {
  padding: var(--space-4) 20px 20px;
  border-top: 1px solid var(--border-subtle);
}

.acc-step__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: var(--space-5);
}

/* Editierbare Feld-Zeilen mit Übermittlungs-Switch (Profil-Schritt) */
.feld-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-subtle);
}

.feld-row:last-of-type {
  border-bottom: none;
}

.feld-row__label {
  width: 150px;
  flex-shrink: 0;
  font-weight: 500;
}

.feld-row__value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feld-row__value .input {
  max-width: 420px;
}

.feld-row.is-aus .feld-row__label,
.feld-row.is-aus .feld-row__value {
  opacity: 0.45;
}

.switch.is-locked {
  opacity: 0.45;
  cursor: default;
}

/* Checkbox-Zeilen (Profil-Schritt) */
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
}

.check-row:last-of-type {
  border-bottom: none;
}

.check-row__box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.check-row__box .icon {
  width: 11px;
  height: 11px;
  opacity: 0;
}

.check-row.is-checked .check-row__box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-row.is-checked .check-row__box .icon {
  opacity: 1;
}

.check-row__label {
  flex: 1;
  font-weight: 500;
}

.check-row__hint {
  font-size: 11.5px;
  color: var(--text-3);
}

/* Hinweis bei gekappter Optionsliste (Filter-Panel, Enterprise-Volumen) */
.check-row__more {
  padding: 8px 6px 2px;
  font-size: 11.5px;
  color: var(--text-3);
}

.check-row.is-locked {
  opacity: 0.55;
  cursor: default;
}

/* Live-Vorschau-Spalte */
.preview-pane {
  position: sticky;
  top: var(--space-5);
}

/* Erfolgs-Screen */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-5);
}

.success-screen__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.success-screen__icon .icon {
  width: 28px;
  height: 28px;
}

.success-screen__icon.is-pending {
  background: var(--amber-soft);
  color: #b45309;
  animation: chip-pulse 1.4s ease-in-out infinite;
}

.success-screen__icon.is-ok {
  background: var(--green-soft);
  color: var(--tx-delivered);
  animation: success-pop 0.35s ease;
}

@keyframes success-pop {
  0% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-screen h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.success-screen p {
  color: var(--text-2);
  max-width: 440px;
}

.success-screen__actions {
  display: flex;
  gap: 8px;
  margin-top: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Übermittlungs-Vorschau ── */

/* API: Payload-Block */
.code-block {
  background: var(--gray-900);
  color: var(--gray-100);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  white-space: pre;
}

.code-block .tok-key {
  color: var(--pink-300);
}

.code-block .tok-num {
  color: #8ab4f8;
}

.code-block .tok-null {
  color: var(--gray-400);
}

.code-block__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.code-block__verb {
  color: #15803d;
  background: var(--green-soft);
  border-radius: 4px;
  padding: 0 6px;
  font-weight: 500;
}

/* Portal: Browser-Rahmen */
.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-0);
  box-shadow: var(--shadow-sm);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.browser-frame__dots {
  display: flex;
  gap: 5px;
}

.browser-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-200);
}

.browser-frame__url {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
  padding: 2px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame__body {
  pointer-events: none;
  user-select: none;
}

/* Portal-Replik (recruiter-seitige Kundenvorschau): die Inhalts-Tabs sind
   durchblätterbar, aber alle Kundenaktionen (Buttons, Chat-Eingabe) sind inert. */
.portal-replik .btn {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.portal-replik .chat__input .input {
  pointer-events: none;
  background: var(--gray-25);
}

/* Hinweis-/Disclaimer-Banner in Kundenvorschau & Bearbeiten */
.portal-replik__disclaimer,
.edit-disclaimer,
.preview-status-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.portal-replik__disclaimer {
  color: var(--text-2);
  background: var(--gray-25);
  border: 1px solid var(--border-subtle);
}
.edit-disclaimer {
  color: var(--text-2);
  background: var(--bg-subtle);
  margin-bottom: var(--space-4);
}
.preview-status-note--fail {
  color: #7f1d1d;
  background: var(--red-soft);
  border: 1px solid #f3c6c6;
}
.preview-status-note--pending {
  color: #b45309;
  background: var(--amber-soft);
  border: 1px solid #fbd9a5;
}

/* Aktive E-Mail-Vorlage im Compose-Slideover */
.btn[data-vorlage].is-active {
  border-color: var(--accent);
  color: var(--pink-700);
  background: var(--accent-soft);
}

/* Kandidat anlegen: CV-Upload-Zone + Parsing-Ergebnis */
.cv-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px;
  text-align: center;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cv-drop:hover {
  border-color: var(--accent);
  background: var(--gray-25);
}
.cv-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 14px;
  font-size: 12.5px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: #15803d;
}
.cv-result svg {
  flex-shrink: 0;
}
.cv-result--leer {
  background: var(--amber-soft);
  color: #b45309;
}
.portal-replik__disclaimer svg,
.edit-disclaimer svg,
.preview-status-note svg {
  flex-shrink: 0;
}

/* E-Mail-Vorschau */
.email-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.email-frame__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--gray-25);
  border-bottom: 1px solid var(--border-subtle);
}

.email-frame__row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}

.email-frame__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  width: 56px;
  flex-shrink: 0;
  padding-top: 2px;
}

.email-frame__body {
  padding: var(--space-4) var(--space-5);
  font-size: 12.5px;
  color: var(--text-1);
}

.email-frame__body p {
  margin-bottom: 10px;
}

.email-frame__body ul {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--text-2);
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-25);
}

.attachment .icon {
  color: var(--tx-failed);
}

/* ── Connect-Flow: Onboarding für API-Endkunden (Vollbild, Kombo-Connect-Stil) ── */

.app-shell--fullscreen {
  grid-template-columns: 1fr;
}

.app-shell--fullscreen .sidebar {
  display: none;
}

.connect-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 28px;
}

.connect-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.connect-card {
  width: 100%;
  max-width: 720px;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

.connect-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  color: var(--text-3);
  font-size: 11.5px;
}

/* System-Auswahl */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding: 3px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  background: var(--gray-0);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  text-align: left;
}

.tool-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-xs);
}

.tool-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--pink-50);
}

.tool-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  user-select: none;
}

.tool-card__text {
  min-width: 0;
  line-height: 1.25;
}

.tool-card__name {
  font-weight: 500;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card__cat {
  font-size: 10.5px;
  color: var(--text-3);
}

/* Berechtigungen / Scopes */
.scope-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-subtle);
}

.scope-row:last-of-type {
  border-bottom: none;
}

.scope-row__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--green-soft);
  color: var(--tx-delivered);
}

.scope-row__icon.is-neutral {
  background: var(--gray-100);
  color: var(--text-2);
}

.scope-row__title {
  font-weight: 500;
}

.scope-row__desc {
  font-size: 12px;
  color: var(--text-2);
}

/* Anleitungs-Schritte (Zugangsdaten) */
.guide-step {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.guide-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Kundenportal: Chat ── */

.chat__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: var(--space-3);
}

.chat__msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat__msg--agentur {
  align-self: flex-start;
}

.chat__msg--kunde {
  align-self: flex-end;
  align-items: flex-end;
}

.chat__bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.chat__msg--agentur .chat__bubble {
  background: var(--gray-100);
  border-bottom-left-radius: 4px;
}

.chat__msg--kunde .chat__bubble {
  background: var(--pink-100);
  border-bottom-right-radius: 4px;
}

.chat__meta {
  font-size: 10.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 3px;
  padding: 0 4px;
}

.chat__input {
  display: flex;
  gap: 8px;
}

.chat__input .input {
  flex: 1;
}

/* ── Kundenportal: Dokument-Viewer (Lebenslauf) ── */

.doc-viewer {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--gray-0);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}

.doc-toolbar .mono-sm {
  margin-left: auto;
}

.doc-page {
  background: #fff;
  max-width: 560px;
  margin: 20px auto;
  padding: 36px 42px;
  box-shadow: var(--shadow-md);
  min-height: 520px;
  font-size: 12.5px;
}

.doc-page h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.doc-section {
  margin-top: 20px;
}

.doc-section__title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.doc-entry {
  margin-bottom: 12px;
}

.doc-entry__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.doc-entry__zeit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  font-weight: 400;
  padding-top: 2px;
}

.doc-entry__sub {
  color: var(--text-2);
  font-size: 12px;
  margin-bottom: 4px;
}

.doc-entry ul {
  list-style: disc;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 12px;
}

/* ── Kundenportal: Anhänge ── */

.attachment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.1s ease;
}

.attachment-row:last-child {
  border-bottom: none;
}

.attachment-row:hover {
  background: var(--gray-25);
}

.attachment-row__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--red-soft);
  color: var(--tx-failed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attachment-row__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.attachment-row__meta {
  font-size: 11.5px;
  color: var(--text-3);
}

/* ── Toasts ── */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  flex-shrink: 0;
}

.toast--success .toast__icon {
  color: #4ade80;
}

.toast--error .toast__icon {
  color: #f87171;
}

.toast--pending .toast__icon {
  color: #fbbf24;
}

/* ── Diverses ── */

.section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

/* Stellenbeschreibung: Vorschau (geklappt) ↔ voller Text */
.jobdesc {
  position: relative;
}
.jobdesc__content {
  max-height: 132px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.jobdesc.is-expanded .jobdesc__content {
  max-height: 4000px;
}
.jobdesc__intro {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.jobdesc__h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 16px 0 7px;
}
.jobdesc__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jobdesc__list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.jobdesc__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}
.jobdesc.is-expanded .jobdesc__fade {
  display: none;
}
.jobdesc__toggle {
  margin-top: 12px;
  padding-left: 0;
  gap: 6px;
}
.jobdesc__toggle svg {
  transition: transform 0.2s ease;
}
.jobdesc__toggle.is-open svg {
  transform: rotate(180deg);
}

/* Portal-Aufträge: Block-/Spaltenansicht (responsives Karten-Grid) */
.portal-auftrag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  align-items: stretch; /* alle Kacheln einer Zeile gleich hoch */
}
/* Karte füllt die (gestreckte) Zellenhöhe; Footer (Kandidaten) bündig unten */
.portal-auftrag-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Agentur-Auftragslisten: Block-/Karten-Ansicht (Pendant zur Liste) ── */
.auftrag-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.auftrag-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}
.auftrag-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.auftrag-card__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.auftrag-card__org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.auftrag-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
}
.auftrag-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auftrag-card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Talentpool (Werkzeuge) ── */
.tp-overview {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.tp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}
.tp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tp-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tp-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
}
.tp-stat__sub {
  font-size: 11.5px;
  color: var(--text-3);
}
.tp-overview-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
  align-items: stretch;
}
@media (max-width: 900px) {
  .tp-overview-row {
    grid-template-columns: 1fr;
  }
}
.tp-top-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
}
.tp-top-row:hover {
  background: var(--bg-subtle);
}
.tp-top-row__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-top-row__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.tp-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.tp-name__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tp-name__title {
  font-weight: 600;
  color: var(--text-1);
}
.tp-name:hover .tp-name__title {
  color: var(--accent);
}
.tp-name__sub {
  font-size: 12px;
  color: var(--text-3);
}
.tp-banner {
  padding: 10px 12px;
  margin-bottom: var(--space-3);
  background: var(--amber-soft, #fef3c7);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: #92400e;
}
.tp-stats--modal {
  margin-bottom: var(--space-4);
}
.tp-stats--modal .tp-stat {
  padding: var(--space-3);
}
.tp-stats--modal .tp-stat__value {
  font-size: 20px;
}
.tp-modal-chart {
  margin-bottom: var(--space-4);
}
.tp-viewers__title {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tp-viewer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.tp-viewer__name {
  font-weight: 500;
  color: var(--text-1);
}
.tp-viewer__nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
}

/* Vorstellung intern teilen — Kolleg:innen-Auswahl */
.teilen-kol {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.teilen-kol:hover {
  border-color: var(--accent);
}
.teilen-kol.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.teilen-kol__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}
.teilen-kol.is-selected .teilen-kol__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.teilen-kol__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.teilen-kol__name {
  font-weight: 600;
  font-size: 13px;
}
.teilen-kol__sub {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teilen-kol__zugang {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--text-3);
}
.teilen-kol__zugang.is-aktiv {
  background: var(--green-soft);
  color: #15803d;
}

/* Executive Summary (Profil-Abriss) */
.exec-summary {
  background: var(--accent-soft);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: var(--space-4);
}
.exec-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.exec-summary p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* LinkedIn-artiger, textbasierter Werdegang */
.werdegang {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}
.werdegang__item {
  position: relative;
}
.werdegang__item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-card);
}
.werdegang__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.werdegang__rolle {
  font-weight: 600;
  font-size: 13.5px;
}
.werdegang__zeit {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.werdegang__firma {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.werdegang__punkte {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.werdegang__punkte li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

/* Bestätigungs-Popup (zentriertes Modal) */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.confirm-backdrop.is-open {
  opacity: 1;
}
.confirm {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.16s ease;
}
.confirm-backdrop.is-open .confirm {
  transform: translateY(0) scale(1);
}
.confirm__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.confirm__icon--primary {
  background: var(--accent-soft);
  color: var(--accent);
}
.confirm__icon--danger {
  background: var(--red-soft);
  color: #b91c1c;
}
.confirm__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.confirm__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.confirm__body p {
  margin: 0;
}
.confirm__note {
  margin-top: var(--space-3) !important;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--amber-soft, var(--gray-100));
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}
.confirm__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: var(--space-5);
}

/* Talentpool-Toggle-Zeile (Kandidaten-Detailansicht) */
.tp-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tp-toggle-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-toggle-row__title {
  font-weight: 600;
  font-size: 13.5px;
}
.tp-toggle-row__hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Kandidatenprofile (CV → Profil-Generator) ── */
.pf-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-4);
}
.pf-intro h1 {
  font-size: 20px;
  margin-bottom: 1px;
}
.pf-intro p {
  font-size: 13px;
}

/* Leerer Start: Upload */
.pf-start {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}
.pf-drop {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pf-drop:hover,
.pf-drop:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.pf-drop.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pf-drop__icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 8px;
}
.pf-drop__title {
  font-size: 16px;
  font-weight: 700;
}
.pf-drop__hint {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.pf-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}
.pf-textbox {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-start__alt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

/* KI-Generierung (Streaming-State) */
.pf-generate {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-6) 0;
  text-align: center;
}
.pf-generate__spark {
  display: inline-flex;
  color: var(--accent);
  animation: pf-pulse 1.1s ease-in-out infinite;
}
@keyframes pf-pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
}
.pf-generate__title {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 var(--space-4);
}
.pf-generate__steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: var(--space-5);
}
.pf-gen-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  opacity: 0;
  animation: pf-fade-in 0.4s ease forwards;
}
.pf-gen-step .icon {
  color: var(--accent);
}
@keyframes pf-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pf-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.pf-skeleton__bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: pf-shimmer 1.3s linear infinite;
}
@keyframes pf-shimmer {
  to { background-position: -200% 0; }
}

/* Anonymisieren-Toggle (Editor-Toolbar) */
.pf-anon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.pf-anon span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Remove-X (Listen-Zeile) */
.pf-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  flex-shrink: 0;
}
.pf-x:hover {
  background: var(--red-soft);
  color: #b91c1c;
}

/* Profil-Liste (Standardansicht des Tabs) */
.pf-liste-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-3);
}
.pf-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.pf-row:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xs);
}
.pf-row__icon {
  display: inline-flex;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.pf-row__main {
  flex: 1;
  min-width: 0;
}
.pf-row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.pf-row__tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
.pf-row__meta {
  font-size: 11.5px;
  color: var(--text-3);
  margin: 2px 0 4px;
}
.pf-row__snippet {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.pf-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pf-empty {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}
.pf-empty__icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 10px;
}
.pf-empty__title {
  font-size: 16px;
  font-weight: 700;
}
.pf-empty__hint {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin: 6px 0 var(--space-4);
}
.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  margin-bottom: 6px;
  padding: 0;
}
.pf-back:hover {
  color: var(--accent);
}
/* Wizard: Übermittlungsdatei-Vorschau */
.vorschau-datei {
  margin-top: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vorschau-datei > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  background: var(--gray-50);
  list-style: none;
}
.vorschau-datei > summary::-webkit-details-marker {
  display: none;
}
.vorschau-datei > summary .icon {
  color: var(--accent);
}
.vorschau-datei__doc {
  padding: var(--space-4);
  background: var(--gray-100);
}

/* ── Profil-Editor: Split-Screen ── */
.pf2-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: var(--space-3);
}
.pf2-toolbar__left,
.pf2-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pf2-titel {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  min-width: 180px;
}
.pf2-titel:hover {
  background: var(--gray-100);
}
.pf2-titel:focus {
  border-color: var(--accent);
  background: #fff;
  outline: none;
}
.pf2-tpl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.pf2-tpl select {
  width: auto;
  padding: 5px 8px;
  font-size: 12.5px;
}
.pf2-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.15s ease;
}
.pf2-status.is-flash {
  color: #15803d;
  font-weight: 600;
}
.pf2-split {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: var(--space-4);
  align-items: start;
}
.pf2-split__doc,
.pf2-split__form {
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.pf2-split__doc {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.pf2-paper {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .pf2-split {
    grid-template-columns: 1fr;
  }
  .pf2-split__doc,
  .pf2-split__form {
    max-height: none;
  }
}

/* Editor-Formular */
.pf2-sec {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: var(--space-3);
}
.pf2-sec__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 10px;
}
.pf2-sec__hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-3);
}
.pf2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pf2-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf2-field > span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
}
.pf2-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 10px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf2-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pf2-item__nr {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.pf2-item__ctrl {
  display: flex;
  gap: 4px;
}
.pf2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
}
.pf2-icon:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.pf2-icon:disabled {
  opacity: 0.4;
  cursor: default;
}
.pf2-icon--danger:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}
.pf2-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
}
.pf2-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pf2-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.pf2-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
/* Stammdaten-Tab (ATS-Erfassung) */
.stamm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-3);
}
.stamm-form {
  max-width: 880px;
}
.pf2-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pf2-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.pf2-chip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}
.pf2-chip__x:hover {
  opacity: 1;
}
.pf2-chip-input {
  width: 140px;
  flex: 1;
  min-width: 120px;
}
.pf2-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  margin-top: 2px;
}
.pf2-ai__btn {
  border: none;
  background: none;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.pf2-ai__btn:hover {
  background: var(--accent-soft);
}

/* ── Profil-Templates (geteilt: Vorschau + PDF-Export) ── */
.tpl {
  color: var(--text-1, #1a1a1a);
  font-size: 13px;
  line-height: 1.55;
}
.tpl-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tpl-photo--ph {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.tpl-sec {
  margin-bottom: 16px;
}
.tpl-sec h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 8px;
}
.tpl-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.tpl-exp {
  margin-bottom: 10px;
}
.tpl-exp__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.tpl-exp__titel {
  font-weight: 600;
  font-size: 13px;
}
.tpl-exp__zeit {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.tpl-exp__firma {
  font-size: 12px;
  color: var(--text-2);
}
.tpl-exp__desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}
.tpl-leer {
  margin: 0;
  color: var(--text-3);
}
.tpl-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tpl-skill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 500;
}
.tpl-lang {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 2px 0;
}
.tpl-lang__niv {
  color: var(--text-3);
}
.tpl-cust {
  display: flex;
  gap: 8px;
  font-size: 12px;
  padding: 2px 0;
}
.tpl-cust__l {
  font-weight: 600;
  min-width: 110px;
}

/* Standard Hell */
.tpl-std {
  padding: 28px 32px;
}
.tpl-std__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}
.tpl-std__brand {
  font-weight: 700;
  color: var(--accent);
}
.tpl-std__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.tpl-std__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.tpl-std__rolle {
  font-size: 13.5px;
  color: var(--text-2);
}
.tpl-std__kontakt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.tpl-std__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Kompakt */
.tpl-kmp {
  display: grid;
  grid-template-columns: 34% 1fr;
  min-height: 100%;
}
.tpl-kmp__side {
  background: var(--accent-soft);
  padding: 22px 18px;
}
.tpl-kmp__name {
  font-size: 17px;
  font-weight: 700;
  margin-top: 12px;
}
.tpl-kmp__rolle {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.tpl-kmp__kontakt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.tpl-kmp__kontakt .icon {
  color: var(--accent);
}
.tpl-kmp__block {
  margin-bottom: 16px;
}
.tpl-kmp__block h3 {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 6px;
}
.tpl-kmp__main {
  padding: 22px 24px;
}
.tpl-kmp__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Klassisch */
.tpl--klassisch {
  font-family: Georgia, 'Times New Roman', serif;
}
.tpl-kla {
  padding: 30px 36px;
}
.tpl-kla__head {
  text-align: center;
  border-bottom: 1px solid var(--text-3);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.tpl-kla__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.tpl-kla__name {
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.01em;
}
.tpl-kla__rolle {
  font-size: 14px;
  color: var(--text-2);
  font-style: italic;
}
.tpl-kla__kontakt {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 8px;
}
.tpl-kla__sec h2 {
  color: var(--text-1, #222);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

/* ── Editor: Doc-Tabs (Vorschau / Original-CV) ── */
.pf2-doctabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-3);
}
.pf2-doctab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.pf2-doctab.is-active {
  background: var(--gray-900, #111827);
  border-color: var(--gray-900, #111827);
  color: #fff;
}

/* Original CV / Resume-Pane */
.ocv {
  background: #fff;
  min-height: 200px;
}
.ocv__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--gray-50);
}
.ocv__bar .icon {
  color: var(--accent);
}
.ocv__text {
  margin: 0;
  padding: 20px 24px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-1, #1a1a1a);
  white-space: pre-wrap;
  word-break: break-word;
}
.ocv__file,
.ocv--leer {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.ocv__file .icon,
.ocv--leer .icon {
  color: var(--accent);
}
.ocv__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1, #1a1a1a);
  margin-top: 8px;
}
.ocv__hint {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 6px auto 0;
  max-width: 360px;
}

/* ── Export-Dialog (granulare Feldsteuerung) ── */
.pexp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.pexp-backdrop.is-open {
  opacity: 1;
}
.pexp {
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: translateY(8px) scale(0.99);
  transition: transform 0.16s ease;
}
.pexp-backdrop.is-open .pexp {
  transform: translateY(0) scale(1);
}
.pexp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.pexp__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.pexp__title .icon {
  color: var(--accent);
}
.pexp__x {
  display: inline-flex;
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.pexp__x:hover {
  background: var(--gray-100);
  color: var(--text-1, #111);
}
.pexp__body {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.pexp__preview {
  overflow: auto;
  background: var(--gray-100);
  padding: var(--space-4);
}
.pexp__preview .pf2-paper {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}
.pexp__ctrl {
  overflow: auto;
  padding: var(--space-4) 18px;
  border-left: 1px solid var(--border);
}
.pexp-sect {
  margin-bottom: var(--space-4);
}
.pexp-sect__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.pexp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.pexp-field > span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
}
.pexp-group {
  margin-bottom: 10px;
}
.pexp-group__title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  margin: 6px 0 4px;
}
.pexp-tog {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 2px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}
.pexp-tog.is-locked {
  cursor: default;
  color: var(--text-3);
}
.pexp-tog__note {
  font-size: 10.5px;
  color: var(--text-3);
}
.pexp__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.pexp__fn {
  font-size: 12px;
  color: var(--text-3);
}
@media (max-width: 900px) {
  .pexp__body {
    grid-template-columns: 1fr;
  }
  .pexp__ctrl {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4) 0;
}

/* ── Pipeline: Long/Short-List-Spalten (Teil des Kanban-Boards) ── */
.board__col--liste {
  background: var(--gray-50);
}
.board__col-header--static {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  width: 100%;
}
.board__col-header--static .board__col-name {
  font-weight: 600;
}
.board__col-add {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
}
.board__col-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.board__leer {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  padding: 14px 8px;
}
/* Visuelle Trennung zwischen Vor-Listen und Vorstellungs-Spalten */
.board__sep {
  flex: 0 0 1px;
  align-self: stretch;
  background: var(--border);
  margin: 0 6px;
}
/* Eingeklappt (default): eine schmale Aufklapp-Kachel (eigenes Board-Item, kein Wrapper). */
.board__vortile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 120px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.board__vortile:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.board__vortile-chev {
  display: inline-flex;
}
.board__vortile-label {
  writing-mode: vertical-rl;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Einklapp-Chevron im Long-List-Spaltenkopf (aufgeklappter Zustand). */
.board__col-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.board__col-collapse:hover {
  background: var(--bg-card);
  color: var(--accent);
}
/* ── Listen-Ansicht: Long/Short-Abschnitt (einklappbar, zwischen Filtern und Tabelle) ── */
.vorliste-sec .entwurf-sec__head .icon {
  color: var(--accent);
}
.vorliste-block {
  border-top: 1px solid var(--border);
}
.vorliste-block:first-child {
  border-top: none;
}
.vorliste-block__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--gray-50);
}
.vorliste-block__add {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
}
.vorliste-block__add:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.vorliste-block__empty {
  font-size: 12px;
  color: var(--text-3);
  padding: 12px 14px;
}
.vorliste-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-soft, var(--border));
}
.vorliste-row__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.vorliste-row__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vorliste-row__sub {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vorliste-row__score {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  min-width: 26px;
  text-align: right;
}
.vorliste-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vorliste-row__move,
.vorliste-row__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
}
.vorliste-row__move:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.vorliste-row__x:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

/* ── Auftrag-Details: WYSIWYG / Inline-Felder / Kontakte ── */
/* Stellenbeschreibung — Rich-Text-Editor */
.rte {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rte__toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--gray-25, var(--gray-50));
}
.rte__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.rte__btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
}
.rte__btn--bold {
  font-weight: 700;
}
.rte__sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 2px 4px;
}
.rte__content {
  min-height: 440px;
  padding: var(--space-4) var(--space-5);
  font-size: 13.5px;
  line-height: 1.65;
  outline: none;
}
.rte__content:focus {
  box-shadow: inset 0 0 0 2px var(--pink-50);
}
.rte__content h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 8px;
}
.rte__content h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
}
.rte__content p {
  margin: 0 0 10px;
}
.rte__content ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.rte__content li {
  margin-bottom: 4px;
}

/* Auftragsdaten — Inline-Zeilen mit Icon + Wert/Platzhalter */
.ad-list {
  display: flex;
  flex-direction: column;
}
/* `hidden`-Attribut muss das display:flex schlagen, sonst klappt der Rest nie ein. */
.ad-list[hidden] {
  display: none;
}
.ad-row {
  display: grid;
  grid-template-columns: 20px 130px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.ad-row:last-child {
  border-bottom: none;
}
.ad-row__icon {
  display: inline-flex;
  color: var(--text-3);
}
.ad-row__label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.ad-row__val {
  min-width: 0;
  font-size: 13px;
}
.ad-row--block {
  grid-template-columns: 20px 130px minmax(0, 1fr);
  align-items: start;
}
.ad-row__block {
  min-width: 0;
}
.ad-val {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 6px;
  margin: -3px -6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  color: var(--text-1);
  text-align: left;
  cursor: text;
}
.ad-val:hover {
  background: var(--gray-50);
  border-color: var(--border);
}
.ad-val--empty {
  color: var(--text-3);
}
.ad-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.ad-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ad-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ad-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  font-size: 12px;
}
.ad-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--space-3);
  padding: 0;
  border: none;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.field-edit {
  width: 100%;
  padding: 5px 8px;
  font-size: 12.5px;
}
.gehalt-edit {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gehalt-edit .field-edit {
  flex: 1;
}
.gehalt-edit span {
  color: var(--text-3);
}
.edit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.edit-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 12px;
}
.edit-chip button {
  border: none;
  background: none;
  padding: 0;
  margin-left: 1px;
  font-size: 14px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}
.edit-chip button:hover {
  color: #b91c1c;
}
.skill-add {
  display: flex;
  gap: 6px;
}
.skill-add .field-edit {
  flex: 1;
}
/* Übertragungsweg behält die editierbare Feldliste */
.field-list--edit .field-list__row {
  align-items: center;
}

/* Kontakte — Karten + „+"-Picker */
.card__add {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
}
.card__add:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.kontakt-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kontakt-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.kontakt-card__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.kontakt-card__name {
  font-size: 13px;
  font-weight: 600;
}
.kontakt-card__org {
  font-size: 12px;
  color: var(--text-3);
}
.kontakt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 2px 7px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 11.5px;
  color: var(--text-2);
  text-decoration: none;
}
a.kontakt-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.kontakt-card__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-3);
  cursor: pointer;
}
.kontakt-card__x:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

/* ── Kontakte-Tab: Grid + klickbare Karten ── */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}
.kontakt-card--click {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.kontakt-card--click:hover {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-sm);
}
.kontakt-card__lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.kontakt-card__notiz {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-3);
}
.kontakt-card__go {
  align-self: flex-start;
  color: var(--text-3);
  flex: 0 0 auto;
}
.kontakt-card--click:hover .kontakt-card__go {
  color: var(--accent);
}
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}
.pick-row__state {
  margin-left: auto;
  color: var(--text-3);
}
.pick-row.is-linked .pick-row__state {
  color: var(--success, #15803d);
}
.pk-newform {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* ── Zentriertes Modal (components/modal.js) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.modal-backdrop.is-open {
  opacity: 1;
}
.modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2 * var(--space-5));
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.16s ease;
}
.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal--lg {
  max-width: 620px;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.modal__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.modal__body {
  padding: var(--space-5);
  overflow-y: auto;
}
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}

/* ── Auftrag anlegen: Kundenunternehmen-Dropdown (öffnet bei Fokus) ── */
.ek-dropdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.ek-dropdown[hidden] {
  display: none;
}

/* ── Endkunde anlegen: Lade-/Anreicherungs-Screen ── */
.enrich-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 180px;
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.enrich-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: ek-spin 0.8s linear infinite;
}
.enrich-loader__title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-1);
}
.enrich-loader__sub {
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--font-mono, ui-monospace, monospace);
}
@keyframes ek-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .enrich-spinner {
    animation-duration: 1.6s;
  }
}

/* ── Workforce-Insights (Endkunde-Detail) ── */
.wf-observed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-md, 10px);
}
.wf-observed__label,
.wf-tile__label,
.wf-depts__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.wf-observed__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
}
.wf-chart {
  margin: var(--space-3) 0;
}
.wf-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.wf-chart__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.wf-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}
.wf-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-md, 10px);
}
.wf-tile__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
}
.wf-tile__sub {
  font-size: 11.5px;
  color: var(--text-3);
}
.wf-depts {
  margin-top: var(--space-3);
}
.wf-depts__title {
  display: block;
  margin-bottom: 6px;
}
.wf-dept-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wf-dept {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md, 10px);
}
.wf-dept__name {
  font-size: 12.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-dept__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

/* ── Firmenprofil (Unternehmensdaten-Karte) ── */
.firmenprofil {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.firmenprofil__desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.firmenprofil__group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.firmenprofil__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.firmenprofil__social {
  text-decoration: none;
}

/* ── Notes-Tab ── */
.notes-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
}
.notes-search {
  max-width: 280px;
}
.notes-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.note-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.note-card:hover {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-sm);
}
.note-card__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.note-card__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}
.note-card__peek {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.note-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.note-card__by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.note-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.note-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.note-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-2);
}
.note-card__foot {
  margin-top: 4px;
}
/* Notiz-Popup-Formular (Abstand über .form-field-Margins — kein gap nötig) */
.note-form {
  display: flex;
  flex-direction: column;
}
/* Modal: Aufnahme + Verlinken */
.note-rec {
  display: flex;
  align-items: center;
  gap: 10px;
}
.note-rec__status {
  font-size: 12.5px;
  color: var(--text-3);
}
.note-rec__status.is-rec {
  color: #b91c1c;
  font-weight: 600;
  animation: notePulse 1s ease-in-out infinite;
}
@keyframes notePulse {
  50% {
    opacity: 0.45;
  }
}
.note-verlinken {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.note-verlinken__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--space-3);
}
/* Zwei Felder nebeneinander im Popup-Formular */
.form-row {
  display: flex;
  gap: var(--space-3);
}
.form-row .form-field {
  flex: 1;
  min-width: 0;
}

/* ── ToDos-Tab (Tabelle) ── */
.todos-table td {
  vertical-align: middle;
}
.todo-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.todo-due--over {
  color: #b91c1c;
  font-weight: 600;
}
.todo-task {
  display: flex;
  align-items: center;
  gap: 8px;
}
.todo-check {
  display: inline-flex;
  cursor: pointer;
}
.todo-check input {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--accent);
}
.todo-title {
  font-weight: 500;
}
.todos-table tr.is-done .todo-title {
  text-decoration: line-through;
  color: var(--text-3);
}
.todo-actions {
  text-align: right;
  white-space: nowrap;
}
.todos-table tr[data-todo] {
  cursor: pointer;
}
.todos-table tr[data-todo]:hover {
  background: var(--gray-25, var(--gray-50));
}

/* ── Profilvertrieb-Tab ── */
.pv-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.pv-h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}
.pv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.pv-card.is-open {
  border-color: var(--pink-300);
}
.pv-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.pv-card__head:hover {
  background: var(--gray-25, var(--gray-50));
}
.pv-card__chev {
  display: inline-flex;
  color: var(--text-3);
  transition: transform 0.15s ease;
}
.pv-card.is-open .pv-card__chev {
  transform: rotate(90deg);
}
.pv-card__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.pv-card__name {
  font-size: 13.5px;
  font-weight: 600;
}
.pv-card__sub {
  font-size: 12px;
  color: var(--text-3);
}
.pv-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  flex: 0 0 auto;
}
.pv-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pv-card__meta {
  font-size: 12px;
  color: var(--text-3);
  flex: 0 0 auto;
  white-space: nowrap;
}
.pv-card__body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--border-subtle);
}
.pv-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.pv-email {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--gray-25, var(--gray-50));
}
.pv-email__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pv-email__typ {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}
.pv-email__typ--initial {
  background: var(--accent-soft);
  color: var(--accent);
}
.pv-email__typ--follow-up {
  background: var(--amber-soft, var(--gray-100));
  color: #b45309;
}
.pv-email__betreff {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.pv-email__meta {
  font-size: 11.5px;
  color: var(--text-3);
}
.pv-email__to {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.pv-email__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-1);
  margin: 0;
  white-space: normal;
}
.pv-email__att {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pv-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pv-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}
.pv-status-select {
  width: auto;
}
.pv-anh {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-anh__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  cursor: pointer;
}
.pv-anh__item input {
  accent-color: var(--accent);
}
.prelist-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 9px 11px;
  cursor: grab;
  box-shadow: var(--shadow-xs);
}
.prelist-card.is-dragging {
  opacity: 0.5;
}
.prelist-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prelist-card__name {
  font-weight: 600;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prelist-card__score {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}
.prelist-card__sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin: 3px 0 7px;
}
.prelist-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.prelist-card__send {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  padding: 5px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.prelist-card__send:hover {
  background: var(--accent-hover, var(--accent));
}
.prelist-card__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-3);
  cursor: pointer;
  flex-shrink: 0;
}
.prelist-card__x:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}
.prelist-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 60vh;
  overflow: auto;
}

/* Kanban: Drag&Drop-States */
.kcard[draggable='true'] {
  cursor: grab;
}
.kcard.is-dragging {
  opacity: 0.5;
}
.board__col.is-droptarget {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background: var(--accent-soft);
}

/* Entwürfe & Archiv-Slideover */
.ea-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ea-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
}
.ea-row:hover {
  border-color: var(--accent);
}
.ea-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ea-row__title {
  font-weight: 500;
  font-size: 13px;
}
.ea-row__sub {
  font-size: 11.5px;
  color: var(--text-3);
}

.stack-4 > * + * {
  margin-top: var(--space-4);
}

.stack-5 > * + * {
  margin-top: var(--space-5);
}

.text-muted {
  color: var(--text-3);
}

.text-secondary {
  color: var(--text-2);
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  background: linear-gradient(transparent, var(--bg-page) 35%);
  margin-top: var(--space-4);
}
