/* Werkstatt-Seiten (Bastl, Instrumente, Microcosm). Baut auf basis.css + unterseiten.css auf. */

:root { --salbei: #a9ad9e; }

/* ---------- Kleinkram ---------- */
.jk-zurueck { display: inline-block; margin-bottom: 22px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.jk-zurueck:hover { color: var(--rust); }
.jk-chips { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 28px 0 0; padding: 0; list-style: none; clip-path: inset(-14px -8px -14px -6px); } /* Punkt vor dem ersten Chip einer Zeile liegt links außerhalb → abgeschnitten */
.jk-chips li { font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; color: var(--ink-muted); }
.jk-chips li + li { position: relative; }
.jk-chips li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--tan); }
.jk-chips a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rust); }
.jk-chips a:hover { color: var(--rust); }
.jk-unterzeile { display: inline-block; font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--rust); margin-left: 12px; letter-spacing: 0; text-wrap: balance; } /* bricht nur als Ganzes um */
.jk-bildtext { display: block; margin-top: 12px; font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--ink-muted); text-wrap: balance; }
.jk-text p.jk-zitat { max-width: 608px; padding-left: 20px; border-left: 1px solid var(--rust); font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }

/* Schräg gelegtes Foto wie ein Abzug (Haarlinie statt Schatten); beim Hover legt es sich ein Stück gerade */
.jk-schief { --jk-schief: -3deg; display: block; background: var(--paper); padding: 10px; outline: 1px solid var(--line-strong); transform: rotate(var(--jk-schief)); }
.jk-schief--rechts { --jk-schief: 2.5deg; }
@media (prefers-reduced-motion: no-preference) {
  .jk-schief { transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
  .jk-schief:focus-within { transform: rotate(calc(var(--jk-schief) * .3)); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .jk-schief:hover { transform: rotate(calc(var(--jk-schief) * .3)); } }
.jk-schief img { display: block; width: 100%; height: auto; }
.jk-seitenkopf__bild--breit { max-width: 640px; }
.jk-mini-portrait--quer { width: 100%; max-width: 560px; margin-top: 40px; }
.jk-mini-portrait--quer img { aspect-ratio: 3 / 2; }

/* Collage im Seitenkopf (Microcosm, Lousa) */
.jk-collage { position: relative; width: 100%; max-width: 640px; padding: 40px 0 0; }
.jk-collage__gross { width: 82%; }
.jk-collage__klein { position: absolute; top: 0; right: 0; width: 30%; }
.jk-collage__gross img, .jk-collage__klein img { aspect-ratio: auto; }
.jk-collage--flaeche { padding: 48px; background: var(--tan); }
.jk-collage--flaeche .jk-collage__klein { top: 24px; right: 24px; }

/* ---------- Bänder ---------- */
.jk-band { margin-top: 140px; padding: 120px 0 130px; }
.jk-band--hell { background: var(--paper-deep); }
.jk-band--hell .jk-rahmen { background: var(--paper); }
.jk-band--dunkel { background: var(--inverse-surface); color: var(--inverse-ink); }
.jk-band--dunkel .jk-eyebrow { color: #c48a6e; }
.jk-band--dunkel .jk-ueberschrift, .jk-band--dunkel h3 { color: var(--inverse-ink); }
.jk-band--dunkel .jk-text p, .jk-band--dunkel p { color: var(--inverse-muted); }
.jk-band--dunkel .jk-text a, .jk-band--dunkel .jk-lead a { color: var(--inverse-ink); }
.jk-band--dunkel .jk-labelreihe a { color: var(--inverse-ink); border-color: #c48a6e; }
.jk-band--dunkel .jk-chips li { color: var(--inverse-subtle); }
.jk-band--dunkel .jk-section-title__main { color: var(--inverse-ink); }
.jk-band--dunkel .jk-section-title__accent, .jk-band--dunkel .jk-unterzeile { color: #c48a6e; }
.jk-band--dunkel .jk-bildtext { color: var(--inverse-subtle); }
.jk-band + .jk-band, .jk-band + .jk-foerderung { margin-top: 0; }

/* ---------- Bauschritte ---------- */
.jk-schritte { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px clamp(24px, 4vw, 64px); margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.jk-schritte li:nth-child(3n+2) { margin-top: 80px; }
.jk-schritte li:nth-child(3n) { margin-top: 40px; }
.jk-schritte .jk-rahmen img { aspect-ratio: 3 / 4; }
.jk-schritt__nr { display: block; margin-top: 22px; font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--rust); }
.jk-schritte h3 { margin: 10px 0 8px; font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.1; text-wrap: balance; }
.jk-schritte p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.jk-schritte p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 3px; }
.jk-schritte--ohne-bild { border-top: 1px solid var(--line); padding-top: 8px; }
.jk-schritte--ohne-bild li:nth-child(n) { margin-top: 0; }
/* Fräsbahn: gestrichelte Linie von Schrittnummer zu Schrittnummer (werkstatt.js, ab 901 px) */
.jk-fraesbahn { position: absolute; left: 0; overflow: visible; pointer-events: none; }
.jk-fraesbahn path { fill: none; stroke: var(--rust); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 4 4; }
.jk-bewegung .jk-fraesbahn { clip-path: inset(0 100% 0 0); }
.jk-bewegung .jk-fraesbahn.ist-gezogen { clip-path: inset(0 0 0 0); transition: clip-path 1.8s cubic-bezier(.65, 0, .35, 1) .35s; }

/* ---------- Videos ---------- */
.jk-video { position: relative; display: block; background: #000; }
.jk-video video { display: block; width: 100%; height: auto; }
.jk-video--hoch { max-width: 420px; margin-inline: auto; }
.jk-video-buehne { max-width: 1100px; }
.jk-video-buehne > .jk-bildtext, .jk-video-buehne > .jk-labelreihe { margin-top: 14px; }
.jk-yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: var(--inverse-ink); text-decoration: none; }
.jk-yt img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .3s, transform .4s; }
.jk-yt:hover img { opacity: .5; transform: scale(1.02); }
.jk-yt__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; }
.jk-yt__knopf { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 18px; padding-left: 4px; transition: transform .2s; }
.jk-yt:hover .jk-yt__knopf { transform: scale(1.08); }
.jk-yt__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.jk-yt__hinweis { font-size: 11px; color: rgba(239, 236, 230, .75); }
/* Mit Vorschaubild: Bedienung redaktionell links unten, Text auf ruhiger Fläche (gibt die Bildmitte frei) */
.jk-yt:not(.jk-yt--leer) .jk-yt__play { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: 1fr auto auto; align-items: center; gap: 2px 24px; padding: clamp(14px, 2.4vw, 28px); text-align: left; }
.jk-yt:not(.jk-yt--leer) .jk-yt__play::before { content: ""; grid-column: 2; grid-row: 2 / 4; align-self: stretch; margin: -7px -11px; background: rgba(31, 30, 28, .74); }
.jk-yt:not(.jk-yt--leer) .jk-yt__knopf { grid-column: 1; grid-row: 2 / 4; width: 56px; height: 56px; font-size: 16px; }
.jk-yt:not(.jk-yt--leer) .jk-yt__label { grid-column: 2; grid-row: 2; align-self: end; }
.jk-yt:not(.jk-yt--leer) .jk-yt__hinweis { grid-column: 2; grid-row: 3; align-self: start; color: var(--inverse-muted); }
.jk-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jk-kino { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px clamp(24px, 4vw, 64px); margin-top: 56px; }
.jk-kino__haupt { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; }
.jk-kino h3, .jk-film h3 { margin: 12px 0 8px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.05; text-wrap: balance; }
.jk-kino h3 em, .jk-film h3 em { font-style: italic; }
.jk-kino p, .jk-film p { margin: 0; font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.jk-kino .jk-chips, .jk-film .jk-chips { margin-top: 18px; }
.jk-video-unterschrift { margin-top: 14px; }

/* ---------- Galerie / Werkstattbuch ---------- */
.jk-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; align-items: start; }
.jk-galerie li:nth-child(3n+2) { margin-top: 60px; }
.jk-galerie li:nth-child(3n) { margin-top: 24px; }
.jk-galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jk-galerie--2 li:nth-child(n) { margin-top: 0; }
.jk-galerie--2 li:nth-child(even) { margin-top: 70px; }
.jk-galerie--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.jk-galerie--4 li:nth-child(n) { margin-top: 0; }
.jk-galerie--4 li:nth-child(even) { margin-top: 48px; }
.jk-galerie a { display: block; color: inherit; text-decoration: none; }
.jk-galerie img { display: block; width: 100%; height: auto; }
.jk-galerie a:hover .jk-bildtext { color: var(--rust); }
.jk-galerie--2 li.jk-galerie__breit { grid-column: 1 / -1; margin-top: 0; }
.jk-galerie.jk-galerie--quer-hoch { grid-template-columns: 16fr 9fr; } /* Quer- neben Hochformat: gleich hohe Bilder */
.jk-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.jk-fotos li.jk-fotos__quer { grid-column: span 2; }
.jk-fotos a, .jk-fotos img { display: block; width: 100%; height: 100%; }
.jk-fotos img { object-fit: cover; }

/* Lightbox */
.jk-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: rgba(31, 30, 28, .92); border: 0; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.jk-lightbox::backdrop { background: transparent; }
.jk-lightbox:not([open]) { display: none; } /* „display: flex“ oben würde den geschlossenen Dialog sonst stehen lassen */
.jk-lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.jk-lightbox__zu { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; background: none; color: var(--inverse-ink); font-size: 30px; line-height: 1; cursor: pointer; }
.jk-lightbox__text { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--inverse-muted); }

/* ---------- Holzarten (Karten) ---------- */
.jk-karten3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.jk-karten3 li { position: relative; overflow: hidden; background: var(--paper-deep); padding: 10px 10px 26px; }
.jk-karten3 img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.jk-karten3 .jk-bildtext { margin: 16px 8px 0; }
.jk-karten3 h3 { margin: 6px 8px 8px; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.05; text-wrap: balance; }
.jk-karten3 p { margin: 0 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); text-wrap: balance; }
/* Klopfprobe (werkstatt.js): Karte antippen → Klopfton, die Karte gibt kurz nach, ein Jahresring läuft aus */
.jk-karten3 li.jk-klopfbar { display: flex; flex-direction: column; cursor: pointer; padding-bottom: 12px; }
.jk-klopf { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 40px; margin: auto 8px 0; padding: 8px 0 0; border: 0; background: none; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.jk-klopf span { padding-bottom: 2px; border-bottom: 1px solid var(--rust); transition: color .2s; }
.jk-klopf svg { width: 15px; height: 15px; overflow: visible; fill: none; stroke: var(--rust); stroke-width: 1.2; stroke-linecap: round; }
.jk-klopfbar:hover .jk-klopf span, .jk-klopfbar.ist-geklopft .jk-klopf span { color: var(--rust); }
.jk-klopf-ring { position: absolute; width: 160px; height: 160px; margin: -80px 0 0 -80px; border: 1px solid var(--paper); border-radius: 50%; pointer-events: none; opacity: 0; animation: jk-jahresring 1s cubic-bezier(.22, .61, .36, 1) var(--jk-ring-verz, 0s) forwards; }
.jk-klopf-ring + .jk-klopf-ring { border-color: var(--rust); } /* hell und dunkel wie Jahresringe */
@keyframes jk-jahresring { 0% { opacity: .95; transform: scale(.1); } 55% { opacity: .55; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes jk-anschlag { 0% { transform: none; animation-timing-function: cubic-bezier(.2, .7, .3, 1); } 14% { transform: translateY(2px) scale(.986); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .jk-karten3 li.ist-geklopft { animation: jk-anschlag .5s both; } }
@media (prefers-reduced-motion: reduce) { .jk-klopf-ring { display: none; } }

/* ---------- Definitionsliste (Bedienung, So funktioniert's) ---------- */
.jk-defliste { margin: 0; border-bottom: 1px solid var(--line); }
.jk-defliste div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px 28px; padding: 18px 0; border-top: 1px solid var(--line); }
.jk-defliste dt { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.jk-defliste dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.jk-defliste dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 3px; }
.jk-defliste--raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-bottom: 0; }
.jk-defliste--raster div { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); border-top: 0; padding: 22px 0; }
.jk-defliste--raster div:nth-child(-n+2) { border-top: 1px solid var(--line); }

/* ---------- Signalfluss ---------- */
.jk-fluss { margin-top: 48px; }
.jk-fluss__zeile + .jk-fluss__zeile { margin-top: 40px; }
.jk-fluss__titel { margin: 0 0 14px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inverse-subtle); }
.jk-fluss ol { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin: 0; padding: 0; list-style: none; }
.jk-fluss li { display: flex; align-items: center; }
.jk-fluss li + li::before { content: "→"; padding: 0 16px; color: var(--inverse-subtle); }
.jk-fluss__box { padding: 12px 16px; border: 1px solid rgba(239, 236, 230, .25); }
.jk-fluss__box small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inverse-subtle); }
.jk-fluss__box span { display: block; margin-top: 4px; font-family: var(--font-serif); font-size: 20px; line-height: 1.1; color: var(--inverse-ink); }
.jk-fluss__box--ziel { background: var(--sand); border-color: var(--sand); transform: rotate(-1.5deg); }
.jk-fluss__box--ziel small { color: var(--ink-soft); }
.jk-fluss__box--ziel span { color: var(--ink); }
.jk-fluss__box--salbei { background: var(--salbei); border-color: var(--salbei); }
.jk-fluss__box--salbei small { color: var(--ink-soft); }

/* ---------- Kennzahlen ---------- */
.jk-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 72px 0 0; padding: 32px 0 0; list-style: none; border-top: 1px solid var(--line); }
.jk-zahlen strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--rust); font-variant-numeric: tabular-nums; }
/* Zählwerk (werkstatt.js): feste Breite = Endwert, damit nichts verrutscht */
.jk-zaehler { display: inline-block; white-space: nowrap; text-align: right; } /* rechtsbündig wie ein Zählwerk, die Einheit bleibt stehen */
.jk-zaehler.ist-null { animation: jk-null-ruck .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes jk-null-ruck { from { transform: translateY(-.06em) scale(1.16) rotate(-7deg); } to { transform: none; } }
.jk-zahlen li > span { display: block; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-wrap: balance; }

/* ---------- Kapitel (Microcosm hinter den Kulissen) ---------- */
.jk-kapitel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 110px); align-items: start; padding-top: 120px; }
.jk-kapitel--rechts .jk-kapitel__text { order: 2; }
.jk-kapitel h3 { margin: 20px 0 22px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.jk-kapitel h3 em { font-style: italic; }
.jk-kapitel .jk-eyebrow { font-size: 11px; }

/* ---------- Zeitleiste ---------- */
.jk-zeitleiste { margin: 40px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.jk-zeitleiste li { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 28px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.jk-zeitleiste__wann { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.jk-zeitleiste__was { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; }
.jk-zeitleiste p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.jk-zeitleiste p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 3px; }

/* ---------- Personen (Am Werk) ---------- */
.jk-personen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 8vw, 140px); margin: 0; padding: 0; list-style: none; }
.jk-personen li { width: 100%; max-width: 420px; }
.jk-personen li:nth-child(2) { margin-top: 100px; justify-self: center; }
.jk-personen .jk-rahmen img { aspect-ratio: 2 / 3; }
.jk-personen h3 { margin: 22px 0 6px; font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 1; text-wrap: balance; }
.jk-personen h3 a { color: inherit; text-decoration: none; }
.jk-personen h3 a:hover { color: var(--rust); }
.jk-personen p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Förderung ---------- */
.jk-foerderung { display: flex; align-items: center; gap: 40px; padding: 56px var(--jk-gutter); background: var(--inverse-surface); color: var(--inverse-muted); }
.jk-foerderung img { width: 220px; height: auto; flex: none; }
.jk-foerderung p { margin: 0; max-width: 46em; font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.jk-foerderung a { color: var(--inverse-ink); text-decoration: underline; text-decoration-color: #c48a6e; text-underline-offset: 3px; }

/* ---------- Spielbare Grain Kalimba (übernommen von der WordPress-Seite) ---------- */
.jk-kal-play { position: relative; }
.jk-kal-play img { display: block; width: 100%; height: auto; }
.jk-kal-hinweis { position: relative; margin: 14px 0 0; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); transition: color .3s; }
html:not(.jk-js) .jk-kal-hinweis { display: none; } /* ohne JS ist das Foto nicht spielbar */
.jk-kal-gliss { position: absolute; left: 0; right: 0; top: 50%; margin-top: -.6em; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--rust); opacity: 0; transition: opacity .3s; pointer-events: none; }
.jk-kal-hinweis.ist-gliss { color: transparent; }
.jk-kal-hinweis.ist-gliss .jk-kal-gliss { opacity: 1; }
.jk-kal-feld { position: absolute; pointer-events: auto; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.jk-kal-overlay { position: absolute; z-index: 5; pointer-events: none; }
.jk-kal-tine { position: absolute; padding: 0; margin: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; transform: translateX(-50%); }
.jk-kal-tine::after { content: ""; position: absolute; inset: 0; border-radius: 999px; opacity: 0; background: linear-gradient(180deg, transparent 0%, rgb(255 246 220 / .55) 55%, rgb(221 211 194 / .65) 100%); box-shadow: 0 0 18px rgb(221 211 194 / .55); transition: opacity .35s ease-out; }
.jk-kal-tine:hover::after, .jk-kal-tine.ist-nah::after, .jk-kal-tine:focus-visible::after { opacity: .35; }
.jk-kal-tine:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; } /* Tinte statt Rost: auf Alu und Eiche ≥ 3:1 */
.jk-kal-tine.is-hit::after { opacity: 1; transition: none; }
.jk-kal-grain { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; pointer-events: none; z-index: 6; animation: jk-kal-grain 1.7s ease-out forwards; }
@keyframes jk-kal-grain { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 12% { opacity: 1; transform: translate(calc(var(--dx) * .12), calc(var(--dy) * .12)) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
/* Taster (Klangmodus) und Joystick über dem Foto */
.jk-kal-pad { position: absolute; width: 7.5%; aspect-ratio: 1; padding: 0; margin: 0; border: 0; border-radius: 20%; background: transparent; transform: translate(-50%, -50%) rotate(44deg); cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: scale .12s; }
/* Aktiv: das weiße Silikon leuchtet warm von innen (Färbung) und strahlt etwas über den Rand (Schein) */
.jk-kal-pad::before, .jk-kal-pad::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .35s; pointer-events: none; }
.jk-kal-pad::before { box-shadow: 0 0 14px 4px rgb(255 196 120 / .55), 0 0 4px 1px rgb(255 214 160 / .7); }
.jk-kal-pad::after { background: radial-gradient(circle at 50% 45%, rgb(255 236 200) 0, rgb(255 205 140) 70%, rgb(240 170 100) 100%); mix-blend-mode: multiply; }
.jk-kal-pad:hover::after { opacity: .35; }
.jk-kal-pad[aria-pressed="true"]::before { opacity: 1; }
.jk-kal-pad[aria-pressed="true"]::after { opacity: .85; }
.jk-kal-pad:active { scale: .95; }
.jk-kal-pad:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .jk-kal-pad[aria-pressed="true"]::before { animation: jk-pad-an .6s ease-out; } }
@keyframes jk-pad-an { 0% { opacity: 0; } 35% { opacity: 1; box-shadow: 0 0 22px 8px rgb(255 196 120 / .7), 0 0 4px 1px rgb(255 214 160 / .8); } 100% { opacity: 1; } }
.jk-kal-modus { position: absolute; left: 77%; top: 84%; transform: translate(-50%, 6px); white-space: nowrap; font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.22, .61, .36, 1); }
.jk-kal-modus.ist-da { opacity: 1; transform: translate(-50%, 0); }
.jk-kal-stick { position: absolute; width: 19%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); cursor: grab; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.jk-kal-stick.ist-bewegt { cursor: grabbing; }
.jk-kal-stick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.jk-kal-stick__punkt { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--paper); background: rgb(239 236 230 / .2); box-shadow: 0 0 0 1px rgb(31 30 28 / .45); transform: translate(calc(-50% + var(--sx, 0%) * 2.3), calc(-50% + var(--sy, 0%) * 2.3)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.jk-kal-stick:hover .jk-kal-stick__punkt, .jk-kal-stick.ist-bewegt .jk-kal-stick__punkt, .jk-kal-stick:focus-visible .jk-kal-stick__punkt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .jk-kal-grain { display: none; } .jk-kal-hinweis, .jk-kal-gliss { transition: none; } }

/* ---------- Handy / Tablet ---------- */
@media (min-width: 1200px) {
  .jk-video-buehne { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 32px; align-items: end; max-width: none; }
  .jk-video-buehne > .jk-bildtext, .jk-video-buehne > .jk-labelreihe { margin: 0; padding-top: 14px; border-top: 1px solid rgba(239, 236, 230, .2); }
}
/* Kapitel: Text läuft neben der höheren Galerie mit (nur wenn er sicher ganz in den Bildschirm passt) */
@media (min-width: 1101px) and (min-height: 800px) { .jk-kapitel__text { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 1100px) {
  .jk-kapitel { grid-template-columns: 1fr; }
  .jk-kapitel--rechts .jk-kapitel__text { order: 0; }
  .jk-kapitel .jk-galerie--2 { width: 100%; max-width: 640px; justify-self: end; }
  .jk-kapitel--rechts .jk-galerie--2 { justify-self: start; }
}
@media (max-width: 900px) {
  .jk-band { margin-top: 96px; padding: 80px 0 90px; }
  .jk-schritte, .jk-galerie, .jk-karten3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jk-schritte li:nth-child(n), .jk-galerie li:nth-child(n) { margin-top: 0; }
  .jk-schritte li:nth-child(even), .jk-galerie li:nth-child(even) { margin-top: 40px; }
  .jk-schritte--ohne-bild li:nth-child(n) { margin-top: 0; }
  .jk-schritte--ohne-bild { row-gap: 40px; }
  .jk-fraesbahn { display: none; }
  .jk-galerie--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jk-kino, .jk-kino__haupt, .jk-defliste--raster { grid-template-columns: 1fr; }
  .jk-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .jk-zeitleiste li { grid-template-columns: 1fr; }
  .jk-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .jk-fotos li.jk-fotos__quer { grid-column: 1 / -1; order: 1; }
  .jk-zweispalt .jk-fig { max-width: 520px; }
  .jk-foerderung { flex-direction: column; align-items: flex-start; }
  .jk-video--hoch { margin: 0 auto; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .jk-karten3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .jk-karten3 h3 { font-size: 24px; }
}
@media (max-width: 767px) {
  .jk-schritte, .jk-karten3, .jk-personen { grid-template-columns: 1fr; }
  .jk-schritte li:nth-child(n), .jk-personen li:nth-child(n) { margin-top: 0; }
  .jk-galerie, .jk-galerie--2 { gap: 32px 16px; }
  .jk-defliste div { grid-template-columns: 1fr; }
  .jk-fluss li + li::before { padding: 0 8px; }
  .jk-fluss__box span { font-size: 17px; }
  .jk-collage--flaeche { padding: 24px; }
  .jk-schief { --jk-schief: -1.5deg; }
  .jk-schief--rechts { --jk-schief: 1.25deg; }
  .jk-unterzeile { display: block; margin: 8px 0 0; font-size: 22px; line-height: 1.15; }
  .jk-seitenkopf__bild--breit .jk-kal-play { margin-inline: calc(var(--jk-gutter) * -1); }
  .jk-yt:not(.jk-yt--leer) .jk-yt__play { column-gap: 20px; }
  .jk-yt:not(.jk-yt--leer) .jk-yt__knopf { width: 46px; height: 46px; font-size: 14px; }
  .jk-yt:not(.jk-yt--leer) .jk-yt__hinweis { font-size: 10px; }
}
