﻿body {
}
/* Alecadd Menu Hover Logik - PROFESSIONELLES DESIGN (Header) */

/* 1. Haupt-Navigation Wrapper */
#alecadd-desktop-header-nav {
    position: relative;
    display: inline-block;
}

    /* 2. Styling für das Text-Label "Menu" */
    #alecadd-desktop-header-nav .menu-text {
        margin-right: 10px;
        color: #333333;
        font-weight: 600;
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 1px;
        vertical-align: middle;
        transition: color 0.3s ease;
    }

    /* 3. Icon Styling */

    /*
    #alecadd-desktop-header-nav .navicon i {
        font-size: 3rem;
        color: #333333;
        vertical-align: middle;
        transition: color 0.3s ease;
    }
        **/
    /* Hover auf den Trigger (Text & Icon zusammen) */
    /*
    #alecadd-desktop-header-nav:hover .menu-text,
    #alecadd-desktop-header-nav:hover .navicon i {
        color: #888888;
    }
    **/

    /* 3. Icon Styling (Now using SVG for zero external dependencies) */
    #alecadd-desktop-header-nav .navicon .desktop-svg-icon {
        width: 32px; /* Adjust this to make the icon larger or smaller */
        height: auto;
        fill: #333333;
        vertical-align: middle;
        transition: fill 0.3s ease;
    }

    /* Hover auf den Trigger (Text & Icon zusammen) */
    #alecadd-desktop-header-nav:hover .menu-text {
        color: #888888;
    }

    #alecadd-desktop-header-nav:hover .navicon .desktop-svg-icon {
        fill: #888888;
    }


    /* 4. Das Dropdown-Menü (MODERNISIERT FÜR SANFTE ANIMATION) */
    #alecadd-desktop-header-nav .nav-dropdown-content {
        /* Physische Positionierung */
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        padding: 5px 0;
        margin-top: 10px; /* Gibt dem Dropdown etwas Abstand zum Trigger */
        /* Visuelles Design */
        background-color: #F8FBFF;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 4px;
        z-index: 100;
        /* Die neue Animations-Logik (ersetzt display: none) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px); /* Startet leicht nach oben verschoben */
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    /* 5. DER HOVER-EFFEKT: Dropdown sanft einblenden */
    #alecadd-desktop-header-nav:hover .nav-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0); /* Gleitet weich in die Endposition nach unten */
    }


   /* 6. Link-Stil im Dropdown */
    #alecadd-desktop-header-nav .nav-dropdown-content a {
        font-family: 'Manrope', sans-serif;
        font-size: 1.0rem;
        font-weight: 500;
        color: #333333;
        padding: 6px 25px !important; /* Locks down the base position */
        text-decoration: none;
        display: block;
        transition: all 0.2s ease !important; /* Forces the browser to animate the padding */
    }

    /* 7. Link Hover-Effekt */
    #alecadd-desktop-header-nav .nav-dropdown-content a:hover {
        background-color: rgba(212, 175, 55, 0.1) !important; 
        color: #000000 !important;
        padding-left: 30px !important; /* Forces the physical bump to the right */
    }

	/* 8. Force Z-Index and stretch the final link's interaction box */
    #alecadd-desktop-header-nav .nav-dropdown-content {
        z-index: 999999 !important; /* Forces menu to front */
        padding-bottom: 0 !important; /* Reset from earlier */
    }

    #alecadd-desktop-header-nav .nav-dropdown-content a:last-child {
        padding-bottom: 25px !important; /* Stretches the actual link downwards */
        border-bottom-left-radius: 5px; /* Optional: smooths the bottom corners */
        border-bottom-right-radius: 5px;
    }

/* 9. The Invisible Bridge (Prevents dead-zones at the bottom) */
    #alecadd-desktop-header-nav .nav-dropdown-content::after {
        content: "";
        position: absolute;
        top: 100%; /* Starts exactly at the bottom of the last item */
        left: 0;
        width: 100%;
        height: 30px; /* Creates a 30px invisible safety net below the menu */
        background: transparent;
        z-index: 999999 !important;
    }


/* ========================================= */
/* MOBILE PORTRAIT MENU LOGIC                */
/* ========================================= */

/* 1. Hide the Mobile menu when on Desktop */
@media (min-width: 769px) {
    #alecadd-mobile-header-nav {
        display: none !important;
    }
}

/* 2. Show Mobile menu and Hide Desktop menu on Mobile */
@media (max-width: 768px) {

    #alecadd-desktop-header-nav {
        display: none !important;
    }

    /* --- THE WRAPPER --- */
    #alecadd-mobile-header-nav {
        position: relative !important;
        display: inline-block !important;
        z-index: 999999 !important;
    }

        /* --- THE HIDDEN STATE ENGINE --- */
        #alecadd-mobile-header-nav .mobile-menu-checkbox {
            display: none !important;
        }

        /* --- THE TRIGGER --- */
        #alecadd-mobile-header-nav .mobile-nav-trigger {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        #alecadd-mobile-header-nav .mobile-menu-text {
            color: #1a1a1a !important;
            font-weight: 700;
            font-size: 18px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-family: 'Manrope', sans-serif;
        }

        #alecadd-mobile-header-nav .mobile-svg-icon {
            width: 3rem;
            height: auto;
            fill: #1a1a1a !important;
            transition: transform 0.3s ease;
        }

        /* Rotate dots when the hidden checkbox is checked */
        #alecadd-mobile-header-nav .mobile-menu-checkbox:checked + .mobile-nav-trigger .mobile-svg-icon {
            transform: rotate(90deg);
        }

        /* --- THE DROPDOWN BOX --- */
        #alecadd-mobile-header-nav .mobile-dropdown-content {
            display: none;
            flex-direction: column !important;
            position: absolute !important;
            top: 100% !important;
            margin-top: 15px !important;
            right: 0 !important;
            width: max-content !important;
            min-width: 180px !important;
            max-width: 85vw !important;
            background: rgba(255, 255, 255, 0.98) !important;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 12px;
            padding: 10px 0;
            z-index: 999999 !important;
            transform-origin: top right !important;
        }

            /* --- THE LINKS --- */
            #alecadd-mobile-header-nav .mobile-dropdown-content a {
                display: block;
                padding: 8px 25px;
                color: #1a1a1a !important;
                text-decoration: none;
                font-family: 'Manrope', sans-serif;
                font-size: 1.1rem;
                font-weight: 500;
                line-height: 1.4;
                transition: all 0.2s ease;
                text-align: right;
            }

                #alecadd-mobile-header-nav .mobile-dropdown-content a:hover,
                #alecadd-mobile-header-nav .mobile-dropdown-content a:active {
                    background: rgba(212, 175, 55, 0.1) !important;
                    color: #D4AF37 !important;
                    padding-right: 35px;
                }

        /* --- THE DISPLAY TRIGGER --- */
        #alecadd-mobile-header-nav .mobile-menu-checkbox:checked ~ .mobile-dropdown-content {
            display: flex !important;
            animation: mobilePopDown 0.3s ease-out forwards;
        }

    /* Safely centers the menu in the middle of portrait screens */
    @media (max-width: 767px) {
        #alecadd-mobile-header-nav .mobile-dropdown-content {
            right: auto !important;
            left: 50% !important;
            margin-left: -110px !important;
            width: 220px !important;
            transform-origin: top center !important;
        }

            #alecadd-mobile-header-nav .mobile-dropdown-content a {
                text-align: center !important;
            }

                #alecadd-mobile-header-nav .mobile-dropdown-content a:hover,
                #alecadd-mobile-header-nav .mobile-dropdown-content a:active {
                    padding-right: 25px !important;
                }
    }
}

/* Keyframes go outside the selectors but can stay inside the media query */
@keyframes mobilePopDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
