/* 
 * header.css - Header und Navigation Styles
 * LineTrack Website
 */

 header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo-Bereich */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hauptnavigation */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 16px;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.cta {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
}

.nav-link.cta:hover {
    background-color: var(--secondary-dark);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo {
        flex-direction: column;
        align-items: flex-start;
        width: 70%;
        order: 1;
    }
    
    .logo img {
        max-width: 60px; /* Größeres Logo */
        height: auto;
        margin-bottom: 5px;
    }
    
    .logo-text {
        font-size: 16px; /* Größerer Text */
        line-height: 1.2;
        white-space: normal; /* Erlaubt Umbruch */
        overflow: visible;
        text-overflow: unset;
        width: 100%;
    }
    
    .mobile-toggle {
        order: 2;
        align-self: flex-start;
        margin-top: 10px; /* An das Logo ausrichten */
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-name, .product-sub {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .nav-item {
        margin: 5px 0;
        padding: 5px 0;
    }
    
    .nav-link {
        display: block;
        padding: 5px 0;
        font-size: 16px; /* Größer für bessere Touchbarkeit */
    }
    
    /* Hervorheben des CTA-Buttons im Menü */
    .nav-link.cta {
        margin-top: 10px;
        padding: 8px 16px;
        text-align: center;
    }
}