.member-card-interactive {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-card-interactive:hover {
  transform: translateY(-2px);
  border-color: #f2c59d;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.member-card-interactive:focus-visible {
  border-color: var(--gc4c-orange, #f97316);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.member-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a3412;
}

.member-card-action::after {
  content: '→';
  font-size: 0.9rem;
  line-height: 1;
}

#memberProfileModal {
  z-index: 10020;
}

/* Das Modal-Wrapper nutzt overflow:hidden für Border-Radius-Clipping,
   wird aber als Flex-Container aufgebaut, damit der innere Inhalt scrollen kann. */
#memberProfileModal .member-profile-modal {
  max-width: min(1080px, calc(100vw - 2rem));
  width: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Die Shell füllt den verfügbaren Platz und begrenzt die Höhe */
.member-profile-shell {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 0;
  overflow: hidden;
}

/* Close-Button: erhöhte Sichtbarkeit über dem Hero-Gradient */
.member-profile-close {
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.member-profile-close:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hero: flexibel, kein reines Gradient-Hintergrund – passt zum cleanen Site-Stil */
.member-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(120px, 180px);
  gap: 1.5rem;
  padding: 2rem 2.25rem 1.5rem;
  /* Dezenterer Übergang – konsistent mit den Site-Karten */
  background: #ffffff;
  border-bottom: 2px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}

.member-profile-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.member-profile-name {
  margin: 0;
  padding-right: 2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
  color: var(--gc4c-black, #1a1a1a);
}

.member-profile-tagline {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.member-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.member-profile-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.member-profile-badge.gruendung {
  background: rgba(220, 38, 38, 0.07);
  color: var(--gc4c-red, #dc2626);
}

.member-profile-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 1rem;
  border: 1px solid #e7edf5;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.member-profile-logo-box img {
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
}

/* Der Content-Bereich ist das einzige scrollbare Element –
   Hero und Footer bleiben sticky sichtbar. */
.member-profile-content {
  padding: 1.5rem 2.25rem 2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  /* Dezenter, markenkonformer Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.member-profile-content::-webkit-scrollbar {
  width: 6px;
}

.member-profile-content::-webkit-scrollbar-track {
  background: transparent;
}

.member-profile-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.member-profile-content::-webkit-scrollbar-thumb:hover {
  background: var(--gc4c-orange, #f97316);
}

.member-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.member-profile-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
}

.member-profile-section.full {
  grid-column: 1 / -1;
}

.member-profile-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.member-profile-section-title::before {
  content: '';
  width: 0.28rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--gc4c-orange, #f97316);
  flex-shrink: 0;
}

.member-profile-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}

.member-profile-quote {
  margin-top: 0.9rem;
  background: #fff7ed;
  border-left: 3px solid var(--gc4c-orange, #f97316);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9a3412;
  font-style: italic;
}

.member-profile-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.member-profile-service {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  background: #f9fafb;
}

.member-profile-service-cluster {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-profile-service-cluster.identify {
  color: #0F6E56;
  background: rgba(15, 110, 86, 0.1);
}

.member-profile-service-cluster.protect {
  color: #185FA5;
  background: rgba(24, 95, 165, 0.1);
}

.member-profile-service-cluster.govern {
  color: #8A5A0A;
  background: rgba(138, 90, 10, 0.12);
}

.member-profile-service-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1f2937;
}

.member-profile-service-status {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a3412;
  background: #fef3c7;
}

.member-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.member-profile-fact {
  min-height: 92px;
  border-radius: 0.9rem;
  padding: 0.95rem 0.9rem;
  background: #1a1a1a;
}

.member-profile-fact-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gc4c-orange, #f97316);
}

.member-profile-fact-value.placeholder {
  font-size: 0.92rem;
  color: rgba(249, 115, 22, 0.52);
}

.member-profile-fact-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.77rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.member-profile-reference-list {
  display: grid;
  gap: 0.65rem;
}

.member-profile-reference {
  padding-left: 1rem;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #374151;
}

.member-profile-reference::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--gc4c-orange, #f97316);
}

.member-profile-reference strong {
  color: #1f2937;
}

.member-profile-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-profile-contact-list {
  display: grid;
  gap: 0.8rem;
}

.member-profile-contact-item {
  display: grid;
  gap: 0.18rem;
}

.member-profile-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.member-profile-contact-text,
.member-profile-contact-text a {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #374151;
  text-decoration: none;
}

.member-profile-contact-text a:hover {
  color: var(--gc4c-orange, #f97316);
  text-decoration: underline;
}

.member-profile-team-list {
  display: grid;
  gap: 0.95rem;
}

.member-profile-team-member + .member-profile-team-member {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.95rem;
}

.member-profile-team-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.member-profile-team-title {
  margin: 0.18rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6b7280;
}

.member-profile-team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.member-profile-team-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.74rem;
  font-weight: 600;
}

.member-profile-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2.25rem 1.2rem;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b7280;
  flex-shrink: 0;
}

.member-profile-footer strong {
  color: #1f2937;
}

@media (max-width: 900px) {
  .member-profile-hero,
  .member-profile-grid,
  .member-profile-two-col {
    grid-template-columns: 1fr;
  }

  .member-profile-services,
  .member-profile-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #memberProfileModal .member-profile-modal {
    max-width: calc(100vw - 1rem);
  }

  .member-profile-hero,
  .member-profile-content,
  .member-profile-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .member-profile-name {
    padding-right: 2.6rem;
    font-size: 1.55rem;
  }
}
