/* ============================================================
   IMAGES.CSS - ULTIMATIVE LÖSUNG
   ============================================================ */

/* ---- CONTAINER FÜR 3 BILDER IN EINER REIHE ---- */
.image-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 30px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ---- JEDES BILD-ELEMENT ---- */
.image-row-item {
    flex: 0 0 auto !important;
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    text-align: center !important;
}

/* ---- BILD-WRAPPER ---- */
.image-row-item .mod-image-wrapper,
.mod-image-wrapper {
    max-width: 250px !important;
    width: 250px !important;
    margin: 0 auto !important;
    display: block !important;
}

/* ---- H2-ÜBERSCHRIFT ---- */
.image-row-item .mod-image-title-h2,
.mod-image-wrapper .mod-image-title-h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1b4b1b !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    border-bottom: 2px solid #4caf50 !important;
    padding-bottom: 8px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    display: block !important;
    width: 100% !important;
}

/* ---- BASIS-BILD-KLASSE (maximale Spezifität) ---- */
body .image-row-item .mod-image,
body .mod-image-wrapper .mod-image,
body .mod-image {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: block !important;
    line-height: 0 !important;
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
}

/* ---- BILD-SELBST ---- */
body .image-row-item .mod-image img,
body .mod-image-wrapper .mod-image img,
body .mod-image img {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ---- HOVER-EFFEKT: ZOOM ---- */
body .image-row-item .mod-image:hover img,
body .mod-image-wrapper .mod-image:hover img,
body .mod-image:hover img {
    transform: scale(1.05) !important;
}

/* ---- HOVER-EFFEKT: SCHATTEN ---- */
body .image-row-item .mod-image:hover,
body .mod-image-wrapper .mod-image:hover,
body .mod-image:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px) !important;
}

/* ============================================================
   RUNDES BILD
   ============================================================ */

body .image-row-item .mod-image.rounded-circle,
body .mod-image-wrapper .mod-image.rounded-circle,
body .mod-image.rounded-circle {
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    height: 250px !important;
}

body .image-row-item .mod-image.rounded-circle img,
body .mod-image-wrapper .mod-image.rounded-circle img,
body .mod-image.rounded-circle img {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    height: 250px !important;
    object-fit: cover !important;
}

/* ============================================================
   TENNIS-EFFEKT (gelber Rand)
   ============================================================ */

body .image-row-item .mod-image.tennis-effect,
body .mod-image-wrapper .mod-image.tennis-effect,
body .mod-image.tennis-effect {
    border: 3px solid rgba(255, 193, 7, 0.3) !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.1) !important;
}

body .image-row-item .mod-image.tennis-effect:hover,
body .mod-image-wrapper .mod-image.tennis-effect:hover,
body .mod-image.tennis-effect:hover {
    border-color: rgba(255, 193, 7, 0.6) !important;
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.2) !important;
}

/* ============================================================
   OVERLAY (Bildunterschrift)
   ============================================================ */

body .image-row-item .mod-image .image-overlay,
body .mod-image-wrapper .mod-image .image-overlay,
body .mod-image .image-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 15px !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
    color: #ffffff !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    z-index: 10 !important;
}

body .image-row-item .mod-image:hover .image-overlay,
body .mod-image-wrapper .mod-image:hover .image-overlay,
body .mod-image:hover .image-overlay {
    transform: translateY(0) !important;
}

body .image-row-item .mod-image .image-overlay .title,
body .mod-image-wrapper .mod-image .image-overlay .title,
body .mod-image .image-overlay .title {
    display: block !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 4px !important;
}

body .image-row-item .mod-image .image-overlay .text,
body .mod-image-wrapper .mod-image .image-overlay .text,
body .mod-image .image-overlay .text {
    display: block !important;
    font-weight: 400 !important;
    font-size: 0.8rem !important;
    opacity: 0.85 !important;
}

/* ============================================================
   BILDUNTERSCHRIFT (UNTER DEM BILD)
   ============================================================ */

body .image-row-item .mod-image-caption,
body .mod-image-caption {
    display: block !important;
    margin-top: 12px !important;
    font-size: 0.9rem !important;
    color: #2c3e2c !important;
    text-align: center !important;
    font-weight: 500 !important;
    max-width: 250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .image-row-item .mod-image-caption strong,
body .mod-image-caption strong {
    color: #2e7d32 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .image-row {
        gap: 20px !important;
    }
    
    .image-row-item {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
    
    body .image-row-item .mod-image,
    body .mod-image-wrapper .mod-image,
    body .mod-image {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
    
    body .image-row-item .mod-image img,
    body .mod-image-wrapper .mod-image img,
    body .mod-image img {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
    
    body .image-row-item .mod-image.rounded-circle,
    body .mod-image-wrapper .mod-image.rounded-circle,
    body .mod-image.rounded-circle {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        height: 200px !important;
    }
    
    body .image-row-item .mod-image.rounded-circle img,
    body .mod-image-wrapper .mod-image.rounded-circle img,
    body .mod-image.rounded-circle img {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .image-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }
    
    .image-row-item {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
    }
    
    body .image-row-item .mod-image,
    body .mod-image-wrapper .mod-image,
    body .mod-image {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
    }
    
    body .image-row-item .mod-image img,
    body .mod-image-wrapper .mod-image img,
    body .mod-image img {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
    }
    
    body .image-row-item .mod-image.rounded-circle,
    body .mod-image-wrapper .mod-image.rounded-circle,
    body .mod-image.rounded-circle {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
        height: 250px !important;
    }
    
    body .image-row-item .mod-image.rounded-circle img,
    body .mod-image-wrapper .mod-image.rounded-circle img,
    body .mod-image.rounded-circle img {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .image-row-item {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
    
    body .image-row-item .mod-image,
    body .mod-image-wrapper .mod-image,
    body .mod-image {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
    
    body .image-row-item .mod-image img,
    body .mod-image-wrapper .mod-image img,
    body .mod-image img {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
    }
    
    body .image-row-item .mod-image.rounded-circle,
    body .mod-image-wrapper .mod-image.rounded-circle,
    body .mod-image.rounded-circle {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        height: 200px !important;
    }
    
    body .image-row-item .mod-image.rounded-circle img,
    body .mod-image-wrapper .mod-image.rounded-circle img,
    body .mod-image.rounded-circle img {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        height: 200px !important;
    }
}