/* 1. Base Alignment - Force Flush Override Customizer */
body .ast-primary-header-bar .site-primary-header-wrap,
body .ast-primary-header-bar .main-header-container,
body .ast-primary-header-bar .ast-container,
body .ast-mobile-header-wrap .ast-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .ast-mobile-header-wrap .ast-builder-grid-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Hide specific desktop header to prevent duplication */
body .ast-desktop .ast-desktop-header {
    display: none !important;
}

/* 3. Ensure mobile header is visible */
body .ast-header-break-point .ast-mobile-header-wrap {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 4. Restore "MENU" text and customize layout (OVERRIDE CUSTOMIZER) */
body .ast-mobile-menu-buttons .menu-toggle .mobile-menu-toggle-str,
body .ast-mobile-menu-buttons .menu-toggle .ast-mobile-menu-text {
    display: inline-block !important; /* Force show text */
    margin-left: 8px !important;
    font-size: 14px; /* Adjust as needed */
    font-weight: 500;
}

/* Force menu toggle to display flex to align icon and text */
body .menu-toggle {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Custom CSS for injected elements (Suchen text, Kontakt link) */
.custom-header-text {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 500;
}

.custom-kontakt-link {
    margin-right: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}
