/* Statischer Header über der Navigation */

.site-header {
    background: white;
    border-bottom: 2px solid var(--color-gray-medium, #e0e0e0);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .site-header {
    background: #3a3a3a;
    border-bottom: 2px solid #555;
}

.header-container {
    max-width: 1400px; /* NEU: Breiter für Bilder */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* NEU: Zentriert */
    align-items: center;
    gap: 40px; /* NEU: Größerer Abstand zwischen Elementen */
}

/* NEU: Header Bilder Container */
.header-images {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-image {
    width: auto; /* NEU: Automatische Breite basierend auf Höhe */
    height: 60px; /* NEU: 75% von ~80px Logo-Text-Höhe (1.8rem * 1.2 line-height + tagline) */
    max-height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Logo Bereich - jetzt zentriert */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0; /* NEU: Verhindert Schrumpfen */
}

.logo-text {
    text-align: center;
}

.logo-text h1 {
    font-size: 2.8rem;
    color: var(--color-blue-dark, #1976d2);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap; /* NEU: Verhindert Umbruch */
}

body.dark-mode .logo-text h1 {
    color: var(--color-blue-light, #bbdefb);
}

.logo-text .tagline {
    font-size: 0.9rem;
    color: #757575;
    margin: 5px 0 0 0;
    line-height: 1.2;
    text-align: center; /* NEU: Tagline zentriert */
}

body.dark-mode .logo-text .tagline {
    color: #b8b8b8;
}

/* Mobile Anpassungen */
@media (max-width: 1200px) {
    .header-container {
        gap: 20px;
    }
    
    .header-images {
        gap: 10px;
    }
    
    .header-image {
        width: auto; /* NEU: Auto für proportionale Skalierung */
        height: 45px; /* NEU: Entsprechend kleiner */
        max-height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text .tagline {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    /* NEU: Bilder in zwei Reihen auf Mobile */
    .header-images {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .header-image {
        width: auto;
        height: 50px; /* NEU: Angepasst für Mobile */
        max-height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-images {
        gap: 8px;
    }
    
    .header-image {
        width: auto;
        height: 45px; /* NEU: Noch kleiner für sehr kleine Bildschirme */
        max-height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
}

/* Anpassung für Navigation - weniger Margin oben da Header jetzt da ist */
nav {
    margin-top: 0 !important;
}