/* ============================================================
   Unser Team – Seiten-Styles
   ============================================================ */

/* ---- Animierter Wellen Hintergrund ---- */
.premium_animated_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -50;
    background: #fdfdfd;
    overflow: hidden;
    pointer-events: none;
}

.team_waves_svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.8;
}

/* ---- Team-Video (Profil-Video für einzelne Mitglieder) ---- */

.team_card_video {
    padding: 0 !important;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    align-items: stretch;
}

.team_video_wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
    background: #111;
}

.team_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;    /* Fokus auf den oberen Bereich (Gesicht) */
    display: block;
    transition: transform 0.4s ease;
}

.team_card_video:hover .team_video {
    transform: scale(1.04);
}

/* Kleines Initialen-Badge unten rechts über dem Video */
.team_video_label {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    pointer-events: none;
}

/* Card-Body unterhalb des Videos */
.team_card_video .team_card_body {
    padding: 18px 22px 20px;
    text-align: center;
}

.team_card_video .team_qualifikationen {
    justify-content: center;
}

/* Grid: zentriert für Video-Karte */
.team_grid_center {
    display: flex;
    justify-content: center;
}

.team_page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ---- Seiten-Header ---- */
.team_page_header {
    text-align: center;
    margin-bottom: 52px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e8e8e8;
}

.team_label {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin: 0 0 12px;
}

.team_page_header h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    line-height: 1.2;
}

.team_intro {
    font-size: 0.95em;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Abschnitte ---- */
.team_section {
    margin-bottom: 52px;
}

.team_section_title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

/* ---- Grid ---- */
.team_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* ---- Karte ---- */
.team_card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team_card:hover {
    transform: perspective(1000px) scale3d(1.03, 1.03, 1.03) rotateX(2deg) rotateY(-2deg) translateY(-8px);
    box-shadow: 15px 25px 45px rgba(0,0,0,0.12), inset 0 0 20px rgba(255,255,255,0.9) !important;
    z-index: 10;
}

/* ---- Avatar-Platzhalter ---- */
.team_avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: 1px;
}

/* Avatar-Farben (je Rolle/Person eine andere Nuance) */
.team_avatar_1 { background: linear-gradient(135deg, #555 0%, #222 100%); }
.team_avatar_2 { background: linear-gradient(135deg, #607080 0%, #3a4a5a 100%); }
.team_avatar_3 { background: linear-gradient(135deg, #5a7060 0%, #3a4a3e 100%); }
.team_avatar_4 { background: linear-gradient(135deg, #706050 0%, #4a3e30 100%); }
.team_avatar_5 { background: linear-gradient(135deg, #605070 0%, #3e3050 100%); }
.team_avatar_6 { background: linear-gradient(135deg, #507060 0%, #304a40 100%); }
.team_avatar_7 { background: linear-gradient(135deg, #506070 0%, #304050 100%); }
.team_avatar_8 { background: linear-gradient(135deg, #706858 0%, #504838 100%); }
.team_avatar_9 { background: linear-gradient(135deg, #586870 0%, #384850 100%); }

/* ---- Karten-Inhalt ---- */
.team_card_body {
    width: 100%;
}

.team_card_body h3 {
    font-size: 1em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.team_role {
    font-size: 0.8em;
    color: #888;
    margin: 0 0 12px;
    font-style: italic;
}

.team_info {
    font-size: 0.82em;
    color: #555;
    line-height: 1.6;
    margin: 0 0 14px;
}

/* ---- Qualifikations-Tags ---- */
.team_qualifikationen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.team_qualifikationen span {
    display: inline-block;
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72em;
    color: #555;
    font-weight: 600;
}

/* ---- Kontakt-Box am Ende ---- */
.team_kontakt {
    margin-top: 16px;
    background: #111;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: #aaa;
}

.team_kontakt_inner {
    max-width: 600px;
    margin: 0 auto;
}

.team_kontakt_label {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin: 0 0 12px;
}

.team_kontakt h2 {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
}

.team_kontakt p {
    font-size: 0.9em;
    color: #888;
    margin: 0 0 28px;
    line-height: 1.7;
}

.team_kontakt_links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.team_kontakt_btn {
    display: inline-block;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 20px;
    color: #ccc;
    font-size: 0.88em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.team_kontakt_btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
    .team_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team_grid_center {
        max-width: 100%;
        justify-content: center;
    }

    .team_card_video {
        max-width: 100%;
    }

    .team_video_wrap {
        height: 200px;
    }
}

@media screen and (max-width: 650px) {
    .wrapper_team {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .team_page {
        padding: 28px 10px 48px;
    }

    .team_page_header h1 {
        font-size: 1.7em;
    }

    .team_grid,
    .team_grid_center {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .team_kontakt {
        padding: 32px 20px;
    }

    .team_kontakt h2 {
        font-size: 1.3em;
    }

    .team_kontakt_links {
        flex-direction: column;
        align-items: center;
    }
}