.team-page {
    padding-bottom: 4rem; /* Abstand zwischen Content-Ende und Footer */
}
/* =========================
   Team Member & Abstände
   ========================= */
.team-member {
    overflow: hidden;
    margin-bottom: 2rem; /* Abstand unter jedem Teamfoto auf allen Geräten */
}

@media (min-width: 992px) { /* Desktop: Abstand übernimmt die Reihe */
    .team-member {
        margin-bottom: 0;
    }
}

/* =========================
   Team Captions & Buttons
   ========================= */
.team-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(94, 104, 150, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.team-name {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-cv {
    background-color: #1E1E1E;
    color: #fff;
    padding: 0.1rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.btn-cv:hover {
    background-color: #3a3a3a;
}

/* =========================
   Gleichmäßige Abstände zwischen den Reihen
   ========================= */
.team-page .row {
    margin-bottom: 0; /* Mobile Default */
}

@media (min-width: 992px) { /* Desktop */
    .team-page .row {
        margin-bottom: 3rem;
    }
}

/* =========================
   Mobile / Tablet Anpassungen
   ========================= */
@media (max-width: 1070px) {
    .team-caption {
        flex-wrap: wrap;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .team-name {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .btn-cv {
        width: auto;
        text-align: center;
        margin: 0 auto;
    }
}

/* =========================
   Lebenslauf Page
   ========================= */
.lebenslauf-page {
    padding-bottom: 4rem; /* Abstand zwischen Content-Ende und Footer */
}
h1 .highlight-name {
    color: #5E6896; /* Lila */
}
