/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
/* KED – Sprachschalter im Header */

/* Sprachschalter und Optionsmenü rechts ausrichten */
#survey-nav .ked-language-switcher {
    margin-left: auto !important;
    margin-right: 18px !important;
    flex-shrink: 0;
}

/* Sprachbutton */
#survey-nav .ked-language-switcher > button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-width: 165px;
    min-height: 44px;
    padding: 9px 16px;

    background: #ffffff;
    color: #26384c;
    border: 1px solid #c5d8cd;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;

    box-shadow: none;
    transition: background .15s, border-color .15s;
}

/* Globus */
#survey-nav .ked-language-switcher .ri-earth-line {
    color: #159957;
    font-size: 19px;
}

/* Pfeil rechts */
#survey-nav .ked-language-switcher
.dropdown-toggle::after {
    margin-left: auto;
    color: #65758b;
}

/* Hover und geöffneter Zustand */
#survey-nav .ked-language-switcher > button:hover,
#survey-nav .ked-language-switcher > button:focus,
#survey-nav .ked-language-switcher > button.show {
    background: #f2faf5;
    color: #26384c;
    border-color: #159957;
    box-shadow: none;
}

/* Dropdown-Liste */
#survey-nav .ked-language-switcher .dropdown-menu {
    min-width: 245px;
    max-height: 65vh;
    overflow-y: auto;

    padding: 7px;
    border: 1px solid #dce3e9;
    border-radius: 8px;

    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Einzelne Sprachen */
#survey-nav .ked-language-switcher .dropdown-item {
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 15px;
    white-space: nowrap;
}

#survey-nav .ked-language-switcher
.dropdown-item:hover {
    background: #eaf6ef;
    color: #174d32;
}

/* Mobilgeräte */
@media (max-width: 576px) {
    #survey-nav .ked-language-switcher {
        margin-right: 8px !important;
    }

    #survey-nav .ked-language-switcher > button {
        min-width: 125px;
        min-height: 40px;
        padding: 7px 10px;
        gap: 8px;
        font-size: 13px;
    }

    #survey-nav .ked-language-switcher .dropdown-menu {
        min-width: 220px;
        max-width: calc(100vw - 24px);
    }
}
