/* =====================================================================================
   Vorlage 36 Musikschule · Gestaltung
   Aufbau: Grundlagen · Kopf, Ton-Knopf, Taktzahlen am Rand · Knöpfe (Notenköpfe) · Takte (Farbflächen, Zierlinien,
   Probenzeichen) · Takt 1 Klaviatur · Takt 9 erstes Jahr (klebend) · Takt 17 Instrumente und Rechner ·
   Takt 25 Lehrkräfte · Takt 33 Vorspiele · Takt 41 Stimmen · Takt 49 Formular · Takt 57 Jobs · Takt 65 Anfahrt ·
   Auftritte · Fuß · Handy
   Bewegt wird nur transform, opacity, clip-path und stroke-dashoffset.
   Die Seite ist ohne JavaScript vollständig: nur die Klaviatur spielt dann nicht.
   ===================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 16px); scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--schrift); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.t-nacht a:focus-visible, .t-nacht button:focus-visible, .t-nacht input:focus-visible, .t-nacht select:focus-visible, .fuss a:focus-visible,
.t-tuerkis a:focus-visible, .t-rot a:focus-visible, .t-gruen a:focus-visible { outline-color: #fff; }
.t-bernstein a:focus-visible, .t-bernstein button:focus-visible, .t-bernstein select:focus-visible { outline-color: var(--text); }
.behaelter { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.sprung { position: absolute; left: 12px; top: -64px; z-index: 60; padding: 10px 16px; border-radius: var(--radius-klein); background: var(--text); color: #fff; }
.sprung:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.schirm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.symbol { width: 22px; height: 22px; flex: none; }
.leise { color: var(--leise, var(--muted)); }
.klein { font-size: 14px; }
.nur-maus { display: block; }
@media (hover: none) { .nur-maus { display: none; } }
h1 { font-size: clamp(32px, 3.7vw, 50px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.022em; font-weight: 800; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-weight: 800; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 30; height: var(--kopf); background: rgba(251, 244, 228, .97); border-bottom: 2px solid var(--text); }
.kopf-innen { height: 100%; display: flex; align-items: center; gap: 12px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo-zeichen { width: 38px; height: 38px; color: var(--text); flex: none; }
.logo-text { display: grid; line-height: 1.05; }
.logo-text b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo-text small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kopf-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kopf-tel:hover span { text-decoration: underline; }

/* Ton-Knopf: Standard „Ton an" auffällig (Bernstein, atmender Ring), eingeschaltet dunkel mit Wellen */
.ton-knopf { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 2px solid var(--text); border-radius: var(--radius-rund); background: var(--bernstein); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.ton-knopf .sym-an { display: none; }
.ton-knopf[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.ton-knopf[aria-pressed="true"] .sym-an { display: block; }
.ton-knopf[aria-pressed="true"] .sym-aus { display: none; }
.ton-knopf::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 3px solid var(--rot); opacity: 0; pointer-events: none; }
html:not([data-bewegung="starr"]) .ton-knopf[aria-pressed="false"]::after { animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.94); opacity: .9; } 70%, 100% { transform: scale(1.16); opacity: 0; } }
.ton-gross { min-height: 52px; padding: 0 24px 0 18px; font-size: 17px; background: var(--bernstein); }
.ton-gross .symbol { width: 26px; height: 26px; }

/* ---------- Takte: Menü am Handy, Taktzahlen am Rand am großen Bildschirm ---------- */
.takt-menue summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--text); border-radius: var(--radius-rund); background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer; }
.takt-menue summary::-webkit-details-marker { display: none; }
.takt-menue[open] summary { background: var(--text); color: var(--bg); }
.takt-menue-liste { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(380px, calc(100vw - 40px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; padding: 10px; background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius); box-shadow: 0 6px 0 var(--text); }
.takt-menue-liste a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.takt-menue-liste a:hover, .takt-menue-liste a.ist-aktiv { background: var(--bg-tief); }
.takt-menue-liste b { display: grid; place-items: center; min-width: 38px; height: 28px; border: 2px solid var(--text); border-radius: 50% / 60%; background: var(--surface); font-size: 13px; }
.takt-menue-liste a.ist-aktiv b { background: var(--text); color: var(--bg); }
.takt-rand { display: none; }
@media (min-width: 1340px) {
  .takt-menue { display: none; }
  .takt-rand { display: block; position: fixed; left: 12px; top: calc(50% + 28px); transform: translateY(-50%); z-index: 20; }
  .takt-rand ol { display: grid; gap: 2px; }
  .takt-rand a { position: relative; display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
  .takt-rand b { display: grid; place-items: center; min-width: 46px; height: 32px; border: 2px solid var(--text); border-radius: 50% / 60%; background: var(--surface); font-size: 14px; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
  .takt-rand a:hover b, .takt-rand a:focus-visible b { transform: scale(1.1); }
  .takt-rand a.ist-aktiv b { background: var(--text); color: var(--bg); transform: scale(1.08); box-shadow: 0 0 0 3px var(--bernstein); }
  .takt-rand span { display: none; position: absolute; left: 54px; padding: 4px 12px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; animation: label-ein .2s ease-out both; }
  .takt-rand a:hover span, .takt-rand a:focus-visible span { display: block; }
  @keyframes label-ein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Knöpfe wie Notenköpfe: Oval, leicht geneigt, harter Schatten ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 2px solid var(--text); border-radius: var(--radius-rund); background: var(--accent); color: var(--on-accent); font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 0 var(--text); transform: rotate(-1.2deg); transition: transform .15s, box-shadow .15s, background .2s; }
.knopf:hover { background: var(--accent-tief); transform: translateY(1px) rotate(-1.2deg); box-shadow: 0 3px 0 var(--text); }
.knopf:active { transform: translateY(4px) rotate(-1.2deg); box-shadow: 0 0 0 var(--text); }
.knopf-klein { min-height: 44px; padding: 0 20px; font-size: 15px; }
.knopf-leise, .knopf-hell { background: var(--surface); color: var(--text); }
.knopf-leise:hover, .knopf-hell:hover { background: #fff; }
.knopf-dunkel { background: var(--text); color: var(--bg); }
.knopf-dunkel:hover { background: #000; }
.knopf[disabled] { opacity: .55; cursor: default; }

/* =====================================================================================
   Takte: jeder Abschnitt ist ein Takt in eigener Farbe. Fünf Zierlinien laufen oben durch, mit Schlüssel,
   Taktstrichen und einem Probenzeichen (Kästchen mit der Taktzahl).
   ===================================================================================== */
.t-papier { --bgs: var(--bg); --fg: var(--text); --leise: var(--muted); --linie: rgba(27, 19, 21, .5); --kante: rgba(27, 19, 21, .9); }
.t-nacht { --bgs: var(--nacht); --fg: var(--nacht-text); --leise: var(--nacht-leise); --linie: rgba(243, 233, 213, .46); --kante: rgba(243, 233, 213, .9); }
.t-tuerkis { --bgs: var(--tuerkis-tief); --fg: #fff; --leise: #f0fbfb; --linie: rgba(255, 255, 255, .55); --kante: #fff; }
.t-rot { --bgs: var(--rot-tief); --fg: #fff; --leise: #ffecec; --linie: rgba(255, 255, 255, .5); --kante: #fff; }
.t-gruen { --bgs: var(--gruen-tief); --fg: #fff; --leise: #effaf3; --linie: rgba(255, 255, 255, .55); --kante: #fff; }
.t-bernstein { --bgs: var(--bernstein); --fg: var(--text); --leise: #3b2e30; --linie: rgba(27, 19, 21, .55); --kante: rgba(27, 19, 21, .95); }
.takt, .jahr { color: var(--fg); background: var(--bgs); }
.takt { position: relative; padding: 138px 0 96px; }
.takt > .behaelter { position: relative; z-index: 1; }
.takt a:not(.knopf) { color: var(--fg); }
.takt .leise, .takt .lead { color: var(--leise); }

.zier { position: absolute; left: 0; right: 0; top: 44px; height: 58px; background: repeating-linear-gradient(to bottom, var(--linie) 0 2px, transparent 2px 14px); pointer-events: none; z-index: 0; }
.zier::before, .zier::after { content: ""; position: absolute; top: 0; height: 58px; background: var(--kante); width: 2px; }
.zier::before { left: max(8px, calc((100% - var(--breite)) / 2 - 12px)); }
.zier::after { right: max(8px, calc((100% - var(--breite)) / 2 - 12px)); }
.zier-schl { position: absolute; left: max(20px, calc((100% - var(--breite)) / 2 + 4px)); top: -21px; width: 34px; height: 105px; color: var(--fg); }
.zier-zart { top: 18px; opacity: .6; }
.zier-wandert { display: none; position: absolute; left: 270px; top: 11px; width: 20px; height: 40px; color: var(--fg); opacity: .85; will-change: transform, opacity; }
html[data-bewegung="dynamisch"] .takt.lebt .zier-wandert { display: block; animation: wandern 26s linear infinite; }
@keyframes wandern {
  0% { transform: translate(0, 0); opacity: 0; } 4% { opacity: .85; }
  10% { transform: translate(calc((100vw - 400px) * .1), -14px); } 20% { transform: translate(calc((100vw - 400px) * .2), -7px); } 30% { transform: translate(calc((100vw - 400px) * .3), 7px); }
  40% { transform: translate(calc((100vw - 400px) * .4), 0); } 50% { transform: translate(calc((100vw - 400px) * .5), -21px); } 60% { transform: translate(calc((100vw - 400px) * .6), -14px); }
  70% { transform: translate(calc((100vw - 400px) * .7), 0); } 80% { transform: translate(calc((100vw - 400px) * .8), 14px); } 90% { transform: translate(calc((100vw - 400px) * .9), 7px); opacity: .85; }
  100% { transform: translate(calc(100vw - 400px), -7px); opacity: 0; }
}

.takt-kopf { position: relative; margin-bottom: 44px; }
.takt-kopf h2 { max-width: 40ch; }
.takt-kopf .lead { margin-top: 14px; font-size: 19px; max-width: 46rem; }
.probe { position: absolute; top: -122px; left: 66px; display: inline-flex; align-items: baseline; gap: 8px; height: 36px; padding: 7px 12px 0; border: 2px solid var(--kante); border-radius: 4px; color: var(--fg); font-size: 22px; font-weight: 800; line-height: 1; z-index: 2; }
.probe small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hinweis-klein { margin-top: 26px; font-size: 13.5px; color: var(--leise, var(--muted)); max-width: 52rem; }

/* =====================================================================================
   Takt 1 · Klaviatur (erster Bildschirm)
   ===================================================================================== */
.takt-spiel { padding: 20px 0 56px; }
.spiel-kopf { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; margin-bottom: 14px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.einleitung { margin-top: 8px; font-size: 17.5px; max-width: 38rem; color: var(--leise); }
.regler-titel { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.instrumente { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.instr { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 66px; padding: 8px 6px 9px; border: 2px solid var(--text); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; }
.instr:hover { transform: translateY(-2px); }
.instr[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: 0 5px 0 var(--c); transform: translateY(-2px); }
.instr .symbol { width: 26px; height: 26px; }

.spielfeld { --ton-hell: #f6c9ce; }
.spielfeld[data-instrument="orgel"] { --ton-hell: #fbdf9c; }
.spielfeld[data-instrument="floete"] { --ton-hell: #a6e3e4; }
.spielfeld[data-instrument="zupfen"] { --ton-hell: #b4e6c8; }
.blatt { position: relative; background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius); box-shadow: 0 6px 0 var(--text); padding: 6px 14px 4px; }
#notenblatt { display: block; width: 100%; height: auto; overflow: visible; }
#notenblatt .linien { stroke: var(--text); stroke-width: 1.4; fill: none; opacity: .85; }
.schluessel { color: var(--text); }
.leerhinweis { position: absolute; left: calc(14px + 4.9 * var(--nd, 16px)); bottom: 12px; max-width: calc(100% - 120px); color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1.3; transition: opacity .3s; pointer-events: none; }
.blatt.hat-noten .leerhinweis { opacity: 0; }
.blatt-name { position: absolute; right: 16px; top: 9px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.blatt-name .punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--ton); border: 2px solid var(--text); }
/* Noten */
#notenblatt .note { --c: var(--ton); }
.n-kopf { fill: var(--c); }
.n-kopf.offen { fill: var(--surface); stroke: var(--c); stroke-width: 2.4; }
.n-hals { stroke: var(--c); stroke-width: 1.7; fill: none; }
.n-led { stroke: var(--text); stroke-width: 1.5; }
.n-pause { fill: var(--c); }
.n-kreuz { color: var(--c); }
.n-name { fill: var(--text); font-family: var(--schrift); font-weight: 800; text-anchor: middle; }
.n-text { fill: var(--muted); font-family: var(--schrift); font-style: italic; font-weight: 600; text-anchor: middle; }
#notenblatt .strich { stroke: var(--text); stroke-width: 1.5; }
#notenblatt .namen-aus .n-name { display: none; }
.note.neu .pop { animation: pop .32s cubic-bezier(.3, 1.6, .5, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.note.ghost { opacity: .9; }
.note.ghost .n-kopf { fill: #d8cdb7; }
.note.ghost .n-kopf.offen { fill: var(--surface); stroke: #cbbfa6; }
.note.ghost .n-hals { stroke: #cbbfa6; }
.note.ghost .n-name, .note.ghost .n-text { fill: #6b5c58; }
.note.aktuell .n-kopf { fill: var(--bernstein-tief); }
.note.aktuell .n-kopf.offen { fill: #ffe9b0; stroke: var(--bernstein-tief); }
.note.aktuell .n-hals { stroke: var(--bernstein-tief); }
.note.aktuell .ring { opacity: 1; }
.ring { fill: none; stroke: var(--bernstein-tief); stroke-width: 2.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.note.aktuell .ring { animation: atmen 1.3s ease-in-out infinite; }
@keyframes atmen { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.25); opacity: .45; } }
html[data-bewegung="starr"] .note.aktuell .ring { animation: none; }
.note.gespielt .n-kopf { fill: var(--c); }
.note.gespielt .n-kopf.offen { fill: var(--surface); stroke: var(--c); }

/* Gehäuse und Tasten */
.gehaeuse { position: relative; margin-top: 14px; padding: 18px 16px 12px; border-radius: 18px 18px 12px 12px; background: #1f1718 linear-gradient(#2d2324, #14100f); border: 2px solid var(--text); box-shadow: 0 6px 0 var(--text); overflow: hidden; }
.gehaeuse::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--rot); }
.ton-hinweis { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; color: var(--nacht-text); }
.ton-hinweis p { font-size: 15px; font-weight: 600; max-width: 34rem; }
.tasten { position: relative; height: clamp(150px, 21vh, 210px); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.taste { position: absolute; top: 0; margin: 0; padding: 0; border: 0; font: inherit; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; transition: transform .06s linear; }
.taste.weiss { left: calc(var(--i) * 100% / 15 + 1px); width: calc(100% / 15 - 2px); height: 100%; border-radius: 0 0 9px 9px; background: #fbf5e8 linear-gradient(180deg, #fffefa 0%, #f8f1e2 78%, #e4d9c3 100%); box-shadow: inset 0 -6px 0 rgba(27, 19, 21, .1), 0 2px 0 #000; color: #3b2f2c; z-index: 1; }
.taste.schwarz { left: calc(var(--p) * 100% / 15 - 2.15%); width: 4.3%; height: 61%; border-radius: 0 0 6px 6px; background: #14100f linear-gradient(180deg, #4a3d3e 0%, #1a1415 12%, #0d0a0b 100%); box-shadow: inset 2px 0 0 rgba(255, 255, 255, .1), inset -2px 0 0 rgba(0, 0, 0, .6), 0 4px 6px -2px rgba(0, 0, 0, .6); color: #cfc3b2; z-index: 2; }
.taste.weiss.an { transform: translateY(2px); background: linear-gradient(180deg, var(--ton-hell) 0%, #fff 130%); box-shadow: inset 0 -3px 0 var(--ton), 0 1px 0 #000; }
.taste.schwarz.an { transform: translateY(2px); background: linear-gradient(180deg, var(--ton) 0%, #1a1415 130%); height: 60%; }
.taste:focus-visible { outline: 3px solid var(--bernstein); outline-offset: -3px; z-index: 3; }
.tn { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 13px; font-weight: 800; text-align: center; pointer-events: none; }
.tn small { font-size: 10px; font-weight: 700; vertical-align: sub; margin-left: 1px; }
.taste.c .tn { color: var(--text); }
.tz { position: absolute; left: 0; right: 0; bottom: 34px; display: none; font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; color: #5f504b; pointer-events: none; }
.taste.schwarz .tz { bottom: 10px; color: #d9cdbb; }
html.hat-tastatur .tz { display: block; }
.taste.naechste { background: linear-gradient(180deg, #ffe7a3 0%, #ffc43d 120%); box-shadow: inset 0 -6px 0 var(--bernstein-tief), 0 2px 0 #000; }
.taste.schwarz.naechste { background: linear-gradient(180deg, #d9920a 0%, #6d4300 120%); }
.taste.naechste::before { content: ""; position: absolute; left: 50%; bottom: 36px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--rot); border: 2px solid var(--text); animation: tupf 1s ease-in-out infinite; }
.taste.schwarz.naechste::before { bottom: 14px; background: var(--bernstein); }
@keyframes tupf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
html[data-bewegung="starr"] .taste.naechste::before { animation: none; }
.tasten.fertig .taste { animation: welle .9s ease-out both; animation-delay: calc(var(--i) * 45ms); }
@keyframes welle { 0% { filter: none; transform: none; } 40% { transform: translateY(3px); background: var(--ton-hell); } 100% { transform: none; } }
html[data-bewegung="starr"] .tasten.fertig .taste { animation: none; }

.lied-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.lied-wahl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lied-wahl select { min-width: 0; max-width: 100%; }
.lied-wahl label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea { font: inherit; color: var(--text); }
.lied-wahl select { min-height: 48px; padding: 0 38px 0 16px; border: 2px solid var(--text); border-radius: 12px; background-color: var(--surface); background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; appearance: none; font-weight: 700; font-size: 16px; cursor: pointer; }
.schalter { min-height: 44px; padding: 0 16px 0 40px; position: relative; border: 2px solid var(--text); border-radius: var(--radius-rund); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.schalter::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--text); border-radius: 50%; background: var(--surface); }
.schalter[aria-pressed="true"]::before { background: var(--text); box-shadow: inset 0 0 0 3px var(--surface); }
.schalter.schalter-neu { padding-left: 18px; }
.schalter.schalter-neu::before { display: none; }
.schalter:hover { background: var(--bg-tief); }
.tasten-hinweis { flex-basis: 100%; font-size: 14px; color: var(--leise); }
.status { display: block; margin-top: 12px; min-height: 48px; padding: 11px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 16px; }

/* =====================================================================================
   Takt 9 · Ihr erstes Jahr am Instrument
   Grundform (ohne JavaScript, „starr", niedrige Fenster): Blatt voll, sechs Karten darunter.
   Mit html.kleb-an (js/erstes-jahr.js): sechs Fensterhöhen, die Bühne klebt, das Blatt wächst mit dem Scrollen.
   ===================================================================================== */
.jahr { position: relative; }
.jahr-buehne { position: relative; padding: 138px 0 90px; }
.jahr-kopf { position: relative; margin-bottom: 30px; }
.jahr-kopf .probe { top: -120px; }
.jahr-vorsatz { margin-top: 10px; font-size: 17px; }
.jahr-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.jahr-blattrahmen { position: relative; background: var(--surface); color: var(--text); border: 2px solid #000; border-radius: var(--radius); box-shadow: 0 8px 0 rgba(0, 0, 0, .5); padding: 12px 10px 8px; margin-inline: auto; width: 100%; }
.jahr-blatt-svg { display: block; width: 100%; height: auto; }
.jahr-blatt-svg .linien { stroke: var(--text); stroke-width: 1.15; fill: none; opacity: .85; }
.jahr-blatt-svg .stab .schluessel { color: var(--c); }
.jahr-blatt-svg .n-kopf { fill: var(--c); }
.jahr-blatt-svg .n-kopf.offen { fill: var(--surface); stroke: var(--c); stroke-width: 2.4; }
.jahr-blatt-svg .n-hals { stroke: var(--c); stroke-width: 1.6; }
.jahr-blatt-svg .n-led { stroke: var(--text); stroke-width: 1.3; }
.jahr-blatt-svg .n-pause { fill: var(--c); }
.jahr-blatt-svg .strich { stroke: var(--text); stroke-width: 1.2; }
.jahr-blatt-svg .strich.dick { stroke-width: 3.6; }
.jahr-blatt-svg .verbinder { stroke: var(--text); stroke-width: 1.8; }
.jahr-rahmen-name { position: absolute; right: 16px; bottom: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.laufbalken { display: none; }
.tempo { display: none; }
.lineal { display: none; }
.jahr-schritte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.js-schritt { padding: 20px 22px 22px; border: 2px solid rgba(243, 233, 213, .3); border-radius: var(--radius); background: var(--nacht-2); }
.js-schritt h3 { margin: 8px 0 8px; font-size: 24px; }
.js-schritt p { color: var(--nacht-text); }
.schritt-marke { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--nacht-leise) !important; }
.schritt-marke span { padding: 2px 12px; border-radius: var(--radius-rund); background: var(--bernstein); color: var(--text); font-weight: 800; }
.schritt-tempo { margin-top: 12px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--bernstein) !important; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.legende li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 2px solid rgba(243, 233, 213, .35); border-radius: var(--radius-rund); font-size: 14px; font-weight: 700; color: var(--nacht-text); }
.legende .punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }

html.kleb-an .jahr { height: 600vh; }
html.kleb-an .jahr-buehne { position: sticky; top: var(--kopf); height: calc(100vh - var(--kopf)); height: calc(100svh - var(--kopf)); padding: 0; overflow: hidden; }
html.kleb-an .jahr-innen { height: 100%; display: flex; flex-direction: column; padding: 96px 0 18px; }
html.kleb-an .jahr-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-bottom: 16px; max-width: none; }
html.kleb-an .jahr-kopf .probe { top: -76px; }
html.kleb-an .jahr-kopf h2 { font-size: clamp(26px, 3vw, 38px); }
html.kleb-an .jahr-vorsatz { margin: 0; }
html.kleb-an .jahr-raster { flex: 1; min-height: 0; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; }
html.kleb-an .jahr-blattrahmen { width: min(100%, calc((100svh - var(--kopf) - 290px) * 772 / 520 + 20px)); }
html.kleb-an .jahr-seite { display: grid; gap: 14px; align-content: center; }
html.kleb-an .tempo { display: flex; align-items: center; gap: 18px; }
.pendel-bild { width: 44px; height: 58px; flex: none; }
.tempo-zeile { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.tempo-zeile .viertel { width: 22px; height: 42px; color: var(--nacht-text); align-self: center; }
.tempo-zeile .gleich { font-size: 32px; font-weight: 700; color: var(--nacht-leise); }
.tempo-zeile b { font-size: 60px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 2.2ch; color: var(--bernstein); }
.bpm-einheit { font-size: 16px; font-weight: 800; letter-spacing: .08em; color: var(--nacht-text); }
.tempo-wort { margin-top: 6px; font-size: 20px; font-style: italic; font-weight: 600; color: var(--nacht-text); }
html.kleb-an .jahr-schritte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
html.kleb-an .js-schritt { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
html.kleb-an .js-schritt.ist-aktiv { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html.kleb-an .schritt-tempo { display: none; }
html.kleb-an .jahr-blatt-svg .tk { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
html.kleb-an .jahr-blatt-svg .tk.da { opacity: 1; transform: none; }
html.kleb-an .jahr-blatt-svg .stab .linien, html.kleb-an .jahr-blatt-svg .stab .schluessel { opacity: .16; transition: opacity .5s; }
html.kleb-an .jahr-blatt-svg .stab.an .linien { opacity: .85; }
html.kleb-an .jahr-blatt-svg .stab.an .schluessel { opacity: 1; }
html.kleb-an .legende li { opacity: .3; transition: opacity .4s; }
html.kleb-an .legende li.an { opacity: 1; }
html.kleb-an .laufbalken { display: block; position: absolute; left: 0; top: 12px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--rot); opacity: 0; will-change: transform; pointer-events: none; transition: opacity .3s; }
html.kleb-an .laufbalken.laeuft { opacity: .85; }
html.kleb-an .lineal { display: block; margin-top: 4px; }
.lineal-bahn { height: 12px; border-radius: 99px; background: rgba(243, 233, 213, .16); overflow: hidden; }
.lineal-fuellung { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--rot) 0%, var(--bernstein) 36%, #2bb5b8 66%, #3fb36f 100%); clip-path: inset(0 100% 0 0); will-change: clip-path; }
.lineal-monate { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--nacht-leise); text-align: center; }
.lineal-text { margin-top: 4px; text-align: right; font-size: 14px; font-weight: 700; color: var(--nacht-text); }
.lineal-text b { font-size: 18px; color: var(--bernstein); font-variant-numeric: tabular-nums; }

/* =====================================================================================
   Takt 17 · Instrumente und Beitragsrechner
   ===================================================================================== */
.instr-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 52px; }
.ik { --ik: var(--rot); --ikt: #fff; display: grid; align-content: start; gap: 6px; padding: 22px 22px 24px; border: 2px solid var(--text); border-radius: var(--radius); background: var(--ik); color: var(--ikt); box-shadow: 0 6px 0 var(--text); transition: transform .2s; }
.ik:hover { transform: translateY(-3px) rotate(-.8deg); }
.ik .symbol { width: 38px; height: 38px; }
.ik h3 { margin-top: 6px; font-size: 24px; }
.ik .alter { align-self: start; justify-self: start; padding: 2px 12px; border: 2px solid currentColor; border-radius: var(--radius-rund); font-size: 13px; font-weight: 800; }
.ik p { color: inherit; }
.ik-klavier { --ik: var(--rot); }
.ik-geige { --ik: var(--bernstein); --ikt: var(--text); }
.ik-floete { --ik: var(--tuerkis-tief); }
.ik-gitarre { --ik: var(--gruen); }
.ik-schlagzeug { --ik: var(--nacht); }
.ik-gesang { --ik: #7a2a6b; }

.rechner { border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 0 var(--text); overflow: hidden; }
.rechner-kopf { padding: 24px 28px 6px; }
.rechner-kopf .leise { margin-top: 4px; font-size: 15px; color: var(--muted); }
.rechner-raster { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; }
.rechner-felder { display: grid; gap: 18px; padding: 18px 28px 28px; align-content: start; }
.feld { display: grid; gap: 6px; }
.feld label, .formen legend { font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.feld select, .feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld input[type="date"], .feld textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--text); border-radius: 10px; background: #fff; font-size: 16px; }
.feld select { appearance: none; padding-right: 40px; background-color: #fff; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.feld-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.formen { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.formen legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; }
.form { position: relative; display: block; }
.form input { position: absolute; width: 1px; height: 1px; margin: 0; clip: rect(0 0 0 0); clip-path: inset(50%); }
.form-karte { display: grid; gap: 1px; justify-items: start; align-content: start; min-height: 128px; padding: 12px 12px 12px; border: 2px solid var(--text); border-radius: 12px; background: var(--surface); cursor: pointer; transition: transform .15s, background .2s, box-shadow .15s; }
.form-karte svg { width: 28px; height: 30px; margin-bottom: 4px; color: var(--text); }
.form-karte b { font-size: 16px; font-weight: 800; }
.form-karte small { font-size: 13px; color: var(--muted); font-weight: 600; }
.form-karte i { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.form:hover .form-karte { transform: translateY(-2px); }
.form input:checked + .form-karte { background: var(--bernstein); box-shadow: 0 4px 0 var(--text); transform: translateY(-2px); }
.form input:checked + .form-karte small { color: var(--text); }
.form input:focus-visible + .form-karte { outline: 3px solid var(--accent); outline-offset: 3px; }
.haken { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; cursor: pointer; }
.haken input { width: 24px; height: 24px; flex: none; accent-color: var(--text); cursor: pointer; }
.haken-voll { align-items: flex-start; padding-top: 6px; font-weight: 600; font-size: 15px; }
.feld-haken { align-self: end; }
.rechner-ergebnis { display: grid; align-content: center; gap: 14px; padding: 28px; background: var(--text); color: var(--bg); }
.rechner-summe { display: grid; gap: 0; }
.rechner-summe span { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nacht-leise); }
.rechner-summe b { font-size: clamp(48px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; color: var(--bernstein); font-variant-numeric: tabular-nums; }
.rechner-zeilen { display: grid; gap: 4px; font-size: 15px; }
.rechner-zeilen li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(243, 233, 213, .22); font-variant-numeric: tabular-nums; }
.rechner-jahr { font-size: 14px; color: var(--nacht-leise); }
.rechner-ergebnis .knopf { justify-self: start; background: var(--bernstein); color: var(--text); box-shadow: 0 4px 0 #000; border-color: var(--bernstein); }
.rechner-ergebnis .knopf:hover { background: #ffc13a; }

/* =====================================================================================
   Takt 25 · Lehrkräfte
   ===================================================================================== */
.lehrer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.lk { --c: var(--rot); --ct: #fff; display: grid; justify-items: start; align-content: start; gap: 6px; padding: 22px 18px 24px; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 6px 0 rgba(0, 0, 0, .4); }
.scheibe { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 8px; border: 2px solid var(--text); border-radius: 50%; background: var(--c); color: var(--ct); }
.scheibe .symbol { width: 34px; height: 34px; }
.lk h3 { font-size: 19px; }
.lk .rolle { font-size: 14px; font-weight: 800; color: var(--muted); }
.lk p:last-child { font-size: 15px; margin-top: 4px; }
.takt .hinweis-klein a { color: inherit; }

/* =====================================================================================
   Takt 33 · Vorspiele
   ===================================================================================== */
.termine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.termin { --c: var(--rot); --ct: #fff; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: stretch; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 6px 0 rgba(0, 0, 0, .4); overflow: hidden; }
.termin-tag { display: grid; justify-items: center; align-content: center; padding: 12px 6px; background: var(--c); color: var(--ct); line-height: 1; }
.termin-tag b { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.termin-tag span { margin-top: 3px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.termin-tag i { margin-top: 5px; font-style: normal; font-size: 12px; font-weight: 700; opacity: .9; }
.termin-text { align-self: center; padding: 14px 16px; }
.termin-text h3 { font-size: 18px; }
.termin-text p { margin-top: 3px; font-size: 14.5px; color: var(--muted); }
.termin-zeit { align-self: center; padding: 14px 18px 14px 0; font-size: 15px; font-weight: 800; text-align: right; line-height: 1.3; font-variant-numeric: tabular-nums; }
.termin-zeit small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* =====================================================================================
   Takt 41 · Zahlen und Stimmen
   ===================================================================================== */
.zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.zahlen li { padding: 18px 20px 20px; border: 2px solid var(--text); border-top-width: 10px; border-top-color: var(--c); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 0 var(--text); }
.zahlen b { display: block; font-size: clamp(44px, 5vw, 66px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; color: var(--c); font-variant-numeric: tabular-nums; }
.zahlen span { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; }
.stimmen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stimme { position: relative; display: grid; align-content: space-between; gap: 18px; padding: 58px 22px 22px 26px; border: 2px solid var(--text); border-left: 10px solid var(--c); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 0 var(--text); }
.stimme::before { content: "„"; position: absolute; left: 22px; top: -4px; font-size: 90px; font-weight: 800; line-height: 1; color: var(--c); opacity: .9; }
.stimme blockquote p { font-size: 17px; line-height: 1.5; font-weight: 500; }
.stimme-von { font-size: 14px; font-weight: 800; color: var(--muted); }

/* =====================================================================================
   Takt 49 · Probestunde, Demo-Formular
   ===================================================================================== */
.probe-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.probe-text .takt-kopf { margin-bottom: 28px; }
.probe-text .probe { left: 66px; }
.drei-schritte { display: grid; gap: 12px; }
.drei-schritte li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border: 2px solid var(--kante); border-radius: 14px; background: rgba(255, 255, 255, .1); }
.drei-schritte span { overflow-wrap: anywhere; hyphens: auto; }
.drei-schritte b { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--text); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 20px; font-weight: 800; }
.telefon-zeile { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 18px; font-weight: 700; }
.formular { display: grid; gap: 16px; padding: 28px; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 8px 0 rgba(0, 0, 0, .45); }
.formular .hinweis-klein { margin-top: 0; color: var(--muted); }
.formular a { color: var(--accent); }
.formular-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.formular-meldung { flex: 1 1 220px; font-weight: 800; font-size: 15px; color: var(--gruen-tief); }
.formular .knopf { background: var(--gruen); }
.formular .knopf:hover { background: var(--gruen-tief); }

/* =====================================================================================
   Takt 57 · Jobs
   ===================================================================================== */
.stellen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.stelle { --c: var(--rot); display: grid; align-content: start; gap: 6px; padding: 24px 22px 24px; border: 2px solid var(--text); border-top: 12px solid var(--c); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 6px 0 var(--text); }
.stelle .symbol { width: 36px; height: 36px; color: var(--c); }
.stelle h3 { margin-top: 4px; }
.stelle-zeile { font-size: 14px; font-weight: 800; color: var(--muted); }
.bewerbung { padding: 26px 28px 28px; border: 2px solid var(--text); border-radius: var(--radius); background: rgba(255, 253, 246, .55); }
.bewerbung h3 { margin-bottom: 16px; font-size: 24px; }
.drei-quer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.t-jobs .drei-schritte li { background: var(--surface); border-color: var(--text); }
.bewerbung-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.bewerbung-zeile a:not(.knopf) { font-weight: 800; }

/* =====================================================================================
   Takt 65 · Anfahrt
   ===================================================================================== */
.anfahrt-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.anfahrt-karte svg { width: 100%; height: auto; border: 2px solid var(--text); border-radius: var(--radius); box-shadow: 0 6px 0 var(--text); }
.karte-unter { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.route { stroke-dasharray: 100; stroke-dashoffset: 0; }
html.anim .anfahrt-karte:not(.ist-da) .route { stroke-dashoffset: 100; }
html.anim .anfahrt-karte.ist-da .route { transition: stroke-dashoffset 1.4s ease-in-out .2s; }
.anfahrt-text address { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.kontakt-zeile { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.anfahrt-text h3 { margin: 26px 0 10px; font-size: 19px; }
.zeiten { display: grid; gap: 0; }
.zeiten div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 2px dotted rgba(27, 19, 21, .35); }
.zeiten dt { font-weight: 700; }
.zeiten dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.wege { display: grid; gap: 8px; }
.wege li { padding-left: 16px; border-left: 6px solid var(--bernstein); }
.wege b { margin-right: 6px; }

/* =====================================================================================
   Auftritte: kleine Bewegung je Takt beim Hereinscrollen (einmal, höchstens 600 ms).
   Nur mit html.anim (setzt js/main.js, nicht bei „starr").
   ===================================================================================== */
html.anim .auftritt { opacity: 0; transform: translateY(26px) rotate(var(--r, 0deg)); transition: opacity .5s ease-out, transform .55s cubic-bezier(.2, .8, .3, 1); transition-delay: calc(var(--n, 0) * 70ms); }
html.anim .auftritt.ist-da { opacity: 1; transform: none; }
html.anim .lk .scheibe { transform: scale(.3); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--n, 0) * 70ms + 120ms); }
html.anim .lk.ist-da .scheibe { transform: scale(1); }
html.anim .termin.auftritt { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.5, 0, .2, 1); transition-delay: calc(var(--n, 0) * 80ms); }
html.anim .termin.auftritt.ist-da { clip-path: inset(0 0 0 0); }
html.anim .stimme::before { transform: scale(.2); transform-origin: left top; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .2s; }
html.anim .stimme.ist-da::before { transform: scale(1); }
html.anim .drei-schritte li.auftritt b { transform: scale(.4); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--n, 0) * 120ms + 150ms); }
html.anim .drei-schritte li.ist-da b { transform: scale(1); }
html.anim .stelle.auftritt { transform-origin: 50% 0; transform: perspective(700px) rotateX(-16deg) translateY(16px); }
html.anim .stelle.auftritt.ist-da { transform: none; }
html.anim .zahlen li.auftritt { transform: translateY(18px) scale(.94); }
html.anim .zahlen li.ist-da { transform: none; }

/* =====================================================================================
   Fuß
   ===================================================================================== */
.fuss { position: relative; padding: 0; background: var(--nacht); color: var(--nacht-leise); font-size: 15px; }
.fuss-zier { position: relative; height: 58px; margin: 40px 0 48px; background: repeating-linear-gradient(to bottom, var(--linie-hell) 0 2px, transparent 2px 14px); }
.fuss-zier::before { content: ""; position: absolute; right: 26px; top: 0; width: 2px; height: 58px; background: var(--nacht-text); }
.fuss-ende { position: absolute; right: 8px; top: 0; width: 9px; height: 58px; background: var(--nacht-text); }
.fuss-zier::after { content: ""; position: absolute; left: 8px; top: 0; width: 2px; height: 58px; background: var(--nacht-text); }
.fuss a { color: var(--nacht-text); }
.fuss-raster { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.fuss-logo { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.fuss-links a { margin-right: 18px; display: inline-block; padding: 8px 0; }
.fuss-demo { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.fuss-zeile { width: 100%; max-width: none; margin: 0; padding: 22px 20px 28px; text-align: center; font-size: 13px; color: #9d9285; }
.fuss-zeile a { color: #cfc4b3; }

/* Bildplatzhalter: warmes Papier mit feiner Diagonale */
.bild-platzhalter { position: relative; display: flex; align-items: flex-end; margin: 22px 0 0; overflow: hidden; aspect-ratio: var(--format, 3 / 2); border: 2px solid var(--text); border-radius: var(--radius); background: radial-gradient(110% 80% at 85% 12%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 60%), repeating-linear-gradient(135deg, rgba(27, 19, 21, .08) 0 1px, transparent 1px 13px), var(--bg-tief); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.bild-platzhalter figcaption { margin: 12px; padding: 8px 12px; border-radius: var(--radius-klein); max-width: calc(100% - 24px); background: rgba(255, 253, 246, .96); color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.35; }
.anfahrt-text .bild-platzhalter { margin: 24px 0 0; }

.leiste-unten { display: none; }

/* =====================================================================================
   Schmalere Fenster
   ===================================================================================== */
@media (max-width: 1180px) {
  .lehrer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kopf-tel span { display: none; }
  .kopf-tel { width: 44px; justify-content: center; border: 2px solid var(--text); border-radius: 50%; background: var(--surface); padding: 0; }
}
@media (max-width: 980px) {
  .spiel-kopf { grid-template-columns: minmax(0, 1fr); }
  .instr-karten, .stellen, .stimmen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lehrer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .termine { grid-template-columns: minmax(0, 1fr); }
  .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rechner-raster, .probe-raster, .anfahrt-raster, .drei-quer { grid-template-columns: minmax(0, 1fr); }
  .probe-raster { gap: 30px; }
  .jahr-schritte { grid-template-columns: minmax(0, 1fr); }
  html.kleb-an .jahr-raster { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; align-items: start; }
  html.kleb-an .jahr-blattrahmen { width: min(100%, 600px, calc((100svh - var(--kopf) - 420px) * 772 / 520 + 20px)); }
  html.kleb-an .jahr-seite { gap: 10px; }
  html.kleb-an .legende { display: none; }
  html.kleb-an .jahr-vorsatz { display: none; }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .kopf-probe, .kopf-tel { display: none; }
  .kopf-innen { gap: 8px; }
  .ton-knopf { padding: 0 14px 0 10px; }
  .logo-text small { display: none; }
  .leiste-unten { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 244, 228, .98); border-top: 2px solid var(--text); }
  .leiste-unten .knopf { flex: 1; min-width: 0; padding: 0 12px; }
  .fuss { padding-bottom: 78px; }
  .takt { padding: 116px 0 64px; }
  .takt-spiel { padding: 18px 0 44px; }
  .zier { top: 34px; }
  .zier-schl { left: 10px; }
  .probe { top: -104px; left: 54px; height: 32px; font-size: 19px; }
  .takt-kopf { margin-bottom: 32px; }
  .takt-kopf .lead, .einleitung { font-size: 17px; }
  .instrumente { gap: 6px; }
  .instr { min-height: 60px; font-size: 12.5px; padding: 6px 2px; }
  .blatt { padding: 4px 8px 2px; }
  .blatt-name { top: 6px; right: 10px; font-size: 13px; }
  .leerhinweis { font-size: 13.5px; left: 54px; bottom: 8px; max-width: calc(100% - 70px); }
  .gehaeuse { padding: 16px 8px 10px; }
  .nur-gross { display: none; }
  .ton-hinweis { gap: 10px; margin-bottom: 10px; }
  .ton-hinweis p { font-size: 12.5px; line-height: 1.3; }
  .ton-gross { min-height: 44px; padding: 0 14px 0 12px; font-size: 15px; flex: none; }
  .ton-gross .symbol { width: 22px; height: 22px; }
  .tasten { height: 168px; }
  .tn { font-size: 10.5px; bottom: 8px; }
  .tn small { display: none; }
  .lied-leiste .knopf { flex: 1 1 130px; padding: 0 14px; }
  .lied-wahl { flex: 1 1 100%; }
  .lied-wahl select { flex: 1; }
  .instr-karten, .stellen, .stimmen, .lehrer { grid-template-columns: minmax(0, 1fr); }
  .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .zahlen li { padding: 14px 14px 16px; }
  .formen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-karte { min-height: 112px; }
  .feld-paar { grid-template-columns: minmax(0, 1fr); }
  .rechner-kopf, .rechner-felder, .rechner-ergebnis { padding-left: 18px; padding-right: 18px; }
  .formular { padding: 20px 16px; }
  .termin { grid-template-columns: 76px minmax(0, 1fr); }
  .termin-zeit { grid-column: 1 / -1; padding: 0 16px 12px; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .termin-tag b { font-size: 32px; }
  .drei-quer { grid-template-columns: minmax(0, 1fr); }
  .bewerbung { padding: 20px 16px; }
  .jahr-vorsatz { display: block; }
  html.kleb-an .jahr-buehne { height: calc(100svh - var(--kopf) - 72px); }
  html.kleb-an .jahr-innen { padding-top: 98px; }
  html.kleb-an .jahr-kopf { margin-bottom: 10px; }
  html.kleb-an .jahr-raster { overflow: visible; }
  html.kleb-an .jahr-kopf .probe { top: -86px; }
  html.kleb-an .jahr-kopf h2 { font-size: 21px; }
  html.kleb-an .jahr-blattrahmen { width: min(100%, 330px, calc((100svh - var(--kopf) - 380px) * 772 / 520 + 20px)); padding: 8px 6px 6px; }
  html.kleb-an .tempo { gap: 12px; }
  html.kleb-an .tempo .pendel-bild { width: 30px; height: 40px; }
  .tempo-zeile b { font-size: 40px; }
  .tempo-zeile .viertel { width: 16px; height: 30px; }
  .tempo-zeile .gleich { font-size: 24px; }
  .tempo-wort { margin-top: 2px; font-size: 16px; }
  html.kleb-an .js-schritt { padding: 12px 14px 14px; }
  html.kleb-an .js-schritt h3 { font-size: 19px; margin: 4px 0; }
  html.kleb-an .js-schritt p { font-size: 14.5px; line-height: 1.4; }
  .lineal-monate { font-size: 10px; }
  .lineal-text { margin-top: 0; font-size: 13px; }
}
@media (max-width: 400px) {
  .takt-menue-liste { grid-template-columns: minmax(0, 1fr); }
  .kopf-innen { gap: 6px; }
  .logo { gap: 6px; }
  .logo-zeichen { width: 30px; height: 30px; }
  .logo-text b { font-size: 18px; }
  .ton-knopf { font-size: 14px; padding: 0 12px 0 9px; gap: 6px; }
  .takt-menue summary { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 340px) {
  .logo-text { display: none; }
  .takt-menue-liste a { font-size: 14px; padding: 0 6px; gap: 6px; }
  .lied-wahl { flex-wrap: wrap; }
}
@media (max-height: 640px) and (min-width: 700px) {
  html.kleb-an .jahr-kopf h2 { font-size: 26px; }
}

/* Zeilenwechsel im Notenblatt: die alte Zeile gleitet kurz nach oben weg */
#notenblatt .alt { animation: weg .34s ease-in forwards; }
@keyframes weg { to { opacity: 0; transform: translateY(-10px); } }
