/* staff.css - Finale Version */
.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.staff-title {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.staff-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

/* Standard-Abteilungen (50% Breite) */
.staff-category-group {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

/* Spezielle Regel für Trainer (volle Breite) */
.staff-category-group.trainer {
    flex: 0 0 100%;
    max-width: 100%;
}

.staff-category-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 8px;
    text-align: center;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.staff-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 150px;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.staff-card.obmann {
    border: 0px solid #E30613;
}

.staff-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.staff-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    transform: scale(0.9);
}

.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.9);
}

.staff-placeholder span {
    font-size: 2rem;
    font-weight: bold;
    color: #555;
}

.obmann-ribbon {
    position: absolute;
    top: 10px;
    right: -25px;
    background: #E30613;
    color: white;
    padding: 3px 30px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.staff-details {
    padding: 15px;
    text-align: center;
}

.staff-name {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-contacts {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.contact-icon {
    color: #555;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.contact-icon:hover {
    transform: scale(1.2);
}

.contact-icon.fa-envelope:hover {
    color: #D44638;
}

.contact-icon.fa-phone:hover {
    color: #34B7F1;
}

.contact-icon.fa-whatsapp:hover {
    color: #25D366;
}

.license-badge {
    color: #E30613;
    font-size: 1rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .staff-container {
        padding: 15px;
    }
    
    .staff-category-group,
    .staff-category-group.trainer {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .staff-grid {
        justify-content: center;
    }
    
    .staff-card {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        display: block; /* Wechsel zu Block-Layout */
    }
    
    .staff-card {
        width: 100%;
        max-width: 280px; /* Etwas breiter für bessere Lesbarkeit */
        margin: 0 auto 20px; /* Zentriert mit Abstand unten */
        display: flex;
        flex-direction: row; /* Horizontale Anordnung */
        align-items: center;
        padding: 10px;
    }
    
    .staff-image-container {
        flex: 0 0 80px;
        padding-top: 80px; /* Kleinere Bilder auf Mobil */
    }
    
    .staff-details {
        text-align: left;
        padding-left: 15px;
        flex-grow: 1;
    }
    
    .staff-name {
        white-space: normal; /* Zeilenumbruch erlauben */
        overflow: visible;
        text-overflow: clip;
    }
    
    .staff-contacts {
        justify-content: flex-start;
    }
    
    .obmann-ribbon {
        top: 5px;
        right: -20px;
        font-size: 0.7rem;
        padding: 2px 25px;
    }
}