/* Language switcher, "this page is in your language" suggestion and the
   legal-translation note. Shared by every page tools/i18n/build.py touches. */
.lang{position:relative;font-size:14px;line-height:1.2;font-weight:400}
.lang summary{list-style:none;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;
  border-radius:999px;color:rgba(255,255,255,.72);cursor:pointer;user-select:none;-webkit-user-select:none;
  transition-property:color,background-color;transition-duration:.15s;transition-timing-function:ease-out}
.lang summary::-webkit-details-marker{display:none}
.lang summary::after{content:"";width:8px;height:8px;margin-left:1px;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);opacity:.7}
.lang details[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.lang summary:hover,.lang details[open] summary{color:#fff;background:rgba(255,255,255,.08)}
.lang summary:focus-visible{outline:2px solid #fff;outline-offset:2px}
.lang .langglobe{flex:0 0 auto}
.lang ul{position:absolute;right:0;top:calc(100% + 6px);z-index:50;margin:0;padding:6px;list-style:none;min-width:208px;
  background:#1c1c1e;border-radius:14px;text-align:left;
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 16px 40px rgba(0,0,0,.6)}
.lang li{margin:0;padding:0;font-size:15px}
.lang li a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:8px;
  color:rgba(255,255,255,.82);text-decoration:none;white-space:nowrap;
  transition-property:background-color,color;transition-duration:.12s;transition-timing-function:ease-out}
.lang li a:hover{background:rgba(255,255,255,.08);color:#fff}
.lang li a:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.lang li a[aria-current]{color:#fff;font-weight:600}
.lang li a[aria-current]::after{content:"";margin-left:auto;width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}

/* Home: top-right of the hero. */
header.hero{position:relative}
header.hero > .lang{position:absolute;top:14px;right:14px;text-align:left}
/* Support / privacy / terms: on the same line as the back link. */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-10px -14px -10px 0}
.topbar > nav:first-child{min-width:0}

.legalnote{border-left:2px solid rgba(255,255,255,.18);padding-left:12px;text-wrap:pretty}

/* "This page is available in …" — root home only, first visit. */
.langsuggest{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;margin:0 auto;max-width:520px;
  display:flex;align-items:center;gap:6px;padding:8px 6px 8px 18px;border-radius:22px;
  background:rgba(28,28,30,.92);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:#fff;
  font-size:14.5px;line-height:1.35;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 16px 40px rgba(0,0,0,.55);
  animation:langin .32s cubic-bezier(.2,0,0,1) both}
.langsuggest p{margin:0;flex:1;min-width:0;text-wrap:pretty}
.langsuggest a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:14px;
  background:#fff;color:#000;font-weight:600;text-decoration:none;white-space:nowrap;
  transition-property:scale;transition-duration:.12s;transition-timing-function:ease-out}
.langsuggest a:active{scale:.96}
.langsuggest button{flex:0 0 auto;appearance:none;border:0;background:transparent;color:rgba(255,255,255,.7);
  width:44px;height:44px;margin:-4px 0;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  transition-property:color,background-color;transition-duration:.12s;transition-timing-function:ease-out}
.langsuggest button:hover{color:#fff;background:rgba(255,255,255,.08)}
.langsuggest a:focus-visible,.langsuggest button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@keyframes langin{from{opacity:0;transform:translateY(8px)}}
@media (max-width:480px){
  .langsuggest{flex-wrap:wrap;padding:12px 6px 12px 16px}
  .langsuggest p{flex-basis:calc(100% - 50px)}
  .langsuggest a{order:3;margin:2px 0 0}
}
@media (prefers-reduced-motion:reduce){
  .langsuggest{animation:none}
  .lang summary,.lang li a,.langsuggest a,.langsuggest button{transition:none}
  .langsuggest a:active{scale:1}
}

/* Long single words (Datenschutzerklärung, Nutzungsbedingungen) must not
   push a phone-width page sideways. */
h1,h2,h3{overflow-wrap:break-word}
h1:lang(de),h2:lang(de),h3:lang(de){hyphens:auto;-webkit-hyphens:auto}
