/**
 * WZIG Presto Jumpmarks — Kapitel-Übersicht-Styling.
 *
 * Im Gegensatz zum Transkript (dezent, klein) ist die Kapitel-Übersicht
 * AUFFÄLLIG. Sie ersetzt für Videobeiträge das frühere TOC-Element und
 * soll Menschen wie LLMs auf die Kapitel aufmerksam machen.
 */

.hw-chapters {
  margin: 1em 0;
  padding: 1em 1.2em;
  background: #f8f9fb;
  border-left: 4px solid #2271b1;
  border-radius: 4px;
}

.hw-chapters > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #1a3a5c;
}
.hw-chapters > summary::-webkit-details-marker { display: none; }
.hw-chapters > summary::marker { content: ""; }

.hw-chapters__summary::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 0.4em;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.hw-chapters[open] .hw-chapters__summary::after {
  content: " ▲";
}

.hw-chapters__heading {
  display: inline;
  margin: 0;
  font-size: 1.15em;
  color: #1a3a5c;
  font-weight: 600;
}

.hw-chapters__content {
  /* Halbiert ggü. v0.5 (war 1em): weniger Luft zwischen Überschrift und Intro */
  margin-top: 0.5em;
}

.hw-chapters__intro {
  /* Halbiert ggü. v0.5 (war 0.8em): weniger Luft zwischen Intro und erstem Kapitel */
  margin: 0 0 0.2em;
  color: #555;
  font-size: 0.82em;
}

.hw-chapters__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-chapters__list li {
  padding: 0.45em 0;
  border-bottom: 1px dashed #d6dbe2;
  font-size: 1.02em;
  line-height: 1.5;
}
.hw-chapters__list li:last-child {
  border-bottom: none;
}

.hw-chapters__time {
  display: inline-block;
  min-width: 4.5em;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #2271b1;
  font-weight: 600;
}

.hw-chapters__title {
  color: #222;
}

.hw-chapters__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.hw-chapters__list a:hover {
  border-bottom-color: #2271b1;
}

@media (max-width: 600px) {
  .hw-chapters {
    margin: 1.4em 0;
    padding: 1em 1.2em;
  }
  .hw-chapters__list li {
    padding: 0.5em 0;
  }
  .hw-chapters__time {
    display: block;
    min-width: 0;
    margin-bottom: 0.1em;
  }
}
