/* Boogiekiste: Papier, Blau und Rot wie in einem alten Notenheft. Linien statt Kästen,
   kleine Ecken, keine Schatten, kein Glas. Hell und dunkel, iPad zuerst. */

/* ------------------------------------------------------------- fonts ---- */
@font-face { font-family: "Alfa Slab One"; src: url("assets/fonts/alfa-slab-one.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("assets/fonts/vollkorn-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("assets/fonts/vollkorn-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------ tokens ---- */
:root {
  color-scheme: light dark;
  --serif: "Alfa Slab One", Rockwell, Georgia, serif;
  --sans: "Vollkorn", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --paper: #fbf7ef; --paper-2: #f3ead9; --card: #fffdf8;
  --ink: #1b2b3c; --ink-2: #44546a; --ink-3: #6b7889; --line: #e2d8c5;
  --red: #c8372d; --red-ink: #b02d24; --sea: #1f5f8b; --sea-soft: #e3eef6; --sun: #f2c14e;
  --ok: #2f7d4f; --ok-soft: #e2f1e7; --warn-soft: #fbecd0; --danger-soft: #f8e1de;

  --glas: transparent;
  --glas-karte: transparent;
  --glas-dicht: var(--card);
  --haar: color-mix(in srgb, var(--ink) 20%, transparent);
  --haar-2: color-mix(in srgb, var(--ink) 42%, transparent);
  --haar-stark: color-mix(in srgb, var(--ink) 58%, transparent);
  --glanz: rgba(255, 255, 255, .5);
  --rot-rgb: 205, 70, 62; --orange-rgb: 214, 132, 34; --gruen-rgb: 47, 140, 88; --blau-rgb: 31, 95, 139;
  --akzent: var(--sea); --cta: #c8372d; --fokus: var(--sea);
  --lh: #1f5f8b; --rh: #c8372d;
  --grad-1: #2f8f5b; --grad-2: #e3b021; --grad-3: #e2721b; --grad-4: #cc2f3c; --grad-5: #7d3fb0;
  --r-kachel: 12px; --r-karte: 12px;
  --feder: ease;
  --seite: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1923; --paper-2: #16232f; --card: #182633;
    --ink: #ece4d6; --ink-2: #c3bbad; --ink-3: #8f9aa6; --line: #2a3a49;
    --red: #ef6b5f; --red-ink: #ff8a7f; --sea: #7ab8e3; --sea-soft: #17303f;
    --ok: #6fcf97; --ok-soft: #173327; --warn-soft: #3a2f17; --danger-soft: #3d1f1d;
    --glas: transparent;
    --glas-karte: transparent;
    --glas-dicht: var(--card);
    --haar: rgba(236, 228, 214, .2); --haar-2: rgba(236, 228, 214, .38); --haar-stark: rgba(255, 255, 255, .5);
    --glanz: rgba(255, 255, 255, .1);
    --rot-rgb: 232, 100, 92; --orange-rgb: 236, 160, 70; --gruen-rgb: 96, 196, 140; --blau-rgb: 122, 184, 227;
    --cta: #cf4338; --fokus: var(--sun);
    --lh: #7ab8e3; --rh: #ef6b5f;
    --grad-1: #62c48d; --grad-2: #f2cd55; --grad-3: #f0914a; --grad-4: #f0606b; --grad-5: #b58cf0;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1923; --paper-2: #16232f; --card: #182633;
  --ink: #ece4d6; --ink-2: #c3bbad; --ink-3: #8f9aa6; --line: #2a3a49;
  --red: #ef6b5f; --red-ink: #ff8a7f; --sea: #7ab8e3; --sea-soft: #17303f;
  --ok: #6fcf97; --ok-soft: #173327; --warn-soft: #3a2f17; --danger-soft: #3d1f1d;
  --glas: transparent;
  --glas-karte: transparent;
  --glas-dicht: var(--card);
  --haar: rgba(236, 228, 214, .2); --haar-2: rgba(236, 228, 214, .38); --haar-stark: rgba(255, 255, 255, .5);
  --glanz: rgba(255, 255, 255, .1);
  --rot-rgb: 232, 100, 92; --orange-rgb: 236, 160, 70; --gruen-rgb: 96, 196, 140; --blau-rgb: 122, 184, 227;
  --cta: #cf4338; --fokus: var(--sun);
  --lh: #7ab8e3; --rh: #ef6b5f;
  --grad-1: #62c48d; --grad-2: #f2cd55; --grad-3: #f0914a; --grad-4: #f0606b; --grad-5: #b58cf0;
}

/* Colours of the hands (settings), the same values as HAND_BASES in render.js. */
:root[data-hands="blueorange"] { --lh: #0067a5; --rh: #b34d00; }
:root[data-hands="redgreen"] { --lh: #b3261e; --rh: #1f7a3d; }
:root[data-hands="violet"] { --lh: #5a3ea8; --rh: #9a5f00; }
:root[data-hands="tealpink"] { --lh: #0f6f70; --rh: #b02a6b; }
@media (prefers-color-scheme: dark) {
  :root[data-hands="blueorange"]:not([data-theme="light"]) { --lh: #6cb8f0; --rh: #ffa24d; }
  :root[data-hands="redgreen"]:not([data-theme="light"]) { --lh: #ff7a70; --rh: #7ddc8a; }
  :root[data-hands="violet"]:not([data-theme="light"]) { --lh: #b9a3ff; --rh: #ffc94d; }
  :root[data-hands="tealpink"]:not([data-theme="light"]) { --lh: #4fd0c8; --rh: #ff8dbd; }
}
:root[data-theme="dark"][data-hands="blueorange"] { --lh: #6cb8f0; --rh: #ffa24d; }
:root[data-theme="dark"][data-hands="redgreen"] { --lh: #ff7a70; --rh: #7ddc8a; }
:root[data-theme="dark"][data-hands="violet"] { --lh: #b9a3ff; --rh: #ffc94d; }
:root[data-theme="dark"][data-hands="tealpink"] { --lh: #4fd0c8; --rh: #ff8dbd; }
:root[data-hands="tealpink"] .buehne { --b-lh: #4fd0c8; --b-rh: #ff8dbd; }
:root[data-hands="blueorange"] .buehne { --b-lh: #6cb8f0; --b-rh: #ffa24d; }
:root[data-hands="redgreen"] .buehne { --b-lh: #ff7a70; --b-rh: #7ddc8a; }
:root[data-hands="violet"] .buehne { --b-lh: #b9a3ff; --b-rh: #ffc94d; }

/* -------------------------------------------------------------- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); font-size: calc(100% * var(--fs, 1)); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font: 400 1.14rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2 { font-family: var(--serif); letter-spacing: 0; font-weight: 400; }
h3, h4 { font-family: var(--sans); font-weight: 800; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--red); }
strong, b { font-weight: 700; }
small { font-size: .86rem; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.leise { color: var(--ink-2); }
.hand-font { font-family: var(--hand); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: .5em 1em; border-radius: 10px; background: var(--card); }
.skip:focus { top: 12px; box-shadow: none; }

/* ------------------------------------------------------------ topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: var(--seite); margin: 0 auto; padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.12rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--serif); font-weight: 400; }
@media (min-width: 641px) { .reiter.topnav { margin-left: auto; } }
@media (max-width: 640px) { .topbar-actions { margin-left: auto; } }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: 700 .95rem/1 var(--sans);
  transition: box-shadow .15s, background-color .15s, transform .2s var(--feder);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--haar-2); background: var(--glas-karte); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-pressed="true"] { color: var(--sun); }

/* MIDI-Status: Punkt + Gerät */
.midi-pill {
  --g: 120, 140, 170;
  display: inline-flex; align-items: center; gap: .5em; min-height: 40px; max-width: 240px; padding: .35em .95em .35em .75em; border: 0; border-radius: 10px;
  font: 700 .9rem/1.1 var(--sans); color: var(--ink);
  background: rgba(var(--g), .12);
  box-shadow: inset 0 0 0 1.5px rgba(var(--g), .45);
  transition: transform .2s var(--feder), box-shadow .2s;
}
.midi-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.midi-pill .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--g)); }
.midi-pill .pill-ikon { display: none; flex: none; width: 20px; height: 20px; color: var(--ink-2); }
.midi-pill.is-on { --g: var(--gruen-rgb); }
.midi-pill.is-on .dot { box-shadow: 0 0 0 4px rgba(var(--g), .22); }
.midi-pill.is-off { --g: var(--orange-rgb); }
.midi-pill.is-busy .dot { animation: puls 1s ease-in-out infinite; }
.midi-pill:hover { box-shadow: inset 0 0 0 1.5px rgba(var(--g), .8); }
@keyframes puls { 50% { opacity: .3; } }

/* ------------------------------------------------------ reiter / tabs ---- */
.reiter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.reiter > a, .reiter > button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 42px; padding: .55em 1.05em; border: 0; border-radius: 10px;
  font: 700 .98rem/1.15 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; opacity: .72;
  background: var(--glas-karte);
  box-shadow: inset 0 0 0 1.5px var(--haar-2);
  transition: transform .2s var(--feder), box-shadow .2s, background-color .2s, opacity .2s;
}
.reiter svg { width: 18px; height: 18px; flex: none; }
.reiter [aria-current], .reiter [aria-selected="true"], .reiter .ist-aktiv {
  opacity: 1; color: var(--ink);
  background: color-mix(in srgb, var(--akzent) 20%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent);
}
@media (hover: hover) {
  .reiter > a:hover, .reiter > button:hover { opacity: 1; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
}
@media (max-width: 640px) {
  .reiter-unten {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); flex-wrap: nowrap; gap: 4px; padding: 5px; border-radius: 10px;
    background: var(--glas-dicht);
    box-shadow: inset 0 0 0 1.5px var(--haar-2);
  }
  .reiter-unten > a, .reiter-unten > button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; min-height: 50px; padding: .4em .3em; font-size: .78rem; background: transparent; box-shadow: none; opacity: .66; }
  .reiter-unten svg { width: 22px; height: 22px; }
  body:not(.route-player):not(.route-lesson) { padding-bottom: 84px; }
  body.route-lesson .reiter-unten { display: none; }
}
/* Top bar on tablets and desktop: at most 1080px wide, so it gives up space step by step
   (tab icons, account name, "mit Max", brand name, pill text) and the five tabs stay on one line. */
@media (min-width: 641px) {
  .topnav { gap: .4rem; }
  .topnav > a { gap: .4em; padding-inline: .95em; }
  .topnav svg, .topbar .konto-name { display: none; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .topbar-inner { gap: 10px; }
  .topnav > a { padding-inline: .8em; }
}
@media (min-width: 641px) and (max-width: 920px) {
  .brand b { display: none; }
  .topbar .midi-pill { padding-inline: .75em; }
  .topbar .midi-pill .pill-ikon { display: block; }
  .topbar .midi-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 641px) and (max-width: 760px) {
  .topnav { gap: .25rem; }
  .topnav > a { padding-inline: .65em; font-size: .92rem; }
  .topbar-actions { gap: 2px; }
  .topbar-actions .icon-btn { min-width: 40px; padding-inline: 6px; }
}
@media (max-width: 480px) {
  .brand b { display: none; }
  .topbar-inner { gap: 8px; }
  .topbar .midi-pill { min-width: 0; max-width: 46vw; padding-inline: .8em; }
  .topbar-actions { gap: 2px; min-width: 0; }
  .topbar-actions .icon-btn { flex: none; }
}

/* ------------------------------------------------------- bausteine ---- */
.kachel {
  --k: var(--akzent);
  position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 116px; padding: 1rem 1.05rem; border: 0; border-radius: var(--r-kachel);
  color: var(--ink); text-decoration: none; text-align: left;
  background: var(--glas);
  box-shadow: inset 0 0 0 1px var(--haar);
  transition: transform .22s var(--feder), box-shadow .22s;
}
.kachel:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.kachel:active { transform: scale(.975); }
.kachel > svg { width: 24px; height: 24px; opacity: .62; }
.kachel b, .kachel h3 { font: 700 1.06rem/1.25 var(--sans); margin: 0; }
.kachel small { color: var(--ink-2); line-height: 1.4; }
.kachel-voll { background: color-mix(in srgb, var(--k) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--k) 50%, transparent); }
.kachel-zahl { position: absolute; top: .8rem; right: .9rem; }

.karte {
  padding: 1.3rem 1.4rem; border-radius: var(--r-karte);
  background: var(--glas-karte);
  box-shadow: inset 0 0 0 1px var(--haar);
}
.karte-dicht { background: var(--glas-dicht); }

.knopf {
  --k: var(--akzent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .8em 1.25em; border: 0; border-radius: 10px;
  font: 700 1rem/1.15 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--glas-karte);
  box-shadow: inset 0 0 0 1.5px var(--haar-2);
  transition: transform .2s var(--feder), box-shadow .2s, background-color .2s;
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .45; pointer-events: none; }
.knopf-voll { background: color-mix(in srgb, var(--k) 13%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--k) 55%, transparent); }
.knopf-rot { color: #fff; background: var(--cta); box-shadow: none; }
.knopf-rot:hover { color: #fff; background: var(--cta); box-shadow: none; }
.knopf-klein { min-height: 38px; padding: .5em 1em; font-size: .92rem; }
.knopf-still { background: none; box-shadow: none; text-decoration: underline; text-underline-offset: .2em; color: var(--ink-2); padding-inline: .4em; }
.knopf-still:hover { box-shadow: none; color: var(--ink); }
.knopf.pulse { animation: knopf-puls 1.6s ease-in-out infinite; }
@keyframes knopf-puls { 50% { box-shadow: 0 0 0 8px rgba(var(--rot-rgb), .14); } }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.marke { --g: 120, 140, 170; display: inline-flex; align-items: center; gap: .3em; padding: .22em .65em; border-radius: 10px; font: 700 .8rem/1.2 var(--sans); color: var(--ink); background: rgba(var(--g), .14); box-shadow: inset 0 0 0 1px rgba(var(--g), .5); white-space: nowrap; }
.marke svg { width: 13px; height: 13px; }
.marke-rot { --g: var(--rot-rgb); } .marke-gruen { --g: var(--gruen-rgb); } .marke-orange { --g: var(--orange-rgb); } .marke-blau { --g: var(--blau-rgb); }
.balken { height: 6px; border-radius: 10px; overflow: hidden; background: var(--haar); }
.balken > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width .3s; }
.balken-gruen > i { background: rgb(var(--gruen-rgb)); }
.punkte { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 0; padding: 0; list-style: none; }
.punkte > i { display: block; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--haar-2); transition: background-color .2s, box-shadow .2s, transform .2s; }
.punkte > .ok { background: rgb(var(--gruen-rgb)); box-shadow: none; }
.punkte > .no { background: rgb(var(--rot-rgb)); box-shadow: none; }
.punkte > .teil { background: rgb(var(--orange-rgb)); box-shadow: none; }
.punkte > .voll { background: var(--ink-2); box-shadow: none; }
.punkte > .jetzt { box-shadow: inset 0 0 0 2px var(--ink); transform: scale(1.2); }
.hinweis { --g: 120, 140, 170; margin: 0; padding: .75rem 1rem; border-radius: 10px; font-size: .97rem; line-height: 1.45; color: var(--ink); background: rgba(var(--g), .13); box-shadow: inset 0 0 0 1.5px rgba(var(--g), .5); }
.hinweis-fehler { --g: var(--rot-rgb); } .hinweis-ok { --g: var(--gruen-rgb); } .hinweis-warn { --g: var(--orange-rgb); }

/* Sterne (Bestwert) */
.sterne { display: inline-flex; gap: 2px; color: var(--haar-2); }
.sterne svg { width: 16px; height: 16px; fill: currentColor; }
.sterne .an { color: var(--sun); }
.sterne-gross svg { width: 54px; height: 54px; }
.sterne-gross { gap: 8px; }
.sterne-gross .an { animation: stern .5s var(--feder) both; }
.sterne-gross .an:nth-child(2) { animation-delay: .15s; }
.sterne-gross .an:nth-child(3) { animation-delay: .3s; }
@keyframes stern { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }

/* Segmentierte Auswahl (Hände, Thema, Sprache) */
.seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.seg > button { min-height: 40px; min-width: 44px; padding: .35em .95em; border: 0; border-radius: 10px; background: transparent; font: 700 .92rem/1.1 var(--sans); color: var(--ink-2); transition: background-color .15s, color .15s, box-shadow .15s; }
.seg > button:hover { color: var(--ink); }
.seg > button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.seg .h-L[aria-pressed="true"] { --akzent: var(--lh); }
.seg .h-R[aria-pressed="true"] { --akzent: var(--rh); }
.seg .h-hoeren { display: inline-flex; align-items: center; gap: .4em; }
.seg .h-hoeren svg { width: 18px; height: 18px; flex: none; }
.seg .h-hoeren[aria-pressed="true"] { --akzent: rgb(var(--orange-rgb)); }

/* Schlagzeug, Metronom oder nichts, direkt in der Lektion */
.takt-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: .2rem 0 .7rem; }
.takt-titel { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.takt-laut { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-2); }
.takt-laut input { width: 130px; min-height: 44px; }
.sheet-frage { width: min(440px, calc(100vw - 32px)); }
.sheet-frage p { margin: 0 0 1.1rem; overflow-wrap: anywhere; }
.sheet-frage h2 { overflow-wrap: anywhere; }
.sheet-frage .knopfreihe { justify-content: flex-end; }

/* An oder aus: zwei Wörter nebeneinander, das gewählte ist hervorgehoben */
.schalter { position: relative; flex: none; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: 112px; height: 40px; margin: 0; padding: 4px; appearance: none; -webkit-appearance: none; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); cursor: pointer; font: 700 .9rem/1 var(--sans); color: var(--ink-3); }
.schalter::before, .schalter::after { display: grid; place-items: center; border-radius: 10px; transition: background-color .18s, color .18s, box-shadow .18s; }
.schalter::before { content: "Aus"; }
.schalter::after { content: "An"; }
:lang(en) .schalter::before { content: "Off"; }
:lang(en) .schalter::after { content: "On"; }
.schalter:not(:checked)::before { color: var(--ink); background: color-mix(in srgb, var(--ink) 13%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.schalter:checked::after { color: var(--ink); background: color-mix(in srgb, rgb(var(--gruen-rgb)) 26%, var(--card)); box-shadow: inset 0 0 0 1.5px rgb(var(--gruen-rgb)); }
.schalter:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.schalter:disabled { opacity: .45; cursor: default; }

/* Häkchen: eigene Kästchen */
input[type="checkbox"]:not(.schalter) { position: relative; flex: none; appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 2px var(--haar-stark); cursor: pointer; transition: background-color .15s, box-shadow .15s; vertical-align: middle; }
input[type="checkbox"]:not(.schalter)::after { content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; border-radius: 1px; transform: rotate(42deg) scale(0); transition: transform .18s var(--feder); }
input[type="checkbox"]:not(.schalter):checked { background: var(--cta); box-shadow: none; }
input[type="checkbox"]:not(.schalter):checked::after { transform: rotate(42deg) scale(1); }
input[type="checkbox"]:not(.schalter):focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Auswahl: Knopf mit eigenem Feld (wahl.js) */
.wahl-echt { display: none !important; }
:is(button.wahl, select.eingabe, select.wahl-klein, .stufe select) {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.3em; text-align: left; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-size: 6px 6px; background-repeat: no-repeat;
  background-position: right calc(1em + 6px) center, right 1em center;
}
button.wahl { display: inline-flex; align-items: center; gap: .6em; max-width: 100%; transition: box-shadow .15s, background-color .15s; }
button.wahl.eingabe { display: flex; font-weight: 600; }
button.wahl:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
button.wahl:disabled { opacity: .45; cursor: default; }
@media (hover: hover) { button.wahl:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--akzent); } }
.wahl-wert { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.wahl[class*="grad-"] .wahl-wert::before, .wahl-punkt[class*="grad-"] > span::before { content: ""; display: inline-block; width: .72em; height: .72em; margin-right: .55em; border-radius: 50%; background: var(--grad); }
.wahl-bild { width: 54px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none; }
.wahl-feld { position: fixed; inset: auto; margin: 0; padding: 8px; border: 0; width: max-content; max-width: min(420px, calc(100vw - 24px)); flex-direction: column; overflow: hidden; border-radius: 10px; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1.5px var(--haar-2); font: 600 1rem/1.25 var(--sans); }
.wahl-feld:popover-open { display: flex; animation: wahl-auf .16s ease-out; }
@keyframes wahl-auf { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.wahl-titel, .wahl-gruppe { margin: 0; padding: .45rem .8rem .35rem; font-weight: 700; font-size: .85rem; color: var(--ink-3); }
.wahl-gruppe:not(:first-child) { margin-top: .4rem; }
.wahl-suche { flex: none; margin-bottom: 6px; }
.wahl-liste { display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
.wahl-punkt { --akzent: var(--sea); display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: .35rem .8rem; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wahl-punkt[class*="grad-"] { --akzent: var(--grad); }
.wahl-punkt[hidden] { display: none; }
.wahl-punkt > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wahl-punkt:hover, .wahl-punkt:focus { outline: none; background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.wahl-punkt:focus-visible { box-shadow: inset 0 0 0 2px var(--akzent); }
.wahl-punkt[aria-selected="true"] { background: color-mix(in srgb, var(--akzent) 20%, transparent); }
.wahl-punkt:disabled { opacity: .4; cursor: default; }
.wahl-haken { width: 18px; height: 18px; flex: none; visibility: hidden; color: var(--akzent); }
.wahl-punkt[aria-selected="true"] .wahl-haken { visibility: visible; }
.wahl-kacheln .wahl-liste { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 2px; }
.wahl-kacheln .wahl-punkt { justify-content: center; min-height: 50px; padding: .3rem; box-shadow: inset 0 0 0 1.5px var(--haar-2); text-align: center; }
.wahl-kacheln .wahl-haken { display: none; }
.wahl-kacheln .wahl-punkt[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--akzent); }
.wahl-feld.wahl-unten { inset: auto 0 0 0; width: 100%; max-width: none; max-height: 72vh; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 10px 10px 0 0; }
.wahl-unten::backdrop { background: rgba(8, 18, 34, .42); }
.wahl-unten .wahl-punkt { min-height: 52px; }
.wahl-unten:popover-open { animation-name: wahl-hoch; }
@keyframes wahl-hoch { from { transform: translateY(40px); opacity: 0; } }
.wahl-reihe { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; border-radius: 10px; }
.wahl-reihe > button { flex: 1 0 auto; }
.wahl-reihe > button:focus-visible { outline: 3px solid var(--fokus); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .wahl-feld:popover-open { animation: none; } }

/* Schieberegler: eigene Schiene und eigener Griff */
input[type="range"] { --p: 50%; width: 100%; min-height: 34px; margin: 0; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--akzent) var(--p), color-mix(in srgb, var(--ink) 14%, transparent) var(--p)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--akzent) var(--p), color-mix(in srgb, var(--ink) 14%, transparent) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -10px; border-radius: 10px; background: var(--card); border: 3px solid var(--akzent); box-shadow: none; transition: transform .15s var(--feder); }
input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 22px; height: 30px; border-radius: 10px; background: var(--card); border: 3px solid var(--akzent); box-shadow: none; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 10px; }

/* Zahlen mit Minus und Plus */
.zaehler { display: inline-flex; align-items: center; gap: 6px; }
.zaehler input[type="number"] { width: 4.6em; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.zaehler input::-webkit-inner-spin-button, .zaehler input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.zaehler button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; font: 700 1.3rem/1 var(--sans); color: var(--ink); background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); cursor: pointer; }
.zaehler button:hover { box-shadow: inset 0 0 0 1.5px var(--akzent); }
.zaehler .zaehler-weniger { order: -1; }
.eingabe { width: 100%; min-height: 46px; padding: .55em .9em; border: 0; border-radius: 10px; font: 400 1rem/1.3 var(--sans); color: var(--ink); background-color: color-mix(in srgb, var(--paper) 62%, transparent); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
input.eingabe:focus-visible, select.eingabe:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--akzent), 0 0 0 4px color-mix(in srgb, var(--akzent) 22%, transparent); }

/* ------------------------------------------------------------- pages ---- */
main { display: block; }
.view { display: none; }
body.route-home #view-home, body.route-songs #view-songs, body.route-practice #view-practice,
body.route-lesson #view-lesson, body.route-help #view-help, body.route-take #view-take, body.route-shared #view-shared, body.route-friends #view-friends, body.route-settings #view-settings, body.route-player #view-player, body.route-notfound #view-notfound,
body.route-zugang #view-zugang, body.route-konto #view-konto, body.route-kauf #view-kauf, body.route-recht #view-recht, body.route-locked #view-locked, body.route-library #view-library,
body.route-combo #view-combo, body.route-record #view-record { display: block; }
.page { max-width: var(--seite); margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem) max(20px, env(safe-area-inset-right)) 3rem max(20px, env(safe-area-inset-left)); }
.eyebrow { display: inline-block; margin-bottom: .5rem; font: italic 500 1.05rem/1.2 var(--sans); color: var(--red); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-2); max-width: 40em; }
.sektion { margin-top: clamp(2rem, 5vw, 3.2rem); }
.sektion-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sektion-kopf h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.sektion-kopf p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.raster-breit { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* Home */
.hero { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; font-weight: 650; color: var(--red); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .weiter-meta .marke { white-space: normal; } }
.weiter { display: flex; flex-direction: column; gap: .8rem; }
.weiter .eyebrow { margin: 0; color: var(--ink-3); }
.weiter h3 { margin: 0; font-size: 1.45rem; }
.weiter p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.weiter .knopf-rot { align-self: flex-start; }
.weiter-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.fakten { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.2rem 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.fakten li { display: flex; align-items: center; gap: .45em; }
.fakten svg { width: 18px; height: 18px; color: var(--sea); }

/* Kapitel + Lektionen */
.kapitel-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; cursor: pointer; list-style: none; padding: .35rem 0; border-radius: 10px; }
.kapitel-kopf::-webkit-details-marker { display: none; }
.kapitel-kopf h3 { margin: 0; font-size: 1.25rem; }
.kapitel-kopf::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--sans); color: var(--ink-3); transition: transform .2s var(--feder); }
.kapitel[open] > .kapitel-kopf::after { transform: rotate(45deg); }
.kapitel:not([open]) > .kapitel-kopf { margin-bottom: 0; }
.kapitel + .kapitel { margin-top: 1rem; }
.kapitel[open] + .kapitel, .kapitel + .kapitel[open] { margin-top: 1.6rem; }
.kapitel-kopf .balken { flex: 1; max-width: 220px; }
.kapitel-kopf small { color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) { .kapitel-kopf .balken { display: none; } .kapitel-kopf h3 { flex: 1; font-size: 1.15rem; } }
.genres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.genre { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.genre-bild { display: block; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--sun) 25%, transparent); }
.genre-bild img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.genre-text { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.15rem; }
.genre h3 { margin: 0; font-size: 1.35rem; }
.genre h3 a { color: inherit; text-decoration: none; }
.genre p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.genre small { color: var(--ink-3); margin-top: auto; }
.genre-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.genre-knoepfe .knopf { flex: 1 1 auto; justify-content: center; padding-inline: .9rem; }
@media (max-width: 1080px) { .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .genres { grid-template-columns: minmax(0, 1fr); }
  .genre { flex-direction: row; }
  .genre-bild { flex: 0 0 31%; aspect-ratio: auto; }
  .genre-text { min-width: 0; padding: .85rem; }
}
/* Kursseite: jedes Kapitel ist eine Station auf dem Weg */
.kurs-hero { align-items: center; }
.stationen { position: relative; max-width: 860px; }
.station { position: relative; padding-left: 66px; }
.station::before { content: ""; position: absolute; left: 22px; top: 26px; bottom: -30px; width: 3px; border-radius: 10px; background: var(--haar-2); }
.station:last-child::before { display: none; }
.station.ist-fertig::before { background: var(--ok); }
.station .kapitel-kopf { align-items: flex-start; }
.station-nr { position: absolute; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 700 1.1rem/1 var(--sans); color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 2px var(--haar-2); }
.station-nr svg { width: 22px; height: 22px; }
.station.ist-hier .station-nr { color: #fff; background: #c8372d; box-shadow: none; }
.station.ist-fertig .station-nr { color: #fff; background: #2f7d4f; box-shadow: none; }
.station-text { flex: 1; display: grid; gap: .2rem; min-width: 0; }
.station-text h2 { margin: 0; font-size: 1.3rem; }
.station-text > span { color: var(--ink-2); }
.station-text small { white-space: normal !important; }
.weg { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.weg-lektion { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; border-radius: 10px; color: inherit; text-decoration: none; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.weg-lektion:hover { box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.weg-lektion.ist-hier { box-shadow: inset 0 0 0 2px var(--red); }
.weg-lektion.ist-gesperrt { opacity: .7; }
.weg-nr { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .9rem/1 var(--sans); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.weg-nr svg { width: 16px; height: 16px; }
.ist-done .weg-nr { color: #fff; background: #2f7d4f; box-shadow: none; }
.weg-text { flex: 1; min-width: 0; display: grid; }
.weg-text small { color: var(--ink-2); }
.weg-lektion .marke { flex: none; }
@media (max-width: 640px) {
  .station { padding-left: 46px; }
  .station::before { left: 15px; }
  .station-nr { width: 34px; height: 34px; font-size: .95rem; }
  .weg { margin-left: -46px; position: relative; }
  .weg-lektion { background: var(--card); flex-wrap: wrap; }
  .weg-text { flex-basis: 60%; }
}
/* Ende einer Lektion und Hilfe nach einem schwachen Durchgang */
.schritt-zahl { margin: 0 0 .2rem; }
.hilfe-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.ende { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 10px; background: color-mix(in srgb, var(--ok) 14%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 50%, transparent); }
.ende.ist-kapitel { background: color-mix(in srgb, var(--sun) 22%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--sun); }
.ende-zeichen { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #2f7d4f; }
.ist-kapitel .ende-zeichen { color: #1b2b3c; background: #f2c14e; }
.ende-zeichen svg { width: 24px; height: 24px; }
.ende-text b { font-size: 1.2rem; }
.ende-text p { margin: .2rem 0 0; }
.ende-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.toast.gross { padding: 1rem 1.6rem; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; border-radius: 10px; }

/* Stück- und Musterkacheln */
.stueck { min-height: 132px; padding-right: 3.2rem; }
.stueck h3 { font-family: var(--sans); font-weight: 800; font-size: 1.22rem; line-height: 1.2; }
.stueck .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin-top: auto; font-size: .85rem; color: var(--ink-3); }
.stueck .fav { position: absolute; top: .55rem; right: .55rem; }
.stueck::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--k); opacity: .85; }
.stueck.hand-L { --k: var(--lh); }
.stueck.hand-R { --k: var(--rh); }
.stueck.hand-B { --k: var(--sun); }
/* Schwierigkeit: fünf Stufen von sehr leicht bis sehr schwer, jede mit ihrer Farbe. */
.grad-1 { --grad: var(--grad-1); } .grad-2 { --grad: var(--grad-2); } .grad-3 { --grad: var(--grad-3); } .grad-4 { --grad: var(--grad-4); } .grad-5 { --grad: var(--grad-5); }
.stueck.art-song { --k: var(--grad); }
.stueck.art-song::before { width: 6px; opacity: 1; }
.stueck.hat-hoeren .stufe { max-width: calc(100% - 3rem); }
.stueck.hat-hoeren .stufe .wahl { max-width: 100%; }
.stueck.hat-hoeren .stufe .wahl-wert { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stueck.art-song .stufe :is(select, .wahl) { box-shadow: inset 0 0 0 1.5px var(--grad); background-color: color-mix(in srgb, var(--grad) 16%, var(--card)); }
.chip[class*="grad-"]::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--grad); }
.chip[class*="grad-"][aria-pressed="true"] { --akzent: var(--grad); }
.stufen-wahl, .more-werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; }
.stufe-knopf { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .4em 1em; border: 0; border-radius: 10px; font: 700 .98rem/1.1 var(--sans); color: var(--ink); background: color-mix(in srgb, var(--grad) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--grad) 45%, transparent); }
.stufe-knopf::before { content: ""; width: .75em; height: .75em; border-radius: 50%; background: var(--grad); }
.stufe-knopf[aria-pressed="true"] { background: color-mix(in srgb, var(--grad) 32%, transparent); box-shadow: inset 0 0 0 3px var(--grad); }
.more-sub { margin: 0; }
.more-werkzeuge .chip-werkzeug span { display: inline !important; }
.more-werkzeuge .chip-werkzeug { width: auto; padding-inline: .9em; }
.more-werkzeuge [data-pl="fav"] svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.more-werkzeuge [data-pl="fav"][aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.stueck h3 a { color: inherit; text-decoration: none; }
.stueck h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stueck h3 a:focus-visible { outline: none; }
.stueck:has(h3 a:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 3px; }
.stueck .fav { z-index: 2; }
.fav { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); transition: transform .2s var(--feder), color .15s; }
.fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav:hover { transform: scale(1.12); color: var(--red); }
.filter { margin: 0 0 1.4rem; }
.gruppe + .gruppe { margin-top: 2rem; }
.gruppe h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: .2rem; }
.gruppe > p { margin: 0 0 .9rem; color: var(--ink-2); font-size: .95rem; max-width: 44em; }
.jam { --k: var(--sun); flex-direction: row; align-items: center; gap: 1.2rem; min-height: 96px; }
.jam > svg { width: 40px; height: 40px; opacity: .8; color: var(--red); }

/* ----------------------------------------------------- Lernstand ---- */
.ls-kopf { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; }
.ls-kopf h2 { margin: .2rem 0 .6rem; }
.ls-weiter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.1rem 0 0; color: var(--ink-2); }
.ls-ring { position: relative; flex: none; width: clamp(104px, 16vw, 168px); }
.ls-ring svg { display: block; transform: rotate(-90deg); }
.ls-ring circle { fill: none; stroke: var(--haar); stroke-width: 11; }
.ls-ring .voll { stroke: rgb(var(--gruen-rgb)); transition: stroke-dasharray .4s; }
.ls-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ls-ring b { font: 400 clamp(1.4rem, 3vw, 2.1rem)/1.1 var(--serif); }
.ls-ring span { font-size: .82rem; color: var(--ink-3); }
.ls-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1rem; margin: 1.6rem 0 0; list-style: none; }
.ls-fakten b { display: block; font: 400 1.45rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.ls-fakten span { font-size: .9rem; color: var(--ink-2); }
.ls-legende { display: flex; gap: 1.1rem; }
.ls-legende span { display: inline-flex; align-items: center; gap: .4em; }
.ls-legende i, .ls-punkte i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ls-legende i.an, .ls-punkte i.an { background: rgb(var(--gruen-rgb)); box-shadow: none; }
.ls-kapitel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.ls-kapitel h4 { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .5rem; font: 400 1.05rem/1.3 var(--serif); }
.ls-kapitel h4 small { color: var(--ink-3); font: 600 .85rem var(--sans); }
.ls-liste { margin: 0; padding: 0; list-style: none; }
.ls-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 2rem; }
.ls-liste li + li, .ls-spalten li { border-top: 1px solid var(--haar); }
.ls-zeile { display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: .35rem 0; color: inherit; text-decoration: none; }
.ls-zeile:hover .ls-titel { text-decoration: underline; text-underline-offset: 3px; }
.ls-titel { flex: 1; min-width: 0; line-height: 1.3; }
.ls-titel small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ls-haken { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--haar); color: var(--ink-3); }
.ls-haken svg { width: 13px; height: 13px; }
.ist-started .ls-haken { box-shadow: inset 0 0 0 3px rgb(var(--orange-rgb)); }
.ist-done .ls-haken { background: rgb(var(--gruen-rgb)); box-shadow: none; color: #fff; }
.ls-zeile.ist-zu { color: var(--ink-3); }
.ls-punkte { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 110px; }
.ls-zahl { flex: none; min-width: 2.2em; text-align: right; font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ls-mehr { margin-top: 2rem; }
@media (max-width: 640px) { .ls-kopf { gap: 1rem; align-items: flex-start; } .ls-punkte { display: none; } .ls-fakten { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------- stage ---- */
.stage { position: relative; overflow: hidden; border-radius: var(--r-karte); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--haar); touch-action: none; user-select: none; -webkit-user-select: none; }
.stage canvas { display: block; width: 100%; height: 100%; }
/* Progress strip on the top edge of the note roll (src/fortschritt.js). */
body.route-player .fortschritt { height: 44px; padding-right: 4px; }
.fs-spur.mit-teilen { gap: 3px; }
.fs-spur button { position: relative; flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); container-type: inline-size; }
.fs-spur button i { position: absolute; inset: 9px 0; height: auto; border-radius: 10px; background: color-mix(in srgb, var(--ink) 9%, transparent); transition: box-shadow .15s; }
.fs-spur button b { background: color-mix(in srgb, var(--red) 34%, transparent); }
.fs-spur button span { position: absolute; inset: 0 6px; display: block; font: 650 .76rem/44px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.fs-spur button:hover { color: var(--ink); }
.fs-spur button[aria-pressed="true"] { color: var(--ink); }
.fs-spur button[aria-pressed="true"] i { box-shadow: inset 0 0 0 2px var(--red); }
@container (max-width: 46px) { .fs-spur button span { display: none; } }
.fs-wdh { flex: none; width: 44px; height: 44px; margin-left: -6px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-3); }
.fs-wdh[hidden] { display: none; }
.fs-wdh svg { width: 20px; height: 20px; }
.fs-wdh[aria-pressed="true"] { color: var(--red); }
.fortschritt { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 34px; padding: 0 14px; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--paper-2) 94%, transparent); box-shadow: 0 1px 0 var(--haar); }
.fs-spur { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 4px; }
.fs-spur.springen { cursor: pointer; }
.fs-spur i { flex: 1; height: 8px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.fs-spur b { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.fs-spur u { position: absolute; top: calc(50% - 6px); width: 2px; height: 12px; background: var(--ink-3); opacity: .6; pointer-events: none; }
@media (max-width: 640px) { .fs-text { font-size: .74rem; } .fortschritt { gap: 8px; } }
.fs-text { margin: 0; font: 600 .82rem/1 var(--sans); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fortschritt:not([hidden]) ~ .hud { top: 44px; }
.hud { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.hud-chord, .hud-info {
  display: flex; align-items: baseline; gap: .55rem; padding: .35rem .85rem; border-radius: 10px;
  background: var(--glas-dicht); box-shadow: inset 0 0 0 1px var(--haar);
}
.hud-chord b { font: 400 clamp(1.4rem, 3vw, 2rem)/1.1 var(--serif); }
.hud-chord span { font-size: .9rem; color: var(--ink-3); white-space: nowrap; }
.hud-info { flex-direction: column; align-items: flex-end; gap: 0; padding: .4rem .8rem; font-size: .85rem; line-height: 1.35; color: var(--ink-2); text-align: right; }
.hud-info b { color: var(--ink); font-weight: 700; }
.hud:has(.hud-chord b:empty) .hud-chord { visibility: hidden; }
.hud-info:empty { visibility: hidden; }
.roll-leiste { position: absolute; z-index: 2; left: 50%; bottom: calc(clamp(72px, 24%, 150px) + 10px); transform: translateX(-50%); display: flex; gap: 8px; max-width: calc(100% - 16px); }
.roll-leiste { flex-wrap: wrap; justify-content: center; width: max-content; }
.roll-leiste .knopf { white-space: nowrap; box-shadow: none; }
#rl-start::before { content: ""; flex: none; border: .36em solid transparent; border-left: .58em solid; border-right: 0; }
@media (max-width: 480px) { .roll-leiste { left: calc(50% - 26px); } }
@media (max-height: 480px) { .roll-leiste { bottom: 80px; } .roll-leiste .knopf { min-height: 34px; padding-block: .25rem; } }
/* Im Player gehört der Bildschirm der Notenbahn: Akkord und Tempo stehen an den Takten und im Menü. */
body.route-player .hud { display: none; }
body.route-player.pl-ruhe .player-head { display: none; }
body.route-player.pl-ruhe .controls { position: fixed; z-index: 4; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: max-content; transform: translateY(16px); visibility: hidden; opacity: 0; box-shadow: inset 0 0 0 1px var(--haar); transition: opacity .18s, transform .25s var(--feder), visibility .18s; }
body.route-player.pl-ruhe.pl-leiste .controls { visibility: visible; opacity: 1; transform: none; }
.toast {
  position: absolute; left: 50%; top: 64px; z-index: 3; max-width: min(92%, 560px); padding: .6rem 1.1rem; border-radius: 10px;
  transform: translate(-50%, -8px); opacity: 0; pointer-events: none; text-align: center; font-weight: 600; font-size: .98rem; line-height: 1.35;
  background: var(--glas-dicht); box-shadow: inset 0 0 0 1.5px var(--haar-2);
  transition: opacity .25s, transform .3s var(--feder);
}
.toast.show { opacity: 1; transform: none; }
.toast .knopf { pointer-events: auto; margin: .4rem auto 0; display: flex; }
.toast.mit-knopf { pointer-events: auto; }
.toast.frei { position: fixed; top: calc(72px + env(safe-area-inset-top)); z-index: 60; }

/* --------------------------------------------------------- player ---- */
body.route-player { overflow: hidden; }
body.route-player .topbar, body.route-player .foot, body.route-player .reiter-unten { display: none; }
body.route-player #view-player { display: flex; }
.player {
  flex-direction: column; height: 100dvh; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.player-head { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.player-titel { flex: 1; min-width: 0; line-height: 1.15; }
.player-titel h1 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-titel small { display: block; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-head .midi-pill { max-width: 200px; }
.player-head .midi-pill.is-on { display: none; }
.player-titel h1[class]::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; border-radius: 50%; background: var(--grad); vertical-align: .08em; }
.loopbar[hidden] { display: none; }
@media (max-width: 480px) {
  .player-titel h1 { font-size: 1.15rem; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
}
.player-stage { flex: 1; min-height: 180px; display: flex; }
.player-stage .stage { flex: 1; }
.player-stage:is(.mit-noten, .mit-text) { flex-direction: column; gap: 8px; }
.player-stage.mit-noten .stage { min-height: 120px; }

/* Noten über der Rolle: Klaviersystem, läuft mit, Tipp auf einen Takt springt. */
.noten-band { flex: 0 0 auto; height: clamp(150px, 30vh, 250px); display: flex; overflow: hidden; border-radius: var(--r-karte); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--haar); }
.noten-band[hidden] { display: none; }
.nb-kopfspalte { flex: none; display: block; height: 100%; width: auto; max-width: none; }
.nb-lauf { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; touch-action: pan-x; }
.nb-lauf svg { display: block; height: 100%; width: auto; max-width: none; }
.nb-linie { stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-width: 1; }
.nb-taktstrich { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; }
.nb-schluss { stroke: var(--ink-2); stroke-width: 3; }
.nb-klammer { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.nb-nr { font: 600 9px var(--sans); fill: var(--ink-3); }
.nb-ped { font: italic 700 13px Georgia, serif; fill: var(--ink-2, var(--ink)); }
.nb-pedal { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .6; stroke-linejoin: round; }
.nb-akkord { font: 700 12px var(--sans); fill: var(--ink); }
.nb-r { color: var(--rh); }
.nb-l { color: var(--lh); }
.nb-schluessel { fill: currentColor; font: 30px/1 "Noto Music", "Bravura Text", "Apple Symbols", "Segoe UI Symbol", serif; }
.nb-kopf-note { fill: currentColor; }
.nb-kopf-note.hohl { fill: none; stroke: currentColor; stroke-width: 1.5; }
.nb-hals { stroke: currentColor; stroke-width: 1.2; }
.nb-balken, .nb-punkt { fill: currentColor; }
.nb-faehnchen { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nb-hilfslinie { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; }
.nb-vorzeichen { fill: currentColor; font: 13px/1 "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif; }
.nb-pause { fill: currentColor; opacity: .55; }
.nb-pause-strich { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .55; }
.nb-rutsch { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.nb-vorzeichen.klein { font-size: .72em; }
.nb-triole { fill: currentColor; font: italic 700 10px var(--sans); }
.nb-takt { fill: transparent; cursor: pointer; transition: fill .12s; }
.nb-takt:hover { fill: var(--haar); }
.nb-takt.im-loop { fill: color-mix(in srgb, var(--sea) 13%, transparent); }
.nb-takt.ist-jetzt { fill: color-mix(in srgb, var(--red) 7%, transparent); }
.noten-band.waehlen { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sea) 60%, transparent); }
.nb-kopf { stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) {
  .noten-band { height: clamp(120px, 21vh, 180px); }
}
@media (max-height: 640px) {
  .noten-band { height: clamp(110px, 30vh, 160px); }
}
/* Handy quer: die Takte stehen schon in den Noten, die Leiste darüber würde der Rolle den Platz nehmen. */
@media (max-height: 500px) {
  .loopbar.mit-noten .takte { display: none; }
  .noten-band { height: clamp(96px, 30vh, 130px); }
}

/* Nur Noten: eine Notenseite mit Zeilen, Tasten und Rolle sind weg. Die Bühne
   liegt durchsichtig darüber und trägt nur Fortschritt, Knöpfe und Meldungen. */
:is(.player-stage, .lektion-buehne).mit-noten { position: relative; flex-direction: column; gap: 8px; }
:is(.player-stage, .lektion-buehne).nur-noten { display: grid; grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); row-gap: 0; }
.nur-noten > .liedtext { grid-area: 1 / 1; margin-bottom: 8px; }
.nur-noten > :is(.noten-band, .stage) { grid-area: 2 / 1; }
.lektion-buehne.mit-noten { height: clamp(460px, 76vh, 820px); }
.mit-noten.nur-noten .noten-band { height: auto; min-height: 0; padding-top: 34px; }
.player-stage.nur-noten .noten-band { padding-top: 44px; }
.mit-noten.nur-noten > .stage { position: relative; z-index: 1; min-height: 0; background: none; box-shadow: none; pointer-events: none; }
.mit-noten.nur-noten > .stage :is(canvas, .hud) { visibility: hidden; }
.mit-noten.nur-noten > .stage :is(.fortschritt, .roll-leiste) { pointer-events: auto; }
.mit-noten.nur-noten > .stage .roll-leiste { bottom: 16px; }
.mit-noten.nur-noten > .stage .roll-wartet { bottom: 18px; }
.nb-seite { position: relative; flex: 1; min-width: 0; padding: 10px 14px 96px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; touch-action: pan-y; }
.nb-seite > .nb-zeile { display: block; width: 100%; height: auto; margin: 0 0 14px; }
.nb-seite .nb-blatt, .nb-seite .nb-kopfspalte { overflow: visible; }
.noten-band.treffer .nb-kopf { stroke: rgb(var(--gruen-rgb)); stroke-width: 4; }
.noten-band.daneben .nb-kopf { stroke-width: 5; }
.noten-zahl { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font: 600 clamp(80px, 22vh, 180px)/1 var(--serif); color: var(--red); text-shadow: 0 0 24px var(--paper-2), 0 0 10px var(--paper-2); }
.noten-zahl[hidden] { display: none; }
#pl-sicht[data-sicht="noten"] { color: var(--red); }

/* Abschnitte + Takte */
.loopbar { display: grid; gap: 8px; }
.loop-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.loop-kopf .chips { flex: 1; min-width: 0; }
.loop-werkzeuge { flex: none; display: flex; align-items: center; gap: 6px; }
.chip-werkzeug { --akzent: var(--sea); }
@media (max-width: 760px) {
  .chip-werkzeug span { display: none; }
  .chip-werkzeug { padding-inline: .7em; }
}
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .4em; min-height: 38px; padding: .35em .95em; border: 0; border-radius: 10px;
  font: 700 .9rem/1.1 var(--sans); color: var(--ink-2); background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2);
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.chip[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.chip-warn { --akzent: rgb(var(--orange-rgb)); color: var(--ink); background: rgba(var(--orange-rgb), .14); box-shadow: inset 0 0 0 1.5px rgba(var(--orange-rgb), .6); }
/* Takte: etwa elf zu sehen (fünf zurück, fünf voraus), die Leiste läuft mit. */
.takte { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 4px; touch-action: pan-x; border-radius: 10px; }
.takte.waehlen { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sea) 55%, transparent); padding-inline: 4px; }
.takte.waehlen .takt { cursor: cell; }
.takt {
  flex: 0 0 calc((100% - 40px) / 11); min-width: 50px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 46px; padding: .3em .55em; border: 0; border-radius: 10px;
  text-align: left; background: var(--glas); box-shadow: inset 0 0 0 1px var(--haar); color: var(--ink-3); scroll-snap-align: start;
  transition: background-color .12s, box-shadow .12s, color .12s;
}
.takt i { font: 700 .72rem/1 var(--sans); font-style: normal; }
.takt b { font: 700 .88rem/1.1 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.takt.im-loop { background: color-mix(in srgb, var(--sea) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sea) 55%, transparent); color: var(--ink-2); }
.takt.im-loop b { color: var(--ink); }
.takt.ist-jetzt { background: color-mix(in srgb, var(--red) 18%, var(--card)); box-shadow: inset 0 0 0 2px var(--red); color: var(--ink); }
.takt.ist-jetzt b { color: var(--ink); }
.takt.neuer-abschnitt { margin-left: 6px; }
.takt.ist-start { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--red) 55%, transparent); color: var(--ink-2); }
.loop-hint { font-size: .82rem; color: var(--ink-3); margin: 0 4px; }

/* Bedienleiste: Hände, Start, Tempo. Alles andere steht im Menü. */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 32px; width: fit-content; max-width: 100%; margin-inline: auto; padding: 8px 18px; border-radius: 10px; background: var(--glas-dicht); box-shadow: inset 0 0 0 1px var(--haar); }
.ctl-mitte { display: flex; align-items: center; gap: 14px; }
.hand { display: grid; justify-items: center; gap: 1px; min-width: 64px; min-height: 52px; padding: 4px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); font: 650 .78rem/1.1 var(--sans); transition: background-color .15s, color .15s; }
.hand[hidden] { display: none; }
.hand svg { width: 26px; height: 26px; }
.hand.h-L { --h: var(--lh); }
.hand.h-R { --h: var(--rh); }
.hand:hover { color: var(--h); }
.hand[aria-pressed="true"] { color: var(--h); background: color-mix(in srgb, var(--h) 14%, transparent); }
.hand:disabled { opacity: .4; }
.stufen-tempo > button { min-width: 0; padding-inline: .95em; }
.ctl-tempo { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.pl-drums > button { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-width: 44px; min-height: 44px; padding-inline: .8em; white-space: nowrap; }
.pl-drums svg { width: 20px; height: 20px; flex: none; }
.art-wahl { justify-self: start; position: relative; z-index: 2; align-self: flex-start; }
.art-wahl > :is(button, a) { min-height: 40px; min-width: 0; padding-inline: .85em; font-size: .9rem; }
.more-sub + .art-wahl { margin-bottom: 10px; }
.tempo { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.rund { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font: 700 1.35rem/1 var(--sans); color: var(--ink); transition: background-color .15s, transform .15s; }
.rund:hover { background: var(--haar); }
.rund:active { transform: scale(.9); }
.tempo output { min-width: 4.4em; text-align: center; line-height: 1; }
.tempo output b { display: block; font: 400 1.25rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tempo output small { font-size: .7rem; letter-spacing: .08em; color: var(--ink-3); }
.play {
  display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%; color: #fff; background: var(--cta);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s var(--feder), box-shadow .2s;
}
.play svg { width: 30px; height: 30px; fill: currentColor; }
.play .ic-pause { display: none; }
.play[aria-pressed="true"] .ic-play { display: none; }
.play[aria-pressed="true"] .ic-pause { display: block; }
.play:hover { transform: scale(1.05); box-shadow: none; }
.play:active { transform: scale(.94); }
.umschalter {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .4em .9em; border: 0; border-radius: 10px;
  font: 700 .9rem/1.1 var(--sans); color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--haar-2);
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.umschalter svg { width: 20px; height: 20px; flex: none; }
.umschalter:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.umschalter[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
/* Strictness: one button that cycles Genau, Locker, Nur Rhythmus; the colour says how strict. */
#pl-strict, .strict-knopf { color: var(--ink); }
:is(#pl-strict, .strict-knopf)[data-level="exact"] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rh) 60%, transparent); }
:is(#pl-strict, .strict-knopf)[data-level="loose"] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 60%, transparent); }
:is(#pl-strict, .strict-knopf)[data-level="rhythm"] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lh) 60%, transparent); }
.schritt-mehr .strict-knopf { order: 5; margin-inline: auto; }
@media (max-width: 760px) {
  .player { gap: 8px; }
  .controls { border-radius: 10px; padding: 8px 12px; }
  .stufen-tempo > button { padding-inline: .7em; font-size: .88rem; }
  .ctl-tempo { gap: 6px; }
  .ctl-tempo { flex-wrap: wrap; }
  .pl-drums > button { padding-inline: .9em; font-size: .88rem; }
  .pl-drums svg { display: none; }
  /* Label stays readable for screen readers, the keyboard icon says it visually. */
  .player-head .midi-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .player-head .midi-pill { gap: .4em; padding: .35em .75em; }
  .player-head .midi-pill .pill-ikon { display: block; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .loopbar .chips, .loop-hint { display: none; }
  .play { width: 48px; height: 48px; }
  .hand { min-height: 44px; padding-block: 2px; }
  .controls { flex-wrap: nowrap; gap: 16px; padding-block: 4px; }
  .ctl-tempo { flex-wrap: nowrap; }
  .stufen-tempo > button { white-space: nowrap; padding-inline: .7em; }
  .pl-drums svg { display: block; }
  .pl-drums > button { padding-inline: .5em; }
  .pl-drums span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .player { gap: 6px; }
  .player-head { min-height: 40px; }
}

/* -------------------------------------------------------- lessons ---- */
.lektion-kopf { margin-bottom: 1.2rem; }
.zurueck { display: flex; width: fit-content; align-items: center; gap: .25em; margin: 0 0 .7rem -.3rem; padding: .3rem .6rem .3rem .3rem; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink-2); text-decoration: none; }
.zurueck svg { width: 18px; height: 18px; flex: none; }
.zurueck:hover { color: var(--red); }
.lektion-kopf h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.schritte { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.schritte a {
  display: inline-flex; align-items: center; gap: .35em; min-height: 36px; padding: .3em .8em; border-radius: 10px; text-decoration: none;
  font: 700 .85rem/1.1 var(--sans); color: var(--ink-2); background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2);
}
.schritte a svg { width: 14px; height: 14px; color: rgb(var(--gruen-rgb)); }
.schritte a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.schritte a.fertig { color: var(--ink); }
@media (max-width: 640px) {
  /* Lesson steps: one swipeable row instead of a block of chips */
  .schritte { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 3px 20px 6px; scrollbar-width: none; scroll-padding-inline: 20px; }
  .schritte::-webkit-scrollbar { display: none; }
  .schritte li { flex: none; }
}
.schritt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; } /* a long sheet must not widen the page */
.schritt h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.prosa { max-width: 42em; font-size: 1.05rem; }
.prosa p:last-child { margin-bottom: 0; }
.tipps { margin: 0; padding: 1rem 1.2rem 1rem 2.4rem; border-radius: 10px; background: color-mix(in srgb, var(--sun) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 45%, transparent); font-size: .98rem; }
.tipps h3 { margin: 0 0 .3rem -1.2rem; font: italic 600 1rem/1.2 var(--sans);  color: var(--ink-2); }
.tipps li + li { margin-top: .3rem; }
.ziel { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .85rem 1.1rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.ziel > svg { width: 22px; height: 22px; color: var(--sea); flex: none; }
.ziel-text { flex: 1 1 240px; }
.ziel-text small { display: block; font: italic 600 1rem/1.2 var(--sans);  color: var(--ink-3); }
.ziel-check { display: none; color: rgb(var(--gruen-rgb)); font-weight: 700; }
.ziel.erreicht { background: color-mix(in srgb, var(--ok) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 50%, transparent); }
.ziel.erreicht .ziel-check { display: inline-flex; align-items: center; gap: .3em; }
.ziel.erreicht > svg { color: rgb(var(--gruen-rgb)); }
.meta-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lektion-buehne { height: clamp(280px, 56vh, 600px); display: flex; min-width: 0; }
.lektion-buehne .stage { flex: 1; }
.schritt-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.schritt-fuss .mitte { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.schritt-hinweis { width: 100%; text-align: center; color: var(--ink-3); font-size: .85rem; margin: 0; }
.banner { margin: 0; }
.banner:empty { display: none; }
.gesperrt { text-align: center; max-width: 34em; margin: 2rem auto; }
.gesperrt > svg { width: 40px; height: 40px; color: var(--ink-3); }
.stueck.ist-gesperrt h3 a { color: var(--ink-2); }
.marke-schloss { --g: var(--orange-rgb); }

/* ---------------------------------------------- Zugang, Konto, Schloss ---- */
.gesperrt-seite { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.gesperrt-seite .gesperrt { margin: clamp(.5rem, 3vw, 2.5rem) 0 0; text-align: left; }
.gesperrt-seite .gesperrt .knopfreihe { justify-content: flex-start !important; }
.gesperrt-seite:has(> :only-child) { grid-template-columns: 1fr; }
.gesperrt-seite:has(> :only-child) .gesperrt { margin-inline: auto; text-align: center; }
.gesperrt-seite:has(> :only-child) .gesperrt .knopfreihe { justify-content: center !important; }

.zugang { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.zugang-form { display: grid; gap: .9rem; padding: clamp(1.3rem, 3vw, 2rem); }
.zugang-form h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.zugang-form .lead { margin: 0; }
.zugang-form .seg { justify-self: start; }
.zugang-form form { display: grid; gap: .95rem; }
.zugang-form form .knopf { justify-self: start; }
.zugang-form .leise { margin: 0; }
.seg > a { display: inline-flex; align-items: center; min-height: 40px; padding: .35em 1em; border-radius: 10px; font: 700 .92rem/1.1 var(--sans); color: var(--ink-2); text-decoration: none; }
.seg > a:hover { color: var(--ink); }
.art-wahl > a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.seg > a[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
input.eingabe { -webkit-appearance: none; appearance: none; font-size: max(16px, 1rem); }
input.eingabe::placeholder { color: var(--ink-3); opacity: .7; }
form [hidden] { display: none !important; }
form.arbeitet .knopf[type="submit"] { opacity: .6; pointer-events: none; }

.preis { display: grid; gap: .8rem; padding: clamp(1.3rem, 3vw, 1.8rem); position: relative; }
.preis .eyebrow { margin: 0; }
.preis p { margin: 0; }
.preis-zahl { font: 400 clamp(2.2rem, 5vw, 3rem)/1 var(--serif); letter-spacing: -.02em; }
.preis-wort { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.preis-note { color: var(--ink-2); font-size: .95rem; }
.preis .knopf { justify-self: start; }
.haken { display: grid; gap: .5rem; margin: .2rem 0; padding: 0; list-style: none; }
.haken li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.4; }
.haken svg { flex: none; width: 18px; height: 18px; margin-top: .15em; color: rgb(var(--gruen-rgb)); }
.doodle { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--red); transform: rotate(-3deg); transform-origin: left; margin: -.1rem 0 0 .3rem !important; }
.preis-code { border-top: 1px solid var(--haar); padding-top: .8rem; }

.freischalten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(1.2rem, 3vw, 1.8rem); background: none; }
.freischalten > div:first-child { flex: 1 1 22rem; }
.freischalten h2 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.freischalten p { margin: 0; color: var(--ink-2); }
.freischalten .eyebrow { display: inline-flex; align-items: center; gap: .4em; }
.freischalten .eyebrow svg { width: 15px; height: 15px; }

/* The full version on the home page: what is in it, and the price on its own card. */
.freischalten .haken { margin-top: .9rem; }
.freischalten .haken li { color: var(--ink); }
.freischalten-preis { flex: 0 1 17rem; display: grid; gap: .55rem; justify-items: start; padding: 1.2rem 1.4rem; border-radius: 10px; background: var(--glas-dicht); box-shadow: inset 0 0 0 1px var(--haar); }
.freischalten-preis .preis-zahl { margin: 0; color: var(--ink); }
.freischalten-preis .preis-note { margin: -.2rem 0 .4rem; }
.freischalten-preis .knopf-still { padding-inline: 0; }
.preis-frei { margin: .3rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--ink-3); }

/* ---------- "Hör mal rein": a real piece as a piano roll, on a dark piano-black stage ---------- */
.buehne {
  --b-lh: #7ab8e3; --b-rh: #ef6b5f; --b-kopf: #f2c14e;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.6fr); align-items: center; gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: clamp(1.8rem, 4vw, 2.6rem); padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--r-karte); color: #ece4d6;
  background: #16212c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.buehne-text .eyebrow { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 .55rem; color: var(--b-kopf); }
.buehne-text .eyebrow svg { width: 17px; height: 17px; }
.buehne h2 { margin: 0 0 .55rem; color: #fffaf0; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.buehne-text > p { margin: 0 0 1.15rem; color: #c3bbad; font-size: 1rem; line-height: 1.55; }
.buehne-wahl { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.buehne-wahl button { min-height: 44px; padding: .4rem .95rem; border: 1.5px solid rgba(255, 250, 240, .28); border-radius: 10px; background: transparent; color: #d9d1c2; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.buehne-wahl button:hover { border-color: rgba(255, 250, 240, .6); }
.buehne-wahl button[aria-pressed="true"] { border-color: #fffaf0; background: #fffaf0; color: #16212c; }
.buehne-wahl button:focus-visible { outline: 3px solid var(--b-kopf); outline-offset: 2px; }
.buehne .knopf:not(.knopf-rot) { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 250, 240, .45); color: #fffaf0; }
.buehne .knopf:not(.knopf-rot):hover { background: rgba(255, 250, 240, .1); box-shadow: inset 0 0 0 1.5px #fffaf0; }
.sheet .zugang-form { padding: 0; }
.buehne .knopf-rot { box-shadow: none; }
.buehne-legende { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1.1rem 0 0 !important; color: #8f9aa6; font-size: .86rem !important; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 10px; }
.punkt-lh { background: var(--b-lh); }
.punkt-rh { background: var(--b-rh); margin-left: .7rem; }
.buehne-rolle { padding: .7rem .8rem .55rem .55rem; border-radius: 10px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rolle { display: block; width: 100%; height: auto; overflow: visible; }
.rolle-spur { fill: rgba(255, 255, 255, .035); }
.rolle-schlag { stroke: rgba(255, 255, 255, .055); stroke-width: 1; }
.rolle-takt { stroke: rgba(255, 255, 255, .17); stroke-width: 1.2; }
.rolle-akkord { fill: #c3bbad; font: 700 17px var(--sans); letter-spacing: .03em; }
.taste-weiss { fill: #efe8dc; }
.taste-schwarz { fill: #161b22; }
.taste-fuge { stroke: rgba(0, 0, 0, .28); stroke-width: .8; }
.taste-c { fill: #6b7889; font: 700 9px var(--sans); }
.note { opacity: .8; stroke: rgba(255, 255, 255, 0); stroke-width: 1.6; }
.note-lh { fill: var(--b-lh); }
.note-rh { fill: var(--b-rh); }
.taste-an { opacity: 0; }
.taste-an-lh { fill: var(--b-lh); }
.taste-an-rh { fill: var(--b-rh); }
.rolle-kopf { stroke: var(--b-kopf); stroke-width: 2.2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .rolle-kopf { animation: rolle-lauf var(--takt) linear infinite; }
  .note { animation: rolle-blitz var(--takt) linear infinite; }
  .taste-an { animation: taste-blitz var(--takt) linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .rolle-kopf { opacity: 0; } .note { opacity: .95; } }
/* While the piece is heard, the notes wander and the line stands still. */
.rolle-live .rolle-kopf, .rolle-live .note, .rolle-live .taste-an { animation: none; }
.rolle-live .note { opacity: .72; }
.rolle-live .note.klingt { opacity: 1; stroke: rgba(255, 255, 255, .85); }
.rolle-live .taste-an.klingt { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .rolle-live .rolle-kopf { opacity: 0; } }
@keyframes rolle-lauf { from { transform: translateX(0); } to { transform: translateX(var(--lauf, 716px)); } }
@keyframes taste-blitz {
  0% { opacity: .95; }
  7% { opacity: .85; }
  12% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes rolle-blitz {
  0% { opacity: 1; stroke: rgba(255, 255, 255, .95); }
  9% { opacity: .8; stroke: rgba(255, 255, 255, 0); }
  100% { opacity: .8; stroke: rgba(255, 255, 255, 0); }
}

/* ---------- The greats: each one a 78 rpm record with a coloured label ---------- */
.yt-link { display: inline-flex; width: fit-content; max-width: 100%; align-self: flex-start; align-items: center; gap: .5em; margin: .2rem 0 1rem; padding: .45em .9em .45em .7em; border-radius: 10px; background: var(--paper-2, rgba(0,0,0,.04)); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: .95rem; text-decoration: none; }
.yt-link svg { width: 1.35em; height: 1.35em; color: #e0322b; flex: none; }
.yt-link:hover { border-color: currentColor; }
.yt-link:focus-visible { outline: 3px solid var(--focus, #2f6fdf); outline-offset: 2px; }
.legenden-raster { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.legende {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 1.15rem; border-radius: var(--r-kachel);
  background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar);
  color: var(--ink); text-decoration: none; transition: transform .25s var(--feder), box-shadow .2s;
}
.legende:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.legende:hover .legende-mono { transform: rotate(40deg); }
.legende-mono {
  --label: var(--red);
  flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  font: 750 .9rem/1 var(--serif); color: #fffaf0; letter-spacing: .02em;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .55) 0 5%, var(--label) 6% 40%, #0c0c0c 41% 44%, transparent 45%),
    repeating-radial-gradient(circle, #1d1d1f 0 1px, #0f0f10 1px 2.6px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .6s var(--feder);
}
.legende:nth-child(4n+2) .legende-mono { --label: #c9861f; }
.legende:nth-child(4n+3) .legende-mono { --label: #1f5f8b; }
.legende:nth-child(4n+4) .legende-mono { --label: #2f7d4f; }
.legende-text { display: grid; gap: .1rem; min-width: 0; }
.legende-text b { font: 400 1.1rem/1.2 var(--serif); }
.legende-jahre { color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }
.legende-text > span:not(.legende-hoeren) { margin-top: .3rem; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.legende-hoeren { margin-top: .5rem; color: var(--red-ink); font-size: .88rem; font-weight: 700; }
.legende-hoeren i { font-family: var(--serif); font-weight: 600; }
@media (max-width: 760px) {
  .buehne { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.1rem; }
  .buehne-rolle { order: -1; padding: .45rem .5rem .4rem .35rem; }
  .freischalten-preis { flex-basis: 100%; }
}

.konto { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 1.4rem; align-items: start; }
.konto-teil { display: grid; gap: .75rem; }
.konto-teil h2 { display: flex; align-items: center; gap: .45em; margin: 0; font-size: 1.3rem; }
.konto-teil h2 svg { width: 20px; height: 20px; color: var(--ink-3); }
.konto-teil p { margin: 0; color: var(--ink-2); }
.konto-teil form { display: grid; gap: .8rem; }
.konto-teil form .knopf { justify-self: start; }
.konto-wichtig { box-shadow: inset 0 0 0 2px rgba(var(--orange-rgb), .7); }
.konto-sync { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--ink-3); font-size: .95rem; margin: .4rem 0 0; }
.zeile-check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; cursor: pointer; }

.knopf-gefahr { color: rgb(var(--rot-rgb)); box-shadow: inset 0 0 0 1.5px rgba(var(--rot-rgb), .6); }
.knopf-gefahr:hover { color: #fff; background: var(--cta); }

.konto-link { display: inline-flex; align-items: center; width: auto; gap: .4rem; padding-inline: .55rem; text-decoration: none; color: var(--ink-2); }
.konto-link[hidden] { display: none; }
.konto-link.ist-angemeldet { position: relative; color: var(--ink); }
.konto-link.ist-angemeldet:not(.mit-bild)::after { content: ""; position: absolute; right: 9px; bottom: 9px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--gruen-rgb)); box-shadow: 0 0 0 2px var(--paper); }
.konto-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .9rem/1 var(--sans); }
.konto-name:empty { display: none; }
@media (max-width: 720px) { .konto-name { display: none; } }

@media (max-width: 820px) {
  .zugang, .gesperrt-seite { grid-template-columns: 1fr; }
  .preis-zuerst .preis { order: -1; }
  .gesperrt-seite .gesperrt { text-align: center; margin-inline: auto; }
  .gesperrt-seite .gesperrt .knopfreihe { justify-content: center !important; }
}

/* Figuren in den Lektionen */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.fig { min-width: 0; margin: 0; padding: 1rem 1.1rem .9rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.fig.fig-pattern, .fig.fig-hands { grid-column: 1 / -1; }
.fig h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 .8rem; font: italic 600 1rem/1.2 var(--sans);  color: var(--red); }
.fig-sub { font-size: .86rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.fig-svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.fig-grid12 .fig-svg { max-width: 560px; }
.fig-scale .fig-svg { max-width: 480px; }
.fig-swing .fig-svg { max-width: 520px; }
.roll-row { display: flex; flex-wrap: wrap; gap: 14px; }
.roll-bar, .hands-bar { flex: 1 1 260px; margin: 0; min-width: 0; }
.roll-bar figcaption, .hands-bar figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: .8rem; color: var(--ink-3); }
.roll-bar figcaption b, .hands-bar figcaption b { color: var(--ink); font-weight: 700; }
.roll-bar figcaption span { font: 400 1.1rem/1 var(--serif); color: var(--ink); }
.fill-L { fill: var(--lh); }
.fill-R { fill: var(--rh); }
.tasten-bild { margin: 0 0 1.1rem; min-width: 0; --hand: var(--rh); }
.tasten-bild.hand-L { --hand: var(--lh); }
.tasten-bild figcaption { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.tasten-bild figcaption span { font: 400 1.1rem/1 var(--serif); }
.tasten-bild figcaption button { margin-left: auto; }
.tasten-karte { max-width: 520px; margin-bottom: .5rem; opacity: .9; }
.tk-w { fill: var(--card); stroke: var(--haar-2); }
.tk-c { fill: var(--red); }
.tk-b { fill: var(--ink-2); }
.tk-hier { fill: color-mix(in srgb, var(--hand) 24%, transparent); stroke: var(--hand); stroke-width: 2.5; }
.tasten-rahmen { overflow-x: auto; }
.fig-svg.tasten { max-width: 720px; }
.taste.an .key-w { fill: color-mix(in srgb, var(--hand) 42%, var(--card)); stroke: var(--hand); }
.taste.an .key-b { fill: color-mix(in srgb, var(--hand) 72%, #101820); stroke: var(--hand); }
.taste rect { transition: fill .12s; }
.taste.klingt .key-w, .taste.klingt .key-b { fill: var(--sun); }
.taste-nr { fill: var(--card); stroke: var(--hand); stroke-width: 1.5; }
.taste-nr-t { fill: var(--ink); font-size: 11px; font-weight: 800; }
.taste-c { fill: var(--ink-3); font-size: 11px; }
.taste .key-name.b { fill: #fff; }
.tasten-folge { display: flex; flex-wrap: wrap; gap: 5px; margin: .6rem 0 0; padding: 0; list-style: none; }
.tasten-folge li { display: grid; justify-items: center; align-content: start; min-width: 40px; padding: .3rem .4rem; border-radius: 10px; background: color-mix(in srgb, var(--hand) 14%, transparent); font-size: .9rem; line-height: 1.2; }
.tasten-folge i { font-style: normal; font-size: .78rem; color: var(--ink-3); }
.tasten-folge li.klingt { background: color-mix(in srgb, var(--sun) 55%, transparent); }
.hook { font: 600 1.15rem/1.45 var(--serif); margin: 0 0 .8rem; }
.idee { margin: 0; padding: 1rem 1.2rem; border-radius: 10px; background: color-mix(in srgb, var(--sea) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sea) 40%, transparent); }
.idee h3, .ausblick h3, .auftakt h3 { margin: 0 0 .3rem; font: italic 600 1rem/1.2 var(--sans);  color: var(--ink-2); }
.idee p, .ausblick p, .auftakt p { margin: 0 0 .5rem; }
.idee p:last-child, .auftakt p:last-child { margin-bottom: 0; }
.ausblick, .auftakt { padding: 1rem 1.2rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.hilfe-themen h2 { margin: 1.8rem 0 .7rem; font-size: 1.35rem; }
.kurs-video { display: block; width: 100%; max-width: 640px; border-radius: 10px; background: #000; }
.g12 rect { fill: var(--glas-karte); stroke: var(--haar-2); stroke-width: 1; }
.g12-I rect { fill: color-mix(in srgb, var(--sea) 14%, transparent); stroke: color-mix(in srgb, var(--sea) 50%, transparent); }
.g12-IV rect { fill: color-mix(in srgb, var(--sun) 20%, transparent); stroke: color-mix(in srgb, var(--sun) 70%, transparent); }
.g12-V rect { fill: color-mix(in srgb, var(--red) 13%, transparent); stroke: color-mix(in srgb, var(--red) 50%, transparent); }
.g12-hl rect { stroke: var(--red); stroke-width: 2.5; }
.g12-n { fill: var(--ink-3); font-size: 11px; font-weight: 600; }
.g12-deg { fill: var(--ink); font-family: var(--serif); font-size: 30px; font-weight: 700; }
.g12-chord { fill: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.roll-black { fill: var(--haar); }
.roll-beat { stroke: var(--haar-2); stroke-width: 1; }
.roll-eighth { stroke: var(--haar); stroke-width: 1; stroke-dasharray: 2 3; }
.roll-count { fill: var(--ink-2); font-size: 10.5px; font-weight: 700; }
.roll-count.off { fill: var(--ink-3); font-weight: 500; }
.roll-name { fill: #fff; font-size: 9.5px; font-weight: 750; pointer-events: none; }
:root[data-theme="dark"] .roll-name { fill: #0f1923; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .roll-name { fill: #0f1923; } }
.lane { stroke: var(--haar-2); stroke-width: 1; }
.lane-label { fill: var(--ink-3); font-size: 11px; font-weight: 700; }
.lane-label.r { fill: var(--rh); }
.lane-label.l { fill: var(--lh); }
.together { stroke: var(--sun); stroke-width: 1.5; stroke-dasharray: 2 3; }
.fig-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .8rem; color: var(--ink-3); flex-basis: 100%; }
.lg { display: inline-block; width: 14px; height: 8px; border-radius: 4px; vertical-align: middle; }
.lg-l { background: var(--lh); }
.lg-r { background: var(--rh); }
.lg-t { width: 2px; height: 12px; border-left: 2px dashed var(--sun); border-radius: 0; }
.key-w { fill: var(--card); stroke: var(--haar-stark); stroke-width: 1; }
.key-w.on { fill: color-mix(in srgb, var(--sun) 55%, var(--card)); }
.key-b { fill: var(--ink); stroke: var(--ink); }
.key-b.on { fill: color-mix(in srgb, var(--sun) 60%, #6b4a10); }
.key-name { fill: var(--ink); font-size: 13px; font-weight: 750; }
.key-name.b { fill: #fff; font-size: 11px; }
.key-deg { fill: var(--ink-3); font-size: 11.5px; font-weight: 700; }
:root[data-theme="dark"] .key-name.b { fill: #0f1923; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .key-name.b { fill: #0f1923; } }
.sw.on { fill: color-mix(in srgb, var(--sun) 24%, transparent); stroke: color-mix(in srgb, var(--sun) 75%, transparent); }
.sw.off { fill: var(--glas-karte); stroke: var(--haar-2); }
.sw-t { fill: var(--ink); font-size: 12px; font-weight: 700; }
.sw-note { fill: var(--ink-3); font-size: 11px; }

/* ----------------------------------------------------------- help ---- */
.faq { display: grid; gap: 10px; max-width: 46em; }
.hilfe-credits { margin-top: 2rem; max-width: 46em; font-size: .85rem; }
.hilfe-credits a { color: var(--ink-3); text-decoration: none; }
.hilfe-credits a:hover { text-decoration: underline; }
.faq details { border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }
.tasten { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tastenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tastenliste li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; color: var(--ink-2); }
kbd { display: inline-block; min-width: 1.7em; padding: .1em .45em; border-radius: 10px; font: 700 .85em/1.4 var(--sans); text-align: center; background: var(--card); box-shadow: inset 0 -2px 0 var(--haar-2), inset 0 0 0 1px var(--haar-2); }

/* ---------------------------------------------------------- sheets ---- */
dialog.sheet {
  width: min(560px, 100vw); max-width: 100vw; max-height: min(88dvh, 820px); margin: auto; padding: 0; border: 0; border-radius: 10px;
  color: var(--ink); background: var(--glas-dicht);
  box-shadow: inset 0 0 0 1px var(--haar-2);
  overflow: hidden; overscroll-behavior: contain;
}
.sheet-fuss { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem; border-top: 1px solid var(--haar-2); color: var(--ink-3); flex: none; }
.sheet-fuss.offen { color: var(--ink); font-weight: 600; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-rein .32s var(--feder); }
dialog.sheet::backdrop { background: rgba(10, 20, 32, .38); }
@keyframes sheet-rein { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.1rem .4rem 1.5rem; }
.sheet-kopf h2 { margin: 0; font-size: 1.5rem; }
.sheet-inhalt { padding: .4rem 1.5rem 1.5rem; overflow-y: auto; display: grid; gap: 1.1rem; }
.zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; }
.zeile > label, .zeile > span:first-child { font-weight: 600; }
.zeile small { display: block; font-weight: 400; color: var(--ink-3); line-height: 1.35; }
.zeile-stapel { flex-direction: column; align-items: stretch; gap: .55rem; padding-block: .2rem; }
.zeile-stapel .seg { align-self: flex-start; flex-wrap: wrap; }
.feld { display: grid; gap: .4rem; font-weight: 600; }
.feld small { font-weight: 400; color: var(--ink-3); }
.sheet-gruppe { display: grid; gap: .6rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.sheet-gruppe h3 { margin: 0; font: italic 600 1rem/1.2 var(--sans);  color: var(--ink-3); }
.sheet-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .92rem; }
.geraete { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.geraet { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.geraet svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.geraet b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geraet.ist-aktiv { box-shadow: inset 0 0 0 1.5px rgba(var(--gruen-rgb), .7); background: rgba(var(--gruen-rgb), .1); }
.geraet.ist-aktiv svg { color: rgb(var(--gruen-rgb)); }
.plattform { font-size: .95rem; color: var(--ink-2); }
.plattform p { margin: 0 0 .5em; }
.plattform ol { margin: .2em 0 0; padding-left: 1.3em; }
.test-taste { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); font-weight: 600; }
.test-taste b { font: 400 1.6rem/1 var(--serif); min-width: 2.2em; text-align: center; }
.test-taste.ok { box-shadow: inset 0 0 0 1.5px rgba(var(--gruen-rgb), .7); }

/* Ergebnis */
.ergebnis { text-align: center; justify-items: center; padding-top: 1.6rem; }
.ergebnis h2 { margin: .2rem 0 0; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.ergebnis > p { margin: 0; color: var(--ink-2); max-width: 30em; }
.ergebnis-zahlen { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin: .2rem 0; }
.ergebnis-zahlen div { display: grid; gap: 2px; }
.ergebnis-zahlen b { font: 400 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.ergebnis-zahlen small { color: var(--ink-3); font-weight: 600; }
.ergebnis .knopfreihe { justify-content: center; }
.ergebnis .marke { font-size: .9rem; }

/* Onboarding */
.tour { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: hidden; }
.tour::backdrop { background: none; }
.tour-ring { position: fixed; border-radius: 10px; box-shadow: 0 0 0 3px var(--rot, #c9372c), 0 0 0 200vmax rgb(16 24 38 / .55); transition: left .25s, top .25s, width .25s, height .25s; pointer-events: none; }
.tour-karte { position: fixed; display: grid; gap: .7rem; width: min(400px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; padding: 1.2rem 1.3rem; border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: none; }
.tour-karte :is(h2, p) { margin: 0; }
.tour-karte h2 { font-size: 1.35rem; }
.tour-karte .tour-zahl { font-size: .85rem; color: var(--ink-3); }
.tour-karte .knopfreihe { justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }
.roll-wartet { position: absolute; z-index: 2; left: 50%; bottom: calc(clamp(72px, 24%, 150px) + 64px); transform: translateX(-50%); padding: .45rem 1rem; border-radius: 10px; background: var(--card); color: var(--ink); font: 700 .95rem/1.2 var(--sans); box-shadow: none; white-space: nowrap; pointer-events: none; }
.roll-wartet[hidden] { display: none; }
.ob .sheet-inhalt { padding-top: 1.6rem; min-height: 340px; align-content: start; }
.ob-slide { display: grid; gap: .8rem; }
.ob-slide h2 { margin: 0; }
.ob-slide p { margin: 0; color: var(--ink-2); }
.ob-bild { display: grid; place-items: center; height: 120px; border-radius: 10px; background: color-mix(in srgb, var(--sea) 10%, transparent); color: var(--sea); }
.ob-bild svg { width: 64px; height: 64px; }
.ob-fuss { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem 1.3rem; }
.ob-fuss .punkte > i.jetzt { background: var(--ink); }

@media (max-width: 640px) {
  dialog.sheet { width: 100vw; margin: auto 0 0; border-radius: 10px 10px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  dialog.sheet[open] { animation: sheet-hoch .34s var(--feder); }
  @keyframes sheet-hoch { from { transform: translateY(40%); opacity: .4; } }
  .sheet-inhalt { padding-inline: 1.15rem; }
  .sheet-kopf { padding-left: 1.15rem; }
}

/* ---------------------------------------------------------- footer ---- */
.foot { max-width: var(--seite); margin: 0 auto; padding: 1.6rem 20px 2.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; color: var(--ink-3); font-size: .88rem; border-top: 1px solid var(--haar); }
.foot a { color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
body.route-lesson .foot { display: none; }

/* ------------------------------------------------- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
:root[data-motion="reduced"] * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
:root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
:root[data-motion="reduced"] .rolle-kopf { animation: none; opacity: 0; }
:root[data-motion="reduced"] .note { animation: none; opacity: .95; }
.konto-teil > .knopf { justify-self: start; }
.gesperrt-seite .gesperrt > svg { display: block; margin-bottom: .8rem; }
.gesperrt-seite:has(> :only-child) .gesperrt > svg { margin-inline: auto; }
@media (max-width: 820px) { .gesperrt-seite .gesperrt > svg { margin-inline: auto; } }

/* ------------------------------------- Bibliothek, Aufnahme, Kombi ---- */
.mini-roll, .kachel > .mini-roll { display: block; width: 100%; height: 38px; margin: .35rem 0 .15rem; opacity: 1; border-radius: 10px; background: color-mix(in srgb, var(--k) 8%, transparent); }
.mini-roll rect { fill: var(--k); opacity: .85; }
.mini-roll .takt-linie { stroke: var(--haar-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-roll .spur-lh rect { fill: var(--lh); }
.mini-roll .spur-rh rect { fill: var(--rh); }
.mini-roll .spur-linie { stroke: var(--haar); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* The tile keeps room on the right for the star; the preview may use it, it sits below the star. */
.art-kombi .mini-roll { height: 46px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.mini-roll-gross { height: clamp(96px, 18vw, 140px); margin: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--haar); }
.stueck.art-kombi { --k: var(--sun); }
.stueck.eigen h3 { padding-right: 0; }
.eigen-aktionen { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: .15rem; }
.stueck.hat-hoeren .eigen-aktionen { min-height: 44px; align-items: center; padding-right: 54px; pointer-events: none; }
.stueck.hat-hoeren .eigen-aktionen > * { pointer-events: auto; }
.mini-knopf { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--haar); cursor: pointer; transition: color .15s, background-color .15s, box-shadow .15s; }
.mini-knopf.mit-text { display: inline-flex; align-items: center; gap: 5px; width: auto; padding: 0 10px 0 8px; font-size: .78rem; font-weight: 600; text-decoration: none; }
.regal:not(.ist-offen) .eigen-aktionen .mit-text { padding: 0 8px 0 7px; gap: 4px; }
.regal:not(.ist-offen) .eigen-aktionen [data-unfav] span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.mini-knopf svg { width: 17px; height: 17px; }
.mini-knopf:hover { color: var(--ink); background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.mini-knopf:is([data-delete], [data-unfav]):hover { color: rgb(var(--rot-rgb)); box-shadow: inset 0 0 0 1.5px rgba(var(--rot-rgb), .6); }
.umbenennen { position: relative; z-index: 2; display: flex; gap: 6px; align-items: center; }
.umbenennen .eingabe { flex: 1; min-width: 0; min-height: 40px; }
.umbenennen .knopf { flex: none; }
.kachel.wird-umbenannt:hover { transform: none; }
.kachel.wird-umbenannt .eigen-aktionen { display: none; }

.leer { display: grid; gap: .8rem; justify-items: start; padding: 1.1rem 1.2rem; border-radius: var(--r-kachel); box-shadow: inset 0 0 0 1.5px var(--haar-2); border: 0; background: color-mix(in srgb, var(--paper) 30%, transparent); }
.leer p { margin: 0; color: var(--ink-2); max-width: 36em; }
.kachel-neu { align-items: center; justify-content: center; text-align: center; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.kachel-neu > svg { width: 28px; height: 28px; opacity: .8; }
.kachel-neu:hover { color: var(--ink); background: var(--glas); }

.studio-aktionen { margin-top: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.studio-aktion { min-height: 128px; }
.studio-aktion > svg { color: var(--k); opacity: 1; }
.studio-aktion .marke { align-self: flex-start; margin-top: auto; }
.studio-gesperrt { --g: var(--orange-rgb); display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; }
.studio-gesperrt > svg { width: 20px; height: 20px; flex: none; margin-top: .1em; }
.studio-start { display: grid; gap: 1rem; }
.studio-start h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.studio-schritte { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.studio-schritte li { display: flex; gap: .8rem; align-items: flex-start; }
.studio-schritte li > svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.studio-schritte b { display: block; margin-bottom: .15rem; }
.studio-schritte span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }

.studio-seite { display: grid; gap: 1.1rem; align-content: start; }
.studio-seite > .zurueck { margin-bottom: -.4rem; }
.studio-kopf h1 { margin-bottom: .35rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.studio-kopf h1::after { content: ""; display: block; width: 46px; height: 5px; margin-top: .55rem; border-radius: 10px; background: var(--k); }
.studio-kopf .lead { margin: 0; }
.studio-kopf .leise { margin: .4rem 0 0; }
.studio-art .seg { flex-wrap: wrap; }
.studio-einstellungen { display: grid; gap: 1rem; }
.einstell-raster { display: grid; gap: 1rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: start; }
.einstell-raster .feld { align-content: start; }
.einstell-raster .seg { justify-self: start; flex-wrap: wrap; }
.feld output { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.feld-wert { margin: 0; padding: .7rem 0; font-weight: 400; color: var(--ink-2); }
.feld-hand { position: relative; padding-left: .8rem; }
.feld-hand::before { content: ""; position: absolute; left: 0; top: .15rem; bottom: .15rem; width: 4px; border-radius: 4px; background: var(--k); }
.feld-name .eingabe { font-size: 1.1rem; font-weight: 600; }

.studio-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.studio-fuss[hidden] { display: none; }
.studio-fuss-kombi { justify-content: space-between; }
.knopf-gross { min-height: 54px; padding: .9em 1.6em; font-size: 1.08rem; }
.knopf-gross svg { width: 20px; height: 20px; }
.rec-knopf { min-width: 13rem; }
.rec-knopf.nimmt-auf { animation: rec-puls 1.2s ease-in-out infinite; }
@keyframes rec-puls { 50% { box-shadow: 0 0 0 10px rgba(var(--rot-rgb), .18); } }
.rec-status { margin: 0; color: var(--ink-2); font-weight: 600; flex: 1 1 14rem; }
.studio-hinweis { --g: var(--orange-rgb); flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }

.studio-ergebnis:empty { display: none; }
.studio-karte { display: grid; gap: 1rem; }
.studio-karte h2 { margin: 0; }
.studio-karte .sektion-kopf { margin: 0; }
.studio-karte > .leise { margin: 0; }
.takes { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.takes button { flex: none; display: grid; gap: 2px; min-width: 7.5rem; padding: .55rem .8rem; border: 0; border-radius: 10px; text-align: left; color: var(--ink); background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); cursor: pointer; font: inherit; }
.takes button small { color: var(--ink-3); font-size: .8rem; }
.takes button[aria-pressed="true"] { background: color-mix(in srgb, var(--akzent) 18%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.studio-karte .zeile { flex-wrap: wrap; }
.studio-karte .zeile .seg { flex-wrap: wrap; }
.speichern { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--haar); }
.speichern .feld { flex: 1 1 16rem; }
.gespeichert { text-align: center; justify-items: center; }
.gespeichert .eyebrow { display: inline-flex; align-items: center; gap: .35em; margin: 0; color: rgb(var(--gruen-rgb)); }
.gespeichert .eyebrow svg { width: 16px; height: 16px; }
.gespeichert h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.gespeichert > p { margin: 0; color: var(--ink-2); max-width: 32em; }
.gespeichert .knopfreihe { justify-content: center; }

.form-streifen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.takt { display: grid; gap: 2px; justify-items: center; padding: .55rem .1rem .4rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.takt b { font: 700 .95rem/1.1 var(--sans); }
.takt small { font-size: .7rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.takt.stufe-IV { background: color-mix(in srgb, var(--sea) 13%, var(--card)); }
.takt.stufe-V { background: color-mix(in srgb, var(--sun) 20%, var(--card)); }
.takt.mit-fill { box-shadow: inset 0 0 0 1.5px var(--rh), inset 0 -4px 0 color-mix(in srgb, var(--rh) 55%, transparent); }
@media (max-width: 640px) {
  .form-streifen { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .studio-fuss-kombi > .knopf, .studio-fuss-kombi .knopfreihe { flex: 1 1 100%; }
  .studio-fuss-kombi .knopfreihe .knopf { flex: 1; }
  .rec-knopf { flex: 1 1 100%; }
  .studio-aktionen { grid-template-columns: 1fr 1fr; }
  .studio-aktion { min-height: 112px; padding: .9rem; }
  .studio-aktion small { font-size: .85rem; }
}
@media (max-width: 400px) {
  .reiter-unten > a, .reiter-unten > button { font-size: .72rem; padding-inline: .15em; }
}

/* Combo editor: further choruses with their own riff. */
.durchgaenge { display: grid; gap: .6rem; margin: 1.2rem 0 0; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--haar); }
.durchgaenge legend { float: left; width: 100%; padding: 0; font: 700 1rem/1.3 var(--sans); color: var(--ink); }
.durchgaenge > .leise { margin: 0 0 .2rem; max-width: 62ch; }
.durchgang { display: flex; align-items: flex-end; gap: .5rem; max-width: 520px; }
.durchgang .feld { flex: 1; }
.durchgang .icon-btn { flex: none; margin-bottom: 2px; }
.durchgang-dazu { justify-self: start; }

/* Kategorien */
.kat-chips { flex-wrap: wrap; overflow: visible; margin: 0 0 .9rem; }
.kat-chips .chip { --akzent: var(--sea); }
.chip-zahl { font-weight: 600; font-size: .8em; color: var(--ink-3); }
.chip[aria-pressed="true"] .chip-zahl { color: var(--ink-2); }
.kat-lead { max-width: 62ch; margin: -.2rem 0 1.2rem; }

/* Static text until the app has loaded (German, also for search engines). */
:root[lang="en"] .vorab { visibility: hidden; }

/* Bibliothek: ein Regal je Kategorie, zur Seite blättern */
#songs .songs-filter .kat-chips, #practice .kat-chips { flex-wrap: nowrap; overflow-x: auto; }
#songs .kat-chips .chip, #practice .kat-chips .chip { flex: none; }
.songs-filter > * { min-width: 0; }
.songs-filter-inhalt { display: grid; gap: .8rem; min-width: 0; }
.songs-filter-inhalt > * { min-width: 0; }
.songs-zahl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 48px; margin: 0 0 .6rem; }
.kreuz { width: 14px !important; height: 14px !important; flex: none; }
.filter-an { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip-weg { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.chip:disabled { opacity: .4; cursor: default; }
.wahl-klein { min-height: 44px; padding: .2em .8em; border: 0; border-radius: 10px; font: 600 .95rem/1.2 var(--sans); color: var(--ink); background-color: var(--card); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.stueck.hat-cover { overflow: hidden; }
.stueck .cover { display: block; width: calc(100% + 2.1rem); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -1.05rem -1.05rem .35rem; border-radius: inherit; border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: 0 5px 0 var(--grad, transparent); }
.stueck.hat-cover.art-song::before { display: none; }
#songs-print { margin-left: auto; }
@media (max-width: 640px) { .raster .stueck .cover { aspect-ratio: 5 / 2; } }
.stueck.hat-cover .fav { background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--ink-2); }
.stueck.hat-cover .fav[aria-pressed="true"] { color: var(--red); }
.stueck.hat-cover h3 { padding-right: 0 !important; margin-top: .3rem; }
.regal-gruppe { margin-top: 2rem; }
.regal-kopf { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.regal-kopf h2 { flex: 1; min-width: 0; margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.regal-kopf .chip { flex: none; }
.regal-pfeil:disabled { opacity: .3; }
.regal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 23.5%); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -20px; padding: 8px 20px 22px; scroll-padding-inline: 20px; }
.regal::-webkit-scrollbar { display: none; }
.regal > * { scroll-snap-align: start; }
.regal.ist-offen { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); overflow: visible; }
@media (max-width: 640px) {
  .regal { grid-auto-columns: 72%; }
  .regal-pfeil { display: none; }
}
.regal .stueck, #songs-liste .stueck { min-height: 168px; padding-right: 1.05rem; }
#practice .regal .stueck > .mini-roll { width: 100%; }
#practice .regal .stueck h3 { padding-right: 2.1rem; font-size: 1.12rem; overflow-wrap: anywhere; hyphens: auto; }
#songs-liste .stueck h3 { padding-right: 2.1rem; font-size: 1.12rem; overflow-wrap: anywhere; hyphens: auto; }
#songs-liste .stueck.hat-hoeren .meta { min-height: 0; padding-right: 0; }
#songs-liste .stueck .meta { white-space: nowrap; }
#songs-liste .marke-schloss { margin-left: auto; font-size: .74rem; }
.hashtags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0 .6rem; align-self: flex-start; }
.hashtag { min-height: 28px; padding: 0; border: 0; background: none; font: 600 .86rem/1 var(--sans); color: var(--ink-2, var(--ink-3)); }
.hashtag:hover, .hashtag[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.hashtag[aria-pressed="true"] { font-weight: 800; }
.stufe { position: relative; z-index: 2; align-self: flex-start; }
:is(.stufe select, .stufe .wahl) { min-height: 40px; padding: .2em 2.3em .2em .9em; border: 0; border-radius: 10px; font: 600 .9rem/1.2 var(--sans); color: var(--ink); background-color: var(--card); box-shadow: inset 0 0 0 1.5px var(--haar-2); cursor: pointer; }
.stufe select:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Stücke: Suche und Filter, Sterne je Fassung */
.songs-filter { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.songs-filter .kat-chips { margin: 0; }
.songs-filter .kat-lead { margin: .2rem 0 0; }
.suche { display: block; max-width: 420px; }
.filter-gitter { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
.filter-reihe { display: grid; gap: .3rem; }
.filter-name { font: italic 600 1rem/1.2 var(--sans); color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .songs-filter, .filter-reihe { grid-template-columns: minmax(0, 1fr); }
  .filter-reihe { width: 100%; }
}
.fassungen { display: flex; flex-wrap: wrap; gap: .2rem .8rem; flex-basis: 100%; }
.fassung { display: inline-flex; align-items: center; gap: .35em; }
.seg > button .sterne { margin-left: .4em; vertical-align: -2px; }
.seg > button .sterne svg { width: 12px; height: 12px; }
.res-stufe { margin: .2rem 0; font-weight: 700; }

/* Printing the sheet music on A4: only #druck is on paper, in black. */
#druck { display: none; }
/* Hörprobe: Knopf auf den Karten und kleiner Player am unteren Rand */
.hoeren {
  position: absolute; z-index: 3; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  color: var(--ink); background: color-mix(in srgb, var(--k) 24%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--k) 55%, transparent); transition: transform .2s var(--feder);
}
.hoeren svg { width: 22px; height: 22px; }
.hoeren:hover { transform: scale(1.08); }
.hoeren svg + svg, .vh-play svg + svg, .hoeren[aria-pressed="true"] svg:first-child, .vh-play[aria-pressed="true"] svg:first-child { display: none; }
.hoeren[aria-pressed="true"] svg + svg, .vh-play[aria-pressed="true"] svg + svg { display: block; }
.stueck.hat-hoeren .meta { min-height: 44px; align-content: flex-end; }
.nav-kurz { display: none; }
@media (max-width: 640px) {
  .nav-kurz { display: inline; }
  .nav-lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.vorhoeren[hidden] { display: none; }
.vorhoeren {
  position: fixed; z-index: 48; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(var(--seite), 100vw - 24px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 10px;
  color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--haar-2); animation: vh-auf .22s ease-out;
}
@keyframes vh-auf { from { opacity: 0; transform: translate(-50%, 14px); } }
.vh-play { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--red); }
.vh-play svg { width: 26px; height: 26px; }
.vh-titel { flex: 1 1 8rem; min-width: 0; margin: 0; line-height: 1.2; }
.vh-titel b, .vh-titel small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-titel small { color: var(--ink-3); }
.vh-lauf { flex: 2 1 10rem; display: flex; align-items: center; gap: 10px; min-width: 0; }
.vh-lauf input { flex: 1; min-width: 0; height: 32px; margin: 0; accent-color: var(--sea); cursor: pointer; }
.vh-lauf output { flex: none; min-width: 5.6em; text-align: right; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vh-was { flex: none; }
.vh-was button { white-space: nowrap; }
.vh-drums { flex: none; }
.vh-open { flex: none; }
.vorhoeren .icon-btn { flex: none; }
body.hat-vorhoeren { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.hat-vorhoeren .player { height: calc(100dvh - 88px - env(safe-area-inset-bottom)); }
body.route-player.hat-vorhoeren { padding-bottom: 0; }
@media (max-width: 860px) {
  .vorhoeren { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 2px 8px; }
  .vh-text { grid-area: 5 / 1 / auto / -1; }
  .vh-play { grid-area: 1 / 1; }
  .vh-titel { grid-area: 1 / 2; }
  .vh-next { grid-area: 1 / 3; }
  .vh-zu { grid-area: 1 / 4; }
  .vh-lauf { grid-area: 2 / 1 / auto / -1; padding-inline: 6px; }
  .vh-was { grid-area: 3 / 1 / auto / -1; justify-self: start; }
  .vh-drums { grid-area: 4 / 1 / auto / 3; justify-self: start; }
  .vh-open { grid-area: 4 / 3 / auto / -1; justify-self: end; }
  body.hat-vorhoeren { padding-bottom: calc(238px + env(safe-area-inset-bottom)); }
  body.hat-vorhoeren .player { height: calc(100dvh - 214px - env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .vorhoeren { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 68px); }
  body.route-player .vorhoeren, body.route-lesson .vorhoeren { bottom: max(10px, env(safe-area-inset-bottom)); }
  body.hat-vorhoeren:not(.route-player):not(.route-lesson) { padding-bottom: calc(298px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) { .vh-was button { padding-inline: 10px; } .vh-open { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .vorhoeren { animation: none; } .hoeren:hover { transform: none; } }

/* One svg per sheet (src/druck.js). The size of the paper is set there, too:
   no margins of the browser, and if it insists on its own the sheet shrinks. */
@media print {
  .vorhoeren { display: none; }
  body > *:not(#druck) { display: none !important; }
  html, body { display: block !important; width: auto !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important; color-scheme: light !important; }
  body::before, body::after { display: none !important; }
  #druck { display: block; margin: 0; padding: 0; background: #fff; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .druck-zeichen { position: absolute; width: 0; height: 0; }
  .druck-seite { display: block; margin: 0; padding: 0; break-inside: avoid; page-break-inside: avoid; break-after: page; page-break-after: always; }
  .druck-seite:last-child { break-after: auto; page-break-after: auto; }
  .druck-seite > svg { display: block; width: 100%; height: auto; overflow: hidden; }
  .druck-seite text { font-family: "Vollkorn", Georgia, "Times New Roman", serif; fill: #000; stroke: none; white-space: pre; }
  .druck-seite text.dz-marke { font-family: "Alfa Slab One", "Vollkorn", Georgia, serif; }
  .druck-seite .dz-f { fill: #000; stroke: none; }
}

/* ------------------------------------------- Profilbild, Einstellungen ---- */
.avatar { position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--av, var(--sea)); color: #fff; }
.avatar > svg { width: 100%; height: 100%; display: block; }
.avatar > .avatar-person { width: 78%; height: 78%; }
.avatar > b { font: 700 13px/1 var(--sans); letter-spacing: .02em; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-mittel { width: 64px; height: 64px; }
.avatar-mittel > b { font-size: 25px; }
.avatar-gross { width: 104px; height: 104px; box-shadow: 0 0 0 4px var(--card), 0 0 0 5.5px var(--haar-2); }
.avatar-gross > b { font-size: 40px; }
#konto-bild:empty { display: none; }
#konto-bild { display: inline-grid; }
.konto-link.mit-bild > svg { display: none; }
#settings-link { color: inherit; text-decoration: none; }
.konto-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.konto-kopf h1 { margin: 0; overflow-wrap: anywhere; min-width: 0; }

#settings h1 { margin-bottom: 1.1rem; }
.zurueck-link { display: inline-flex; align-items: center; gap: .25em; margin: 0 0 .6rem -.3rem; padding: .3rem .6rem .3rem .3rem; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink-2); text-decoration: none; }
.zurueck-link svg { width: 18px; height: 18px; }
.es { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; }
.es-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.es-nav a { display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: .4rem .9rem; border-radius: 10px; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.es-nav a:hover { color: var(--ink); background: var(--glas-karte); }
.es-nav a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 16%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 55%, transparent); }
.es-nav svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.es-nav a[aria-current] svg { color: var(--akzent); }
.es-inhalt { max-width: 680px; min-width: 0; }
.es-titel { margin: 0 0 .8rem; font-size: 1.6rem; }
#es-body { display: grid; gap: 14px; }
#es-body > p { margin: 0; }
.es-gruppe { gap: 1rem; padding: 1.2rem 1.3rem; background: var(--glas-dicht); grid-template-columns: minmax(0, 1fr); }
.es-gruppe .zeile { min-height: 40px; }
.es-gruppe .zeile > span:first-child { min-width: 0; }
.es-gruppe small { display: block; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.es-gruppe .knopfreihe small { max-width: 34em; }
.es-notiz { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.es-tipp { padding: .8rem 1rem; border-radius: 10px; background: var(--sea-soft); font-size: .95rem; line-height: 1.45; }
.es-tipp p { margin: 0; }
.es-tipp p + p { margin-top: .5em; }
.feld-kopf { display: flex; justify-content: space-between; gap: 1rem; }
.feld-kopf output { color: var(--ink); white-space: nowrap; }
.es-gruppe input[type="range"] { width: 100%; min-height: 32px; margin: 0; accent-color: var(--akzent); }
.es-gruppe :is(select.eingabe, .wahl.eingabe) { width: 100%; }
.es-gruppe .seg { max-width: 100%; border-radius: 10px; }

#es-geraet, #es-ausgabe { display: grid; gap: 1rem; }
#es-ausgabe:empty { display: none; }
.es-profil { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.motive { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; max-width: 480px; }
.motiv { padding: 0; border: 0; border-radius: 50%; aspect-ratio: 1; background: none; overflow: hidden; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--haar-2); transition: transform .15s; }
.motiv:hover { transform: scale(1.05); }
.motiv[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--akzent); }
.motiv:focus-visible { outline: 3px solid var(--fokus); outline-offset: 5px; }
.motiv > svg, .motiv > .avatar { display: grid; width: 100%; height: 100%; }
.motiv > .avatar > b { font-size: 22px; }
.datei-knopf { position: relative; cursor: pointer; }
.datei-knopf input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.datei-knopf:focus-within { outline: 3px solid var(--fokus); outline-offset: 2px; }
.datei-knopf.arbeitet { opacity: .6; }
.farbprobe { display: inline-flex; gap: 3px; margin-right: .5em; vertical-align: -1px; }
.farbprobe > i { width: 12px; height: 12px; border-radius: 4px; background: var(--p1); }
.farbprobe > i + i { background: var(--p2); }
.farbprobe-standard { --p1: #1f5f8b; --p2: #c8372d; }
.farbprobe-blueorange { --p1: #0067a5; --p2: #d9701a; }
.farbprobe-redgreen { --p1: #c8372d; --p2: #2c8f4d; }
.farbprobe-tealpink { --p1: #0f8d8a; --p2: #d0417f; }
.farbprobe-eigen { --p1: var(--lh); --p2: var(--rh); }
.szene { display: inline-block; width: 22px; height: 14px; margin-right: .5em; border-radius: 4px; vertical-align: -2px; box-shadow: inset 0 0 0 1px var(--haar-2); }
.es-bild { position: sticky; top: 72px; z-index: 2; height: 230px; margin-bottom: 1rem; overflow: hidden; border: 1px solid var(--haar-2); border-radius: 10px; background: var(--paper); }
.es-bild canvas { display: block; width: 100%; height: 100%; }
.es-farben { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0 0 1rem; }
.es-farben label { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
.es-farben input { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--haar-2); border-radius: 10px; background: none; cursor: pointer; }
.farbprobe-violet { --p1: #6d4fc2; --p2: #c9901a; }
.midi-test { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: .9rem 1rem; border-radius: 10px; background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.midi-test > b { min-width: 2.3em; text-align: center; font: 400 1.7rem/1 var(--serif); }
.midi-test.ok { box-shadow: inset 0 0 0 1.5px rgba(var(--gruen-rgb), .75); }
.midi-test.faul { box-shadow: inset 0 0 0 1.5px rgba(var(--orange-rgb), .8); }
.midi-test span { display: block; margin-top: .45rem; min-height: 2.8em; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.midi-balken { height: 10px; border-radius: 10px; background: var(--haar-2); overflow: hidden; }
.midi-balken i { display: block; width: 0; height: 100%; border-radius: inherit; background: rgb(var(--gruen-rgb)); transition: width .12s; }
.midi-test.faul .midi-balken i { background: rgb(var(--orange-rgb)); }
.kalib p { margin: 0 0 .6rem; }
.kalib-punkte { display: flex; gap: 10px; }
.kalib-punkte i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--haar-stark); }
.kalib-punkte i.an { background: rgb(var(--gruen-rgb)); box-shadow: none; }
.es-reset + .es-reset { border-top: 1px solid var(--haar); padding-top: 1rem; }
.es-frage { margin-top: .7rem; padding: .9rem 1rem; border-radius: 10px; background: var(--danger-soft); }
.es-frage p { margin: 0 0 .7rem; font-size: .97rem; line-height: 1.45; }
@media (max-width: 820px) {
  .es { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .es-nav { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
  .es-nav::-webkit-scrollbar { display: none; }
  .es-nav a { flex: none; min-height: 44px; gap: .45rem; box-shadow: inset 0 0 0 1.5px var(--haar); }
  .es-titel { margin-bottom: .7rem; }
  .es-gruppe { padding: 1.05rem 1rem; }
  .es-profil { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .es-profil .feld { width: 100%; }
  .konto-name { display: none; }
}
/* The top bar has no room to grow with the text size (settings). */
@media (min-width: 641px) {
  .topnav { flex-wrap: nowrap; }
  .topnav > a { font-size: calc(.98rem / max(1, var(--fs, 1))); }
  .topbar .brand { font-size: calc(1.12rem / max(1, var(--fs, 1))); }
}
@media (min-width: 641px) and (max-width: 760px) { .topnav > a { font-size: calc(.92rem / max(1, var(--fs, 1))); } }
@media (max-width: 360px) { .player-titel h1[class]::before { display: none; } }

/* Lernen: Kurse, Bässe und Riffs, Lernstand liegen unter einem Reiter */
.lern-reiter { margin: 0 0 1.4rem; max-width: 100%; }
.lern-reiter > a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 68%, transparent); }
.lern-reiter > a { min-height: 44px; }
@media (max-width: 480px) { .lern-reiter { display: flex; } .lern-reiter > a { flex: 1 1 auto; justify-content: center; padding-inline: .5em; text-align: center; } }
.topnav > a { position: relative; }
.nav-punkt { position: absolute; top: 7px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot, #cf4338); background: rgb(var(--rot-rgb)); }

/* Liedtext zum Mitsingen */
.liedtext { padding: .55rem 1rem .6rem; text-align: center; background: var(--card); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--haar); }
.liedtext[hidden] { display: none; }
.liedtext p { margin: 0; line-height: 1.3; text-wrap: balance; min-height: 1.3em; }
.lt-jetzt { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--ink); }
.lt-dann { font-size: .95rem; color: var(--ink-3); }
.lt-jetzt span { transition: color .12s; }
.lt-jetzt .ist-vorbei { color: var(--ink-3); }
.lt-jetzt .ist-dran { color: rgb(var(--rot-rgb)); text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
body.hat-vorhoeren:has(.vh-text:not([hidden])) main { padding-bottom: 64px; }
.vh-text { flex: 1 0 100%; order: -1; padding: .1rem .6rem .3rem; background: none; box-shadow: none; }
.vh-text .lt-jetzt { font-size: 1.1rem; }

/* Die gezeichneten Profilbilder bewegen sich: sie blinzeln, nicken und wackeln mit den Ohren. */
.avatar svg [class*="m-"], .motiv svg [class*="m-"] { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduced"]) :is(.avatar, .motiv) {
    .m-blink { animation: m-blink 3.8s infinite; }
    .m-kopf { transform-origin: 50% 100%; animation: m-kopf 6s ease-in-out infinite; }
    .m-bob { animation: m-bob 2.6s ease-in-out infinite; }
    .m-tip { transform-origin: 50% 100%; animation: m-sway 4.4s ease-in-out infinite; }
    .m-sway { animation: m-sway 5s ease-in-out infinite; }
    .m-wig { transform-origin: 50% 0; animation: m-wig 1.8s ease-in-out infinite; }
    .m-wav { transform-origin: 50% 10%; animation: m-wig 2.2s ease-in-out infinite; }
    .m-wavr { transform-origin: 50% 10%; animation: m-wig 2.2s ease-in-out .3s infinite reverse; }
    .m-twl { transform-origin: 80% 100%; animation: m-ohr 3.4s ease-in-out infinite; }
    .m-twr { transform-origin: 20% 100%; animation: m-ohr 3.4s ease-in-out 1.1s infinite reverse; }
    .m-spin { animation: m-spin 14s linear infinite; }
    .m-dreh { animation: m-spin 4s linear infinite; }
    .m-bloom { animation: m-bloom 4s ease-in-out infinite; }
    .m-puls { animation: m-puls 2.6s ease-in-out infinite; }
    .m-press { transform-origin: 50% 0; animation: m-press 3.2s ease-in-out infinite; }
    .m-steam { animation: m-steam 3s ease-in-out infinite; }
    .m-spaet { animation-delay: 1.1s; }
  }
  /* Not everyone blinks at the same time. */
  :root:not([data-motion="reduced"]) :is(.motiv, li, .freund, .karte):nth-child(3n) :is(.avatar, .motiv, svg) [class*="m-"] { animation-delay: -1.4s; }
  :root:not([data-motion="reduced"]) :is(.motiv, li, .freund, .karte):nth-child(3n + 1) :is(.avatar, .motiv, svg) [class*="m-"] { animation-delay: -2.7s; }
}
@keyframes m-blink { 0%, 62%, 74%, 80%, 100% { transform: none; } 65%, 71% { transform: scaleY(.08); } 77% { transform: scaleY(.08); } }
@keyframes m-kopf { 0%, 100% { transform: rotate(-5deg); } 25% { transform: translateY(-1.6px) rotate(0); } 50% { transform: rotate(5deg); } 75% { transform: translateY(-1.6px) rotate(0); } }
@keyframes m-bob { 0%, 100% { transform: none; } 50% { } }
@keyframes m-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes m-wig { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes m-ohr { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-16deg); } 86% { transform: rotate(8deg); } 93% { transform: rotate(-6deg); } }
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-bloom { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.05); } }
@keyframes m-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes m-press { 0%, 70%, 100% { transform: none; } 80% { transform: scaleY(.93); } }
@keyframes m-steam { 0%, 100% { transform: none; opacity: 1; } 50% { transform: translateY(-4px); opacity: .5; } }

/* Klaviere in den Einstellungen */
.klaviere { display: grid; gap: 8px; }
.klavier { display: flex; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--haar); transition: box-shadow .15s; }
.klavier.ist-gewaehlt { box-shadow: inset 0 0 0 2px var(--akzent); }
.klavier-wahl { flex: 1; min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.klavier-wahl > i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--haar); }
.klavier.ist-gewaehlt .klavier-wahl > i { color: var(--papier, #fff); background: var(--akzent); box-shadow: none; }
.klavier-wahl > i svg { width: 15px; height: 15px; }
.klavier-wahl b, .klavier-wahl small { display: block; }
.klavier-wahl small { color: var(--ink-3); line-height: 1.35; }

/* Lernstand als Teil von Üben */
.stand { margin-top: 1.4rem; display: grid; gap: 1rem; }
.stand-mehr > summary { width: fit-content; padding: .6rem 1.1rem; border-radius: 10px; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.stand-mehr > summary:hover { background: var(--glas-karte); }

/* Mikrofon */
.mic { display: grid; gap: .6rem; padding: 1rem; border-radius: var(--r-kachel); box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.mic.ist-an { box-shadow: inset 0 0 0 2px rgb(var(--gruen-rgb)); }
.mic-kopf { display: flex; align-items: center; gap: .8rem; }
.mic-kopf > svg { width: 26px; height: 26px; flex: none; }
.mic-kopf > div { flex: 1; display: grid; gap: .15rem; }
.mic-kopf > .knopf { flex: none; }
.mic small { color: var(--ink-2); }
.mic-pegel { height: 8px; border-radius: 10px; overflow: hidden; background: var(--haar); }
.mic-pegel i { display: block; height: 100%; background: rgb(var(--gruen-rgb)); transform: scaleX(0); transform-origin: left; }

/* Eigener Song */
#take { display: grid; gap: 1.1rem; }
#take > * { min-width: 0; }
.take-kopf h1 { margin: .2rem 0 .4rem; overflow-wrap: anywhere; }
.take-karte, .take-wahl, .take-sichern { display: grid; gap: 1rem; }
.take-sichern small { color: var(--ink-2); }
.take-bild { position: relative; height: 120px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.take-roll { display: block; width: 100%; height: 100%; }
.take-takte line, .take-takte path, .take-takte rect { stroke: var(--haar); fill: none; vector-effect: non-scaling-stroke; }
.take-roll .n-l { fill: var(--lh); } .take-roll .n-r { fill: var(--rh); }
.take-bild > p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; text-align: center; color: var(--ink-2); }
.take-bild > p[hidden] { display: none; }
.take-zeiger { position: absolute; top: 0; bottom: 0; width: 2px; background: rgb(var(--rot-rgb)); }
.take-status { margin: 0; min-height: 1.5em; font-weight: 700; color: var(--ink-2); }
.take-status:empty { display: none; }
.take-buehne { height: clamp(170px, 26vh, 260px); display: flex; }
.take-buehne .stage { flex: 1; min-width: 0; }
.take-spalten { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.take-spalten > :only-child { grid-column: 1 / -1; }
.take-spalten h2, .take-sichern h2 { margin: 0; font-size: 1.15rem; }
.take-spalten .karte { display: grid; gap: .9rem; min-width: 0; }
.take-spalten .seg, .take-beats .seg { flex-wrap: wrap; max-width: 100%; }
.dr-raster { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.dr-name { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.dr-zeile { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.dr-feld { height: 34px; padding: 0; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--ink) 12%, transparent); cursor: pointer; touch-action: manipulation; }
.dr-feld.und { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.dr-feld:nth-child(9) { margin-left: 4px; }
.dr-feld.leise { background: color-mix(in srgb, var(--sun) 50%, transparent); }
.dr-feld.laut { background: var(--sun); }
.dr-feld:disabled { cursor: default; }
.dr-zahlen i { font: 600 .72rem/1 var(--sans); text-align: center; color: var(--ink-3); }
.take-kachel .take-link { display: grid; gap: .4rem; color: inherit; text-decoration: none; }
.take-kachel .take-roll { height: 70px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.take-kachel h3 { margin: 0; overflow-wrap: anywhere; }
.take-kachel small { color: var(--ink-2); }
@media (max-width: 760px) {
  .take-spalten { grid-template-columns: minmax(0, 1fr); }
  .dr-raster { gap: 5px 6px; } .dr-name { font-size: .72rem; } .dr-zeile { gap: 2px; } .dr-feld { border-radius: 4px; height: 38px; }
}

/* Freunde */
.fr-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.fr-ich { display: flex; align-items: center; gap: .8rem; padding: .6rem 1.1rem .6rem .6rem; border-radius: 10px; color: inherit; text-decoration: none; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.fr-ich span:last-child { display: grid; } .fr-ich small, .fr-zeile small, .fr-post small, .fr-kachel small, .fr-konto { color: var(--ink-2); }
.fr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fr-zeile, .fr-post { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-radius: var(--r-kachel); background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.fr-post.ist-neu { box-shadow: inset 0 0 0 2px rgb(var(--rot-rgb)); }
.fr-zeile > div:not(.fr-akt), .fr-post > div:not(.fr-akt) { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.fr-post > img, .fr-cover { width: 80px; height: 50px; border-radius: 10px; object-fit: cover; flex: none; }
.fr-cover { display: grid; place-items: center; background: color-mix(in srgb, var(--sun) 35%, transparent); }
.fr-cover svg { width: 24px; height: 24px; }
.fr-akt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.fr-kachel { align-items: center; text-align: center; gap: .5rem; color: inherit; text-decoration: none; }
.fr-kachel > b, .fr-kachel > .fr-ort { max-width: 100%; overflow-wrap: anywhere; }
.fr-ort { display: inline-flex; align-items: baseline; gap: .45em; font-size: .9rem; }
.fr-ort i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--gruen-rgb)); }
.fr-unten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; align-items: start; }
.fr-unten .karte { display: grid; gap: .8rem; } .fr-unten h2, .fr-unten h3 { margin: 0; } .fr-unten h2 { font-size: 1.2rem; }
.fr-unten .zeile small { display: block; color: var(--ink-2); }
.fr-mini { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 4px; } .fr-mini li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.fr-profil { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.fr-profil h1 { margin: 0 0 .3rem; overflow-wrap: anywhere; } .fr-profil p { margin: 0 0 .4rem; }
.fr-wo { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: .3rem; }
.fr-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 1rem; max-width: 560px; }
.fr-zahlen div { padding: .8rem; border-radius: var(--r-kachel); text-align: center; background: var(--glas-karte); box-shadow: inset 0 0 0 1px var(--haar); }
.fr-zahlen dd { margin: 0; font-size: 1.7rem; font-weight: 800; } .fr-zahlen dt { color: var(--ink-2); font-size: .9rem; }
.fr-ende { margin-top: 2rem; }
.nav-punkt:not([hidden]) { top: -4px; right: -2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 10px; color: #fff; font: 700 .66rem/1 var(--sans); }
.send-was { display: flex; align-items: center; gap: .9rem; margin: 0; } .send-was img { width: 96px; border-radius: 10px; }
#send-form { display: grid; gap: 1rem; }
.send-wem { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 38vh; overflow: auto; } .send-wem legend { font-weight: 700; padding: 0 0 .4rem; }
.send-wem label { display: flex; align-items: center; gap: .8rem; padding: .35rem .5rem; border-radius: 10px; cursor: pointer; } .send-wem label:hover { background: var(--glas-karte); }
.send-wem .avatar { width: 44px; height: 44px; } .send-wem span:not(.avatar):not(.avatar *) { flex: 1; }
@media (max-width: 640px) { .fr-zeile, .fr-post { flex-wrap: wrap; } .fr-akt { width: 100%; } }

.sektion > .jam { margin: .8rem 0 1.2rem; }

.zugang-code summary { cursor: pointer; padding: 8px 0; color: var(--ink-2); }
.voll-stand { margin: 1rem 0 1.4rem; padding: 1rem 1.2rem; max-width: 760px; }
.voll-kopf { display: flex; align-items: center; gap: .8rem; }
.voll-kopf svg { flex: none; width: 24px; height: 24px; color: var(--ink-3); }
.voll-ja .voll-kopf svg { color: rgb(var(--gruen-rgb)); }
.voll-kopf b, .voll-kopf small { display: block; }
.voll-kopf small { color: var(--ink-2); }
.voll-stand p { margin: .9rem 0 0; }
.voll-mehr { margin-top: .9rem; }
.voll-mehr > summary { display: inline-flex; width: fit-content; list-style: none; cursor: pointer; }
.voll-mehr > summary::-webkit-details-marker { display: none; }
.voll-vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.2rem 2rem; margin-top: 1.1rem; }
.voll-vergleich h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.voll-contra i { flex: none; width: 18px; text-align: center; font-weight: 700; color: var(--ink-3); }
#konto > .preis { margin: 0 0 24px; max-width: 520px; }

/* profile: frame, backdrop, about */
.rahmen { border: 2.5px solid transparent; background: linear-gradient(var(--av, var(--sea)), var(--av, var(--sea))) padding-box, var(--rahmen) border-box; }
.avatar-mittel.rahmen { border-width: 4.5px; } .avatar-gross.rahmen { border-width: 7px; }
.rahmen-gold { --rahmen: linear-gradient(135deg, #f7dc8a, #b8862b 45%, #f2c14e 70%, #8f651b); }
.rahmen-rot { --rahmen: linear-gradient(#c8372d, #c8372d); } .rahmen-blau { --rahmen: linear-gradient(#2f7fb6, #2f7fb6); } .rahmen-gruen { --rahmen: linear-gradient(#3f9a63, #3f9a63); }
.rahmen-tasten { --rahmen: repeating-conic-gradient(#fbf7ef 0deg 17deg, #1b2b3c 17deg 31deg, #fbf7ef 31deg 46deg, #1b2b3c 46deg 60deg, #fbf7ef 60deg 93deg, #1b2b3c 93deg 108deg, #fbf7ef 108deg 121deg, #1b2b3c 121deg 136deg, #fbf7ef 136deg 149deg, #1b2b3c 149deg 164deg, #fbf7ef 164deg 180deg); }
.rahmen-bunt { --rahmen: conic-gradient(#c8372d, #f2c14e, #3f9a63, #2f7fb6, #7a4b91, #c8372d); }
.kulisse { height: clamp(90px, 16vw, 150px); border-radius: 10px; margin: .6rem 0 0; }
.kulisse + .fr-profil { margin-top: -44px; padding: 0 1.2rem; align-items: flex-start; }
.kulisse + .fr-profil > div { padding-top: 54px; flex: 1 1 220px; min-width: 0; }
:is(.kulisse, .pr-knopf i).kulisse-abend { background: radial-gradient(circle at 78% 72%, #f7dc8a 0 9%, transparent 9.5%), linear-gradient(#22305a, #7a4b91 50%, #e0824f 85%, #f2c14e); }
:is(.kulisse, .pr-knopf i).kulisse-vorhang { background: repeating-linear-gradient(90deg, #7d1f19 0 10px, #a52c24 18px, #c8372d 26px, #a52c24 34px, #7d1f19 44px); }
/* Real octaves of 7 x 32 px from C: two black keys, then three. */
:is(.kulisse, .pr-knopf i).kulisse-tasten { background: repeating-linear-gradient(90deg, transparent 0px 21px, #1b2b3c 21px 39px, transparent 39px 57px, #1b2b3c 57px 75px, transparent 75px 116px, #1b2b3c 116px 134px, transparent 134px 151px, #1b2b3c 151px 169px, transparent 169px 186px, #1b2b3c 186px 204px, transparent 204px 224px) 0 0 / 100% 60% no-repeat, repeating-linear-gradient(90deg, #fbf7ef 0 30px, #b9b2a4 30px 32px); }
:is(.kulisse, .pr-knopf i).kulisse-punkte { background: radial-gradient(#f2c14e 0 5px, transparent 5.5px) 0 0 / 26px 26px, radial-gradient(#fbf7ef 0 3px, transparent 3.5px) 13px 13px / 26px 26px, #1f5f8b; }
:is(.kulisse, .pr-knopf i).kulisse-streifen { background: repeating-linear-gradient(135deg, #c8372d 0 16px, #fbf7ef 16px 32px); }
:is(.kulisse, .pr-knopf i).kulisse-holz { background: repeating-linear-gradient(92deg, rgba(60, 30, 10, .22) 0 2px, transparent 2px 9px, rgba(60, 30, 10, .12) 9px 11px, transparent 11px 23px), linear-gradient(#9a6236, #7a4b2a); }
:is(.kulisse, .pr-knopf i).kulisse-meer { background: radial-gradient(circle at 50% 0, transparent 0 13px, #2f7fb6 13.5px 17px, transparent 17.5px) 0 0 / 34px 24px, linear-gradient(#bfe0ee, #1f5f8b); }
:is(.kulisse, .pr-knopf i).kulisse-sterne { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%2316223f' /%3E%3Ccircle cx='241' cy='77' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='405' cy='122' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='68' cy='5' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='296' cy='15' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='549' cy='92' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='846' cy='27' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='26' cy='164' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='198' cy='42' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='642' cy='95' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='345' cy='99' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='253' cy='121' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='837' cy='140' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='298' cy='146' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='199' cy='105' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='295' cy='110' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='238' cy='78' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='83' cy='11' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='287' cy='132' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='351' cy='37' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='422' cy='51' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='188' cy='91' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='602' cy='82' r='1.4' fill='%23f7dc8a' /%3E%3Ccircle cx='103' cy='15' r='1.4' fill='%23f7dc8a' /%3E%3Ccircle cx='783' cy='149' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='339' cy='45' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='26' cy='10' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='84' cy='73' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='330' cy='73' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='793' cy='166' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='696' cy='19' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='196' cy='113' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='256' cy='97' r='1.4' fill='%23f7dc8a' /%3E%3Ccircle cx='586' cy='2' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='465' cy='43' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='297' cy='146' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='212' cy='108' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='60' cy='15' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='172' cy='152' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='41' cy='139' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='255' cy='82' r='1' fill='%23fbf7ef' /%3E%3Ccircle cx='854' cy='135' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='667' cy='51' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='247' cy='112' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='37' cy='56' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='254' cy='165' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='510' cy='48' r='1' fill='%23fbf7ef' /%3E%3Ccircle cx='260' cy='64' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='213' cy='59' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='145' cy='83' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='578' cy='29' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='669' cy='10' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='95' cy='110' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='169' cy='86' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='482' cy='164' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='540' cy='55' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='401' cy='127' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='642' cy='48' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='634' cy='32' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='876' cy='15' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='650' cy='118' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='413' cy='99' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='216' cy='40' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='897' cy='65' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='829' cy='97' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='54' cy='51' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='622' cy='84' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='450' cy='6' r='1' fill='%23fbf7ef' /%3E%3Ccircle cx='712' cy='152' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='574' cy='65' r='1.4' fill='%23fbf7ef' /%3E%3Ccircle cx='371' cy='20' r='1' fill='%23f7dc8a' /%3E%3Ccircle cx='857' cy='88' r='1' fill='%23fbf7ef' /%3E%3Ccircle cx='556' cy='116' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='806' cy='79' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='776' cy='124' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='79' cy='29' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='444' cy='106' r='2.6' fill='%23fbf7ef' /%3E%3Ccircle cx='643' cy='50' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='432' cy='30' r='1.4' fill='%23f7dc8a' /%3E%3Ccircle cx='895' cy='41' r='1.4' fill='%23bfe0ee' /%3E%3Ccircle cx='152' cy='83' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='264' cy='138' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='172' cy='1' r='2' fill='%23fbf7ef' /%3E%3Ccircle cx='558' cy='28' r='2.6' fill='%23bfe0ee' /%3E%3Ccircle cx='615' cy='123' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='251' cy='105' r='2' fill='%23f7dc8a' /%3E%3Ccircle cx='234' cy='46' r='1' fill='%23bfe0ee' /%3E%3Ccircle cx='54' cy='156' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='478' cy='145' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='805' cy='112' r='2.6' fill='%23f7dc8a' /%3E%3Ccircle cx='144' cy='64' r='2' fill='%23bfe0ee' /%3E%3Ccircle cx='700' cy='55' r='30' fill='%23f7dc8a' /%3E%3Ccircle cx='713' cy='47' r='27' fill='%2316223f' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-stadt { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%23e0824f' /%3E%3Crect x='0' y='0' width='900' height='90' fill='%237a4b91' /%3E%3Ccircle cx='450' cy='105' r='46' fill='%23f2c14e' /%3E%3Crect x='0' y='103' width='44' height='67' fill='%2322305a' /%3E%3Crect x='7' y='113' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='21' y='113' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='21' y='130' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='21' y='147' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='44' y='76' width='52' height='94' fill='%231b2b3c' /%3E%3Crect x='51' y='86' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='51' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='65' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='79' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='65' y='137' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='79' y='137' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='65' y='154' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='79' y='154' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='96' y='111' width='49' height='59' fill='%231b2b3c' /%3E%3Crect x='103' y='121' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='117' y='121' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='103' y='138' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='145' y='58' width='41' height='112' fill='%231b2b3c' /%3E%3Crect x='152' y='68' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='166' y='68' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='152' y='85' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='152' y='119' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='166' y='119' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='166' y='136' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='152' y='153' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='166' y='153' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='186' y='51' width='39' height='119' fill='%2322305a' /%3E%3Crect x='193' y='78' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='207' y='95' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='193' y='112' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='207' y='146' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='225' y='87' width='36' height='83' fill='%2322305a' /%3E%3Crect x='232' y='97' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='232' y='131' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='246' y='131' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='232' y='148' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='261' y='70' width='39' height='100' fill='%2322305a' /%3E%3Crect x='268' y='80' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='282' y='80' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='282' y='97' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='282' y='114' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='268' y='131' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='300' y='98' width='54' height='72' fill='%231b2b3c' /%3E%3Crect x='307' y='159' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='335' y='159' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='354' y='72' width='36' height='98' fill='%231b2b3c' /%3E%3Crect x='361' y='82' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='361' y='116' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='375' y='116' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='361' y='133' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='375' y='133' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='375' y='150' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='390' y='118' width='55' height='52' fill='%2322305a' /%3E%3Crect x='411' y='128' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='425' y='128' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='425' y='145' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='445' y='119' width='51' height='51' fill='%2322305a' /%3E%3Crect x='452' y='146' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='496' y='72' width='55' height='98' fill='%2322305a' /%3E%3Crect x='503' y='99' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='503' y='116' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='517' y='133' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='503' y='150' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='551' y='59' width='43' height='111' fill='%2322305a' /%3E%3Crect x='572' y='69' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='558' y='86' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='572' y='86' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='558' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='558' y='120' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='572' y='120' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='558' y='137' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='572' y='154' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='594' y='57' width='35' height='113' fill='%231b2b3c' /%3E%3Crect x='601' y='67' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='601' y='84' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='601' y='101' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='615' y='101' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='601' y='152' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='615' y='152' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='629' y='118' width='42' height='52' fill='%231b2b3c' /%3E%3Crect x='636' y='128' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='636' y='145' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='650' y='145' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='671' y='76' width='57' height='94' fill='%2322305a' /%3E%3Crect x='706' y='86' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='678' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='692' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='706' y='103' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='678' y='137' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='692' y='137' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='678' y='154' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='692' y='154' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='706' y='154' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='728' y='85' width='47' height='85' fill='%2322305a' /%3E%3Crect x='749' y='95' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='749' y='112' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='735' y='129' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='763' y='129' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='735' y='146' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='749' y='146' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='775' y='80' width='38' height='90' fill='%231b2b3c' /%3E%3Crect x='796' y='124' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='782' y='141' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='813' y='62' width='34' height='108' fill='%231b2b3c' /%3E%3Crect x='820' y='72' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='834' y='72' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='834' y='89' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='834' y='106' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='834' y='140' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='834' y='157' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='847' y='117' width='56' height='53' fill='%231b2b3c' /%3E%3Crect x='868' y='127' width='6' height='8' fill='%23f7dc8a' /%3E%3Crect x='882' y='161' width='6' height='8' fill='%23f7dc8a' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-berge { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%23bfe0ee' /%3E%3Ccircle cx='690' cy='48' r='24' fill='%23f7dc8a' /%3E%3Cpath d='M0 170V110L120 45 240 120 370 30 520 130 640 60 780 125 900 70V170Z' fill='%237c9bb5' /%3E%3Cpath d='M370 30 331 60 352 56 370 68 386 56 415 60Z' fill='%23fbf7ef' /%3E%3Cpath d='M120 45 94 59 110 57 122 66 150 64Z' fill='%23fbf7ef' /%3E%3Cpath d='M0 170V140L160 95 330 150 520 100 700 155 900 105V170Z' fill='%233f6f7f' /%3E%3Cpath d='M0 170V158Q225 125 450 155T900 145V170Z' fill='%232f7d4f' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-noten { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%23fbf0d4' /%3E%3Crect x='0' y='45' width='900' height='2' fill='%238a6a3f' /%3E%3Crect x='0' y='65' width='900' height='2' fill='%238a6a3f' /%3E%3Crect x='0' y='85' width='900' height='2' fill='%238a6a3f' /%3E%3Crect x='0' y='105' width='900' height='2' fill='%238a6a3f' /%3E%3Crect x='0' y='125' width='900' height='2' fill='%238a6a3f' /%3E%3Cellipse cx='60' cy='125' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 60 125)'/%3E%3Crect x='69' y='69' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='135' cy='105' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 135 105)'/%3E%3Crect x='144' y='49' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='210' cy='95' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 210 95)'/%3E%3Crect x='219' y='39' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='285' cy='85' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 285 85)'/%3E%3Crect x='294' y='29' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='360' cy='65' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 360 65)'/%3E%3Crect x='348' y='67' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='435' cy='85' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 435 85)'/%3E%3Crect x='444' y='29' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='510' cy='55' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 510 55)'/%3E%3Crect x='498' y='57' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='585' cy='75' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 585 75)'/%3E%3Crect x='573' y='77' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='660' cy='95' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 660 95)'/%3E%3Crect x='669' y='39' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='735' cy='105' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 735 105)'/%3E%3Crect x='744' y='49' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='810' cy='115' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 810 115)'/%3E%3Crect x='819' y='59' width='3' height='54' fill='%231b2b3c' /%3E%3Cellipse cx='885' cy='85' rx='12' ry='9' fill='%231b2b3c' transform='rotate(-20 885 85)'/%3E%3Crect x='894' y='29' width='3' height='54' fill='%231b2b3c' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-platten { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%232c5f63' /%3E%3Ccircle cx='130' cy='95' r='72' fill='%2314191f' /%3E%3Ccircle cx='130' cy='95' r='64' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='130' cy='95' r='56' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='130' cy='95' r='48' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='130' cy='95' r='40' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='130' cy='95' r='28' fill='%23c8372d' /%3E%3Ccircle cx='130' cy='95' r='5' fill='%23fbf7ef' /%3E%3Ccircle cx='370' cy='70' r='72' fill='%2314191f' /%3E%3Ccircle cx='370' cy='70' r='64' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='370' cy='70' r='56' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='370' cy='70' r='48' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='370' cy='70' r='40' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='370' cy='70' r='28' fill='%23f2c14e' /%3E%3Ccircle cx='370' cy='70' r='5' fill='%23fbf7ef' /%3E%3Ccircle cx='610' cy='105' r='72' fill='%2314191f' /%3E%3Ccircle cx='610' cy='105' r='64' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='610' cy='105' r='56' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='610' cy='105' r='48' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='610' cy='105' r='40' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='610' cy='105' r='28' fill='%232f7fb6' /%3E%3Ccircle cx='610' cy='105' r='5' fill='%23fbf7ef' /%3E%3Ccircle cx='830' cy='65' r='72' fill='%2314191f' /%3E%3Ccircle cx='830' cy='65' r='64' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='830' cy='65' r='56' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='830' cy='65' r='48' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='830' cy='65' r='40' fill='none' stroke='%233a444f' stroke-width='1.5'/%3E%3Ccircle cx='830' cy='65' r='28' fill='%23a53f6b' /%3E%3Ccircle cx='830' cy='65' r='5' fill='%23fbf7ef' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-wald { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%23f7dc8a' /%3E%3Ccircle cx='200' cy='60' r='34' fill='%23fbf0d4' /%3E%3Crect x='-14' y='89' width='8' height='81' fill='%235c3a22' /%3E%3Cellipse cx='-10' cy='89' rx='36' ry='44' fill='%23d99a4e'/%3E%3Crect x='38' y='90' width='8' height='80' fill='%235c3a22' /%3E%3Cellipse cx='42' cy='90' rx='24' ry='32' fill='%23d99a4e'/%3E%3Crect x='90' y='87' width='8' height='83' fill='%235c3a22' /%3E%3Cellipse cx='94' cy='87' rx='34' ry='42' fill='%23e0b04e'/%3E%3Crect x='142' y='89' width='8' height='81' fill='%235c3a22' /%3E%3Cellipse cx='146' cy='89' rx='25' ry='33' fill='%23d99a4e'/%3E%3Crect x='194' y='80' width='8' height='90' fill='%235c3a22' /%3E%3Cellipse cx='198' cy='80' rx='30' ry='38' fill='%23e0b04e'/%3E%3Crect x='246' y='85' width='8' height='85' fill='%235c3a22' /%3E%3Cellipse cx='250' cy='85' rx='32' ry='40' fill='%23e0b04e'/%3E%3Crect x='298' y='72' width='8' height='98' fill='%235c3a22' /%3E%3Cellipse cx='302' cy='72' rx='30' ry='38' fill='%23e0b04e'/%3E%3Crect x='350' y='71' width='8' height='99' fill='%235c3a22' /%3E%3Cellipse cx='354' cy='71' rx='24' ry='32' fill='%23d99a4e'/%3E%3Crect x='402' y='91' width='8' height='79' fill='%235c3a22' /%3E%3Cellipse cx='406' cy='91' rx='26' ry='34' fill='%23e0b04e'/%3E%3Crect x='454' y='86' width='8' height='84' fill='%235c3a22' /%3E%3Cellipse cx='458' cy='86' rx='27' ry='35' fill='%23d99a4e'/%3E%3Crect x='506' y='77' width='8' height='93' fill='%235c3a22' /%3E%3Cellipse cx='510' cy='77' rx='29' ry='37' fill='%23d99a4e'/%3E%3Crect x='558' y='74' width='8' height='96' fill='%235c3a22' /%3E%3Cellipse cx='562' cy='74' rx='33' ry='41' fill='%23e0b04e'/%3E%3Crect x='610' y='84' width='8' height='86' fill='%235c3a22' /%3E%3Cellipse cx='614' cy='84' rx='30' ry='38' fill='%23d99a4e'/%3E%3Crect x='662' y='89' width='8' height='81' fill='%235c3a22' /%3E%3Cellipse cx='666' cy='89' rx='27' ry='35' fill='%23e0b04e'/%3E%3Crect x='714' y='78' width='8' height='92' fill='%235c3a22' /%3E%3Cellipse cx='718' cy='78' rx='26' ry='34' fill='%23d99a4e'/%3E%3Crect x='766' y='95' width='8' height='75' fill='%235c3a22' /%3E%3Cellipse cx='770' cy='95' rx='24' ry='32' fill='%23d99a4e'/%3E%3Crect x='818' y='86' width='8' height='84' fill='%235c3a22' /%3E%3Cellipse cx='822' cy='86' rx='27' ry='35' fill='%23e0b04e'/%3E%3Crect x='870' y='80' width='8' height='90' fill='%235c3a22' /%3E%3Cellipse cx='874' cy='80' rx='32' ry='40' fill='%23d99a4e'/%3E%3Crect x='11' y='102' width='8' height='68' fill='%235c3a22' /%3E%3Cellipse cx='15' cy='102' rx='28' ry='36' fill='%23e0824f'/%3E%3Crect x='63' y='121' width='8' height='49' fill='%235c3a22' /%3E%3Cellipse cx='67' cy='121' rx='26' ry='34' fill='%23e0824f'/%3E%3Crect x='115' y='111' width='8' height='59' fill='%235c3a22' /%3E%3Cellipse cx='119' cy='111' rx='33' ry='41' fill='%23e0824f'/%3E%3Crect x='167' y='125' width='8' height='45' fill='%235c3a22' /%3E%3Cellipse cx='171' cy='125' rx='29' ry='37' fill='%23e0824f'/%3E%3Crect x='219' y='121' width='8' height='49' fill='%235c3a22' /%3E%3Cellipse cx='223' cy='121' rx='35' ry='43' fill='%23e0824f'/%3E%3Crect x='271' y='102' width='8' height='68' fill='%235c3a22' /%3E%3Cellipse cx='275' cy='102' rx='24' ry='32' fill='%23b8862b'/%3E%3Crect x='323' y='112' width='8' height='58' fill='%235c3a22' /%3E%3Cellipse cx='327' cy='112' rx='35' ry='43' fill='%23c8372d'/%3E%3Crect x='375' y='115' width='8' height='55' fill='%235c3a22' /%3E%3Cellipse cx='379' cy='115' rx='25' ry='33' fill='%23e0824f'/%3E%3Crect x='427' y='108' width='8' height='62' fill='%235c3a22' /%3E%3Cellipse cx='431' cy='108' rx='33' ry='41' fill='%23c8372d'/%3E%3Crect x='479' y='110' width='8' height='60' fill='%235c3a22' /%3E%3Cellipse cx='483' cy='110' rx='25' ry='33' fill='%23c8372d'/%3E%3Crect x='531' y='109' width='8' height='61' fill='%235c3a22' /%3E%3Cellipse cx='535' cy='109' rx='34' ry='42' fill='%23c8372d'/%3E%3Crect x='583' y='106' width='8' height='64' fill='%235c3a22' /%3E%3Cellipse cx='587' cy='106' rx='26' ry='34' fill='%23c8372d'/%3E%3Crect x='635' y='115' width='8' height='55' fill='%235c3a22' /%3E%3Cellipse cx='639' cy='115' rx='33' ry='41' fill='%23b8862b'/%3E%3Crect x='687' y='102' width='8' height='68' fill='%235c3a22' /%3E%3Cellipse cx='691' cy='102' rx='24' ry='32' fill='%23b8862b'/%3E%3Crect x='739' y='113' width='8' height='57' fill='%235c3a22' /%3E%3Cellipse cx='743' cy='113' rx='24' ry='32' fill='%23e0824f'/%3E%3Crect x='791' y='107' width='8' height='63' fill='%235c3a22' /%3E%3Cellipse cx='795' cy='107' rx='27' ry='35' fill='%23c8372d'/%3E%3Crect x='843' y='124' width='8' height='46' fill='%235c3a22' /%3E%3Cellipse cx='847' cy='124' rx='33' ry='41' fill='%23c8372d'/%3E%3Crect x='895' y='106' width='8' height='64' fill='%235c3a22' /%3E%3Cellipse cx='899' cy='106' rx='26' ry='34' fill='%23e0824f'/%3E%3Cpath d='M0 170V150Q225 135 450 150T900 146V170Z' fill='%237a4b2a' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-buehne { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%23241a3a' /%3E%3Cpath d='M120 0L140 170H280Z' fill='%23f2c14e' opacity='.4'/%3E%3Cpath d='M320 0L280 170H420Z' fill='%23c86aa0' opacity='.4'/%3E%3Cpath d='M580 0L480 170H620Z' fill='%235fb0d8' opacity='.4'/%3E%3Cpath d='M780 0L620 170H760Z' fill='%23f2c14e' opacity='.4'/%3E%3Crect x='104' y='0' width='32' height='12' fill='%230f1420' /%3E%3Crect x='304' y='0' width='32' height='12' fill='%230f1420' /%3E%3Crect x='564' y='0' width='32' height='12' fill='%230f1420' /%3E%3Crect x='764' y='0' width='32' height='12' fill='%230f1420' /%3E%3Crect x='0' y='146' width='900' height='24' fill='%237a4b2a' /%3E%3Crect x='0' y='146' width='900' height='3' fill='%23b98552' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-schnee { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 170' width='900' height='170' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='900' height='170' fill='%234a7596' /%3E%3Cpath d='M0 170V130Q225 95 450 128T900 118V170Z' fill='%23dfeaf2' /%3E%3Cpath d='M90 47L116 94H104L124 122H56L76 94H64Z' fill='%232c5f63' /%3E%3Crect x='86' y='122' width='8' height='12' fill='%235c3a22' /%3E%3Cpath d='M190 37L216 84H204L224 112H156L176 84H164Z' fill='%232c5f63' /%3E%3Crect x='186' y='112' width='8' height='12' fill='%235c3a22' /%3E%3Cpath d='M500 57L526 104H514L534 132H466L486 104H474Z' fill='%232c5f63' /%3E%3Crect x='496' y='132' width='8' height='12' fill='%235c3a22' /%3E%3Cpath d='M640 45L666 92H654L674 120H606L626 92H614Z' fill='%232c5f63' /%3E%3Crect x='636' y='120' width='8' height='12' fill='%235c3a22' /%3E%3Cpath d='M800 41L826 88H814L834 116H766L786 88H774Z' fill='%232c5f63' /%3E%3Crect x='796' y='116' width='8' height='12' fill='%235c3a22' /%3E%3Cpath d='M0 170V152Q225 135 450 150T900 145V170Z' fill='%23fbf7ef' /%3E%3Ccircle cx='239' cy='111' r='3.6' fill='%23fff' /%3E%3Ccircle cx='321' cy='138' r='3.6' fill='%23fff' /%3E%3Ccircle cx='380' cy='43' r='3.6' fill='%23fff' /%3E%3Ccircle cx='353' cy='139' r='3.6' fill='%23fff' /%3E%3Ccircle cx='586' cy='88' r='3' fill='%23fff' /%3E%3Ccircle cx='611' cy='85' r='3.6' fill='%23fff' /%3E%3Ccircle cx='32' cy='139' r='2' fill='%23fff' /%3E%3Ccircle cx='374' cy='146' r='2' fill='%23fff' /%3E%3Ccircle cx='506' cy='120' r='2' fill='%23fff' /%3E%3Ccircle cx='75' cy='160' r='3.6' fill='%23fff' /%3E%3Ccircle cx='200' cy='40' r='2' fill='%23fff' /%3E%3Ccircle cx='564' cy='35' r='3.6' fill='%23fff' /%3E%3Ccircle cx='858' cy='13' r='3.6' fill='%23fff' /%3E%3Ccircle cx='839' cy='88' r='2' fill='%23fff' /%3E%3Ccircle cx='726' cy='12' r='3.6' fill='%23fff' /%3E%3Ccircle cx='152' cy='139' r='2' fill='%23fff' /%3E%3Ccircle cx='269' cy='159' r='2' fill='%23fff' /%3E%3Ccircle cx='302' cy='121' r='3' fill='%23fff' /%3E%3Ccircle cx='214' cy='164' r='3' fill='%23fff' /%3E%3Ccircle cx='778' cy='72' r='3.6' fill='%23fff' /%3E%3Ccircle cx='707' cy='15' r='2' fill='%23fff' /%3E%3Ccircle cx='294' cy='106' r='2' fill='%23fff' /%3E%3Ccircle cx='2' cy='88' r='3.6' fill='%23fff' /%3E%3Ccircle cx='617' cy='92' r='2' fill='%23fff' /%3E%3Ccircle cx='205' cy='110' r='3.6' fill='%23fff' /%3E%3Ccircle cx='81' cy='108' r='2' fill='%23fff' /%3E%3Ccircle cx='290' cy='50' r='3.6' fill='%23fff' /%3E%3Ccircle cx='200' cy='44' r='2' fill='%23fff' /%3E%3Ccircle cx='732' cy='20' r='2' fill='%23fff' /%3E%3Ccircle cx='10' cy='0' r='3' fill='%23fff' /%3E%3Ccircle cx='532' cy='132' r='3.6' fill='%23fff' /%3E%3Ccircle cx='434' cy='16' r='2' fill='%23fff' /%3E%3Ccircle cx='535' cy='163' r='3' fill='%23fff' /%3E%3Ccircle cx='683' cy='43' r='3.6' fill='%23fff' /%3E%3Ccircle cx='204' cy='130' r='3.6' fill='%23fff' /%3E%3Ccircle cx='562' cy='15' r='3.6' fill='%23fff' /%3E%3Ccircle cx='63' cy='16' r='2' fill='%23fff' /%3E%3Ccircle cx='446' cy='34' r='2' fill='%23fff' /%3E%3Ccircle cx='780' cy='132' r='3' fill='%23fff' /%3E%3Ccircle cx='525' cy='86' r='3.6' fill='%23fff' /%3E%3Ccircle cx='283' cy='34' r='3.6' fill='%23fff' /%3E%3Ccircle cx='599' cy='30' r='3.6' fill='%23fff' /%3E%3Ccircle cx='656' cy='159' r='2' fill='%23fff' /%3E%3Ccircle cx='616' cy='1' r='2' fill='%23fff' /%3E%3Ccircle cx='44' cy='69' r='3.6' fill='%23fff' /%3E%3Ccircle cx='659' cy='108' r='3' fill='%23fff' /%3E%3Ccircle cx='607' cy='91' r='2' fill='%23fff' /%3E%3Ccircle cx='537' cy='92' r='3.6' fill='%23fff' /%3E%3Ccircle cx='467' cy='63' r='3.6' fill='%23fff' /%3E%3Ccircle cx='463' cy='43' r='3' fill='%23fff' /%3E%3Ccircle cx='667' cy='148' r='3.6' fill='%23fff' /%3E%3Ccircle cx='26' cy='148' r='3.6' fill='%23fff' /%3E%3Ccircle cx='583' cy='49' r='3' fill='%23fff' /%3E%3Ccircle cx='601' cy='146' r='3.6' fill='%23fff' /%3E%3Ccircle cx='612' cy='115' r='3' fill='%23fff' /%3E%3Ccircle cx='165' cy='77' r='2' fill='%23fff' /%3E%3Ccircle cx='323' cy='76' r='3' fill='%23fff' /%3E%3Ccircle cx='722' cy='53' r='3.6' fill='%23fff' /%3E%3Ccircle cx='495' cy='158' r='3' fill='%23fff' /%3E%3Ccircle cx='275' cy='94' r='3.6' fill='%23fff' /%3E%3C/svg%3E") 50% 100% / cover; }
:is(.kulisse, .pr-knopf i).kulisse-tanzboden { background: conic-gradient(#1b2b3c 25%, #fbf7ef 0 50%, #1b2b3c 0 75%, #fbf7ef 0) 0 0 / 44px 44px; }
:is(.kulisse, .pr-knopf i).kulisse-neon { background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(95,214,230,.55) 46px 48px), repeating-linear-gradient(0deg, transparent 0 22px, rgba(240,90,170,.6) 22px 24px), linear-gradient(#1a1033, #4a1d5c); }
:is(.kulisse, .pr-knopf i).kulisse-regenbogen { background: radial-gradient(circle at 50% 130%, #bfe0ee 0 38%, #7a4b91 38.5% 45%, #2f7fb6 45.5% 52%, #3f9a63 52.5% 59%, #f2c14e 59.5% 66%, #e0824f 66.5% 73%, #c8372d 73.5% 80%, #bfe0ee 80.5%); }
.pr-vorschau { margin-bottom: 1.4rem; } .pr-vorschau h3 { margin: 0 0 .3rem; overflow-wrap: anywhere; }
.pr-bio { max-width: 56ch; overflow-wrap: anywhere; }
.fr-profil .pr-marken, .pr-marken { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .6rem; }
.pr-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.pr-knopf { display: grid; justify-items: center; gap: 6px; min-width: 74px; padding: 9px 8px 7px; border: 1.5px solid var(--haar-2); border-radius: 10px; background: var(--card); color: inherit; font: inherit; font-size: .82rem; cursor: pointer; }
.pr-knopf[aria-pressed="true"] { border-color: var(--akzent); box-shadow: 0 0 0 1.5px var(--akzent); }
.pr-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.pr-knopf i { display: block; width: 38px; height: 38px; border-radius: 50%; box-sizing: border-box; background: var(--haar-2); }
.pr-knopf i.rahmen { border-width: 6px; --av: var(--card); background: linear-gradient(var(--av), var(--av)) padding-box, var(--rahmen) border-box; }
.pr-knopf i.pr-breit { width: 92px; border-radius: 10px; }
/* the preview shows one whole octave */
.pr-knopf i.pr-breit.kulisse-tasten { width: 224px; height: 92px; margin: 0 -66px -54px; border-radius: 10px; transform: scale(.41); transform-origin: 50% 0; }
.fr-profil .knopf { vertical-align: middle; }
.es-gruppe .feld > .chips { flex-wrap: wrap; overflow: visible; }
@media (max-width: 560px) { .kulisse + .fr-profil { row-gap: .6rem; } .kulisse + .fr-profil > div { padding-top: 0; flex-basis: 100%; } }
.kulisse { box-shadow: inset 0 0 0 1.5px var(--haar-2); }
#friends .stueck.hat-cover { padding-right: 1.05rem; }

/* Gemeinsam üben */
.wo-liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; margin-bottom: 1rem; }
.wo-karte { display: grid; gap: .8rem; } .wo-karte.ist-neu { box-shadow: inset 0 0 0 2px rgb(var(--rot-rgb)); }
.wo-karte .fr-akt { justify-content: flex-start; } .wo-karte p { margin: 0; }
.wo-kopf { display: flex; gap: .9rem; align-items: center; } .wo-kopf img { width: 80px; height: 50px; border-radius: 10px; object-fit: cover; flex: none; }
.wo-kopf div, .wo-leute span:not(.avatar):not(.avatar *) { display: grid; min-width: 0; overflow-wrap: anywhere; flex: 1; } .wo-karte small { color: var(--ink-2); }
.wo-leute { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; } .wo-leute li { display: flex; gap: .7rem; align-items: center; }
.avatar-klein > b { font-size: 16px; } .wo-leute .avatar { width: 40px; height: 40px; flex: none; }
.wo-haken { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--haar); display: grid; place-items: center; flex: none; }
.wo-haken.ist-da { background: #2f7d4f; color: #fff; box-shadow: none; } .wo-haken svg { width: 16px; height: 16px; }
.wo-neu summary { font-weight: 700; cursor: pointer; } .wo-neu form { margin-top: 1rem; }
.recht { max-width: 68ch; } .recht p, .recht h2 { overflow-wrap: anywhere; } .recht-form { max-width: 560px; margin: 1.2rem 0 2rem; }
.preis-anfrage:focus { outline: none; } .link-knopf { font: inherit; color: inherit; background: none; border: 0; padding: .3rem 0; text-decoration: underline; cursor: pointer; }
.sektion > .es-notiz { margin: 0 0 .9rem; } .wo-neu form, .preis-anfrage { display: grid; gap: .9rem; justify-items: stretch; } .preis-anfrage > * { margin: 0; justify-self: start; }
a.chip-werkzeug, a.chip-werkzeug span { text-decoration: none; }

/* Taktbilder beim Schlagzeug */
.takt-bild { display: block; width: min(100%, calc(var(--w) * 1.25)); height: auto; margin-top: .6rem; overflow: visible; }
.takt-bild text { font-size: 11px; fill: var(--ink-3); }
.takt-bild path { stroke: var(--haar-2); stroke-width: 1; } .takt-bild .eins { stroke-width: 2; }
.takt-bild circle { fill: var(--ink-2); } .takt-bild :is(.snare, .ghost) { fill: var(--red); } .takt-bild :is(.kick, .clickHi) { fill: var(--sea); }
.takt-bild .lauf { stroke: var(--akzent); stroke-width: 2.5; opacity: 0; }
.spielt .takt-bild .lauf { opacity: 1; animation: takt-lauf calc(var(--schlag) * var(--n)) linear .1s var(--mal); }
@keyframes takt-lauf { to { transform: translateX(var(--weg)); } }
.klavier-wahl.spielt > i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 35%, transparent); }
.trommel-schau { display: grid; gap: .4rem; justify-items: start; } .trommel-schau > small { color: var(--ink-3); } .trommel-schau .takt-bild { margin: 0; }

/* Teilen */
.teilen { display: grid; gap: .8rem; }
.teilen-knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; } .teilen-knoepfe .knopf { justify-content: center; }
.teilen-link { width: 100%; font-size: .9rem; text-overflow: ellipsis; }
.teilen .es-notiz { margin: 0; }
.teilen-freunde { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--haar); } .teilen-freunde h3 { margin: 0 0 .6rem; }
.lektion-titel { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; } .lektion-titel .mini-knopf { flex: none; }
.geteilt-karte svg { max-width: 100%; height: auto; } .geteilt-karte > svg:not([viewBox="0 0 24 24"]) { width: 100%; }
.geteilt-karte > svg[viewBox="0 0 24 24"] { width: 56px; height: 56px; }

/* ------------------------------------------------- phones and touch ---- */
.schritt-mehr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; }
.schritt-mehr .schritt-hinweis { width: 100%; text-align: center; }
.schritt-mehr:empty { display: none; }
.fs-text:has(+ .fs-wdh[hidden]) { margin-right: 10px; }
.zurueck, .zurueck-link, .brand { min-height: 44px; align-items: center; }
@media (pointer: coarse) {
  .foot nav a, .fuss nav a { padding-block: 10px; }
  .hashtag { min-height: 40px; }
  .schritte a { min-height: 44px; }
  .schritt-mehr .schritt-hinweis { display: none; } /* the space bar hint */
}
@media (max-width: 760px) {
  /* Drum grid: one bar per line, fields wide enough for a finger */
  .dr-raster { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dr-zeile { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
  .dr-feld { height: 44px; border-radius: 10px; }
  .dr-feld:nth-child(9) { margin-left: 0; }
  .dr-raster > span { display: none; }
  .dr-zahlen i:nth-child(n + 9) { display: none; }
  /* Sections of a piece: swipe through them instead of hitting slivers */
  .fs-spur.mit-teilen { overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
  .fs-spur.mit-teilen::-webkit-scrollbar { display: none; }
  .fs-spur.mit-teilen > button { min-width: 84px; touch-action: pan-x; }
  .fs-spur.mit-teilen > i { min-width: 16px; }
}
@media (max-width: 760px), (max-height: 560px) {
  /* Lesson: the start button always stays in reach */
  .schritt-fuss {
    position: sticky; z-index: 5; bottom: 0; flex-wrap: nowrap; margin-inline: -20px; padding: 10px 20px max(10px, env(safe-area-inset-bottom));
    background: var(--paper); box-shadow: 0 -1px 0 var(--haar);
  }
  .schritt-fuss .mitte { flex-wrap: nowrap; }
  .schritt-fuss .knopf { white-space: nowrap; }
  /* ... and while it plays, the notes get the whole screen */
  body.route-lesson.is-playing { overflow: hidden; }
  body.route-lesson.is-playing .topbar { visibility: hidden; }
  body.route-lesson.is-playing .lektion-buehne {
    position: fixed; z-index: 70; inset: 0 0 calc(64px + env(safe-area-inset-bottom)); height: auto; min-height: 0; max-height: none; margin: 0;
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); background: var(--paper);
  }
  body.route-lesson.is-playing .schritt-fuss {
    position: fixed; z-index: 71; inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom)); margin: 0; justify-content: center; background: var(--paper); box-shadow: none;
  }
  body.route-lesson.is-playing .schritt-fuss > .knopf { display: none; }
}
@media (max-width: 480px) {
  .schritt-fuss { gap: .4rem; }
  .schritt-fuss .knopf { padding-inline: .8em; }
  #step-prev { width: 44px; min-height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; flex: none; }
  #step-prev svg { margin: 0; width: 20px; height: 20px; }
  .schritt-fuss:has(#step-again:not([hidden])) #step-skip { display: none; }
}
@media (max-height: 560px) and (orientation: landscape) { .topbar-inner { padding-block: 2px; } }

/* ------------------------------------------------------- Notenheft ---- */
/* Reiter: einfache Textlinks, der aktive hat einen dicken roten Strich. */
.reiter { gap: .2rem 1.3rem; }
.topnav { gap: .2rem 1.25rem !important; }
.reiter > a, .reiter > button { padding: .3em 0; min-height: 44px; border-radius: 0; background: none; box-shadow: none; opacity: 1; color: var(--ink-2); font-weight: 600; border-block: 3px solid transparent; }
.topnav > a { padding-inline: 0 !important; }
.reiter [aria-current], .reiter [aria-selected="true"], .reiter .ist-aktiv { background: none; box-shadow: none; color: var(--ink); border-bottom-color: var(--red); }
@media (hover: hover) { .reiter > a:hover, .reiter > button:hover { box-shadow: none; color: var(--red); } }
@media (max-width: 640px) {
  .reiter-unten { left: 0; right: 0; bottom: 0; gap: 0 !important; padding: 0 4px env(safe-area-inset-bottom); background: var(--paper); box-shadow: none; border-top: 2px solid var(--ink); }
  .reiter-unten > a { border-block: 0; border-top: 4px solid transparent; }
  .reiter-unten [aria-current] { border-top-color: var(--red); }
  body:not(.route-player):not(.route-lesson) { padding-bottom: 74px; }
}
.midi-pill { padding: .35em .3em; background: none; box-shadow: none; font-weight: 600; }
.midi-pill:hover { box-shadow: none; text-decoration: underline; text-underline-offset: .2em; }
.seg { padding: 0; gap: 0; background: none; box-shadow: inset 0 0 0 1px var(--haar-2); }
.lern-reiter { box-shadow: none; gap: 1.3rem; border-bottom: 1px solid var(--haar-2); }
.seg.lern-reiter > a { padding: .3em 0; border-bottom: 3px solid transparent; border-radius: 0; font-size: 1.05rem; background: none; box-shadow: none; }
.seg.lern-reiter > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); background: none; box-shadow: none; }
.marke { padding: 0; background: none; box-shadow: none; font: italic 600 .9rem/1.2 var(--sans); color: var(--ink-2); }
.marke-rot { color: var(--red); } .marke-gruen { color: var(--ok); }
.textknopf, .genre-links button { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; color: var(--sea); text-decoration: underline; text-underline-offset: .18em; }
.textknopf:hover, .genre-links button:hover { color: var(--red); }
.textknopf[aria-pressed="true"], .genre-links button[aria-pressed="true"] { color: var(--red); font-weight: 700; text-decoration-thickness: 3px; }
.textknopf[aria-pressed="true"]::before { content: "✓"; margin-right: .3em; }
.knopf-rot:hover { filter: brightness(.92); }
.sektion-kopf { border-top: 2px solid var(--ink); padding-top: .7rem; }

/* Startseite: die Kurse als Inhaltsverzeichnis */
.hero { align-items: start; gap: 2.4rem; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); padding-top: .6rem; }
.weiter { gap: .45rem; padding-left: 1.4rem; border-left: 4px solid var(--red); }
.weiter p { margin: 0; }
.weiter .weiter-wo { font-style: italic; color: var(--red); }
.weiter .knopfreihe { margin-top: .5rem; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; } }
.genres { display: block; margin: 0; padding: 0; list-style: none; }
.genre { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1.3rem; align-items: center; flex-direction: initial; padding: 1rem 0; overflow: visible; border-bottom: 1px solid var(--haar-2); }
.genre-bild { aspect-ratio: 16 / 10; background: none; }
.genre-text { display: block; padding: 0; }
.genre h3 { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .15rem; font: 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.2 var(--serif); }
.genre h3 a:hover { color: var(--red); }
.genre h3 small { margin: 0; font: italic 400 1rem/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; }
.genre-linie { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--haar-2); }
.genre p { font-size: 1.08rem; max-width: 40em; }
.genre .genre-links { display: flex; gap: 1.3rem; align-items: center; }
.genre-links a { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 640px) {
  .genre { grid-template-columns: 84px minmax(0, 1fr); gap: .9rem; align-items: start; }
  .genre-bild { flex: none; margin-top: .25rem; }
  .genre h3 { flex-wrap: wrap; gap: .1rem .6rem; }
  .genre-linie { display: none; }
  .genre h3 small { flex-basis: 100%; }
}

/* Bibliothek: eine Suche, drei Auswahlfelder */
.songs-filter { grid-template-columns: minmax(0, 1fr); border-block: 1px solid var(--haar-2); padding: 1rem 0; margin-bottom: .6rem; }
.suche { max-width: none; }
.filter-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.filter-feld { display: grid; gap: .25rem; min-width: 0; }
.filter-name { font: italic 500 1rem/1.2 var(--sans); color: var(--ink-2); }
.filter-feld :is(select, .wahl) { width: 100%; justify-content: flex-start; font-size: 1rem; }
.songs-sort { margin-left: auto; }
#songs-print { margin-left: 0; }
@media (max-width: 640px) { .filter-gitter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .filter-feld:first-child { grid-column: 1 / -1; } }
.kachel { box-shadow: none; border-top: 2px solid var(--ink); border-radius: 0; padding-inline: 0; }
.kachel:hover { box-shadow: none; border-top-color: var(--red); }
.kachel-voll { background: none; border-top-color: var(--k); }
.stueck .cover { width: 100%; margin: -1rem 0 .35rem; border-radius: 0; }
.stueck:not(.art-song)::before { display: none; }
.regal .stueck, #songs-liste .stueck { padding-right: 0; }
.karte { background: none; box-shadow: none; border: 1px solid var(--haar-2); }
.freischalten { padding: 1.2rem 0 0; border: 0; border-top: 2px solid var(--ink); }
.freischalten-preis { padding: 0 0 0 1.4rem; background: none; box-shadow: none; border-left: 4px solid var(--red); border-radius: 0; }
.weg-lektion { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--haar); }
.weg { gap: 0; }
.songs-zahl { row-gap: .2rem; }
.kurs-hero .balken { margin-top: .9rem; }

/* Leicht runde Ecken */
.reiter-unten, .reiter, .kachel, .weg-lektion { border-radius: 0; }
.kachel.stueck { border-top: 0; padding-top: 0; }
.kachel.stueck .cover { margin-top: 0; border-radius: 10px; overflow: hidden; }
.genre-bild img, .genre-bild { border-radius: 8px; overflow: hidden; }
.hero:not(.kurs-hero) .weiter, .freischalten-preis { border-radius: 0; }
.freischalten { border-radius: 0; }
.seg.lern-reiter { border-radius: 0; }
.karte:not(.freischalten), .kurs-hero > .weiter { border-radius: 12px !important; }
.weg-lektion.ist-hier { border-radius: 10px; border-bottom: 0; }

/* PayPal: der Knopf überall, der Code nur am Computer */
.paypal { display: grid; justify-items: start; gap: 1rem; }
.paypal figure { margin: 0; display: none; gap: .5rem; } .paypal img { border-radius: 8px; background: #fff; }
.paypal figcaption { color: var(--ink-2); max-width: 24rem; }
@media (hover: hover) and (pointer: fine) { .paypal figure { display: grid; } }
.paypal-schritte { padding-left: 1.3rem; display: grid; gap: .4rem; }

/* Course page: is the chapter open? */
.station-text .kapitel-zeile, .station-text .kapitel-zeile h2 { color: var(--ink); }
.kapitel-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .8em; }
.kapitel-marke { display: inline-flex; align-items: center; gap: .35em; font: italic 600 .95rem/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; }
.kapitel-schloss svg { width: .8em; height: .8em; margin-right: .4em; vertical-align: -.06em; }
.kapitel-marke.ist-frei { color: rgb(var(--gruen-rgb)); }
.station.ist-gesperrt .station-nr { opacity: .6; }
.kurs-spalte { display: grid; gap: 1rem; align-content: start; }
.kurs-klang .knopf { justify-self: start; margin-top: .4rem; }
.kurs-klang p { margin: 0 0 .5rem; }
