/* Kapitelleiste der Erklärvideos – gehört zu player.js (18. Okt. 2026).
   Farben kommen aus den Variablen der jeweiligen Seite. */
html body { padding-bottom: 104px; }
.narr-sub { bottom: 88px; }

.narr-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0 16px 10px;
}
.narr-track { height: 3px; background: var(--line); margin: 0 -16px 9px; }
.narr-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }
.narr-row { display: flex; align-items: center; gap: 14px; max-width: 1000px; margin: 0 auto; }
.narr-chapters { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; min-width: 0; }
.narr-chapters li { display: flex; min-width: 0; flex: 1 1 0; }
.narr-chip {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  border: 1px solid transparent; background: transparent; border-radius: 10px;
  padding: 6px 9px; cursor: pointer; text-align: left;
  color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 12.5px; line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}
.narr-chip:hover { background: var(--surface-2); color: var(--ink); }
.narr-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.narr-num {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.narr-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.narr-chip.is-on { background: var(--accent-tint); color: var(--accent-deep); border-color: var(--accent); }
.narr-chip.is-on .narr-num { background: var(--accent); color: var(--accent-ink, var(--paper)); border-color: var(--accent); }
.narr-chip.is-done { opacity: 0.7; }
.narr-chip.is-done .narr-num { background: var(--surface-2); border-color: transparent; }
.narr-next {
  flex: none; font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--accent-ink, var(--paper)); background: var(--accent); border: 0; border-radius: 999px;
  padding: 9px 18px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease;
}
.narr-next:hover { background: var(--accent-deep); }
.narr-next:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* Schmale Fenster: nur das aktive Kapitel trägt seinen Namen, die anderen
   die Nummer – sonst werden bei sieben Kapiteln (api) die Namen abgeschnitten. */
@media (max-width: 900px) {
  .narr-chip:not(.is-on) .narr-label { display: none; }
  .narr-chip:not(.is-on) { justify-content: center; padding: 6px 4px; }
}
@media (max-width: 640px) {
  .narr-label { display: none; }
  .narr-chip { justify-content: center; padding: 6px 4px; }
  .narr-row { gap: 10px; }
}
