/* Mittlere Header-Spalte */
.jg-header-search-column {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    min-width: 0;

    margin-left: 30px;
    margin-right: 30px;
}

/* Suchfeld volle Breite */
.jg-header-search-column .input-group {
    width: 100%;
}

/* =====================================================
   LEGIERUNGSZUSCHLAG
===================================================== */

.jg-alloy-banner {
    display: flex;
    align-items: center;

    width: 50%;

    margin: 0 auto 10px auto;

    padding: 10px 14px;

    background: #f8f9fa;

    border-left: 3px solid #0075bf;
    border-radius: 6px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.jg-alloy-content {
    width: 100%;
}

.jg-alloy-title {
    color: #0075bf;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;

    margin-bottom: 2px;
}

.jg-alloy-text {
    color: #444;

    font-size: 13px;
    line-height: 1.4;
}

.jg-alloy-text strong {
    color: #d71920;
    font-weight: 700;
}

.jg-alloy-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 16px;

    background: #f8f9fa;

    border-left: 3px solid #0075bf;
    border-radius: 8px;

    margin-bottom: 12px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.jg-alloy-content {
    flex: 1;
}

.jg-alloy-title {
    color: #0075bf;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;

    margin-bottom: 4px;
}

.jg-alloy-text {
    font-size: 13px;
    color: #444;
}

.jg-alloy-text strong {
    color: #d71920;
    font-weight: 700;
}

/* BUTTON */

.jg-alloy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;

    padding: 8px 14px;

    border: 1px solid #d4dbe3;
    border-radius: 999px;

    background: #fff;

    color: #444;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: all .2s ease;
}

.jg-alloy-btn:hover {
    color: #0075bf;
    border-color: #0075bf;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(0, 117, 191, .12);
}

/* =========================================================
   FINALER MOBILE-PATCH
   Logo zentriert oberhalb von LGZ und Suche
========================================================= */

@media (max-width: 575.98px) {

    /*
     * Logo aus der linken Apex-Spalte lösen und unabhängig
     * von deren Breite mittig im Viewport positionieren.
     */
    .logo-link {
        position: absolute !important;

        top: 30px !important;
        left: 50vw !important;
        right: auto !important;

        z-index: 20;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translateX(-50%) !important;
    }

    .logo-link .logo-img {
        display: block;

        width: auto !important;
        max-width: 52px !important;
        height: auto !important;

        margin: 0 !important;
    }

    /*
     * Platz für das absolut positionierte Logo schaffen.
     */
    .jg-header-search-column {
        box-sizing: border-box;

        flex: 0 0 100% !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 68px 8px 12px !important;
    }

    /*
     * LGZ-Box und Suche erhalten exakt dieselbe Breite.
     */
    .jg-alloy-banner,
    .jg-header-search-column #searchForm {
        box-sizing: border-box;

        width: 100% !important;
        max-width: 680px !important;

        margin-right: auto !important;
        margin-left: auto !important;
    }

    .jg-alloy-banner {
        min-height: 50px;
        margin-bottom: 0 !important;
    }

    /*
     * Genügend Abstand, damit die Suche die LGZ-Box
     * nicht mehr optisch überlagert.
     */
    .jg-header-search-column #searchForm {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        margin-top: 18px !important;

        transform: none !important;
    }

    /*
     * Mehr-erfahren-Text bleibt auf normalen Smartphones
     * vollständig sichtbar.
     */
    .jg-alloy-btn {
        flex: 0 0 auto;

        width: auto;
        min-width: 0;
        height: 32px;
        min-height: 32px;

        padding: 0 10px;

        font-size: 10px;
        white-space: nowrap;
    }

    .jg-alloy-btn > span {
        display: inline !important;
    }
}