/**
 * FITSV Employee Profiles Styles
 *
 * @package FITSV
 */

/* Allgemeine Container-Styles */
.fitsv-employees {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fitsv-employee-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fitsv-employee-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Grid Layout */
.fitsv-layout-grid .fitsv-employee-card {
    display: inline-block;
    vertical-align: top;
    width: calc(33.333% - 1rem);
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.fitsv-layout-grid .fitsv-employee-card:nth-child(3n) {
    margin-right: 0;
}

@media (max-width: 768px) {
    .fitsv-layout-grid .fitsv-employee-card {
        width: calc(50% - 0.5rem);
        margin-right: 0.5rem;
    }
    
    .fitsv-layout-grid .fitsv-employee-card:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .fitsv-layout-grid .fitsv-employee-card {
        width: 100%;
        margin-right: 0;
    }
}

/* List Layout */
.fitsv-layout-list .fitsv-employee-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.fitsv-layout-list .fitsv-employee-photo {
    flex: 0 0 80px;
    margin-right: 1.5rem;
}

.fitsv-layout-list .fitsv-employee-info {
    flex: 1;
}

/* Cards Layout */
.fitsv-layout-cards .fitsv-employee-card {
    text-align: center;
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

/* Mitarbeiterfoto */
.fitsv-employee-photo {
    text-align: center;
    margin-bottom: 1rem;
}

.fitsv-employee-photo img {
    width: 120px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.fitsv-layout-list .fitsv-employee-photo img {
    width: 80px;
    height: auto;
}

.fitsv-employee-photo-large img {
    width: 200px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

/* Mitarbeiterinformationen */
.fitsv-employee-name {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.fitsv-layout-list .fitsv-employee-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.fitsv-employee-position {
    color: #3498db;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.fitsv-employee-macht-text {
    color: #e74c3c;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
}

.fitsv-employee-macht-points {
    margin: 1rem 0;
}

.fitsv-macht-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fitsv-macht-list li {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.fitsv-macht-list li:before {
    content: "▪️";
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Vollständige "Macht"-Punkte für Einzelprofile */
.fitsv-employee-macht-points-full {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.fitsv-employee-macht-points-full h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.fitsv-macht-list-full {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fitsv-macht-list-full li {
    background: #fff;
    border: 1px solid #e1e5e9;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    font-size: 1rem;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fitsv-macht-list-full li:before {
    content: "✓";
    color: #e74c3c;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Kontaktdaten */
.fitsv-employee-contact,
.fitsv-employee-contact-details {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.fitsv-employee-contact h3,
.fitsv-employee-contact-details h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.fitsv-employee-email,
.fitsv-employee-phone {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.fitsv-employee-email a {
    color: #3498db;
    text-decoration: none;
}

.fitsv-employee-email a:hover {
    text-decoration: underline;
}

/* Biografie */
.fitsv-employee-bio,
.fitsv-employee-bio-full {
    margin: 1rem 0;
    line-height: 1.6;
}

.fitsv-employee-bio p,
.fitsv-employee-bio-full p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.fitsv-employee-bio-full h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Einzelnes Mitarbeiterprofil */
.fitsv-single-employee {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fitsv-employee-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.fitsv-employee-header-info {
    flex: 1;
    margin-left: 2rem;
}

.fitsv-employee-header-info h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
}

.fitsv-employee-header-info h3 {
    margin: 0 0 0.5rem 0;
    color: #3498db;
    font-size: 1.25rem;
}

/* Fehler- und Info-Nachrichten */
.fitsv-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.fitsv-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fitsv-employee-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fitsv-employee-header-info {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .fitsv-employee-photo-large img {
        width: 150px;
        height: 150px;
    }
    
    .fitsv-single-employee {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Animationen */
.fitsv-employee-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading-Zustand */
.fitsv-loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.fitsv-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
