/* 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(200px, .5fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.expert-profile-portrait {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  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-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.expert-profile-hero-kicker .expert-profile-overline {
  margin: 0;
}

.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: 22px;
  overflow-wrap: anywhere;
}

.expert-profile-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 0;
  padding: 14px 20px;
  background: var(--expert-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.expert-profile-hero-cta:hover {
  background: #6f1728;
  color: #fff;
}

.expert-profile-hero-cta:focus-visible {
  outline: 2px solid var(--expert-blue);
  outline-offset: 4px;
}

.expert-profile-hero-cta + .expert-profile-status:not([hidden]) {
  margin-top: 18px;
}

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

.expert-profile-body {
  padding: clamp(36px, 4.5vw, 64px) 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: 18px 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-description ul {
  display: grid;
  gap: 6px;
  max-width: 66ch;
  margin: 0;
  padding-left: 1.3em;
  color: var(--expert-muted) !important;
  line-height: 1.62 !important;
  list-style: disc;
}

.expert-profile-description li {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
}

.expert-profile-description strong {
  color: inherit;
  font-weight: 700;
}

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

.expert-profile-fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--expert-line);
}

.expert-profile-fact-list > div {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 0;
}

.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 dd {
  overflow-wrap: anywhere;
}

#expert-profile-company {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.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: 0;
}

.expert-profile-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--expert-line);
  border-radius: 999px;
  color: var(--expert-blue);
  background: var(--expert-tint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.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-blue);
  border-top: 4px solid var(--expert-red);
  background: var(--expert-blue);
}

.expert-profile-contact > .expert-profile-overline {
  color: var(--expert-cream) !important;
}

#inhalt.expert-profile-page .expert-profile-contact h2 {
  margin: 0;
  color: var(--expert-cream) !important;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}

#inhalt.expert-profile-page .expert-profile-contact-intro {
  margin: 16px 0 0;
  color: var(--expert-cream) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

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

.expert-profile-contact-form > label,
.expert-profile-contact-fields label {
  display: grid;
  gap: 6px;
  color: var(--expert-cream);
  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 var(--expert-cream);
  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-cream) !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-cream);
  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-cream);
  color: var(--expert-blue);
  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: #fff;
}

.expert-profile-contact-form button:focus-visible {
  outline: 2px solid var(--expert-cream);
  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-cream) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.45 !important;
}

.expert-profile-contact-status.is-success {
  color: #c9edcf !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-side-stack {
    order: -1;
  }

  .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: 180px;
    box-shadow: 9px 9px 0 var(--expert-cream);
  }

  .expert-profile-hero-cta {
    box-sizing: border-box;
    width: 100%;
  }

  .expert-profile-body {
    padding: 36px 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;
  }
}
