.person-page-head {
  margin-bottom: 0;
  padding-bottom: 0;
}

.person-page-back {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.person-page-back a {
  color: #0f5c9c;
  text-decoration: none;
}

.person-page-back a:hover {
  text-decoration: underline;
}

.person-profile {
  width: 100%;
  margin: 0 0 3rem;
}

.person-profile-layout {
  display: grid;
  grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.person-profile-sidebar {
  min-width: 0;
}

.person-profile-main {
  min-width: 0;
}

/* Spezifischer als .person-profile-section – verhindert 2rem Abstand unter TopicNav */
.person-profile-section.person-profile-section-sidebar {
  margin-top: 0;
  padding: 14px 12px 12px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #ffffff;
}

.person-profile-section.person-profile-section-sidebar .person-profile-section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #003f7d;
}

.person-profile-hero {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fbff 0%, #ffffff 65%);
}

.person-profile-hero-main {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.person-profile-hero-portrait {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #003f7d 0%, #00a3ad 100%);
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 4px rgba(0, 163, 173, 0.3);
}

.person-profile-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-profile-hero-portrait span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.person-profile-hero-text h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #003f7d;
}

.person-profile-hero-kicker {
  margin: 0 0 6px;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}

.person-profile-hero-subtitle {
  margin: 6px 0 10px;
  font-size: 0.9rem;
  color: #355476;
}

.person-profile-bereiche {
  margin: 0 0 8px;
  display: grid;
  gap: 4px;
}

.person-profile-bereich-row {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #0f5c9c;
}

.person-profile-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.person-profile-metric {
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
}

.person-profile-metric h2 {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #475569;
}

.person-profile-metric p {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
  color: #123257;
}

.person-profile-section {
  margin-top: 2rem;
}

.person-profile-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #123257;
}

.person-profile-section-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8eef5;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.person-profile-werdegang {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #355476;
}

.person-profile-werdegang p {
  margin: 0 0 0.75rem;
}

.person-profile-werdegang.is-collapsed p:nth-of-type(n + 3) {
  display: none;
}

.person-profile-readmore {
  margin-top: 4px;
  border: 1px solid #cfdbea;
  border-radius: 7px;
  background: #f7fbff;
  color: #0f5c9c;
  font-size: 0.84rem;
  padding: 6px 10px;
  cursor: pointer;
}

.person-profile-readmore:hover,
.person-profile-readmore:focus-visible {
  border-color: #9eb8d8;
  color: var(--iab-teal-link);
  background: #ffffff;
  outline: none;
}

.person-profile-error {
  color: #b91c1c;
  font-size: 0.9rem;
}

.person-profile-empty {
  color: #475569;
  font-size: 0.9rem;
}

.person-publication-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  overflow: hidden;
}

.person-publication-item + .person-publication-item {
  border-top: 1px solid #e8eef5;
}

.person-publication-item {
  background: #ffffff;
}

.person-publication-link {
  display: block;
  padding: 12px 16px 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.person-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.person-publication-link:hover {
  background: rgba(0, 163, 173, 0.06);
}

.person-publication-link-static {
  cursor: default;
}

.person-publication-link-static:hover {
  background: transparent;
}

.person-publication-title {
  display: block;
  font-weight: 600;
  color: #0f5c9c;
  line-height: 1.35;
}

.person-publication-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #475569;
}

.person-publication-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 4px;
}

.person-publication-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid #cfdbea;
  text-decoration: none;
}

.person-publication-badge-chart {
  background: rgba(0, 163, 173, 0.12);
  border-color: rgba(0, 163, 173, 0.35);
  color: #006970;
}

.person-publication-badge-chart:hover,
.person-publication-badge-chart:focus-visible {
  background: rgba(0, 163, 173, 0.2);
  color: #004d52;
}

.person-publication-badge-pdf {
  background: #eef8f0;
  border-color: rgba(31, 107, 58, 0.25);
  color: #1f6b3a;
}

.person-publication-badge-pdf:hover,
.person-publication-badge-pdf:focus-visible {
  background: #dff0e4;
  color: #145a2c;
}

.person-publication-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.person-publication-explorer {
  display: grid;
  gap: 10px;
}

.person-publication-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 180px) minmax(0, 180px);
  grid-template-areas:
    "head head head"
    "type type type"
    "query year actions";
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #f8fbff;
}

.person-publication-toolbar-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.person-publication-toolbar-head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-publication-toolbar-head h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #123257;
}

.person-publication-toolbar-field-type {
  grid-area: type;
}

.person-publication-toolbar-field-query {
  grid-area: query;
}

.person-publication-toolbar-field-year {
  grid-area: year;
}

.person-publication-toolbar-field span {
  font-size: 0.76rem;
  color: #475569;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
}

.person-publication-toolbar-field input,
.person-publication-toolbar-field select {
  border: 1px solid #cfdbea;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 0.84rem;
  color: #123257;
  background: #ffffff;
}

.person-publication-toolbar-actions {
  grid-area: actions;
  display: flex;
  align-items: end;
}

.person-publication-toolbar-reset {
  width: 100%;
  border: 1px solid #cfdbea;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 0.82rem;
  color: #123257;
  background: #ffffff;
  cursor: pointer;
}

.person-publication-toolbar-reset:hover:not(:disabled),
.person-publication-toolbar-reset:focus-visible:not(:disabled) {
  border-color: #9eb8d8;
  color: var(--iab-teal-link);
  outline: none;
}

.person-publication-toolbar-reset:disabled {
  opacity: 0.5;
  cursor: default;
}

.person-publication-toolbar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #0f5c9c;
}

.person-publication-toolbar-result {
  margin: 0;
  font-size: 0.8rem;
  color: inherit;
}

.person-publication-toolbar-default-hint {
  margin: 0;
  font-size: 0.78rem;
  color: inherit;
  text-align: right;
}

.person-project-group + .person-project-group {
  margin-top: 1rem;
}

.person-project-group-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #355476;
}

.person-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  overflow: hidden;
}

.person-project-item + .person-project-item {
  border-top: 1px solid #e8eef5;
}

.person-project-item {
  padding: 12px 16px;
  background: #ffffff;
}

.person-project-link {
  text-decoration: none;
}

.person-project-title {
  display: block;
  margin: 0;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f5c9c;
  line-height: 1.35;
}

.person-project-link:hover .person-project-title,
.person-project-link:focus-visible .person-project-title {
  color: var(--iab-teal-link);
  text-decoration: underline;
}

.person-project-meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #475569;
}

.person-project-description {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #355476;
}

.person-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.person-project-action-btn {
  border: 1px solid #cfdbea;
  border-radius: 6px;
  background: #f8fbff;
  color: #0f5c9c;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: none;
}

.person-project-action-btn:hover:not(:disabled),
.person-project-action-btn:focus-visible:not(:disabled) {
  border-color: rgba(0, 163, 173, 0.55);
  background: rgba(0, 163, 173, 0.08);
  color: #006970;
}

.person-project-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.person-project-action-btn-link {
  display: inline-flex;
  align-items: center;
}

.project-kurzinfo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(15, 37, 70, 0.45);
  cursor: pointer;
}

.project-kurzinfo-dialog {
  position: fixed;
  z-index: 1201;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #cfdbea;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 37, 70, 0.2);
  outline: none;
}

.project-kurzinfo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e8eef5;
}

.project-kurzinfo-title {
  margin: 0;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
  font-size: 1.05rem;
  line-height: 1.35;
  color: #123257;
}

.project-kurzinfo-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #355476;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.project-kurzinfo-close:hover,
.project-kurzinfo-close:focus-visible {
  border-color: rgba(0, 163, 173, 0.45);
  color: #006970;
}

.project-kurzinfo-body {
  padding: 14px 18px 18px;
  overflow: auto;
}

.project-kurzinfo-status {
  margin: 0;
  font-size: 0.9rem;
  color: #355476;
}

.project-kurzinfo-status-error {
  color: #b42318;
}

.project-kurzinfo-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 12px;
  font-size: 0.86rem;
}

.project-kurzinfo-meta dt {
  margin: 0;
  color: #475569;
  font-weight: 600;
}

.project-kurzinfo-meta dd {
  margin: 0;
  color: #123257;
}

.project-kurzinfo-description {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #355476;
  white-space: pre-wrap;
}

.project-kurzinfo-empty {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
}

.person-activities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.person-activities-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.person-activities-tab {
  border: 1px solid #cfdbea;
  border-radius: 999px;
  background: #ffffff;
  color: #355476;
  font-size: 0.82rem;
  padding: 6px 12px;
  cursor: pointer;
}

.person-activities-tab.is-active {
  background: rgba(0, 163, 173, 0.12);
  border-color: rgba(0, 163, 173, 0.45);
  color: #006970;
  font-family: "Source_Sans_Pro_Regular_Semi_Bold";
}

.person-activities-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.82rem;
  color: #0f5c9c;
  padding: 0 2px;
}

.person-activities-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px;
}

.person-activities-filter {
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: #f8fbff;
  color: #355476;
  font-size: 0.8rem;
  padding: 5px 10px;
  cursor: pointer;
}

.person-activities-filter.is-active {
  border-color: #9eb8d8;
  color: #0f5c9c;
  background: #ffffff;
}

.person-activities-list-wrap {
  border: 1px solid #e2eaf4;
  border-radius: 8px;
  background: #f8fbff;
  max-height: min(70vh, 520px);
  overflow: auto;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .person-profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-profile-layout {
    grid-template-columns: 1fr;
  }

  .person-profile-sidebar {
    order: 2;
  }

  .person-profile-section.person-profile-section-sidebar {
    margin-top: 1.25rem;
  }

  .person-profile-main {
    order: 1;
  }
}

@media (max-width: 700px) {
  .person-profile-hero-main {
    align-items: flex-start;
  }

  .person-profile-hero-portrait {
    width: 72px;
    height: 72px;
  }

  .person-profile-hero-text h1 {
    font-size: 1.18rem;
  }

  .person-publication-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "type"
      "query"
      "year"
      "actions";
  }

  .person-publication-toolbar-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .person-publication-toolbar-default-hint {
    text-align: left;
  }

  .person-activities-list-wrap {
    max-height: 340px;
  }
}
