/* ====== TEAM STYLES ====== */

/* Allgemeine Styles für die Hauptinhaltsbereiche */
.team-hero {
    background-color: #cc0000;
    /* Kräftiges Rot */
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.team-hero h1 {
    font-size: 4em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* Team-Foto mit überlappendem Text */
.team-presentation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-image-wrapper {
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.main-team-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8);
    /* Macht das Bild etwas dunkler, damit der Text besser lesbar ist */
}

.team-overlay-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 450px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    /* Weißer Hintergrund mit leichter Transparenz */
    border-left: 5px solid #CC0000;
    /* Roter Akzentstreifen */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.team-overlay-text h2 {
    color: #CC0000;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.team-overlay-text p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Rollen-Sektion */
.team-roles {
    text-align: center;
    padding: 60px 20px;
    background-color: #f5f5f5;
    /* Heller Hintergrund für diese Sektion */
}

.team-roles h2 {
    font-size: 2.8em;
    color: #ff0000;
    margin-bottom: 40px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.role-card {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.role-card h3 {
    color: #ff0000;
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.role-card p {
    color: #555;
    line-height: 1.5;
    text-align: left;
}

.role-card .card-names {
    color: #ff0000;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
    text-align: center;
}

.role-card p:not(.card-names) {
    text-align: left;
}

/* Call-to-Action Sektion */
.kontakt-cta {
    background-color: #ff0000;
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.kontakt-cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.kontakt-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button-Styling (Hauptbutton) */
.button {
    display: inline-block;
    background-color: white;
    color: #CC0000;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #f0f0f0;
    color: #990000;
}

/* Kleinerer Button in der Überlagerung */
.button-small {
    display: inline-block;
    background-color: #CC0000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button-small:hover {
    background-color: #990000;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    .team-hero h1 {
        font-size: 3em;
        letter-spacing: 3px;
    }

    .team-overlay-text {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        padding: 20px;
        background-color: white;
        border-left: none;
        border-top: 5px solid #ff0000;
    }

    .main-team-photo {
        filter: brightness(1);
    }

    .team-roles h2,
    .kontakt-cta h2 {
        font-size: 2em;
    }
}

@media (max-width: 800px) {
    .role-grid {
        grid-template-columns: repeat(2, 300px);
        gap: 20px;
        overflow-x: auto;
        width: fit-content;
        padding: 0 20px 20px 20px;
    }

    .role-grid::-webkit-scrollbar {
        height: 8px;
    }

    .role-grid::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 4px;
    }

    .team-roles {
        padding: 60px 0;
    }
}

@media (max-width: 650px) {
    .role-grid {
        grid-template-columns: 300px;
        overflow-x: hidden;
        width: 100%;
        padding: 0 10px 20px 10px;
        justify-content: center;
    }

    .role-card {
        max-width: 100%;
    }
}