/* Deeplytics Landing – gemeinsame Mobile Navigation & Header */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 31, 0.98);
    z-index: 1002;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav .nav-links a {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.mobile-dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.mobile-dropdown summary {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
    width: 100%;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.mobile-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-dropdown summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
    color: #8b5cf6;
}

.mobile-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0;
    margin: 0.25rem 0 0.75rem;
}

.mobile-submenu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.65rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: none;
}

.mobile-submenu a:hover,
.mobile-submenu a:active {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    header {
        padding: 0.35rem 1rem !important;
        gap: 0.5rem;
    }

    header nav.container,
    header > nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0.75rem !important;
    }

    header .logo {
        transform: none !important;
        margin-right: auto !important;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 3.25rem);
        overflow: hidden;
        z-index: 1;
    }

    header .logo img {
        height: 56px !important;
        max-height: 56px !important;
        width: auto !important;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        flex-shrink: 0;
        margin-left: 0 !important;
        min-width: 2.75rem;
        min-height: 2.75rem;
        z-index: 2;
    }

    header nav > .nav-links {
        display: none !important;
    }

    .shared-dropdown-menu {
        display: none !important;
    }

    main,
    body > main {
        padding-top: var(--header-h, 68px) !important;
    }

    .blog-container,
    main.blog-container {
        padding-top: calc(var(--header-h, 68px) + 1rem) !important;
    }

    .scrolled header {
        padding: 0.35rem 1rem !important;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 60px;
    }

    header {
        padding: 0.3rem 0.75rem !important;
    }

    header .logo {
        max-width: calc(100% - 3rem);
    }

    header .logo img {
        height: 48px !important;
        max-height: 48px !important;
    }

    .mobile-nav {
        padding-top: 4.5rem;
    }
}
