/* =========================================================
   AI IMAGE OVERLAY
   ========================================================= */

.ai-image-icon {
    position: fixed;

    /* Position wird vom JavaScript berechnet */
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #ffffff;
    border-radius: 50%;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);

    z-index: 100;
    cursor: pointer;

    font-size: 0;
    line-height: 1;
    pointer-events: auto;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* =========================================================
   AI SCHRIFTZUG
   ========================================================= */

.ai-image-icon::after {
    content: "AI";

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #302d31;
    line-height: 1;
}


/* =========================================================
   AI ICON HOVER
   ========================================================= */

.ai-image-icon:hover {
    background-color: #ffffff;
    transform: scale(1.08);

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   AI ICONS IM PRODUKTSLIDER
   ========================================================= */

.opc-angebotspreis-image-wrapper {
    position: relative;
}

.ai-image-icon.ai-slider-icon {
    position: absolute;

    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: auto !important;

    width: 15px;
    height: 15px;

    z-index: 2;
}


/* =========================================================
   AI ICONS – NIVO-SLIDER
   Ein einziges Icon pro Nivo-Slider
   ========================================================= */

.nivoSlider {
    position: relative;
}

.ai-image-icon.ai-nivo-icon {
    position: absolute !important;

    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: auto !important;

    width: 20px;
    height: 20px;

    z-index: 1000 !important;
}


/* =========================================================
   AI ICONS – PRODUKT-GALERIE MIT HOVER-BILD
   ========================================================= */

.productbox-images.list-gallery,
#gallery .js-gallery-images {
    position: relative;
}

.ai-image-icon.ai-gallery-icon {
    position: absolute !important;

    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: auto !important;

    width: 15px;
    height: 15px;

    z-index: 1000 !important;
}


/* =========================================================
   OPC
   ========================================================= */

.opc-btn-primary {
    position: relative !important;
    z-index: 300 !important;
}


/* =========================================================
   AI INFORMATION MODAL
   ========================================================= */

.ai-info-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}

.ai-info-modal.is-open {
    display: flex;
}

.ai-info-modal-dialog {
    position: relative;
    width: min(900px, 90vw);
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    padding: 30px;
    box-sizing: border-box;
    max-width: 530px;
    border-radius: 20px;
}


/* =========================================================
   MODAL SCHLIESSEN
   ========================================================= */

.ai-info-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #ffffff;
    color: #555555;

    font-size: 26px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);

    z-index: 100001;
    pointer-events: auto;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.ai-info-modal-close:hover {
    background: #ffffff;
    color: #222222;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
