/* Team Seite - glocalSpirit Design System */
/* Mobile First Approach mit Hexagonal Layout */

/* ==========================================
   HERO SECTION
   ========================================== */

.team-screen .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 4vh, 3rem);
    padding: clamp(6rem, 13vh, 8rem) clamp(1.5rem, 6vw, 3rem) clamp(5rem, 14vh, 8rem);
    text-align: center;
    overflow: visible;
}

.team-screen {
    overflow: visible;
}

/* Hero Typography */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   SWIPE INDICATORS (Mobile Only)
   ========================================== */

.swipe-indicators {
    display: none; /* Nur auf Mobile sichtbar */
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 0;
    margin: 0 auto;
}

.swipe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.swipe-dot.active {
    background: rgba(255, 200, 87, 0.9);
    transform: scale(1.3);
}

/* ==========================================
   TEAM CONTAINER
   ========================================== */

.team-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

/* ==========================================
   LEADERSHIP TRIANGLE - ZENTRAL
   ========================================== */

.leadership-section {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.leadership-triangle {
    position: absolute;
    top: calc(50% - 32px);  /* Leicht nach oben, damit Schwerpunkt in Container-Mitte liegt */
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 50vw);
    height: min(433px, 43.3vw); /* 500 * sin(60°) ≈ 433 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Logo in der Mitte des Dreiecks - auf Schwerpunkt */
.triangle-logo {
    position: absolute;
    top: 64.75%;  /* Schwerpunkt bei Y=112.13 von Gesamt-Höhe 173.2 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(80px, 15vw, 150px);
    height: auto;
    z-index: 3;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    transition: all 0.3s ease;
}

.triangle-logo:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Kreisförmiger Container für gesamte Team-Struktur */
.team-circle-container {
    position: relative;
    width: min(800px, 95vw);
    height: min(800px, 95vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kreislinie um das Dreieck - zentriert auf Container-Mitte (= Dreieck-Schwerpunkt) */
.team-circle-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 200, 87, 0.3);
    border-radius: 50%;
    z-index: 0;
}

.triangle-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.triangle-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 24px rgba(255, 200, 87, 0.2));
}

/* Leadership Cards auf Triangle Punkten */
.leader-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Positionierung der Leader - exakt auf äußerem Dreieck */
.leader-top {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
}

.leader-left {
    bottom: 5.8%;
    left: 6.7%;
    transform: translateX(-50%);
}

.leader-right {
    bottom: 5.8%;
    right: 6.7%;
    transform: translateX(50%);
}

.triangle-label {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
}

.triangle-label .gradient-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    background: linear-gradient(135deg, #FFC857 0%, #8B7BBF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   HEXAGON AVATARS
   ========================================== */

.hexagon-avatar {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    position: relative;
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    background: linear-gradient(
        135deg,
        rgba(139, 123, 191, 0.3) 0%,
        rgba(255, 200, 87, 0.3) 100%
    );
    padding: 3px;
    transition: all 0.3s ease;
}

.hexagon-avatar::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(20, 20, 40, 0.9);
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    z-index: 1;
}

.hexagon-avatar img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
}

.hexagon-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 200, 87, 0.4);
}

/* Larger Hexagon for Modal */
.hexagon-avatar-large {
    width: 150px;
    height: 150px;
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    background: linear-gradient(
        135deg,
        rgba(139, 123, 191, 0.4) 0%,
        rgba(255, 200, 87, 0.4) 100%
    );
    padding: 4px;
    margin: 0 auto;
}

.hexagon-avatar-large::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(20, 20, 40, 0.95);
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    z-index: 1;
}

.hexagon-avatar-large img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
}

/* Member Info */
.member-name {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: center;
}

.member-role {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
}

/* ==========================================
   TEAM MEMBERS GRID - KREISFÖRMIG UM DREIECK
   ========================================== */

.team-members-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Team Member Circles - nur Avatare auf dem Kreis */
.team-member-circle {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.team-member-circle:hover {
    transform: scale(1.15) !important;
}

/* Kreisförmige Positionierung der 6 Teammitglieder */
/* Position 1: Oben (0°, 12 Uhr) */
.team-member-circle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Position 2: Rechts-Oben (60°, 2 Uhr) */
.team-member-circle:nth-child(2) {
    top: 25%;
    right: 0;
    transform: translateY(-50%);
}

/* Position 3: Rechts-Unten (120°, 4 Uhr) */
.team-member-circle:nth-child(3) {
    bottom: 25%;
    right: 0;
    transform: translateY(50%);
}

/* Position 4: Unten (180°, 6 Uhr) */
.team-member-circle:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

/* Position 5: Links-Unten (240°, 8 Uhr) */
.team-member-circle:nth-child(5) {
    bottom: 25%;
    left: 0;
    transform: translateY(50%);
}

/* Position 6: Links-Oben (300°, 10 Uhr) */
.team-member-circle:nth-child(6) {
    top: 25%;
    left: 0;
    transform: translateY(-50%);
}

/* Hexagon Avatare auf dem Kreis */
.team-member-circle .hexagon-avatar {
    width: clamp(70px, 12vw, 100px);
    height: clamp(70px, 12vw, 100px);
    white-space: nowrap;
}

/* ==========================================
   VALUES SECTION
   ========================================== */

.values-section {
    width: min(100%, 80rem);
    margin: 4rem auto 0;
    padding: 3rem clamp(1rem, 4vw, 1.5rem);
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 clamp(2rem, 4vw, 3rem) 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: linear-gradient(
        135deg,
        rgba(139, 123, 191, 0.1) 0%,
        rgba(69, 78, 197, 0.08) 100%
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.75rem;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ==========================================
   JOIN SECTION
   ========================================== */

.join-section {
    width: min(100%, 60rem);
    margin: 4rem auto 2rem;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.join-card {
    background: linear-gradient(
        135deg,
        rgba(139, 123, 191, 0.2) 0%,
        rgba(255, 200, 87, 0.15) 100%
    );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 200, 87, 0.3);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.join-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem;
}

.join-card p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.join-button:hover::before {
    left: 100%;
}

/* ==========================================
   MODAL
   ========================================== */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(
        135deg,
        rgba(139, 123, 191, 0.95) 0%,
        rgba(69, 78, 197, 0.9) 100%
    );
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    text-align: center;
}

.modal-avatar {
    margin-bottom: 1.5rem;
}

.modal-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.modal-role {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem;
}

.modal-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-align: left;
}

.modal-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE - Desktop Optimierungen
   ========================================== */

@media screen and (max-width: 699px) {
    /* Auf Mobile: Grid-Layout für Teammitglieder */
    .team-circle-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .team-circle-container::before {
        display: none;
    }
    
    .leadership-triangle {
        position: relative;
        margin-bottom: 0;
    }
    
    .team-members-grid {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1rem;
        width: 100%;
        height: auto;
        transform: none;
    }
    
    .team-member-circle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .team-member-circle:hover {
        transform: scale(1.1) !important;
    }
    
    .team-member-circle .hexagon-avatar {
        width: clamp(70px, 18vw, 100px);
        height: clamp(70px, 18vw, 100px);
    }
}

@media screen and (min-width: 700px) {
    /* Desktop: Kreisförmiges Layout */
    .team-circle-container {
        margin: 4rem auto;
    }
    
    /* Leadership Triangle größer */
    .leadership-triangle {
        width: 550px;
        height: 477px;
    }
}

@media screen and (min-width: 1000px) {
    .team-members-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
