/* ============================================================================
   HEADER CSS - höchstmass staff GmbH
   ============================================================================
   
   Styles für:
   - Desktop Header/Navigation
   - Mobile Navigation
   - Menu Toggle Button
   - Scroll-Effekte
   
   ============================================================================ */

/* ============================================
   DESKTOP HEADER
============================================ */
.header {
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(30, 58, 95, 0.98);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   LOGO
============================================ */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
    width: auto;
}

/* ============================================
   HEADER LAYOUT (Links & Rechts)
============================================ */
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Navigation Links (nach Logo) */
.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Outline Buttons (Login, Bewerben, Jobs) */
.header-outline-btn {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    background: transparent;
}

.header-outline-btn:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Orange CTA Button (Anfragen) */
.header-cta-btn {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    background: var(--accent);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.header-cta-btn:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================
   LANGUAGE DROPDOWN
============================================ */
.lang-dropdown {
    position: relative;
}

/* Mobile language switch (shown next to burger) */
.mobile-lang-switch {
    display: none;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-lang-switch .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

.mobile-lang-switch .lang-text {
    font-size: 13px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-toggle .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-toggle .lang-text {
    font-size: 13px;
}

.lang-toggle svg[data-lucide] {
    opacity: 0.7;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-toggle svg[data-lucide] {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.lang-option:hover {
    background: var(--gray-100);
}

.lang-option.active {
    background: var(--gray-50);
    color: var(--primary);
    font-weight: 600;
}

.lang-option .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* WhatsApp Icon */
.header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.header-whatsapp:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #25d366;
}

.header-whatsapp svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   MOBILE MENU TOGGLE
============================================ */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   MOBILE NAVIGATION OVERLAY
============================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    max-height: 100vh;
    background: var(--primary);
    z-index: 1001;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
    transform: translateX(0);
}

/* Backdrop for mobile nav */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header .logo img {
    height: 32px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    flex: 1;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-links a:hover {
    color: var(--accent-light);
    padding-left: 8px;
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-cta .btn-primary,
.mobile-nav-cta .btn-secondary {
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
}

.mobile-nav-cta .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.mobile-nav-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ============================================
   MOBILE QUICK ACTION BUTTONS
============================================ */
.mobile-nav-quick-actions {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-action-btn svg {
    opacity: 0.85;
    width: 16px;
    height: 16px;
}

/* ============================================
   RESPONSIVE HEADER
============================================ */
@media (max-width: 1024px) {
    .header-left {
        gap: 16px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .header-outline-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .header-cta-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .lang-toggle {
        padding: 6px 10px;
    }
}

/* ============================================
   MOBILE TOP BAR
============================================ */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #152840 0%, #1e3a5f 100%);
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-top-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-top-btn:hover,
.mobile-top-btn:active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.mobile-top-btn-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.mobile-top-btn-cta:hover,
.mobile-top-btn-cta:active {
    background: var(--accent-dark);
}

.mobile-top-btn-wa {
    background: #25d366;
    border-color: #25d366;
    color: var(--white);
    padding: 6px 8px;
}

.mobile-top-btn-wa:hover,
.mobile-top-btn-wa:active {
    background: #1da851;
}

.mobile-top-btn svg,
.mobile-top-btn i {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-nav,
    .lang-dropdown,
    .header-whatsapp {
        display: none;
    }

    .mobile-lang-switch {
        display: flex;
    }
    
    .logo img {
        height: 36px;
    }
    
    /* Header nach unten verschieben für mobile-top-bar */
    .header {
        top: 40px;
    }
    
    /* Mobile Top Bar anzeigen */
    .mobile-top-bar {
        display: flex;
    }
}