/* ============================================
   MOBILE HEADER FIX - Responsive Layout
   Banner bleibt sichtbar aber kompakt
   ============================================ */

/* Medical Banner - Kompakt auf Mobile */
@media (max-width: 768px) {
    .medical-disclaimer-banner {
        padding: 0.5rem 0.75rem !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .medical-banner-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .medical-icon {
        font-size: 1.25rem !important;
        flex-shrink: 0 !important;
    }

    .medical-text {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.3 !important;
    }

    .medical-label {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }

    .medical-desc {
        font-size: 0.7rem !important;
        opacity: 0.9 !important;
    }
}

/* Affiliate Banner - Stack vertikal auf Mobile */
@media (max-width: 768px) {
    .affiliate-banner {
        padding: 0.5rem !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .affiliate-banner>* {
        max-width: 100% !important;
    }

    .affiliate-banner img {
        max-width: 100% !important;
        /* Allow generic resizing */
        width: auto !important;
        height: auto !important;
        max-height: 60px !important;
        /* Limit height */
    }

    .affiliate-ad-container {
        width: 100% !important;
        max-width: 320px !important;
        max-height: 50px !important;
        overflow: hidden !important;
        text-align: center;
        margin: 0 auto !important;
    }

    .affiliate-ad-container ins,
    .affiliate-ad-container ins.adsbygoogle {
        display: inline-block !important;
        max-width: 320px !important;
        width: 320px !important;
        height: 50px !important;
        max-height: 50px !important;
    }

    /* Hide affiliate banner ads on very small screens to save space */
    .affiliate-banner .affiliate-ad-container {
        display: none !important;
    }

    /* Footer Ad Restriction */
    .footer-ad-container {
        max-height: 100px !important;
        overflow: hidden !important;
    }

    .footer-ad-container ins {
        max-height: 100px !important;
    }

    /* General AdSense restrictions for mobile */
    ins.adsbygoogle {
        max-width: 100% !important;
        max-height: 90px !important;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .medical-disclaimer-banner {
        padding: 0.4rem 0.6rem !important;
    }

    .medical-banner-container {
        font-size: 0.7rem !important;
        gap: 0.4rem !important;
    }

    .medical-icon {
        font-size: 1.1rem !important;
    }

    .medical-label {
        font-size: 0.75rem !important;
    }

    .medical-desc {
        font-size: 0.65rem !important;
    }

    /* Hide header ads completely on very small screens */
    .affiliate-banner .affiliate-ad-container,
    .affiliate-ad-container {
        display: none !important;
    }

    /* Affiliate images smaller */
    .affiliate-banner img {
        max-height: 40px !important;
    }

    /* Limit all ads on small screens */
    ins.adsbygoogle {
        max-height: 60px !important;
        max-width: 300px !important;
    }
}