/* Mobile Menu Styles (inspired by ors-praxisklinik) */

/* Default hidden state for all screens */
#anita-mobile-menu-panel {
    display: none;
}

@media (max-width: 1024px) {
    :root {
        --menu-primary: #03322c;
        --menu-accent: #ca7c34;
        --menu-white: #ffffff;
        --menu-text-muted: #bebebe;
    }

    #anita-mobile-menu-panel {
        position: fixed;
        inset: 0;
        z-index: 999999;
        background-color: var(--menu-primary);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
        height: 100dvh;
        color: var(--menu-white);
        display: block;
    }

    #anita-mobile-menu-panel.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Force header to be always visible on mobile */
    .header-menu {
        position: fixed !important;
        top: 0 !important;
        background-color: #03322c !important;
    }

    .anita-menu-container {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background-color: var(--menu-primary);
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
        display: flex;
        flex-direction: column;
    }

    #anita-mobile-menu-panel.is-open .anita-menu-container {
        transform: translateX(0);
    }

    .anita-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    .anita-menu-logo {
        height: 40px;
    }

    .anita-menu-logo img {
        height: 100%;
        width: auto;
        filter: brightness(0) invert(1);
    }

    .anita-menu-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.8);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        cursor: pointer;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .anita-menu-close svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .anita-menu-content {
        flex: 1;
        position: relative;
        overflow: hidden;
    }

    .anita-subcanvas {
        position: relative;
        overflow: hidden;
        height: 100%;
        width: 100%;
    }

    .anita-subcanvas-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--menu-primary);
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .anita-subcanvas-header-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .anita-panels-container {
        position: relative;
        height: 100%;
        width: 100%;
    }

    .anita-panel {
        position: absolute;
        inset: 0;
        background-color: var(--menu-primary);
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5rem 1rem 5rem 1rem;
        visibility: hidden;
        display: flex;
        flex-direction: column;
    }

    .anita-panel.is-active {
        transform: translateX(0);
        visibility: visible;
    }

    .anita-panel.is-previous {
        transform: translateX(-100%);
        visibility: hidden;
    }

    .anita-back-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        padding: 0.4rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.9rem;
        cursor: pointer;
    }

    .anita-back-btn.hidden {
        display: none !important;
    }

    .anita-parent-link {
        font-size: 0.875rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .anita-menu-items {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .anita-menu-item-btn, .anita-menu-item-link {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        color: white;
        text-align: left;
        text-decoration: none;
        font-size: 1rem;
        transition: background-color 0.2s;
        cursor: pointer;
        font-family: inherit;
    }

    .anita-menu-item-btn:hover, .anita-menu-item-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .anita-menu-item-btn svg {
        width: 1rem;
        height: 1rem;
        opacity: 0.7;
    }

    .anita-menu-overview {
        margin-bottom: 2rem;
        padding: 0;
        flex-shrink: 0;
    }

    .anita-menu-overview-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        background-color: var(--menu-accent);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        color: white;
        text-decoration: none;
        font-size: 0.95rem;
    }

    .anita-menu-overview-link svg {
        width: 1.25rem;
        height: 1.25rem;
        opacity: 0.7;
    }

    .anita-menu-contact {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        flex-shrink: 0;
    }

    .anita-contact-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .anita-contact-text {
        color: white;
        font-size: 1rem;
        margin: 0.25rem 0;
        text-align: center;
        font-weight: 300;
    }

    .anita-contact-value {
        font-size: 1.8rem;
        color: var(--menu-accent);
        font-weight: 500;
        margin: 0.5rem 0;
        text-align: center;
    }

    .anita-contact-value a {
        color: var(--menu-accent);
        text-decoration: none;
        transition: color 0.2s;
    }

    .anita-contact-value a:active,
    .anita-contact-value a:hover {
        color: white;
    }

    .anita-contact-email {
        text-align: center;
        margin-top: 1rem;
    }

    .anita-contact-email a {
        color: white;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 300;
    }

    .anita-social-links {
        display: flex;
        gap: 1rem;
    }

    .anita-social-link {
        width: 1.5rem;
        height: 1.5rem;
    }

    .anita-social-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .anita-cta-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
        width: 100%;
    }

    .anita-cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        background-color: var(--menu-accent);
        color: white;
        padding: 0.6rem 0.6rem 0.6rem 1.5rem;
        border-radius: 2.5rem;
        text-decoration: none;
        min-width: 220px;
        font-size: 1rem;
        transition: background-color 0.2s;
        font-weight: 400;
    }

    .anita-cta-btn:hover {
        background-color: #b36b2b;
    }

    .anita-cta-icon {
        width: 2.2rem;
        height: 2.2rem;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--menu-accent);
    }

    .anita-cta-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    /* Legal Links Styling for Mobile ONLY */
    .anita-menu-content .header-menu__contacts {
        margin-top: 5rem;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: none;
        flex-shrink: 0;
    }

    .anita-menu-content .header-menu__contacts-title {
        color: white;
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        display: block;
        text-decoration: none;
    }

    .anita-menu-content .header-menu__contacts ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;

        @media (min-width: 568px) {
            gap: 0;
        }
    }

    .anita-menu-content .header-menu__contacts ul li {
        display: flex;
        align-items: center;
    }

    .anita-menu-content .header-menu__contacts-link {
        color: var(--menu-text-muted);
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.2s;
        white-space: nowrap;
    }

    .anita-menu-content .header-menu__contacts-link:hover {
        color: white;
    }
}
