/* Lunas Lesetraining · Halloween mit Amo, Gilda und Fabio (25.10.2026) – gehört zu js/halloween.js
   Farben wie bei Red und Luna: Nachtviolett, Kürbisorange, Gold. Texte auf dunklem Grund immer hell. */
:root { --lhw-nacht: #1d1636; --lhw-violett: #3b2a6b; --lhw-orange: #f08a24; --lhw-gold: #f2c75c; --lhw-creme: #fff6e6; }

/* ---------- Kürbisnacht in der ganzen App ---------- */
html.lhw-nacht body.training {
  background: linear-gradient(rgba(20, 12, 40, .35), rgba(20, 12, 40, .55)), var(--lhw-bild) center/cover fixed, var(--lhw-nacht);
}
html.lhw-nacht body.training .seiten-fuss, html.lhw-nacht body.training .seiten-fuss a { color: #f3e9ff; }
.lhw-spur-fm { position: fixed; z-index: 9000; width: 30px; height: auto; pointer-events: none; transform: translate(-50%, -50%);
  animation: lhwFmFlug 1.4s ease-out forwards; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
@keyframes lhwFmFlug { from { opacity: .95; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(12deg); } }

/* ---------- Knopf oben auf der Übersicht ---------- */
.lhw-knopf { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin: 14px 0 18px; padding: 16px 20px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #5a3a9a 0%, #2b1d55 45%, #160f2c 100%);
  border: 2px solid rgba(242, 199, 92, .75); box-shadow: 0 10px 30px rgba(43, 29, 85, .35), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease; isolation: isolate; }
.lhw-knopf:hover, .lhw-knopf:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(43, 29, 85, .45), 0 0 0 3px rgba(242,199,92,.35); }
.lhw-knopf.landung { animation: lhwLandung 1.2s ease; }
@keyframes lhwLandung { 0%,100% { transform: none; } 20% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(242,199,92,.55); } 45% { transform: scale(.98); } 70% { transform: scale(1.02); } }
.lhw-funken { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lhw-funken i { position: absolute; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 6px #ffcf5a; animation: lhwFunkeln 3s ease-in-out infinite; }
.lhw-funken b { display: none; }
@keyframes lhwFunkeln { 0%,100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.lhw-glanz { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 48%, transparent 62%);
  transform: translateX(-100%); animation: lhwGlanz 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes lhwGlanz { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.lhw-flug { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lhw-flug img { position: absolute; width: 30px; opacity: .85; animation: lhwFlugQuer 11s linear infinite; }
.lhw-flug img:nth-child(1) { top: 8%; animation-delay: -2s; }
.lhw-flug img:nth-child(2) { top: 58%; width: 24px; animation-delay: -6s; animation-duration: 14s; }
.lhw-flug img:nth-child(3) { top: 30%; width: 22px; animation-delay: -9s; animation-duration: 9s; }
.lhw-flug img:nth-child(4) { top: 62%; width: 30px; animation: lhwGespenst 7s ease-in-out infinite; right: 26%; opacity: .55; }
@keyframes lhwFlugQuer { from { left: -8%; transform: translateY(0); } 50% { transform: translateY(-10px); } to { left: 108%; transform: translateY(4px); } }
@keyframes lhwGespenst { 0%,100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-12px); opacity: .7; } }
.lhw-knopf-tiere { display: flex; align-items: flex-end; }
.lhw-kt { position: relative; width: 62px; height: 62px; margin-left: -12px; border-radius: 50%; border: 3px solid var(--f); background: #fff;
  box-shadow: 0 0 0 2px rgba(242,199,92,.6), 0 6px 14px rgba(0,0,0,.35); animation: lhwWippen 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.lhw-kt:first-child { margin-left: 0; }
.lhw-kt > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lhw-kt-kuerbis { position: absolute; right: -8px; bottom: -8px; width: 28px; height: auto; filter: grayscale(.85) brightness(.6); transition: filter .4s; }
.lhw-kt-kuerbis.an { filter: drop-shadow(0 0 6px #ffb347); }
@keyframes lhwWippen { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
.lhw-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lhw-titel { font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.lhw-unter { font-size: .95rem; color: #e9dcff; line-height: 1.3; }
.lhw-pfeil { white-space: nowrap; padding: 10px 16px; border-radius: 999px; font-weight: 700; color: #2b1d55;
  background: linear-gradient(180deg, #ffd978, #f0a93a); box-shadow: 0 4px 12px rgba(240,138,36,.45); }
@media (max-width: 640px) {
  .lhw-knopf { grid-template-columns: auto 1fr; padding: 14px; gap: 12px; }
  .lhw-kt { width: 46px; height: 46px; margin-left: -14px; }
  .lhw-kt-kuerbis { width: 22px; }
  .lhw-titel { font-size: 1.05rem; }
  .lhw-pfeil { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Ebene (Halloween-Seite, Abenteuer) ---------- */
body.lhw-offen { overflow: hidden; }
.lhw-ebene { position: fixed; inset: 0; z-index: 4000; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .3s ease; color: #fff; }
.lhw-ebene.da { opacity: 1; }
.lhw-hg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(18, 10, 38, .45), rgba(18, 10, 38, .78)), var(--lhw-bild) center/cover, var(--lhw-nacht); }
.lhw-fliegen { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lhw-fliegen img { position: absolute; left: -10%; animation: lhwFlugQuer var(--t) linear infinite; animation-delay: var(--d); opacity: .8; }
.lhw-raum { position: relative; z-index: 1; }
.lhw-seite { max-width: 1060px; margin: 0 auto; padding: 18px 18px 60px; }
.lhw-oben { margin-bottom: 10px; }
.lhw-zurueck { color: #fff; font-weight: 700; font-size: 1rem; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.lhw-zurueck:hover { background: rgba(255,255,255,.2); }
.lhw-kopf { display: flex; align-items: center; gap: 22px; margin: 6px 0 18px; }
.lhw-kopf-tiere { display: flex; flex-shrink: 0; }
.lhw-kopf-tier { width: 96px; height: 96px; margin-left: -18px; border-radius: 50%; border: 4px solid var(--f); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(242,199,92,.7), 0 0 26px rgba(240,138,36,.45); animation: lhwWippen 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.lhw-kopf-tier:first-child { margin-left: 0; }
.lhw-kopf-tier img { width: 100%; height: 100%; object-fit: cover; }
.lhw-augenbraue { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lhw-gold); }
.lhw-kopf h1, .lhw-st-kopf h1, .lhw-ab-titel, .lhw-feier h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,.55), 0 0 30px rgba(240,138,36,.35); }
.lhw-stichworte { color: #f3e9ff; font-size: 1.05rem; margin-top: 4px; }
@media (max-width: 640px) { .lhw-kopf { flex-direction: column; align-items: flex-start; gap: 12px; } .lhw-kopf-tier { width: 70px; height: 70px; } }

/* Hintergrundwahl */
.lhw-wahl { margin: 4px 0 14px; }
.lhw-wahl-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lhw-wahl-knopf { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.lhw-wahl-knopf img { width: 54px; height: 32px; object-fit: cover; border-radius: 999px; }
.lhw-pfeilchen { transition: transform .25s; }
.lhw-wahl.offen .lhw-pfeilchen { transform: rotate(180deg); }
.lhw-schalter { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; cursor: pointer; }
.lhw-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lhw-schiene { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.25); position: relative; transition: background .25s; }
.lhw-schiene i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s; }
.lhw-schalter input:checked + .lhw-schiene { background: var(--lhw-orange); }
.lhw-schalter input:checked + .lhw-schiene i { transform: translateX(20px); }
.lhw-schalter input:focus-visible + .lhw-schiene { outline: 3px solid var(--lhw-gold); outline-offset: 2px; }
.lhw-karussell { display: none; position: relative; margin-top: 12px; }
.lhw-wahl.offen .lhw-karussell { display: block; }
.lhw-spur { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 40%; scrollbar-width: none; }
.lhw-spur::-webkit-scrollbar { display: none; }
.lhw-spur button { flex: 0 0 200px; scroll-snap-align: center; border-radius: 16px; overflow: hidden; position: relative; border: 3px solid transparent;
  transition: transform .2s, opacity .2s, border-color .2s; background: #000; }
.lhw-spur button.an { border-color: var(--lhw-gold); box-shadow: 0 0 24px rgba(242,199,92,.6); }
.lhw-spur img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lhw-spur span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.lhw-dreh { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  color: #2b1d55; background: var(--lhw-gold); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.lhw-dreh.links { left: 4px; } .lhw-dreh.rechts { right: 4px; }

/* Lied */
.lhw-lied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; margin: 6px 0 20px; border-radius: 18px;
  background: rgba(20, 12, 40, .55); border: 1px solid rgba(242,199,92,.45); backdrop-filter: blur(6px); }
.lhw-lied-knopf { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; color: #fff; font-weight: 700; background: rgba(255,255,255,.12); }
.lhw-noten { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.lhw-noten i { width: 4px; height: 6px; border-radius: 2px; background: var(--lhw-gold); }
.lhw-lied-knopf.spielt .lhw-noten i { animation: lhwNote .9s ease-in-out infinite; }
.lhw-lied-knopf.spielt .lhw-noten i:nth-child(2) { animation-delay: -.3s; } .lhw-lied-knopf.spielt .lhw-noten i:nth-child(3) { animation-delay: -.6s; } .lhw-lied-knopf.spielt .lhw-noten i:nth-child(4) { animation-delay: -.15s; }
@keyframes lhwNote { 0%,100% { height: 5px; } 50% { height: 18px; } }
.lhw-lied-schalter { width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.25); position: relative; }
.lhw-lied-schalter i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s; }
.lhw-lied-knopf.spielt .lhw-lied-schalter { background: var(--lhw-orange); }
.lhw-lied-knopf.spielt .lhw-lied-schalter i { transform: translateX(18px); }
.lhw-lied-text { display: flex; flex-direction: column; color: #fff; line-height: 1.25; }
.lhw-lied-text span { color: #e9dcff; font-size: .92rem; }
.lhw-lied-yt { margin-left: auto; color: var(--lhw-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Karten */
.lhw-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lhw-karte { display: flex; flex-direction: column; text-align: left; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--tinte);
  background: var(--lhw-creme); border: 2px solid rgba(242,199,92,.8); box-shadow: 0 14px 36px rgba(0,0,0,.4); transition: transform .25s, box-shadow .25s; }
.lhw-karte:hover, .lhw-karte:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,.5), 0 0 0 3px rgba(242,199,92,.5); }
.lhw-karte.lhw-gross { grid-column: 1 / -1; }
.lhw-bild { position: relative; display: block; height: 190px; background: center/cover no-repeat; }
.lhw-gross .lhw-bild { height: 270px; }
.lhw-marke { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #2b1d55;
  background: linear-gradient(180deg, #ffd978, #f0a93a); box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.lhw-inhalt { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; flex: 1; }
.lhw-h2 { font-size: 1.3rem; font-weight: 700; color: #2b1d55; line-height: 1.2; }
.lhw-p { line-height: 1.45; color: var(--tinte); }
.lhw-klein { font-size: .9rem; color: #6b5a3a; }
.lhw-los { margin-top: auto; align-self: flex-start; padding: 10px 18px; border-radius: 999px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #6b4bb8, #3b2a6b); box-shadow: 0 4px 12px rgba(59,42,107,.4); }
.lhw-baum { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: clamp(18px, 6vw, 70px); }
.lhw-bt { position: relative; display: flex; flex-direction: column; align-items: center; animation: lhwWippen 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.lhw-bt-tier { width: clamp(70px, 12vw, 104px); height: clamp(70px, 12vw, 104px); border-radius: 50%; border: 4px solid var(--f); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(242,199,92,.8), 0 8px 20px rgba(0,0,0,.45); }
.lhw-bt-tier img { width: 100%; height: 100%; object-fit: cover; }
.lhw-bt-kuerbis { width: 44px; margin-top: -16px; filter: grayscale(.85) brightness(.55); }
.lhw-bt-kuerbis.an { filter: drop-shadow(0 0 10px #ffb347) drop-shadow(0 0 22px rgba(255,160,40,.7)); }
@media (max-width: 720px) { .lhw-raster { grid-template-columns: 1fr; } .lhw-gross .lhw-bild { height: 210px; } }

/* Musikvideo */
.lhw-video-teil { margin-top: 34px; text-align: center; }
.lhw-video-titel { font-size: 1.6rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.lhw-video-unter { color: #f3e9ff; margin: 4px 0 14px; }
.lhw-video-rahmen { position: relative; max-width: 820px; margin: 0 auto; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden;
  border: 3px solid var(--lhw-gold); box-shadow: 0 16px 44px rgba(0,0,0,.55); background: #000; }
.lhw-video-rahmen iframe, .lhw-video-start, .lhw-video-start img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.lhw-video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(240,138,36,.92); box-shadow: 0 0 0 8px rgba(255,255,255,.25), 0 10px 30px rgba(0,0,0,.5); transition: transform .2s; }
.lhw-video-play::after { content: ''; position: absolute; left: 34px; top: 25px; border-left: 26px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.lhw-video-start:hover .lhw-video-play { transform: translate(-50%, -50%) scale(1.08); }
.lhw-video-klein { margin-top: 10px; font-size: .88rem; color: #e9dcff; }
.lhw-video-klein a { color: var(--lhw-gold); }

/* Meldung */
.lhw-meldung { position: fixed; left: 50%; bottom: 28px; z-index: 9500; transform: translateX(-50%); max-width: min(92vw, 520px); padding: 12px 18px;
  border-radius: 14px; color: #fff; background: rgba(43,29,85,.95); border: 1px solid var(--lhw-gold); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .4s; text-align: center; }
.lhw-meldung.weg { opacity: 0; }

/* ---------- Abenteuer ---------- */
.lhw-ab-titel { text-align: center; margin-top: 8px; }
.lhw-ab-unter { text-align: center; color: #f3e9ff; font-size: 1.1rem; margin: 6px 0 22px; }
.lhw-baumreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lhw-station { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 18px; border-radius: 24px; color: #fff;
  background: linear-gradient(180deg, rgba(43,29,85,.82), rgba(20,12,40,.9)); border: 2px solid color-mix(in srgb, var(--f) 70%, #fff 0%);
  box-shadow: 0 14px 34px rgba(0,0,0,.45); transition: transform .25s, box-shadow .25s; }
.lhw-station:hover, .lhw-station:focus-visible { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0,0,0,.55), 0 0 0 3px var(--f); }
.lhw-st-kuerbis { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.lhw-st-kuerbis img { width: 70px; filter: grayscale(.9) brightness(.5); transition: filter .6s; }
.lhw-station.geschafft .lhw-st-kuerbis img { filter: drop-shadow(0 0 12px #ffb347) drop-shadow(0 0 28px rgba(255,160,40,.75)); }
.lhw-st-licht { position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,80,.45), transparent 65%); opacity: 0; }
.lhw-station.geschafft .lhw-st-licht { opacity: 1; animation: lhwLicht 2.4s ease-in-out infinite; }
@keyframes lhwLicht { 0%,100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
.lhw-st-tier { position: relative; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 4px solid var(--f); background: #fff;
  box-shadow: 0 0 0 3px rgba(242,199,92,.75), 0 10px 22px rgba(0,0,0,.45); }
.lhw-st-tier img, .lhw-st-tier video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lhw-st-tier video { opacity: 0; transition: opacity .3s; }
.lhw-station.lebt .lhw-st-tier video { opacity: 1; }
.lhw-st-name { font-size: 1.15rem; font-weight: 700; text-align: center; margin-top: 6px; }
.lhw-st-art { color: var(--lhw-gold); font-weight: 700; font-size: .92rem; }
.lhw-st-status { margin-top: 6px; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: #2b1d55; background: linear-gradient(180deg, #ffd978, #f0a93a); }
.lhw-station.geschafft .lhw-st-status { color: #fff; background: rgba(255,255,255,.14); }
@media (max-width: 720px) { .lhw-baumreihe { grid-template-columns: 1fr; } .lhw-station { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: left; } .lhw-st-tier { width: 86px; height: 86px; } }
.lhw-ab-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.lhw-gold { padding: 13px 26px; border-radius: 999px; font-size: 1.08rem; font-weight: 700; color: #2b1d55; background: linear-gradient(180deg, #ffe08a, #f0a93a);
  box-shadow: 0 6px 18px rgba(240,138,36,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.lhw-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lhw-leise { padding: 12px 20px; border-radius: 999px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }

/* Stationen: Lesen bleibt ruhig – helle Karte, keine Bewegung im Lesefeld */
.lhw-station-seite { max-width: 780px; }
.lhw-st-kopf { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: rgba(20,12,40,.7); border: 2px solid var(--f); }
.lhw-st-kopf-bild { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--f); background: #fff; overflow: hidden; flex-shrink: 0; }
.lhw-st-kopf h1 { font-size: clamp(1.3rem, 3.2vw, 1.8rem); }
.lhw-st-kopf p { color: #f3e9ff; margin-top: 4px; font-size: 1.05rem; line-height: 1.4; }
.lhw-fortschritt { display: flex; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.lhw-fortschritt i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.25); }
.lhw-fortschritt i.voll { background: var(--lhw-gold); }
.lhw-fortschritt i.jetzt { background: var(--lhw-orange); box-shadow: 0 0 0 3px rgba(240,138,36,.35); }
.lhw-wortwahl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; padding: 20px; border-radius: 22px; background: var(--lhw-creme); }
.lhw-wortwahl.lhw-drei { grid-template-columns: repeat(3, 1fr); }
.lhw-wortwahl[hidden] { display: none; }
.lhw-wort { font-size: clamp(1.3rem, 3.6vw, 1.75rem); font-weight: 700; letter-spacing: .02em; color: var(--navy); padding: 18px 10px; border-radius: 16px;
  background: #fff; border: 3px solid #e3d5b5; box-shadow: 0 4px 0 #e3d5b5; transition: transform .1s, border-color .2s; word-break: keep-all; hyphens: none; }
.lhw-wort:hover:not(:disabled) { border-color: var(--lhw-orange); transform: translateY(-1px); }
.lhw-wort.richtig, .lhw-antwort.richtig { border-color: #3a7d4e; background: #e1f2e5; box-shadow: 0 4px 0 #3a7d4e; color: #1f5232; }
.lhw-wort.falsch, .lhw-antwort.falsch { border-color: #c0504d; background: #f8e1e1; box-shadow: 0 4px 0 #c0504d; opacity: .75; }
.lhw-wort:disabled, .lhw-antwort:disabled { cursor: default; }
@media (max-width: 520px) { .lhw-wortwahl, .lhw-wortwahl.lhw-drei { grid-template-columns: 1fr; } }
.lhw-rueck { min-height: 1.6em; margin-top: 14px; text-align: center; font-size: 1.15rem; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.lhw-blitzfeld { position: relative; margin: 18px auto 0; width: min(100%, 420px); aspect-ratio: 1.6; display: grid; place-items: center; border-radius: 26px;
  background: radial-gradient(circle at 50% 60%, #3a2864, #1a1131); border: 2px solid rgba(242,199,92,.6); }
.lhw-blitzfeld img { width: 46%; opacity: .55; filter: drop-shadow(0 0 20px rgba(255,160,40,.5)); }
.lhw-blitzwort { position: absolute; padding: 10px 22px; border-radius: 14px; font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; color: var(--navy); background: #fff;
  opacity: 0; box-shadow: 0 0 30px rgba(255,190,80,.8); }
.lhw-blitzwort.zu-sehen { opacity: 1; }
.lhw-pergament { margin-top: 18px; padding: 26px 30px; border-radius: 18px; color: #2a2418; background: linear-gradient(180deg, #fff9ec, #f6ead0);
  border: 2px solid #d9b968; box-shadow: 0 14px 34px rgba(0,0,0,.4), inset 0 0 40px rgba(201,160,80,.18); }
.lhw-pergament h2 { font-size: 1.45rem; color: #5a3a12; margin-bottom: 10px; text-align: center; }
.lhw-pergament p { font-size: clamp(1.12rem, 2.6vw, 1.3rem); line-height: 1.75; margin: 0 0 12px; hyphens: none; }
.lhw-antworten { display: grid; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 22px; background: var(--lhw-creme); }
.lhw-antwort { font-size: 1.18rem; font-weight: 700; text-align: left; color: var(--navy); padding: 15px 18px; border-radius: 14px; background: #fff;
  border: 3px solid #e3d5b5; box-shadow: 0 4px 0 #e3d5b5; }
.lhw-antwort:hover:not(:disabled) { border-color: var(--lhw-orange); }

/* Feier */
.lhw-feier { position: relative; text-align: center; padding-top: 50px; max-width: 760px; }
.lhw-feier-funken { position: absolute; inset: 0; pointer-events: none; }
.lhw-feier-funken i { position: absolute; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 8px #ffcf5a; animation: lhwFunkeln 2.6s ease-in-out infinite; }
.lhw-feier-reihe { display: flex; justify-content: center; gap: 28px; margin-bottom: 12px; }
.lhw-fk { animation: lhwAnzuenden 1.4s ease-out both; animation-delay: calc(var(--i, 0) * .45s); }
.lhw-fk img { width: 110px; filter: drop-shadow(0 0 16px #ffb347) drop-shadow(0 0 36px rgba(255,160,40,.8)); }
@keyframes lhwAnzuenden { 0% { filter: grayscale(1) brightness(.4); transform: scale(.7); } 60% { transform: scale(1.12); } 100% { filter: none; transform: scale(1); } }
.lhw-feier p { color: #f3e9ff; font-size: 1.2rem; line-height: 1.5; margin-top: 10px; }
.lhw-feier-klein { font-size: 1rem !important; color: var(--lhw-gold) !important; }
.lhw-feier-tiere { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }
.lhw-feier-tiere span { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--lhw-gold); background: #fff; overflow: hidden;
  animation: lhwHuepfen 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
@keyframes lhwHuepfen { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }

/* ---------- Pop-up ---------- */
.lhw-neu { position: fixed; inset: 0; z-index: 4500; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .35s; overflow-y: auto; }
.lhw-neu.da { opacity: 1; } .lhw-neu.weg { opacity: 0; }
.lhw-neu-himmel { position: fixed; inset: 0; background: linear-gradient(rgba(18,10,38,.55), rgba(18,10,38,.85)), url(../bilder/halloween/kuerbisnacht-quer.webp) center/cover; }
.lhw-neu-karte { position: relative; z-index: 2; width: min(100%, 620px); padding: 26px 24px 20px; border-radius: 26px; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(59,42,107,.96), rgba(29,22,54,.97)); border: 2px solid var(--lhw-gold); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(20px) scale(.96); transition: transform .45s cubic-bezier(.2,1.3,.4,1); }
.lhw-neu.da .lhw-neu-karte { transform: none; }
.lhw-neu-zu { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 1.1rem; background: rgba(255,255,255,.14); }
.lhw-neu-band { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; color: #2b1d55; background: linear-gradient(180deg, #ffd978, #f0a93a); }
.lhw-neu-buehne { display: flex; justify-content: center; margin: 16px 0 8px; }
.lhw-neu-titel { font-size: clamp(1.7rem, 5vw, 2.3rem); text-shadow: 0 0 24px rgba(240,138,36,.55); }
.lhw-neu-unter { color: #f3e9ff; line-height: 1.45; margin: 6px 0 14px; }
.lhw-kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: left; }
.lhw-kachel { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  animation: lhwKachelRein .5s ease-out both; animation-delay: calc(.3s + var(--i) * .12s); }
@keyframes lhwKachelRein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lhw-kachel img { width: 64px; height: 46px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.lhw-kachel em { display: block; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--lhw-gold); text-transform: uppercase; letter-spacing: .05em; }
.lhw-kachel b { display: block; line-height: 1.2; }
.lhw-kachel span { display: block; font-size: .85rem; color: #e9dcff; line-height: 1.25; }
.lhw-neu .lhw-lied { margin: 14px 0 10px; justify-content: center; }
.lhw-neu-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.lhw-nie { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .92rem; color: #e9dcff; cursor: pointer; }
.lhw-nie input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lhw-nie-kasten { width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(255,255,255,.6); }
.lhw-nie input:checked + .lhw-nie-kasten { background: var(--lhw-orange); border-color: var(--lhw-orange); box-shadow: inset 0 0 0 3px #3b2a6b; }
.lhw-nie input:focus-visible + .lhw-nie-kasten { outline: 3px solid var(--lhw-gold); outline-offset: 2px; }
@media (max-width: 520px) { .lhw-kacheln { grid-template-columns: 1fr; } .lhw-neu-karte { padding: 22px 14px 16px; } }

@media (prefers-reduced-motion: reduce) {
  .lhw-knopf *, .lhw-ebene *, .lhw-neu * { animation: none !important; transition: none !important; }
}

/* Die Kurs-Symbole haben außen einen Schriftring („Genau lesen“ …). Im Kreis nur das Tier zeigen: innerer Kreis = 79 % → 1/0,79 ≈ 1,27 */
.lhw-kt > img:first-child, .lhw-kopf-tier img, .lhw-bt-tier img, .lhw-st-tier img, .lhw-st-kopf-bild img, .lhw-feier-tiere img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.27); }
.lhw-kt { overflow: visible; } .lhw-kt > img:first-child { clip-path: circle(39.4% at 50% 50%); }
/* Knöpfe haben im Browser sonst 13 px Schrift; :where() lässt die Größen der einzelnen Knöpfe gewinnen */
:where(.lhw-ebene, .lhw-neu, .lhw-knopf) button { font-size: 1rem; }
/* Beim Lesen in den Stationen fliegt nichts herum */
.lhw-ist-station .lhw-fliegen { display: none; }
/* 25.10.2026: Glitzer als Sternchen statt Punkte */
.lhw-funken i, .lhw-feier-funken i {
  border-radius: 0 !important; background: linear-gradient(135deg, #fffbe6, #f3d77e 55%, #d9a93a) !important; box-shadow: none !important;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 3px rgba(255, 220, 120, .9)); transform-origin: center; min-width: 7px; min-height: 7px;
}

/* 25.10.2026 Theresa: Lied-Karte länglich – sie ist kein weiteres Spiel, das Musikvideo steht ja darunter */
#lhwLiedKarte { grid-column: 1 / -1; flex-direction: row; align-items: stretch; min-height: 0; }
#lhwLiedKarte .lhw-bild { flex: 0 0 180px; height: auto; min-height: 96px; }
#lhwLiedKarte .lhw-marke { top: 10px; left: 10px; }
#lhwLiedKarte .lhw-inhalt { flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "titel los" "text los";
  align-items: center; gap: 2px 18px; padding: 14px 20px; }
#lhwLiedKarte .lhw-h2 { grid-area: titel; font-size: 1.15rem; }
#lhwLiedKarte .lhw-p { grid-area: text; font-size: .98rem; }
#lhwLiedKarte .lhw-klein { display: none; }
#lhwLiedKarte .lhw-los { grid-area: los; margin: 0; align-self: center; white-space: nowrap; }
@media (max-width: 600px) {
  #lhwLiedKarte .lhw-bild { flex-basis: 96px; }
  #lhwLiedKarte .lhw-inhalt { grid-template-columns: 1fr; grid-template-areas: "titel" "text" "los"; padding: 12px 14px; }
  #lhwLiedKarte .lhw-los { justify-self: start; margin-top: 8px; }
}

/* 26.10.2026 (Theresa): Ist die Leiste „Die Zaubergiraffe hat gezaubert“ da (js/update.js setzt html.zg-update-da
   und --zg-update-h), rücken Pop-up, Meldungen und die Halloween-Seite darüber – nichts liegt mehr darunter. */
html.zg-update-da .lhw-neu { padding-bottom: calc(var(--zg-update-h, 76px) + 34px); }
html.zg-update-da .lhw-meldung { bottom: calc(var(--zg-update-h, 76px) + 40px); }
html.zg-update-da .lhw-ebene { padding-bottom: calc(var(--zg-update-h, 76px) + 34px); }

/* ---------- Bildschirmgrößen (28.10.2026) ----------
   iMac 2240×1260, 2560×1440 und größer: Die Seite blieb 1060 px schmal und klein in der Mitte. */
@media (min-width: 2100px) and (min-height: 1150px) { .lhw-seite { zoom: 1.45; } }
@media (min-width: 3400px) and (min-height: 1900px) { .lhw-seite { zoom: 2.3; } }
/* Safari (iPhone/iPad, ältere Macs) kennt die Unschärfe nur mit -webkit- */
.lhw-zurueck, .lhw-lied { -webkit-backdrop-filter: blur(6px); }
