/* Ansprechpartner-Team — Eurodrill Ansprechpartner.dc.html */

.ed-section.ed-team { overflow: visible; }

.ed-section.ed-team.ed-pad-md {
  padding: clamp(80px, 12vh, 150px) var(--ed-pad-h);
}

.ed-team { scroll-margin-top: 110px; }

.ed-team .ed-eyebrow-wrap {
  margin-bottom: clamp(32px, 4.5vh, 50px);
}

.ed-team__intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(44px, 6vh, 70px);
}
.ed-team__title {
  font-family: var(--ed-font-expanded);
  font-weight: 800;
  font-stretch: expanded;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 15ch;
  margin: 0;
}
.ed-team__lead {
  font: 400 17px / 1.72 var(--ed-font-sans);
  color: var(--ed-text);
  margin: 0;
}

.ed-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

.ed-team__heading {
  grid-column: 1 / -1;
  margin: clamp(36px, 5vh, 56px) 0 2px;
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ed-muted);
}
.ed-team__grid > .ed-team__heading:first-child {
  margin-top: 0;
}

.ed-team__cell { height: 100%; min-width: 0; }
.ed-team__cell--spacer { visibility: hidden; pointer-events: none; }

.ed-team__card {
  --ed-team-reveal: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ed-line-1);
  overflow: hidden;
  color: var(--ed-deep);
  box-shadow: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ed-team__card:hover,
.ed-team__card:focus-within {
  --ed-team-reveal: 5.25rem;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(14, 42, 69, .45);
}
.ed-team__card:focus-within {
  outline: 2px solid var(--ed-link);
  outline-offset: 3px;
}

.ed-team__photo {
  position: relative;
  z-index: 0;
  aspect-ratio: 4 / 5;
  background: var(--ed-navy);
  overflow: hidden;
  flex: none;
  margin-bottom: calc(-1 * var(--ed-team-reveal));
  transition: margin-bottom .3s ease;
}
.ed-team__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform .45s ease;
}
.ed-team__card:hover .ed-team__photo img { transform: scale(1.03); }
.ed-team__photo:not(:has(img))::after {
  content: 'PORTRÄT';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .45);
}

.ed-team__body {
  display: flex;
  flex-direction: column;
  flex: none;
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 22px clamp(18px, 1.8vw, 26px) 26px;
}
.ed-team__dept {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ed-link);
  margin-bottom: 11px;
  text-transform: uppercase;
}
.ed-team__name {
  font: 700 19px / 1.15 var(--ed-font-sans);
  color: var(--ed-deep);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ed-team__role {
  font: 400 14px / 1.5 var(--ed-font-sans);
  color: var(--ed-text);
  margin-top: 7px;
}

.ed-team__reveal {
  height: var(--ed-team-reveal);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: height .3s ease, opacity .25s ease;
}
.ed-team__card:hover .ed-team__reveal,
.ed-team__card:focus-within .ed-team__reveal {
  opacity: 1;
  pointer-events: auto;
}
.ed-team__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-top: 1px solid var(--ed-line-1);
  padding-top: 14px;
}
.ed-team__link,
a.ed-team__link,
a.ed-team__link:hover,
a.ed-team__link:focus,
a.ed-team__link:active {
  font: 500 13px / 1.7 var(--ed-font-sans);
  color: var(--ed-ink) !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
a.ed-team__link:hover,
a.ed-team__link:focus-visible {
  color: var(--ed-red) !important;
}

.ed-team__note {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ed-muted);
  margin: 26px 0 0;
}

@media (hover: none) {
  .ed-team__card,
  .ed-team__card:hover,
  .ed-team__card:focus-within {
    --ed-team-reveal: 0px;
    transform: none;
    box-shadow: none;
    outline: none;
  }
  .ed-team__reveal {
    height: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .ed-team__note { display: none; }
}

@media (max-width: 980px) {
  .ed-team__intro { grid-template-columns: 1fr; }
  .ed-team__grid { grid-template-columns: repeat(2, 1fr); }
  .ed-team__cell--spacer { display: none; }
}
@media (max-width: 600px) {
  .ed-team__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-team__card,
  .ed-team__photo,
  .ed-team__photo img,
  .ed-team__reveal { transition: none; }
}
