/* ========================================
   HERO / INFOBOX FIX (Text nach oben)
======================================== */

/* Linke Spalte oben ausrichten */
.uagb-block-7192e48f .wp-block-column:first-child {
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Titel-Box Styling + Position */
.uagb-block-e8e33b16 .uagb-ifb-title-wrap {
    background-color: rgba(150, 0, 0, 0.7); /* kaminrot */
    border-radius: 12px;
    padding: 15px 20px;
    display: inline-block;
    margin-top: -50px !important; /* nach oben ziehen */
    color: #fff !important;
}

/* ========================================
   HEADER WARENKORB
======================================== */

/* Container */
.custom-header-cart {
    display: flex;
    align-items: center;
}

/* Icon */
.custom-header-cart .cart-link {
    font-size: 28px; /* größer */
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

/* Badge */
.custom-header-cart .cart-count {
    background: #d00;
    color: #fff;
    border-radius: 50%;
    padding: 4px 8px; /* größer für bessere Lesbarkeit */
    font-size: 14px;
    margin-left: 6px;
}

/* Dropdown */
.custom-header-cart .cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #fff;
    min-width: 260px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 999;
    border-radius: 10px;
}

/* Mini Cart Scroll */
.custom-header-cart .woocommerce-mini-cart {
    max-height: 250px;
    overflow-y: auto;
}

/* Links im Dropdown */
.custom-header-cart .cart-links a {
    display: block;
    padding: 8px 0;
}

/* Hover Desktop */
@media (min-width: 922px) {
    .custom-header-cart:hover .cart-dropdown {
        display: block;
    }
}

/* ========================================
   DESKTOP HEADER: neben Widget 1
======================================== */
.ast-header-widget-area-1 .custom-header-cart {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

/* ========================================
   MOBILE HEADER: neben Burger
======================================== */
@media (max-width: 921px) {

    /* Mobile Header Container */
    .ast-mobile-header-wrap .custom-header-cart {
        position: absolute;
        top: 50%;
        right: 15px; /* direkt neben Burger */
        transform: translateY(-50%);
        font-size: 24px;
        display: flex !important;
        align-items: center;
        z-index: 999;
    }

    /* Icon mobil */
    .ast-mobile-header-wrap .custom-header-cart .cart-link {
        font-size: 24px;
    }

    /* Dropdown Position Mobile */
    .ast-mobile-header-wrap .custom-header-cart .cart-dropdown {
        top: 100%;
        right: 0;
    }
}