/* ==========================================================================
   PflegeZentrale – Responsive Layout System: TALENT
   Bereich: Fachkräfte-Bereich (Views/Talent/Dashboard, MyProfile, Inbox, Requests, Views/TalentDashboard, Shared/_LayoutBewerber) – body.pz-c-talent / body.pz-c-talentdashboard
   Nutzt die Tokens aus pz-shell.css (--pz-gutter, --pz-card-gap, --pz-card-radius, ...).
   Breakpoints: 576 / 768 / 992 / 1200 / 1400 (Bootstrap 5). Alle Regeln seitenbezogen eingrenzen.

   Klassen mit Präfix tp-* stehen nur in den Views dieses Bereichs (Talent/Dashboard, MyProfile,
   Inbox, Requests). Talent/Index, Onboarding und _TalentCardPartial werden hier NICHT gestylt.
   Hinweis: Die Inline-<style>-Blöcke der Views stehen im <body> (also nach dieser Datei) –
   deshalb beginnen alle Regeln mit body.pz-c-talent.pz-a-… (höhere Spezifität statt !important).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Gemeinsamer Seitenrahmen (Dashboard, Mein Profil, Inbox, Anfragen)
   -------------------------------------------------------------------------- */
body.pz-c-talent.pz-a-dashboard .tp-page,
body.pz-c-talent.pz-a-myprofile .tp-page,
body.pz-c-talent.pz-a-inbox .tp-page,
body.pz-c-talent.pz-a-requests .tp-page {
    padding-top: clamp(16px, 2.6vw, 32px);
    padding-bottom: clamp(32px, 5vw, 64px);
}

body.pz-c-talent.pz-a-dashboard .tp-container,
body.pz-c-talent.pz-a-myprofile .tp-container,
body.pz-c-talent.pz-a-inbox .tp-container,
body.pz-c-talent.pz-a-requests .tp-container {
    width: 100%;
    max-width: calc(var(--pz-content-max) + 2 * var(--pz-gutter));
    margin-inline: auto;
    padding-inline: var(--pz-gutter);
}

/* --------------------------------------------------------------------------
   2. Dashboard + Mein Profil: Profilkarte | Inhalt | Übersicht
      Handy/Tablet: untereinander · 992–1399: Seitenleiste links + Inhalt · ab 1400: drei Spalten
   -------------------------------------------------------------------------- */
body.pz-c-talent.pz-a-dashboard .tp-layout,
body.pz-c-talent.pz-a-myprofile .tp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "profile" "main" "side";
    gap: var(--pz-card-gap);
    align-items: start;
}

body.pz-c-talent.pz-a-dashboard .tp-area-profile,
body.pz-c-talent.pz-a-myprofile .tp-area-profile { grid-area: profile; min-width: 0; }

body.pz-c-talent.pz-a-dashboard .tp-area-main,
body.pz-c-talent.pz-a-myprofile .tp-area-main {
    grid-area: main;
    min-width: 0;
    container-type: inline-size;
    container-name: tpmain;
}

body.pz-c-talent.pz-a-dashboard .tp-area-side,
body.pz-c-talent.pz-a-myprofile .tp-area-side { grid-area: side; min-width: 0; }

@media (min-width: 992px) {
    body.pz-c-talent.pz-a-dashboard .tp-layout,
    body.pz-c-talent.pz-a-myprofile .tp-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        grid-template-areas: "profile main" "side main";
        grid-template-rows: auto 1fr;
    }
}

@media (min-width: 1400px) {
    body.pz-c-talent.pz-a-dashboard .tp-layout,
    body.pz-c-talent.pz-a-myprofile .tp-layout {
        grid-template-columns: 264px minmax(0, 1fr) 330px;
        grid-template-areas: "profile main side";
        grid-template-rows: auto;
        align-items: stretch; /* Seitenspalten so hoch wie der Inhalt → Karten können mitlaufen */
    }

    body.pz-c-talent.pz-a-dashboard .tp-sticky,
    body.pz-c-talent.pz-a-myprofile .tp-sticky {
        position: sticky;
        top: 88px; /* feste Navbar (~64 px) + Abstand */
    }

    /* Mein Profil: Sicherheitsnetz bei sehr niedrigen Fenstern – Karte scrollt intern statt abgeschnitten zu werden */
    body.pz-c-talent.pz-a-myprofile .tp-side-card.tp-sticky {
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}
/* Dashboard: die lange Übersichtskarte läuft nur mit, wenn sie ganz ins Fenster passt */
@media (min-width: 1400px) and (max-height: 999.98px) {
    body.pz-c-talent.pz-a-dashboard .tp-side-card.tp-sticky { position: static; }
}

/* Tablet (576–991): breite Seitenkarten innen zweispaltig statt einer langen, leeren Spalte */
@media (min-width: 576px) and (max-width: 991.98px) {
    body.pz-c-talent.pz-a-dashboard .tp-profile-card,
    body.pz-c-talent.pz-a-myprofile .tp-profile-card {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        column-gap: 28px;
        align-items: center;
    }

    body.pz-c-talent.pz-a-dashboard .tp-side-card,
    body.pz-c-talent.pz-a-myprofile .tp-side-card {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
        align-items: start;
    }

    body.pz-c-talent.pz-a-dashboard .tp-profile-facts .border-top { margin-top: 1rem !important; }
}

/* Lange Namen/Berufe in schmalen Karten sauber umbrechen */
body.pz-c-talent.pz-a-dashboard .tp-profile-card :is(h4, h5, .ds-badge-blue),
body.pz-c-talent.pz-a-myprofile .tp-profile-card :is(h4, h5, .ep-badge-blue) {
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. Talent/Dashboard
   -------------------------------------------------------------------------- */
body.pz-c-talent.pz-a-dashboard .tp-area-main > .mb-4:first-child h2 {
    font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2rem);
    overflow-wrap: anywhere;
}

/* Kennzahlen-Kacheln: 1 → 2 → 4 Spalten je nach verfügbarer Inhaltsbreite */
body.pz-c-talent.pz-a-dashboard .tp-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
@container tpmain (min-width: 500px) {
    body.pz-c-talent.pz-a-dashboard .tp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pz-card-gap); }
}
@container tpmain (min-width: 860px) {
    body.pz-c-talent.pz-a-dashboard .tp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.pz-c-talent.pz-a-dashboard .tp-stats .stat-card { padding: 1rem; }
    body.pz-c-talent.pz-a-dashboard .tp-stats .stat-icon { width: 42px; height: 42px; flex-basis: 42px; margin-right: 12px; font-size: 1.3rem; }
}
body.pz-c-talent.pz-a-dashboard .tp-stats .stat-card { height: 100%; }
body.pz-c-talent.pz-a-dashboard .tp-stats .stat-icon { flex: 0 0 48px; }
body.pz-c-talent.pz-a-dashboard .tp-stats .stat-card > div:last-child { min-width: 0; }

/* Abschnittskopf „Titel + Link rechts“ */
body.pz-c-talent.pz-a-dashboard .tp-section-head,
body.pz-c-talent.pz-a-dashboard .tp-mini-head {
    flex-wrap: wrap;
    gap: 6px 16px;
}
body.pz-c-talent.pz-a-dashboard .tp-section-head > a,
body.pz-c-talent.pz-a-dashboard .tp-mini-head > a { white-space: nowrap; }

/* Empfohlene Stellen: Karten mit Mindestbreite 270 px → 1 / 2 / 3 Spalten, gleich hoch, Fußzeile unten */
body.pz-c-talent.pz-a-dashboard .tp-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: var(--pz-card-gap);
}
body.pz-c-talent.pz-a-dashboard .tp-jobs .job-card {
    display: flex;
    flex-direction: column;
}
body.pz-c-talent.pz-a-dashboard .tp-job-head {
    flex-direction: column-reverse; /* „Top Match“ oben rechts, darunter Logo + Titel in voller Kartenbreite */
    gap: 8px;
}
body.pz-c-talent.pz-a-dashboard .tp-job-head > .d-flex { min-width: 0; }
body.pz-c-talent.pz-a-dashboard .tp-job-head .job-company-logo { flex: 0 0 40px; }
body.pz-c-talent.pz-a-dashboard .tp-job-head .job-title { overflow-wrap: break-word; }
body.pz-c-talent.pz-a-dashboard .tp-job-badge {
    align-self: flex-end;
    white-space: nowrap;
    padding: 6px 10px;
}
body.pz-c-talent.pz-a-dashboard .tp-job-foot {
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
}
body.pz-c-talent.pz-a-dashboard .tp-job-foot .job-match { white-space: nowrap; }

/* Bewerbungs-Reiter: eine Zeile, seitlich wischbar */
body.pz-c-talent.pz-a-dashboard .ds-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
body.pz-c-talent.pz-a-dashboard .ds-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    scroll-snap-align: start;
}

/* Bewerbungstabelle: in schmalen Spalten als gestapelte Zeilen statt abgeschnittener Tabelle */
@container tpmain (max-width: 620px) {
    body.pz-c-talent.pz-a-dashboard .tp-apps-table thead { display: none; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table,
    body.pz-c-talent.pz-a-dashboard .tp-apps-table tbody { display: block; width: 100%; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table tbody tr:last-child { border-bottom: 0; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table td { display: block; padding: 0; border: 0; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 700; overflow-wrap: anywhere; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: #64748b; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
    body.pz-c-talent.pz-a-dashboard .tp-apps-table td:nth-child(5) { display: none; } /* reines Deko-Icon ohne Funktion */
}

/* Nachrichten, Termine, Aktivitäten: Zeitangaben nicht zerbrechen */
body.pz-c-talent.pz-a-dashboard .activity-log li { gap: 12px; align-items: flex-start; }
body.pz-c-talent.pz-a-dashboard .activity-log li > .d-flex { min-width: 0; align-items: flex-start !important; }
body.pz-c-talent.pz-a-dashboard .activity-log .time { white-space: nowrap; flex-shrink: 0; }
body.pz-c-talent.pz-a-dashboard .ds-card .ms-auto.text-muted { white-space: nowrap; flex-shrink: 0; }
body.pz-c-talent.pz-a-dashboard .ds-card .d-flex.justify-content-between.align-items-center:has(> .text-muted.fw-bold) { gap: 12px; }
body.pz-c-talent.pz-a-dashboard .ds-card .d-flex.justify-content-between.align-items-center > .text-muted.fw-bold { white-space: nowrap; flex-shrink: 0; }
body.pz-c-talent.pz-a-dashboard .ds-card .d-flex.gap-3.align-items-center { min-width: 0; }
body.pz-c-talent.pz-a-dashboard .ds-card .d-flex.gap-3.align-items-center > .text-center { flex-shrink: 0; white-space: nowrap; }
body.pz-c-talent.pz-a-dashboard .ds-card .d-flex.gap-3 > div:nth-child(2) { min-width: 0; }

/* Schnellaktionen: gleich hohe Kacheln */
body.pz-c-talent.pz-a-dashboard .quick-action-card {
    height: 100%;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body.pz-c-talent.pz-a-dashboard .row.g-2 > .col-6 > a { display: block; height: 100%; }

/* Rechte Übersichtskarte ab 1400 etwas kompakter, damit sie in ein 900-px-Fenster passt */
@media (min-width: 1400px) {
    body.pz-c-talent.pz-a-dashboard .tp-side-card .progress-circle { width: 120px; height: 120px; }
    body.pz-c-talent.pz-a-dashboard .tp-side-card .checklist li { margin-bottom: 9px; }
    body.pz-c-talent.pz-a-dashboard .tp-side-card .checklist { padding-bottom: 1rem !important; margin-bottom: 1rem !important; }
}

/* --------------------------------------------------------------------------
   4. Talent/MyProfile
   -------------------------------------------------------------------------- */
body.pz-c-talent.pz-a-myprofile .tp-title-row {
    flex-wrap: wrap;
    gap: 14px 28px;
}
body.pz-c-talent.pz-a-myprofile .tp-title-row > div:first-child { flex: 1 1 320px; min-width: 0; }
body.pz-c-talent.pz-a-myprofile .tp-title-row h2 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2rem); }
body.pz-c-talent.pz-a-myprofile .tp-progress-mini { flex: 0 1 250px; }
@media (max-width: 575.98px) {
    body.pz-c-talent.pz-a-myprofile .tp-progress-mini { flex: 1 1 100%; }
}

body.pz-c-talent.pz-a-myprofile .form-section { padding: clamp(18px, 3.2vw, 32px); }
body.pz-c-talent.pz-a-myprofile .section-header { margin-bottom: 1.25rem; }
body.pz-c-talent.pz-a-myprofile .section-num { flex: 0 0 28px; }
body.pz-c-talent.pz-a-myprofile .section-title { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem); }

/* Formularfelder: Handy 1 Spalte, sonst 2–3 Spalten (nie mehr als 3), Felder volle Breite */
body.pz-c-talent.pz-a-myprofile .tp-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(220px, calc((100% - 40px) / 3))), 1fr));
    gap: 18px 20px;
}
body.pz-c-talent.pz-a-myprofile .tp-fields > div { min-width: 0; }
body.pz-c-talent.pz-a-myprofile .tp-fields .ep-label { display: block; }
body.pz-c-talent.pz-a-myprofile .tp-fields-lang { grid-template-columns: minmax(0, 1fr); }
@container tpmain (min-width: 620px) {
    body.pz-c-talent.pz-a-myprofile .tp-fields-lang { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Abschnitt 3: Titel + Hinweis */
body.pz-c-talent.pz-a-myprofile .tp-section-head {
    flex-wrap: wrap;
    gap: 8px 20px;
}
body.pz-c-talent.pz-a-myprofile .tp-section-head > span { flex: 1 1 260px; text-align: right; }
@media (max-width: 767.98px) {
    body.pz-c-talent.pz-a-myprofile .tp-section-head > span { text-align: left; flex-basis: 100%; }
}

/* Dokumente: Kartenraster mit Mindestbreite 230 px, Titel brechen statt überzulaufen */
body.pz-c-talent.pz-a-myprofile .tp-docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 14px;
}
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-card > .d-flex { padding-right: 18px; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-card > .d-flex > div:last-child { min-width: 0; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-icon { flex: 0 0 48px; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-title { overflow-wrap: anywhere; hyphens: auto; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-card { justify-content: space-between; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-file-link { min-width: 0; gap: 8px; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-file-link > div { display: flex; align-items: center; min-width: 0; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-file-link .text-truncate { min-width: 0; }
body.pz-c-talent.pz-a-myprofile .tp-docs .doc-file-link .badge { font-size: 12px; flex-shrink: 0; }

/* Qualifikations-Chips: Touch-Ziel 44 px */
body.pz-c-talent.pz-a-myprofile .pill-checkbox label { min-height: 44px; }

/* Abschnitt 7: Schalter nicht zusammenquetschen */
body.pz-c-talent.pz-a-myprofile .tp-privacy-row > .d-flex { min-width: 0; }
body.pz-c-talent.pz-a-myprofile .tp-privacy-row > .d-flex > div:first-child { flex: 0 0 40px; }
body.pz-c-talent.pz-a-myprofile .tp-privacy-row .form-switch { flex-shrink: 0; }

/* Speichern-Leiste (unter 1400 px): bleibt am unteren Rand, iPhone-Home-Indikator beachtet */
body.pz-c-talent.pz-a-myprofile .tp-savebar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    margin-top: var(--pz-card-gap);
    margin-inline: calc(-1 * var(--pz-gutter));
    padding: 12px var(--pz-gutter) calc(12px + var(--pz-safe-bottom));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.06);
}
body.pz-c-talent.pz-a-myprofile .tp-savebar-btn {
    min-height: 48px;
    padding-inline: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 575.98px) {
    body.pz-c-talent.pz-a-myprofile .tp-savebar-btn { width: 100%; }
}
@media (max-width: 1399.98px) {
    /* Die Leiste ersetzt hier den Button in der Übersichtskarte (dieselbe Aktion) */
    body.pz-c-talent.pz-a-myprofile .tp-side-save { display: none; }
}
@media (min-width: 1400px) {
    body.pz-c-talent.pz-a-myprofile .tp-savebar { display: none; }
    /* Übersichtskarte kompakter, damit „Profil speichern“ in 900 px hohen Fenstern ganz sichtbar ist
       und nicht unter dem schwebenden KI-Berater-Knopf liegt */
    body.pz-c-talent.pz-a-myprofile .tp-side-card { padding: 20px 22px !important; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .progress-circle { width: 104px; height: 104px; margin-bottom: 0.9rem !important; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .progress-text .pct { font-size: 1.7rem; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card h5 { margin-bottom: 0.9rem !important; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .checklist li { margin-bottom: 6px; font-size: 0.875rem; line-height: 1.35; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .checklist li i { font-size: 1.05rem; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .checklist { margin-bottom: 0.9rem !important; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .progress.mb-4 { margin-bottom: 0.9rem !important; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .bg-primary.bg-opacity-10 { margin-bottom: 0.9rem !important; padding: 12px !important; }
    body.pz-c-talent.pz-a-myprofile .tp-side-card .tp-side-save { padding-block: 0.85rem !important; margin-bottom: 0.6rem !important; }
}

/* Tablet: Übersichtskarte zweispaltig (Kreis + Dokumente | Checkliste + Tipp) */
@media (min-width: 576px) and (max-width: 991.98px) {
    body.pz-c-talent.pz-a-myprofile .tp-side-card .tp-side-a { text-align: center; }
}

/* --------------------------------------------------------------------------
   5. Talent/Inbox – Chat
      Handy: Liste ODER Verlauf (Master/Detail, Zurück-Knopf) · ab 768: zwei Spalten mit
      eigenem Scrollbereich je Spalte, Eingabefeld immer unten sichtbar
   -------------------------------------------------------------------------- */
body.pz-c-talent.pz-a-inbox .bc-inbox-page { padding: 0; }
body.pz-c-talent.pz-a-inbox .bc-inbox-topbar {
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 18px;
}
body.pz-c-talent.pz-a-inbox .bc-page-title { min-width: 0; flex: 1 1 320px; }
body.pz-c-talent.pz-a-inbox .bc-page-title h1 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem); }
body.pz-c-talent.pz-a-inbox .bc-top-actions .bc-btn { min-height: 44px; }

body.pz-c-talent.pz-a-inbox .bc-inbox-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}
body.pz-c-talent.pz-a-inbox .bc-back-btn {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: var(--bc-text);
    font-size: 1.2rem;
    text-decoration: none;
}
body.pz-c-talent.pz-a-inbox .bc-back-btn:hover { color: var(--bc-blue); border-color: #bfdbfe; background: #eff6ff; }

/* Lange Wörter/Links in Nachrichten umbrechen */
body.pz-c-talent.pz-a-inbox .bc-message-bubble { min-width: 0; max-width: 100%; }
body.pz-c-talent.pz-a-inbox .bc-message-text,
body.pz-c-talent.pz-a-inbox .bc-conv-title-wrap h2 { overflow-wrap: anywhere; }
body.pz-c-talent.pz-a-inbox .bc-conv-top { flex-wrap: wrap; }
body.pz-c-talent.pz-a-inbox .bc-conv-title-wrap { flex: 1 1 260px; }
body.pz-c-talent.pz-a-inbox .bc-attachment { overflow-wrap: anywhere; }

@media (max-width: 767.98px) {
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid {
        overflow: clip; /* statt hidden: so bleibt das Eingabefeld „sticky“ am Bildschirmrand */
        border-radius: 20px;
    }
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid.no-thread .bc-conversation-pane { display: none; }
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid.has-thread .bc-thread-pane { display: none; }
    body.pz-c-talent.pz-a-inbox .bc-thread-pane { border-right: 0; }

    body.pz-c-talent.pz-a-inbox .bc-thread-pane-header { padding: 16px; }
    body.pz-c-talent.pz-a-inbox .bc-search-input { min-height: 48px; font-size: 16px; }
    body.pz-c-talent.pz-a-inbox .bc-filter-tabs { scroll-snap-type: x proximity; padding-bottom: 4px; }
    body.pz-c-talent.pz-a-inbox .bc-filter-tab { min-height: 44px; padding: 0 14px; font-size: 13px; scroll-snap-align: start; }
    body.pz-c-talent.pz-a-inbox .bc-thread-list { padding: 8px; }
    body.pz-c-talent.pz-a-inbox .bc-thread-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; }
    body.pz-c-talent.pz-a-inbox .bc-thread-item .bc-avatar { width: 44px; height: 44px; border-radius: 14px; }

    /* Leere Inbox auf dem Handy: freundlicher, zentrierter Leerzustand */
    body.pz-c-talent.pz-a-inbox .bc-empty-list { padding: 40px 20px 48px; }
    body.pz-c-talent.pz-a-inbox .bc-empty-list i {
        display: inline-grid;
        place-items: center;
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
        border-radius: 24px;
        background: #eff6ff;
        color: #0f62fe;
        font-size: 2.2rem;
    }
    body.pz-c-talent.pz-a-inbox .bc-empty-list p { max-width: 340px; margin-inline: auto; line-height: 1.55; }

    /* Verlauf */
    body.pz-c-talent.pz-a-inbox .bc-conversation-header { padding: 14px 16px 16px; }
    body.pz-c-talent.pz-a-inbox .bc-conv-top { gap: 12px; align-items: flex-start; }
    body.pz-c-talent.pz-a-inbox .bc-back-btn { display: inline-grid; }
    body.pz-c-talent.pz-a-inbox .bc-conv-title-wrap { flex: 1 1 0; }
    body.pz-c-talent.pz-a-inbox .bc-conv-title-wrap h2 { font-size: 1.12rem; line-height: 1.3; margin-top: 2px; }
    body.pz-c-talent.pz-a-inbox .bc-conv-actions { flex: 1 1 100%; justify-content: flex-start; }
    body.pz-c-talent.pz-a-inbox .bc-conv-actions .bc-btn { min-height: 44px; flex: 0 0 auto; }
    body.pz-c-talent.pz-a-inbox .bc-conversation-body { padding: 18px 12px 8px; overflow: visible; }
    body.pz-c-talent.pz-a-inbox .bc-message { gap: 8px; margin-bottom: 14px; }
    body.pz-c-talent.pz-a-inbox .bc-message > .bc-avatar { width: 34px; height: 34px; border-radius: 12px; font-size: 12px; }
    body.pz-c-talent.pz-a-inbox .bc-message-bubble { padding: 12px 13px; border-radius: 16px; }

    body.pz-c-talent.pz-a-inbox .bc-reply-panel {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 10px 12px calc(10px + var(--pz-safe-bottom));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.06);
    }
    /* Kompakte Eingabezeile wie in Messenger-Apps: [Anhang] [Text …] [Senden] */
    body.pz-c-talent.pz-a-inbox .bc-reply-box {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: end;
        border-radius: 16px;
    }
    body.pz-c-talent.pz-a-inbox .bc-reply-toolbar { display: contents; }
    body.pz-c-talent.pz-a-inbox .bc-reply-tools { grid-column: 1; grid-row: 1; padding: 4px 0 4px 4px; }
    body.pz-c-talent.pz-a-inbox .bc-reply-box textarea {
        grid-column: 2;
        grid-row: 1;
        height: 64px; /* zwei Zeilen: Platzhalter passt auch bei 360 px ganz hinein */
        min-height: 64px;
        max-height: 40vh;
        padding: 8px 6px;
        font-size: 16px;
        line-height: 1.5;
    }
    body.pz-c-talent.pz-a-inbox .bc-reply-toolbar > .bc-btn {
        grid-column: 3;
        grid-row: 1;
        width: 44px;
        min-height: 44px;
        margin: 4px;
        padding: 0;
        gap: 0;
        border-radius: 12px;
    }
    body.pz-c-talent.pz-a-inbox .bc-reply-toolbar > .bc-btn i { font-size: 18px; }
    /* Beschriftung nur für Screenreader (sichtbar bleibt das Senden-Symbol) */
    body.pz-c-talent.pz-a-inbox .bc-reply-toolbar > .bc-btn .bc-send-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    body.pz-c-talent.pz-a-inbox .bc-icon-btn { width: 44px; height: 44px; border-color: transparent; background: transparent; }
}

/* Kontextboxen (Typ / Arbeitgeber / Status) bei schmalem Verlauf als kompakte Liste */
@media (max-width: 991.98px) {
    body.pz-c-talent.pz-a-inbox .bc-context-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 14px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 14px;
        overflow: hidden;
    }
    body.pz-c-talent.pz-a-inbox .bc-context-box {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 12px;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }
    body.pz-c-talent.pz-a-inbox .bc-context-box:last-child { border-bottom: 0; }
    body.pz-c-talent.pz-a-inbox .bc-context-box span { margin: 0; flex-shrink: 0; }
    body.pz-c-talent.pz-a-inbox .bc-context-box strong { min-width: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
}

@media (min-width: 768px) {
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid {
        grid-template-columns: 300px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        /* Füllt das Fenster unter der festen Navbar und lässt unten Platz für die schwebenden Knöpfe
           (KI-Berater, Nach oben) – so liegt nichts über dem Senden-Knopf oder der neuesten Nachricht */
        height: clamp(480px, calc(100vh - 168px), 960px);
    }
    body.pz-c-talent.pz-a-inbox .bc-thread-pane,
    body.pz-c-talent.pz-a-inbox .bc-conversation-pane { min-height: 0; }
    body.pz-c-talent.pz-a-inbox .bc-thread-list,
    body.pz-c-talent.pz-a-inbox .bc-conversation-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    body.pz-c-talent.pz-a-inbox .bc-thread-pane-header { padding: 18px; }
    body.pz-c-talent.pz-a-inbox .bc-conversation-header { padding: 18px 20px; }
    body.pz-c-talent.pz-a-inbox .bc-conversation-body { padding: 22px 20px; }
    body.pz-c-talent.pz-a-inbox .bc-reply-panel { padding: 14px 18px; }
    body.pz-c-talent.pz-a-inbox .bc-reply-box textarea { min-height: 84px; }
}
/* Leere Inbox: kein riesiger leerer Kasten */
@media (min-width: 768px) {
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid.is-empty { height: auto; min-height: clamp(400px, 52vh, 560px); }
}
@media (min-width: 992px) {
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid { grid-template-columns: 340px minmax(0, 1fr); }
    body.pz-c-talent.pz-a-inbox .bc-conversation-header { padding: 20px 24px; }
    body.pz-c-talent.pz-a-inbox .bc-conversation-body { padding: 26px 28px; }
}
@media (min-width: 1400px) {
    body.pz-c-talent.pz-a-inbox .bc-inbox-grid { grid-template-columns: 400px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   6. Talent/Requests (Kontaktanfragen) – auch Ziel von /Talent/Matches
   -------------------------------------------------------------------------- */
body.pz-c-talent.pz-a-requests .tp-req-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: clamp(18px, 3vw, 32px);
}
body.pz-c-talent.pz-a-requests .tp-req-top h2 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2rem); min-width: 0; }
body.pz-c-talent.pz-a-requests .tp-req-back {
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
body.pz-c-talent.pz-a-requests .tp-req-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--pz-card-gap);
}
@media (min-width: 1200px) {
    body.pz-c-talent.pz-a-requests .tp-req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.pz-c-talent.pz-a-requests .tp-req-card { border-radius: var(--pz-card-radius); }
body.pz-c-talent.pz-a-requests .tp-req-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: var(--pz-card-pad);
}
body.pz-c-talent.pz-a-requests .tp-req-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
}
body.pz-c-talent.pz-a-requests .tp-req-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: contain;
    background: #ffffff;
}
body.pz-c-talent.pz-a-requests div.tp-req-logo { background: var(--bs-dark, #212529); }
body.pz-c-talent.pz-a-requests div.tp-req-logo .fs-2 { font-size: 1.6rem !important; }
@media (min-width: 768px) {
    body.pz-c-talent.pz-a-requests .tp-req-logo { width: 72px; height: 72px; flex-basis: 72px; }
}
body.pz-c-talent.pz-a-requests .tp-req-meta { flex: 1 1 180px; min-width: 0; }
body.pz-c-talent.pz-a-requests .tp-req-meta h5 { overflow-wrap: anywhere; }
body.pz-c-talent.pz-a-requests .tp-req-status { flex-shrink: 0; align-self: center; }
body.pz-c-talent.pz-a-requests .tp-req-msg p { overflow-wrap: anywhere; }
body.pz-c-talent.pz-a-requests .tp-req-actions { margin-top: auto; }
body.pz-c-talent.pz-a-requests .tp-req-actions .btn { min-height: 44px; }
body.pz-c-talent.pz-a-requests .tp-req-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    overflow-wrap: anywhere;
}
body.pz-c-talent.pz-a-requests .tp-req-empty { border-radius: var(--pz-card-radius); }
@media (max-width: 575.98px) {
    body.pz-c-talent.pz-a-requests .tp-req-empty { padding: 32px 20px !important; }
}

/* Schwebende Knöpfe (KI-Berater, Nach oben) über Speichern-Leiste bzw. Chat-Eingabefeld heben,
   solange diese unten im Bild liegen (Klasse tp-fab-lift + --tp-fab-lift setzt das Skript der jeweiligen View) */
body.pz-c-talent.pz-a-myprofile.tp-fab-lift .pz-ai-fab,
body.pz-c-talent.pz-a-inbox.tp-fab-lift .pz-ai-fab { bottom: var(--tp-fab-lift); }
body.pz-c-talent.pz-a-myprofile.tp-fab-lift #backToTopBtn.bc-back-top,
body.pz-c-talent.pz-a-inbox.tp-fab-lift #backToTopBtn.bc-back-top { bottom: var(--tp-fab-lift) !important; }

/* --------------------------------------------------------------------------
   7. Mindestschriftgrößen auf dem Handy (Wurzelschrift dort 14 px → 0.75rem wären 10,5 px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    body.pz-c-talent.pz-a-dashboard .tp-page :is(.stat-sub, .status-badge, .badge, .progress-text .lbl, .ds-badge-blue, .ds-badge-green, .ds-badge-outline, .quick-action-card span),
    body.pz-c-talent.pz-a-myprofile .tp-page :is(.badge, .doc-status, .progress-text .lbl, .doc-file-link, .tp-profile-card .bg-light),
    body.pz-c-talent.pz-a-inbox .tp-page :is(.bc-count-badge, .bc-thread-time, .bc-pill, .bc-context-box span, .bc-message-head span, .bc-date-divider, .bc-conv-meta) {
        font-size: 12px;
    }
    body.pz-c-talent.pz-a-dashboard .tp-page :is(.stat-label, .job-company, .job-match, .activity-log li, .ds-table th),
    body.pz-c-talent.pz-a-inbox .tp-page .bc-thread-preview {
        font-size: 12.5px;
    }
    body.pz-c-talent.pz-a-myprofile .tp-profile-card .bg-light[style*="font-size"] { font-size: 12px !important; } /* Inline-Stil 0.85rem */
    body.pz-c-talent.pz-a-dashboard .tp-page [style*="font-size: 0.75rem"],
    body.pz-c-talent.pz-a-dashboard .tp-page [style*="font-size: 0.8rem"],
    body.pz-c-talent.pz-a-dashboard .tp-page [style*="font-size: 0.85rem"] { font-size: 12px !important; }
}

/* --------------------------------------------------------------------------
   8. TalentDashboard/Index (_LayoutBewerber): Seitenleiste wird auf Handy/Tablet zur Kopfleiste
      mit seitlich wischbaren Navigations-Reitern (vorher: Navigation unter 992 px komplett ausgeblendet)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    body.pz-layout-bewerber .beyond-dashboard-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    body.pz-layout-bewerber .beyond-sidebar {
        display: block;
        position: static;
        height: auto;
        overflow: visible;
        padding: 12px var(--pz-gutter) 0;
        border-right: 0;
        border-bottom: 1px solid var(--beyond-border, #e2e8f0);
    }
    body.pz-layout-bewerber .tp-bew-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px !important;
        text-align: left !important;
    }
    body.pz-layout-bewerber .tp-bew-brand > a { min-height: 44px; }
    body.pz-layout-bewerber .tp-bew-brand .badge { margin-top: 0 !important; }
    body.pz-layout-bewerber .beyond-sidebar-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--pz-gutter));
        padding: 2px var(--pz-gutter) 12px;
        scroll-snap-type: x proximity;
        scroll-padding-inline: var(--pz-gutter);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.pz-layout-bewerber .beyond-sidebar-nav::-webkit-scrollbar { display: none; }
    body.pz-layout-bewerber .beyond-sidebar-nav li { flex: 0 0 auto; margin: 0 !important; scroll-snap-align: start; }
    body.pz-layout-bewerber .beyond-sidebar-link {
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid var(--beyond-border, #e2e8f0);
        border-radius: 999px;
        background: var(--beyond-surface, #ffffff);
        white-space: nowrap;
    }
    body.pz-layout-bewerber .beyond-sidebar-link i { width: auto; margin-right: 8px; }
    body.pz-layout-bewerber .beyond-main-content { padding: 20px var(--pz-gutter) 40px; }
}
@media (min-width: 992px) {
    body.pz-layout-bewerber .beyond-main-content { padding: 2rem clamp(24px, 3vw, 48px); }
    body.pz-layout-bewerber .beyond-main-content > * { max-width: var(--pz-content-max); }
}
