:root {
  --papier: #f4efe4;
  --tinte: #1f1b16;
  --blass: #6d655a;
  --akzent: #b4442c;
  --linie: #d9cfbd;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--papier); color: var(--tinte); font: 16px/1.4 system-ui, sans-serif; }
body { max-width: 900px; margin: 0 auto; padding: 0 10px calc(20px + env(safe-area-inset-bottom)); }

.kopf { position: sticky; top: 0; background: var(--papier); padding: 10px 0 6px; z-index: 2; }
.kopf { display: flex; gap: 8px; align-items: stretch; }
.kopf select { flex: 1; min-width: 0; width: 100%; font-size: 18px; font-weight: 600; padding: 10px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; color: var(--tinte); min-height: 48px; }

.steuerung { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 8px; align-items: end; }
.feld { display: flex; flex-direction: column; font-size: 12px; color: var(--blass); gap: 2px; }
.feld select { font-size: 18px; padding: 8px; min-height: 48px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; color: var(--tinte); }
.okt { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1px solid var(--linie); border-radius: 10px; background: #fff; min-height: 48px; overflow: hidden; }
.okt button { height: 48px; border: 0; background: none; font-size: 22px; color: var(--tinte); }
.okt output { text-align: center; font-size: 18px; color: var(--tinte); }
.play { height: 64px; width: 64px; border-radius: 50%; border: 0; background: var(--akzent); color: #fff; font-size: 26px; }
.play.laeuft { background: var(--tinte); }

.schalter { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 0 4px; font-size: 15px; }
.schalter label { display: flex; align-items: center; gap: 5px; min-height: 36px; }
.schalter input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--akzent); }
.tempo { flex: 1 1 160px; }
.tempo input { flex: 1; accent-color: var(--akzent); }
.tempo output { min-width: 2.5em; text-align: right; font-variant-numeric: tabular-nums; }

.hinweis { background: #fff3e0; border-left: 4px solid var(--akzent); padding: 8px 10px; margin: 6px 0; font-size: 14px; }
.noten { background: #fff; border-radius: 10px; padding: 4px 0; overflow-x: auto; }
.noten svg { display: block; }
.noten .aktiv path, .noten .aktiv text { fill: var(--akzent) !important; stroke: var(--akzent); }

.akkordleiste { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.griff { background: #fff; border-radius: 10px; padding: 6px 6px 2px; text-align: center; font-weight: 700; }
.griff svg { display: block; }

.unsicher { margin: 10px 0; font-size: 14px; color: var(--blass); }
.unsicher summary { cursor: pointer; min-height: 32px; }
.klein { font-size: 13px; }
.liedtext { font: 17px/1.5 system-ui, sans-serif; white-space: pre-wrap; margin: 16px 4px; }

.korr-knopf { min-height: 36px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 18px; background: #fff; color: var(--tinte); font-size: 15px; }
.korr-knopf[aria-pressed=true] { background: #2c6e8f; border-color: #2c6e8f; color: #fff; }
.werkzeug { position: sticky; bottom: 0; z-index: 3; background: #fff; border-top: 2px solid #2c6e8f; border-radius: 12px 12px 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); margin-top: 8px; box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.werkzeug[hidden] { display: none; }
.auswahl { font-size: 14px; padding: 2px 4px 6px; min-height: 1.4em; }
.auswahl.fehler { color: var(--akzent); }
.knoepfe { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.knoepfe.zwei { grid-template-columns: 1fr 1fr 1.3fr; margin-top: 4px; }
.knoepfe button { min-height: 46px; border: 1px solid var(--linie); border-radius: 8px; background: var(--papier); color: var(--tinte); font-size: 19px; padding: 0; }
.knoepfe.zwei button { font-size: 15px; }
.knoepfe button:disabled { opacity: .3; }
.knoepfe .speichern { background: #2c6e8f; color: #fff; border-color: #2c6e8f; font-weight: 600; }
.knoepfe .speichern:disabled { background: var(--papier); color: var(--tinte); border-color: var(--linie); }
.noten.bearbeiten { outline: 2px dashed #2c6e8f; outline-offset: -2px; cursor: pointer; }
.noten .gewaehlt path, .noten .gewaehlt text, .noten .gewaehlt rect { fill: #2c6e8f !important; stroke: #2c6e8f; }
.noten .geaendert path { fill: #8a5a00; }
.pdf-link { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; color: var(--tinte); font-weight: 600; text-decoration: none; min-height: 48px; }
