/* ================= Runde 2d STRUKTUR (.sz-): Gruppen der Seitenleiste, Matching-Hinweise (Teaser), Rollen, allgemeine Nachrichten ================= */

/* ---------- Seitenleiste: Gruppentitel (Kandidaten, Kunden, Matching, Vermittler) ---------- */
.sz-nav-titel { margin: 14px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
  user-select: none; pointer-events: none; }
.nav-main > .sz-nav-titel:first-of-type { margin-top: 10px; }
@media (max-width: 900px) { .sz-nav-titel { display: none; } }

/* ---------- Teaser: gemeinsame Bausteine ---------- */
.sz-fotos { display: inline-flex; align-items: center; flex: none; }
.sz-bild { position: relative; display: inline-flex; line-height: 0; border-radius: 9px; box-shadow: 0 0 0 2px var(--flaeche-2); }
.sz-bild + .sz-bild { margin-left: -8px; }
.sz-bild:nth-child(1) { z-index: 5; } .sz-bild:nth-child(2) { z-index: 4; } .sz-bild:nth-child(3) { z-index: 3; } .sz-bild:nth-child(4) { z-index: 2; }
.sz-bild.offen::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--flaeche-2); }
.sz-kt-haupt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sz-kt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sz-kt-text > b { font-size: 14px; line-height: 1.3; }
.sz-kt-text.leise > b { color: var(--muted); font-weight: 600; }
.sz-zahlen { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12.5px; color: var(--muted); }
.sz-zahlen:empty { display: none; }
.sz-zahlen a, .sz-auftraege { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line-3); }
.sz-zahlen a:hover, .sz-zahlen a:focus-visible, .sz-auftraege:hover { color: var(--text); border-bottom-color: var(--ak-ln); }
.sz-zahlen a b { color: var(--text); font-variant-numeric: tabular-nums; }
.sz-zahlen .sep { color: var(--muted-2); }
.sz-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sz-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; }
.sz-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.sz-links a:hover, .sz-links a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sz-links svg.i, .sz-hinweis svg.i, .sz-vorschlaege svg.i { width: 14px; height: 14px; flex: none; color: var(--muted-2); }
.sz-hinweis { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.sz-zeile-vorschlaege[hidden] { display: none; }
.sz-vorschlaege { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); text-decoration: none; padding: 3px 9px;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--flaeche); }
.sz-vorschlaege:hover, .sz-vorschlaege:focus-visible { border-color: var(--ak-ln); }
.sz-laedt { display: inline-flex; align-items: center; gap: 6px; }
.sz-laedt svg.i { width: 14px; height: 14px; }

/* ---------- Kunden-Teaser im Kundenprofil (Bereich „Passende Kandidaten“) und unter den Kundenlisten ---------- */
#sz-kunde-teaser, #sz-liste-teaser { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sz-kt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sz-kt.sz-leer { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sz-kt.sz-leer p { margin: 0; color: var(--muted); }
.sz-kt-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sz-kt-kopf > div { display: flex; flex-direction: column; min-width: 0; }
.sz-kt-kopf a { color: var(--text); text-decoration: none; }
.sz-kt-kopf a:hover { text-decoration: underline; text-underline-offset: 3px; }
#sz-liste-teaser { padding: 16px 18px; }
#sz-liste-teaser .sz-kt { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
#sz-liste-teaser > .lk-leer { margin: 0; }

/* ---------- Kandidaten-Teaser: Streifen unter dem Kopf der Kandidatenseite ---------- */
.sz-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin: 12px 0 0;
  border-radius: 14px; border: 1px solid var(--line); background: var(--flaeche); box-shadow: var(--sch-1); min-width: 0; }
.sz-teaser .sz-bild { box-shadow: 0 0 0 2px var(--flaeche); }
/* Ladezustand so hoch wie der fertige Streifen: die Reiter darunter springen nicht */
.sz-teaser { min-height: 66px; }
.sz-teaser.leise { min-height: 0; }
.sz-zahlen .sz-vorschlaege { padding: 0 7px; border-radius: 7px; font-size: 12px; }
.sz-teaser.leise { padding: 9px 16px; background: var(--flaeche-2); box-shadow: none; }
.sz-teaser.leise .sz-kt-text { flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sz-teaser .sz-kt-text.leise { flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sz-teaser .sz-kt-text.leise svg.i { width: 16px; height: 16px; color: var(--muted-2); }
.sz-symbol { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--flaeche-3); color: var(--muted); flex: none; }
.sz-symbol svg.i { width: 18px; height: 18px; }
.sz-teaser .sz-zeile-vorschlaege { flex-basis: 100%; }

/* ---------- Pop-up „Die besten 3“ ---------- */
.sz-beste h2 { display: flex; align-items: center; gap: 10px; }
.sz-beste-liste { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sz-beste-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--flaeche-2); }
.sz-beste-bild { line-height: 0; }
.sz-beste-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sz-beste-text a { color: var(--text); text-decoration: none; }
.sz-beste-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sz-beste-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sz-tags:empty { display: none; }
.sz-tags .tag { margin: 0; }
.sz-gesendet svg.i { width: 12px; height: 12px; vertical-align: -1px; }
.sz-beste-akt { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
@media (max-width: 640px) {
  .sz-beste-zeile { grid-template-columns: auto minmax(0, 1fr); }
  .sz-beste-akt { grid-column: 1 / -1; justify-content: flex-start; }
  .sz-teaser { padding: 12px; }
  .sz-teaser .sz-knoepfe { width: 100%; }
  .sz-teaser .sz-knoepfe .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Vermittler-Portal: allgemeine Nachrichten an die Abteilung ---------- */
.sz-plakette { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: var(--warn-bg); color: var(--warn-tx); box-shadow: inset 0 0 0 1px var(--warn-ln); }
.sz-plakette[hidden] { display: none; }
.sz-pn { display: flex; flex-direction: column; gap: 12px; }
.sz-pn-verlauf { display: flex; flex-direction: column; gap: 8px; max-height: min(46vh, 420px); overflow: auto; padding: 4px 2px; }
.sz-pn-leer { margin: 0; color: var(--muted); }
.sz-pn-eintrag { max-width: 86%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--flaeche-2); }
.sz-pn-eintrag.sie { align-self: flex-end; background: var(--flaeche-3); }
.sz-pn-eintrag.neu { border-color: var(--ak-ln); }
.sz-pn-kopf { display: flex; gap: 8px; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.sz-pn-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.sz-pn textarea { width: 100%; min-height: 96px; }
.sz-pn-zaehler { font-size: 12px; color: var(--muted-2); text-align: right; }

/* ---------- Einstellungen Team: Rollen-Auswahl, Agentur bearbeiten: zuständiger Berater ---------- */
.sz-rolle { min-width: 130px; }

/* ---------- Kandidat von Hand erfassen (Pop-up, kommt zuerst in die Freigabe) ---------- */
.sz-neu-felder { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sz-neu-felder .breit { grid-column: 1 / -1; }
.sz-neu-hand p.small { display: flex; align-items: center; gap: 6px; }
.sz-neu-hand p.small svg.i { width: 15px; height: 15px; flex: none; color: var(--muted-2); }

/* ---------- 390 px: lange E-Mail-Adressen im Verlauf des Kundenprofils brechen um (kein waagrechtes Scrollen der Seite) ---------- */
.timeline li { overflow-wrap: anywhere; }

/* ---------- Gesperrte Agentur beim Berater: wer entsperren kann (statt eines fehlenden Knopfs) ---------- */
.sz-nur-leitung { align-self: center; font-size: 12px; line-height: 1.3; padding: 0 4px; }

/* ---------- Freigabe eines von Hand erfassten Kandidaten ohne Unterlagen: nur das Formular, eine Spalte ---------- */
.pd-zwei.sz-ohne-vorschau { grid-template-columns: minmax(0, 1fr); max-width: 920px; width: 100%; margin: 0 auto; }
