/* style.css - Navigation Styles */

/* Navigation Container */
@font-face {
  font-family: 'Inter';
  src: url('Inter-VariableFont_opsz,wght.ttf') format('woff2');
  font-display: swap;
}
.nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(15, 40, 71, 0.04);
    border-bottom: 1px solid rgba(15, 40, 71, 0.08);
    transition: all 0.3s ease;
}

.nav-scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 16px rgba(15, 40, 71, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 50px; /* Standardhöhe für Desktop */
    width: auto;
    max-height: 100%;
    object-fit: contain;
    transition: height 0.3s ease;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f2847;
    letter-spacing: -0.02em;
}

.nav-logo-chinese {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #c9a961;
    font-weight: 500;
    margin-top: 2px;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0f2847;
    transition: 0.3s;
    display: block;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a961;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #0f2847;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #0f2847;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Call-to-Action Button */
.nav-cta {
    background: #c9a961;
    color: #0f2847;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

.nav-cta:hover {
    background: #e5d5a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(15, 40, 71, 0.16);
        z-index: 1000;
        height: 100vh;
        width: 100vw;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideIn 0.3s ease-out;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .nav-logo-img {
        height: 40px; /* Kleinere Höhe auf Mobile */
    }
    
    .nav-logo-text {
        font-size: 1.5rem;
    }
}

/* Animation for mobile menu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.nav-cta:focus,
.nav-toggle:focus {
    outline: 2px solid #c9a961;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav {
        position: static;
        background: white;
        border-bottom: 1px solid #ddd;
        box-shadow: none;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-cta {
        background: none;
        color: black;
        text-decoration: underline;
        padding: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nav {
        background: rgba(15, 40, 71, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: white;
    }
    
    .nav-logo-text {
        color: white;
    }
    
    .nav-toggle span {
        background-color: white;
    }
}