/* 
Theme Name: DI Flat 
Description: Childtheme 
Author: Designers Inn 
Template: di-basis 
Version: 1.3 
*/

.center{text-align: center; margin: 0 auto 0 auto;}


/* Jetzt das echte Responsive CSS */
/* Handy Portrait (hoch) */
@media (max-width: 767px) and (orientation: portrait) {
    .et_pb_section_0 .et_pb_row {
        margin-top: 100px !important;
    }
}

/* Handy Landscape (quer) */
@media (max-width: 767px) and (orientation: landscape) {
    .et_pb_section_0 .et_pb_row {
        margin-top: 270px !important;
    }
}

/* Handy Landscape (quer) */
@media (max-width: 767px) and (orientation: landscape) {
    .et_pb_column_18 {
        margin-top: 150px !important;
    }
}
/* Basis Equal Heights für ALLE Zeilen mit der Klasse */
.equal-height-row {
    display: flex !important;
    align-items: stretch !important;
}

.equal-height-row .et_pb_column {
    display: flex !important;
    flex-direction: column !important;
}

/* Das Bild perfekt anpassen */
.equal-height-row .et_pb_image {
    flex: 1 !important;
    display: flex !important;
}

.equal-height-row .et_pb_image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* RESPONSIVE Min-Heights */
@media (min-width: 1025px) {
    .equal-height-row { min-height: 400px !important; }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .equal-height-row { min-height: 350px !important; }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .equal-height-row { min-height: 280px !important; }
}

@media (max-width: 767px) {
    .equal-height-row { min-height: 300px !important; }
}
/* Dein bestehender Code bleibt, aber ergänze: */

/* MOBILE: Bild NICHT strecken */
@media (max-width: 767px) {
    .equal-height-row { 
        min-height: auto !important; /* Keine feste Höhe auf Mobile */
        flex-direction: column !important; /* Spalten untereinander */
    }
    
    .equal-height-row .et_pb_image {
        flex: none !important; /* Bild nicht strecken */
        height: auto !important; /* Normale Bildhöhe */
    }
    
    .equal-height-row .et_pb_image img {
        height: auto !important; /* Bild in Originalproportionen */
        max-height: 500px !important; /* Maximale Höhe begrenzen */
        object-fit: cover !important;
        object-position: center top !important; /* Zeigt oberen Bildbereich */
    }
}
.et_pb_text_12 h3 {
	margin-top: 0 !important;
}