/* =========================================================
   MY GUIDE – LANGEN SIDEBAR-BANNER VOLLSTÄNDIG ANZEIGEN
   ========================================================= */

@media (min-width: 48rem) {

    /*
     * ListingHive / Sticky-Sidebar-Verhalten deaktivieren,
     * sobald sich der My-Guide-Werbeplatz darin befindet.
     */
    .inner-wrapper-sticky:has(
        .fix246-ad-slot[data-placement="my_guide"]
    ) {
        position: static !important;
        transform: none !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
    }

    /*
     * Auch die übergeordneten Sidebar-Bereiche dürfen
     * den langen Banner nicht abschneiden.
     */
    .widget-area:has(
        .fix246-ad-slot[data-placement="my_guide"]
    ),
    .sidebar:has(
        .fix246-ad-slot[data-placement="my_guide"]
    ),
    #secondary:has(
        .fix246-ad-slot[data-placement="my_guide"]
    ) {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /*
     * Der Desktop-Sidebar-Banner hat ungefähr ein
     * Seitenverhältnis von 1:3.
     */
    .fix246-ad-slot[data-placement="my_guide"] {
        display: block !important;
        position: relative !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        aspect-ratio: 1 / 3;
        overflow: visible !important;
    }

    .fix246-ad-slot[data-placement="my_guide"] img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /*
     * Bei einem leeren Placement darf keine leere
     * Fläche mit 1:3-Verhältnis entstehen.
     */
    .fix246-ad-slot[data-placement="my_guide"].fix246-ad-slot--empty {
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }
}

