/* MeisterWartung - Unified Navbar CSS v1.0 
 * Einheitliche Navbar für alle Seiten, basierend auf dem Login-Seiten Design
 */

:root {
    --primary-purple: #6366F1;
    --primary-purple-light: #818CF8;
    --primary-purple-dark: #4F46E5;
    --secondary-purple: #A855F7;
    --accent-purple: #C084FC;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 250ms ease-out;
    --transition-apple: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Globale Stile und Schriftart */
.glass-navbar, .glass-navbar * {
    font-family: 'Inter', 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ausnahme für Font Awesome Icons */
.glass-navbar .fa, 
.glass-navbar .fas, 
.glass-navbar .far, 
.glass-navbar .fab, 
.glass-navbar .fal,
.glass-navbar .bi {
    font-family: inherit;
}

.glass-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1600px;
    z-index: 1000;
    
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border-radius: 12px;
    border: 1px solid rgba(220, 220, 220, 0.8);
    
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
    position: relative;
}

/* Logo */
.navbar-logo {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
}

/* Navigation - alle Links in einem Container */
.navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Allgemeiner Stil für alle Links/Buttons */
.nav-link,
.login-button {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400 !important;
    padding: 12px 20px !important;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover-Effekt */
.nav-link:hover,
.login-button:hover {
    background-color: #fff;
    color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 220, 220, 0.8);
    text-decoration: none;
}

/* Icon-Farben */
.nav-link i,
.login-button i {
    color: var(--primary-purple);
    font-size: 16px;
    transition: color 0.25s ease;
}

/* Spezieller Button (z.B. "Sind Sie ein Unternehmen?") */
.nav-button-highlight {
    background-color: var(--primary-purple);
    color: #ffffff;
    border-color: transparent;
}

.nav-button-highlight:hover {
    background-color: var(--primary-purple-dark);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    border-color: transparent;
}

.nav-button-highlight i {
    color: #ffffff;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-purple);
    z-index: 5;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 220, 220, 0.8);
    overflow: hidden;
}

.mobile-nav.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}

.mobile-nav-item {
    display: block;
    padding: 14px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background-color: var(--primary-purple);
    color: #fff;
    text-decoration: none;
}

/* Korrektur für die Überlappung mit dem Content */


/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .navbar-nav {
        gap: 8px;
    }
    .nav-link, .login-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    .navbar-container {
        padding: 0 20px;
    }
    .navbar-logo {
        left: 20px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }
    .navbar-logo {
        position: relative;
        transform: none;
        left: 0;
        top: 0;
    }
    .navbar-container {
        justify-content: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .glass-navbar {
        width: calc(100% - 20px);
        top: 10px;
    }
    .navbar-container {
        padding: 0 15px;
        height: 60px;
    }
    .logo-image {
        height: 70px;
    }
   

    .mobile-nav-item {
        padding: 12px;
        font-size: 14px;
    }
}

/* Fix für Überlappungen auf kleineren Bildschirmen */
@media (max-width: 480px) {
    .glass-navbar {
        top: 5px;
    }
    .navbar-container {
        height: 55px;
    }
    .logo-image {
        height: 60px;
    }
    .mobile-menu-toggle {
        font-size: 24px;
    }
    
}
