/* =========================================
   LEADER-BEREICH (Überschrift separat → darunter echter bg-primary)
   ========================================= */
.team-leader-band {
    background: var(--bs-primary) !important;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    color: #ffffff;
}

/* Typo im Leader-Band weiß */
.team-leader-band h1,
.team-leader-band h2,
.team-leader-band h3,
.team-leader-band h4,
.team-leader-band h5,
.team-leader-band p,
.team-leader-band a {
    color: #ffffff !important;
}

/* Cards im Leader-Band:
   -> Border nur links + rechts
   -> kein Border oben/unten
*/
.team-leader-band .team-card {
    border-left: 1px solid #ffffff !important;
    border-right: 1px solid #ffffff !important;
    border-top: none !important;
    border-bottom: none !important;
}

@media (max-width: 575.98px) {
    .team-leader-band .team-card {
        border: 1px solid #ffffff !important; /* volle Umrandung */
    }
}

/* =========================================
   CARDS (Standardbereiche)
   ========================================= */
.team-card {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center;
    padding-top: 2.25rem;
}

/* Wenn gesamter Block bg-primary → Border weiß */
.cbl-team.bg-primary .team-card {
    border-color: #ffffff !important;
}

/* =========================================
   PORTRAIT – springt oben über Border
   ========================================= */
.team-card__imgwrap {
    width: 160px;
    height: 160px;
    margin: -4.25rem auto 1.25rem auto;
    display: flex;
    justify-content: center;
}
.team-img {
  //  width: 160px;
  //  height: 160px;
  //  object-fit: cover;
  //   border-radius: 50%;
}

/* =========================================
   EMAIL-BUTTON – springt nach unten
   ========================================= */
.team-card .btn {
  //  margin-top: 1.25rem;
  //  margin-bottom: -2.75rem; /* deutlicher Sprung */
  //  display: inline-block;
    position: absolute;
    margin-top:1rem;
    left: 50%;
    transform: translate(-50%, 0%);
    bottom: -17px;
    width: max-content;
}

@media (max-width: 575.98px) {
    .team-card .btn {
        bottom:13px;
    }
}

/* =========================================
   TYPO / LINKS
   ========================================= */
.team-card .h5 { font-weight: 600; }
.team-card p { margin-bottom: .5rem; }

.team-card a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 575.98px) {

    .team-card__imgwrap,
    .team-img {
        width: 130px;
        height: 130px;
    }

    .team-card__imgwrap {
        margin-top: -3rem;
    }

    .team-card .btn {
        margin-bottom: -2rem;
    }
}
