/*
 * this is me — people directory stylesheet v2 (P12, TIM-93; redesign Usama 28 Nov 2026). Served with the directory
 * pages that the admin renders (packages/core/src/directory/render.ts): /personen, /personen/ort/<stadt>,
 * /personen/branche/<branche>. Tokens, header and footer as in profile-v5.css (Lars's mockup). The people are the
 * picture: real faces lead the hub, cards stay small so a screen shows many. No web fonts, no third-party requests.
 */
:root {
  --ink: #14171c;
  --ink-soft: #4b5361;
  --ink-faint: #7a808b;
  --paper: #fbfaf7;
  --paper-alt: #f1efe9;
  --line: #e5e2da;
  --line-strong: #d3cec2;
  --accent: #ff5a3c;
  --accent-soft: #ffe6de;
  --teal: #0f5c56;
  --teal-soft: #dcf1ee;
  --brand-navy: #0e213b;
  --card: #fff;
  --radius: 14px;
  --max: 1240px;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 8px;
}
[hidden] {
  display: none !important;
}
.pd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header and footer (as on the profiles) ---------- */
.tm-header {
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
}
.tm-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}
.tm-logo img {
  height: 22px;
  width: auto;
}
.tm-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pd-nav {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.pd-nav[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.tm-cta {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}
.tm-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 22px 0 28px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.tm-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}
.tm-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.tm-footer a {
  color: var(--ink);
}

/* ---------- Page ---------- */
.pd-main {
  padding-top: 36px;
}
.pd-main h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
}
.pd-main h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.pd-crumbs {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.pd-crumbs a {
  color: var(--teal);
  font-weight: 650;
  text-decoration: none;
}
.pd-crumbs a:hover {
  text-decoration: underline;
}
.pd-note,
.pd-count {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

/* ---------- Hub header: real faces, then the headline ---------- */
.pd-hero {
  margin-bottom: 26px;
}
.pd-faces {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}
.pd-faces img,
.pd-faces-more {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  margin-left: -12px;
}
.pd-faces img {
  object-fit: cover;
  background: var(--paper-alt);
}
.pd-faces img:first-child {
  margin-left: -3px;
}
.pd-faces-more {
  display: grid;
  place-items: center;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.pd-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 8px;
}
.pd-fine {
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: 70ch;
  margin: 0;
}

/* ---------- Search and filters ---------- */
.pd-filter {
  margin-bottom: 22px;
}
.pd-searchrow {
  display: flex;
  gap: 10px;
}
.pd-q {
  position: relative;
  flex: 1;
  display: block;
}
.pd-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
.pd-q input {
  width: 100%;
  height: 54px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0 16px 0 46px;
  box-shadow:
    0 1px 2px rgba(20, 23, 28, 0.04),
    0 8px 24px rgba(20, 23, 28, 0.05);
  -webkit-appearance: none;
  appearance: none;
}
.pd-q input::placeholder {
  color: var(--ink-faint);
}
.pd-q input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.pd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.pd-toggle[aria-expanded='true'] {
  border-color: var(--ink);
}
.pd-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
}
.pd-filters {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.pd-filter.is-open .pd-filters {
  display: grid;
}
.pd-sel {
  position: relative;
  display: block;
  min-width: 0;
}
.pd-sel select {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  height: 40px;
  width: 100%;
  padding: 0 34px 0 14px;
  background-color: var(--card);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}
.pd-sel select:hover {
  border-color: var(--line-strong);
}
.pd-sel select.is-set {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pd-sel select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.pd-chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 650;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.pd-chk:has(input:checked) {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}
.pd-chk input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}
.pd-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--teal);
  background: var(--teal-soft);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.pd-tag span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}
.pd-tag:hover span {
  background: rgba(15, 92, 86, 0.14);
}
.pd-reset {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (min-width: 760px) {
  .pd-toggle {
    display: none;
  }
  .pd-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .pd-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  }
}

/* ---------- Cards: small, so a screen holds many ---------- */
.pd-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .pd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 860px) {
  .pd-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1160px) {
  .pd-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px 12px 12px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pd-link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 18px rgba(20, 23, 28, 0.07);
}
.pd-link:hover .pd-name {
  color: var(--teal);
}
.pd-face {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}
.pd-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-alt);
}
.pd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
/* Five quiet tints from the brand palette, fixed per person (render.ts directoryTint). */
.pd-t0 {
  background: var(--teal-soft);
  color: var(--teal);
}
.pd-t1 {
  background: var(--accent-soft);
  color: #9c2f19;
}
.pd-t2 {
  background: #e4e9f2;
  color: var(--brand-navy);
}
.pd-t3 {
  background: #f4ead2;
  color: #6f5212;
}
.pd-t4 {
  background: #ece6f3;
  color: #4d3a6b;
}
.pd-own {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--card);
}
.pd-own::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pd-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pd-name,
.pd-co {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-name {
  font-weight: 750;
  font-size: 0.97rem;
  line-height: 1.3;
  transition: color 0.15s;
}
.pd-co {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.pd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 3px;
  white-space: nowrap;
}
.pd-role {
  flex: none;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 6px;
  padding: 1px 7px;
  line-height: 1.5;
}
.pd-city {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--teal);
}
.pd-more {
  display: block;
  margin: 22px auto 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  min-height: 44px;
  cursor: pointer;
}
.pd-more:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- List pages ---------- */
.pd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.pd-head .pd-count {
  margin: 0;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.pd-btn:hover {
  border-color: var(--ink);
}

/* ---------- Browse by city and industry ---------- */
.pd-browse {
  margin-top: 44px;
}
.pd-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.pd-chip:hover {
  border-color: var(--line-strong);
  color: var(--teal);
}
.pd-chip .pd-n {
  font-weight: 600;
}
.pd-n {
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.pd-all {
  margin-top: 12px;
}
.pd-all summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
}
.pd-groups {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  columns: 4 170px;
  column-gap: 24px;
}
.pd-groups li {
  break-inside: avoid;
  padding: 3px 0;
  font-size: 0.9rem;
}
.pd-groups a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.pd-groups a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ---------- Pager ---------- */
.pd-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.pd-pager a,
.pd-pager span {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.pd-pager a:hover {
  border-color: var(--ink);
}
.pd-pager span[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 480px) {
  .tm-cta {
    padding: 7px 11px;
    font-size: 0.78rem;
  }
  .wrap {
    padding: 0 16px;
  }
  .pd-main {
    padding-top: 26px;
  }
  .pd-q input,
  .pd-toggle {
    height: 50px;
  }
  .pd-faces img,
  .pd-faces-more {
    width: 44px;
    height: 44px;
    margin-left: -11px;
  }
  .pd-faces img:nth-of-type(n + 6) {
    display: none;
  }
  .pd-lede {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-link,
  .pd-name {
    transition: none;
  }
}
