/* Lernpfad mit Kapiteln (PFAD-01 bis PFAD-07): geschwungene Kette runder Knoten je Kapitel. */
.chapter-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 30px; --swing: clamp(8px, 3.4vw, 26px); }
.chapter { display: grid; gap: 14px; min-width: 0; }
.chapter-head { border-radius: 18px; padding: 16px 18px 18px; background: var(--sage); color: #2d4720; box-shadow: 0 4px 0 #0c1b3314; }
.chapter[data-tone="lavender"] .chapter-head { background: var(--lavender); color: #43345f; }
.chapter[data-tone="peach"] .chapter-head { background: var(--peach); color: #62391f; }
.chapter[data-tone="blue"] .chapter-head { background: #dcecf1; color: #174553; }
.chapter-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.chapter-head h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 20px; line-height: 1.3; letter-spacing: -.2px; }
.chapter-topics { margin: 8px 0 0; font-size: 14px; line-height: 1.5; opacity: .92; }

.chapter-nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.path-step { min-width: 0; padding-inline-start: calc(var(--shift, 0) * var(--swing)); }
.chapter-nodes .path-row { width: 100%; padding: 6px 4px; gap: 16px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; text-align: left; min-height: 44px; }
.chapter-nodes .path-row:hover { background: #ffffff80; }
.chapter-nodes .path-row:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.chapter-nodes .path-row > .icon:last-child { flex-shrink: 0; margin-inline-start: auto; color: #4d5d70; }

.chapter-nodes .path-node { width: 72px; height: 72px; border: 0; box-shadow: 0 6px 0 #0c1b3326; }
.chapter-nodes .path-node:hover { transform: none; }
.chapter-nodes .path-row:active .path-node { transform: translateY(3px); box-shadow: 0 3px 0 #0c1b3326; }
.chapter-nodes .path-node.completed { background: var(--sunny); color: var(--ink); box-shadow: 0 6px 0 var(--sunny-deep); }
.chapter-nodes .path-node.completed .path-node-icon { color: var(--ink); }
.chapter-nodes .path-node.next { width: 82px; height: 82px; box-shadow: 0 6px 0 var(--sunny-deep), 0 0 0 5px #facc1566; animation: none; }
.chapter-nodes .path-callout { top: -34px; font-size: 12px; padding: 4px 12px; background: var(--ink); }
.chapter-nodes .path-callout::after { border-width: 6px; border-top-color: var(--ink); }

/* Kapitel-Check: Pokal-Knoten mit eckigerer Form, damit er sich von Lektionen abhebt. */
.chapter-nodes .path-node.check { border-radius: 24px; background: #fff7d1; color: #6a5200; box-shadow: 0 6px 0 var(--sunny-deep); }
.chapter-nodes .path-node.check.completed { background: var(--sunny); color: var(--ink); }
.chapter-nodes .check-row.recommended .path-node.check { box-shadow: 0 6px 0 var(--sunny-deep), 0 0 0 5px #facc1566; }
.chapter-nodes .path-node.review { background: #dcecf1; color: #174553; }

.check-missed { margin: 18px 0 8px; text-align: left; }
.check-missed h3 { margin: 0 0 8px; font-size: 16px; }
.check-missed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check-missed li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #d5dfeb; border-radius: 12px; background: #fff; font-size: 14px; }
.check-missed li span { color: #4d5d70; text-align: right; }

@media (max-width: 480px) {
  .chapter-head h3 { font-size: 18px; }
  .chapter-nodes .path-node { width: 64px; height: 64px; }
  .chapter-nodes .path-node.next { width: 72px; height: 72px; }
  .chapter-nodes .path-row { gap: 12px; }
}
.chapter-nodes .path-row.locked, .chapter-nodes .path-row:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(1); }
.chapter-nodes .path-row.locked:hover { background: transparent; }
.chapter[data-locked] .chapter-head { opacity: .7; }
