/* Schlanke interne Expertenprofilansicht – ergänzt die gemeinsamen Unterseiten-Styles. */
.expert-profile-page {
  --expert-ink: var(--home-ink, #071f26);
  --expert-muted: #36585f;
  --expert-blue: var(--home-blue, #2f4356);
  --expert-red: var(--home-red, #8f2437);
  --expert-line: var(--home-line, #c6dadd);
  --expert-tint: var(--home-tint, #edf5f5);
  --expert-cream: var(--content-cream, #f6f3ea);
}

.expert-profile-page [hidden] {
  display: none !important;
}

.expert-profile-hero {
  padding: clamp(48px, 5.2vw, 76px) 0 clamp(42px, 4.8vw, 66px);
  background: #fff;
}

.expert-profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(168px, .42fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.expert-profile-portrait {
  position: relative;
  display: grid;
  width: min(100%, 270px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--expert-line);
  border-radius: 50%;
  background: var(--expert-tint);
  box-shadow: 14px 14px 0 var(--expert-cream);
}

.expert-profile-portrait::after {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(47, 67, 86, .18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.expert-profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-profile-portrait-initials {
  color: var(--expert-blue);
  font-family: "Noto Sans SKB", "Noto Sans", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
}

.expert-profile-overline {
  margin: 0 0 14px;
  color: var(--expert-red) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.expert-profile-back-link {
  display: inline-block;
  margin: 0 0 24px;
  color: var(--expert-blue);
  font-size: 14px;
  font-weight: 700;
}

.expert-profile-back-link:hover,
.expert-profile-back-link:focus-visible {
  color: var(--expert-ink);
}

.expert-profile-hero h1 {
  max-width: 19ch;
  margin-bottom: 17px;
}

.expert-profile-status {
  max-width: 56ch;
  margin: 0;
  color: var(--expert-muted) !important;
}

.expert-profile-body {
  padding: clamp(52px, 6.5vw, 92px) 0;
  background: var(--expert-cream);
}

.expert-profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}

.expert-profile-main-stack,
.expert-profile-side-stack {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: clamp(16px, 2vw, 26px);
}

.expert-profile-panel,
.expert-profile-state {
  border: 1px solid var(--expert-line);
  background: #fff;
}

.expert-profile-panel {
  padding: clamp(21px, 2.6vw, 32px);
}

.expert-profile-panel h2,
.expert-profile-state h2 {
  margin: 0;
  color: var(--expert-ink);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  letter-spacing: -.05em;
  line-height: 1.08;
}

.expert-profile-panel > .expert-profile-overline {
  margin-bottom: 11px;
}

.expert-profile-description {
  display: grid;
  gap: 16px;
  margin: 25px 0 0;
}

.expert-profile-description p {
  max-width: 66ch;
  margin: 0;
  color: var(--expert-muted) !important;
  line-height: 1.62 !important;
  white-space: pre-wrap;
}

.expert-profile-empty-note,
.expert-profile-location-copy {
  margin: 16px 0 0;
  color: var(--expert-muted) !important;
}

.expert-profile-fact-list {
  display: grid;
  gap: 0;
  margin: 23px 0 0;
  padding: 0;
  border-top: 1px solid var(--expert-line);
}

.expert-profile-fact-list > div {
  display: grid;
  grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--expert-line);
}

.expert-profile-fact-list dt {
  color: var(--expert-muted);
  font-size: 12px;
  font-weight: 700;
}

.expert-profile-fact-list dd {
  margin: 0;
  color: var(--expert-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
}

.expert-profile-fact-list a {
  color: var(--expert-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.expert-profile-fact-list a:hover,
.expert-profile-fact-list a:focus-visible {
  color: var(--expert-red);
}

.expert-profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.expert-profile-tag {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--expert-line);
  border-radius: 999px;
  color: var(--expert-blue);
  background: var(--expert-tint);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}

.expert-profile-tag:hover,
.expert-profile-tag:focus-visible {
  border-color: var(--expert-blue);
  color: #fff;
  background: var(--expert-blue);
  transform: translateY(-1px);
}

.expert-profile-keyword {
  color: var(--expert-red);
  background: #fff;
}

.expert-profile-keyword:hover,
.expert-profile-keyword:focus-visible {
  border-color: var(--expert-red);
  background: var(--expert-red);
}

.expert-profile-language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.expert-profile-language-list li {
  padding: 4px 0;
  color: var(--expert-muted);
  font-size: 14px;
  line-height: 1.35;
}

.expert-profile-language-list li:not(:last-child)::after {
  margin-left: 7px;
  color: var(--expert-line);
  content: "•";
}

.expert-profile-contact {
  padding: clamp(21px, 2.6vw, 32px);
  border: 1px solid var(--expert-line);
  border-top: 3px solid var(--expert-blue);
  background: var(--expert-tint);
}

.expert-profile-contact h2 {
  margin: 0;
  color: var(--expert-ink);
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}

.expert-profile-contact-form {
  display: grid;
  gap: 12px;
  margin-top: 19px;
}

.expert-profile-contact-form > label,
.expert-profile-contact-fields label {
  display: grid;
  gap: 6px;
  color: var(--expert-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.expert-profile-contact-form input:not([type="checkbox"]),
.expert-profile-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(47, 67, 86, .32);
  border-radius: 0;
  background: #fff;
  color: var(--expert-ink);
  font: inherit;
  padding: 10px 11px;
}

.expert-profile-contact-form textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

.expert-profile-contact-form input:focus-visible,
.expert-profile-contact-form textarea:focus-visible {
  outline: 2px solid rgba(47, 67, 86, .55);
  outline-offset: 2px;
}

.expert-profile-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.expert-profile-contact-fields label:last-child {
  grid-column: 1 / -1;
}

.expert-profile-contact-guidelines {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--expert-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
}

.expert-profile-contact-guidelines input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--expert-red);
}

.expert-profile-contact-guidelines a {
  color: var(--expert-blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.expert-profile-contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 0;
  background: var(--expert-red);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 15px;
}

.expert-profile-contact-form button:hover,
.expert-profile-contact-form button:focus-visible {
  background: #6f1728;
}

.expert-profile-contact-form button:focus-visible {
  outline: 2px solid var(--expert-blue);
  outline-offset: 3px;
}

.expert-profile-contact-form button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.expert-profile-contact-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--expert-red) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.45 !important;
}

.expert-profile-contact-status.is-success {
  color: #247238 !important;
}

.expert-profile-state {
  max-width: 720px;
  padding: clamp(28px, 4vw, 46px);
}

.expert-profile-state p {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--expert-muted) !important;
}

.expert-profile-state a {
  display: inline-block;
  margin-top: 22px;
  color: var(--expert-blue);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .expert-profile-layout {
    grid-template-columns: 1fr;
  }

  .expert-profile-hero-grid {
    grid-template-columns: minmax(136px, .36fr) minmax(0, 1fr);
  }

  .expert-profile-portrait {
    width: min(100%, 205px);
  }
}

@media (max-width: 600px) {
  .expert-profile-hero {
    padding: 48px 0 42px;
  }

  .expert-profile-hero-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .expert-profile-portrait {
    width: 142px;
    box-shadow: 9px 9px 0 var(--expert-cream);
  }

  .expert-profile-body {
    padding: 56px 0;
  }

  .expert-profile-panel,
  .expert-profile-state {
    padding: 24px;
  }

  .expert-profile-fact-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .expert-profile-contact-fields {
    grid-template-columns: 1fr;
  }

  .expert-profile-contact-fields label:last-child {
    grid-column: auto;
  }
}
