/* Seppl-Kachel im Abschnitt „Für deinen Spieltrieb". Papier statt Glas: heller, warmer Grund,
   die Bühne trägt die Farbe. Variablen der Seite (--ink, --gold, --ease) werden mitbenutzt. */
.seppl { --seppl-papier: #f6e9c6; --seppl-zettel: #fdf5dc; --seppl-kante: #c9b27a; --seppl-text: #4b4534;
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.08fr 1fr; background: var(--seppl-papier); color: var(--ink); margin-bottom: clamp(14px,2vw,34px) }
.seppl-buehne { position: relative; overflow: hidden; min-height: 340px; background: #3f9fe0; touch-action: pan-y; cursor: crosshair }
.seppl-buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block }
.seppl-hinweis { position: absolute; z-index: 2; right: 14px; top: 14px; padding: 7px 12px 8px; background: #fdf5dce6; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease) }
.seppl-hinweis.weg { opacity: 0; transform: translateY(-8px) }
.seppl-hinweis .tipp { display: none }
@media (hover: none) { .seppl-hinweis .maus { display: none } .seppl-hinweis .tipp { display: inline } }

.seppl-welten { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px }
.seppl-welten button { appearance: none; border: 0; margin: 0; padding: 9px 12px 10px; text-align: left; font: inherit; color: var(--ink); background: var(--seppl-zettel); cursor: pointer;
  box-shadow: 0 1px 0 var(--seppl-kante), 0 10px 18px -10px #281a0a8c; transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease) }
.seppl-welten b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance }
.seppl-welten span { display: block; margin-top: 2px; font-size: 12.5px; color: #6a5d3c }
.seppl-welten button:hover { transform: translateY(-2px) }
.seppl-welten button[aria-pressed="true"] { background: var(--gold-soft,#f6d58a); transform: translateY(-5px); box-shadow: 0 1px 0 #b98f2a, 0 16px 22px -12px #281a0a99 }
.seppl-welten button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

.seppl-text { padding: clamp(28px,3.6vw,58px); display: flex; flex-direction: column; justify-content: center }
.seppl-text h3 { margin: 0 0 6px; font-size: clamp(32px,3.3vw,48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; text-wrap: balance }
.seppl-text h3 em { font-family: "Instrument Serif",Georgia,serif; font-weight: 400; letter-spacing: -.02em }
.seppl-text p { margin: 14px 0; max-width: 46ch; color: var(--seppl-text) }
.seppl-text .tagline { margin-top: 10px; text-wrap: balance; color: var(--ink); font: italic 26px/1.2 "Instrument Serif",Georgia,serif }
.seppl-text .button { align-self: flex-start; margin-top: 8px; min-height: 50px; font-size: 15px }
.seppl-text .button:hover { background: #2c3432 }
.seppl-fakten { margin: 16px 0 0; font-size: 14px; color: #6a5d3c }

/* Fassung B: die Bühne über die ganze Breite, der Text als Zettel an zwei Schnüren */
.seppl--breit { display: block; background: none }
.seppl--breit .seppl-buehne { aspect-ratio: 2.02; min-height: 430px }
.seppl--breit .seppl-text { position: absolute; z-index: 3; left: clamp(18px,3vw,46px); top: 0; width: min(41%,440px); padding: clamp(24px,2.6vw,38px) clamp(22px,2.6vw,38px) clamp(22px,2.4vw,34px); margin-top: 26px; background: var(--seppl-zettel);
  box-shadow: 0 1px 0 var(--seppl-kante), 0 30px 40px -22px #1a12088c; transform: rotate(-.7deg); transform-origin: 50% -26px }
.seppl--breit .seppl-text:before, .seppl--breit .seppl-text:after { content: ""; position: absolute; top: -27px; width: 2px; height: 30px; background: #5b4326 }
.seppl--breit .seppl-text:before { left: 34px } .seppl--breit .seppl-text:after { right: 34px }
.seppl--breit .seppl-text h3 { font-size: clamp(30px,2.9vw,42px) }
.seppl--breit .seppl-text .tagline { font-size: 24px }
.seppl--breit .seppl-text p { margin: 11px 0 }
.seppl--breit .seppl-welten { left: auto; right: 14px; width: min(56%,660px) }

@media (max-width: 860px) {
  .seppl, .seppl--breit { display: block; background: var(--seppl-papier) }
  .seppl-buehne, .seppl--breit .seppl-buehne { aspect-ratio: 1.12; min-height: 0 }
  .seppl--breit .seppl-text { position: static; width: auto; margin: 0; transform: none; box-shadow: none; background: none; padding: 26px 24px 30px }
  .seppl--breit .seppl-text:before, .seppl--breit .seppl-text:after { display: none }
  .seppl-text { padding: 26px 24px 30px }
  .seppl-welten, .seppl--breit .seppl-welten { left: 10px; right: 10px; bottom: 10px; width: auto; gap: 6px }
  .seppl-welten button { padding: 7px 8px 8px }
  .seppl-welten b { font-size: 12.5px } .seppl-welten span { font-size: 11.5px }
}
@media (max-width: 520px) {
  .seppl { margin-inline: -18px }
  .seppl-welten b { display: none } .seppl-welten span { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center } .seppl-welten button { text-align: center }
}
@media (prefers-reduced-motion: reduce) { .seppl-welten button, .seppl-hinweis { transition: none } .seppl-hinweis { display: none } }

/* Demo-Knopf mit Spielzähler in Schreibschrift (Roland, 23.11.2026: Wahl A; sichtbar erst ab 100, seppl-zaehler.js) und Weg ins Hüttenbuch */
.seppl-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 8px }
.seppl-text .seppl-start .button { margin-top: 0 }
.seppl-text p.seppl-zaehler { margin: 0; color: var(--seppl-text); font: italic 21px/1.1 "Instrument Serif",Georgia,serif }
.seppl-zaehler .zahl { color: var(--ink); font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.01em }
.seppl-buch { appearance: none; display: flex; gap: 10px; align-items: flex-start; align-self: flex-start; margin: 18px 0 0; padding: 0; max-width: 44ch; border: 0; background: none; color: var(--seppl-text); font: inherit; font-size: 15px; line-height: 1.4; text-align: left; cursor: pointer }
.seppl-buch b { color: var(--ink); font-weight: 600 }
.seppl-buch span { text-decoration: underline; text-decoration-color: var(--seppl-kante); text-decoration-thickness: 1.5px; text-underline-offset: 4px }
.seppl-buch:hover span { text-decoration-color: var(--ink) }
.seppl-buch-zeichen { flex: none; margin-top: -1px; color: #8f6207 }
.seppl-buch:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px }

/* Bühne aus den echten Level-Standbildern (seppl-buehne.js): immer der aktuelle Seppl aus dem Spiel */
.seppl--echt .seppl-buehne { cursor: default; background: #34452b }
/* Wechsel nur über die Schilder (Roland, 21.11.2026: Wechsel beim Drüberstreichen war verwirrend); die Szenen blenden ruhig über */
.seppl-bilder.bereit .seppl-bild { opacity: 0; transition: opacity .9s var(--ease) }
.seppl-bilder.bereit .seppl-bild.an { opacity: 1 }
/* Laufleiste im aktiven Schild: Die Bühne blättert von allein weiter, solange niemand darauf zeigt */
.seppl--echt .seppl-welten button { position: relative; overflow: hidden }
.seppl--echt .seppl-welten button:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #8f6207; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none }
.seppl--echt.seppl-laeuft .seppl-welten button[aria-pressed="true"]:after { animation: seppl-lauf 7s linear forwards }
@keyframes seppl-lauf { to { transform: scaleX(1) } }
@media (prefers-reduced-motion: reduce) { .seppl-bilder.bereit .seppl-bild { transition: none } .seppl--echt .seppl-welten button:after { display: none } }
.seppl--breit.seppl--echt .seppl-buehne { aspect-ratio: 16 / 9; min-height: 0 }
.seppl-bilder { position: absolute; inset: 0 }
.seppl-bild { position: absolute; inset: 0; opacity: 0 }
.seppl-bild:first-child { opacity: 1 }
.seppl-bild img { display: block; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 860px) { .seppl--echt .seppl-buehne, .seppl--breit.seppl--echt .seppl-buehne { aspect-ratio: 16 / 9; min-height: 0 } }
.seppl-bild video { display: block; width: 100%; height: 100%; object-fit: cover }
/* Alm-Szene: das Standbild liegt als Bild mit Handy-Größen unter dem Video (schneller als ein Video-Poster); das Video deckt es ab, sobald es läuft */
.seppl-bild picture { display: block; width: 100%; height: 100% }
.seppl-bild picture + video { position: absolute; inset: 0 }

/* Der echte Seppl (freigestellt aus dem Spiel) kriecht unter dem Zettel hervor und über den Bühnenrand */
.seppl-figur { display: block; pointer-events: none; filter: drop-shadow(0 12px 10px #1a120859) }
.seppl--breit .seppl-figur { position: absolute; left: 10%; bottom: -46px; width: min(85%, 355px); height: auto; transform: rotate(-2.5deg) }
.seppl--breit.seppl--echt .seppl-welten { width: min(48%, 580px) }
@media (max-width: 860px) { .seppl--breit.seppl--echt .seppl-welten { width: auto } } /* sonst schlägt die 48 % oben die Handy-Regel, die Schilder werden zu schmal */
.seppl--breit.seppl--echt .seppl-text { padding-bottom: clamp(70px, 7vw, 96px) }
@media (max-width: 860px) { .seppl--breit .seppl-figur { position: static; margin-bottom: 0; width: min(72%, 355px); margin: 16px 0 0 auto; transform: none } }
@media (max-width: 860px) { .seppl--breit.seppl--echt .seppl-text { padding-bottom: 30px } }
/* Der Hinweis bleibt ein kleines Schild (eine allgemeine Regel der Seite machte ihn bühnenhoch, beim Ausblenden blitzte er als Fläche auf) */
.seppl--echt .seppl-hinweis { display: block; bottom: auto; left: auto; height: auto }
