/* ============================================
   ANWAELTE PAGE LAYOUT
   Wide layout for 5 lawyers in a row
   ============================================ */

/* Mobile-only list is hidden on desktop */
.aw-grid { display: none; }

/* Portrait sizing: scales with viewport. 22vh cap ensures portrait follows vw (not height)
   on typical desktop screens. 114px min = smallest portrait where 9px font fits the
   longest name (Matthies van Eendenburg ~113px at 9px font). */
:root {
  --lawyer-portrait: clamp(114px, min(13.5vw, 22vh), 200px);
}

/* ===== LAWYERS GRID (matches Flutter horizontal Row layout) ===== */
.lawyers-wrapper {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;

  /* Hide native scrollbar — custom scrollbar renders at the screen edge */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lawyers-wrapper::-webkit-scrollbar {
  display: none;
}

.lawyers-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* Keep horizontal until mobile breakpoint */
  justify-content: center;
  align-items: flex-start;
  gap: clamp(30px, 4vw, 60px); /* Responsive gap */
  width: 100%;
  min-height: 200px;
  padding: 0 20px;
}

.lawyer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  width: var(--lawyer-portrait);
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.lawyer-card:hover .lawyer-image img {
  opacity: 0.9;
}

.lawyer-image {
  width: var(--lawyer-portrait);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lawyer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.lawyer-name {
  color: var(--text-color);
  font-size: max(9px, calc(var(--lawyer-portrait) * 0.078));
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);
  margin: 8px 0 0;
  font-weight: var(--fw-regular);
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 799px) {
  .lawyers-grid {
    gap: 22px;
    padding: 0 16px;
  }
}

/* ── Custom scrollbar — screen edge, full height minus appbar ─────────── */
body.page-anwaelte .custom-scrollbar {
  position: fixed;
  top: var(--appbar-h);
  right: 0;
  height: calc(100vh - var(--appbar-h));
  width: 16px;
  z-index: 900;
}

body.page-anwaelte .custom-scrollbar.is-hidden {
  display: none;
}

body.page-anwaelte .custom-scrollbar__track {
  height: 100%;
  width: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.08);
}

body.page-anwaelte .custom-scrollbar__thumb {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 0;
  border-radius: 0;
  background: var(--grey);
  cursor: grab;
}

body.page-anwaelte .custom-scrollbar.is-dragging .custom-scrollbar__thumb {
  cursor: grabbing;
}
