/**
 * Team-Sidebar Styles
 * Styles für die Team-Sektion mit Hover-Effekt und Sidebar
 * Dark-Mode mit Website-Farbschema
 */

:root {
    --sidebar-primary: #ffcc00;  /* Hauptfarbe Gelb */
    --sidebar-dark-bg: #121212;  /* Dunkler Hintergrund */
    --sidebar-darker-bg: #0a0a0a;  /* Dunklerer Hintergrund */
    --sidebar-light-text: #ffffff;  /* Heller Text */
    --sidebar-gray-text: #aaaaaa;  /* Grauer Text */
    --sidebar-accent: #2a2a2a;  /* Akzentfarbe für Karten, etc. */
    --sidebar-hover: #ffdd33;  /* Hover-Effekt für primäre Elemente */
}

/* Hover-Effekt für Team-Mitglieder */
.team-member {
    cursor: pointer;
    position: relative;
    margin-bottom: 30px;
}

.team-member-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

.team-photo {
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4;
    display: block;
    transition: transform 0.5s ease;
}

.team-member-inner:hover .team-photo img {
    transform: scale(1.05);
}

.team-name-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    color: var(--sidebar-light-text);
    transition: opacity 0.3s ease;
}

.team-name-bar h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.team-position-short {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    margin-top: 3px;
}

/* Mobile Info Icon */
.mobile-info-icon {
    display: none;
    width: 45px;
    height: 45px;
    background-color: var(--sidebar-primary);
    color: var(--sidebar-darker-bg);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

/* Vereinfachtes Overlay beim Hover */
.team-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.85); /* Dunklerer Hintergrund mit Transparenz */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.team-member-inner:hover .team-hover-overlay {
    opacity: 1;
}

.team-hover-overlay h3 {
    color: var(--sidebar-primary);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.team-hover-overlay p {
    color: var(--sidebar-light-text);
    margin-bottom: 15px;
}

.hover-info-icon {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--sidebar-darker-bg);
    width: 40px;
    height: 40px;
    background-color: var(--sidebar-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

/* Team Sidebar Styles */
.team-sidebar-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background-color: var(--sidebar-dark-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    color: var(--sidebar-light-text);
}

.team-sidebar-container.active {
    right: 0;
}

.team-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--sidebar-primary);
    color: var(--sidebar-darker-bg);
    position: sticky;
    top: 0;
    z-index: 2;
}

.team-sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-sidebar-close {
    background: none;
    border: none;
    color: var(--sidebar-darker-bg);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.team-sidebar-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.team-sidebar-content {
    padding: 25px 20px;
    background-color: var(--sidebar-dark-bg);
}

.team-sidebar-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--sidebar-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-sidebar-info {
    text-align: center;
    margin-bottom: 25px;
}

.team-sidebar-info h3 {
    margin: 0 0 8px;
    color: var(--sidebar-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.team-sidebar-position {
    font-size: 1.1rem;
    color: var(--sidebar-gray-text);
    margin-bottom: 20px;
}

.team-sidebar-description {
    text-align: left;
    margin-bottom: 25px;
    background-color: var(--sidebar-accent);
    padding: 20px;
    border-radius: 8px;
}

.team-sidebar-description p {
    margin-top: 0;
    line-height: 1.6;
}

.team-sidebar-expertise {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.team-sidebar-expertise li {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    background-color: var(--sidebar-accent);
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.team-sidebar-expertise li:hover {
    background-color: rgba(42, 42, 42, 0.8);
}

.team-sidebar-expertise li i {
    color: var(--sidebar-primary);
    margin-right: 12px;
}

.team-sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.team-sidebar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--sidebar-accent);
    color: var(--sidebar-light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-sidebar-social-link:hover {
    background-color: var(--sidebar-primary);
    color: var(--sidebar-darker-bg);
    transform: translateY(-3px);
}

/* Overlay für den Hintergrund, wenn Sidebar aktiv ist */
.team-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .team-sidebar-container {
        width: 320px;
    }
    
    .team-sidebar-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-sidebar-info h3 {
        font-size: 1.5rem;
    }
    
    /* Mobile Info Icon anzeigen */
    .mobile-info-icon {
        display: flex;
    }
    
    .team-name-bar {
        padding: 12px 10px;
    }
    
    .team-position-short {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-sidebar-container {
        width: 100%;
    }
}
