/* ==========================================================================
   /klavierunterricht — nur was diese Seite unverwechselbar macht
   Reihenfolge (website-bauen 2B.1): 1 Hero · 2 Sektions-Bausteine
   3 Zustaende auf dunklem Grund · 4 Lesegroessen klein (zuletzt)
   Steckbrief: pages/004_2026-10-28_klavierunterricht/hero-steckbrief.md
   Klavier-Buehne: Gestaltung aus css/_entwurf-style.css (.piano, .key, .fall),
   Farben auf Tokens umgestellt.
   ========================================================================== */

/* ── 1 Hero „Lack" (Design-Runde 29./30.10.2026, Adrian waehlt final): Vollbild, warmes Braun nur hinter dem Text,
   Tasten-Hairline am Fuss (js/seiten/klavier-hero.js) leitet in die Klavier-Buehne. Entwuerfe: _varianten/klavier-*.html ── */
/* ── gemeinsam ──────────────────────────────────────────────────────── */
.hero-kl { position: relative; height: min(100svh, 920px); min-height: 680px; display: flex; align-items: flex-end;
  background: #2a2018; color: var(--color-on-dark); overflow: hidden; }
.kh-bild { position: absolute; inset: 0; overflow: hidden; }
.kh-bild picture { position: absolute; inset: 0; }
.kh-bild img { width: 100%; height: 100%; object-fit: cover; }
.kh-schleier { position: absolute; inset: 0; pointer-events: none; }
.kh-inhalt { position: relative; z-index: 2; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: 0 0 clamp(64px, 9vh, 96px); text-shadow: 0 1px 18px rgba(30, 20, 14, .45); }
.kh-text { max-width: 600px; }
.kh-h1 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--color-on-dark); }
.kh-h1::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--ci-gold); }
.kh-hook { margin-top: 14px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.5rem, 3.7vw, 3.375rem);
  line-height: 1.06; letter-spacing: -0.02em; color: var(--color-on-dark); }
.kh-hook { text-wrap: balance; }
.kh-hook em { font-style: italic; color: var(--ci-gold-l); }
.kh-sub { margin-top: 22px; max-width: 46ch; font-size: var(--fs-lead); color: rgba(246, 239, 228, .92); }
.kh-lead { margin-top: 10px; max-width: 50ch; font-size: 1rem; color: rgba(246, 239, 228, .82); }
.kh-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.hero-kl .preis-sprung { color: var(--ci-gold-l); }
.kh-proof { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 18px; font-size: .875rem; color: rgba(246, 239, 228, .82); }
.kh-proof .sterne { color: var(--ci-gold); letter-spacing: 2px; }
.kh-proof b { color: var(--color-on-dark); font-weight: 600; }

/* Tasten-Hairline: Klaviatur als Goldlinie, Naht in die dunkle Klavier-Buehne */
.kh-tasten-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 34px; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 32, 24, 0), #2a2018 70%); }
#kh-tasten { position: absolute; left: 0; bottom: 0; width: 100%; height: 23px; display: block; }
#kh-tasten .w rect { fill: rgba(246, 239, 228, .04); stroke: rgba(201, 162, 107, .42); stroke-width: 1; transition: fill .45s var(--ease); }
#kh-tasten .s rect { fill: rgba(201, 162, 107, .38); transition: fill .45s var(--ease); }
#kh-tasten .w rect.an { fill: rgba(231, 207, 166, .85); transition-duration: .06s; }
#kh-tasten .s rect.an { fill: var(--ci-gold-l); transition-duration: .06s; }
/* Klavier-Buehne beginnt im Ton der Naht */
.klavier-buehne { background-image: linear-gradient(180deg, #2a2018 0%, var(--color-dark-2) 260px, var(--color-dark) 70%); }

@media (prefers-reduced-motion: no-preference) {
  .kh-bild img { animation: kh-kb 16s var(--ease) both; }
  .kh-h1, .kh-hook { animation: kh-auf 1.1s var(--ease) both; }
  .kh-hook { animation-delay: .12s; }
  .kh-rest { animation: kh-auf 1s var(--ease) .45s both; }
}
@keyframes kh-kb { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes kh-auf { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Variante „Lack": Haende links, Text rechts auf dem schwarzen Fluegelkoerper ── */
.kv-lack .kh-bild img { object-position: 30% 50%; transform-origin: 30% 50%; }
.kv-lack .kh-inhalt { display: flex; justify-content: flex-end; }
.kv-lack .kh-text { max-width: 590px; }
.kv-lack .kh-schleier { background:
  linear-gradient(0deg, #2a2018 0%, rgba(42, 32, 24, .8) 7%, rgba(42, 32, 24, 0) 22%),
  radial-gradient(ellipse 48% 62% at 76% 56%, rgba(36, 25, 18, .86) 0%, rgba(36, 25, 18, .62) 50%, rgba(36, 25, 18, 0) 100%),
  linear-gradient(270deg, rgba(36, 25, 18, .7) 0%, rgba(36, 25, 18, .45) 36%, rgba(36, 25, 18, 0) 54%); }  /* verdichtet 30.10.: Deckelkante lief durch „Orchester“ (visual-qa 1,7:1) */

/* ── Mobil (alle drei): Foto-Band oben im eigenen Zuschnitt, Text auf warmem Braun ── */
@media (max-width: 899px) {
  .hero-kl, .kv-panorama { display: block; height: auto; min-height: 0; background: linear-gradient(180deg, #33251b 40%, #2a2018 100%); }
  .kh-bild, .kv-panorama .kh-bild { position: relative; width: 100%; aspect-ratio: 4 / 3; }
  .kv-panorama .kh-bild { aspect-ratio: 16 / 9; margin-top: 76px; }
  .kh-bild img { object-position: 50% 50%; }
  .kh-schleier, .kv-lack .kh-schleier, .kv-spiegel .kh-schleier, .kv-panorama .kh-schleier {
    background: linear-gradient(0deg, #33251b 0%, rgba(51, 37, 27, .5) 20%, rgba(51, 37, 27, 0) 44%); }
  .kv-lack .kh-inhalt { display: block; }
  .kh-text, .kv-lack .kh-text, .kv-spiegel .kh-text, .kv-panorama .kh-text { max-width: none; }
  .kv-spiegel .kh-bild img { object-position: 50% 0%; }
  .kh-inhalt, .kv-panorama .kh-inhalt { padding: 14px 0 58px; }
  .kh-h1 { font-size: .875rem; }
  .kh-hook { margin-top: 8px; font-size: clamp(1.875rem, 8.4vw, 2.5rem); line-height: 1.08; }
  .kh-sub { margin-top: 14px; font-size: 1rem; line-height: 1.6; }
  .kh-lead { font-size: 1rem; line-height: 1.6; order: 9; margin-top: 18px; }
  .kh-rest { display: flex; flex-direction: column; }  /* Falz: Bewertung im ersten Bildschirm, der Zusatzsatz folgt danach */
  .kv-lack .kh-bild { aspect-ratio: 16 / 10; }
  .kh-aktion { margin-top: 20px; }
  .kh-aktion .btn { width: 100%; }
  .kh-proof { font-size: 1rem; flex-direction: column; }
}


/* Tasten-Linie (Block 8, Abschluss): stille Klaviatur als feine Linie */
.tasten-linie { display: block; width: 190px; height: auto; margin-top: 18px; overflow: visible; }
.tasten-linie .weiss rect { fill: var(--color-surface); stroke: var(--ci-gold); stroke-width: 1; }
.tasten-linie .schwarz rect { fill: var(--color-text); }
.tasten-linie .anschlag rect {
  fill: var(--ci-bronze); opacity: 0;
  animation: kl-anschlag .5s var(--ease) both; animation-delay: calc(1.2s + var(--i) * .3s);
}
.tasten-linie .anschlag--schwarz rect { fill: var(--ci-gold); }
@keyframes kl-anschlag { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* ── 2 Sektions-Bausteine ────────────────────────────────────────────── */
.media-bogen, .media-rund { max-width: 520px; justify-self: center; width: 100%; }
.media-rund { max-width: none; }

/* Block 2: spielbares Klavier auf dunkler Buehne. Kopf zweispaltig (Gesang: zentriert) */
.klavier-buehne { padding: var(--section-pad) 0 0; }
.klavier-kopf { display: grid; gap: 18px 64px; align-items: end; }
@media (min-width: 900px) { .klavier-kopf { grid-template-columns: 1.05fr .95fr; } }
.klavier-kopf h2 { margin-top: 16px; font-size: clamp(2rem, 4.4vw, 3.5rem); }
.klavier-hinweis p { max-width: 46ch; }
.klavier-hinweis .chip { margin-top: 22px; }
.klavier-stage {
  position: relative; margin-top: clamp(16px, 3vw, 40px); min-height: 340px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 78px;
}
.klavier-stage::after { /* Buehnenkante */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 107, .5), transparent);
}
#notes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.piano-scene { position: relative; width: 100%; perspective: 900px; perspective-origin: 50% 0%; padding-top: 70px; z-index: 1; }
.piano {
  --tilt: 52deg; position: relative; margin: 0 auto; width: min(1100px, 94vw);
  transform: rotateX(var(--tilt)) translateZ(0); transform-style: preserve-3d; transform-origin: 50% 100%;
  transition: transform .1s linear;
}
.piano .case {
  position: absolute; inset: -26px -22px -30px; border-radius: 14px 14px 22px 22px;
  background-color: var(--ci-night);
  background-image: linear-gradient(180deg, var(--ci-night-2), var(--ci-night) 40%, var(--ci-night-2));
  box-shadow: 0 60px 80px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateZ(-14px);
}
.piano .case::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 6px; height: 14px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 107, .55), transparent); opacity: .5;
}
.fall {
  position: absolute; left: -22px; right: -22px; bottom: 100%; margin-bottom: 1px; /* Entwurf -2px: Deckel schnitt die Tastenebene, Chrome malte dann Tastenbereiche zeitweise dahinter (wie Startseite) */ height: clamp(54px, 9vw, 90px);
  transform-origin: 50% 100%; transform: rotateX(-88deg); border-radius: 10px 10px 0 0;
  background-color: var(--ci-night); background-image: linear-gradient(180deg, var(--ci-night), var(--ci-night-2) 70%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -10px 20px rgba(0, 0, 0, .6);
}
.fall span {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(14px, 2.2vw, 22px); letter-spacing: .08em;
  background: linear-gradient(90deg, var(--ci-bronze), var(--ci-gold-l), var(--ci-bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.keys {
  position: relative; display: flex; height: clamp(150px, 26vw, 250px); transform-style: preserve-3d;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.key {
  position: relative; flex: 1; transform-origin: 50% 0; transform-style: preserve-3d; cursor: pointer;
  transition: transform .16s var(--ease), filter .2s; -webkit-tap-highlight-color: transparent;
}
.key.w {
  background-color: var(--ci-paper);
  background-image: linear-gradient(180deg, var(--ci-sand) 0%, var(--ci-ivory) 18%, var(--ci-paper) 80%, var(--ci-sand) 100%);
  border-left: 1px solid var(--ci-line); border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -8px 0 var(--ci-line), inset 0 -9px 0 rgba(122, 111, 99, .5);
}
.key.w:first-child { border-left: 0; }
.key.b {
  position: absolute; top: 0; height: 62%; width: var(--bw); margin-left: calc(var(--bw) / -2); z-index: 2;
  background-color: var(--ci-night);
  background-image: linear-gradient(180deg, var(--ci-night) 0%, var(--ci-night-2) 85%, var(--ci-ink-2) 100%);
  border-radius: 0 0 4px 4px; transform: translateZ(10px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, .6), inset 0 -6px 0 var(--ci-night), inset 2px 0 0 rgba(255, 255, 255, .07);
}
.key.down { transform: translateZ(-3px) rotateX(-3deg); }
.key.w.down {
  background-image: linear-gradient(180deg, var(--ci-sand), var(--ci-ivory) 70%, var(--ci-gold-l));
  box-shadow: inset 0 -3px 0 var(--ci-line), 0 0 30px rgba(201, 162, 107, .55);
}
.key.b.down {
  transform: translateZ(5px) rotateX(-3deg);
  background-image: linear-gradient(180deg, var(--ci-night), var(--ci-night-2) 70%, var(--ci-bronze-d));
  box-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 0 22px rgba(201, 162, 107, .6);
}
.piano-ui { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 10px; }
.ton-schalter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill); background: rgba(26, 21, 17, .6); border: 1px solid rgba(201, 162, 107, .45);
  color: var(--color-on-dark-2); font-size: 1rem; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.ton-schalter:hover { background-color: rgba(201, 162, 107, .18); }
.ton-schalter[aria-pressed="true"] { background-color: var(--ci-bronze); border-color: transparent; color: var(--color-on-accent); }
.ton-symbol { font-size: 1.125rem; line-height: 1; }

/* Block 3: Weg in drei Etappen als Schiene (Gesang: Punkte-Karten) */
.weg-kopf .duo-text > h2 { margin-top: 0; }
.etappen { list-style: none; counter-reset: e; position: relative; display: grid; gap: 28px; margin-top: clamp(44px, 6vw, 80px); }
.etappen::before { /* Achse */
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--ci-gold);
}
.etappen li { position: relative; padding-left: 80px; color: var(--color-text-2); }
.etappen li::before {
  counter-increment: e; content: counter(e, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-bg); border: 1px solid var(--ci-gold);
  font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; color: var(--color-accent);
}
.etappen li strong { display: block; margin-bottom: 8px; font-family: var(--font-serif); font-weight: 500; font-size: 1.375rem; line-height: 1.25; color: var(--color-text); }
@media (min-width: 860px) {
  .etappen { grid-template-columns: repeat(3, 1fr); gap: 44px; }
  .etappen::before { left: 28px; right: 8%; top: 28px; bottom: auto; width: auto; height: 1px; }
  .etappen li { padding: 84px 0 0; }
}
.weg-fuss { display: grid; gap: 28px 56px; align-items: center; margin-top: clamp(44px, 6vw, 72px); }
@media (min-width: 1000px) { .weg-fuss { grid-template-columns: minmax(0, 1fr) auto; } }
.weg-fuss .capsule { margin: 0; max-width: 820px; }
.weg-fuss .cta-zwischen { margin-top: 0; }

/* Block 4: Lehrer mit Zitat (gerade gesetzt, Goldstrich; Gesang: Kundenstimme kursiv mit Bronze-Linie) */
.zitat-ivan { margin: 30px 0 24px; }
.zitat-ivan blockquote { font-family: var(--font-serif); font-size: clamp(1.375rem, 2.5vw, 1.875rem); line-height: 1.35; color: var(--color-text); }
.zitat-ivan blockquote::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 18px; background: var(--ci-gold); }
.zitat-ivan figcaption { margin-top: 14px; font-size: var(--fs-small); font-weight: 600; color: var(--color-text-2); }

/* Block 5: vier Einstiege — Kinder mit Bild, zwei Karten, Fortgeschrittene mit Bild */
.media-kind { max-width: 400px; }
.einstieg-karten { list-style: none; display: grid; gap: 20px; margin: clamp(56px, 8vw, 104px) 0; }
@media (min-width: 800px) { .einstieg-karten { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (hover: hover) { .einstieg-karte:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.einstieg-karte {
  position: relative; padding: 38px 32px 32px; border-radius: var(--radius); background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.einstieg-karte::before { /* Akzent: eine angeschlagene Taste */
  content: ""; position: absolute; left: 32px; top: 0; width: 22px; height: 14px; border-radius: 0 0 4px 4px; background: var(--ci-bronze);
}
.einstieg-karte h2 { margin-bottom: 14px; font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.22; }
.einstieg-karte p { color: var(--color-text-2); }
@media (hover: hover) { .einstieg-karte:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }

/* Block 6: FAQ zentriert (Gesang: Kopf links, sticky) */
.faq-klavier .sec-head { margin-inline: auto; text-align: center; }
.faq-klavier .faq { margin-inline: auto; }

/* Block 8: Abschluss mit stiller Tasten-Linie statt Goldlinie */
.tasten-linie--fuss { width: 180px; margin: 0 auto 34px; }

/* ── 3 Zustaende auf dunklem Grund ───────────────────────────────────── */
.klavier-buehne .chip:focus-visible, .ton-schalter:focus-visible { outline-color: var(--color-on-dark-2); }

/* ── 4 Lesegroessen klein (immer zuletzt) ────────────────────────────── */
@media (max-width: 899px) {
  .media-kind { max-width: 300px; }
  .klavier-stage { min-height: 280px; padding-bottom: 72px; }
  .piano { width: 96vw; }
  .keys { height: 200px; }
}
@media (max-width: 699px) {
  .einstieg-karte { padding: 34px 22px 26px; }
  .einstieg-karte::before { left: 22px; }
  .etappen li strong { font-size: 1.25rem; }
}
