/* Sprachwahl (Flaggen) – gemeinsam für app.tpl (Home) und gameauth.tpl (Anmelden/Registrieren).
   Positionierung (top/right/Hintergrund) steckt im jeweiligen Layout-CSS (main.css bzw. game-auth.css). */
.langSwitch {
    position:absolute;
    display:flex;
    align-items:center;
    gap:10px;
    z-index:1001;
    text-transform:none;
    letter-spacing:normal;
}

.langSwitchLink {
    display:inline-flex;
    line-height:0;
    border-radius:4px;
    opacity:.55;
    transition:opacity .2s ease, transform .2s ease;
}

.langSwitchLink:hover,
.langSwitchLink:focus-visible {
    opacity:1;
    transform:translateY(-1px);
}

.langSwitchLink:focus-visible {
    outline:2px solid #b2ddbc;
    outline-offset:2px;
}

.langSwitchLink.is-active {
    opacity:1;
}

/* Flaggen aus dem 48px-Sprite (assets/fonts/flags/flags.png): Flagge liegt je Zelle bei x 1-46 / y 8-39 (46x32 px);
   Sprite auf Faktor 0,75 skaliert (576x540), ausgeschnitten wird die Flagge (34x24 px) */
.langFlag {
    display:block;
    width:34px;
    height:24px;
    border-radius:3px;
    background:url('../fonts/flags/flags.png') no-repeat;
    background-size:576px 540px;
}

.langFlag-de { background-position:-145px -114px; }
.langFlag-en { background-position:-325px -150px; }
.langFlag-sp { background-position:-541px -114px; }

.langFlag-fr { background:linear-gradient(to right,#002395 0 33.333%,#fff 33.333% 66.666%,#ed2939 66.666%); }
.langFlag-pl { background:linear-gradient(to bottom,#fff 0 50%,#dc143c 50%); }
