
img {
    max-width: 100%;
    display: block;
}

ul {
    list-style-type: none;
}
ul i {
    color: #fff;
    font-size: clamp(0.9rem, 0.825rem + 0.3vw, 1.2rem);
}
ul i:hover {
    color: #f2709c;
}

section {
    font-weight: 300;
    font-style: normal;
    padding-block: min(20vh, 6rem);
    text-align: center;
    width: calc(min(90rem, 90%));
    margin-inline: auto;
}
section span,
section p,
section h2,
section h3 {
    letter-spacing: 0.035rem;
}
section p {
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
    line-height: 1.6;
    /*color: #a3a3a3;*/
    max-width: 50rem;
    margin: 0 auto;
    font-size: clamp(0.9rem, 0.825rem + 0.3vw, 1.2rem);
}
section .bg-watermark {
    color: #1f1f1f;
    font-size: clamp(6rem, 1.3333rem + 14.9333vw, 20rem);
    font-weight: 800;
    padding-top: 1rem;
    position: absolute;
    z-index: -1;
    left: 50%;
    transform: translatex(-50%) translatey(-15%);
    user-select: none;
    letter-spacing: 0.5rem;
}
section span {
    text-transform: uppercase;
    display: block;
    font-size: 1.2rem;
    color: #a3a3a3;
}
section h2 {
    font-size: clamp(3.5rem, 3rem + 1.6vw, 5rem);
    margin-top: -0.625rem;
    color: var(--brown-4);
    /*color: #fff;*/
}
section .cards {
    margin-top: 7rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: 2rem;
}
@media screen and (min-width: 51rem) {
    section .cards {
        gap: 0;
        padding-bottom: 2.5rem;
    }
}
section .cards .card-2 {
    position: relative;
    cursor: pointer;
}
section .cards .card-2 h3,
section .cards .card-2 p {
    text-transform: capitalize;
}
section .cards .card-2 h3 {
    font-size: clamp(1rem, 0.9167rem + 0.2667vw, 1.25rem);
    font-weight: 400;
    color: #f6f6f6;
}
section .cards .card-2 p {
    font-size: clamp(0.85rem, 0.75rem + 0.32vw, 1.15rem);
    letter-spacing: 0.12rem;
    font-weight: 300;
    max-width: 100%;
}
section .cards .card-2::before {
    position: absolute;
    content: "";
    width: 5rem;
    height: 6.25rem;
    z-index: 0;
    transition: 0.3s ease-in-out;
    background: #f2709c;
    background: -webkit-linear-gradient(to left, #ff9472, #f2709c);
    background: linear-gradient(to left, #ff9472, #f2709c);
    top: -0.375rem;
    left: -0.375rem;
}
section .cards .card-2::after {
    position: absolute;
    inset: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: #232526;
    background: -webkit-linear-gradient(to bottom, rgba(65, 67, 69, 0.2), rgba(8, 8, 8, 1));
    background: linear-gradient(to bottom, rgba(65, 67, 69, 0.2), rgba(8, 8, 8, 1));
}
section .cards .card-2 img {
    filter: grayscale(100%);
    transition: 0.5s ease;
}
section .cards .card-content {
    position: absolute;
    bottom: 0;
    z-index: 99;
    left: 0;
    color: #fff;
    width: 100%;
    padding: 1.875rem 1.25rem;
    text-align: center;
}
section .cards .card-content ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1.25rem;
}
.card-content p:hover {
    opacity: 0;
}
.card-content p:hover .card-content h3{
    opacity: 0;
}
section .cards .card-2:hover img {
    filter: grayscale(0%);
}
section .cards .card-2:hover::before {
    transform: scale(1.03);
}
section .cards .card-2:nth-child(1)::before {
    top: -0.375rem;
    left: -0.375rem;
}

section .cards .card-2:nth-child(2)::before {
    bottom: -0.375rem;
    left: -0.375rem;
    top: auto;
}
section .cards .card-2:nth-child(3)::before {
    top: -0.375rem;
    left: -0.375rem;
}
.team-cusco {
    padding: 18rem 2rem 0;
    font-size: 1.6rem;
}

#team {
    padding: 4rem 2rem;
    background-color: #fff;
    height: 407vh;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: left;
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*background-color: #f0f0f0; !* Heller Hintergrund für Kontrast *!*/
    background: linear-gradient(to top, transparent 0%, var(--beige-2-5) 100%); /* Heller Hintergrund für Kontrast */
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image img {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 2px 0 0 2px;
}

.team-content {
    padding: 1.5rem;
    flex: 1;
}

.team-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.team-content p {
    margin: 0.5rem 0 1rem 0;
    color: #555;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links li a {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links li a:hover {
    color: #0077b5; /* Beispielhafte Hover-Farbe */
}
figure {
    margin: 0 0 0rem;!important;
}
/* Responsive Design */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-image img {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }

    .team-content {
        padding: 1rem;
    }
}

/* Mobile Fixes */
@media screen and (max-width: 430px) {
    .w322 {
        max-width: 384px;
    }
}/* Mobile Fixes */
@media screen and (max-width: 360px) {
    .w322 {
        max-width: 322px;
    }
}
@media screen and (max-width: 768px) {
    .team-cusco {

    }
    #team {
        height: 657vh;
    }
}
@media screen and (min-width: 31.25rem) {
    section .cards .card-2:nth-child(2) {
        transform: translatey(15%);
    }
}