@font-face {
  font-family: 'Bravura';
  src: url('../fonts/bravura-sub.woff2') format('woff2');
  font-display: block;
}

:root {
  --paper: #f2f4f8;
  --paper-2: #e6eaf2;
  --sheet: #ffffff;
  --ink: #1f2f7a;
  --ink-2: #3a4ea8;
  --text: #232836;
  --muted: #5b6375;
  --line: #c8cfdc;
  --gelb: #f0bd3f;
  --rot: #e3667a;
  --violett: #8758c0;
  --gruen: #2c8a57;
  --gelb-soft: #fbedc4;
  --rot-soft: #fadbe0;
  --violett-soft: #e9ddf7;
  --gruen-soft: #d9f0e2;
  --ink-soft: #e1e6f8;
  --key-white: #ffffff;
  --key-black: #1c2133;
  --shadow: 0 1px 0 rgba(31, 47, 122, 0.08);
  --font-display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1429;
    --paper-2: #171e3b;
    --sheet: #161d3a;
    --ink: #a9b9ff;
    --ink-2: #c5d0ff;
    --text: #e3e7f2;
    --muted: #a0a8c0;
    --line: #2f3962;
    --gelb: #f2c552;
    --rot: #f07e90;
    --violett: #b08ae6;
    --gruen: #5cc28a;
    --gelb-soft: #4a3e18;
    --rot-soft: #4d2430;
    --violett-soft: #35294f;
    --gruen-soft: #173b29;
    --ink-soft: #232d5c;
    --key-white: #e8ebf4;
    --key-black: #070a16;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1429; --paper-2: #171e3b; --sheet: #161d3a; --ink: #a9b9ff; --ink-2: #c5d0ff;
  --text: #e3e7f2; --muted: #a0a8c0; --line: #2f3962; --gelb: #f2c552; --rot: #f07e90; --violett: #b08ae6;
  --gruen: #5cc28a; --gelb-soft: #4a3e18; --rot-soft: #4d2430; --violett-soft: #35294f; --gruen-soft: #173b29;
  --ink-soft: #232d5c; --key-white: #e8ebf4; --key-black: #070a16; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 22px 14px 40px 18px;
  background: var(--paper);
}
.brand { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; margin: 0 0 4px 6px; }
.brand-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 18px 6px; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc-part { font-family: var(--font-hand); font-size: 1.3rem; color: var(--muted); margin: 16px 0 2px 6px; line-height: 1.2; }
.toc a {
  display: grid; grid-template-columns: 1.6em 1fr 1em; gap: 6px; align-items: baseline;
  padding: 5px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem; line-height: 1.35;
  border-left: 3px solid transparent;
}
.toc a:hover { background: var(--paper-2); }
.toc a.active { border-left-color: var(--ink); background: var(--ink-soft); color: var(--ink); font-weight: 700; }
.toc .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.toc .done { color: var(--gruen); font-weight: 700; visibility: hidden; }
.toc a.is-done .done { visibility: visible; }
.side-foot { margin: 24px 6px 0; font-size: 0.82rem; color: var(--muted); }
.theme-btn { margin-top: 10px; }

.topbar { display: none; }
main { min-width: 0; padding: 0 clamp(16px, 4vw, 56px) 80px; }

/* ---------- Hero ---------- */
.hero { max-width: 980px; margin: 0 auto; padding: 56px 0 40px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(2.7rem, 7.5vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 18px;
  font-variation-settings: 'opsz' 96;
}
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40em; margin: 0 0 30px; color: var(--text); }
.instrument {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.inst-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.inst-top .staff { max-height: 170px; }
.notename { text-align: right; min-width: 7.5em; }
.notename .big { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; }
.notename .small { color: var(--muted); font-size: 0.95rem; }
.inst-hint { color: var(--muted); font-size: 0.88rem; margin: 10px 2px 0; }
.inst-hint kbd { font-family: var(--font-body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 0.82rem; background: var(--paper); }

.map { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.map li { padding: 10px 0; border-top: 1px solid var(--line); }
.map .t { font-family: var(--font-hand); font-size: 1.35rem; color: var(--muted); line-height: 1; }
.map a { font-weight: 700; text-decoration: none; display: block; }
.map a:hover { text-decoration: underline; }
.map span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }

/* ---------- Kapitel ---------- */
.chapter { max-width: 780px; margin: 0 auto; padding: 64px 0 24px; border-top: 1px solid var(--line); }
.ch-head { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: end; margin-bottom: 14px; }
.ch-num { font-family: var(--font-hand); font-weight: 700; font-size: 3.6rem; line-height: 0.8; color: var(--ink); opacity: 0.9; }
.chapter h2 { font-family: var(--font-display); font-weight: 760; font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--text); }
.ch-meta { grid-column: 2; color: var(--muted); font-size: 0.92rem; }
.chapter h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; line-height: 1.25; margin: 38px 0 8px; color: var(--text); letter-spacing: -0.01em; }
.chapter p, .chapter li { max-width: 68ch; }
.chapter p { margin: 0 0 14px; }
.chapter ul, .chapter ol { padding-left: 1.3em; margin: 0 0 16px; }
.chapter li { margin: 4px 0; }
.intro { font-size: 1.12rem; }
strong { font-weight: 700; }
.term { font-weight: 700; color: var(--ink); }
.wide { margin-left: calc(-1 * clamp(0px, 3vw, 60px)); margin-right: calc(-1 * clamp(0px, 3vw, 60px)); }

.merke {
  border-left: 4px solid var(--ink); background: var(--ink-soft);
  padding: 12px 18px 12px; border-radius: 0 12px 12px 0; margin: 22px 0;
}
.merke::before { content: 'Merke'; display: block; font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.merke p:last-child, .merke ul:last-child { margin-bottom: 0; }
.achtung { border-left-color: var(--rot); background: var(--rot-soft); }
.achtung::before { content: 'Achtung, Falle'; color: var(--text); }
.hand { font-family: var(--font-hand); font-size: 1.35em; line-height: 1; color: var(--ink); }

table.t { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: 0.96rem; }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 0.9rem; }
table.t td.c { text-align: center; }
.tablewrap { overflow-x: auto; }
.smufl-inline { font-family: 'Bravura'; font-size: 1.6em; line-height: 0; vertical-align: -0.12em; }

figure { margin: 24px 0; }
figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pics img { border-radius: 12px; }

/* ---------- Übungs- und Hörstationen ---------- */
.lab {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 20px; margin: 26px 0; box-shadow: var(--shadow);
}
.lab-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.lab-h b { font-family: var(--font-display); font-weight: 750; font-size: 1.1rem; color: var(--ink); }
.lab-h span { color: var(--muted); font-size: 0.9rem; }
.lab .err { color: var(--rot); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.row .lbl { color: var(--muted); font-size: 0.88rem; min-width: 6.5em; }
.spacer { flex: 1; }

.btn {
  font: inherit; font-size: 0.95rem; font-weight: 700; color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 15px; cursor: pointer; line-height: 1.3;
}
.btn:hover { background: var(--ink-soft); }
.btn.play, .btn.solid { background: var(--ink); color: var(--paper); }
.btn.play:hover, .btn.solid:hover { background: var(--ink-2); }
.btn.play.on { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn .ico { font-size: 0.8em; margin-right: 2px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.small { font-size: 0.85rem; padding: 4px 11px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.seg-b { font: inherit; font-size: 0.92rem; background: transparent; color: var(--ink); border: 0; border-right: 1px solid var(--line); padding: 6px 12px; cursor: pointer; min-width: 2.4em; }
.seg-b:last-child { border-right: 0; }
.seg-b[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.seg-b:hover:not([aria-pressed="true"]) { background: var(--ink-soft); }
.seg-b .smufl-inline { font-size: 1.5em; }

.answers { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.ans { font: inherit; font-weight: 700; font-size: 1.05rem; min-width: 3.4em; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; }
.ans:hover { border-color: var(--ink); }
.ans.right { background: var(--gruen-soft); border-color: var(--gruen); color: var(--text); }
.ans.wrong { background: var(--rot-soft); border-color: var(--rot); }
.feedback { min-height: 1.6em; font-size: 0.98rem; }
.feedback.ok { color: var(--gruen); font-weight: 700; }
.feedback.no { color: var(--text); }
.score { font-family: var(--font-hand); font-size: 1.45rem; color: var(--ink); line-height: 1; }

.readout { background: var(--paper); border-radius: 12px; padding: 12px 16px; margin-top: 12px; }
.readout .big { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.15; }
.readout ol { margin: 6px 0 0; padding-left: 1.3em; }

/* Notensystem */
svg.staff { width: 100%; height: auto; display: block; overflow: visible; }
.smufl { font-family: 'Bravura'; fill: var(--text); }
.st-line, .st-ledger { stroke: var(--text); stroke-width: 1.1; opacity: 0.75; }
.st-bar { stroke: var(--text); stroke-width: 1.4; opacity: 0.75; }
.st-label { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--text); }
.st-sub { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.st-ghost .st-head { fill: var(--ink); opacity: 0.35; }
.st-ghost .st-ledger { stroke: var(--ink); opacity: 0.35; }
svg.pickable { cursor: crosshair; touch-action: manipulation; }
.st-col.clickable { cursor: pointer; }
.st-col.clickable:hover .smufl { fill: var(--ink); }
.st-col.clickable:focus { outline: none; }
.st-col.clickable:focus .smufl { fill: var(--ink); }
.st-col.now .smufl { fill: var(--ink); }
.fill-ink { fill: var(--ink) !important; }
.fill-rot { fill: var(--rot) !important; }
.fill-gruen { fill: var(--gruen) !important; }
.fill-violett { fill: var(--violett) !important; }
.fill-muted { fill: var(--muted) !important; }
.svg-hand { font-family: var(--font-hand); font-size: 20px; fill: var(--ink); }
.svg-mark { stroke: var(--ink); stroke-width: 1.6; fill: none; }

/* Klaviatur */
.piano { position: relative; height: 150px; margin-top: 12px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.piano.short { height: 118px; }
.key { position: absolute; top: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.key.white { height: 100%; background: var(--key-white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; z-index: 1; color: var(--text); padding-bottom: 6px; }
.key.black { height: 60%; background: var(--key-black); border: 1px solid var(--key-black); border-radius: 0 0 5px 5px; z-index: 2; color: #dfe4f5; padding-bottom: 4px; }
.key.white:hover { background: color-mix(in srgb, var(--key-white) 85%, var(--ink)); }
.key.black:hover { background: color-mix(in srgb, var(--key-black) 80%, var(--ink)); }
.key.mark.white { background: var(--gelb-soft); }
.key.mark.black { background: color-mix(in srgb, var(--key-black) 78%, var(--gelb)); }
.key.mark2.white { background: var(--rot-soft); }
.key.mark2.black { background: color-mix(in srgb, var(--key-black) 75%, var(--rot)); }
.key.hit.white, .key.hit.black { background: var(--gelb) !important; color: #1c2133; }
.key.used { opacity: 0.28; cursor: not-allowed; }
.klabel { font-size: 0.78rem; font-weight: 700; line-height: 1.1; pointer-events: none; }
.key.black .klabel { font-size: 0.66rem; }
.knum { display: none; font-size: 0.72rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; pointer-events: none; }
.key.black .knum { color: #ffe39a; }
.show-num .knum { display: block; }
.ktag { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 800; color: #1c2133; background: var(--gelb); border-radius: 999px; min-width: 1.5em; padding: 0 4px; text-align: center; pointer-events: none; }
.key.black .ktag { top: auto; bottom: 22px; }

/* Klavierrolle (Periode, Mischpult, Sonate) */
.roll { position: relative; width: 100%; overflow: hidden; border-radius: 10px; background: var(--paper); }
.roll svg { width: 100%; height: auto; display: block; }
.r-note { rx: 3; }
.r-mel { fill: var(--ink); }
.r-bass { fill: var(--muted); opacity: 0.55; }
.r-band { opacity: 0.55; }
.r-gelb { fill: var(--gelb-soft); }
.r-rot { fill: var(--rot-soft); }
.r-violett { fill: var(--violett-soft); }
.r-ink { fill: var(--ink-soft); }
.r-gruen { fill: var(--gruen-soft); }
.r-cursor { stroke: var(--rot); stroke-width: 2.5; }
.r-barline { stroke: var(--line); stroke-width: 1; }
.r-lab { font-family: var(--font-hand); font-size: 22px; fill: var(--text); }
.r-lab-s { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.r-note.on { fill: var(--rot); }

/* Sonaten-Zeitleiste */
.form-line { display: flex; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0 4px; }
.form-seg { font: inherit; border: 0; border-right: 1px solid var(--line); padding: 10px 6px 8px; text-align: left; cursor: pointer; min-width: 0; color: #1d2236; position: relative; overflow: hidden; }
.form-seg:last-child { border-right: 0; }
.form-seg b { display: block; font-size: 0.86rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-seg small { display: block; font-size: 0.74rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-seg .prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--ink); width: 0; }
.form-seg.now { outline: 3px solid var(--ink); outline-offset: -3px; }
.fs-gelb { background: #f6d77f; }
.fs-rot { background: #f1a3af; }
.fs-violett { background: #c9aee9; }
.fs-ink { background: #b9c3ef; }
.fs-grau { background: #d9dde7; }
.form-groups { display: flex; width: 100%; font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink); }
.form-groups div { text-align: center; border-bottom: 2px solid var(--ink); margin: 0 3px; line-height: 1.1; padding-bottom: 2px; }
.caption-now { min-height: 3.2em; background: var(--paper); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }

/* Zeitstrahl */
.tl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tl-wrap svg { min-width: 680px; width: 100%; height: auto; display: block; }
.tl-epoch { opacity: 0.85; }
.tl-ename { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: #1d2236; }
.tl-axis { stroke: var(--muted); stroke-width: 1; }
.tl-year { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.tl-life { cursor: pointer; }
.tl-life rect { fill: var(--ink); opacity: 0.85; }
.tl-life text { font-size: 12px; fill: var(--text); font-family: var(--font-body); font-weight: 700; }
.tl-life:hover rect, .tl-life.sel rect { fill: var(--rot); opacity: 1; }
.tl-life:focus { outline: none; }
.tl-life:focus rect { fill: var(--rot); }
.tl-event line { stroke: var(--rot); stroke-dasharray: 3 3; }
.tl-event text { font-size: 11px; fill: var(--rot); font-family: var(--font-body); font-weight: 700; }

/* Grafische Partitur */
.studio canvas { width: 100%; height: auto; display: block; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; touch-action: none; cursor: crosshair; }
.brushes .seg-b { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Zwölfton */
.row12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 10px 0; }
.row12 div { text-align: center; border: 1.5px dashed var(--line); border-radius: 8px; padding: 6px 0 4px; min-height: 52px; font-weight: 700; }
.row12 div.filled { border-style: solid; border-color: var(--ink); background: var(--ink-soft); color: var(--ink); }
.row12 div.now { background: var(--gelb); color: #1c2133; }
.row12 small { display: block; color: var(--muted); font-weight: 400; font-size: 0.72rem; }

/* Quiz */
.quiz-q { font-size: 1.12rem; font-weight: 700; margin: 6px 0 4px; }
.quiz-progress { color: var(--muted); font-size: 0.9rem; }
.quiz-media { margin: 8px 0; max-width: 420px; }

/* Glossar */
.gloss-search { font: inherit; width: 100%; max-width: 420px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--text); }
.gloss-search:focus { border-color: var(--ink); outline: none; }
dl.gloss { margin: 16px 0 0; }
dl.gloss dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
dl.gloss dd { margin: 2px 0 0; max-width: 68ch; }
.gloss-empty { color: var(--muted); }

/* Spickzettel */
.cheat { columns: 2 300px; column-gap: 32px; }
.cheat section { break-inside: avoid; margin: 0 0 18px; }
.cheat h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.cheat ul { margin: 0; padding-left: 1.1em; font-size: 0.93rem; }
.cheat li { margin: 2px 0; }

.ch-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.check-btn[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.next-link { font-weight: 700; text-decoration: none; }

footer.foot { max-width: 780px; margin: 60px auto 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: 4px 0 30px rgba(0, 0, 0, 0.18); }
  body.nav-open .side { transform: none; }
  .scrim { display: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 14, 30, 0.35); z-index: 39; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .topbar .brand { margin: 0; font-size: 1.1rem; }
  html { scroll-padding-top: 64px; }
  .hero { padding-top: 28px; }
  .wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .inst-top { grid-template-columns: 1fr; gap: 4px; }
  .notename { text-align: left; }
  .lab { padding: 14px 12px 16px; border-radius: 12px; }
  .piano { height: 124px; }
  .key.white .klabel { font-size: 0.66rem; }
  .key.black .klabel { display: none; }
  .ch-num { font-size: 2.8rem; }
  .pics { grid-template-columns: 1fr; }
  .row .lbl { min-width: 100%; }
  .form-seg small { display: none; }
  .row12 { grid-template-columns: repeat(6, 1fr); }
}

@media print {
  .side, .topbar, .lab, .ch-end, .instrument, .skip { display: none !important; }
  .layout { display: block; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .chapter { border: 0; padding-top: 18px; page-break-inside: auto; }
}
.lab-sub { font-family: var(--font-display); font-size: 1rem; margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
rect.fs-gelb { fill: #f6d77f; } rect.fs-rot { fill: #f1a3af; } rect.fs-violett { fill: #c9aee9; } rect.fs-ink { fill: #b9c3ef; } rect.fs-grau { fill: #d9dde7; }
[hidden] { display: none !important; }
.smufl-inline.acc { vertical-align: 0.42em; font-size: 1.3em; }
.ktag { top: auto; bottom: 26px; }
.key.black .ktag { bottom: 8px; }
.key.mark.black { box-shadow: inset 0 -9px 0 var(--gelb); }
.key.mark2.black { box-shadow: inset 0 -9px 0 var(--rot); }
.seg-b[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--paper); }
