/* Geschichte „Vom Entchen zum Boogie.“ (musik/tasten)
   Szene: Tasten. Jede Station zeigt das Instrument ihrer Zeit auf einer dunklen Bühne mit Licht von oben (feste
   Farben, damit die Zeichnungen bei Tag und Abend gleich bleiben); der Text folgt dem Licht des Raums Musik.
   Zum Anfassen: die Bontempi (js/szenen/tasten.js). Bewegung nur mit .lebt am <html>. Alle Selektoren unter .tasten. */
.tasten{position:relative;max-width:1180px;margin:auto;padding:clamp(100px,12vw,160px) clamp(20px,6vw,84px) 80px;
  --gold:#e3b866;--gold-tief:#b58a59;--buehne:#1d1519;--feuer:var(--el-feuer,#b0503c)}
.tasten h2{font-size:clamp(2.5rem,5.4vw,4.6rem);line-height:1.06;margin-bottom:1.2rem}
.tasten h3{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.2;margin:0 0 .8rem}
.tasten p{line-height:1.8}
.tasten__intro{font-size:clamp(1.12rem,1.8vw,1.3rem);line-height:1.7;max-width:40rem}
.tasten__notiz{font-size:.92rem;opacity:.85}
.tasten details{border-top:1px solid #8886;padding:1rem 0;max-width:46rem;margin-top:clamp(3rem,7vw,5rem)}
.tasten summary{cursor:pointer}
.tasten figure{margin:0}
.tasten figcaption{font-size:.85rem;color:var(--leise);margin-top:.8rem;line-height:1.5}

/* Kopf */
.tasten__kopf{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(1.5rem,4vw,4rem);align-items:center}

/* Stationen: Text und Bühne nebeneinander, abwechselnd */
.tasten .station{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,4rem);align-items:center;margin-top:clamp(3.5rem,8vw,6.5rem)}
.tasten .station--links>figure{order:-1}
.tasten .station__nr{display:inline-flex;align-items:center;gap:.65em;font:800 .78rem/1.4 var(--sans,inherit);letter-spacing:.16em;text-transform:uppercase;color:var(--warm);margin:0 0 .7rem}
/* eine kleine Taste vor jeder Station */
.tasten .station__nr::before{content:"";flex:none;width:.7em;height:1.25em;border-radius:0 0 2px 2px;background:linear-gradient(#fffaf0,#e9dfcc);box-shadow:inset 0 0 0 1px #8a7a66,.32em 0 0 -.12em #1a1414}

/* Bühne: dunkler Grund, Licht von oben */
.tasten .buehne{padding:clamp(.8rem,2vw,1.3rem);border-radius:14px;color:#f3e6cf;
  background:radial-gradient(ellipse 55% 75% at 50% -12%,#f6d48a40,transparent 70%),linear-gradient(#241a1e,var(--buehne));
  box-shadow:0 0 0 1px #e3b86626,0 26px 60px -32px #000}
.tasten .buehne svg{display:block;width:100%;height:auto;overflow:visible}
.tasten .buehne figcaption{color:#d9c9b0}
.tasten .akk__t{fill:#d9c9b0;font:700 10px Nunito,system-ui,sans-serif}
.tasten .klavier__titel{fill:#3a2a1c;font:italic 700 8px Nunito,system-ui,sans-serif}
.tasten .orgel__register circle{fill:#efe2c6;stroke:#6b4a2c;stroke-width:1}
.tasten .orgel__register path{stroke:#c9b48c;stroke-width:3;stroke-linecap:round}
.tasten .yamaha__rhythmus text{fill:#d9c9b0;font:700 6.5px Nunito,system-ui,sans-serif}
.tasten .waage__marke{fill:#c8322b;font:800 10px Nunito,system-ui,sans-serif}
.tasten .gruppe__frage{fill:var(--feuer);font:800 22px Nunito,system-ui,sans-serif}
.tasten .buehne .gruppe__frage{fill:#f1a18d}

/* Zwischenstück: der Boogie */
.tasten .zwischen{max-width:46rem;margin:clamp(4rem,9vw,7rem) auto 0;text-align:left}
.tasten .boogie{margin-top:1.4rem;color:var(--tinte)}
.tasten .boogie svg{display:block;width:100%;height:auto;max-width:560px}
.tasten .boogie__b{font:700 15px Nunito,system-ui,sans-serif;fill:currentColor}
.tasten .boogie__noten .an{fill:var(--feuer)}
.tasten .boogie__bedienung{margin:.6rem 0 0}

/* Knöpfe zum Anfassen */
.tasten .tasten__knopf{font:700 .92rem/1 var(--sans,inherit);padding:.6rem 1rem;border-radius:999px;border:1px solid var(--gold-tief);background:color-mix(in srgb,var(--gold) 22%,transparent);color:inherit;cursor:pointer}
.tasten .tasten__knopf:hover{background:color-mix(in srgb,var(--gold) 38%,transparent)}
.tasten .tasten__knopf:focus-visible{outline:2px solid var(--feuer);outline-offset:2px}
.tasten .tasten__knopf[aria-pressed="true"]{background:var(--gold);color:#2b1b12;border-color:var(--gold)}

/* Die Bontempi: Plastik, Gitter, kleine Tasten – zum Spielen */
.tasten .bontempi__geraet{position:relative;padding:14px 14px 18px;border-radius:16px 16px 10px 10px;
  background:linear-gradient(#f4efe6,#d8d0c2);box-shadow:inset 0 2px 0 #fff,inset 0 -6px 0 #b8ae9c,0 26px 50px -26px #000}
.tasten .bontempi__oben{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;background:linear-gradient(#c8322b,#a8261f);color:#fff}
.tasten .bontempi__marke{font:800 italic 1.05rem/1 Nunito,system-ui,sans-serif;letter-spacing:.02em}
.tasten .bontempi__gitter{flex:1;height:34px;border-radius:6px;background:radial-gradient(circle,#5a1410 1.6px,transparent 2px) 0 0/8px 8px,#8f1f1a}
.tasten .bontempi__kopfhoerer{width:44px;opacity:.25;transition:opacity .3s}
.tasten .bontempi__kopfhoerer svg{display:block;width:100%;height:auto}
.tasten .bontempi.stumm .bontempi__kopfhoerer{opacity:1}
.tasten .bontempi__lied{min-height:1.7em;margin:.6rem .2rem .5rem;font:700 .92rem/1.6 Nunito,system-ui,sans-serif;color:#3a2a1c;text-align:center}
.tasten .bontempi__lied span{padding:0 .12em;border-radius:3px;opacity:.55}
.tasten .bontempi__lied span.war{opacity:.9}
.tasten .bontempi__lied span.jetzt{opacity:1;background:#f2c45a;color:#2b1b12}
.tasten .bontempi__tasten{position:relative;display:grid;grid-template-columns:repeat(8,1fr);height:clamp(110px,16vw,150px);
  padding:0 2px;border-radius:4px;background:#2b1b12}
.tasten .bontempi__tasten button{all:unset;box-sizing:border-box;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tasten .bontempi__tasten button:disabled{cursor:default}
.tasten .bontempi__tasten .weiss{margin:0 1px;border-radius:0 0 5px 5px;background:linear-gradient(#fffdf7,#ebe3d2);box-shadow:inset 0 -6px 0 #d4c9b2}
.tasten .bontempi__tasten .schwarz{position:absolute;top:0;left:calc(var(--p) * 100% / 8 - 4.2%);width:8.4%;height:60%;border-radius:0 0 4px 4px;background:linear-gradient(#3a3030,#0f0b0b);box-shadow:inset 0 -5px 0 #000}
.tasten .bontempi__tasten .dran{background:linear-gradient(#ffe7a8,#f2c45a);box-shadow:inset 0 -6px 0 #c99a3a,0 0 18px 2px #f2c45a99}
.tasten .bontempi__tasten button.gedrueckt{transform:translateY(2px);box-shadow:inset 0 -2px 0 #d4c9b2}
.tasten .bontempi__tasten .schwarz.gedrueckt{box-shadow:inset 0 -2px 0 #000}
.tasten .bontempi__tasten button:focus-visible{outline:3px solid var(--feuer);outline-offset:-3px}
.tasten .bontempi__bedienung{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin:.9rem 0 0}
.tasten .bontempi__bedienung [data-status]{font-weight:700;color:var(--tinte)}

/* Bewegung: nur mit .lebt */
.lebt .tasten .tasten__kegel,.lebt .tasten .orgel__licht{animation:tasten-licht 9s ease-in-out infinite alternate}
@keyframes tasten-licht{from{opacity:.75}to{opacity:1}}
.lebt .tasten .akk__balg{transform-box:fill-box;transform-origin:50% 50%;animation:tasten-balg 3.2s ease-in-out infinite}
@keyframes tasten-balg{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.88)}}
.lebt .tasten .akk__dran{animation:tasten-dran 1.6s ease-in-out infinite}
@keyframes tasten-dran{50%{opacity:.25}}
.lebt .tasten .orgel__staub circle{animation:tasten-staub 7s ease-in-out infinite alternate}
.lebt .tasten .orgel__staub circle:nth-child(2n){animation-duration:9s;animation-delay:-3s}
.lebt .tasten .orgel__staub circle:nth-child(3n){animation-duration:11s;animation-delay:-5s}
@keyframes tasten-staub{from{transform:translate(0,0);opacity:.3}to{transform:translate(8px,14px);opacity:1}}
.tasten .waage__zeiger{transform-box:view-box;transform-origin:298px 128px}
.lebt .tasten .yamaha.da .waage__zeiger{animation:tasten-waage 2.6s cubic-bezier(.3,1.6,.5,1) .4s both}
@keyframes tasten-waage{0%{transform:rotate(-43deg)}55%{transform:rotate(3deg)}75%{transform:rotate(-2deg)}100%{transform:rotate(0)}}

@media (max-width:760px){
  .tasten__kopf,.tasten .station{grid-template-columns:1fr}
  .tasten .station--links>figure{order:0}
}
@media print{
  .tasten .buehne{box-shadow:none}
  .tasten .bontempi__bedienung,.tasten .boogie__bedienung{display:none}
}
