.team-grid {
    position: relative;
}

.team-grid__headline {
    color: var(--brand-accent-color);
}

.team-grid__subline {
    margin-bottom: 0;
    color: var(--brand-primary-text-color);
    font-size: 1.05rem;
}

.team-grid__description {
    margin-top: 1.5rem;
    color: var(--brand-primary-text-color);
    line-height: 1.7;
}

.team-grid__description > *:last-child {
    margin-bottom: 0;
}

.team-grid__groups {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-grid__group-title {
    margin-bottom: 1.5rem;
    color: var(--brand-accent-color);
}

.team-grid__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
}

.team-grid__card {
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.team-grid__image-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--brand-primary-color);
}

.team-grid__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-grid__card-body {
    padding: 1.25rem;
}

.team-grid__top {
    margin-bottom: 1rem;
}

.team-grid__name {
    font-size: 1.3rem;
    font-weight: 600;
}

.team-grid__position {
    color: var(--brand-accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.team-grid__contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.team-grid__contact-link {
    color: var(--brand-primary-text-color);
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.team-grid__contact-link:hover {
    color: var(--brand-accent-color);
}

.team-grid__info {
    color: var(--brand-primary-text-color);
   font-size: 0.8rem;
    font-weight: 300;
}

.team-grid.light-text .team-grid__headline,
.team-grid.light-text .team-grid__group-title,
.team-grid.light-text .team-grid__subline,
.team-grid.light-text .team-grid__description {
    color: #fff;
}

@media (max-width: 992px) {
    .team-grid__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .team-grid__items {
        grid-template-columns: 1fr;
    }

    .team-grid__image-wrap {
    aspect-ratio: 4 / 4;

    }
}