/* topbar.css — gemeinsame obere Werkzeugleiste und einheitliche Grundschrift fuer alle oeffentlichen Seiten.
   Vorbild: Leserseite (read-v2.html: reader.css .top + ui-v2.css .v2-top/.v2-quick): runde 40-px-Knöpfe, Pillen-Auswahlfelder, Serif,
   cremefarbene Leiste mit weichem Schatten, Symbole ohne Beschriftung (Tooltip bleibt), aktiver Zustand rot.
   Die Seiten behalten ihre Element-IDs/Klassen und ihr JS; hier wird nur das Aussehen vereinheitlicht (Link NACH dem Seiten-<style>). */

/* ── EINHEITLICHE SCHRIFT auf allen Seiten (Nutzerwunsch: Serifen an allen Stellen, gleiche Schrifttypen) ──
   Eine Schriftfamilie fuer Text, Ueberschriften UND Bedienelemente. Seiteneigene Schrift-Variablen werden
   mit hoeherer Spezifitaet (html:root) auf den Standard umgeleitet. Ausdruecklich gesetzte Sonderschriften
   (Hebraeisch, Griechisch, IPA/Doulos SIL, Arabisch, Thai, Palaeo-Hebraeisch, Code) bleiben unberuehrt,
   weil sie direkt an ihren Elementen stehen und damit Vorrang vor der Vererbung haben. */
html:root {
  --eg-serif: "Noto Serif", "Noto Serif TC", "Noto Serif SC", Georgia, serif;
  --sans: var(--eg-serif); --font-sans: var(--eg-serif); --font-serif: var(--eg-serif); --serif: var(--eg-serif);
  --tb-serif: var(--eg-serif);   /* eg-page.css nutzt sie auch ausserhalb der Leiste */
}
html body { font-family: var(--eg-serif); }
html body :is(button, input, select, textarea, optgroup) { font-family: inherit; }

/* ── Farbwerte (hell = Leser; dunkel = Leser im Dark Mode) ───────────────────────────── */
body .game-header, body .story-header, body .top-nav, body .eg-bar {
  --tb-bar: rgba(253,250,245,.96); --tb-btn: #fffdf9; --tb-sel: #fff; --tb-line: #e3d8c6; --tb-fg: #241c12; --tb-fg2: #6a5a48;
  --tb-hl: #fff3cf; --tb-gold: #c9a87a; --tb-on: #b30000; --tb-shadow: 0 8px 26px rgba(55,38,18,.12);
  --tb-serif: "Noto Serif","Noto Serif TC","Noto Serif SC",serif;
}
body:not(.light) .game-header, body.dark .story-header, body.dark .top-nav, body.dark .eg-bar {
  --tb-bar: rgba(22,24,30,.96); --tb-btn: #20242b; --tb-sel: #1a1d23; --tb-line: rgba(255,255,255,.17); --tb-fg: #ece3d2; --tb-fg2: #c9bfae;
  --tb-hl: rgba(201,154,62,.2); --tb-gold: #c9a87a; --tb-on: #b33927; --tb-shadow: 0 8px 26px rgba(0,0,0,.45);
}
body.light .top-nav { --tb-bar: rgba(253,250,245,.96); --tb-btn: #fffdf9; --tb-sel: #fff; --tb-line: #e3d8c6; --tb-fg: #241c12; --tb-fg2: #6a5a48; --tb-hl: #fff3cf; --tb-on: #b30000; --tb-shadow: 0 8px 26px rgba(55,38,18,.12); }
body:not(.dark) .story-header { --tb-bar: rgba(253,250,245,.96); }

/* ── Leiste ─────────────────────────────────────────────────────────────────────────── */
body .game-header, body .story-header, body .top-nav, body .eg-bar {
  background: var(--tb-bar) !important; color: var(--tb-fg); border: 0 !important; border-bottom: 1px solid var(--tb-line) !important;
  box-shadow: var(--tb-shadow); backdrop-filter: blur(8px); font-family: var(--tb-serif);
  padding: 8px max(12px, env(safe-area-inset-left)) 8px !important; gap: 8px !important; min-height: 64px;
}
body .game-header { display: flex !important; flex-wrap: wrap; align-items: center; }
body .top-nav { display: flex !important; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
body .story-header .header-main-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; width: 100%; }
body .story-header { display: flex !important; flex-direction: column; align-items: stretch; }

/* ── Runde Knöpfe (Zurück, Navigation, Werkzeuge) ────────────────────────────────── */
body .game-header :is(.back-btn, .btn-action, .btn-icon-round, .btn-nav-quick),
body .story-header :is(.story-home-btn, .btn, .btn-portal, .btn-theme, .btn-tool, .btn-nav-step),
body .top-nav :is(.nav-home-btn, .nav-link-btn, .nav-btn-highlight) {
  box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  height: 40px !important; min-height: 40px !important; min-width: 40px; width: auto; padding: 0 12px !important; margin: 0 !important;
  border: 1px solid var(--tb-line) !important; border-radius: 50px !important; background: var(--tb-btn) !important; color: var(--tb-fg2) !important;
  font: 700 17px/1 var(--tb-serif) !important; text-decoration: none; cursor: pointer; box-shadow: none !important; flex: 0 0 auto; transition: color .15s, border-color .15s, background .15s;
}
body .game-header :is(.back-btn, .btn-action, .btn-icon-round, .btn-nav-quick):hover,
body .story-header :is(.story-home-btn, .btn, .btn-portal, .btn-theme, .btn-tool, .btn-nav-step):hover,
body .top-nav :is(.nav-home-btn, .nav-link-btn, .nav-btn-highlight):hover { color: var(--tb-on) !important; border-color: var(--tb-gold) !important; background: var(--tb-hl) !important; transform: none; }
body .story-header .btn.active:not(.lang-toggle-group .btn), body .story-header .btn-tool.on, body .story-header .btn-tool.active { background: var(--tb-on) !important; border-color: var(--tb-on) !important; color: #fff !important; }
/* Beschriftungen weg, Symbol bleibt (Tooltip = title) */
body .nav-label, body .museum-label, body .game-label, body .study-label, body .hs-toggle-label, body #txtBack, body #themeLabel, body #txtRandom,
body .game-title-group p, body .game-header #txtSub { display: none !important; }

/* ── Titel ──────────────────────────────────────────────────────────────────────────── */
body .game-title-group, body .story-header .header-title-group { min-width: 0; max-width: none !important; flex: 1 1 auto; }
body .game-title-group h1, body .story-header .header-title-group h1, body .nav-brand-title {
  margin: 0 !important; font: 700 17px/1.2 var(--tb-serif) !important; max-width: none !important; color: #a8761c !important; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body .nav-brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; min-width: 0; }
body .nav-brand-icon { font-size: 18px; }
body .game-header .header-left, body .story-header .header-left, body .top-nav .nav-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 0; overflow: hidden; }
body .story-header .header-actions, body .top-nav .nav-links, body .game-header .header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; flex-wrap: nowrap; margin: 0; }
body .story-header :is(.header-portals, .header-tools) { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

/* ── Auswahlfelder + Pfeile (zweite Zeile) ───────────────────────────────────────── */
body .game-header .header-center, body .story-header .header-nav-row { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; width: 100%; min-width: 0; order: 5; margin: 0; padding: 0; }
body .story-header .header-nav-row { justify-content: space-between; flex-wrap: wrap; }
body .story-header :is(.nav-book-cluster, .nav-station-cluster) { display: flex; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
body :is(.game-header .scene-select, .story-header .narrative-select) {
  box-sizing: border-box; height: 40px !important; flex: 1 1 0; min-width: 0; max-width: none !important; width: auto !important; padding: 4px 14px !important; margin: 0 !important;
  border: 1px solid var(--tb-line) !important; border-radius: 50px !important; background: var(--tb-sel) !important; color: var(--tb-fg) !important;
  font: 700 14px var(--tb-serif) !important; text-overflow: ellipsis; box-shadow: none !important;
}
body .story-header .btn-nav-step { width: 34px; min-width: 34px; padding: 0 !important; font-size: 18px !important; }
body .game-header #btnRandomScene { padding: 0 !important; width: 40px; font-size: 18px !important; }

/* ── Gruppen (Modus, Schwierigkeit, Sprache) ─────────────────────────────────────── */
body .game-header .header-toggles { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1 1 100%; order: 6; width: 100%; flex-wrap: wrap; margin: 0; padding: 0; }
body :is(.mode-toggle, .diff-toggle, .lang-picker, .lang-toggle-group, .lang-switcher) {
  display: inline-flex !important; align-items: center; gap: 2px; padding: 2px !important; margin: 0 !important; height: 40px; box-sizing: border-box;
  border: 1px solid var(--tb-line) !important; border-radius: 50px !important; background: var(--tb-btn) !important; box-shadow: none !important;
}
body :is(.mode-toggle .toggle-opt, .diff-toggle .toggle-opt, .lang-picker .toggle-opt, .lang-toggle-group .btn, .lang-switcher .lang-btn) {
  height: 34px !important; min-height: 34px !important; min-width: 34px; padding: 0 12px !important; margin: 0 !important; border: 0 !important; border-radius: 50px !important;
  background: transparent !important; color: var(--tb-fg2) !important; font: 700 14px/1 var(--tb-serif) !important; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: none !important;
}
body :is(.mode-toggle .toggle-opt, .diff-toggle .toggle-opt, .lang-picker .toggle-opt, .lang-toggle-group .btn, .lang-switcher .lang-btn):is(.active, .on) { background: var(--tb-on) !important; color: #fff !important; }
body :is(.mode-toggle, .diff-toggle) .toggle-opt span { display: none !important; }          /* nur Symbol, Text steht im Tooltip */
body .lang-toggle-group .btn { font-size: 0 !important; }                    /* Flaggen-Emoji ausblenden, Kürzel bleibt */
body .lang-toggle-group .btn span { display: inline; font: 700 14px var(--tb-serif); }

/* ── Schmale Bildschirme ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body .game-header, body .story-header, body .top-nav, body .eg-bar { padding: 8px 8px !important; gap: 6px !important; }
  body .game-header :is(.back-btn, .btn-action, .btn-icon-round, .btn-nav-quick), body .story-header :is(.story-home-btn, .btn-portal, .btn-theme, .btn-tool), body .top-nav :is(.nav-home-btn, .nav-link-btn, .nav-btn-highlight)
  { height: 38px !important; min-height: 38px !important; min-width: 38px; padding: 0 9px !important; font-size: 16px !important; }
  body .story-header .header-actions { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  body .story-header .header-main-row { flex-wrap: wrap; }
  body .story-header .header-actions { flex: 1 1 100%; justify-content: space-between; }
  body .story-header .btn-tool, body .story-header .btn-theme { padding: 0 !important; width: 38px; }
  body .lang-toggle-group .btn { padding: 0 8px !important; }
  body .top-nav { flex-wrap: wrap; }
  body .top-nav .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
}

/* Aktuelle Seite in der Symbolreihe (📖 Erzählung · 🏛️ Museum · 🧩 Spiel – auf allen Seiten gleich belegt, wie im Leser) */
body :is(.btn-action.btn-nav-quick, .btn-portal, .nav-link-btn).on, body :is(.btn-action.btn-nav-quick, .btn-portal, .nav-link-btn)[aria-current="page"] {
  background: var(--tb-on) !important; border-color: var(--tb-on) !important; color: #fff !important; cursor: default;
}

/* ══ LAYOUT v2 — identische Anordnung auf allen Seiten, Vorlage: read-v2.html ═══════════════════════════════════════════
   Reihenfolge in EINER Zeile:  ← | Auswahl (Buch · Station/Szene · 🎲) | ⟶ Platz ⟶ | 📖 🏛️ 🧩 | Seitenwerkzeuge | Ton | Hell/Dunkel | Sprache
   Die Wrapper der Seiten werden mit display:contents aufgelöst, damit alle Elemente direkt in der Leiste liegen und per order sortiert werden.
   Der Seitentitel entfällt (wie im Leser): die Seite erkennt man am roten Symbol. Schmal: Zeile 1 = ← + Symbole, danach Auswahl, dann Werkzeuge. */
body :is(.game-header, .story-header, .top-nav, .eg-bar) { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; }
body :is(.game-header .header-left, .game-header .header-center, .game-header .header-actions, .game-header .header-toggles,
         .story-header .header-main-row, .story-header .header-left, .story-header .header-actions, .story-header .header-portals,
         .story-header .header-tools, .story-header .header-nav-row, .top-nav .nav-left, .top-nav .nav-links) { display: contents !important; }
body :is(.game-title-group, .story-header .header-title-group, .nav-brand, .game-header #txtSub) { display: none !important; }

/* 1 · Zurück */
body :is(.back-btn, .story-home-btn, .nav-home-btn) { order: 1; }
/* 2–4 · Auswahl */
body #bookPicker { order: 2; flex: 0 1 190px; }
body #scenePicker { order: 3; flex: 0 1 270px; }
body #btnRandomScene { order: 4; }
body .story-header .nav-book-cluster { order: 2; flex: 0 1 260px; }
body .story-header .nav-station-cluster { order: 3; flex: 0 1 380px; }
/* 10–12 · Portale (📖 Erzählung · 🏛️ Museum · 🧩 Spiel) – das erste schiebt den Rest nach rechts */
body :is(#btnStory, #navStoryLink, .header-portals > a.on) { order: 10; margin-left: auto !important; }
body :is(#btnMuseum, #navMuseumLink, #museumBtn) { order: 11; }
body :is(#btnGame, #navGameLink, #gameBtn) { order: 12; }
/* 20+ · Seitenwerkzeuge, Ton, Hell/Dunkel, Sprache */
body :is(#hsToggle, #btnOpenRapidReview) { order: 20; }
body .game-header .mode-toggle { order: 21; }
body .game-header .diff-toggle { order: 22; }
body #btnSoundToggle { order: 30; }
body :is(#btnThemeToggle, #themeToggle) { order: 40; }
body :is(.game-header .lang-picker, .story-header .lang-toggle-group, .top-nav .lang-switcher) { order: 50; }

/* Schmal (Leser: ← + Symbole oben, Auswahl darunter) */
@media (max-width: 760px) {
  body :is(.game-header, .story-header, .top-nav, .eg-bar) { row-gap: 6px; }
  body .story-header .nav-book-cluster, body .story-header .nav-station-cluster { flex: 1 1 100%; order: 90; }
  body .story-header .nav-station-cluster { order: 91; }
  body #bookPicker { order: 90; flex: 1 1 42%; }
  body #scenePicker { order: 91; flex: 1 1 42%; }
  body #btnRandomScene { order: 92; }
  body :is(#hsToggle, #btnOpenRapidReview, .game-header .mode-toggle, .game-header .diff-toggle) { order: 95; }
  body :is(.game-header .lang-picker, .story-header .lang-toggle-group, .top-nav .lang-switcher) { order: 99; margin-left: auto; }
}
@media (min-width: 761px) {
  /* Desktop: möglichst eine Zeile; bei Platzmangel bricht die Leiste um statt zu quetschen */
  body :is(.game-header, .story-header, .top-nav, .eg-bar) { flex-wrap: wrap; }
}

/* ══ Museum: alle Bedienelemente in der Werkzeugleiste ═══════════════════════════════════════════════════════════════ */
body .top-nav .tb-search-group { display: contents !important; }
body .top-nav .search-input-wrapper { order: 2; flex: 1 1 150px; max-width: 210px; min-width: 110px; position: relative; margin: 0 !important; }
body .top-nav .search-input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px 0 36px !important; border: 1px solid var(--tb-line) !important; border-radius: 50px !important;
  background: var(--tb-sel) !important; color: var(--tb-fg) !important; font: 700 14px var(--tb-serif) !important; box-shadow: none !important; }
body .top-nav .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }
body .top-nav .book-select { box-sizing: border-box; order: 3; flex: 0 1 120px; min-width: 0; max-width: none !important; height: 40px !important; padding: 4px 14px !important; margin: 0 !important;
  border: 1px solid var(--tb-line) !important; border-radius: 50px !important; background: var(--tb-sel) !important; color: var(--tb-fg) !important; font: 700 14px var(--tb-serif) !important; box-shadow: none !important; }
body .top-nav #epochFilter { order: 4; } body .top-nav #qualityFilter { order: 5; }
body .top-nav #btnOpenRapidReview { order: 20; }
body .top-nav .display-mode-switch { order: 25; display: inline-flex !important; align-items: center; gap: 2px; padding: 2px !important; margin: 0 !important; height: 40px; box-sizing: border-box;
  border: 1px solid var(--tb-line) !important; border-radius: 50px !important; background: var(--tb-btn) !important; }
body .top-nav .display-switch-btn { height: 34px !important; min-width: 34px; padding: 0 11px !important; margin: 0 !important; border: 0 !important; border-radius: 50px !important; background: transparent !important;
  color: var(--tb-fg2) !important; font: 700 15px/1 var(--tb-serif) !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: none !important; }
body .top-nav .display-switch-btn.active { background: var(--tb-on) !important; color: #fff !important; }
body .top-nav #btnExportRatings { order: 26; }
body .top-nav .theme-toggle { order: 40; box-sizing: border-box; width: 40px !important; height: 40px !important; min-width: 40px; padding: 0 !important; border-radius: 50px !important;
  border: 1px solid var(--tb-line) !important; background: var(--tb-btn) !important; font-size: 17px !important; }
body .top-nav .lang-switcher { order: 50; }
/* zweite Zeile: Kategorien + Sonderausstellungen */
body .top-nav .tb-row2 { order: 100; flex: 1 1 100%; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0 !important; padding-top: 2px; }
body .top-nav .tb-row2 :is(.category-tabs, .exhibitions-bar) { display: flex !important; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body .top-nav .tb-row2 :is(.cat-tab, .exhibition-pill, .btn-tour-play) { height: 34px; padding: 0 12px !important; border-radius: 50px !important; border: 1px solid var(--tb-line) !important; background: var(--tb-btn) !important;
  color: var(--tb-fg2) !important; font: 700 12.5px var(--tb-serif) !important; cursor: pointer; box-shadow: none !important; margin: 0 !important; white-space: nowrap; }
body .top-nav .tb-row2 :is(.cat-tab, .exhibition-pill, .btn-tour-play):hover { color: var(--tb-on) !important; border-color: var(--tb-gold) !important; background: var(--tb-hl) !important; }
body .top-nav .tb-row2 :is(.cat-tab.active, .exhibition-pill.active, .btn-tour-play.playing) { background: var(--tb-on) !important; border-color: var(--tb-on) !important; color: #fff !important; }
body .top-nav .tb-row2 > * > * { flex: 0 0 auto; }
body .top-nav .tb-row2 #btnStartTour { margin-left: auto !important; }
@media (min-width: 761px) { body .top-nav { flex-wrap: wrap !important; } }
@media (max-width: 760px) {
  body .top-nav .search-input-wrapper { order: 90; flex: 1 1 100%; max-width: none; }
  body .top-nav #bookFilter { order: 91; flex: 1 1 100%; }
  body .top-nav #epochFilter { order: 92; flex: 1 1 40%; }
  body .top-nav #qualityFilter { order: 93; flex: 1 1 40%; }
  body .top-nav .display-mode-switch { order: 95; }
  body .top-nav #btnExportRatings { order: 96; }
  body .top-nav .tb-row2 > * > * { flex: 0 0 auto; }
}

body .top-nav .lang-switcher { margin-left: 0; }

/* Museum: Exponate + Sonderausstellungen als Dropdowns; die ursprünglichen Knopfleisten bleiben als Logik im DOM, aber unsichtbar */
body .top-nav .tb-row2 { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 8px; }
body .top-nav .tb-row2 :is(#categoryTabs, #exhibitionsBar) { display: none !important; }
body .top-nav .tb-row2 :is(#categorySelect, #exhibitionSelect) { order: 0; flex: 0 1 240px; }
body .top-nav .tb-row2 #btnStartTour { margin-left: auto !important; order: 3; }
@media (max-width: 760px) { body .top-nav .tb-row2 :is(#categorySelect, #exhibitionSelect) { flex: 1 1 100%; } body .top-nav .tb-row2 #btnStartTour { flex: 1 1 100%; margin-left: 0 !important; } }

/* ══ Global einheitlich: Hell/Dunkel-Knopf, Würfel, Museum ohne Kopfbereich ═══════════════════════════════════════════ */
body :is(.game-header, .story-header, .top-nav, .eg-bar) .theme-toggle {
  order: 40; box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px !important; height: 40px !important; min-width: 40px !important; padding: 0 !important; margin: 0 !important; border-radius: 50px !important;
  border: 1px solid var(--tb-line) !important; background: var(--tb-btn) !important; font-size: 17px !important; line-height: 1; cursor: pointer;
}
body :is(.game-header, .story-header, .top-nav, .eg-bar) .theme-toggle:hover { border-color: var(--tb-gold) !important; background: var(--tb-hl) !important; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .theme-toggle :is(.tt-sun, .tt-moon, .tt-knob) { display: none !important; }
body #btnRandomArtifact { order: 6; width: 40px; padding: 0 !important; font-size: 18px !important; }

/* ☰ Werkzeug-Drawer-Knopf (tools-drawer.js) — gleiche Optik wie die übrigen Leistenknöpfe, ganz rechts */
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-menu-toggle {
  order: 60; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; height: 40px; min-width: 40px; padding: 0 12px; margin: 0;
  border: 1px solid var(--tb-line); border-radius: 50px; background: var(--tb-btn); color: var(--tb-fg); font: 700 20px/1 var(--tb-serif); cursor: pointer;
}
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-menu-toggle:hover { color: var(--tb-on); border-color: var(--tb-gold); background: var(--tb-hl); }

/* A− A+ / ▶− ▶+ (eg-textctl.js) — Pillengruppen wie im Leser, vor Hell/Dunkel; schmal nur im ☰-Drawer */
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl { display: inline-flex; align-items: center; height: 40px; box-sizing: border-box; border: 1px solid var(--tb-line); border-radius: 50px; overflow: hidden; background: var(--tb-btn); flex: 0 0 auto; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-zoomctl { order: 36; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ratectl { order: 37; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl button { height: 38px; min-width: 38px; padding: 0 9px; border: 0; background: transparent; color: var(--tb-fg2); font: 700 15px var(--tb-serif); cursor: pointer; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl button + button { border-left: 1px solid var(--tb-line); }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl button:hover { color: var(--tb-on); background: var(--tb-hl); }
@media (max-width: 760px) { body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl { display: none; } }

/* ══ EGBar (eg-bar.js): gleiche Elemente auf ALLEN Seiten – 🏠 · 📜 📖 🏛️ 🧩 👤 · DE EN ZH ══════════════════════════════════════ */
.eg-legacy { display: none !important; }
body .eg-bar .eg-home, body .eg-bar .eg-nav {
  box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto; height: 40px !important; min-width: 40px; padding: 0 !important; margin: 0;
  border: 1px solid var(--tb-line) !important; border-radius: 50px !important; background: var(--tb-btn) !important; color: var(--tb-fg2) !important;
  font: 700 18px/1 var(--tb-serif) !important; text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
body .eg-bar .eg-home:hover, body .eg-bar .eg-nav:hover { color: var(--tb-on) !important; border-color: var(--tb-gold) !important; background: var(--tb-hl) !important; }
body .eg-bar .eg-home.on, body .eg-bar .eg-nav.on { background: var(--tb-on) !important; border-color: var(--tb-on) !important; color: #fff !important; cursor: default; }
body .eg-bar .eg-home { order: 1; }
body .eg-bar .eg-nav[data-k="journey"] { order: 9; margin-left: auto; }
body .eg-bar .eg-nav[data-k="reader"] { order: 10; }
body .eg-bar .eg-nav[data-k="story"] { order: 11; }
body .eg-bar .eg-nav[data-k="museum"] { order: 12; }
body .eg-bar .eg-nav[data-k="game"] { order: 13; }
body .eg-bar .eg-nav[data-k="bibliographies"] { order: 14; }
body .eg-bar .eg-nav[data-k="videos"] { order: 15; }
body .eg-bar .eg-nav[data-k="academy"] { order: 16; }
body .eg-bar .eg-nav[data-k="material"] { order: 17; }
body .eg-bar .eg-lang { order: 50; display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 2px; box-sizing: border-box; flex: 0 0 auto; border: 1px solid var(--tb-line); border-radius: 50px; background: var(--tb-btn); }
body .eg-bar .eg-lang button { height: 34px; min-width: 34px; padding: 0 12px; border: 0; border-radius: 50px; background: transparent; color: var(--tb-fg2); font: 700 14px/1 var(--tb-serif); cursor: pointer; }
body .eg-bar .eg-lang button.on { background: var(--tb-on); color: #fff; }
body .eg-bar .theme-toggle { order: 40; }

/* Startseite: Leiste oben, Seiteninhalt darunter */
body > header.eg-bar { position: sticky; top: 0; z-index: 800; width: 100%; box-sizing: border-box; }
.theme-toggle-fixed.eg-legacy { display: none !important; }

/* Leser: die Leiste sitzt in .topBar (eigener Hintergrund/Schatten) → keine doppelte Fläche; Reihenfolge der Leser-Elemente */
.v2-top.eg-bar { background: transparent !important; box-shadow: none !important; border: 0 !important; backdrop-filter: none !important; min-height: 0 !important; flex-wrap: nowrap; }
.v2-top.eg-bar > .sp { display: none !important; }
.v2-top.eg-bar > .v2-chapter-nav { order: 2; }
.v2-top.eg-bar > #audioStatus { order: 20; }
.v2-top.eg-bar > #narrativePanelBtn { order: 21; }
.v2-top.eg-bar > #searchToggle { order: 22; }
.v2-top.eg-bar > #learnModeToggle { order: 23; }
.v2-top.eg-bar > #marksLink { order: 24; }
.v2-top.eg-bar > #v2MenuToggle { order: 60; }
.v2-top.eg-bar > .v2-chapter-nav { display: flex !important; align-items: center; gap: 4px; flex: 0 1 430px; min-width: 250px; }
.v2-top.eg-bar > .v2-chapter-nav select { flex: 1 1 0; min-width: 0; width: auto !important; max-width: none !important; }
.v2-top.eg-bar > .v2-chapter-nav button { flex: 0 0 auto; width: 34px; }
@media (max-width: 760px) { .v2-top.eg-bar > .v2-chapter-nav { flex: 1 1 100%; order: 90; } .v2-top.eg-bar { flex-wrap: wrap !important; } }
/* Alte, seitenspezifische Duplikate sicher ausblenden (muss die display:inline-flex !important-Regeln der Seiten schlagen) */
html body .eg-legacy.eg-legacy, html body .eg-bar .eg-legacy, html body :is(.game-header, .story-header, .top-nav) .eg-legacy, html body :is(.game-header, .story-header, .top-nav) > .eg-legacy { display: none !important; }

/* Museum, zweite Zeile: Suche · Buch · Epoche · Qualität · Exponate · Sonderausstellung · Tour */
body .top-nav .tb-row2 .search-input-wrapper { order: 1; flex: 1 1 220px; max-width: 320px; }
body .top-nav .tb-row2 #bookFilter { order: 2; flex: 1 1 150px; }
body .top-nav .tb-row2 #epochFilter { order: 3; flex: 1 1 150px; }
body .top-nav .tb-row2 #qualityFilter { order: 4; flex: 1 1 150px; }
body .top-nav .tb-row2 #categorySelect { order: 5; flex: 1 1 170px; }
body .top-nav .tb-row2 #exhibitionSelect { order: 6; flex: 1 1 170px; }
body .top-nav .tb-row2 #btnStartTour { order: 7; }

body .story-header .nav-book-cluster { flex: 0 1 220px; min-width: 170px; }
body .story-header .nav-station-cluster { flex: 0 1 320px; min-width: 210px; }
body #bookPicker { flex: 0 1 170px; min-width: 120px; }
body #scenePicker { flex: 0 1 240px; min-width: 150px; }
body .story-header .nav-book-cluster { flex: 0 1 180px; min-width: 130px; }
body .story-header .nav-station-cluster { flex: 0 1 270px; min-width: 190px; }
body #bookPicker { flex: 0 1 140px; min-width: 100px; }
body #scenePicker { flex: 0 1 190px; min-width: 130px; }
body .game-header :is(.mode-toggle, .diff-toggle) .toggle-opt { min-width: 30px !important; padding: 0 8px !important; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) { gap: 6px !important; }
body .eg-bar .eg-lang button { padding: 0 10px; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl button { min-width: 34px; padding: 0 7px; }

/* ══ Gleiches Verhalten auf allen Seiten: Leiste bleibt IMMER oben stehen (sticky), nimmt Platz im Fluss ein (überdeckt keinen Text) ═══════════ */
body :is(.game-header, .story-header, .top-nav, header.eg-bar):not(.v2-top) { position: sticky !important; top: 0 !important; z-index: 850 !important; }
.v2-top.eg-bar { position: static !important; }                       /* Leser: sitzt in .topBar (fixed, eigenes Polster) */

/* Handy (≤760 px): EINE Zeile, seitlich wischbar – bleibt kompakt (56 px) statt 3–5 Zeilen Text zu überdecken */
@media (max-width: 760px) {
  /* Navigation direkt nach 🏠 (auf dem Handy wichtigster Teil), danach Kontext, Werkzeuge, Anzeige */
  body .eg-bar .eg-nav[data-k="reader"] { order: 2 !important; margin-left: 0 !important; } body .eg-bar .eg-nav[data-k="story"] { order: 3 !important; } body .eg-bar .eg-nav[data-k="museum"] { order: 4 !important; } body .eg-bar .eg-nav[data-k="game"] { order: 5 !important; } body .eg-bar .eg-nav[data-k="bibliographies"] { order: 6 !important; } body .eg-bar .eg-nav[data-k="videos"] { order: 7 !important; } body .eg-bar .eg-nav[data-k="academy"] { order: 8 !important; } body .eg-bar .eg-nav[data-k="journey"] { order: 2 !important; margin-left: 0 !important; } body .eg-bar .eg-nav[data-k="material"] { order: 9 !important; }
  body :is(.game-header, .story-header, .top-nav, .eg-bar) { flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-height: 56px !important; align-items: center !important; }
  body :is(.game-header, .story-header, .top-nav, .eg-bar)::-webkit-scrollbar { display: none; }
  body :is(.game-header, .story-header, .top-nav, .eg-bar) > * { flex: 0 0 auto !important; min-width: auto; }
  body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl { display: inline-flex !important; }          /* A−A+/▶−▶+ auch auf dem Handy in der Leiste */
  /* Kontext-Auswahl: feste Breiten, direkt nach 🏠 (Reihenfolge wie am Desktop) */
  body .story-header .nav-book-cluster { order: 12 !important; flex: 0 0 200px !important; min-width: 200px !important; }
  body .story-header .nav-station-cluster { order: 13 !important; flex: 0 0 290px !important; min-width: 290px !important; }
  body #bookPicker { order: 12 !important; flex: 0 0 150px !important; min-width: 150px !important; }
  body #scenePicker { order: 13 !important; flex: 0 0 190px !important; min-width: 190px !important; }
  body #btnRandomScene { order: 14 !important; }
  body .top-nav .tb-row2 { display: contents !important; }
  body .top-nav .search-input-wrapper { order: 12 !important; flex: 0 0 200px !important; max-width: none; }
  body .top-nav :is(#bookFilter, #epochFilter, #qualityFilter, #categorySelect, #exhibitionSelect) { flex: 0 0 160px !important; min-width: 160px !important; }
  body .top-nav #bookFilter { order: 13 !important; } body .top-nav #epochFilter { order: 14 !important; } body .top-nav #qualityFilter { order: 15 !important; }
  body .top-nav #categorySelect { order: 16 !important; } body .top-nav #exhibitionSelect { order: 17 !important; } body .top-nav #btnStartTour { order: 18 !important; flex: 0 0 auto !important; margin-left: 0 !important; }
  body .top-nav #btnRandomArtifact { order: 19 !important; }
  body :is(.game-header .lang-picker, .story-header .lang-toggle-group, .top-nav .lang-switcher) { margin-left: 0 !important; }
  body :is(#hsToggle, #btnOpenRapidReview, .game-header .mode-toggle, .game-header .diff-toggle, .top-nav .display-mode-switch, #btnExportRatings) { order: 20 !important; }
  .v2-top.eg-bar { overflow-x: auto !important; flex-wrap: nowrap !important; }
  .v2-top.eg-bar > .v2-chapter-nav { order: 12 !important; flex: 0 0 300px !important; }
}
/* overflow-x:hidden am body macht ihn zum Scroll-Container → position:sticky der Leiste greift nicht mehr. clip schneidet gleich, erzeugt aber keinen Container. */
html body { overflow-x: clip !important; }

/* ══ Einheitliche Maße (Messung 1280 px): Leiste 64 px, alle Bedienelemente 40 px hoch, gleiche Abstände – auch im Leser ═════════════════════════ */
.v2-top.eg-bar { min-height: 64px !important; padding: 12px 12px !important; align-items: center !important; }
.v2-top.eg-bar :is(.v2-quick, .v2-menu-toggle, #learnModeToggle, #marksLink, #searchToggle, #narrativePanelBtn, #audioStatus):not(.eg-legacy) {
  box-sizing: border-box; height: 40px !important; min-height: 40px !important; min-width: 40px !important; padding: 0 12px !important; display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 50px !important; font: 700 18px/1 var(--tb-serif) !important; margin: 0 !important; }
.v2-top.eg-bar .v2-menu-toggle { min-width: 44px !important; font-size: 20px !important; }
.v2-top.eg-bar #audioStatus { font-size: 14px !important; padding: 0 14px !important; }
.v2-top.eg-bar .v2-chapter-nav { gap: 6px !important; }
.v2-top.eg-bar .v2-chapter-nav select { box-sizing: border-box; height: 40px !important; min-height: 40px !important; border-radius: 50px !important; padding: 4px 14px !important; font: 700 14px var(--tb-serif) !important; }
.v2-top.eg-bar .v2-chapter-nav #bookSel { flex: 0 1 150px !important; min-width: 110px; }
.v2-top.eg-bar .v2-chapter-nav #chSel { flex: 0 1 100px !important; min-width: 80px; }
.v2-top.eg-bar .v2-chapter-nav button { height: 40px !important; width: 34px !important; border-radius: 50px !important; }
/* Auswahlfelder der Kontext-Zeile: gleiche Breiten (Buch 150, Eintrag 230) */
body #bookPicker { flex: 0 1 150px; } body #scenePicker { flex: 0 1 230px; }
body .story-header .nav-book-cluster { flex: 0 1 220px; } body .story-header .nav-station-cluster { flex: 0 1 330px; }
/* Gedockte Detail-Leiste (Museum/Erzählung): die Kopfleiste reicht immer über die volle Fensterbreite */
@media (min-width: 881px) {
  body.eg-dock-open .top-nav { margin-right: calc(-1 * clamp(280px, var(--aside-w, 380px), 640px)); width: calc(100% + clamp(280px, var(--aside-w, 380px), 640px)); box-sizing: border-box; }
}

html body .v2-top.eg-bar .eg-legacy.eg-legacy.eg-legacy { display: none !important; }

/* Feinabgleich der rechten Gruppe (☰ · Sprache · Hell/Dunkel · ▶−▶+ · A−A+) – identische Breiten auf allen Seiten */
body :is(.game-header, .story-header, .top-nav, .eg-bar) .eg-ctl button { box-sizing: border-box !important; width: 36px !important; min-width: 36px !important; padding: 0 !important; font: 700 15px/1 var(--tb-serif) !important; }
body :is(.game-header, .story-header, .top-nav, .eg-bar) :is(.eg-menu-toggle, #v2MenuToggle) { box-sizing: border-box !important; width: 44px !important; min-width: 44px !important; height: 40px !important; padding: 0 !important; font-size: 20px !important; }
body .eg-bar .eg-lang button { box-sizing: border-box; min-width: 38px; padding: 0 9px; font: 700 14px/1 var(--tb-serif); }
/* Szenen-Detektiv hat zusätzliche Seitenwerkzeuge → schmalere Auswahlfelder, damit alles in EINER Zeile bleibt */
body #bookPicker { flex: 0 1 120px; min-width: 100px; } body #scenePicker { flex: 0 1 170px; min-width: 130px; }
/* Leser: ☰ exakt wie auf den anderen Seiten (die Sammelregel oben enthält ID-Selektoren und gewinnt sonst) */
.v2-top.eg-bar.eg-bar.eg-bar.eg-bar.eg-bar #v2MenuToggle { box-sizing: border-box !important; width: 44px !important; min-width: 44px !important; height: 40px !important; padding: 0 !important; font-size: 20px !important; flex: 0 0 auto !important; }

/* weitere Sprachen (Sprachpakete) – Auswahl neben DE EN ZH (eg-bar.js / tools-drawer.js) */
body .eg-bar .eg-more { order: 51; height: 40px; max-width: 110px; padding: 0 8px; border: 1px solid var(--tb-line); border-radius: 50px; background: var(--tb-btn); color: var(--tb-fg2); font: 700 13px/1 var(--tb-serif); cursor: pointer; }
.eg-drawer-seg .eg-more { margin-left: 6px; padding: 6px 8px; border-radius: 8px; font: inherit; }


/* ══ Runde 3 (2026-10-10): sieben Portal-Symbole + Zusatzwerkzeuge → Leiste bleibt EINE Zeile ════════════════════════════════════════════════════
   Nicht umbrechen (Umbruch ließ Sprache/☰ in eine zweite Zeile fallen), sondern Auswahlfelder schrumpfen lassen; reicht der Platz trotzdem nicht
   (schmale Fenster, Leser mit vielen Werkzeugen), wird die Zeile seitlich wischbar – wie auf dem Handy. Das Museum behält seine zweite Filterzeile. */
body :is(.game-header, .story-header, header.eg-bar):not(.top-nav) { flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; }
body :is(.game-header, .story-header, header.eg-bar):not(.top-nav)::-webkit-scrollbar { display: none; }
body :is(.game-header, .story-header, header.eg-bar):not(.top-nav) > * { flex-shrink: 0; }
body #bookPicker { flex: 0 1 120px !important; min-width: 84px !important; } body #scenePicker { flex: 0 1 170px !important; min-width: 100px !important; }
body .story-header .nav-book-cluster { flex: 0 1 200px !important; min-width: 128px !important; flex-shrink: 1 !important; }
body .story-header .nav-station-cluster { flex: 0 1 300px !important; min-width: 170px !important; flex-shrink: 1 !important; }
.v2-top.eg-bar .v2-chapter-nav { flex-shrink: 1 !important; }
body .story-header .narrative-select, body .game-header .scene-select { min-width: 0 !important; }
/* Nav-Gruppe (7 Portale) enger setzen, damit mehr Platz bleibt */
body .eg-bar .eg-nav { min-width: 38px; width: 38px; }
/* Seitenwerkzeug „Details“ (Sprachkurs) wie die anderen Werkzeuge: nur Symbol, hinter den Portalen */
body .story-header #detailToggleBtn { order: 20; }
body .detail-toggle-label, body .hs-toggle-label { display: none !important; }
.v2-top.eg-bar .v2-chapter-nav { min-width: 220px !important; }
.v2-top.eg-bar .v2-chapter-nav #bookSel { flex: 0 1 130px !important; min-width: 90px !important; } .v2-top.eg-bar .v2-chapter-nav #chSel { flex: 0 1 90px !important; min-width: 70px !important; }

/* ── Atlas (atlas-v2/index.html): Suchfeld = Seitenkontext, „Über den Atlas“ = Seitenwerkzeug ─────────────────────────────────────────────── */
.topbar.eg-bar { min-height: 64px !important; }
.topbar.eg-bar .top-actions { display: contents !important; }
.topbar.eg-bar label.search-box { order: 2; flex: 0 1 280px; min-width: 150px; box-sizing: border-box; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; margin: 0;
  border: 1px solid var(--tb-line); border-radius: 50px; background: var(--tb-sel); color: var(--tb-fg2); }
.topbar.eg-bar label.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--tb-fg); font: 700 14px var(--tb-serif); }
.topbar.eg-bar #aboutButton { order: 20; box-sizing: border-box; height: 40px; padding: 0 14px; border: 1px solid var(--tb-line); border-radius: 50px; background: var(--tb-btn); color: var(--tb-fg2); font: 700 14px var(--tb-serif); cursor: pointer; white-space: nowrap; }
.topbar.eg-bar #aboutButton:hover { color: var(--tb-on); border-color: var(--tb-gold); background: var(--tb-hl); }
.topbar.eg-bar .theme-toggle { order: 40; }

/* Hell/Dunkel-Symbol auch dort, wo ../theme.css nicht geladen ist (Atlas) */
.eg-bar .theme-toggle::before { content: '☀️'; } body.dark .eg-bar .theme-toggle::before { content: '🌙'; }
/* Museum, Zeile 2: Filter bleiben in EINER Zeile (schmalere Basisbreiten) */
body .top-nav .tb-row2 .search-input-wrapper { flex: 1 1 200px; max-width: 280px; }
body .top-nav .tb-row2 :is(#bookFilter, #epochFilter, #qualityFilter, #categorySelect, #exhibitionSelect) { flex: 1 1 120px; min-width: 100px; }
.v2-top.eg-bar .v2-chapter-nav { min-width: 262px !important; }
.v2-top.eg-bar .v2-chapter-nav #bookSel { flex: 0 1 150px !important; min-width: 105px !important; } .v2-top.eg-bar .v2-chapter-nav #chSel { flex: 0 1 100px !important; min-width: 80px !important; }


/* ══ Seitenleisten (Detail-Panels): überall gleiche Optik, dauerhaft sichtbar, nicht schließbar ═══════════════════════════════════════════════
   Vorlage: Leser (aside: Linie links, halbtransparenter Papiergrund). Schließen-Knöpfe/Laschen entfallen; Handy: nur auf den Streifen einklappbar. */
body { --eg-panel-bg: rgba(255,253,249,.6); --eg-panel-line: #e3d8c6; --eg-panel-fg: #241c12; --eg-panel-fg2: #6a5a48; }
body.dark { --eg-panel-bg: rgba(36,36,40,.72); --eg-panel-line: #3a3a42; --eg-panel-fg: #ece3d2; --eg-panel-fg2: #b9ad9a; }
#sdClose, .sd-tab, #detailToggleBtn, #closeDrawer, .modal-overlay.eg-dockwrap .modal-close-btn { display: none !important; }
@media (min-width: 881px) {
  body :is(#storyDetail, #detailDrawer, .sidebar-panel, .modal-overlay.eg-dockwrap .modal-content) { background: var(--eg-panel-bg) !important; border: 0 !important; border-left: 1px solid var(--eg-panel-line) !important; box-shadow: none !important; border-radius: 0 !important; color: var(--eg-panel-fg); }
  body .sidebar-panel { border-radius: 0 !important; padding: 14px; }
}
/* gleicher Kopf in allen Seitenleisten: Titel 15 px fett, Linie darunter, ohne Schließen */
body :is(#storyDetail .sd-head, #detailDrawer .drawer-head) { padding: 14px 18px !important; min-height: 56px; box-sizing: border-box; border-bottom: 1px solid var(--eg-panel-line) !important; background: transparent !important; align-items: center; }
body :is(#storyDetail .sd-head strong, #detailDrawer .drawer-heading strong) { font: 700 15px/1.3 var(--tb-serif, "Noto Serif", serif) !important; color: var(--eg-panel-fg) !important; }
body #detailDrawer .drawer-heading span { font: 12px/1.3 var(--tb-serif, "Noto Serif", serif); color: var(--eg-panel-fg2); }
/* Museum: Leerzustand der dauerhaften Leiste */
.eg-empty { display: none; }
.modal-overlay.eg-dockwrap .modal-content.eg-empty-state > :not(.eg-gutter):not(.eg-handle):not(.eg-empty) { display: none !important; }
.modal-overlay.eg-dockwrap .modal-content.eg-empty-state > .eg-empty { display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 24px; text-align: center; color: var(--eg-panel-fg2); font: 700 15px/1.5 var(--tb-serif, "Noto Serif", serif); }

/* Aufklapp-Untermenü der Kopfleiste (eg-bar.js) */
.eg-sub { position: fixed; z-index: 10000; min-width: 200px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 6px; border: 1px solid var(--tb-line, #e3d8c6); border-radius: 14px; background: var(--tb-btn, #fffdf9); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.eg-sub[hidden] { display: none !important; }
.eg-sub a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--tb-fg2, #6a5a48); text-decoration: none; font: 700 15px/1.2 var(--tb-serif, Georgia, serif); }
.eg-sub a:hover { background: var(--tb-hl, #fff3cf); color: var(--tb-on, #b30000); }
.eg-sub a.on { background: var(--tb-on, #b30000); color: #fff; }
.eg-sub a span { font-size: 18px; }
/* Optionen aus EGBar.init: Seiten ohne Vorlesen zeigen kein ▶− ▶+ */
body header.eg-bar.eg-no-rate .eg-ratectl { display: none !important; }
body header.eg-bar.eg-no-zoom .eg-zoomctl { display: none !important; }
body header.eg-bar.eg-no-lang :is(.eg-lang, .eg-more) { display: none !important; }
/* std:true – einheitliche Reihenfolge auf allen angebundenen Seiten:
   🏠 · Seitentitel/-kontext · Navigation · Seitenwerkzeuge · A− A+ · ▶− ▶+ · ☀/🌙 · Sprache · ☰ */
body header.eg-bar.eg-std > :is(h1, .eg-ctx, .eg-page-title) { order: 2; }
body header.eg-bar.eg-std > :not(:is(h1, .eg-ctx, .eg-page-title, .eg-home, .eg-nav, .eg-ctl, .theme-toggle, .eg-lang, .eg-more, .eg-menu-toggle, .sp)) { order: 30; }
body header.eg-bar.eg-std > .sp { display: none; }
/* Handy: wie in der übrigen Leiste zuerst 🏠 + Navigation, Seitentitel/-kontext danach (wischbar) */
@media (max-width: 760px) { body header.eg-bar.eg-std > :is(h1, .eg-ctx, .eg-page-title) { order: 90 !important; } }
