/* Overlay über der gesamten Seite */
#language-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);
}


/* Dialogbox */
.language-dialog {
    width: 100%;
    max-width: 520px;

    padding: 32px;

    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    text-align: center;
}


/* Überschrift */
.language-dialog h2 {
    margin: 0 0 16px;

    font-size: 28px;
    line-height: 1.2;

    color: #111111;
}


/* Beschreibung */
.language-dialog p {
    margin: 0 0 24px;

    font-size: 16px;
    line-height: 1.6;

    color: #333333;
}


/* Button-Bereich */
.language-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}


/*
 * English
 *
 * Wichtig:
 * #language-english selbst ist nur der Wrapper.
 * Der eigentliche klickbare Link wird von GTranslate erzeugt.
 */
#language-english {
    display: inline-flex;
}


/* Echter GTranslate-Link */
#language-english a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 12px 20px;

    border: 0;
    border-radius: 6px;

    background: #111111;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}


#language-english a:hover,
#language-english a:focus {
    background: #333333;
    color: #ffffff;

    text-decoration: none;
}


#language-english a:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 3px;
}


/*
 * Deutsch
 */
#language-german {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 12px 20px;

    border: 0;
    border-radius: 6px;

    background: #eeeeee;
    color: #111111;

    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}


#language-german:hover,
#language-german:focus {
    background: #dddddd;
}


#language-german:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 3px;
}


/* Mobile */
@media (max-width: 600px) {

    #language-overlay {
        padding: 16px;
    }

    .language-dialog {
        padding: 24px 20px;
    }

    .language-dialog h2 {
        font-size: 24px;
    }

    .language-dialog-actions {
        flex-direction: column;
    }

    #language-english,
    #language-english a,
    #language-german {
        width: 100%;
    }
}