
@media (max-width: 980px) {

    .mgb-mobile-search .et_pb_menu_inner_container {
        position: relative;
    }

    /* Lupe neben dem Burger-Menü */
    .mgb-search-open {
        position: absolute;
        top: 50%;
        right: 48px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #acd8e7;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .mgb-search-open svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.3;
    }

    /* Suchleiste über der vollständigen Menüzeile */
    .mgb-mobile-search-form {
        position: absolute;
        inset: 0;
        z-index: 100;
        display: none;
        align-items: center;
        width: 100%;
        padding: 9px 14px;
        background: #006387;
    }

    .mgb-search-is-open .mgb-mobile-search-form {
        display: flex;
    }

    .mgb-mobile-search-form input[type="search"] {
        width: 100%;
        height: 44px;
        padding: 0 48px 0 16px;
        border: 0;
        border-radius: 4px;
        outline: none;
        background: #fff;
        color: #333;
        font-family: "Open Sans", sans-serif;
        font-size: 16px;
        appearance: none;
        -webkit-appearance: none;
    }

    .mgb-mobile-search-form input[type="search"]:focus {
        box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.45);
    }

    /* Browser-eigenes X ausblenden */
    .mgb-mobile-search-form input[type="search"]::-webkit-search-cancel-button {
        display: none;
    }

    /* Eigenes X */
    .mgb-search-close {
        position: absolute;
        top: 50%;
        right: 19px;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #555;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
    }
}

@media (min-width: 981px) {
    .mgb-search-open,
    .mgb-mobile-search-form {
        display: none !important;
    }
}
