/* ============================================================
   Limbus Leseproben-Viewer – Reader Overlay
   ============================================================ */

.limbus-sample-trigger-wrap {
      margin: 2rem 0;
}

.limbus-sample-btn {
      font-size: 1rem;
      gap: 0.5rem;
}

/* Overlay */
.limbus-reader-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: #f9f6f0;
      color: #1a1a2e;
      display: flex;
      flex-direction: column;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      font-family: 'Georgia', 'Times New Roman', serif;
}

.limbus-reader-overlay.is-open {
      opacity: 1;
      pointer-events: all;
}

.limbus-reader-overlay.dark-mode {
      background: #12111a;
      color: #e8e4dc;
}

/* Top Bar */
.limbus-reader-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1.5rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      position: sticky;
      top: 0;
      z-index: 2;
}

.dark-mode .limbus-reader-bar {
      background: rgba(18, 17, 26, 0.85);
      border-color: rgba(255, 255, 255, 0.08);
}

.limbus-reader-title {
      font-family: var(--lmb-font-sans, sans-serif);
      font-size: 0.85rem;
      font-weight: 600;
      color: #888;
      letter-spacing: 0.05em;
      text-transform: uppercase;
}

.limbus-reader-controls {
      display: flex;
      gap: 0.5rem;
      align-items: center;
}

.limbus-reader-ctrl {
      background: transparent;
      border: 1px solid rgba(0, 0, 0, 0.15);
      border-radius: 6px;
      padding: 4px 10px;
      font-size: 0.8rem;
      cursor: pointer;
      color: inherit;
      transition: background 0.15s, border-color 0.15s;
      line-height: 1.4;
}

.limbus-reader-ctrl:hover {
      background: rgba(0, 0, 0, 0.06);
}

.dark-mode .limbus-reader-ctrl {
      border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .limbus-reader-ctrl:hover {
      background: rgba(255, 255, 255, 0.08);
}

.limbus-reader-close {
      font-size: 1rem;
      padding: 4px 8px;
}

/* Scrollable Content */
.limbus-reader-content {
      overflow-y: auto;
      padding: 3rem 1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
}

.limbus-reader-content>* {
      max-width: 680px;
      width: 100%;
}

.limbus-reader-content p {
      line-height: 1.9;
      margin-bottom: 1.4em;
      font-size: var(--lmb-reader-size, 1.1rem);
}

.limbus-reader-content h2,
.limbus-reader-content h3 {
      font-family: var(--lmb-font-sans, sans-serif);
      margin: 2em 0 0.8em;
      font-size: calc(var(--lmb-reader-size, 1.1rem) * 1.3);
}

.limbus-reader-end-note {
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid currentColor;
      opacity: 0.4;
      text-align: center;
      font-size: 0.85rem;
      font-family: var(--lmb-font-sans, sans-serif);
      letter-spacing: 0.08em;
      text-transform: uppercase;
}

@media (max-width: 640px) {
      .limbus-reader-content {
            padding: 2rem 0.75rem;
      }

      .limbus-reader-title {
            display: none;
      }
}