/* Update 87/88 (Strang L3): Stile für public/aussen/bewerber87.js im persönlichen Bereich. Ruhig, Inhalt zuerst, Farben über die Variablen der Portale
   (hell und dunkel, je Marke): MediPersonal Blau und Grün ohne Rot, iPersonal Graphit (Rot bleibt der Marke vorbehalten). Handy zuerst (390 px). */

body.bp-portal { --bp87-a: var(--text); --bp87-v: var(--muted-2); --bp87-o: var(--muted); }
body.bp-portal[data-mandant="med"] { --bp87-a: var(--ak); --bp87-v: var(--ak2); --bp87-o: var(--ink); }

/* ---------- Stand bei Kunden ---------- */
.bp87-stand { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
#bp87-stand-karte .bp87-stand { padding-top: 0; border-top: 0; }
.bp87-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bp87-kachel { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--flaeche-2); }
.bp87-zahl { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bp87-k-titel { font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.bp87-kachel small { font-size: 12px; line-height: 1.35; color: var(--muted); overflow-wrap: break-word; hyphens: auto; }
progress.bp87-balken { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px; margin-top: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--flaeche-3); }
progress.bp87-balken::-webkit-progress-bar { background: var(--flaeche-3); border-radius: 99px; }
progress.bp87-balken.a::-webkit-progress-value { background: var(--bp87-a); border-radius: 99px; }
progress.bp87-balken.v::-webkit-progress-value { background: var(--bp87-v); border-radius: 99px; }
progress.bp87-balken.o::-webkit-progress-value { background: var(--bp87-o); border-radius: 99px; }
progress.bp87-balken.a::-moz-progress-bar { background: var(--bp87-a); border-radius: 99px; }
progress.bp87-balken.v::-moz-progress-bar { background: var(--bp87-v); border-radius: 99px; }
progress.bp87-balken.o::-moz-progress-bar { background: var(--bp87-o); border-radius: 99px; }
/* schmales Handy: die drei Kacheln untereinander (Zahl links, Text rechts), damit kein Wort mitten im Wort bricht */
@media (max-width: 479.98px) {
  .bp87-kacheln { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bp87-kachel { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px 12px; }
  .bp87-zahl { grid-row: 1 / span 2; }
  .bp87-k-titel, .bp87-kachel small { grid-column: 2; }
  progress.bp87-balken { grid-column: 1 / -1; margin-top: 6px; }
}
@media (min-width: 768px) { .bp87-kachel { padding: 14px 14px 14px; } .bp87-zahl { font-size: 30px; } }

.bp87-wochen { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bp87-svg { display: block; width: 100%; max-width: 420px; height: auto; }
.bp87-achse { stroke: var(--line-strong); stroke-width: 1; }
.bp87-bar-a { fill: var(--bp87-a); }
.bp87-bar-v { fill: var(--bp87-v); }
.bp87-svg rect.leer { fill: var(--line-strong); }
.bp87-wert { fill: var(--text); font-size: 12px; font-weight: 700; font-family: inherit; }
.bp87-kw { fill: var(--muted); font-size: 11.5px; font-family: inherit; }
.bp87-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.bp87-legende span { display: inline-flex; align-items: center; gap: 6px; }
.bp87-legende span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--bp87-a); }
.bp87-legende span.v::before { background: var(--bp87-v); }
.bp87-mail { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0 0; font-size: 14px; cursor: pointer; }
.bp87-mail input { margin-top: 1px; }
.bp87-meldung { margin-top: -4px; }

/* Handy: eine Spalte, Reihenfolge über order wie in bewerber.css (.mp-start): Stand gleich nach den Einsätzen, Kurzprofil nach den Unterlagen */
@media (max-width: 1023.98px) { .mp-start #bp87-stand-karte { order: 2; } .mp-start #bp87-kurzprofil-start { order: 5; } }

/* ---------- Kurzprofil ---------- */
.bp87-kp-kopf { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bp87-kp-foto { flex: none; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--foto-b); border: 1px solid var(--line); }
.bp87-kp-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp87-kp-foto.leer { grid-template-rows: auto auto; align-content: center; gap: 2px; color: var(--muted); text-align: center; }
.bp87-kp-foto.leer svg.i { width: 24px; height: 24px; justify-self: center; }
.bp87-kp-foto.leer span { font-size: 10.5px; line-height: 1.2; padding: 0 4px; }
.bp87-kp.kompakt .bp87-kp-foto { width: 60px; height: 60px; border-radius: 16px; }
.bp87-kp-titel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.bp87-kp-titel b { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.bp87-kp-titel small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bp87-kp-fakten { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.bp87-kp-fakten > div { min-width: 0; }
.bp87-kp-fakten dt { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.bp87-kp-fakten dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.bp87-kp.kompakt .bp87-kp-fakten { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.bp87-kp.kompakt .bp87-kp-fakten > div { display: flex; justify-content: space-between; gap: 10px; }
.bp87-kp.kompakt .bp87-kp-fakten dd { text-align: right; }
@media (min-width: 768px) { .bp87-kp:not(.kompakt) .bp87-kp-fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bp87-kp-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bp87-kp-knoepfe .knopf { min-height: 44px; }
.bp87-kp-meldung { font-size: 13.5px; }
.bp87-kp-meldung:empty { display: none; }

/* ---------- Einwilligung ---------- */
.bp87-einw { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.bp87-einw p { margin: 0; }
.bp87-einw.offen b { font-size: 15px; }
.bp87-einw-ok { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 14px; }
.bp87-einw-ok svg.i { flex: none; width: 18px; height: 18px; color: var(--ok-tx); margin-top: 1px; }
.bp87-einw-text { font-size: 14px; color: var(--muted); }
.bp87-einw-text summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); list-style: none; }
.bp87-einw-text summary::-webkit-details-marker { display: none; }
.bp87-einw-text summary svg.i { width: 16px; height: 16px; transition: transform .15s ease; }
.bp87-einw-text[open] summary svg.i { transform: rotate(90deg); }
.bp87-einw-text p, .bp87-einw-text b { display: block; margin: 6px 0 0; }
.bp87-einw-blatt { display: flex; flex-direction: column; gap: 10px; }
.bp87-einw-blatt p { margin: 0; }

/* ---------- Update 91 (Strang M4): Haken «Ich möchte vermittelt werden», Links auf die Datenschutzerklärung, Foto freiwillig ---------- */
.bp87-haken { font-size: 14.5px; line-height: 1.5; }
.bp87-haken input { margin-top: 1px; }
.bp87-haken-hinweis { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.bp87-haken-hinweis[hidden] { display: none; }
.bp87-haken-hinweis svg.i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.bp87-einw-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin: -4px 0; font-size: 14px; }
.bp87-einw-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bp87-kp-frei { margin: 0; }
