/* === Bauerschmidt Team Members Grid === */
.bs-tm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .bs-tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
  .bs-tm-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* === Bauerschmidt Team Member Card === */
.bs-tm {
  --bs-tm-height: 520px;
  --bs-tm-radius: 0px;
  --bs-tm-img-fit: cover;
  --bs-tm-img-pos-x: 50%;
  --bs-tm-img-pos-y: 20%;
  --bs-tm-img-zoom: 1.06;
  --bs-tm-zoom-duration: 500ms;
  --bs-tm-gradient-start: rgba(0,0,0,0);
  --bs-tm-gradient-end: rgba(0,0,0,0.72);
  --bs-tm-gradient-from: 40%;
  --bs-tm-pad-x: 28px;
  --bs-tm-pad-bottom: 28px;
  --bs-tm-pad-top: 0px;
  --bs-tm-slide-up: 60px;
  --bs-tm-slide-duration: 380ms;
  --bs-tm-divider-color: rgba(255,255,255,0.55);
  --bs-tm-divider-width: 40px;
  --bs-tm-divider-height: 1px;
  --bs-tm-divider-mb: 14px;
  --bs-tm-name-color: #FFFFFF;
  --bs-tm-name-mb: 0px;
  --bs-tm-role-color: rgba(255,255,255,0.72);
  --bs-tm-role-mt: 6px;
  --bs-tm-icon-size: 38px;
  --bs-tm-icon-bg: rgba(255,255,255,0.15);
  --bs-tm-icon-bg-hover: rgba(255,255,255,0.30);
  --bs-tm-icon-color: #FFFFFF;
  --bs-tm-icon-gap: 8px;
  --bs-tm-icon-radius: 999px;
  --bs-tm-icons-mt: 14px;
  --bs-tm-icon-svg: 16px;
  display: block;
  position: relative;
  width: 100%;
  height: var(--bs-tm-height);
  overflow: hidden;
  border-radius: var(--bs-tm-radius);
}
.bs-tm-bg {
  position: absolute;
  inset: 0;
  background-size: var(--bs-tm-img-fit);
  background-position: var(--bs-tm-img-pos-x) var(--bs-tm-img-pos-y);
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1);
  transition: transform var(--bs-tm-zoom-duration) ease;
  transform-origin: center center;
}
.bs-tm:hover .bs-tm-bg {
  transform: scale(var(--bs-tm-img-zoom));
}
.bs-tm-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bs-tm-gradient-start) var(--bs-tm-gradient-from),
    var(--bs-tm-gradient-end) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.bs-tm-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--bs-tm-pad-top) var(--bs-tm-pad-x) var(--bs-tm-pad-bottom) var(--bs-tm-pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(0);
  transition: transform var(--bs-tm-slide-duration) cubic-bezier(0.4, 0, 0.2, 1);
}
.bs-tm.has-icons:hover .bs-tm-content {
  transform: translateY(calc(-1 * var(--bs-tm-slide-up)));
}
.bs-tm-divider {
  width: var(--bs-tm-divider-width);
  height: var(--bs-tm-divider-height);
  background: var(--bs-tm-divider-color);
  margin-bottom: var(--bs-tm-divider-mb);
  flex-shrink: 0;
}
.bs-tm-name {
  margin: 0 0 var(--bs-tm-name-mb) 0;
  color: var(--bs-tm-name-color);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.bs-tm-role {
  margin: var(--bs-tm-role-mt) 0 0 0;
  color: var(--bs-tm-role-color);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bs-tm-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--bs-tm-icon-gap);
  margin-top: var(--bs-tm-icons-mt);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
  pointer-events: none;
}
.bs-tm.has-icons:hover .bs-tm-icons {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.bs-tm-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bs-tm-icon-size);
  height: var(--bs-tm-icon-size);
  border-radius: var(--bs-tm-icon-radius);
  background: var(--bs-tm-icon-bg);
  color: var(--bs-tm-icon-color);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.20);
  flex-shrink: 0;
}
.bs-tm-icon-link:hover {
  background: var(--bs-tm-icon-bg-hover);
  transform: translateY(-2px);
  color: var(--bs-tm-icon-color);
}
.bs-tm-icon-link svg {
  width: var(--bs-tm-icon-svg);
  height: var(--bs-tm-icon-svg);
  fill: currentColor;
  flex-shrink: 0;
}
a.bs-tm {
  text-decoration: none;
  cursor: pointer;
  display: block;
}

@media (max-width: 767px) {
  .bs-tm {
    --bs-tm-height: 420px;
    --bs-tm-pad-x: 20px;
    --bs-tm-pad-bottom: 22px;
    --bs-tm-icon-size: 42px;
  }
  .bs-tm-name { font-size: 22px; }
  .bs-tm-role { font-size: 14px; }
  /* Auf Touch: Icons immer sichtbar — Hover funktioniert nicht zuverlässig */
  .bs-tm.has-icons .bs-tm-icons {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .bs-tm.has-icons .bs-tm-content {
    transform: none;
  }
}

@media (max-width: 480px) {
  .bs-tm {
    --bs-tm-height: 380px;
    --bs-tm-pad-x: 18px;
    --bs-tm-pad-bottom: 20px;
  }
  .bs-tm-name { font-size: 20px; }
}
