/* VFA 26 · Lernspiele – einheitliche Kopfzeile und Grundgrößen (überschreibt die Spiel-Stile) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 16px; }
.topbar { display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: nowrap !important; gap: 8px !important; padding: 8px 12px !important; min-height: 60px; }
.topbar-left, .brand-wrap { display: flex !important; align-items: center !important; gap: 10px !important; min-width: 0; flex: 1 1 auto; flex-wrap: nowrap !important; }
.home-link { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0 !important; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; font-size: 1.5rem !important; font-weight: 700; line-height: 1; text-decoration: none; }
.home-link:hover { background: var(--surface-2); }
.home-link span, .home-link .hl-text { display: none !important; }
.brand { font-size: 1.15rem !important; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-align: left; line-height: 1.2; }
.brand span { display: none !important; }
.topbar-right { display: flex !important; align-items: center !important; gap: 6px !important; flex: 0 0 auto; flex-wrap: nowrap !important; }
.topbar .icon-btn { width: 44px !important; height: 44px !important; font-size: 1.15rem !important; flex: 0 0 auto; }
.topbar #btnLibrary { min-height: 44px !important; height: 44px; padding: 0 14px !important; white-space: nowrap; font-size: .92rem; font-weight: 700; }
.topbar .pill { display: none !important; }
.lib-ico { display: none; }
@media (min-width: 761px) {
  .brand span { display: inline !important; }
  .topbar .pill { display: inline-block !important; }
  .home-link span, .home-link .hl-text { display: inline !important; }
  .home-link { width: auto; border-radius: 999px; padding: 0 14px !important; font-size: 1rem !important; gap: 6px; }
}
@media (max-width: 460px) {
  .topbar { padding: 6px 8px !important; }
  .lib-word { display: none; }
  .lib-ico { display: inline; }
  .topbar #btnLibrary { padding: 0 10px !important; }
  .brand { font-size: 1.05rem !important; }
}
main { padding-left: 16px; padding-right: 16px; }
@media (max-width: 560px) { h1 { font-size: 1.45rem !important; line-height: 1.2; } .btn { min-height: 44px; } }

html:not(.is-admin) .admin-only { display: none !important; }
