/* Layout-Reparatur fuer ListingPro Karten in Elementor */

.elementor-widget-listing-posts .lp-grid-box,
.elementor-widget-listing-posts .list_view_v2 .lp-grid-box {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #eaedf3 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 24px !important;
    background: #fff !important;
}

/* Linke Seite: Bild-Container */
.elementor-widget-listing-posts .lp-grid-box-thumb-container {
    width: 35% !important;
    min-width: 35% !important;
    position: relative;
    background: #f8f9fa !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
}

/* Das Logo/Bild selbst */
.elementor-widget-listing-posts .lp-grid-box-thumb-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: 200px !important;
    object-fit: contain !important; /* Verhindert das Abschneiden */
    object-position: center !important;
    border-radius: 8px !important;
}

/* Rechte Seite: Text-Inhalt */
.elementor-widget-listing-posts .lp-grid-box-description {
    width: 65% !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    float: none !important;
}

/* Responsive: Auf Handys untereinander */
@media (max-width: 768px) {
    .elementor-widget-listing-posts .lp-grid-box,
    .elementor-widget-listing-posts .list_view_v2 .lp-grid-box {
        flex-direction: column !important;
    }
    
    .elementor-widget-listing-posts .lp-grid-box-thumb-container {
        width: 100% !important;
        min-width: 100% !important;
        min-height: 200px !important;
    }
    
    .elementor-widget-listing-posts .lp-grid-box-description {
        width: 100% !important;
    }
}
