/* Sprachmenue (EN DE ES ZH).
   Reines HTML (<details>), kein Skript noetig. */
.sp-wahl { position: relative; flex: none; }
.sp-wahl > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35);
  transition: border-color .4s ease, color .4s ease;
}
.sp-wahl > summary::-webkit-details-marker { display: none; }
.sp-wahl > summary::after {
  content: ''; width: 5px; height: 5px; margin-left: 0.1rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .3s ease;
}
.sp-wahl[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.e-kopf-fest .sp-wahl > summary, .e-kopf-an .sp-wahl > summary, .navbar .sp-wahl > summary {
  color: var(--e-text-leise, #5b6470); border-color: var(--e-linie, #e2ddd3);
}
.sp-wahl > summary:hover, .sp-wahl[open] > summary { border-color: var(--e-gold, #c9a84c); color: var(--e-gold, #c9a84c); }
.sp-globus { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; display: block; }

.sp-liste {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  min-width: 190px; margin: 0; padding: 0.4rem 0; list-style: none;
  background: #fff; border: 1px solid var(--e-linie, #e2ddd3);
  box-shadow: 0 18px 40px -18px rgba(22,40,60,.35);
}
.sp-liste li { list-style: none; margin: 0; }
.sp-liste a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.1rem;
  font-size: 0.9rem; color: var(--e-text, #2b3038); text-decoration: none;
  border-left: 2px solid transparent; text-transform: none; letter-spacing: 0;
}
.sp-liste a:hover, .sp-liste a:focus-visible { background: var(--e-papier, #faf9f7); border-left-color: var(--e-gold, #c9a84c); }
.sp-liste a[aria-current] { font-weight: 600; color: var(--e-navy, #16283c); }
.sp-code { display: inline-block; width: 1.9rem; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--e-text-leise, #6d7580); font-weight: 600; }

@media (max-width: 720px) {
  .sp-wahl > summary { padding: 0.5rem 0.55rem; }
  .sp-globus { display: none; }
}

/* Hinweis auf uebersetzten Rechtstexten */
.sp-hinweis {
  max-width: 780px; margin: 2rem auto 0; padding: 0.9rem 1.2rem;
  background: #fbf7ec; border: 1px solid #ecdfb8; border-left: 3px solid var(--e-gold, #c9a84c);
  font-size: 0.92rem; line-height: 1.6; color: var(--e-text, #2b3038);
}
.navbar ~ .sp-hinweis { margin: 6rem auto 0; }
.sp-hinweis a { color: var(--e-rot, #c0392b); }

/* Schriften: die lateinischen Webfonts haben keine chinesischen Zeichen. */
html[lang="zh-Hans"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] .e-zitat { font-family: "Songti SC", "Noto Serif SC", "SimSun", serif; }
html[lang="zh-Hans"] * { letter-spacing: 0 !important; }
html[lang="zh-Hans"] em, html[lang="zh-Hans"] .e-zitat { font-style: normal; }
