.js-course { padding-block: 3rem 5rem; }
.js-heading { margin-bottom: 2rem; max-width: 62rem; }
.js-heading .eyebrow, .js-heading > p, .js-meta, .js-help { color: var(--muted); }
.js-heading h1 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin-block: 1rem; }
.js-heading h1 > span { color: var(--blue); }
.js-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted); }
.js-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.js-toc { position: sticky; top: 1.5rem; padding: 1rem 0; border-top: 2px solid var(--blue); }
.js-toc > p { font-weight: 550; margin-bottom: .6rem; }
.js-toc ol { margin: 0; padding: 0; list-style: none; }
.js-toc li + li { margin-top: .2rem; }
.js-toc a { display: block; padding: .5rem .65rem; font-size: .875rem; text-decoration: none; border-left: 2px solid transparent; }
.js-toc a[aria-current] { color: var(--blue); background: var(--topic-bg); border-left-color: var(--blue); }
.js-content { min-width: 0; max-width: 58rem; }
.js-content section + section { margin-top: 2.5rem; }
.js-content h2, .js-overview h2 { font-size: 1.65rem; font-weight: 550; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 1rem; }
.js-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .65rem; }
.js-content p + p { margin-top: 1rem; }
.js-content ul, .js-content ol { padding-left: 1.4rem; }
.js-content li + li { margin-top: .4rem; }
.js-content code, .js-overview code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.js-content :not(pre) > code { color: #b6d6ff; background: #8bb4e50d; padding: .1em .3em; border-radius: .2rem; overflow-wrap: anywhere; }
.js-content pre { overflow-x: auto; padding: 1.25rem; background: #10151c; border: 1px solid var(--line); border-radius: .3rem; line-height: 1.65; tab-size: 2; }
.js-goals { border-left: 3px solid var(--blue); padding: 1rem 1.25rem; background: var(--topic-bg); margin-bottom: 2rem; }
.js-goals p { font-weight: 550; }
.js-goals ul { margin-bottom: 0; }
.js-callout { border-left: 3px solid #e8c67a; padding: 1rem 1.25rem; background: #e8c67a0b; margin-block: 1.25rem; }
.js-playground { margin-block: 1.5rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--topic-bg); overflow: hidden; }
.js-playground label { display: block; font-size: .875rem; font-weight: 550; padding: 1rem 1.25rem .6rem; }
.js-playground textarea { display: block; width: 100%; min-height: 12rem; resize: vertical; font: .9375rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; background: #10151c; color: var(--ink); border: 0; border-block: 1px solid var(--line); padding: 1rem 1.25rem; tab-size: 2; border-radius: 0; }
.js-playground textarea:focus-visible { outline-offset: -3px; }
.js-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: .9rem 1.25rem; }
.js-button { font: inherit; font-size: .875rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .25rem; background: transparent; color: var(--ink); padding: .55rem .9rem; cursor: pointer; }
.js-button:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.js-button:disabled { opacity: .45; cursor: default; }
.js-button.primary { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.js-output-label { padding: .3rem 1.25rem; font-size: .875rem; color: var(--muted); }
.js-output { font: .9375rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; padding: .65rem 1.25rem 1rem; min-height: 4rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 20rem; overflow-y: auto; background: #10151c; }
.js-run-status { padding: .7rem 1.25rem; color: var(--muted); font-size: .875rem; min-height: 2.75rem; }
.js-error { color: #ffb6ad; }
.js-help { font-size: .875rem; }
.js-quiz { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-block: 1.5rem; }
.js-quiz .js-actions { padding: 1rem 0; }
.js-quiz [role=status] { min-height: 3rem; color: var(--blue); }
.js-button.is-correct { border-color: #8eddd5; background: #8eddd51a; }
.js-button.is-wrong { border-color: #ffb6ad; }
.js-content details { margin-top: 1rem; padding: 1rem 1.25rem; background: var(--topic-bg); border: 1px solid var(--line); border-radius: .3rem; }
.js-content summary { cursor: pointer; font-weight: 550; }
.js-content details > p { margin-top: 1rem; }
.js-page-nav { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.js-page-nav a { color: var(--blue); font-size: .9375rem; }
.js-overview { max-width: 65rem; }
.js-chapters { padding: 0; margin: 2rem 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.js-chapters li { border-top: 1px solid var(--line); padding-top: 1rem; }
.js-chapters h2 { font-size: 1.35rem; margin: .4rem 0 .7rem; }
.js-chapters h2 a { text-decoration: none; }
.js-chapters p { color: var(--muted); }
.js-course-banner { height: 5rem; display: flex; align-items: center; justify-content: space-evenly; gap: 1rem; padding-inline: 1rem; background: linear-gradient(110deg, #57471c, #413459, #244c63); border-radius: .25rem; margin-bottom: 1.5rem; overflow: hidden; color: #f2df9e; font: 1.4rem ui-monospace, monospace; }
@media (max-width: 1000px) { .js-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; } }
@media (max-width: 750px) { .js-layout { grid-template-columns: 1fr; } .js-toc { position: static; } .js-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .js-course { padding-top: 2rem; } .js-chapters { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .js-toc ol { grid-template-columns: 1fr; } }

/* Eine gemeinsame Syntaxpalette für Beispiele, Lösungen und CodeMirror. */
.js-course .js-token-keyword { color: #d7adff; }
.js-course .js-token-string { color: #b7dc95; }
.js-course .js-token-comment { color: #95a7bb; font-style: italic; }
.js-course .js-token-number { color: #f0bf88; }
.js-course .js-token-function { color: #8eddd5; }
.js-course .js-token-variable { color: #b6d6ff; }
.js-course .js-token-property { color: #edd68e; }
.js-course .js-token-operator { color: #edafc7; }
.js-course .js-token-punctuation { color: #d2dae4; }
.js-code-editor { height: 16rem; min-height: 12rem; max-height: 40rem; resize: vertical; overflow: hidden; background: #10151c; border-block: 1px solid var(--line); }
.js-code-editor .cm-editor { height: 100%; color: var(--ink); background: #10151c; font-size: .9375rem; }
.js-code-editor .cm-editor.cm-focused { outline: 2px solid var(--blue); outline-offset: -2px; }
.js-code-editor .cm-scroller { overflow: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.65; }
.js-code-editor .cm-content { padding-block: 1rem; caret-color: var(--ink); }
.js-code-editor .cm-line { padding-inline: .75rem; }
.js-code-editor .cm-gutters { background: #141c26; color: #95a7bb; border-right: 1px solid var(--line); }
.js-code-editor .cm-activeLineGutter { background: #223247; color: #d9e8fc; }
.js-code-editor .cm-activeLine { background: #8bb4e50a; }
.js-code-editor .cm-cursor { border-left-color: var(--ink); }
.js-code-editor .cm-selectionBackground, .js-code-editor .cm-focused .cm-selectionBackground { background: #365377; }
.js-code-editor .cm-matchingBracket { background: #8bb4e529; outline: 1px solid #8bb4e577; }
@media (forced-colors: active) {
  .js-course [class*="js-token-"] { color: CanvasText; }
}

.js-table-scroll { overflow-x: auto; margin-block: 1.25rem; }
.js-table-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.js-table-scroll caption { text-align: left; color: var(--muted); padding-bottom: .75rem; }
.js-table-scroll th { color: var(--blue); font-weight: 550; }
.js-table-scroll th, .js-table-scroll td { border-bottom: 1px solid var(--line); padding: .8rem 1rem .8rem 0; min-width: 7rem; vertical-align: top; }

.js-course .js-token-type { color: #87d9d3; }
.js-content .ts-generated { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1rem 1.25rem; }
.js-content .ts-generated summary { font-size: .875rem; color: var(--muted); }
.js-content .ts-generated pre { max-height: 20rem; overflow: auto; }
.js-course-banner--typescript { background: linear-gradient(110deg, #173f65, #245a75, #394969); color: #c2e6ff; }
.knowledge-banner--typescript { background: linear-gradient(110deg, #173f65, #245a75, #394969); color: #c2e6ff; }
