/* ============================================
   MOBILE NAVIGATION
   Moderne Slide-in Navigation für Mobile
   ============================================ */

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Standardmäßig versteckt (Desktop) */
    background: rgba(184, 149, 106, 0.1); /* Leichter Hintergrund für Sichtbarkeit */
    border: 1px solid rgba(184, 149, 106, 0.2);
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(184, 149, 106, 0.15);
    border-color: rgba(184, 149, 106, 0.4);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-secondary); /* Goldene Farbe für besseren Kontrast */
    margin: 3.5px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

/* Hamburger Animation - Wird zu X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile: Hamburger zeigen, Desktop Nav verstecken */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important; /* Hamburger auf Mobile anzeigen */
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .desktop-nav {
        display: none !important; /* Desktop Nav verstecken */
    }

    /* Header Content für Mobile optimieren */
    .header-content {
        position: relative;
        padding: 1rem 1.5rem !important;
    }

    .site-logo {
        position: relative;
        z-index: 1;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Mobile Navigation Panel */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
}

.mobile-nav-branding {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.mobile-made-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    opacity: 0.9;
}

.mobile-made-badge svg {
    stroke: white;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-nav-close svg {
    stroke: white;
}

/* Mobile Menu List */
.mobile-menu {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
    flex: 1;
}

.mobile-menu li {
    margin: 0;
    border-bottom: 1px solid var(--color-accent);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: var(--color-accent);
    color: var(--color-secondary);
    padding-left: 2rem;
}

.mobile-menu a:hover::before {
    transform: translateX(0);
}

.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a {
    color: var(--color-secondary);
    font-weight: 600;
    background: var(--color-accent);
}

.mobile-menu .current-menu-item > a::before,
.mobile-menu .current_page_item > a::before {
    transform: translateX(0);
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--color-accent);
    background: white;
}

.mobile-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
    margin-bottom: 1rem;
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.4);
}

.mobile-cta-button svg {
    stroke: white;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mobile-phone,
.mobile-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.mobile-phone:hover,
.mobile-email:hover {
    color: var(--color-secondary);
}

.mobile-phone svg,
.mobile-email svg {
    stroke: var(--color-secondary);
    flex-shrink: 0;
}

/* Smooth Scroll für Mobile Nav */
.mobile-navigation {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Prevent body scroll when menu open */
body.mobile-menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Desktop - Hide Mobile Nav Elements */
@media (min-width: 769px) {
    .mobile-navigation,
    .mobile-nav-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Animation für Menu Items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-navigation.active .mobile-menu li {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-navigation.active .mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-navigation.active .mobile-menu li:nth-child(2) { animation-delay: 0.15s; }
.mobile-navigation.active .mobile-menu li:nth-child(3) { animation-delay: 0.2s; }
.mobile-navigation.active .mobile-menu li:nth-child(4) { animation-delay: 0.25s; }
.mobile-navigation.active .mobile-menu li:nth-child(5) { animation-delay: 0.3s; }
.mobile-navigation.active .mobile-menu li:nth-child(6) { animation-delay: 0.35s; }

/* Touch-friendly sizing */
@media (max-width: 480px) {
    .mobile-navigation {
        width: 90%;
    }

    .mobile-menu a {
        padding: 1.3rem 1.5rem;
        font-size: 1.05rem;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (max-width: 768px) {
    .mobile-nav-header {
        padding: 1rem 1.5rem;
    }

    .mobile-menu a {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .mobile-nav-footer {
        padding: 1rem 1.5rem;
    }
}
