/*
Theme Name: TheGem Child
Template: thegem
*/

/* =========================================================
   1. HEADERBILD: Mobile & Tablet ausrichten (Korrigiert)
   ========================================================= */

/* Nur für reine Smartphones (0px bis 767px) */
@media (max-width: 767px) {
    .thegem-ken-burns-bg .thegem-ken-burns-slide {
        background-position: left center !important;
    }
}

/* Nur für Tablets (768px bis 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .thegem-ken-burns-bg .thegem-ken-burns-slide {
        background-position: 85% center !important;
    }
}


/* =========================================================
   2. ORANGE CONTAINER: Mobile zentrieren
   ========================================================= */

@media (max-width: 767px) {
    .elementor-element-90fb1f0,
    .elementor-element-7b3c884 {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .elementor-element-7b3c884 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* =========================================================
   3. ICON-BOXEN: Mobile 1 Spalte, Tablet 2 Spalten,
      kleine Laptops 2 Spalten
   ========================================================= */

/* Mobile: 1 Spalte */
@media (max-width: 767px) {
    .elementor-grid,
    .e-con.e-grid {
        grid-template-columns: 1fr !important;
        --gap: 18px 18px !important;
    }

    .elementor-row {
        flex-wrap: wrap !important;
    }

    .elementor-column,
    .elementor-widget-icon-box,
    .e-con.e-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-grid,
    .e-con.e-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        --gap: 20px 20px !important;
    }

    .elementor-row {
        flex-wrap: wrap !important;
    }

    .elementor-column {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Kleine Laptops: 2 Spalten statt 4 */
@media (min-width: 1025px) and (max-width: 1366px) {
    .elementor-grid,
    .e-con.e-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        --gap: 24px 24px !important;
    }
}


/* =========================================================
   4. TEXT: Silbentrennung & Überlaufschutz (Mobile)
   ========================================================= */

@media (max-width: 767px) {
    .elementor-widget-heading .elementor-heading-title,
    .elementor-widget-text-editor,
    .elementor-icon-box-title,
    .elementor-icon-box-description,
    h1, h2, h3, h4, h5, h6, p {
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

@media (min-width: 768px) {
    .elementor-widget-heading .elementor-heading-title,
    .elementor-widget-text-editor,
    h1, h2, h3, h4, h5, h6, p {
        -webkit-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
    }
}


/* =========================================================
   5. MENÜ: Bestimmte Menüpunkte auf Startseite ausblenden
   ========================================================= */

.home .menu-item-DEINE-ID {
    display: none !important;
}