/* v8 German version: the EN/DE switch (owned by the v8 German agent, 26.11.2026). It sits fixed in the top right
   corner of the bar, right of the menu; the bar keeps a free slot for it. Same type and colours as the menu button. */
.top__in { padding-right: calc(var(--gut-r) + 70px); }
.top__name { white-space: nowrap; }
@media (max-width: 420px) { .top__in { gap: 12px; padding-right: calc(var(--gut-r) + 66px); } }
.langsw { position: fixed; z-index: 55; top: calc(env(safe-area-inset-top, 0px) + 10px); right: max(var(--gut-r), calc((100vw - 1680px) / 2 + var(--gut-r)));
  min-width: 58px; height: 44px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--f-display); font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  color: var(--dim); background: none; border: 0; cursor: pointer; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); transition: color 0.2s; }
.langsw__sep { opacity: 0.55; }
.langsw[data-lang="en"] .langsw__en, .langsw[data-lang="de"] .langsw__de { color: var(--bone); }
.langsw:hover .langsw__en, .langsw:hover .langsw__de { color: var(--accent); }
.langsw[data-lang="en"]:hover .langsw__en, .langsw[data-lang="de"]:hover .langsw__de { color: var(--bone); }
.langsw:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
/* the library viewer and the notebook page have their close × top right: there the switch moves top left, above them */
body:has(> #viewer:not([hidden])) .langsw, body:has(> #found:not([hidden])) .langsw { z-index: 2100; right: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
/* the lyric sheet viewer keeps its buttons at the bottom: the switch stays top right, above it */
html.lyv-open .langsw { z-index: 2100; }
/* German has longer words: let running text hyphenate (lang="de" picks the German rules), keep headings whole */
html[lang="de"] #main { hyphens: auto; -webkit-hyphens: auto; }
html[lang="de"] #main :is(.display, .h2, .h3, .rel__title, .latest__t, .show__t) { hyphens: manual; -webkit-hyphens: manual; }
html[lang="de"] .shows .hs:not(.no-scroll) .hs__n::after { content: "ziehen oder die pfeile nutzen →"; }
