/* ESF Team – Frontend Styles v3.1 */

.esf-team-card {
  position: relative;
  overflow: hidden;
  font-family: Helvetica, Arial, sans-serif;
}

/* ── BILD-CONTAINER ── */
.esf-team-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8d8d8;
  isolation: isolate;
}

.esf-team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

/* Gelber Tint-Overlay */
.esf-team-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #FCEA19;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.esf-team-card:hover .esf-team-card__image-wrap::after,
.esf-team-card:focus-within .esf-team-card__image-wrap::after {
  opacity: 1;
}

/* ── HOVER-PANEL – nur Icons, über dem Foto ── */
.esf-team-card__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FCEA19;
  padding: 12px 14px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  z-index: 2;
}

.esf-team-card:hover .esf-team-card__panel,
.esf-team-card:focus-within .esf-team-card__panel {
  transform: translateY(0);
}

/* ── EXTRA-BEREICH – Zusatzinfos klappen unterhalb des Fotos auf ── */
.esf-team-card__extra {
  overflow: hidden;
  max-height: 0;
  background: #FCEA19;
  transition: max-height 0.35s ease;
}

.esf-team-card:hover .esf-team-card__extra,
.esf-team-card:focus-within .esf-team-card__extra {
  max-height: 200px;
}

.esf-team-card__fields {
  list-style: none;
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.esf-team-card__fields li {
  margin: 0;
}

/* ── INFO-BEREICH ── */
.esf-team-card__info {
  padding: 14px 16px 16px;
  background: #fff;
}

.esf-team-card__name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #111;
  margin: 0 !important;
}

.esf-team-card__job {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  margin: 0;
}

/* ── KONTAKT-ICONS ── */
.esf-team-card__links {
  display: flex;
  gap: 10px;
}

.esf-team-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  color: #FCEA19;
  text-decoration: none;
  transition: background 0.2s ease;
}

.esf-team-card__link:hover {
  background: #333;
}

.esf-team-card__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.esf-team-card__link svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* ── GRID ── */
.esf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .esf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .esf-grid {
    grid-template-columns: 1fr;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .esf-team-card__image-wrap::after,
  .esf-team-card__panel,
  .esf-team-card__extra,
  .esf-team-card__link {
    transition: none;
  }
}
