/* ============ Lesebereich (26.09.2026) ============
   Die rechte Bildhälfte bis zur Mitte, links bleiben die Figuren frei.
   Die Glasfläche folgt dem Rezept von A.S.G.A.R.D.: rund halb abgedunkelt,
   oben und unten weich ins Bild ausgeblendet, ohne Unschärfe, damit das Bild
   durchscheint. Jede Zeile trägt einen Schatten, sonst flimmert Schrift auf dem Bild. */

body.view-open .hero-area { left: 50vw; right: clamp(18px, 2.4vw, 48px); width: auto; top: 96px; bottom: 76px; transform: none; max-height: none; }
body.view-open .hero-area::before { content: none; }
body.view-open .view-shell,
body.view-open .view-panel { height: 100%; max-height: none; }

.view-panel { border-radius: 10px;
  background: linear-gradient(to bottom,
    rgba(6, 12, 24, 0.10) 0,
    rgba(6, 12, 24, 0.34) 2.5rem,
    rgba(6, 12, 24, 0.50) 7rem,
    rgba(4, 8, 18, 0.56) calc(100% - 2.5rem),
    rgba(4, 8, 18, 0.30) 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42); }
.view-panel-inner { padding: 20px clamp(16px, 2vw, 30px) 28px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 10px rgba(0, 0, 0, 0.7); }
.view-top { position: sticky; top: -20px; z-index: 5; margin: -20px calc(-1 * clamp(16px, 2vw, 30px)) 16px; padding: 20px clamp(16px, 2vw, 30px) 12px;
  background: linear-gradient(to bottom, rgba(6, 12, 24, 0.66), rgba(6, 12, 24, 0.40)); border-radius: 10px 10px 0 0; }
.view-top::before { left: clamp(16px, 2vw, 30px); right: 45%; }
.view-actions { display: none; }

.rd { font-family: 'Cormorant Garamond', serif; color: rgba(236, 244, 255, 0.92); }
.rd a { color: #cfe2ff; text-decoration: none; }
.rd a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rd-p { margin: 0 0 12px; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; }
.rd-h { margin: 22px 0 8px; font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(13px, 1vw, 15px); letter-spacing: 0.1em; text-transform: uppercase; color: #eaf3ff; }
.rd-list { margin: 0 0 14px; padding-left: 20px; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.5; }
.rd-list li { margin-bottom: 5px; }

/* Übersichten */
.rd-group-title { margin: 26px 0 12px; padding-bottom: 6px; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(188, 214, 255, 0.82); border-bottom: 1px solid rgba(188, 214, 255, 0.18); }
.rd-group-title:first-child { margin-top: 2px; }
.rd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rd-card { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 14px 16px; border: 1px solid rgba(188, 214, 255, 0.16); border-radius: 8px; background: rgba(8, 16, 32, 0.34); transition: border-color 0.2s, background 0.2s; }
.rd .rd-card:hover { border-color: rgba(188, 214, 255, 0.5); background: rgba(20, 36, 66, 0.42); text-decoration: none; }
.rd-card strong { font-size: 22px; font-weight: 600; color: #f4f8ff; }
.rd-card-meta { font-family: 'Cinzel', serif; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(188, 214, 255, 0.76); }
.rd-card-text { font-size: 16px; line-height: 1.4; color: rgba(226, 236, 252, 0.82); }
.rd-chapters { margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.rd-chapters li { counter-increment: ch; position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 0 10px 44px; border-bottom: 1px solid rgba(188, 214, 255, 0.1); }
.rd-chapters li::before { content: counter(ch, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: 'Cinzel', serif; font-size: 11px; color: rgba(188, 214, 255, 0.6); }
.rd-chapters a { font-size: 21px; font-weight: 600; }

/* Detailseiten */
.rd-back { display: inline-block; margin-bottom: 8px; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.rd-detail-head { margin: 4px 0 12px; }
.rd-detail-kicker { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(188, 214, 255, 0.76); }
.rd-detail-name { margin: 2px 0 4px; font-size: clamp(30px, 2.6vw, 42px); font-weight: 600; line-height: 1.05; color: #f4f8ff; }
.rd-detail-sub { margin: 0; font-size: 18px; font-style: italic; color: rgba(214, 228, 250, 0.82); }
.rd-jumps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 8px 0; border-top: 1px solid rgba(188, 214, 255, 0.14); border-bottom: 1px solid rgba(188, 214, 255, 0.14); }
.rd-jumps a { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.rd-section { margin-top: 24px; }
.rd-section-title { margin: 0 0 10px; padding-bottom: 6px; font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #eaf3ff; border-bottom: 1px solid rgba(188, 214, 255, 0.22); }
.rd-profile { display: grid; gap: 0; margin: 0; }
.rd-profile-row { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(188, 214, 255, 0.12); }
.rd-profile dt { padding-top: 4px; font-family: 'Cinzel', serif; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(188, 214, 255, 0.8); }
.rd-profile dd { margin: 0; font-size: 18px; line-height: 1.35; }
.rd-step, .rd-relation, .rd-boss { margin-bottom: 14px; }
.rd-relation-name { font-size: 21px; font-weight: 600; }
.rd-relation-kind { display: block; margin: 1px 0 6px; font-style: italic; color: rgba(214, 228, 250, 0.76); }
.rd-boss { padding: 12px 16px; border: 1px solid rgba(188, 214, 255, 0.16); border-radius: 8px; background: rgba(8, 16, 32, 0.3); }
.rd-boss .rd-h { margin-top: 4px; }

/* Hinweiskästen, Zitate, Tabellen */
.rd-note { margin: 12px 0 16px; padding: 10px 14px; border-left: 3px solid; border-radius: 0 6px 6px 0; font-size: 18px; line-height: 1.45; }
.rd-note strong { display: block; margin-bottom: 4px; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.rd-note p { margin: 0; }
.rd-note--info { border-color: #7fb0ff; background: rgba(40, 80, 150, 0.22); }
.rd-note--warn { border-color: #e8c37a; background: rgba(140, 100, 30, 0.2); }
.rd-note--warn .rd-list { margin: 0; }
.rd-quote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 2px solid rgba(188, 214, 255, 0.4); font-size: 19px; font-style: italic; }
.rd-quote p { margin: 0 0 4px; }
.rd-quote cite { font-size: 14px; font-style: normal; color: rgba(188, 214, 255, 0.76); }
.rd-table-wrap { overflow-x: auto; margin: 6px 0 16px; border: 1px solid rgba(188, 214, 255, 0.14); border-radius: 6px; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.35; }
.rd-table caption { padding: 8px 10px 4px; text-align: left; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(188, 214, 255, 0.8); }
.rd-table th { padding: 7px 10px; text-align: left; font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #07101f; background: rgba(214, 230, 255, 0.86); text-shadow: none; }
.rd-table td { padding: 7px 10px; vertical-align: top; border-top: 1px solid rgba(188, 214, 255, 0.1); }
.rd-table tbody tr:nth-child(even) td { background: rgba(188, 214, 255, 0.05); }

/* Kapitelwahl und Blättern */
.rd-chapter-nav { margin: 0 0 10px; }
.rd-chapter-select { width: 100%; padding: 8px 10px; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #eaf3ff; background: rgba(8, 16, 32, 0.72); border: 1px solid rgba(188, 214, 255, 0.3); border-radius: 6px; }
.rd-pager { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0 6px; padding-top: 12px; font-size: 18px; border-top: 1px solid rgba(188, 214, 255, 0.18); }
.rd-sources { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.rd-source-note { color: rgba(214, 228, 250, 0.62); }
.rd-entry { padding: 12px 0; border-bottom: 1px solid rgba(188, 214, 255, 0.12); }
.rd-field b { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(188, 214, 255, 0.8); }

/* Spoiler: verdeckt, bis der Abschnitt erreicht ist oder man einzeln aufdeckt */
.rd-spoiler { position: relative; }
.rd-spoiler > :first-child { filter: blur(9px); user-select: none; pointer-events: none; }
.rd-spoiler.is-revealed > :first-child { filter: none; user-select: auto; pointer-events: auto; }
.rd-spoiler-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px;
  border: 1px dashed rgba(188, 214, 255, 0.32); border-radius: 8px; background: rgba(4, 8, 18, 0.46); color: #eaf3ff; cursor: pointer; font-family: 'Cormorant Garamond', serif; }
.rd-spoiler-cover strong { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.rd-spoiler-cover span { font-size: 15px; color: rgba(214, 228, 250, 0.82); }

@media (max-width: 820px) {
  body.view-open .hero-area { left: 12px; right: 12px; top: 70px; bottom: 70px; }
  .rd-profile-row { grid-template-columns: 1fr; gap: 2px; }
}
.rd-hidden-note { margin: 20px 0 4px; font-size: 16px; font-style: italic; color: rgba(214, 228, 250, 0.7); }
/* Im Steckbrief ist die Zeile flach: Deckel auf Zeilenhöhe, einzeilig */
.rd-profile .rd-spoiler-cover { min-height: 0; flex-direction: row; gap: 10px; border-radius: 4px; }
.rd-profile .rd-spoiler-cover span { font-size: 13px; }
.rd-cards--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rd-cards--compact .rd-card { padding: 9px 12px; }
.rd-cards--compact .rd-card strong { font-size: 18px; }

/* Hinweis vor einem ganzen Eintrag aus einem späteren Abschnitt */
.rd-gate { margin: 18px 0; padding: 20px 22px; border: 1px dashed rgba(188, 214, 255, 0.36); border-radius: 10px; background: rgba(4, 8, 18, 0.46); }
.rd-gate strong { display: block; margin-bottom: 6px; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #eaf3ff; }
.rd-gate p { margin: 0 0 14px; font-size: 18px; line-height: 1.45; }
.rd-gate-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-gate-btn { padding: 9px 16px; border: 1px solid rgba(200, 222, 255, 0.8); border-radius: 5px; background: linear-gradient(180deg, #eaf3ff 0%, #bcd6ff 100%); color: #07101f; font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-shadow: none; }
.rd-gate-btn--ghost { background: rgba(16, 28, 52, 0.4); color: #eef4ff; border-color: rgba(170, 200, 255, 0.45); }
