/* giuseppegrifo.com im Papierlook: anthrazitfarbener Karton als Grund,
   darauf gerissene und geschnittene Papierstücke in kräftigen Farben.
   Die Risskanten setzt papier.js (--riss als clip-path, .kante je Abschnitt). */

:root {
  --kohle: #25272b;
  --kohle-tief: #191b1e;
  --kohle-hell: #3a3d43;
  --blatt: #f6eedc;
  --blatt-hell: #fff9ea;
  --pack: #d3b281;
  --rot: #c4432a;
  --rot-tief: #96301b;
  --senf: #f4b62e;
  --petrol: #186f70;
  --gruen: #7fa650;
  --tinte: #1e1f22;
  --hell: #fff6e0;
  --riss: none;

  /* Diese Namen nutzt der KÜNI-Begleiter (assets/kueni-begleiter.css) */
  --papier: #f6eedc;
  --papier-2: #eadfc8;
  --karte: #fff9ea;
  --text: #2a2b2e;
  --text-leise: #5a564d;
  --linie: #d8cbb0;
  --akzent: #a8371f;
  --akzent-hell: #f4b62e;
  --auf-akzent: #fff;
  --dunkel: #191b1e;
  --dunkel-2: #25272b;
  --dunkel-text: #f6eedc;
  --dunkel-leise: #bdb5a3;
  --schatten: 0 1px 2px rgba(0, 0, 0, .2), 0 16px 30px -12px rgba(0, 0, 0, .5);
  --rund: 6px;
  --schrift-titel: 'Fraunces', Georgia, serif;
  --schrift-text: 'IBM Plex Sans', system-ui, sans-serif;
  --schrift-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --schrift-hand: 'Caveat', 'Segoe Print', cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--kohle); color: var(--blatt);
  font: 400 18px/1.65 var(--schrift-text); overflow-x: clip;
}
/* Körnung über allem: macht aus Farbflächen Papier und Karton */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url(assets/papier-korn.png); opacity: .5;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.1; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--senf); outline-offset: 3px; }
.band--senf :focus-visible, .band--pack :focus-visible, .stueck :focus-visible, .nav :focus-visible { outline-color: var(--tinte); }

.rahmen { width: min(100% - 36px, 1080px); margin-inline: auto; }
.hand { font-family: var(--schrift-hand); font-weight: 700; line-height: 1.1; }
.klein { font-size: 15.5px; line-height: 1.5; opacity: .82; }
.ku { color: #006277; font-weight: 700; }

.sprunglink {
  position: fixed; left: 12px; top: -80px; z-index: 99; padding: 12px 16px;
  background: var(--senf); color: var(--tinte); font-weight: 600;
}
.sprunglink:focus { top: 12px; }

/* Farben der Kapitel: dieselbe Farbe im Menü, in der Übersicht und im Abschnitt */
.f-rot { --f: var(--rot); --auf: var(--hell); }
.f-senf { --f: var(--senf); --auf: var(--tinte); }
.f-petrol { --f: var(--petrol); --auf: var(--hell); }
.f-pack { --f: var(--pack); --auf: var(--tinte); }
.f-gruen { --f: var(--gruen); --auf: var(--tinte); }
.f-blatt { --f: var(--blatt); --auf: var(--tinte); }

/* ---------- Streifen oben: zeigt den Scrollstand in der Farbe des Kapitels ---------- */
.fortschritt {
  position: fixed; left: 0; top: 0; z-index: 95; width: 100%; height: 5px;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: var(--kap, var(--senf)); transition: background-color .4s;
}
[data-kap="rot"] { --kap: #e2573b; }
[data-kap="petrol"] { --kap: #2ba6a6; }
[data-kap="pack"] { --kap: var(--pack); }
[data-kap="gruen"] { --kap: var(--gruen); }

/* ---------- Kopfleiste ---------- */
.leiste {
  position: sticky; top: 0; z-index: 80; background: rgba(25, 27, 30, .97);
  box-shadow: 0 1px 0 var(--kohle-hell), 0 10px 24px -14px rgba(0, 0, 0, .8);
}
.leiste__innen { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; }
.marke { display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; font: 600 20px/1 var(--schrift-titel); color: var(--blatt-hell); text-decoration: none; }
.marke__zeichen { flex: none; }
.menue-knopf {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 3px; cursor: pointer; rotate: 1.5deg;
  background: var(--blatt); color: var(--tinte); font: 600 16px/1 var(--schrift-text);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .4), 0 8px 14px -6px rgba(0, 0, 0, .6);
}
.nav {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px 18px 16px;
  background: var(--blatt-hell); color: var(--tinte); rotate: -.4deg;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 30px 50px -10px rgba(0, 0, 0, .75);
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.leiste.offen .nav { display: block; }
.nav > a {
  display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 6px 2px;
  font: 600 21px/1.2 var(--schrift-titel); text-decoration: none; border-bottom: 1.5px dashed var(--linie);
}
.nav > a::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--f); rotate: -8deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.nav__draht { display: grid; gap: 2px; padding-top: 10px; }
.nav__draht a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; }
.nav__draht svg { width: 20px; height: 20px; color: var(--akzent); }

@media (min-width: 1020px) {
  .menue-knopf, .nav__draht { display: none; }
  .nav { display: flex; position: static; gap: 4px 22px; padding: 0; background: none; color: var(--blatt); rotate: none; box-shadow: none; overflow: visible; }
  .nav > a { min-height: 44px; padding: 0; gap: 8px; font: 500 16px/1 var(--schrift-text); border: 0; }
  .nav > a::before { width: 9px; height: 9px; }
  .nav > a:hover, .nav > a[aria-current] { text-decoration: underline; text-decoration-color: var(--f); text-decoration-thickness: 3px; text-underline-offset: 7px; }
}

/* ---------- Abschnitte ---------- */
main > section { position: relative; padding: clamp(64px, 10vw, 124px) 0; background-color: var(--bg); --bg: var(--kohle); --faser: #4b4e55; --satz: var(--senf); }
.start, .grund { background-image: radial-gradient(110% 70% at 20% 0, rgba(255, 246, 224, .08), transparent 62%); }
.band { background-image: radial-gradient(120% 80% at 50% 0, rgba(255, 255, 255, .1), transparent 60%); --faser: #fffbf0; }
.band--rot { --bg: var(--rot); color: var(--hell); --satz: #ffd978; }
.band--petrol { --bg: var(--petrol); color: var(--hell); --satz: #ffd978; }
.band--pack { --bg: var(--pack); color: var(--tinte); --satz: var(--rot-tief); }
.band--senf { --bg: var(--senf); color: var(--tinte); --satz: var(--rot-tief); }

/* Risskante: liegt über dem Ende des vorigen Abschnitts */
.kante { position: absolute; left: 0; top: -27px; width: 100%; height: 28px; z-index: 3; display: block; pointer-events: none; filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, .35)); }
.kante .faser { fill: var(--faser); }
.kante .flaeche { fill: var(--bg); }

/* Kapitelname groß, der Leitsatz als Handschrift darunter */
.titel { margin-bottom: clamp(28px, 5vw, 48px); }
.titel h2 { font-size: clamp(40px, 24px + 4.6vw, 84px); letter-spacing: -.02em; line-height: 1; }
.titel__satz { display: inline-block; margin-top: 10px; font-size: clamp(30px, 24px + 1.8vw, 46px); color: var(--satz); rotate: -1.6deg; transform-origin: 0 50%; }
.vorspann { max-width: 60ch; font-size: clamp(19px, 17px + .5vw, 22px); line-height: 1.55; margin-bottom: clamp(32px, 5vw, 52px); }
.fliess { max-width: 62ch; }
.fliess > * + * { margin-top: 1em; }
.fliess h3 { font-size: clamp(28px, 24px + 1vw, 36px); }

.zwei { display: grid; gap: clamp(32px, 6vw, 64px); align-items: center; }
.paar { display: grid; gap: 28px; margin-top: clamp(44px, 7vw, 80px); }
@media (min-width: 820px) {
  .zwei { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .zwei--ueber { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .paar { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
}

/* ---------- Papierstücke: gerissener Rand, leicht schief, werfen Schatten ---------- */
.stueck {
  position: relative; isolation: isolate; display: block; margin: 0; padding: clamp(22px, 5vw, 36px);
  color: var(--tinte); --akzent: #a8371f;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)) drop-shadow(0 14px 16px rgba(0, 0, 0, .3));
}
.stueck::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stueck, var(--blatt)); clip-path: var(--riss); }
.stueck--pack { --stueck: var(--pack); }
.stueck--senf { --stueck: var(--senf); }
.stueck--gruen { --stueck: var(--gruen); }
.stueck h3 { font-size: clamp(24px, 21px + .8vw, 29px); margin-bottom: 10px; }
.schief-l { rotate: -.9deg; }
.schief-r { rotate: .8deg; }
.randnotiz { display: inline-block; margin-bottom: 4px; font-size: 25px; color: var(--akzent); rotate: -2deg; }
.zeichen { display: block; width: 92px; height: 46px; margin-bottom: 12px; }

/* Zettel mit Klebestreifen */
.zettel { margin-top: 30px; }
.zettel::after, .foto::before {
  content: ""; position: absolute; left: 50%; top: -13px; z-index: 2; width: 104px; height: 28px; margin-left: -52px;
  background: rgba(244, 182, 46, .88); rotate: -3deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.zettel--l { rotate: -1.4deg; }
.zettel--r { rotate: 1.2deg; }
.zettel--r::after { background: rgba(196, 67, 42, .85); rotate: 4deg; }
blockquote.zettel { font-size: clamp(31px, 26px + 1.4vw, 42px); line-height: 1.12; }

/* Foto wie ein Abzug, mit Klebestreifen befestigt */
.foto {
  position: relative; margin: 0 auto; width: min(100%, 420px); padding: 10px; background: #fffdf6;
  rotate: calc(var(--dreh, -2deg) + var(--schwung, 0deg));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 22px 30px -8px rgba(0, 0, 0, .55);
}
.foto--r { --dreh: 1.8deg; }
.foto--r::before { rotate: 3deg; background: rgba(255, 246, 224, .8); }
.foto--quer { width: 100%; }
.foto figcaption { padding: 6px 4px 0; font-size: 27px; color: var(--tinte); text-align: center; }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px;
  border-radius: 3px; background: var(--k, var(--senf)); color: var(--kt, var(--tinte));
  font: 600 17px/1.2 var(--schrift-text); text-decoration: none; text-align: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 12px 18px -8px rgba(0, 0, 0, .55);
  transition: translate .12s, box-shadow .12s;
}
.knopf:hover { translate: 0 -2px; }
.knopf:active, a:active > .spiele__text .knopf { translate: 0 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.knopf--blatt { --k: var(--blatt); }
.knopf--petrol { --k: var(--petrol); --kt: var(--hell); }
.knopf--kohle { --k: var(--kohle); --kt: var(--blatt); }
.stueck .knopf, .welt .knopf { margin-top: 18px; }

.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 17px/1.3 var(--schrift-text); color: var(--akzent);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* ---------- Start ---------- */
main > .start { padding-top: clamp(36px, 6vw, 72px); }
.start__raster { display: grid; gap: 34px; }
.start__foto { margin: 6px 0 0 6px; width: min(62vw, 250px); --dreh: -3deg; }
.start h1 { font-size: clamp(54px, 22px + 9vw, 118px); line-height: .96; letter-spacing: -.025em; color: var(--blatt-hell); }
.start__rolle { margin: 12px 0 22px; font-size: clamp(34px, 26px + 2.6vw, 58px); color: var(--senf); rotate: -2deg; transform-origin: 0 50%; }
.start__lead { max-width: 52ch; margin-bottom: 26px; font-size: clamp(19px, 17px + .5vw, 22px); line-height: 1.55; }

.mappe__titel { margin-bottom: 14px; font-size: 30px; color: var(--pack); rotate: -1.5deg; transform-origin: 0 50%; }
.mappe__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mappe__liste li { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)) drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.mappe__liste li:nth-child(odd) { margin-right: 18px; rotate: -.5deg; }
.mappe__liste li:nth-child(even) { margin-left: 18px; rotate: .6deg; }
.streifen {
  display: block; padding: 13px 20px 14px; min-height: 56px; background: var(--f); color: var(--auf);
  clip-path: var(--riss); text-decoration: none; transition: translate .15s;
}
.streifen b { display: block; font: 600 22px/1.2 var(--schrift-titel); }
.streifen span { display: block; font-size: 15.5px; line-height: 1.4; }
.streifen:hover, .streifen:focus-visible { translate: 8px 0; }

@media (min-width: 700px) {
  .mappe__liste { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .mappe__liste li:nth-child(n) { margin: 0; }
}
@media (min-width: 900px) {
  .start__raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px 64px; }
  .start__text { grid-column: 1; grid-row: 1; }
  .start__foto { grid-column: 2; grid-row: 1; width: min(100%, 380px); margin: 0 auto; --dreh: 3deg; }
  .mappe { grid-column: 1 / -1; }
  .mappe__liste { grid-template-columns: repeat(3, 1fr); }
}

/* Auftritt beim Laden: die Teile landen nacheinander auf dem Tisch */
@media (prefers-reduced-motion: no-preference) {
  .js .start__foto, .js .start h1, .js .start__rolle, .js .start__lead, .js .start .knoepfe, .js .mappe__titel, .js .mappe__liste li {
    animation: landen .7s cubic-bezier(.2, .9, .3, 1.15) backwards;
  }
  .js .start h1 { animation-delay: .12s; }
  .js .start__rolle { animation-delay: .3s; }
  .js .start__lead { animation-delay: .42s; }
  .js .start .knoepfe { animation-delay: .5s; }
  .js .mappe__titel { animation-delay: .6s; }
  .js .mappe__liste li:nth-child(1) { animation-delay: .68s; }
  .js .mappe__liste li:nth-child(2) { animation-delay: .76s; }
  .js .mappe__liste li:nth-child(3) { animation-delay: .84s; }
  .js .mappe__liste li:nth-child(4) { animation-delay: .92s; }
  .js .mappe__liste li:nth-child(5) { animation-delay: 1s; }
  .js .mappe__liste li:nth-child(6) { animation-delay: 1.08s; }
  @keyframes landen { from { opacity: 0; translate: 0 -26px; scale: 1.06; } }

  /* Leitsätze schreiben sich, sobald sie ins Bild kommen */
  .js .titel__satz { clip-path: inset(-20% 100% -20% -5%); transition: clip-path 1s cubic-bezier(.4, 0, .3, 1) .15s; }
  .js .titel__satz.da { clip-path: inset(-20% -5% -20% -5%); }
}

/* ---------- Musik: Handpan aus Papier ---------- */
.pan { width: min(100%, 420px); margin-inline: auto; text-align: center; }
.pan__bild { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)) drop-shadow(0 24px 26px rgba(0, 0, 0, .5)); -webkit-tap-highlight-color: transparent; user-select: none; }
.pan__schale { fill: var(--senf); }
.pan__rand { fill: none; stroke: #d8960c; stroke-width: 3; }
.pan__naht { fill: none; stroke: rgba(30, 31, 34, .4); stroke-width: 2.2; stroke-dasharray: 4 9; stroke-linecap: round; }
.feld { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .35)); outline: none; }
.feld > :first-child { fill: var(--hell); transition: fill .5s; }
.feld__kern { fill: rgba(30, 31, 34, .17); }
.feld--ding > :first-child { fill: var(--rot); }
.feld--ding .feld__kern { fill: var(--hell); }
.feld.an { transform: scale(1.13); }
.feld.an > :first-child { fill: #ff8a5c; transition: none; }
.feld--ding.an > :first-child { fill: #ff6a45; }
.feld:focus-visible > :first-child { stroke: var(--tinte); stroke-width: 4; }
.pan__hinweis { margin-top: 16px; font-size: 30px; color: var(--senf); rotate: -2.5deg; }
.hoerprobe audio { display: block; width: 100%; margin-top: 14px; }
/* Solange die Aufnahme läuft, leuchten die Tonfelder der Reihe nach */
@media (prefers-reduced-motion: no-preference) {
  .spielt .feld { animation: klingen 3.6s infinite; }
  .spielt .pan__bild > g:nth-of-type(1) .feld { animation-delay: .4s; }
  .spielt .pan__bild > g:nth-of-type(2) .feld { animation-delay: .8s; }
  .spielt .pan__bild > g:nth-of-type(3) .feld { animation-delay: 1.2s; }
  .spielt .pan__bild > g:nth-of-type(4) .feld { animation-delay: 1.6s; }
  .spielt .pan__bild > g:nth-of-type(5) .feld { animation-delay: 2s; }
  .spielt .pan__bild > g:nth-of-type(6) .feld { animation-delay: 2.4s; }
  .spielt .pan__bild > g:nth-of-type(7) .feld { animation-delay: 2.8s; }
  .spielt .pan__bild > g:nth-of-type(8) .feld { animation-delay: 3.2s; }
  @keyframes klingen { 0%, 22%, 100% { transform: none; } 8% { transform: scale(1.1); } }
}

/* ---------- Joe Unbound und Awakening ---------- */
.welt__kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.welt__kopf h3 { margin: 0; }
.welt__profil { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fffdf6; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); rotate: -4deg; }
.welt__motto { margin-bottom: 12px; font-size: 29px; color: var(--akzent); }
.welt--awakening h3 { margin-top: 30px; font-size: clamp(28px, 24px + 1vw, 36px); }
.welt--awakening .klein { margin: 2px 0 12px; }

/* ---------- Über mich ---------- */
.fakten { list-style: none; padding-top: 30px; padding-bottom: 20px; }
.fakten li { padding: 11px 0; border-bottom: 1.5px dashed rgba(30, 31, 34, .28); font-size: 16.5px; line-height: 1.4; }
.fakten li:last-child { border-bottom: 0; }
.fakten b { display: block; font: 600 23px/1.2 var(--schrift-titel); }

.unter { margin-top: clamp(60px, 9vw, 104px); }
@media (min-width: 980px) {
  .weiter { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: start; }
  .weiter #buecher { position: sticky; top: 110px; }
}
.unter__titel { font-size: clamp(29px, 23px + 2vw, 44px); margin-bottom: 12px; }
.unter__lead { max-width: 60ch; margin-bottom: 32px; }

/* Der Weg ist eine echte Reihenfolge: gestichelte Linie, die sich beim Scrollen füllt */
.weg { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; max-width: 720px; }
.weg::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 6px; border-left: 3px dashed rgba(30, 31, 34, .45); }
.weg::after { content: ""; position: absolute; left: 9px; top: 12px; bottom: 6px; width: 3px; background: var(--tinte); transform-origin: 50% 0; transform: scaleY(var(--zeit, 1)); }
.weg li { position: relative; padding-bottom: 34px; }
.weg li:last-child { padding-bottom: 0; }
.weg li::before { content: ""; position: absolute; left: -36px; top: 6px; z-index: 1; width: 21px; height: 21px; border-radius: 50%; background: var(--blatt-hell); border: 3px solid var(--tinte); }
.weg .weg__heute::before { background: var(--rot); }
.weg__zeit { display: block; font-size: 27px; color: var(--rot-tief); }
.weg h4 { font-size: clamp(22px, 20px + .6vw, 26px); margin: 2px 0 4px; }
.weg__ort { font-weight: 500; opacity: .85; }
.weg__preis { display: inline-block; margin-top: 12px; padding: 8px 14px; background: var(--rot); color: var(--hell); font-weight: 600; font-size: 15.5px; line-height: 1.4; rotate: -.8deg; box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .4); }

/* Bücher liegen als Stapel */
.stapel-buecher { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; max-width: 560px; }
.buch {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  padding: 13px 18px 14px 16px; background: var(--f); color: var(--auf);
  border-left: 12px solid rgba(0, 0, 0, .22); border-radius: 2px 5px 5px 2px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 8px 12px -6px rgba(0, 0, 0, .45);
}
.buch b { font: 600 22px/1.2 var(--schrift-titel); }
.buch span { font-size: 15.5px; }
.buch--petrol { --f: var(--petrol); --auf: var(--hell); margin-right: 26px; }
.buch--senf { --f: var(--senf); --auf: var(--tinte); margin-left: 20px; background-color: #f7c348; }
.buch--rot { --f: var(--rot); --auf: var(--hell); margin-right: 10px; margin-left: 8px; }
.buch--gruen { --f: #55793a; --auf: var(--hell); margin-left: 28px; }

/* ---------- Gebaut mit KI: Karteikarten zum Aufklappen ---------- */
.kartei__hinweis { margin: -14px 0 16px; font-size: 27px; color: var(--senf); rotate: -1.5deg; transform-origin: 0 50%; }
.kartei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 820px; }
@media (min-width: 980px) {
  .bau { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
  .bau .spiele { position: sticky; top: 110px; margin-top: 0; grid-template-columns: 1fr; }
  .bau .spiele__bild { width: 170px; margin-inline: auto; }
}
.karte { padding: 0; }
.karte:nth-child(odd) { rotate: -.35deg; }
.karte:nth-child(even) { rotate: .3deg; }
.karte[open] { rotate: none; }
.karte summary { display: grid; grid-template-columns: 62px minmax(0, 1fr) 34px; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.karte summary::-webkit-details-marker { display: none; }
.karte__daumen { width: 62px; height: 62px; object-fit: cover; object-position: 50% 0; border: 3px solid #fff; rotate: -3deg; box-shadow: 0 3px 7px rgba(0, 0, 0, .35); }
.karte__daumen--dunkel { background: #0b1f2e; }
.karte__name b { display: block; font: 600 clamp(20px, 18px + .6vw, 24px)/1.2 var(--schrift-titel); }
.karte__name > span { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.4; color: var(--text-leise); }
.karte__auf { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--tinte); }
.karte__auf::before, .karte__auf::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15.5px; height: 3px; background: var(--senf); transition: rotate .25s; }
.karte__auf::after { rotate: 90deg; }
.karte[open] .karte__auf::after { rotate: 0deg; }
.karte__innen { padding: 6px 18px 26px; border-top: 1.5px dashed rgba(30, 31, 34, .28); margin-top: 2px; }
.karte__innen > p { max-width: 62ch; margin-top: 14px; }
.karte__stand { font-size: 16px; }
.karte__links { display: flex; flex-wrap: wrap; gap: 2px 26px; margin-top: 10px; }

.spiele { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 820px; margin-top: 34px; text-decoration: none; rotate: .5deg; }
.spiele__bild { width: 96px; height: auto; rotate: -6deg; }
.spiele__text > span:not(.knopf) { display: block; font-size: 17px; line-height: 1.55; }
.spiele__titel { display: block; margin-bottom: 8px; font: 600 clamp(24px, 21px + .8vw, 30px)/1.15 var(--schrift-titel); }
.spiele .ku { color: inherit; }
@media (min-width: 620px) { .spiele { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; } .spiele__bild { width: 150px; } }

/* Bildleisten in den Karten */
.galerie { position: relative; margin: 14px 0 10px; min-width: 0; }
.galerie__spur { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.galerie__spur::-webkit-scrollbar { display: none; }
.galerie__bild { flex: none; margin: 0; scroll-snap-align: start; width: min(58vw, 230px); }
.galerie--quer .galerie__bild { width: min(100%, 560px); }
.galerie__bild img { display: block; width: 100%; height: auto; border: 1px solid rgba(30, 31, 34, .25); border-radius: 3px; }
.galerie__bild figcaption, .bildtext { font-size: 14.5px; line-height: 1.5; color: var(--text-leise); }
.galerie__bild figcaption { margin-top: 9px; }
.bildtext { margin: 10px 0 0; }
.bildtext__stand { display: block; margin-top: 3px; }
.galerie__oeffnen { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.galerie__leiste { display: flex; align-items: center; gap: 8px; }
.galerie__punkte { display: flex; flex: 1; }
.galerie__punkte button { display: grid; place-items: center; width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.galerie__punkte button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(30, 31, 34, .28); transition: width .3s, background-color .3s; }
.galerie__punkte button.ist-aktiv::before { width: 20px; border-radius: 9px; background: var(--akzent); }
.galerie__pfeil { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--tinte); border-radius: 50%; background: none; color: var(--tinte); font-size: 18px; cursor: pointer; }
.galerie__pfeil:disabled { opacity: .3; cursor: default; }

.graph { position: relative; margin: 16px 0 0; max-width: 480px; aspect-ratio: 720 / 780; overflow: hidden; border-radius: 3px;
  background: radial-gradient(60% 50% at 50% 48%, #0f4a5c, transparent 70%), linear-gradient(160deg, #0b1f2e, #06111b); }
.graph__buehne { position: absolute; inset: 0; }
.graph__buehne > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph__hirn { object-fit: cover; transform: scale(1.1); opacity: .32; }
.graph__netz, .graph__wachsen { filter: brightness(1.45) contrast(1.3) drop-shadow(0 0 3px rgba(255, 255, 255, .55)); }
.graph__buehne > .graph__netz, .graph__buehne > .graph__wachsen { transform: translateX(6.2%); }
.graph__netz { transition: opacity .8s; }
.graph--laeuft .graph__netz { opacity: 0; transition: none; }
.graph__nochmal { position: absolute; right: 10px; bottom: 10px; min-height: 44px; padding: 8px 14px; border-radius: 3px; cursor: pointer; font: 500 14px/1 var(--schrift-text); color: #d9f3f5; background: rgba(6, 17, 27, .8); border: 1px solid #2f5566; }

.grossbild { max-width: min(94vw, 900px); max-height: 94vh; padding: 0; border: 0; background: var(--kohle-tief); color: var(--blatt); overflow: auto; overscroll-behavior: contain; }
.grossbild::backdrop { background: rgba(10, 11, 13, .86); }
.grossbild img { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: contain; }
.grossbild p { padding: 10px 16px 14px; font-size: 15px; }
.grossbild__zu { position: sticky; float: right; top: 8px; margin: 8px 8px -52px 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--senf); color: var(--tinte); font-size: 17px; cursor: pointer; }

/* ---------- Kontakt ---------- */
.wege { display: grid; gap: 20px; }
.weg-karte { display: flex; align-items: center; gap: 18px; padding: 20px 22px; text-decoration: none; font-size: 17px; line-height: 1.35; transition: translate .15s; }
.weg-karte:hover { translate: 0 -3px; }
.weg-karte svg { flex: none; width: 52px; height: 52px; padding: 11px; border-radius: 50%; background: var(--tinte); color: var(--senf); }
.weg-karte:nth-child(2) svg { color: #ff8a5c; }
.weg-karte:nth-child(3) svg { color: #5fd0cf; }
.weg-karte b { display: block; font: 600 25px/1.15 var(--schrift-titel); }
@media (min-width: 820px) { .wege { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- Fuß ---------- */
.fuss { position: relative; background: var(--kohle-tief); color: var(--dunkel-leise); font-size: 15.5px; padding: 30px 0 110px; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
.fuss nav { display: flex; gap: 22px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blatt); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Abstand der Hörprobe zum Text darüber und darunter */
.fliess > .hoerprobe { margin-top: 28px; margin-bottom: 22px; }

/* Nächster Schritt am Ende eines Kapitels */
.weiter-frage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(36px, 6vw, 56px); }
.weiter-frage .hand { font-size: clamp(30px, 26px + 1vw, 38px); color: var(--satz); rotate: -1.5deg; }
.pan__hinweis { margin: 0 0 14px; }
