/* otzar — Raycast/Cloudflare-Mix layout (M3.43+).
 *
 * Design notes:
 *   - Near-black background, layered card surfaces (bg / soft / card / elev).
 *   - Cyan→Indigo gradient as identity color (Sigle-Blocks, accent rails).
 *   - Three font families: Inter (UI), JetBrains Mono (codes), Gentium Plus (Greek/Heb).
 *   - Three-column layout for pericopes (Tree | Doc | Mini-TOC).
 *   - Sticky top-bar with central Cmd+K palette + action icons.
 *   - Lots of breathing room; subtle 1px rules; rounded corners 6-14px.
 */

:root {
  /* Surface scale — 4 layers from deepest to most elevated */
  --bg:        #08070a;
  --bg-soft:   #0e0d12;
  --bg-card:   #14131a;
  --bg-elev:   #1a1922;
  --bg-code:   #1a1922;

  /* Text scale — 4 contrasts */
  --fg:        #e6e6e8;     /* body */
  --fg-strong: #ffffff;     /* headings */
  --fg-soft:   #9ea0a6;     /* captions, secondary nav (alias muted) */
  --fg-muted:  #9ea0a6;
  --muted:     #9ea0a6;
  --fg-faint:  #61626b;     /* tertiary, mono-codes */

  /* Rules + accents — Gold-Doktrin (Cliart 2026-05-24): Gold ist
     Hauptakzent. Indigo bleibt als Sekundaerton fuer Hover/Links,
     Blau-Royal (--c-blue-m) als Hilfsakzent fuer CTA-Aktionen. */
  --rule:      #25232b;
  --rule-soft: #1f1e26;
  --accent:    #d4af37;     /* Gold — primary identity */
  --accent-l:  #f0c674;     /* helleres Gold fuer Hover */
  --accent-2:  #00d4aa;     /* Cyan — counts, eyebrow (Status, nicht Markup) */
  --accent-3:  #d4af37;     /* alias = accent */
  --c-blue:    #1e3a8a;     /* Royal-Blau — sekundaer, CTA-Aktionen */
  --c-blue-m:  #3b82f6;
  --gradient:  linear-gradient(135deg, #d4af37 0%, #f0c674 100%);

  /* Misc */
  --kbd-bg:    #2b2a32;
  --link:      #f0c674;
  --link-hov:  #d4af37;
  --pill-bd:   rgba(255,255,255,0.18);
  --pill-bg:   rgba(255,255,255,0.04);
  --pill-bg-h: rgba(255,255,255,0.10);
  --max-w:     78rem;
  --pad-x:     2rem;

  /* Font stacks */
  --serif:     "Gentium Plus", "Cardo", "EB Garamond", "Linux Libertine", Georgia, serif;
  --sans:      "Inter", -apple-system, "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono:      "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;

  /* --- Redesign-Port (2026-06): App-Shell-Token-Alias-Layer ---
     Die dunkle Gold-Palette oben deckt die Identitaet bereits; hier nur
     die vom Dark-Prototyp erwarteten NAMEN ergaenzen/aliasen, damit die
     neuen .app/.sidebar/.ws-*/.ac-*/.card-Komponenten 1:1 uebernehmbar
     sind, ohne die bestehenden .otzar-*-Regeln zu beruehren. Aliase
     referenzieren themen-ueberschriebene Basis-Tokens und folgen daher
     Light/Dark automatisch. */
  --faint:       var(--fg-faint);                 /* Alias */
  --cyan:        var(--accent-2);                 /* Alias (Status-Cyan) */
  --blue:        var(--c-blue-m);                 /* Alias */
  --grad:        var(--gradient);                 /* Alias */
  --line:        var(--rule);                     /* Bugfix: trainer.css referenziert --line */
  --bg-hover:    #1c1b24;                          /* Nav-/Menue-Hover (dark) */
  --accent-dim:  rgba(212,175,55,.13);             /* aktiver Nav-/Switcher-Ton (dark) */
  --sb-w:        250px;                             /* App-Sidebar-Breite */
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.02), 0 2px 14px -8px rgba(0,0,0,.6);
}

/* Light-Mode-Overrides — aktiviert via data-theme="light" auf <html>.
 * Hellgrau, Indigo-Akzent, gedaempfte Regeln. Konsistent mit dunklem Schema
 * — gleicher Indigo-Identitaetston, anderes Surface. */
:root[data-theme="light"] {
  --bg:        #fafaf7;
  --bg-soft:   #f3f2ef;
  --bg-card:   #ffffff;
  --bg-elev:   #ffffff;
  --bg-code:   #f5f5f3;
  --fg:        #1a1a1c;
  --fg-strong: #000000;
  --fg-soft:   #5a5a5c;
  --fg-muted:  #6a6a6c;
  --muted:     #6a6a6c;
  --fg-faint:  #9a9a9c;
  --rule:      #e0dfdb;
  --rule-soft: #ecebe7;
  --accent:    #a8851f;     /* dunkleres Gold fuer Light */
  --accent-l:  #c9a242;
  --accent-2:  #0891b2;     /* Cyan (Status) bleibt */
  --accent-3:  #a8851f;
  --c-blue:    #1e3a8a;
  --c-blue-m:  #3b82f6;
  --gradient:  linear-gradient(135deg, #a8851f 0%, #c9a242 100%);
  --kbd-bg:    #ecebe7;
  --link:      #a8851f;
  --link-hov:  #6b5410;
  --pill-bd:   rgba(0,0,0,0.18);
  --pill-bg:   rgba(0,0,0,0.03);
  --pill-bg-h: rgba(0,0,0,0.08);

  /* Redesign-Port: App-Shell-Festwert-Token fuer Light (Aliase folgen automatisch) */
  --bg-hover:    #efeee9;
  --accent-dim:  rgba(168,133,31,.14);
  --shadow:      0 1px 2px rgba(40,40,45,.10), 0 8px 24px -12px rgba(40,40,45,.22);
  --shadow-soft: 0 1px 0 rgba(0,0,0,.02), 0 2px 14px -8px rgba(40,40,45,.18);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "ss01" on, "kern" on;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Headerausweich-Polster — siehe fixed header weiter unten. */
  padding-top: var(--header-h, 4.25rem);
}

/* Greek/Hebrew-Texte verwenden Gentium Plus (siehe --serif). */
[lang="grc"], [lang="el"], [lang="he"] {
  font-family: var(--serif);
  font-feature-settings: "liga" 1, "kern" 1;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--link-hov); border-bottom-color: var(--fg-soft); }

::selection { background: var(--accent); color: var(--bg); }

/* ---------------- Header (fixed + Apple Liquid-Glass) ----------------
 *
 * Festgelegt 2026-05-08 (siehe Memory `feedback_liquid_glass_header.md`):
 * - position: fixed oben, ueber den ganzen Viewport.
 * - Hintergrund halbtransparent + backdrop-filter blur+saturate gibt
 *   den iOS/macOS „Liquid Glass"-Effekt.
 * - Hauchduenne Border-Bottom + ein Highlight-Streifen oben simulieren
 *   die typische Apple-Glas-Kante.
 * - body bekommt entsprechendes padding-top (siehe oben).
 *
 * Print-Stylesheet versteckt header global ueber `display: none !important`.
 */

:root {
  --header-h: 4.25rem;
  /* Stronger glass: more opacity so scrolled-under content reads as
   * a soft blur, not as ghost letters bleeding through. */
  --glass-bg: rgba(22, 22, 24, 0.85);
  --glass-rule: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] {
  --glass-bg: rgba(250, 250, 247, 0.85);
  --glass-rule: rgba(0, 0, 0, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.55);
}

/* WICHTIG: nur der Top-Level-Header (direkter body-child) bekommt das
 * Liquid-Glass-Treatment — niemals die <header class="home-section-header">
 * innerhalb der Sections (sonst stapeln die sich alle als fixed oben
 * uebereinander und maskieren den eigentlichen Header). */
body > header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0;

  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);

  border-bottom: 1px solid var(--glass-rule);
  box-shadow:
    inset 0 1px 0 0 var(--glass-shine),
    0 10px 32px -16px rgba(0, 0, 0, 0.7);
}

/* Browser ohne backdrop-filter: vollopaker Fallback, kein Bleed-Through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body > header { background: rgba(22, 22, 24, 0.98); }
  :root[data-theme="light"] body > header { background: rgba(250, 250, 247, 0.98); }
}

/* Druck: der fixierte Liquid-Glass-Header wird ausgeblendet, damit
 * Browser-Ausdrucke (Strg+P) sauber bleiben — kein durchscheinendes
 * Glas, kein doppelter Kopf auf jeder Seite. Das WeasyPrint-PDF nutzt
 * zusaetzlich static/print.css; diese Regel deckt das Browser-Drucken
 * der normalen HTML-Seiten ab. */
@media print {
  body > header { display: none !important; }
  /* Headerausweich-Polster ist auf Papier unnoetig. */
  body { padding-top: 0 !important; }
}

.otzar-topbar {
  /* voll-Breite (Cliart 2026-05-24: „icons sprachen und anmelden
     rechts in linie mit auf der seite") — kein max-width mehr,
     damit die rechte Gruppe vertikal ueber der TOC-Sidebar haengt. */
  width: 100%;
  padding: 0.85rem var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.otzar-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--fg);
  border: none;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.otzar-logo .l1 { display: block; }
.otzar-logo .l2 {
  display: block;
  font-family: "Noto Sans Hebrew", "David", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--fg-soft);
  text-transform: none;
  margin-top: 0.1rem;
}
.otzar-logo:hover { border: none; color: var(--accent); }

.otzar-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 1rem;
  margin-right: auto; /* schiebt Icons + Sprache + Anmelden nach rechts */
}
.otzar-nav a {
  color: var(--fg-soft);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  padding: 0.4rem 0;
}
.otzar-nav a:hover { color: var(--fg); }
.otzar-nav .caret {
  font-size: 0.65rem; margin-left: 0.25rem; opacity: 0.7;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* --- Mega-Menue: Hover-Untermenue der Hauptnavigation --- */
.otzar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.otzar-nav-item > a { display: inline-flex; align-items: center; }
.otzar-nav-item:hover > a,
.otzar-nav-item:focus-within > a { color: var(--fg); }
.otzar-nav-item:hover .caret,
.otzar-nav-item:focus-within .caret { transform: rotate(180deg); opacity: 1; }

.otzar-mega {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.55rem;
  min-width: 13rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 80;
}
/* unsichtbare Bruecke ueber dem Spalt, damit der Hover nicht abreisst */
.otzar-mega::before {
  content: "";
  position: absolute;
  top: -0.6rem; left: 0; right: 0;
  height: 0.6rem;
}
.otzar-nav-item:hover .otzar-mega,
.otzar-nav-item:focus-within .otzar-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.otzar-mega .mega-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  padding: 0.3rem 0.55rem 0.45rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}
.otzar-mega a {
  border: none;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--fg-soft);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}
.otzar-mega a:hover { background: var(--bg-card); color: var(--fg); }
/* RTL (Hebraeisch): Panel rechtsbuendig oeffnen */
[dir="rtl"] .otzar-mega { left: auto; right: 0; }
/* schmale Viewports: kein Hover-Panel — die Trigger bleiben Links */
@media (max-width: 880px) { .otzar-mega { display: none; } }

/* --- Cmd+K palette button (top-bar center) --- */
.otzar-cmdk {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  min-width: 280px;
  color: var(--fg-muted);
  font-size: 0.86rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.otzar-cmdk:hover { border-color: var(--accent); background: var(--bg-elev); }
.otzar-cmdk-text { flex: 1; text-align: left; }
.otzar-cmdk-kbd {
  background: var(--kbd-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg);
}

/* ====================================================================
 * Page-Search-Bar (verschoben aus der Topbar; oben in main, ueber dem
 * Hero-Titel — Cliart 2026-05-24 „suche im korpus konnte hier sein").
 * ================================================================ */
.otzar-page-search-bar {
  /* Top-Padding gleich aside.otzar-tree { padding: 1rem } — damit die
     Page-Search-Box vertikal auf gleicher Hoehe wie das Tree-Filter
     liegt (Cliart 2026-05-24: „GANZ alignment mit Filter"). */
  padding: 1rem 1.5rem 0;
  display: flex;
  justify-content: center;
}
.otzar-page-search {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 640px;
  /* Inner-Padding gleich .otzar-tree-search { padding: 0.4rem 0.65rem }
     damit beide Eingabe-Boxen identische Hoehe haben. */
  padding: 0.4rem 0.85rem;
  background: rgba(14, 18, 28, 0.55);
  /* Feine goldene Linie — Cliart 2026-05-24 „die feine goldene linie
     fehlen in beiden felder". Border-bottom als gleiche Linie wie die
     anderen drei Seiten (override des generic a:hover border-bottom). */
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.otzar-page-search:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(14, 18, 28, 0.75);
  color: #f0c674;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}
.otzar-page-search .icn {
  width: 14px; height: 14px;
  color: #f0c674;
  flex-shrink: 0;
}
.otzar-page-search-text {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.otzar-page-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.otzar-page-search-input::placeholder { color: var(--fg-faint); }
.otzar-page-search-input:focus { color: var(--fg); }
.otzar-page-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat;
  opacity: 0.6;
  cursor: pointer;
}
.otzar-page-search-kbd {
  flex-shrink: 0;
  background: var(--kbd-bg);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
}
:root[data-theme="light"] .otzar-page-search {
  background: rgba(255, 255, 255, 0.85);
}
:root[data-theme="light"] .otzar-page-search:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* --- Top-bar action icons (page-specific: PDF, Permalink, Git, Graph) --- */
.otzar-topbar-actions {
  display: flex;
  gap: 0.15rem;
  padding: 0 0.4rem;
  border-left: 1px solid var(--rule);
  margin-left: 0.5rem;
}
.top-action {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fg-muted);
  text-decoration: none;
  position: relative;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  border-bottom: none;  /* override generic a:hover border */
}
.top-action:hover {
  background: rgba(212, 175, 55, 0.10);
  color: #f0c674;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}
.top-action svg { width: 16px; height: 16px; }
.top-action::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg-elev); color: var(--fg);
  padding: 0.3rem 0.55rem; border-radius: 4px;
  font-size: 0.74rem; white-space: nowrap;
  border: 1px solid var(--rule);
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}
.top-action:hover::after { opacity: 1; }

.otzar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* --- Globe + Dropdown language menu (top-bar) --- */

.otzar-lang-menu {
  position: relative;
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
}
.otzar-lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  user-select: none;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.otzar-lang-menu summary::-webkit-details-marker { display: none; }
.otzar-lang-menu summary:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.otzar-lang-menu[open] summary {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg-soft);
}
.otzar-lang-menu .globe-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.otzar-lang-menu .otzar-lang-current {
  font-weight: 600;
  letter-spacing: 0.08em;
}
.otzar-lang-menu .caret {
  font-size: 0.65rem;
  opacity: 0.7;
}

.otzar-lang-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 50;
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.otzar-lang-list li { padding: 0; }
.otzar-lang-list a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  border: none;
  transition: background 0.1s ease, color 0.1s ease;
}
.otzar-lang-list a:hover {
  background: var(--bg);
  color: var(--fg);
}
.otzar-lang-list a.active {
  color: var(--fg);
  background: var(--bg);
}
.otzar-lang-list a.active::after {
  content: "●";
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--accent);
  align-self: center;
}
.otzar-lang-list .lang-code {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  width: 1.5rem;
  flex-shrink: 0;
}
.otzar-lang-list .lang-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0;
}

[dir="rtl"] .otzar-lang-list { right: auto; left: 0; }

/* Top-level language picker (otzar/) */

.otzar-langpicker {
  max-width: 42rem;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.otzar-langpicker-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.otzar-langpicker-lead {
  color: var(--fg-soft);
  font-size: 1.1rem;
  margin: 0 0 3rem;
}
.otzar-langpicker-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.otzar-langpicker-grid li { background: var(--bg); }
.otzar-langpicker-grid a {
  display: block;
  padding: 1.5rem 1rem;
  border: none;
  color: var(--fg);
  text-align: center;
  transition: background 150ms ease;
}
.otzar-langpicker-grid a:hover { background: var(--bg-soft); }
.otzar-langpicker-grid .code {
  display: block;
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.otzar-langpicker-grid .name {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--pill-bd);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.pill:hover {
  background: var(--pill-bg-h);
  border-color: var(--accent);
  color: var(--accent);
}
.pill .ico {
  display: inline-block;
  width: 0.9rem; height: 0.9rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.pill .ico::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0.45);
}

/* ---------------- Main / Hero ---------------- */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--pad-x) 4rem;
}

/* Doc-Pages (Pericope, Apparatus, Manuscript, Edition, AT-Pericope)
   liefern .otzar-doc-layout — main muss dort voll-Breite werden, damit
   Tree und TOC am Browser-Rand kleben (Cliart 2026-05-24: „noch nicht
   edge-to-edge"). Innere main-Spalte (.otzar-doc-main) hat eigenen
   max-width 1200px fuer Lesbarkeit. */
main:has(.otzar-doc-layout) {
  max-width: none;
  margin: 0;
  padding: 0;
}
/* Auf Doc-Pages liegt die Page-Search jetzt INNERHALB der otzar-doc-main
   (siehe base_doc.html), damit sie vertikal genau aligned mit dem
   Tree-Filter liegt. */
.otzar-doc-main .otzar-page-search-bar--doc {
  padding: 0 0 1rem;
  justify-content: center;   /* Cliart 2026-05-24: zentralisiert, nicht links */
  margin-top: -1rem;         /* .otzar-doc-main padding-top 2rem - 1rem
                                = 1rem zum oberen Layout-Rand, gleich
                                aside.otzar-tree padding-top. */
}

/* Tree-Filter: identische Optik wie .otzar-page-search (Gold-Lupe + Text
   + Kbd-Pille), aber voll-Breite der Tree-Spalte (kein max-width). */
.otzar-page-search.otzar-page-search--tree {
  max-width: none;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}

.otzar-hero {
  padding: 4rem 0 6rem;
  position: relative;
}
.otzar-hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.otzar-hero .lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin-top: 1.5rem;
  color: var(--fg-soft);
  max-width: 36rem;
}
.otzar-hero .scroll-arrow {
  display: inline-block;
  margin-top: 3.5rem;
  font-size: 1.5rem;
  color: var(--fg-soft);
  border: 1px solid var(--rule);
  width: 2.6rem;
  height: 2.6rem;
  line-height: 2.5rem;
  text-align: center;
  border-radius: 50%;
  text-decoration: none;
}
.otzar-hero .scroll-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Hero CTA pair (Streamline-style primary + secondary) --- */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--rule);
}
.btn-secondary:hover {
  border-color: var(--fg);
}

/* --- Numbered home sections (Streamline 01/02/03 pattern) --- */

.home-section {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}
.home-section:first-of-type { border-top: none; }
.home-section-header {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.home-section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.home-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
}
.home-section .otzar-index {
  margin-left: 6.5rem;
}
.home-section-empty,
.home-section-text {
  margin-left: 6.5rem;
  color: var(--fg-soft);
}
.home-section-link {
  color: var(--fg);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.home-section-link:hover { border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .home-section-header {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .home-section .otzar-index,
  .home-section-empty,
  .home-section-text { margin-left: 0; }
}

/* ---------------- Sections / lists ---------------- */

section {
  padding: 2rem 0;
}
section + section { border-top: 1px solid var(--rule); }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h2 { font-size: 1.6rem; color: var(--fg); }
h3 { font-size: 1.2rem; color: var(--fg-soft); }
p { margin: 0.5rem 0 1rem; }

.otzar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.otzar-stats dt {
  padding: 1rem 1.25rem 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.otzar-stats dd {
  margin: 0;
  padding: 0.25rem 1.25rem 1rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--fg);
}

.otzar-index {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.otzar-index li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.otzar-index a {
  color: var(--fg);
  font-weight: 500;
  border: none;
}
.otzar-index a:hover { color: var(--accent); }
.otzar-index .summary { color: var(--muted); font-size: 0.9rem; }

/* Manuscript metadata table */

.manuscript-meta {
  display: grid;
  grid-template-columns: minmax(8rem, 0.3fr) 1fr;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.manuscript-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: center;
}
.manuscript-meta dd {
  margin: 0;
  color: var(--fg);
  font-size: 1rem;
}
.manuscript-meta a { color: var(--fg-soft); }
.manuscript-meta a:hover { color: var(--accent); }

/* --- Manuscript hero (Streamline display style) --- */

.manuscript-hero {
  padding: 3.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.manuscript-sigle {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.04em;
}
.manuscript-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
  font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: -0.01em;
}
.manuscript-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.manuscript-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0 3rem;
}
.meta-cell {
  background: var(--bg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 4rem;
}
.meta-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-value {
  font-size: 0.95rem;
  color: var(--fg);
  word-break: break-word;
}
.meta-value a { color: var(--accent); text-decoration: none; }
.meta-value a:hover { border-bottom: 1px solid var(--accent); }

/* --- Graph viewer (static SVG, dark mode) --- */

.otzar-graph { padding: 1.5rem 0 4rem; }
.graph-summary {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.graph-host {
  margin: 2rem 0;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30rem;
  padding: 1rem;
}
.graph-svg {
  width: 100%;
  max-width: 38rem;
  height: auto;
}
.graph-edge {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}
.graph-node circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.5;
  transition: fill 0.15s ease;
}
.graph-node:hover circle {
  fill: var(--accent);
}
.graph-node text {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  fill: var(--fg);
  letter-spacing: -0.01em;
  pointer-events: none;
}
.graph-empty {
  font-style: italic;
  color: var(--muted);
}
.graph-load-failed::before {
  content: "(graph data unavailable)";
  color: var(--muted);
  font-style: italic;
}
.graph-fallback {
  margin-top: 2rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}
.graph-fallback summary {
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.5rem 0;
}
.graph-fallback summary:hover { color: var(--fg); }
.graph-fallback-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}
.dot-fallback {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 1rem;
  font-size: 0.78rem;
  overflow-x: auto;
  max-height: 30rem;
}

/* Baende — 12-card grid, Brockhaus-style */

.otzar-bands {
  padding: 2rem 0 4rem;
}
.otzar-bands-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.band-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg);
  min-height: 7rem;
  transition: background 150ms ease;
}
.band-card:hover { background: var(--bg-soft); }
.band-num {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.band-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
/* OTZ-3 — Band-Grouping: live pericope counts + links per volume. */
.band-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.band-count {
  position: absolute;
  top: 0;
  right: 0;
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  color: var(--accent-2);
  border: 1px solid var(--rule);
  background: var(--bg-soft);
}
/* RTL (Hebraeisch): Badge an die Start-Kante (links) spiegeln, damit er
   nicht die Band-Nummer in der oberen Ecke ueberlappt. */
[dir="rtl"] .band-count { right: auto; left: 0; }
.band-card.has-entries { background: var(--bg-soft); }
.band-card.has-entries:hover { background: var(--bg); }
.band-entries {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.band-entries a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}
.band-entries a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------------
 * /baende/ — "Die zwölf Bände" als modernes Glas-Panel links (Volumes-Nav).
 * Referenz: Dashboard-Sidebar (Icon/Chip + Label, dezenter Active-Background).
 * CSS-only Tab-Logik: pro Band ein verstecktes Radio; die :checked-Selektoren
 * (aktives Item + sichtbares Panel) werden in wiki_bands.html generiert.
 * ------------------------------------------------------------------------- */
.vol-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.otzar-vols {
  display: grid;
  grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 0 4rem;
}
.vols-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-rule);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), inset 0 1px 0 0 var(--glass-shine);
}
.vols-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.vols-mark {
  display: inline-flex;
  width: 1.6rem; height: 1.6rem;
  color: var(--accent);
}
.vols-mark svg { width: 100%; height: 100%; }
.vols-head-t {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-strong);
}
.vols-head-n {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.vols-list { display: flex; flex-direction: column; gap: 0.15rem; }
.vol-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  cursor: pointer;
  user-select: none;
  transition: background 130ms ease;
}
.vol-item:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.vol-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vol-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem; height: 1.75rem;
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  transition: color 130ms ease, border-color 130ms ease;
}
.vol-label {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vol-count {
  flex: none;
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.66rem;
  line-height: 1;
  color: var(--accent-2);
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  background: var(--bg);
}
/* Main content column */
.vols-main { min-width: 0; }
/* override global `section`/`section + section` (padding + top rule) */
.vol-panel { display: none; flex-direction: column; gap: 1.25rem; padding: 0; border-top: 0; }
.vol-panel-head { display: flex; flex-direction: column; gap: 0.35rem; }
.vol-panel-num {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.vol-panel-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.vol-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.vol-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  background: var(--bg-soft);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 130ms ease, background 130ms ease;
}
.vol-entry:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--bg); }
.vol-entry-label { font-size: 0.92rem; }
.vol-entry-go { color: var(--muted); transition: transform 130ms ease, color 130ms ease; }
.vol-entry:hover .vol-entry-go { color: var(--accent); transform: translateX(2px); }
.vol-empty { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .otzar-vols { grid-template-columns: 1fr; gap: 1.25rem; }
  .vols-panel { position: static; }
  .vols-list { flex-flow: row wrap; }
  .vol-item { flex: 1 1 auto; }
}

/* IIIF embed in manuscript pages */

.manuscript-iiif {
  margin: 2.5rem 0;
}
.manuscript-iiif h2 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  margin-bottom: 0.6rem;
}
.iiif-note {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  margin: 0 0 1rem;
}
.iiif-frame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
}

/* Lehrpfade — curated learning paths */

.otzar-lehrpfad {
  padding: 2rem 0 4rem;
}
.otzar-lehrpfad-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.lehrpfad-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  align-items: start;
  transition: background 150ms ease;
}
.lehrpfad-step:hover { background: var(--bg-soft); }
.step-num {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.step-body { display: flex; flex-direction: column; gap: 0.4rem; }
.step-kind {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.step-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--fg);
  border: none;
  letter-spacing: -0.005em;
}
.step-link:hover { color: var(--accent); }
.step-link.unresolved { color: var(--muted); }
.step-note {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Apparatus */

.apparatus-lemma .lemma {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.5rem 0;
}
.apparatus-lemma .reference {
  color: var(--muted);
  font-size: 0.95rem;
}
.apparatus-readings table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.apparatus-readings th,
.apparatus-readings td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.apparatus-readings th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.apparatus-readings td:first-child { font-weight: 500; }

/* --- Apparatus eyebrow + reading list (Streamline-style) --- */

.apparatus-lemma { margin-bottom: 3rem; }
.apparatus-eyebrow {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.apparatus-reading-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.apparatus-reading {
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.apparatus-reading:last-child { border-bottom: 1px solid var(--rule); }
.reading-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  align-self: baseline;
}
.reading-body { min-width: 0; }
.reading-text {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--fg);
}
.reading-witnesses {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.reading-witnesses-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.4rem;
}
.witness-sigle {
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--fg-soft);
}
a.witness-link {
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
a.witness-link:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--bg-soft);
}

.manuscript-tags {
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* --- Lehrpfad hero + arrow on resolved step links --- */

.lehrpfad-hero {
  padding: 3.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lehrpfad-lead {
  max-width: 44rem;
}
.lehrpfad-meta-line {
  margin: 1rem 0 0;
}
.lehrpfad-step-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.step-arrow {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--muted);
  transition: transform 0.12s ease, color 0.12s ease;
}
a.step-link:hover .step-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* --- Login stub page --- */

.otzar-login {
  padding: 1rem 0 4rem;
  max-width: 42rem;
}
.otzar-login .lead {
  color: var(--fg-soft);
  margin-bottom: 2rem;
}
.otzar-login-providers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.login-provider {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.login-provider-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.login-provider-desc {
  font-size: 0.9rem;
  color: var(--muted);
}
.login-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Pericope (Bd 6 — Synopsis layer) --- */

.pericope-sigle {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
}
.manuscript-meta-grid.pericope-refs {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}
.pericope-synopsis { padding: 1rem 0 3rem; }
.pericope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1.5rem;
}
.pericope-cell {
  background: var(--bg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 12rem;
}
.pericope-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}
.pericope-cell-evangelist {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pericope-cell-ref {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pericope-cell-text {
  margin: 0;
  font-family: "Cardo", "EB Garamond", "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
  background: transparent;
  border: none;
  padding: 0;
}
.pericope-cell-empty {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}
.pericope-note {
  padding: 1rem 0 3rem;
  color: var(--fg-soft);
  max-width: 60rem;
}

.pericope-actions {
  margin: 1.5rem 0 0;
}
.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.pdf-button:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.pdf-icon {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Cross-Link-Button (Apparat → Synopsis und v.v.) --- */

.crosslink-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  margin-left: 0.6rem;
  font-size: 0.85rem;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: var(--fg-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.crosslink-button:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.crosslink-icon {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.pericope-apparatus-links {
  padding: 1rem 0 2rem;
}

/* --- 404 page --- */

.otzar-404 {
  padding: 1rem 0 4rem;
  max-width: 50rem;
}
.otzar-404 .lead {
  color: var(--fg-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}
.otzar-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
}

/* --- Edition (ECM-Schicht, Bd 5) --- */

.edition-lemma {
  padding: 1.5rem 1.5rem 1rem;
  margin: 1.5rem 0 2rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
}
.edition-context .ctx {
  color: var(--muted);
  font-family: "Cardo", "EB Garamond", "Times New Roman", serif;
  font-size: 1.05rem;
}
.edition-context .lemma {
  color: var(--fg);
  font-weight: 600;
  font-family: "Cardo", "EB Garamond", "Times New Roman", serif;
  font-size: 1.25rem;
  background: rgba(255,255,255,0.06);
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

.edition-fontium {
  padding: 1rem 0 2rem;
}
.edition-fontium-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.edition-fontium-entry {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--fg-soft);
}
.edition-fontium-entry:last-child { border-bottom: 1px solid var(--rule); }
.fontium-ref {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--fg);
  margin-right: 0.4rem;
}
.fontium-note { color: var(--muted); }

.edition-comment {
  padding: 1rem 0 3rem;
}
.edition-comment-body {
  margin-left: 6.5rem;
  max-width: 50rem;
  color: var(--fg-soft);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .edition-comment-body { margin-left: 0; }
}

@media (max-width: 1024px) {
  .pericope-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pericope-grid { grid-template-columns: 1fr; }
}
.reading-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Streamline-style listing cards (manuscripts/, apparatus/, lehrpfade/) --- */

.otzar-cards {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}
.otzar-card { padding: 0; }
.otzar-card-link {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0.5rem;
  border-top: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease, padding 0.12s ease;
}
.otzar-card:last-child .otzar-card-link { border-bottom: 1px solid var(--rule); }
.otzar-card-link:hover {
  background: var(--bg-soft);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.otzar-card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.otzar-card-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.otzar-card-title {
  font-size: 1.05rem;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.otzar-card-summary {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.otzar-card-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.12s ease, transform 0.12s ease;
}
.otzar-card-link:hover .otzar-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.otzar-empty {
  padding: 2rem 0;
  color: var(--muted);
  font-style: italic;
}

/* ===========================================================
 * M3.43 — Doc Layout (Drei-Spalten: Tree | Main | Mini-TOC)
 * ===========================================================
 * - Pericope-Detail-Seiten extenden base_doc.html.
 * - Tree links (sticky, 280px) mit Werk-Hierarchie.
 * - Main Mitte (max-width 1100px, padding generous).
 * - Mini-TOC rechts (fixed edge, 6 Bars vertikal).
 * - Toggle-Button neben Filter (Sidebar zu/auf).
 * - Edge-Indikator am linken Rand wenn Sidebar zu.
 */

/* Toggle-Checkbox versteckt (CSS-only Sidebar-Schalter) */
#otzar-toggle-tree { display: none; }

/* Layout */
.otzar-doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-h, 4.25rem));
  /* keine max-width — Tree und TOC kleben am Browser-Rand, Main bleibt
     intern via .otzar-doc-main max-width zentriert (Cliart 2026-05-24:
     „zu grosse einzug ... mehr raum in zentrum") */
  margin: 0;
  transition: grid-template-columns 0.2s ease;
}
.otzar-doc-layout.with-toc {
  grid-template-columns: 240px 1fr 220px;
}
@media (max-width: 1100px) {
  .otzar-doc-layout.with-toc { grid-template-columns: 240px 1fr; }
  .otzar-doc-layout.with-toc .otzar-doc-toc { display: none; }
}
#otzar-toggle-tree:not(:checked) ~ main .otzar-doc-layout,
body:has(#otzar-toggle-tree:not(:checked)) .otzar-doc-layout {
  grid-template-columns: 1fr;
}
#otzar-toggle-tree:not(:checked) ~ main .otzar-doc-layout.with-toc,
body:has(#otzar-toggle-tree:not(:checked)) .otzar-doc-layout.with-toc {
  grid-template-columns: 1fr 220px;
}
@media (max-width: 1100px) {
  #otzar-toggle-tree:not(:checked) ~ main .otzar-doc-layout.with-toc,
  body:has(#otzar-toggle-tree:not(:checked)) .otzar-doc-layout.with-toc {
    grid-template-columns: 1fr;
  }
}
#otzar-toggle-tree:not(:checked) ~ main .otzar-doc-layout aside.otzar-tree,
body:has(#otzar-toggle-tree:not(:checked)) .otzar-doc-layout aside.otzar-tree {
  display: none;
}

/* Edge-Indikator (Sidebar zu → klickbarer Pfeil am linken Rand) */
.otzar-tree-edge {
  display: none;
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 45;
  width: 18px; height: 60px;
  background: var(--bg-card); border: 1px solid var(--rule); border-left: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--fg-muted);
  transition: background 0.12s, color 0.12s, width 0.12s;
}
.otzar-tree-edge:hover { background: var(--bg-elev); color: var(--accent); width: 22px; }
.otzar-tree-edge svg { width: 12px; height: 12px; }
#otzar-toggle-tree:not(:checked) ~ .otzar-tree-edge { display: flex; }

/* Tree (linke Sidebar) */
aside.otzar-tree {
  border-right: 1px solid var(--rule);
  padding: 1rem 0.6rem;
  overflow-y: auto;
  font-size: 0.86rem;
  /* transparent — Mockup-Pattern: kein eigener Container-Background,
     Tree „atmet" mit dem Page-Background. Cliart 2026-05-24
     („sehr grosser einzug von rahmen bis PROGRAMM"). */
  background: transparent;
  max-height: calc(100vh - var(--header-h, 4.25rem));
  position: sticky;
  top: var(--header-h, 4.25rem);
}
.otzar-tree-search-row {
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0 0.3rem 0.8rem;
}
.otzar-tree-toggle {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 5px; cursor: pointer;
  color: var(--fg-muted);
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.otzar-tree-toggle:hover { background: var(--bg-elev); color: var(--accent); }
.otzar-tree-toggle svg { width: 15px; height: 15px; }
.otzar-tree-search {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 5px;
  padding: 0.4rem 0.65rem; color: var(--fg-faint); font-size: 0.78rem;
  flex: 1; min-width: 0;
}

.otzar-tree-section { margin-bottom: 0.5rem; }
.otzar-tree-section-head {
  padding: 0.45rem 0.65rem;
  font-weight: 600; color: var(--fg-muted); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center;
}
.otzar-tree-section-head .count {
  margin-left: auto; font-family: var(--mono); font-size: 0.7rem;
  color: var(--fg-faint); text-transform: none; letter-spacing: 0;
}
aside.otzar-tree details summary { list-style: none; cursor: pointer; }
aside.otzar-tree details summary::-webkit-details-marker { display: none; }
aside.otzar-tree details summary::before {
  content: "▸"; color: var(--fg-faint); display: inline-block;
  width: 14px; transition: transform 0.15s;
}
aside.otzar-tree details[open] > summary::before { transform: rotate(90deg); }
aside.otzar-tree details summary {
  padding: 0.35rem 0.65rem; border-radius: 4px;
  font-size: 0.85rem; color: var(--fg);
  display: flex; align-items: center;
}
aside.otzar-tree details summary:hover { background: var(--bg-card); }
aside.otzar-tree details summary .count {
  margin-left: auto; font-family: var(--mono); font-size: 0.7rem;
  color: var(--fg-faint);
}
.otzar-tree-eyebrow {
  padding: 0.05rem 0.65rem 0.45rem 1.85rem;
  color: var(--fg-faint); font-size: 0.74rem;
  font-style: italic;
}
/* Verschachtelte details — eingerueckt */
aside.otzar-tree details details > summary { padding-left: 1.85rem; font-size: 0.83rem; }
aside.otzar-tree details details details > summary { padding-left: 2.85rem; font-size: 0.82rem; }

.otzar-tree-leaf {
  display: block;
  padding: 0.3rem 0.65rem 0.3rem 1.85rem;
  color: var(--fg-muted); text-decoration: none;
  border-radius: 4px; font-size: 0.83rem;
  border-bottom: none;
}
.otzar-tree-leaf:hover { background: var(--bg-card); color: var(--fg); border-bottom-color: transparent; }
.otzar-tree-leaf.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent); font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: 1.7rem;
}
aside.otzar-tree details details .otzar-tree-leaf { padding-left: 2.85rem; }
aside.otzar-tree details details .otzar-tree-leaf.active { padding-left: 2.7rem; }
aside.otzar-tree details details details .otzar-tree-leaf { padding-left: 3.85rem; font-size: 0.82rem; }
aside.otzar-tree details details details .otzar-tree-leaf.active { padding-left: 3.7rem; }

.otzar-tree-band {
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.35rem 0.65rem 0.35rem 1.85rem;
  color: var(--fg); text-decoration: none;
  border-radius: 4px; font-size: 0.84rem;
  border-bottom: none;
}
.otzar-tree-band:hover { background: var(--bg-card); border-bottom-color: transparent; }
.otzar-tree-band .bd-num {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--accent-2); background: rgba(0, 212, 170, 0.1);
  padding: 0.12rem 0.45rem; border-radius: 4px;
  flex-shrink: 0;
}
.otzar-tree-band .bd-title {
  color: var(--fg-muted); font-size: 0.81rem; line-height: 1.3;
}

/* Main column (Mitte) */
.otzar-doc-main {
  padding: 2rem 3rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* TOC-Sidebar (dritte Spalte im .otzar-doc-layout.with-toc) —
 * Cliart 2026-05-24: „toc sollte unten neben den text sein".
 * Echte Sidebar mit Section-Namen + optional Counts, sticky an der
 * Topbar, nicht mehr versteckt als Strich-Indikator. Mockup-Pattern
 * aus mockups/pericope-teaser.html (.toc / .toc-list).
 */
.otzar-doc-toc {
  padding: 1rem 0.5rem 1rem 0.8rem;
  border-left: 1px solid var(--rule);
  position: sticky;
  top: calc(var(--header-h, 4.25rem) + 0.3rem);
  max-height: calc(100vh - var(--header-h, 4.25rem) - 0.6rem);
  overflow-y: auto;
  align-self: start;
}
.otzar-doc-toc-h {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-muted);
  margin-bottom: 0.55rem;
  font-weight: 600;
  font-family: var(--mono);
}
.otzar-doc-toc-list { list-style: none; padding: 0; margin: 0; }
.otzar-doc-toc-list li {
  border-radius: 4px;
  margin-bottom: 0.05rem;
}
.otzar-doc-toc-list a {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.4rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: none;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}
.otzar-doc-toc-list a:hover {
  color: #f0c674;
  background: rgba(212, 175, 55, 0.06);
}
.otzar-doc-toc-list li.active > a {
  background: rgba(212, 175, 55, 0.14);
  color: #f0c674;
  border-left: 2px solid #d4af37;
  padding-left: calc(0.45rem - 2px);
  font-weight: 500;
}
.otzar-doc-toc-list li.locked > a { color: var(--fg-faint); }
.otzar-doc-toc-list .toc-label { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.otzar-doc-toc-list .toc-ct {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: #f0c674;
}
.otzar-doc-toc-list li.locked .toc-ct { color: var(--fg-faint); }

/* Page-Actions am Ende der TOC-Sidebar (Mockup-Pattern): PDF /
   Permalink / In Git bearbeiten (Login) / Im Graph zeigen (Login). */
.otzar-doc-toc-actions {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column;
  gap: 0.15rem;
}
.otzar-doc-toc-actions a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: none;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}
.otzar-doc-toc-actions a:hover {
  color: #f0c674;
  background: rgba(212, 175, 55, 0.06);
}
.otzar-doc-toc-actions a.locked { color: var(--fg-faint); }
.otzar-doc-toc-actions a.locked:hover { color: var(--fg-muted); }
.otzar-doc-toc-actions svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

:root[data-theme="light"] .otzar-doc-toc-list a:hover {
  background: rgba(168, 133, 31, 0.08);
  color: var(--accent);
}
:root[data-theme="light"] .otzar-doc-toc-list li.active > a {
  background: rgba(168, 133, 31, 0.14);
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ============ Doc Hero (Pericope-Detail-Seite) ============ */

.doc-hero {
  display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}
.doc-sigle {
  flex-shrink: 0;
  width: 76px; height: 76px;
  background: linear-gradient(135deg, #d4af37 0%, #f0c674 100%);
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 1.25rem; font-weight: 800;
  color: #14131a;                            /* dunkler Text fuer Kontrast */
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 24px rgba(212, 175, 55, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.doc-hero-meta { flex: 1; min-width: 0; }
.doc-hero-eyebrow {
  color: var(--accent-2); font-size: 0.74rem;
  font-family: var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.doc-title {
  font-size: 2rem; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 0.5rem;
  color: var(--fg-strong); font-weight: 700;
}
.doc-title-gr {
  color: var(--fg-muted); font-weight: 400;
  font-family: var(--serif); font-size: 1.4rem;
  margin-left: 0.4rem;
}
.doc-ref-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.doc-ref-pill {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.84rem; color: var(--fg);
  font-family: var(--mono);
}
.doc-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 780px;
  margin-bottom: 2.5rem;
}

/* ============ Doc Section (mit Anchor-IDs für Mini-TOC) ============ */
section.doc-section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}
section.doc-section > h2 {
  font-size: 1.4rem;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1.25rem;
  display: flex; align-items: baseline; gap: 0.6rem;
  font-weight: 600;
}
.doc-section-badge {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  background: rgba(99, 102, 241, 0.15); color: var(--accent);
  padding: 0.18rem 0.55rem; border-radius: 999px;
}

/* ============ Synopsis 4-Spalten-Grid ============ */
.doc-synopsis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 1100px) {
  .doc-synopsis-grid { grid-template-columns: repeat(2, 1fr); }
}
.doc-syn-col {
  position: relative;
  background: rgba(14, 18, 28, 0.55);
  border: 1px solid rgba(229, 231, 235, 0.10);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  min-width: 0;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
:root[data-theme="light"] .doc-syn-col {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.08);
}
.doc-syn-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 0.45rem; border-bottom: 1px solid var(--rule-soft);
  gap: 0.5rem;
}
.doc-syn-ev {
  font-weight: 700; font-size: 0.92rem;
  font-family: var(--mono); color: var(--fg-strong);
}
.doc-syn-ref {
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--fg-muted); white-space: nowrap;
}
.doc-syn-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg);
  word-wrap: break-word; hyphens: auto;
  font-feature-settings: "liga" 1, "kern" 1;
  white-space: pre-wrap;
}
.doc-syn-empty {
  color: var(--fg-faint); font-style: italic;
  text-align: center; padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* ============ Doc Section-Tag (M3.43, AT-Sektion-IDs) ============ */
.doc-section-tag {
  display: inline-block; font-family: var(--mono);
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.22rem 0.6rem; border-radius: 4px;
  letter-spacing: 0.06em; margin-right: 0.65rem;
  vertical-align: middle;
}

/* ============ Doc Witness-Cards (M3.43) ============ */
.doc-witness-group {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.1rem 1.4rem; margin-bottom: 0.85rem;
}
.doc-witness-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule-soft); margin-bottom: 0.85rem;
}
.doc-witness-kind {
  display: flex; align-items: baseline; gap: 0.65rem;
  font-size: 0.95rem; color: var(--fg-strong); font-weight: 600;
}
.doc-witness-tag {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--accent); background: rgba(99, 102, 241, 0.12);
  padding: 0.2rem 0.55rem; border-radius: 4px; letter-spacing: 0.05em;
}
.doc-witness-count {
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--accent-2); background: rgba(0, 212, 170, 0.1);
  padding: 0.18rem 0.55rem; border-radius: 999px;
}
.doc-witness-grid { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.doc-witness-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.8rem; background: var(--bg-elev);
  border: 1px solid var(--rule); border-radius: 6px;
  text-decoration: none; color: var(--fg);
  font-size: 0.88rem; transition: all 0.12s;
  border-bottom: none;
}
.doc-witness-chip:hover { border-color: var(--accent); border-bottom-color: var(--accent); }
.doc-witness-sigle { font-family: var(--mono); font-weight: 600; color: var(--fg-strong); }
.doc-witness-sigle-full { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.doc-witness-date { color: var(--fg-muted); font-size: 0.78rem; }

/* --- Pericope witnesses section (collapsible per kind) --- */

.pericope-witnesses { margin-top: 2rem; }
.witness-group {
  margin: 0.85rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-soft);
}
.witness-group[open] { background: transparent; }
.witness-group-summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-weight: 500;
  list-style: none;
}
.witness-group-summary::-webkit-details-marker { display: none; }
.witness-group-summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}
.witness-group[open] .witness-group-summary::before {
  transform: rotate(90deg);
}
.witness-kind-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.witness-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.witness-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}
.witness-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.88rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-soft);
}
.witness-sigle {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--fg);
}
.witness-sigle-link {
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
  transition: color 0.12s ease, border-color 0.12s ease;
}
.witness-sigle-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.witness-date,
.witness-library,
.witness-name,
.witness-complete,
.witness-note {
  color: var(--muted);
  font-size: 0.82rem;
}
.witness-complete {
  font-style: italic;
}

/* --- Witness cross-link to full manuscript record --- */

.witness-cross-link {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-soft);
}
.witness-cross-link-anchor {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.12s ease;
}
.witness-cross-link-anchor:hover { text-decoration: underline; }
.witness-cross-link-arrow {
  font-size: 1.1rem;
  line-height: 1;
}
.witness-cross-link-label {
  font-weight: 500;
}

/* --- Listing index: up-link to parent route --- */

.otzar-listing-up {
  margin: 1rem 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.otzar-listing-up-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.12s ease;
}
.otzar-listing-up-link:hover { color: var(--accent); }
.otzar-listing-up-arrow {
  font-size: 1.1rem;
  line-height: 1;
}
.otzar-listing-up-label {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.otzar-listing-up-title {
  color: var(--fg);
  font-weight: 500;
}
.otzar-listing-up-link:hover .otzar-listing-up-title { color: var(--accent); }

/* --- Pericope detail: prev/next/up navigation --- */

.pericope-pn-nav {
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pericope-pn-nav-bottom {
  margin: 3rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}
.pericope-pn-up {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.pericope-pn-up-label {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.pericope-pn-up-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pericope-pn-up-link:hover { text-decoration: underline; }
.pericope-pn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pericope-pn-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
  min-width: 0;
}
.pericope-pn-link:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}
.pericope-pn-prev { justify-content: flex-start; }
.pericope-pn-next { justify-content: flex-end; text-align: right; }
.pericope-pn-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  flex-shrink: 0;
}
.pericope-pn-link:hover .pericope-pn-arrow { color: var(--accent); }
.pericope-pn-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  overflow: hidden;
}
.pericope-pn-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pericope-pn-title {
  font-size: 0.95rem;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pericope-pn-placeholder { display: block; }
@media (max-width: 700px) {
  .pericope-pn-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* --- Perikopen index: two-column AT|NT layout --- */

.perikopen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}
.perikopen-col { min-width: 0; }
.perikopen-col-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 0.5rem;
}
.perikopen-col-sigle {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.perikopen-col-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.perikopen-grid .otzar-cards { margin-top: 0.5rem; }
@media (max-width: 900px) {
  .perikopen-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Search input */

.otzar-search input[type="search"] {
  width: 100%;
  max-width: 36rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--fg);
  outline: none;
}
.otzar-search input[type="search"]:focus {
  border-color: var(--accent);
}

.search-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0.6rem 0 1rem;
  min-height: 1.2em;
}

.otzar-search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-hit {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 8rem 1fr;
  column-gap: 1.25rem;
  align-items: baseline;
}
.search-hit:last-child { border-bottom: 1px solid var(--rule); }

.search-kind {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: baseline;
}
.search-kind-manuscript { color: var(--accent); }
.search-kind-apparatus  { color: #a8c2da; }
.search-kind-lehrpfad   { color: #d2b48c; }

.search-link {
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.search-link:hover { border-bottom-color: var(--accent); }
.search-snippet {
  grid-column: 2;
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

mark {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
  padding: 0 2px;
}

/* Code blocks (apparatus prose, etc.) */

pre, code {
  font-family: "JetBrains Mono", "Source Code Pro", Consolas, Monaco, monospace;
  background: var(--bg-soft);
  color: var(--fg);
  border-radius: 3px;
}
pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.5;
}
code { padding: 0.125rem 0.35rem; font-size: 0.9em; }

blockquote {
  border-left: 3px solid var(--rule);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--fg-soft);
  margin: 1rem 0;
}

/* --- Footer (Streamline-style multi-column grid) --- */

.otzar-footer {
  border-top: 1px solid var(--rule);
  margin-top: 6rem;
  padding: 4rem var(--pad-x) 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}
.otzar-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 78rem;
  margin: 0 auto;
}
.otzar-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.otzar-footer-brand .brand-l1 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.otzar-footer-brand .brand-l2 {
  font-size: 1rem;
  color: var(--muted);
}
.otzar-footer-brand .brand-tag {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.otzar-footer-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.otzar-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.otzar-footer-col a {
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.otzar-footer-col a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.otzar-footer-rule {
  height: 1px;
  background: var(--rule);
  margin: 3rem auto 1.5rem;
  max-width: 78rem;
}
.otzar-footer-meta {
  margin: 0;
  max-width: 78rem;
  margin-left: auto;
  margin-right: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 720px) {
  .otzar-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .otzar-footer-brand { grid-column: 1 / -1; }
}

/* RTL support */

[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .otzar-actions { margin-left: 0; margin-right: auto; }

/* Date label utility */

.date {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Settings / Anpassungen ---------- */
.settings-form {
  margin-top: 1.5rem;
  max-width: 36rem;
}
.settings-fieldset {
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 0;
}
.settings-legend {
  padding: 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.settings-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  cursor: pointer;
  color: var(--fg);
  font-size: 1.05rem;
}
.settings-option input[type="radio"] {
  margin: 0;
  accent-color: var(--fg);
}
.settings-swatch {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--rule);
  flex: 0 0 auto;
}
.settings-swatch-dark { background: #1c1c1e; }
.settings-swatch-light { background: #fafaf7; }
.settings-swatch-auto {
  background: linear-gradient(135deg, #1c1c1e 0 50%, #fafaf7 50% 100%);
}
.settings-option-label { color: var(--fg); }
.settings-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 0;
  min-height: 1.3em;
}


/* ---------- AT-Synopsis (altes-testament) ---------- */
.at-row {
  margin-top: 1.5rem;
}
.at-row-he pre.at-text-he {
  font-family: "SBL Hebrew", "Ezra SIL", "Cardo", serif;
  font-size: 1.15rem;
  line-height: 1.9;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  white-space: pre-wrap;
  word-wrap: break-word;
  direction: rtl;
  color: var(--fg);
}
.at-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1rem;
}
.at-grid-2 {
  grid-template-columns: 1fr 1fr;
}
.at-cell {
  background: var(--bg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 8rem;
}
.at-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}
.at-cell-source {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.at-text {
  margin: 0;
  font-family: "Cardo", "EB Garamond", "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
  background: transparent;
  border: none;
  padding: 0;
}
.at-cell-empty {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}
@media (max-width: 700px) {
  .at-grid-2 { grid-template-columns: 1fr; }
}

/* ===================================================================
 * Landing (Home) — Souveraen, klassisch-modern, Liquid-Glass
 *
 * Visuelle Sprache: dunkle Hero mit edler Gradient-Headline in der
 * Palette Gold / Silber / Royal-Blau / Crimson — die Farben alter
 * Folianten-Einbaende (Lapis-Decke, Goldschnitt, Silber-Initial,
 * roter Samt). Liquid-Glass-Schicht (backdrop-blur) trennt Inhalt
 * vom dunklen Lapis-Schwarz-Hintergrund. Doktrin: Memory
 * `feedback_otzar_landing_layout.md` + `feedback_liquid_glass_header.md`;
 * Mockup: `mockups/landing-raycast.html`.
 *
 * Wahl der Farben (klassisch-modern, NICHT Neon/Sci-Fi):
 *   Gold    — Goldschnitt, Verzierungen      (#d4af37 / hell #f0c674)
 *   Silber  — Initialbuchstaben, Highlight   (#c0c0c0 / hell #e5e7eb)
 *   Blau    — Royal/Lapis, Buchdeckel        (#1e3a8a / mittel #3b82f6)
 *   Rot     — Crimson, Samt-Einband          (#991b1b / mittel #dc2626)
 *
 * Liquid Glass: jede Karten-Oberflaeche ist halbtransparent mit
 * `backdrop-filter: blur+saturate`, Highlight-Edge ueber Pseudo-Element,
 * sehr ruhige Aurora-Bewegung im Hintergrund. Wenn `backdrop-filter`
 * nicht unterstuetzt wird, fallen die Karten auf opake `--bg-card` zurueck.
 * ================================================================ */

.landing {
  /* Palette (klassisch-modern) */
  --c-gold:     #d4af37;
  --c-gold-l:   #f0c674;
  --c-silver:   #c0c0c0;
  --c-silver-l: #e5e7eb;
  --c-blue:     #1e3a8a;
  --c-blue-m:   #3b82f6;
  --c-red:      #991b1b;
  --c-red-m:    #dc2626;

  /* Headline-Gradient: Gold → Silber → Royal-Blau → Crimson → Gold (sanft). */
  --gradient-hero: linear-gradient(
    100deg,
    var(--c-gold) 0%,
    var(--c-silver-l) 25%,
    var(--c-blue-m) 50%,
    var(--c-red) 75%,
    var(--c-gold) 100%
  );

  /* Aurora-Layers — gedaempft, edel, Royal-Blau-dominant mit Gold + Crimson-Akzent. */
  --gradient-aurora-1: radial-gradient(ellipse 60% 50% at 20% 0%, rgba(30, 58, 138, 0.30), transparent 60%);
  --gradient-aurora-2: radial-gradient(ellipse 50% 40% at 85% 25%, rgba(212, 175, 55, 0.10), transparent 60%);
  --gradient-aurora-3: radial-gradient(ellipse 45% 35% at 50% 85%, rgba(153, 27, 27, 0.12), transparent 60%);

  --glass-bg: rgba(14, 18, 28, 0.55);
  --glass-bg-hov: rgba(20, 25, 38, 0.70);
  --glass-border: rgba(229, 231, 235, 0.10);       /* silber, sehr leise */
  --glass-border-hov: rgba(212, 175, 55, 0.40);    /* gold beim Hover */
  --glass-blur: blur(28px) saturate(140%);
  --glass-blur-strong: blur(36px) saturate(160%);
}

/* Aurora-Background — drei sich langsam bewegende Gradient-Bloecke + Grain-Overlay.
   prefers-reduced-motion deaktiviert die Animation. */
.landing::before,
.landing::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}
.landing::before {
  background:
    var(--gradient-aurora-1),
    var(--gradient-aurora-2),
    var(--gradient-aurora-3);
  animation: landingAurora 28s ease-in-out infinite alternate;
  will-change: transform;
}
.landing::after {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  inset: 0;
}
@keyframes landingAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .landing::before { animation: none; }
}

.landing-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.landing-hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.landing-hero-eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--fg-strong);
}

.landing-hero h1 .grad {
  /* Souveraener Multi-stop-Gradient: Gold → Silber → Royal-Blau → Crimson → Gold.
     Schiebt sich langsam — edel, nicht aufdringlich. */
  background: linear-gradient(
    100deg,
    var(--c-gold) 0%,
    var(--c-gold-l) 14%,
    var(--c-silver-l) 28%,
    var(--c-blue) 50%,
    var(--c-red) 72%,
    var(--c-gold-l) 86%,
    var(--c-gold) 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: landingGradShift 18s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.20));
}
@keyframes landingGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero h1 .grad { animation: none; }
}

.landing-hero-sub {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

/* Command palette demo (static) — Liquid-Glass-Kern */
.landing-palette {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  isolation: isolate;
}
/* Highlight-Edge — Silber-Glanz oben, Gold-Schliff unten. */
.landing-palette::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(229,231,235,0.28), rgba(229,231,235,0) 40%, rgba(212,175,55,0.22) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.landing-palette-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.landing-palette-input .icon { color: var(--fg-muted); }
.landing-palette-input .query { color: var(--fg-strong); flex: 1; text-align: left; }
.landing-palette-input .cursor {
  width: 2px;
  height: 1.1em;
  background: var(--c-gold);
  animation: landingCursorBlink 1s infinite;
  display: inline-block;
  vertical-align: text-bottom;
}
.landing-palette-input .esc {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
@keyframes landingCursorBlink { 50% { opacity: 0; } }

.landing-palette-results {
  padding: 0.5rem 0;
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
}
.landing-palette-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
}
.landing-palette-item.selected { background: rgba(30, 58, 138, 0.28); }
.landing-palette-item .typ {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}
.landing-palette-item.selected .typ {
  color: var(--c-gold-l);
  background: rgba(212, 175, 55, 0.20);
  border: 1px solid rgba(212, 175, 55, 0.40);
  padding-block: calc(0.18rem - 1px);
}
.landing-palette-item .label { flex: 1; font-size: 0.92rem; color: var(--fg); }
.landing-palette-item .meta { color: var(--fg-muted); font-size: 0.82rem; }
.landing-palette-item .kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--fg-muted);
}

.landing-palette-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.landing-palette-footer .keys { display: flex; gap: 1rem; }

/* Feature grid */
.landing-features { padding: 6rem 0; }
.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.landing-feature {
  position: relative;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
  overflow: hidden;
}
/* Highlight-Edge oben (Silber-Glanz) + diagonale Schliff-Linie (Gold-Hauch). */
.landing-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(229,231,235,0.28), rgba(229,231,235,0) 45%, rgba(212,175,55,0.24) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* Shimmer-Sweep beim Hover — gleitender Highlight von links nach rechts. */
.landing-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.landing-feature:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hov);
  border-color: var(--glass-border-hov);
  box-shadow:
    0 24px 60px rgba(30, 58, 138, 0.28),
    0 0 0 1px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(229, 231, 235, 0.18);
}
.landing-feature:hover::after { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) {
  .landing-feature::after { transition: none; }
  .landing-feature:hover { transform: none; }
}
.landing-feature .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--c-gold-l);
  margin-bottom: 1rem;
  padding: 0.2rem 0.6rem;
  background: rgba(212, 175, 55, 0.10);
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.landing-feature h3 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.landing-feature p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Bestehende Inhalts-Listen (Manuscripts, Apparatus) bleiben unterhalb
   der Features — verwendet die otzar-overview/home-section-Klassen,
   die bereits in style.css definiert sind. */

@media (max-width: 900px) {
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-hero { padding: 4rem 0 3rem; }
}

/* RTL — Palette-Listen rechtsbuendig */
html[dir="rtl"] .landing-palette-results,
html[dir="rtl"] .landing-palette-input .query { text-align: right; }

/* ===================================================================
 * Landing — Tiefenschicht (Souveraen-modernes Glas)
 *
 * Conic-Mesh-Orb in Royal-Blau / Gold / Crimson, Goldschnitt-Detail
 * auf der Palette, Chrom-Pill fuer Feature-Nummern (Gold), Custom
 * Scrollbar + Selection in der Edelmetall-Palette. Alles rein-CSS,
 * kein JS. Respektiert prefers-reduced-motion.
 * ================================================================ */

/* Conic-Gradient-Mesh — gediegen, Royal-Blau-dominant, Gold + Crimson Akzent.
   Sehr langsam, NICHT aufdringlich. */
.landing .landing-container::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(30, 58, 138, 0.10) 0deg,
    rgba(212, 175, 55, 0.06) 90deg,
    rgba(153, 27, 27, 0.06) 180deg,
    rgba(192, 192, 192, 0.05) 270deg,
    rgba(30, 58, 138, 0.10) 360deg
  );
  filter: blur(60px);
  animation: landingMeshSpin 90s linear infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}
@keyframes landingMeshSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .landing .landing-container::before { animation: none; }
}

/* Palette-Cursor — Gold-Glow. */
.landing-palette-input .cursor {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.80);
}

/* Palette: subtile Royal-Innenglut auf dem ausgewaehlten Item;
   Akzent-Streifen links in Gold. */
.landing-palette-item.selected {
  background:
    radial-gradient(120% 200% at 0% 50%, rgba(30, 58, 138, 0.40), rgba(30, 58, 138, 0.12) 60%, transparent 100%);
  position: relative;
}
.landing-palette-item.selected::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--c-gold) 40%, var(--c-gold-l) 60%, transparent);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.7));
}

/* Feature-Nummern — Goldschnitt-Pill (klassisch, gemessen). */
.landing-feature .num {
  position: relative;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.36);
  box-shadow: inset 0 1px 0 rgba(229, 231, 235, 0.14);
}

/* Hero-Eyebrow — Silber-Glanz mit Royal-Schatten. */
.landing-hero-eyebrow {
  background: linear-gradient(135deg, rgba(229,231,235,0.05), rgba(229,231,235,0.01));
  border-color: rgba(229, 231, 235, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(229, 231, 235, 0.14),
    0 8px 24px rgba(30, 58, 138, 0.12);
}

/* Smooth-Scroll. */
html:has(body.landing) { scroll-behavior: smooth; }

/* Custom-Selection — Royal-Blau, gediegen. */
body.landing ::selection {
  background: rgba(30, 58, 138, 0.55);
  color: var(--c-silver-l);
}

/* Custom-Scrollbar — Gold-Royal-Crimson. */
body.landing { scrollbar-color: rgba(212, 175, 55, 0.55) transparent; scrollbar-width: thin; }
body.landing::-webkit-scrollbar { width: 10px; }
body.landing::-webkit-scrollbar-track { background: transparent; }
body.landing::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    rgba(212, 175, 55, 0.65) 0%,
    rgba(192, 192, 192, 0.55) 33%,
    rgba(30, 58, 138, 0.65) 66%,
    rgba(153, 27, 27, 0.55) 100%);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.landing::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
    rgba(212, 175, 55, 0.95) 0%,
    rgba(229, 231, 235, 0.85) 33%,
    rgba(30, 58, 138, 0.95) 66%,
    rgba(153, 27, 27, 0.85) 100%);
  background-clip: padding-box;
}

/* Bestehende Inhalts-Sektionen unterhalb der Hero — leichte Glas-Anmutung,
   damit sie zur Landing-Aesthetik passen. */
body.landing .home-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
body.landing .otzar-overview { position: relative; z-index: 1; padding-bottom: 6rem; }

/* ====================================================================
 * Auth-Shell — Sign-in / Sign-up Page (.auth-shell)
 * --------------------------------------------------------------------
 * Brockhaus-Edelmetall mit Gold-Doktrin. Klare Karte mitten in der
 * Page, Email-Input + WebAuthn-Button (primary) + Magic-Link-Button
 * (secondary). Sign-up-Mode hat zusaetzliche Felder + andere Action.
 * ================================================================ */

.auth-shell {
  max-width: 440px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
  display: flex; flex-direction: column; gap: 1.6rem;
}
.auth-brand { text-align: center; }
.auth-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: #f0c674;
  margin-bottom: 0.6rem;
}
.auth-headline {
  font-size: 2.1rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--fg-strong);
  margin-bottom: 0.5rem;
}
.auth-grad {
  background: linear-gradient(135deg, #d4af37 0%, #f0c674 50%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.auth-lead {
  color: var(--fg-muted);
  font-size: 0.95rem; line-height: 1.5;
}

.auth-card {
  padding: 1.8rem 1.6rem;
  background: rgba(14, 18, 28, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 24px 60px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
:root[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 60px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.auth-card-h {
  font-size: 1.2rem; font-weight: 600;
  color: var(--fg-strong);
  margin-bottom: 0.4rem;
}
.auth-card-sub {
  color: var(--fg-muted);
  font-size: 0.88rem; line-height: 1.5;
  margin-bottom: 1.2rem;
}

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  font-size: 0.78rem; color: var(--fg-muted);
  margin-bottom: 0.35rem;
  font-family: var(--mono); letter-spacing: 0.02em;
}
.auth-field input,
.auth-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(8, 7, 10, 0.55);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.auth-field input:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(8, 7, 10, 0.75);
}
:root[data-theme="light"] .auth-field input,
:root[data-theme="light"] .auth-field textarea {
  background: rgba(255, 255, 255, 0.7);
}

.auth-btn-primary,
.auth-btn-secondary {
  display: block; width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  font-family: inherit; font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.auth-btn-primary {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #d4af37, #f0c674);
  color: #14131a;
  font-weight: 600;
  box-shadow:
    0 14px 30px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.auth-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: progress; }
.auth-btn-secondary {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #f0c674;
}
.auth-btn-secondary:hover:not(:disabled) {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.06);
}
.auth-btn-secondary:disabled { opacity: 0.6; cursor: progress; }

.auth-divider {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.78rem; color: var(--fg-faint);
  font-family: var(--mono); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: ""; flex: 1 1 auto;
  height: 1px; background: var(--rule);
}

.auth-status {
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem; line-height: 1.4;
}
.auth-status[data-level="info"] {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--fg);
}
.auth-status[data-level="ok"] {
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.30);
  color: #6ee7c5;
}
.auth-status[data-level="error"] {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #fca5a5;
}

.auth-mfa-strip {
  margin-top: 1.4rem; padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.auth-mfa-lbl {
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--fg-muted); font-family: var(--mono);
  margin-bottom: 0.5rem;
}
.auth-mfa-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.auth-mfa-pill {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  color: var(--fg-muted);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em;
}
.auth-mfa-pill.solid {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.42);
  color: #f0c674;
}

.auth-foot {
  text-align: center;
  font-size: 0.88rem; color: var(--fg-muted);
}
.auth-foot a { color: #f0c674; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-legal {
  text-align: center;
  font-size: 0.72rem; color: var(--fg-faint);
  line-height: 1.5;
}

/* ====================================================================
 * Brockhaus-Teaser-Bauteile
 * --------------------------------------------------------------------
 * .access-pill   — Hero-Badge „TEASER" neben dem Pericope-Titel
 * .doc-syn-col.locked + .lock-pill — geblurrte Synopsis-Spalten
 *                  (Brockhaus: 1 Spalte frei, andere mit Login)
 * .otzar-teaser-cta.weiterlesen — der grosse CTA (siehe unten)
 * .locked-section — die Folge-Sektionen als Lock-Cards (siehe unten)
 * ================================================================ */

.access-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: #f0c674;
  margin-left: 0.5rem; vertical-align: middle;
  font-weight: 500;
}
.access-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Synopsis-Spalten: geblurrte „locked"-Variante mit Login-Pill ueber dem
   unteren Rand. Der Text-Inhalt wird im Server-Template durch Pseudo-
   Punkte ersetzt (statt mit blur(3px) — verhindert View-Source-Bypass). */
.doc-syn-col.locked {
  position: relative;
  overflow: hidden;
}
.doc-syn-col.locked .doc-syn-text {
  filter: blur(3px);
  -webkit-filter: blur(3px);
  user-select: none;
  pointer-events: none;
  opacity: 0.75;
  /* min-height fuer einheitliche Karten-Hoehe wenn Snippet kurz ist */
  min-height: 4.5em;
}
.doc-syn-col.locked::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(8, 7, 10, 0.55) 60%,
    rgba(8, 7, 10, 0.92) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.doc-syn-col.locked .lock-pill {
  position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.40);
  border-radius: 999px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;
  font-size: 0.66rem; letter-spacing: 0.06em;
  color: #f0c674;
}

:root[data-theme="light"] .doc-syn-col.locked::after {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 60%,
    rgba(255, 255, 255, 0.92) 100%);
}

/* ====================================================================
 * Brockhaus-Teaser-CTA (.weiterlesen / .otzar-teaser-cta)
 * --------------------------------------------------------------------
 * Wird vom Builder im Teaser-Variant am TEASER-CUT-Marker injiziert
 * (src/otzar/wiki/builder.py :: _teaser_cta_snippet). Identische Optik
 * zum Mockup `mockups/_teaser-style.css`. Die Hex-Werte sind hier hart
 * — die `--c-*`-Variablen liegen nur im `.landing`-Scope, hier aber
 * brauchen wir sie ueberall (jede Inhalts-Seite kann den CTA tragen).
 *
 * Selektor-Strategie: `.otzar-teaser-cta` ueberschreibt absichtlich
 * spezifisch die globalen `.btn-primary/.btn-secondary`-Regeln (Zeile
 * ~632ff), damit die injizierten Buttons den blauen Verlauf bekommen
 * ohne die Buttons auf anderen Seiten zu aendern.
 * ================================================================ */

.otzar-teaser-cta.weiterlesen,
.weiterlesen.otzar-teaser-cta {
  position: relative;
  margin: 2rem 0;
  padding: 2rem 2rem 1.8rem;
  background: rgba(14, 18, 28, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 24px 60px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.otzar-teaser-cta::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(229, 231, 235, 0.22),
    rgba(229, 231, 235, 0) 45%,
    rgba(212, 175, 55, 0.32) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.otzar-teaser-cta .icn {
  width: 44px; height: 44px;
  margin: 0 auto 0.8rem;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.14);
  color: #f0c674;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.30);
}
.otzar-teaser-cta .icn svg { width: 22px; height: 22px; }
.otzar-teaser-cta h3 {
  font-size: 1.4rem; font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.otzar-teaser-cta p {
  color: #9ea0a6;
  font-size: 0.95rem; line-height: 1.55;
  max-width: 480px; margin: 0 auto 1.2rem;
}
.otzar-teaser-cta .ctas {
  display: flex; gap: 0.7rem;
  justify-content: center; flex-wrap: wrap;
}
.otzar-teaser-cta .btn-primary {
  padding: 0.72rem 1.3rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #d4af37, #f0c674);
  color: #14131a;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 14px 30px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}
.otzar-teaser-cta .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    0 18px 36px rgba(212, 175, 55, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}
.otzar-teaser-cta .btn-secondary {
  padding: 0.72rem 1.3rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #f0c674;
  font-family: inherit; font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.otzar-teaser-cta .btn-secondary:hover {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.06);
}
.otzar-teaser-cta .access-summary {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.10);
  font-size: 0.78rem; color: #9ea0a6;
}
.otzar-teaser-cta .access-summary strong { color: #f0c674; font-weight: 500; }

/* Locked-Section-Cards (Brockhaus-Pattern, nach dem CTA) — pro
 * geschnittener Voll-Section eine angedeutete Karte mit Titel +
 * Count + Blur-Preview + Login-Hint. Optik identisch zum Mockup
 * mockups/_teaser-style.css :: .locked-section.
 */
.locked-section {
  position: relative;
  margin: 1.2rem 0;
  padding: 1.2rem 1.4rem;
  background: rgba(14, 18, 28, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.locked-section h3 {
  font-size: 1rem; font-weight: 600;
  color: #e6e6e8;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.locked-section h3 .count {
  font-family: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 999px;
  color: #f0c674;
  font-weight: 400;
}
.locked-section .preview {
  color: #61626b;
  font-size: 0.86rem;
  filter: blur(3px);
  -webkit-filter: blur(3px);
  user-select: none;
  pointer-events: none;
  line-height: 1.7;
  max-height: 3.5rem;
  overflow: hidden;
  letter-spacing: 0.4em;
}
.locked-section .reveal-hint {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #f0c674;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.locked-section .reveal-hint svg { width: 12px; height: 12px; }

:root[data-theme="light"] .locked-section {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.18);
}
:root[data-theme="light"] .locked-section h3 { color: #14131a; }
:root[data-theme="light"] .locked-section .preview { color: #9a9a9c; }

/* Light-Theme: invertiere Hintergrund + Border, Buttons bleiben blau. */
:root[data-theme="light"] .otzar-teaser-cta {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 24px 60px rgba(30, 58, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
:root[data-theme="light"] .otzar-teaser-cta h3 { color: #14131a; }
:root[data-theme="light"] .otzar-teaser-cta p { color: #61626b; }
:root[data-theme="light"] .otzar-teaser-cta .btn-secondary {
  color: #14131a;
  border-color: rgba(0, 0, 0, 0.18);
}
:root[data-theme="light"] .otzar-teaser-cta .access-summary {
  border-top-color: rgba(0, 0, 0, 0.10);
  color: #61626b;
}

/* ── Konto: Unterpunkt-Navigation + Profil/Übersicht ───────────────── */
.auth-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.9rem;
}
.auth-subnav a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.auth-subnav a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}
.auth-profile-name {
  font-weight: 600;
  font-size: 1.05rem;
}
.auth-overview {
  margin: 0.9rem 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}
.auth-overview > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}
.auth-overview > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.auth-overview dt {
  opacity: 0.7;
}
.auth-overview dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}
:root[data-theme="light"] .auth-overview > div {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ===================================================================
   REDESIGN-PORT (2026-06) — APP-SHELL
   Linke fixe Sidebar (Welten-Switcher ws-* + gruppierte Nav + Fuss) +
   schlanke Topbar (Breadcrumb/Suche/Hilfe/Sprache/Account ac-*) +
   .content. Nur fuer Seiten mit <body class="app-shell"> (base_app.html);
   die alte .otzar-topbar/.otzar-footer-Shell bleibt fuer Landing/Login.
   Alle Farben ueber Tokens -> folgt Light/Dark automatisch.
   =================================================================== */

/* App-Shell setzt das fixe Top-Header-Padding der alten Shell zurueck */
body.app-shell { padding-top: 0; }

.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sb-w);
  background: var(--bg-soft); border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; z-index: 30; overflow-y: auto;
}
.main { margin-left: var(--sb-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Sidebar-Nav ---------- */
.sidebar .nav { padding: 4px 12px 12px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 6px; }
.nav-label {
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 0 10px 7px;
}
.sidebar .nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 9px; color: var(--muted);
  font-size: 14px; font-weight: 500; position: relative; cursor: pointer;
  text-decoration: none; transition: background .12s, color .12s;
}
.sidebar .nav-item svg { width: 18px; height: 18px; flex: none; stroke-width: 1.7; }
.sidebar .nav-item .ct {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--faint); background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: 6px; padding: 1px 6px;
}
.sidebar .nav-item:hover { background: var(--bg-hover); color: var(--fg); }
.sidebar .nav-item.active { background: var(--accent-dim); color: var(--accent-l); }
.sidebar .nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.sidebar .nav-item.active .ct { color: var(--accent-l); border-color: rgba(212,175,55,.3); background: rgba(212,175,55,.08); }

/* ---------- Welten-Switcher (ws-*) ---------- */
.brand { position: relative; padding: 0; border-bottom: 0; margin-bottom: 0; display: block; z-index: 60; }
.ws-trigger {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 18px 18px 14px; border: 0; background: transparent;
  text-align: left; cursor: pointer; color: inherit; font: inherit;
  border-bottom: 1px solid var(--rule-soft); margin-bottom: 6px;
  transition: background .13s;
}
.ws-trigger:hover { background: var(--bg-hover); }
.ws-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.ws-trigger[aria-expanded="true"] { background: var(--bg-hover); }
.ws-badge {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--grad); color: #1a1406; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  box-shadow: 0 2px 10px -2px rgba(212,175,55,.5);
}
.ws-name { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; flex: 1; }
.ws-name .ws-l1 { display: flex; align-items: baseline; gap: 7px; }
.ws-name .ws-l1 b { font-weight: 680; font-size: 16px; letter-spacing: -.01em; color: var(--fg-strong); }
.ws-name .ws-l1 i { font-family: var(--serif); font-size: 12px; font-style: normal; color: var(--accent); }
.ws-name .ws-l2 { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-name .ws-l2 em { font-style: normal; color: var(--faint); font-family: var(--mono); font-size: 11px; margin-right: 6px; }
.ws-sw { color: var(--faint); flex: none; transition: transform .18s ease, color .13s; }
.ws-trigger[aria-expanded="true"] .ws-sw { transform: rotate(180deg); color: var(--accent-l); }
.ws-panel {
  position: absolute; top: calc(100% - 2px); left: 10px; right: 10px; z-index: 60;
  background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px;
  display: flex; flex-direction: column;
  max-height: min(72vh, 560px); overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top center;
  pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.ws-panel[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ws-panel { transition: none; } .ws-sw { transition: none; } }
.ws-search {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 10px; margin: 2px 2px 6px;
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 9px;
}
.ws-search:focus-within { border-color: rgba(212,175,55,.4); background: var(--bg-soft); }
.ws-search svg { width: 15px; height: 15px; color: var(--faint); flex: none; stroke-width: 1.9; }
.ws-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font-family: var(--sans); font-size: 13px; }
.ws-search input::placeholder { color: var(--faint); }
.ws-scroll { overflow-y: auto; overscroll-behavior: contain; margin: 0 -2px; padding: 0 2px; }
.ws-scroll::-webkit-scrollbar { width: 9px; }
.ws-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 9px; border: 2px solid var(--bg-elev); }
.ws-sec { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 8px 10px 5px; }
.ws-div { height: 1px; background: var(--rule-soft); margin: 5px 6px; }
.ws-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 7px 9px; border: 0; background: transparent; border-radius: 9px;
  text-align: left; cursor: pointer; color: var(--muted); font: inherit;
  text-decoration: none; position: relative; transition: background .1s, color .1s;
}
.ws-opt[hidden] { display: none; }
.ws-opt:hover, .ws-opt.ws-cursor { background: var(--bg-hover); color: var(--fg); }
.ws-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ws-opt[aria-checked="true"] { background: var(--accent-dim); color: var(--accent-l); }
.ws-num {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--faint); background: var(--bg-card); border: 1px solid var(--rule);
}
.ws-opt[data-hot="1"] .ws-num { background: var(--grad); color: #1a1406; border-color: transparent; font-weight: 700; box-shadow: 0 1px 6px -2px rgba(212,175,55,.55); }
.ws-opt[aria-checked="true"] .ws-num { box-shadow: 0 0 0 2px var(--accent-dim); }
.ws-opt[aria-checked="true"]:not([data-hot="1"]) .ws-num { color: var(--accent-l); border-color: rgba(212,175,55,.4); }
.ws-txt { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; flex: 1; }
.ws-txt b { font-size: 13.5px; font-weight: 560; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-opt[aria-checked="true"] .ws-txt b { font-weight: 640; }
.ws-txt span { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-ct { font-family: var(--mono); font-size: 10.5px; color: var(--cyan); background: rgba(0,212,170,.08); border: 1px solid rgba(0,212,170,.22); border-radius: 6px; padding: 1px 6px; flex: none; }
.ws-check { flex: none; color: var(--accent-l); opacity: 0; width: 16px; height: 16px; }
.ws-opt[aria-checked="true"] .ws-check { opacity: 1; }
.ws-opt.ws-roof .ws-num { background: var(--grad); border-color: transparent; color: #1a1406; font-family: var(--serif); font-size: 16px; font-weight: 700; box-shadow: 0 1px 6px -2px rgba(212,175,55,.55); }
.ws-empty { padding: 14px 10px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* ---------- Sidebar-Fuss (schlanker Status) ---------- */
.sb-foot {
  border-top: 1px solid var(--rule-soft); padding: 11px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--faint); letter-spacing: .03em;
}
.sb-foot .sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 0 3px rgba(0,212,170,.12); }
.sb-foot .sb-ver { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 24px;
  background: var(--glass-bg); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--fg-strong); font-weight: 600; }
.crumbs .home { color: var(--accent); font-weight: 600; }
.topbar .search { margin-left: 8px; flex: 1; max-width: 440px; position: relative; display: flex; align-items: center; }
.topbar .search > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--faint); stroke-width: 1.9; }
.topbar .search input {
  width: 100%; height: 38px; padding: 0 40px 0 36px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--rule); color: var(--fg);
  font-family: var(--sans); font-size: 13.5px; outline: none; transition: border-color .12s, background .12s;
}
.topbar .search input::placeholder { color: var(--faint); }
.topbar .search input:focus { border-color: rgba(212,175,55,.45); background: var(--bg-elev); }
.topbar .search kbd { position: absolute; right: 10px; font-family: var(--mono); font-size: 11px; color: var(--faint); background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-link { font-size: 13.5px; color: var(--muted); padding: 7px 10px; border-radius: 8px; text-decoration: none; }
.tb-link:hover { color: var(--fg); background: var(--bg-hover); }

/* ---------- Account-Avatar-Menue (ac-*) ---------- */
.ac { position: relative; display: flex; align-items: center; }
/* [hidden]-Falle: Autor-display schlaegt die UA-Regel — explizit ausblenden.
   #ac-menu ist anonym versteckt (auth-nav.js zeigt es bei Login);
   #auth-pill wird bei Login von auth-nav.js per .hidden ausgeblendet. */
.ac[hidden], .pill[hidden] { display: none !important; }
.ac-trigger {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 11px 0 6px;
  border: 1px solid var(--rule); background: var(--bg-card); border-radius: 10px;
  color: var(--fg); font: inherit; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.ac-trigger:hover { background: var(--bg-hover); }
.ac-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-trigger[aria-expanded="true"] { background: var(--bg-hover); border-color: rgba(212,175,55,.4); }
.ac-av { border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--grad); color: #1a1406; box-shadow: 0 1px 6px -2px rgba(212,175,55,.55); }
.ac-av svg { stroke-width: 1.9; }
.ac-trigger .ac-av { width: 28px; height: 28px; }
.ac-trigger .ac-av svg { width: 16px; height: 16px; }
.ac-name { font-size: 13.5px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.ac-sw { color: var(--faint); flex: none; transition: transform .18s ease, color .13s; }
.ac-trigger[aria-expanded="true"] .ac-sw { transform: rotate(180deg); color: var(--accent-l); }
.ac-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 272px;
  background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top right;
  pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.ac-panel[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ac-panel { transition: none; } .ac-sw { transition: none; } }
.ac-head { display: flex; gap: 12px; align-items: flex-start; padding: 11px 11px 12px; margin: 2px 2px 4px; background: var(--bg-card); border: 1px solid var(--rule-soft); border-radius: 11px; }
.ac-head .ac-av { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 2px 10px -2px rgba(212,175,55,.5); }
.ac-head .ac-av svg { width: 23px; height: 23px; }
.ac-id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; gap: 1px; }
.ac-id .ac-fullname { font-size: 14.5px; font-weight: 660; color: var(--fg-strong); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-role { display: inline-flex; align-items: center; align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #1a1406; background: var(--grad); border-radius: 6px; padding: 2px 7px; margin: 3px 0 2px; box-shadow: 0 1px 6px -2px rgba(212,175,55,.5); }
.ac-mail { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ac-div { height: 1px; background: var(--rule-soft); margin: 5px 6px; }
.ac-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 8px 9px; border: 0; background: transparent; border-radius: 9px;
  text-align: left; cursor: pointer; color: var(--muted); font: inherit;
  font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background .1s, color .1s;
}
.ac-item[hidden] { display: none; }
.ac-item svg { width: 17px; height: 17px; flex: none; stroke-width: 1.7; color: var(--faint); transition: color .1s; }
.ac-item:hover, .ac-item.ac-cursor { background: var(--bg-hover); color: var(--fg); }
.ac-item:hover svg, .ac-item.ac-cursor svg { color: var(--accent-l); }
.ac-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ac-item.ac-out { color: #c98a8a; }
.ac-item.ac-out svg { color: #b56a6a; }
.ac-item.ac-out:hover, .ac-item.ac-out.ac-cursor { background: rgba(201,138,138,.1); color: #e0a0a0; }
.ac-item.ac-out:hover svg, .ac-item.ac-out.ac-cursor svg { color: #e0a0a0; }

/* ---------- Content ---------- */
.app-shell main.content { padding: 30px 34px 80px; max-width: none; width: 100%; margin: 0; }
.page-head { margin-bottom: 24px; }
.app-shell .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.app-shell .eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.app-shell h1.page-title { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; color: var(--fg-strong); margin: 0 0 8px; font-weight: 720; }
.app-shell .page-sub { color: var(--muted); font-size: 15px; max-width: 62ch; margin: 0; }

/* ---------- Doc-Layout (zweispaltig: Doc + Kontext-Spalte) ---------- */
.app-shell .doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 32px; align-items: start; }
.app-shell .doc-grid--solo { grid-template-columns: minmax(0, 1fr); }
.app-shell .doc { min-width: 0; grid-column: 1; grid-row: 1; }
.doc-ctx { grid-column: 2; grid-row: 1; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.doc-ctx .ctx-card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.doc-ctx .ctx-h { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 10px; }
.doc-ctx .ctx-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-ctx .ctx-toc a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.doc-ctx .ctx-toc a:hover { background: var(--bg-hover); color: var(--fg); }
.doc-ctx .ctx-toc li.active a { color: var(--accent-l); background: var(--accent-dim); }
.doc-ctx .ctx-toc li.locked a { color: var(--faint); }
.doc-ctx .ctx-toc-ct { font-family: var(--mono); font-size: 11px; color: var(--faint); flex: none; }
.doc-ctx .ctx-actions { gap: 2px; }
.doc-ctx .ctx-actions a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.doc-ctx .ctx-actions a:hover { background: var(--bg-hover); color: var(--fg); }
.doc-ctx .ctx-actions a svg { width: 16px; height: 16px; flex: none; stroke-width: 1.7; color: var(--faint); }
.doc-ctx .ctx-actions a:hover svg { color: var(--accent-l); }
.doc-ctx .ctx-actions a.locked { color: var(--faint); }
@media (max-width: 1080px) {
  .app-shell .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-ctx { position: static; }
}

/* ---------- RTL (Hebraeisch): App-Shell spiegeln ---------- */
[dir="rtl"].app-shell .sidebar,
[dir="rtl"] .app-shell .sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--rule); }
[dir="rtl"].app-shell .main,
[dir="rtl"] .app-shell .main { margin-left: 0; margin-right: var(--sb-w); }
[dir="rtl"] .sidebar .nav-item.active::before { left: auto; right: -12px; border-radius: 3px 0 0 3px; }
[dir="rtl"] .sidebar .nav-item .ct { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ws-trigger { text-align: right; }
[dir="rtl"] .tb-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ac-panel { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .topbar .search > svg { left: auto; right: 12px; }
[dir="rtl"] .topbar .search input { padding: 0 36px 0 40px; }
[dir="rtl"] .topbar .search kbd { right: auto; left: 10px; }
/* Doc-Grid kehrt seine Spalten unter dir=rtl automatisch um (Doc rechts, Ctx links). */

/* ---------- /baende/ — „Alle Baende"-Uebersicht (gestapelt, ohne Duplikat-Liste) ----------
   Die Band-Navigation ist die linke Sidebar (Welten-Switcher); diese Seite
   zeigt nur die Inhalte, der Switcher springt per Anker #bd-N hierher. */
.otzar-vols-overview { display: flex; flex-direction: column; max-width: 880px; }
.otzar-vols-overview .vol-section { padding: 22px 0; border-top: 1px solid var(--rule-soft); scroll-margin-top: 76px; }
.otzar-vols-overview .vol-section:first-child { border-top: 0; padding-top: 4px; }
.otzar-vols-overview .vol-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.otzar-vols-overview .vol-section-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--faint); background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; padding: 3px 8px; flex: none; }
.otzar-vols-overview .vol-section-title { font-size: 20px; font-weight: 680; color: var(--fg-strong); margin: 0; letter-spacing: -.01em; flex: 1; min-width: 0; }
.otzar-vols-overview .vol-section-ct { font-family: var(--mono); font-size: 11px; color: var(--cyan); background: rgba(0,212,170,.08); border: 1px solid rgba(0,212,170,.22); border-radius: 6px; padding: 1px 7px; flex: none; }
.otzar-vols-overview .vol-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.otzar-vols-overview .vol-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 11px; color: var(--fg); text-decoration: none; background: var(--bg-card); border: 1px solid var(--rule); transition: border-color .12s, background .12s; }
.otzar-vols-overview .vol-entry:hover { border-color: rgba(212,175,55,.4); background: var(--bg-elev); }
.otzar-vols-overview .vol-entry-go { color: var(--faint); flex: none; }
.otzar-vols-overview .vol-entry:hover .vol-entry-go { color: var(--accent); }
.otzar-vols-overview .vol-empty { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Mobile — Sidebar als Off-Canvas (CSS-only Hamburger-Toggle) ----------
   Desktop: Hamburger + Backdrop versteckt, Sidebar fix links. Unter 860px:
   .main volle Breite, Sidebar off-canvas (per #nav-toggle ein/ausgeblendet),
   abdunkelnder Backdrop zum Schliessen. */
.nav-burger { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 860px) {
  .app-shell .main { margin-left: 0; }
  [dir="rtl"].app-shell .main, [dir="rtl"] .app-shell .main { margin-right: 0; }
  .app-shell .sidebar {
    transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: var(--shadow); will-change: transform;
  }
  [dir="rtl"] .app-shell .sidebar { transform: translateX(100%); }
  #nav-toggle:checked ~ .app .sidebar { transform: none; }
  #nav-toggle:checked ~ .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.5);
    -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  }
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 9px; flex: none; cursor: pointer;
    color: var(--muted); border: 1px solid var(--rule); background: var(--bg-card);
  }
  .nav-burger:hover { color: var(--fg); background: var(--bg-hover); }
  .nav-burger svg { width: 18px; height: 18px; }
  .topbar { gap: 10px; padding: 0 14px; }
  .topbar .crumbs { display: none; }
  .topbar .tb-link { display: none; }
  .topbar .search { margin-left: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .app-shell .sidebar { transition: none; } }

/* Einzel-Welt-Seite: Zurueck-Link zur „Alle Baende"-Gesamtschau */
.page-head .vol-back { color: var(--accent-l); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.page-head .vol-back:hover { color: var(--accent); }

/* ===================================================================
   ENTWURF 2026-11 — Cloudflare × GitHub (Bruno 20.11.: „futuristisch,
   minimalistisch, rechnerisch“; Gold bleibt). Nur fuer body.app-shell.
   Was uebernommen ist:
     GitHub    — flache opake Topbar, eckige Rahmen-Buttons (32px, 6px),
                 Suche mit Tasten-Badge, Listen als Rahmen-Karten mit
                 Statuspunkt + Metazeile + Zaehler, Abschnittskopf
                 „Titel · Zaehler · Alle anzeigen“.
     Cloudflare — Schnellsuche in der Sidebar (Ctrl K), Einklapp-Schiene
                 unten links, Seitenkopf mit Doku-Chip + Primaeraktion
                 rechts, blaues Info-Banner, Start als „Was suchen Sie
                 heute?“ + Spaltenkarten mit Chevrons.
   Kuehle Blau-Schwarz-Flaeche statt Violett-Schwarz, Radius 6 statt 9–14.
   =================================================================== */
body.app-shell {
  --bg:        #0b0d12;
  --bg-soft:   #0e1117;
  --bg-card:   #12161e;
  --bg-elev:   #171c26;
  --bg-code:   #171c26;
  --rule:      #262c37;
  --rule-soft: #1f252f;
  --bg-hover:  #171c26;
  --fg:        #e4e7eb;
  --muted:     #9aa3ae;
  --fg-muted:  #9aa3ae;
  --fg-soft:   #9aa3ae;
  --fg-faint:  #6a7381;
  --kbd-bg:    #1f252f;
  --sb-w:      240px;
  --r:         6px;
  --c-info:    #3b82f6;
  --c-ok:      #3fb950;
  background: var(--bg);
}
:root[data-theme="light"] body.app-shell {
  --bg: #f6f8fa; --bg-soft: #f0f2f5; --bg-card: #ffffff; --bg-elev: #ffffff;
  --rule: #d0d7de; --rule-soft: #e3e8ee; --bg-hover: #eef1f5; --kbd-bg: #eef1f5;
}
/* Einklapp-Schiene: Checkbox vor .app, Label im Sidebar-Fuss. */
:root:has(#sb-rail:checked) body.app-shell { --sb-w: 60px; }

/* ---------- Topbar (GitHub) ---------- */
.app-shell .topbar {
  height: 56px; padding: 0 20px; gap: 12px;
  background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.app-shell .crumbs { font-size: 14px; gap: 6px; }
.app-shell .crumbs .home { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-strong); }
.app-shell .crumbs .home .mark {
  width: 26px; height: 26px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--grad); color: #1a1406; font-family: var(--serif); font-size: 15px; font-weight: 700;
}
.app-shell .crumbs .sep { color: var(--faint); font-weight: 300; }
.app-shell .crumbs .cur { font-weight: 600; }
.app-shell .topbar .search { max-width: 400px; margin-left: 4px; }
.app-shell .topbar .search input {
  height: 32px; border-radius: var(--r); font-size: 13.5px; padding: 0 44px 0 34px;
  background: var(--bg-soft); border-color: var(--rule);
}
.app-shell .topbar .search input:focus { background: var(--bg-card); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.app-shell .topbar .search > svg { left: 11px; width: 15px; height: 15px; }
.app-shell .topbar .search kbd { right: 8px; border-radius: 4px; background: var(--kbd-bg); padding: 0 6px; line-height: 18px; }
.app-shell .tb-right { gap: 6px; }
.tb-sep { width: 1px; height: 22px; background: var(--rule); margin: 0 4px; }
.app-shell .tb-btn, .app-shell .tb-right .pill, .app-shell .ac-trigger, .app-shell .otzar-lang-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; min-width: 32px; padding: 0 9px; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--bg-soft); color: var(--muted);
  font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; font-family: var(--sans);
  transition: background .12s, border-color .12s, color .12s; white-space: nowrap;
}
.app-shell .tb-btn svg, .app-shell .otzar-lang-trigger svg { width: 16px; height: 16px; stroke-width: 1.8; }
.app-shell .tb-btn:hover, .app-shell .tb-right .pill:hover, .app-shell .ac-trigger:hover, .app-shell .otzar-lang-trigger:hover {
  background: var(--bg-hover); border-color: var(--faint); color: var(--fg);
}
.app-shell .tb-right .pill { color: var(--fg); font-weight: 600; }
.app-shell .tb-right .pill .ico { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.app-shell .otzar-lang-trigger .caret { display: none; }
.app-shell .otzar-lang-trigger .otzar-lang-current { font-family: var(--mono); font-size: 12px; }
.app-shell .otzar-lang-menu > summary { list-style: none; }
.app-shell .otzar-lang-menu > summary::-webkit-details-marker { display: none; }
.app-shell .ac-trigger { padding: 0 9px 0 4px; }
.app-shell .ac-trigger .ac-av { width: 24px; height: 24px; }
.app-shell .ac-trigger .ac-av svg { width: 14px; height: 14px; }

/* ---------- Sidebar (Cloudflare) ---------- */
.app-shell .sidebar { background: var(--bg-soft); }
.app-shell .ws-trigger { padding: 12px 14px; margin-bottom: 4px; }
.app-shell .ws-badge { width: 32px; height: 32px; border-radius: var(--r); font-size: 18px; box-shadow: none; }
.app-shell .ws-name .ws-l1 b { font-size: 14.5px; }
.app-shell .ws-name .ws-l2 { font-size: 11.5px; }
.app-shell .ws-panel { border-radius: 8px; }
.sb-quick {
  display: flex; align-items: center; gap: 8px; margin: 2px 12px 8px;
  height: 32px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--bg-card); color: var(--faint);
  font-size: 13px; cursor: text; transition: border-color .12s, color .12s;
}
.sb-quick:hover { border-color: var(--faint); color: var(--muted); }
.sb-quick svg { width: 14px; height: 14px; flex: none; stroke-width: 2; }
.sb-quick span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-quick kbd { font-family: var(--mono); font-size: 10.5px; color: var(--faint); background: var(--kbd-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; line-height: 17px; flex: none; }
.app-shell .sidebar .nav { padding: 2px 12px 12px; }
.app-shell .nav-group { margin-top: 12px; }
.app-shell .nav-label { font-size: 10.5px; padding: 0 10px 6px; }
.app-shell .sidebar .nav-item { padding: 6px 10px; border-radius: var(--r); font-size: 13.5px; gap: 10px; }
.app-shell .sidebar .nav-item svg { width: 16px; height: 16px; stroke-width: 1.8; color: var(--faint); }
.app-shell .sidebar .nav-item:hover svg { color: var(--fg); }
.app-shell .sidebar .nav-item.active { background: var(--accent-dim); color: var(--accent-l); }
.app-shell .sidebar .nav-item.active svg { color: var(--accent-l); }
.app-shell .sidebar .nav-item.active::before { top: 6px; bottom: 6px; }
.app-shell .nav-item .chev { margin-left: auto; width: 14px; height: 14px; color: var(--faint); opacity: 0; transition: opacity .12s; }
.app-shell .nav-item:hover .chev { opacity: 1; }
.app-shell .sb-foot { padding: 8px 10px 8px 14px; gap: 8px; }
.sb-rail-btn {
  margin-left: auto; width: 26px; height: 26px; border-radius: var(--r); display: grid; place-items: center;
  color: var(--faint); border: 1px solid transparent; cursor: pointer; transition: background .12s, color .12s;
}
.sb-rail-btn:hover { background: var(--bg-hover); color: var(--fg); border-color: var(--rule); }
.sb-rail-btn svg { width: 15px; height: 15px; stroke-width: 1.8; }
.app-shell .sb-foot .sb-ver { margin-left: 0; }
/* eingeklappt: nur Icons */
:root:has(#sb-rail:checked) .app-shell .ws-name, :root:has(#sb-rail:checked) .app-shell .ws-sw,
:root:has(#sb-rail:checked) .app-shell .sb-quick span, :root:has(#sb-rail:checked) .app-shell .sb-quick kbd,
:root:has(#sb-rail:checked) .app-shell .nav-label, :root:has(#sb-rail:checked) .app-shell .nav-item .lbl,
:root:has(#sb-rail:checked) .app-shell .nav-item .chev, :root:has(#sb-rail:checked) .app-shell .sb-foot > span,
:root:has(#sb-rail:checked) .app-shell .ws-panel { display: none; }
:root:has(#sb-rail:checked) .app-shell .ws-trigger { padding: 12px 14px; justify-content: center; }
:root:has(#sb-rail:checked) .app-shell .sb-quick { justify-content: center; padding: 0; margin: 2px 12px 8px; }
:root:has(#sb-rail:checked) .app-shell .sidebar .nav-item { justify-content: center; padding: 8px 0; }
:root:has(#sb-rail:checked) .app-shell .sb-foot { justify-content: center; padding: 8px 0; }
:root:has(#sb-rail:checked) .sb-rail-btn { margin: 0; }
:root:has(#sb-rail:checked) .sb-rail-btn svg { transform: scaleX(-1); }

/* ---------- Seitenkopf (Cloudflare) ---------- */
.app-shell main.content { padding: 24px 32px 80px; }
.app-shell .page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rule-soft);
}
.app-shell .ph-main { min-width: 0; flex: 1; }
.app-shell .ph-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-shell h1.page-title { font-size: 24px; font-weight: 650; letter-spacing: -.015em; margin: 0; }
.app-shell .page-sub { font-size: 14px; margin-top: 6px; }
.app-shell .ph-actions { display: flex; align-items: center; gap: 8px; flex: none; padding-top: 2px; }
.btn-doc {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--bg-card); color: var(--muted);
  font-size: 12.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn-doc:hover { color: var(--fg); border-color: var(--faint); }
.btn-doc svg { width: 13px; height: 13px; stroke-width: 2; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r);
  background: var(--accent); color: #1a1406; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .12s;
}
.btn-gold:hover { background: var(--accent-l); }
.btn-gold svg { width: 15px; height: 15px; stroke-width: 2.2; }
.btn-plain {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r);
  background: var(--bg-soft); color: var(--fg); border: 1px solid var(--rule);
  font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn-plain:hover { background: var(--bg-hover); border-color: var(--faint); }
.btn-plain svg { width: 15px; height: 15px; stroke-width: 1.9; color: var(--faint); }

/* ---------- Info-Banner (Cloudflare) ---------- */
.banner-info {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 0 0 20px;
  border-radius: var(--r); border: 1px solid rgba(59,130,246,.35); background: rgba(59,130,246,.08);
  font-size: 13.5px; color: var(--fg);
}
.banner-info svg { width: 16px; height: 16px; flex: none; color: var(--c-info); stroke-width: 2; margin-top: 2px; }
.banner-info a { color: var(--c-info); font-weight: 500; }
.banner-info .x { margin-left: auto; color: var(--faint); text-decoration: none; font-size: 18px; line-height: 1; }

/* ---------- Pills / Zaehler ---------- */
.pill-ct {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: var(--muted); background: var(--bg-elev); border: 1px solid var(--rule);
}
.pill-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--accent-l); border: 1px solid rgba(212,175,55,.4);
}

/* ---------- Abschnittskopf + Listen-Karten (GitHub) ---------- */
.sec-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
}
.sec-head h2, .sec-head .perikopen-col-title { font-size: 14px; font-weight: 600; margin: 0; color: var(--fg-strong); }
.sec-head .sigle { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.sec-head .sec-all { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sec-head .sec-all:hover { color: var(--fg); }
.sec-head .sec-all svg { width: 14px; height: 14px; stroke-width: 2; }
.app-shell .perikopen-grid { gap: 28px; margin-top: 0; }
.app-shell .perikopen-col-head { display: none; }
.app-shell .otzar-cards {
  margin: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg-card); overflow: hidden;
}
.app-shell .perikopen-grid .otzar-cards { margin-top: 0; }
.app-shell .otzar-card-link {
  grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px;
  border-top: 1px solid var(--rule-soft); align-items: start;
}
.app-shell .otzar-card:first-child .otzar-card-link { border-top: 0; }
.app-shell .otzar-card:last-child .otzar-card-link { border-bottom: 0; }
.app-shell .otzar-card-link:hover { background: var(--bg-hover); padding-left: 14px; padding-right: 14px; }
.app-shell .otzar-card-num {
  width: 16px; height: 16px; border-radius: 50%; margin-top: 3px;
  border: 1.5px solid var(--c-ok); color: transparent; font-size: 0; letter-spacing: 0;
  position: relative;
}
.app-shell .otzar-card-num::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--c-ok); }
.app-shell .otzar-card-body { gap: 3px; }
.app-shell .otzar-card-title { font-size: 14px; font-weight: 600; color: var(--fg-strong); line-height: 1.35; }
.app-shell .otzar-card-link:hover .otzar-card-title { color: var(--accent-l); }
.app-shell .otzar-card-summary { font-size: 12.5px; color: var(--muted); font-family: var(--mono); letter-spacing: -.01em; }
.app-shell .otzar-card-arrow { font-size: 0; width: 14px; height: 14px; margin-top: 3px; color: var(--faint); }
.app-shell .otzar-card-arrow::before {
  content: ""; display: block; width: 7px; height: 7px; margin: 3px 0 0 2px;
  border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg);
}
.app-shell .otzar-card-link:hover .otzar-card-arrow { color: var(--fg); transform: none; }
[dir="rtl"] .app-shell .otzar-card-arrow::before { transform: rotate(-135deg); margin: 3px 2px 0 0; }

/* ---------- Start (Cloudflare „Shipping today?“) ---------- */
.dash-hero { text-align: center; padding: 28px 0 26px; }
.dash-hero h1 { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 18px; color: var(--fg-strong); }
.dash-hero .dash-q {
  position: relative; max-width: 640px; margin: 0 auto; display: flex; align-items: center;
}
.dash-hero .dash-q > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--faint); stroke-width: 2; }
.dash-hero .dash-q input {
  width: 100%; height: 44px; padding: 0 70px 0 42px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--rule); color: var(--fg);
  font-family: var(--sans); font-size: 15px; outline: none;
}
.dash-hero .dash-q input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.dash-hero .dash-q kbd { position: absolute; right: 12px; font-family: var(--mono); font-size: 11px; color: var(--faint); background: var(--kbd-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 0 6px; line-height: 18px; }
.dash-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.dash-col-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-strong); margin: 0 0 8px; text-decoration: none; }
.dash-col-head svg { width: 14px; height: 14px; color: var(--faint); stroke-width: 2; }
.dash-col-head:hover svg { color: var(--fg); }
.dash-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg-card); overflow: hidden; }
.dash-list li + li { border-top: 1px solid var(--rule-soft); }
.dash-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--fg); text-decoration: none;
}
.dash-list a:hover { background: var(--bg-hover); }
.dash-list .ico { width: 22px; height: 22px; border-radius: var(--r); display: grid; place-items: center; flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--faint); background: var(--bg-elev); border: 1px solid var(--rule); }
.dash-list .ico.gold { background: var(--grad); color: #1a1406; border-color: transparent; }
.dash-list .ico svg { width: 13px; height: 13px; stroke-width: 1.9; }
.dash-list .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list .txt small { display: block; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.dash-list .ct { font-family: var(--mono); font-size: 11px; color: var(--faint); flex: none; }
.dash-list .go { width: 14px; height: 14px; color: var(--faint); flex: none; stroke-width: 2; }
.dash-list a:hover .go { color: var(--fg); }
.dash-list .more { display: block; padding: 8px 12px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.dash-list .more:hover { color: var(--fg); background: var(--bg-hover); }
.dash-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.dash-card { border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg-card); padding: 14px 16px; }
.dash-card h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 10px; color: var(--fg-strong); }
.dash-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.dash-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }
.dash-tl li { position: relative; padding: 0 0 12px 22px; font-size: 13px; }
.dash-tl li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dash-tl li:last-child { padding-bottom: 0; }
.dash-tl small { display: block; color: var(--faint); font-size: 11.5px; margin-bottom: 2px; }
.dash-tl a { color: var(--fg); text-decoration: none; }
.dash-tl a:hover { color: var(--accent-l); }
.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
@media (max-width: 1000px) { .dash-cols { grid-template-columns: 1fr; } .dash-side { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app-shell .page-head { flex-direction: column; }
  .app-shell .tb-btn.tb-help { display: none; }
}
