/* D4 client workspace: frozen desktop profile and work-card rhythm. */
@media (min-width: 1024px) {
  .mandant-detail .detail-shell__titelzeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto) auto; align-items: center; justify-content: stretch; gap: 20px; }
  .mandant-detail__avatar { display: inline-grid; place-items: center; border-radius: 50%; }
  .mandant-detail .tabs__liste { gap: 24px; margin-bottom: 24px; }
  .mandant-detail .tab { height: 44px; min-height: 44px; padding: 0; font-size: 12px; }
  .mandant-detail__profil { display: flex; align-items: center; gap: 16px; min-width: 0; grid-column: 1; grid-row: 1; }
  .mandant-detail__profilname { min-width: 0; }
  .mandant-detail .detail-shell__titel { min-width: 0; margin: 0; font-size: 24px; line-height: 30px; font-weight: 500; }
  .mandant-detail__rechtsform { margin: 4px 0 0; color: var(--shell-muted); font-size: 12px; line-height: 18px; }
  .mandant-detail__avatar:not(.mandant-detail__avatar--klein) { width: 40px; height: 40px; flex: 0 0 40px; background: var(--semantik-stone-flaeche, #f3f1ee); color: var(--semantik-stone-text, #6f6a63); font-size: 12px; font-weight: 500; }
  .mandant-detail__avatar--klein { width: 28px; height: 28px; flex: 0 0 28px; background: var(--semantik-stone-flaeche, #f3f1ee); color: var(--semantik-stone-text, #6f6a63); font-size: 10px; font-weight: 500; }
  .mandant-detail .detail-shell__aktionen { grid-column: 3; grid-row: 1; }
  .mandant-detail__kontakt { display: block; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; line-height: 18px; grid-column: 2; grid-row: 1; }
  .mandant-detail__kontakt p { margin: 0; }
  .mandant-detail__kontakt-label { margin-bottom: 8px !important; color: var(--shell-muted); font-size: 10px; line-height: 15px; }
  .mandant-detail__kontakt-name { font-weight: 500; }
  .mandant-detail__kontaktkanal { color: var(--shell-muted); font-size: 12px; line-height: 18px; }
  .mandant-detail__mandat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--shell-border); color: var(--shell-muted); font-size: 12px; line-height: 18px; }
  .mandant-detail__mandat strong { margin-right: 12px; color: var(--shell-foreground, var(--marke-dunkel)); font-weight: 500; }
  .mandant-detail__karten { gap: 20px; align-items: start; }
  .mandant-detail__abschnitt { padding: 20px; }
  .mandant-detail__abschnitt h2 { margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
  .mandant-detail__liste { gap: 0; }
  .mandant-detail__zeile { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 13px 0; border-top: 1px solid var(--shell-border); }
  .mandant-detail__zeile:first-child { border-top: 0; padding-top: 2px; }
  .mandant-detail__zeilentitel { color: var(--shell-foreground, var(--marke-dunkel)); font-size: 12px; line-height: 18px; font-weight: 500; text-decoration: none; }
  .mandant-detail__zeilentitel:hover { text-decoration: underline; }
  .mandant-detail__zeile .meta { color: var(--shell-muted); font-size: 10px; line-height: 15px; }
  .mandant-detail__zustand { display: grid; grid-template-columns: minmax(128px, .8fr) minmax(0, 1.2fr); gap: 12px 16px; margin: 4px 0 0; }
  .mandant-detail__zustand dt { align-self: center; color: var(--shell-muted); font-size: 10px; line-height: 15px; }
  .mandant-detail__zustand dd { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; font-size: 10px; line-height: 15px; }
  .mandant-detail__person { display: inline-flex; align-items: center; gap: 7px; }
}

/* P6 / U8: informative mandant text must meet text AA contrast on white cards. */
.mandant-detail .feld-hinweis { color: var(--marke-gedaempft-kraeftig); }
