/*
 * 2010-2026 SwissGeek | Web Developer Freelance
 *
 * NOTICE OF LICENSE
 *
 * This source file is part of SGK Translate, distributed under the GNU General
 * Public License, version 2 or (at your option) any later version, bundled in
 * the file LICENSE. It is also available at https://www.gnu.org/licenses/gpl-2.0.html
 *
 * @Module      SGK Translate
 * @Description Translates the whole WordPress site with /de/ /en/ addresses, hreflang, a language switcher and automatic translation (DeepL, OpenAI, Gemini, Claude).
 * @Version     1.0.3
 * @Copyright   SwissGeek | Web Developer Freelance <https://swissgeek.dev/>
 * @support     Support Requests <https://admin.swissgeek.dev/forms/ticket?styled=1&with_logo=1>
 * @Blog        Breaking News <https://news.swissgeek.dev/> <https://news.prestageek.ch/>
 * @Addons      Developments <https://prestageek.ch/> <https://add.swissgeek.dev/>
 *
 * @license     GPL-2.0-or-later <https://www.gnu.org/licenses/gpl-2.0.html>
 */
/* SGK Translate — language switcher. Every rule is scoped under .sgktr-switcher. */
.sgktr-switcher{--sgktr-bg:#fff;--sgktr-fg:#141414;--sgktr-line:rgba(20,20,20,.14);--sgktr-accent:#d41414;font-size:15px;line-height:1.3;position:relative;display:inline-block;z-index:50}
.sgktr-switcher ul{list-style:none;margin:0;padding:0}
.sgktr-switcher a{text-decoration:none;color:inherit}
.sgktr-flag{display:inline-flex;align-items:center;flex:none;line-height:0;vertical-align:-.15em;margin-right:.45em}.sgktr-flag svg{display:block;width:1.3em;height:.9em;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}.sgktr-menu>a,.sgktr-menu-item>a{white-space:nowrap}
.sgktr-switcher--list ul,.sgktr-switcher--inline ul{display:flex;flex-wrap:wrap;gap:.25em .9em}
.sgktr-switcher--inline .sgktr-item:not(:last-child)::after{content:"·";margin-left:.9em;opacity:.5}
.sgktr-switcher--list .sgktr-item.is-current a,.sgktr-switcher--inline .sgktr-item.is-current a{font-weight:700;text-decoration:underline;text-decoration-color:var(--sgktr-accent);text-underline-offset:.25em}
.sgktr-switcher--dropdown>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.4em;padding:.45em .8em;border:1px solid var(--sgktr-line);border-radius:999px;background:var(--sgktr-bg);color:var(--sgktr-fg);font-weight:600;user-select:none}
.sgktr-switcher--dropdown>summary::-webkit-details-marker{display:none}
.sgktr-switcher--dropdown>summary::after{content:"";width:.45em;height:.45em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-.15em);margin-left:.2em}
.sgktr-switcher--dropdown[open]>summary::after{transform:rotate(-135deg) translateY(-.1em)}
.sgktr-switcher--dropdown>ul{position:absolute;top:calc(100% + 6px);left:0;min-width:100%;background:var(--sgktr-bg);color:var(--sgktr-fg);border:1px solid var(--sgktr-line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);padding:6px;white-space:nowrap}
.sgktr-switcher--dropdown>ul a{display:flex;align-items:center;padding:.5em .75em;border-radius:8px}
.sgktr-switcher--dropdown>ul a:hover,.sgktr-switcher--dropdown>ul a:focus-visible{background:rgba(212,20,20,.08);color:var(--sgktr-accent)}
.sgktr-switcher--dropdown .sgktr-item.is-current a{font-weight:700}
.sgktr-switcher--dropdown .sgktr-item.is-current a::after{content:"✓";margin-left:auto;padding-left:1em;color:var(--sgktr-accent)}
.sgktr-switcher.sgktr-floating{position:fixed;bottom:18px;z-index:99990}
.sgktr-switcher.sgktr-floating--bottom-right{right:18px}
.sgktr-switcher.sgktr-floating--bottom-left{left:18px}
.sgktr-switcher.sgktr-floating>summary{box-shadow:0 6px 20px rgba(0,0,0,.16)}
.sgktr-switcher.sgktr-floating>ul{top:auto;bottom:calc(100% + 8px)}
.sgktr-switcher.sgktr-floating--bottom-right>ul{left:auto;right:0}
.sgktr-switcher a:focus-visible,.sgktr-switcher summary:focus-visible{outline:2px solid var(--sgktr-accent);outline-offset:2px}
@media (prefers-color-scheme:dark){.sgktr-switcher.sgktr-floating{--sgktr-bg:#1d1d1f;--sgktr-fg:#f5f5f5;--sgktr-line:rgba(255,255,255,.18)}}
@media (max-width:680px){.sgktr-switcher.sgktr-floating{bottom:12px}.sgktr-switcher.sgktr-floating--bottom-right{right:12px}.sgktr-switcher.sgktr-floating--bottom-left{left:12px}}
