/* Mobile Article Styling (≤ 1320px) */
@media (max-aspect-ratio: 4/5) {
    body {
        /* Ensure no horizontal scroll */
        overflow-x: hidden;
        width: 100%;
    }

    /* 3. Article-Darstellung (Mobile) */
    article {
        /* 1-spaltiges Leselayout */
        max-width: 100%;
        margin: 0;
        padding: 24px 20px 100px 20px;
        /* Padding for readability + bottom space for sheet handle */
        box-shadow: none;
        /* Flatten for mobile */
    }

    /* Klare Typo-Hierarchie & Mobile-optimierte Schriftgrößen */
    h1 {
        font-size: 26px;
        /* Rubrik/Headline adjusted */
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .meta {
        font-size: 14px;
        /* Metadaten */
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    p {
        font-size: 18px;
        /* Fließtext styling */
        line-height: 1.6;
        /* Erhöhter Zeilenabstand */
        margin-bottom: 20px;
    }

    blockquote {
        font-size: 19px;
        padding: 0 20px;
        margin: 30px 0;
    }

    /* 4. Analyse-Tool als Bottom Sheet (Mobile) */
    /* Sidebar Host becomes Bottom Sheet Host */
    #article-analyst-sidebar-host {
        top: auto !important;
        right: 0 !important;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        /* Allow full height expansion */
        transform: translateY(100%);
        /* Initially hidden below screen */
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        background: #fff;
        /* Ensure opaque background */
    }

    /* States */
    /* Hidden: Fully off screen */
    #article-analyst-sidebar-host.mobile-hidden {
        transform: translateY(100%);
        pointer-events: none;
    }

    /* Collapsed: Only handle visible */
    #article-analyst-sidebar-host.mobile-collapsed {
        transform: translateY(calc(100% - 60px));
    }

    #article-analyst-sidebar-host.mobile-half {
        transform: translateY(50%);
        /* Half screen */
        pointer-events: auto;
    }

    #article-analyst-sidebar-host.mobile-full {
        transform: translateY(0);
        /* Full screen */
        border-radius: 0;
        pointer-events: auto;
    }

    /* Owl Trigger: Visible on mobile */
    #article-analyst-owl-trigger {
        display: flex !important;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}