/* Zaubergiraffe · Weihnachtsbereich mit Adventkalender (01.11.2026) – gehört zu weihnachten.js
   Farben: Navy, Gold, Creme (nie Lila). Texte auf dunklem Grund immer hell. Quelle: Weihnachten-2026\engine\ */
:root { --zgw-navy: #14213d; --zgw-navy2: #1d2f57; --zgw-gold: #e3b448; --zgw-gold2: #f6d98a; --zgw-creme: #fdf6e7; --zgw-rot: #b8323a; --zgw-gruen: #2f7d4f; --zgw-tinte: #1f2433; }

/* ---------- Knopf auf der Startseite ---------- */
.zgw-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; isolation: isolate; text-decoration: none; color: #fff; font: inherit;
  background: radial-gradient(120% 150% at 0% 0%, #2b4682 0%, #1a2b52 45%, #0f1a33 100%);
  border: 2px solid rgba(227, 180, 72, .85); box-shadow: 0 10px 30px rgba(15, 26, 51, .35), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease; }
.zgw-knopf:hover, .zgw-knopf:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(15, 26, 51, .45), 0 0 0 3px rgba(227,180,72,.4); outline: none; }
.zgw-knopf.landung { animation: zgwLandung 1.2s ease; }
@keyframes zgwLandung { 0%,100% { transform: none; } 20% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(227,180,72,.55); } 45% { transform: scale(.98); } 70% { transform: scale(1.02); } }
.zgw-sterne, .zgw-schnee, .zgw-glanz { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.zgw-sterne i { position: absolute; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 6px #ffd76a; animation: zgwFunkeln 3s ease-in-out infinite; }
@keyframes zgwFunkeln { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.zgw-glanz { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 48%, transparent 62%); transform: translateX(-100%); animation: zgwGlanz 6s ease-in-out infinite; }
@keyframes zgwGlanz { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.zgw-schnee i, .zgw-fall i { position: absolute; top: -10px; width: var(--g); height: var(--g); border-radius: 50%; background: #fff; opacity: .85;
  box-shadow: 0 0 4px rgba(255,255,255,.8); animation: zgwSchnee var(--t) linear infinite; animation-delay: var(--d); }
@keyframes zgwSchnee { from { transform: translate(0, -10px); } to { transform: translate(var(--x), calc(100vh + 20px)); } }
.zgw-knopf .zgw-schnee i { animation-name: zgwSchneeKlein; }
@keyframes zgwSchneeKlein { from { transform: translate(0, -10px); } to { transform: translate(var(--x), 140px); } }
.zgw-knopf-figuren, .zgw-kopf-figuren, .zgw-neu-figuren { display: flex; align-items: flex-end; }
.zgw-fig { position: relative; width: 62px; height: 62px; margin-left: -12px; border-radius: 50%; border: 3px solid var(--f); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(227,180,72,.7), 0 6px 14px rgba(0,0,0,.35); animation: zgwWippen 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.zgw-fig:first-child { margin-left: 0; }
.zgw-fig img { width: 100%; height: 100%; object-fit: contain; }
@keyframes zgwWippen { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
.zgw-text { display: grid; gap: 3px; min-width: 0; }
.zgw-titel { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.2; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.zgw-unter { font-size: 15px; color: #f8e9c4; }
.zgw-pfeil { padding: 10px 16px; border-radius: 999px; background: linear-gradient(#f6d98a, #e3b448); color: #14213d; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
@media (max-width: 640px) {
  .zgw-knopf { grid-template-columns: auto 1fr; padding: 14px; gap: 12px; }
  .zgw-pfeil { grid-column: 1 / -1; text-align: center; }
  .zgw-fig { width: 46px; height: 46px; }
}

/* ---------- Ebene ---------- */
body.zgw-offen { overflow: hidden; }
.zgw-ebene h1, .zgw-ebene h2, .zgw-neu h2 { font-style: normal; }
.zgw-ebene { position: fixed; inset: 0; z-index: 8000; overflow-y: auto; overflow-x: hidden; color: #fff; opacity: 0; transition: opacity .3s ease;
  -webkit-overflow-scrolling: touch; font-size: 17px; line-height: 1.55; }
.zgw-ebene.da { opacity: 1; }
.zgw-hg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(10,18,40,.42), rgba(10,18,40,.80)), var(--zgw-bild) center/cover, var(--zgw-navy); }
.zgw-fall { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.zgw-raum { position: relative; z-index: 1; min-height: 100%; }
.zgw-seite { max-width: 1100px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 60px max(16px, env(safe-area-inset-left)); }
.zgw-oben { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.zgw-zurueck { font: inherit; font-weight: 700; color: #fff; background: rgba(10,18,40,.55); border: 1.5px solid rgba(246,217,138,.6); border-radius: 999px; padding: 8px 16px; cursor: pointer; backdrop-filter: blur(4px); }
.zgw-zurueck:hover, .zgw-zurueck:focus-visible { background: rgba(10,18,40,.8); outline: none; box-shadow: 0 0 0 3px rgba(227,180,72,.4); }
.zgw-blaettern { display: flex; gap: 8px; }
.zgw-rund { width: 42px; height: 42px; border-radius: 50%; font: inherit; font-size: 24px; line-height: 1; color: #14213d; background: linear-gradient(#f6d98a, #e3b448); border: 0; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.zgw-rund:disabled { opacity: .35; cursor: default; }
.zgw-kopf { display: flex; align-items: center; gap: 18px; margin: 6px 0 22px; }
.zgw-kopf h1, .zgw-tuer-kopf h1 { font-style: normal; letter-spacing: normal; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; margin: 2px 0 6px; color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,.45); text-wrap: balance; }
.zgw-augenbraue { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zgw-gold2); }
.zgw-gruss { margin: 0; color: #fbeccb; font-size: 17px; }
.zgw-kopf .zgw-fig { width: 74px; height: 74px; }
@media (max-width: 640px) { .zgw-kopf { flex-direction: column; align-items: flex-start; gap: 10px; } .zgw-kopf .zgw-fig { width: 56px; height: 56px; } }

/* ---------- Kalender ---------- */
.zgw-kalender { background: rgba(10,18,40,.55); border: 1.5px solid rgba(246,217,138,.45); border-radius: 26px; padding: 18px; backdrop-filter: blur(3px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.zgw-kal-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.zgw-kal-kopf h2 { font-family: Georgia, serif; margin: 0; font-size: clamp(21px, 2.6vw, 28px); color: var(--zgw-gold2); }
.zgw-kal-kopf p { margin: 0; flex: 1 1 260px; color: #f2e6cc; font-size: 15px; }
.zgw-stand { font-weight: 700; color: #14213d; background: linear-gradient(#f6d98a, #e3b448); border-radius: 999px; padding: 4px 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.zgw-tueren { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .zgw-tueren { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .zgw-tueren { grid-template-columns: repeat(3, 1fr); gap: 9px; } }
.zgw-tuer { position: relative; aspect-ratio: 1 / 1.08; max-width: 100%; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; font: inherit;
  background: #0f1a33; box-shadow: 0 6px 16px rgba(0,0,0,.4); transition: transform .2s ease, box-shadow .2s ease; perspective: 600px; }
.zgw-tuer-bild { position: absolute; inset: 0; background-size: cover; background-position: center; }
.zgw-tuer-blatt { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; transform-origin: left center; transition: transform .6s cubic-bezier(.3,.7,.3,1);
  background: radial-gradient(circle at 30% 25%, #2d4a86 0%, #1a2b52 55%, #111d39 100%); border: 2px solid rgba(227,180,72,.75); border-radius: 14px; }
.zgw-tuer-blatt::before { content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(246,217,138,.45); border-radius: 10px; }
.zgw-tuer-nr { font-family: Georgia, serif; font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); color: var(--zgw-gold2); text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.zgw-tuer-hinweis { font-size: 12px; font-weight: 700; color: #fbeccb; letter-spacing: .03em; }
.zgw-tuer.zu { cursor: default; }
.zgw-tuer.zu .zgw-tuer-blatt { filter: saturate(.55) brightness(.8); }
.zgw-tuer.frei:hover, .zgw-tuer.frei:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.5), 0 0 0 3px rgba(227,180,72,.55); outline: none; }
.zgw-tuer.frei:not(.geoeffnet):hover .zgw-tuer-blatt { transform: rotateY(-22deg); }
.zgw-tuer.heute:not(.geoeffnet) { animation: zgwHeute 2.4s ease-in-out infinite; }
@keyframes zgwHeute { 0%,100% { box-shadow: 0 6px 16px rgba(0,0,0,.4), 0 0 0 0 rgba(227,180,72,.7); } 50% { box-shadow: 0 6px 16px rgba(0,0,0,.4), 0 0 0 6px rgba(227,180,72,.25); } }
.zgw-tuer.heute .zgw-tuer-hinweis { color: #14213d; background: var(--zgw-gold2); border-radius: 999px; padding: 1px 8px; }
.zgw-tuer.geoeffnet .zgw-tuer-blatt { transform: rotateY(-105deg); opacity: .0; }
.zgw-tuer.geoeffnet::after { content: attr(data-t); position: absolute; left: 6px; top: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center;
  font: 700 14px Georgia, serif; color: #14213d; background: var(--zgw-gold2); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.zgw-tuer-stern { position: absolute; right: 6px; bottom: 4px; color: #ffd76a; font-size: 20px; text-shadow: 0 0 8px rgba(255,215,106,.9), 0 1px 2px rgba(0,0,0,.6); }

/* ---------- Extras + Hintergrund ---------- */
.zgw-extras, .zgw-hg-teil { margin-top: 26px; }
.zgw-extras h2, .zgw-hg-teil h2 { font-family: Georgia, serif; font-size: 22px; color: var(--zgw-gold2); margin: 0 0 12px; }
.zgw-extra-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.zgw-extra { display: grid; grid-template-columns: 140px 1fr; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--zgw-tinte); background: var(--zgw-creme);
  box-shadow: 0 10px 24px rgba(0,0,0,.3); transition: transform .2s ease; }
.zgw-extra:hover, .zgw-extra:focus-visible { transform: translateY(-2px); outline: 3px solid rgba(227,180,72,.6); }
.zgw-extra-bild { position: relative; background-size: cover; background-position: center; min-height: 120px; }
.zgw-marke { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 700; color: #14213d; background: var(--zgw-gold2); border-radius: 999px; padding: 2px 9px; }
.zgw-extra-text { display: grid; gap: 4px; align-content: center; padding: 12px 14px; min-width: 0; }
.zgw-extra-text b { font-family: Georgia, serif; font-size: 18px; color: var(--zgw-navy); }
.zgw-extra-text span { font-size: 15px; }
.zgw-extra-text em { font-style: normal; font-weight: 700; color: #8a6414; }
.zgw-wahl { display: grid; gap: 14px; }
.zgw-wahl-reihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .zgw-wahl-reihe { grid-template-columns: repeat(2, 1fr); } }
.zgw-hg-knopf { position: relative; border: 2px solid rgba(255,255,255,.25); border-radius: 14px; padding: 0; overflow: hidden; cursor: pointer; background: #0f1a33; font: inherit; color: #fff; }
.zgw-hg-knopf img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zgw-hg-knopf span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-weight: 700; font-size: 14px; background: linear-gradient(transparent, rgba(10,18,40,.85)); }
.zgw-hg-knopf.an { border-color: var(--zgw-gold); box-shadow: 0 0 0 3px rgba(227,180,72,.45); }
.zgw-hg-knopf.an::after { content: '✓'; position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #14213d; background: var(--zgw-gold2); font-weight: 700; }
.zgw-schalter { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; color: #fff; }
.zgw-schalter input { position: absolute; opacity: 0; pointer-events: none; }
.zgw-schiene { position: relative; width: 52px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.25); border: 1.5px solid rgba(255,255,255,.5); transition: background .2s; flex: none; }
.zgw-schiene i { position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s; }
.zgw-schalter input:checked + .zgw-schiene { background: var(--zgw-gold); border-color: var(--zgw-gold2); }
.zgw-schalter input:checked + .zgw-schiene i { transform: translateX(22px); }
.zgw-schalter input:focus-visible + .zgw-schiene { box-shadow: 0 0 0 3px rgba(227,180,72,.55); }

/* ---------- Türchen-Seite ---------- */
.zgw-tuerseite { max-width: 860px; }
.zgw-gross { position: relative; margin: 0 0 16px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 2px solid rgba(227,180,72,.7); perspective: 1200px; background: #0f1a33; }
.zgw-gross img { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zgw-fluegel { position: absolute; top: 0; bottom: 0; width: 50%; display: none; background: radial-gradient(circle at 50% 40%, #2d4a86, #14213d); border: 2px solid rgba(227,180,72,.8); }
.zgw-fluegel b { position: absolute; right: -0.5em; top: 50%; transform: translateY(-50%); font: 700 clamp(40px, 8vw, 80px) Georgia, serif; color: var(--zgw-gold2); text-shadow: 0 3px 10px rgba(0,0,0,.5); z-index: 1; }
.zgw-fluegel.l { left: 0; transform-origin: left center; }
.zgw-fluegel.r { right: 0; transform-origin: right center; }
.zgw-gross.neu .zgw-fluegel { display: block; animation: zgwFluegelL 1.4s cubic-bezier(.5,.1,.3,1) .35s forwards; }
.zgw-gross.neu .zgw-fluegel.r { animation-name: zgwFluegelR; }
@keyframes zgwFluegelL { to { transform: rotateY(-110deg); opacity: 0; } }
@keyframes zgwFluegelR { to { transform: rotateY(110deg); opacity: 0; } }
.zgw-datum { position: absolute; right: 12px; bottom: 12px; font-weight: 700; font-size: 14px; color: #14213d; background: var(--zgw-gold2); border-radius: 999px; padding: 3px 12px; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.zgw-tuer-kopf { margin: 4px 0 14px; }
.zgw-stufen { display: inline-flex; gap: 6px; padding: 5px; margin: 0 0 12px; border-radius: 999px; background: rgba(10,18,40,.6); border: 1.5px solid rgba(246,217,138,.4); flex-wrap: wrap; }
.zgw-stufe { font: inherit; font-weight: 700; font-size: 15px; color: #fbeccb; background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.zgw-stufe.an { color: #14213d; background: linear-gradient(#f6d98a, #e3b448); }
.zgw-pergament { color: var(--zgw-tinte); background: var(--zgw-creme); border-radius: 18px; padding: 18px 22px; box-shadow: 0 10px 26px rgba(0,0,0,.3), inset 0 0 0 1px rgba(227,180,72,.35); }
.zgw-pergament p { margin: 0 0 .7em; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.65; }
.zgw-pergament p:last-child { margin-bottom: 0; }
.zgw-lesetext.leicht { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.8; letter-spacing: .01em; }
.zgw-geschichte p { text-align: left; }
.zgw-klein-titel { display: block; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--zgw-gold2); margin-bottom: 6px; }
.zgw-lesewort { margin: 16px 0 0; }
.zgw-silben { display: inline-flex; flex-wrap: wrap; gap: 2px; font: 700 clamp(26px, 4vw, 38px) Georgia, serif; padding: 8px 16px; border-radius: 14px; background: rgba(253,246,231,.95); }
.zgw-silbe.s0 { color: #1d4f9c; } .zgw-silbe.s1 { color: #b8323a; }
.zgw-staunen { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(227,180,72,.16); border: 1.5px solid rgba(246,217,138,.5); color: #fff6dd; }
.zgw-staunen span { color: var(--zgw-gold2); }
.zgw-aufgabe { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(10,18,40,.6); border: 1.5px solid rgba(246,217,138,.4); }
.zgw-helfer { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.zgw-helfer-bild { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid var(--zgw-gold); box-shadow: 0 0 0 3px rgba(227,180,72,.25), 0 6px 14px rgba(0,0,0,.35); animation: zgwWippen 3.2s ease-in-out infinite; }
.zgw-helfer-bild img { width: 100%; height: 100%; object-fit: cover; }
.zgw-helfer-text { display: grid; gap: 1px; min-width: 0; }
.zgw-helfer-text .zgw-klein-titel { margin: 0; }
.zgw-helfer-text b { font-size: 19px; color: #fff; }
.zgw-helfer-text span:last-child:not(.zgw-klein-titel) { font-size: 15px; color: #fbeccb; }
.zgw-frage { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: #fff; }
.zgw-raetseltext { font-weight: 600; }
.zgw-antworten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.zgw-antwort { font: inherit; font-weight: 700; font-size: 17px; color: var(--zgw-tinte); background: var(--zgw-creme); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer; text-align: center; transition: transform .15s; }
.zgw-wortknopf { font-size: 21px; letter-spacing: .02em; }
.zgw-antwort:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--zgw-gold); }
.zgw-antwort.richtig { background: #d9f0e1; border-color: var(--zgw-gruen); color: #134a2c; }
.zgw-antwort.falsch { opacity: .5; text-decoration: line-through; }
.zgw-antwort:disabled { cursor: default; }
.zgw-eingabe { display: flex; gap: 10px; flex-wrap: wrap; }
.zgw-eingabe input { flex: 1 1 180px; min-width: 0; font: 700 22px Georgia, serif; padding: 10px 14px; border-radius: 14px; border: 2px solid rgba(246,217,138,.6); background: var(--zgw-creme); color: var(--zgw-tinte); }
.zgw-einheit { align-self: center; font: 700 20px Georgia, serif; color: #fbeccb; }
.zgw-eingabe input:focus { outline: none; box-shadow: 0 0 0 3px rgba(227,180,72,.5); }
.zgw-eingabe input.richtig { border-color: var(--zgw-gruen); background: #d9f0e1; }
.zgw-eingabe input.wackel { animation: zgwWackel .4s; }
@keyframes zgwWackel { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.zgw-rueck { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; color: #fbeccb; }
.zgw-rueck.gut { color: #9be3b4; }
.zgw-hilfen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.zgw-tipp { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,215,106,.15); color: #fff3cf; }
.zgw-loesung { display: grid; gap: 4px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(155,227,180,.14); border: 1.5px solid rgba(155,227,180,.5); }
.zgw-loesung b { color: #9be3b4; font-size: 18px; }
.zgw-gold, .zgw-leise { font: inherit; font-weight: 700; border-radius: 999px; padding: 11px 20px; cursor: pointer; }
.zgw-gold { color: #14213d; background: linear-gradient(#f6d98a, #e3b448); border: 0; box-shadow: 0 5px 14px rgba(0,0,0,.3); }
.zgw-gold:disabled { opacity: .6; cursor: default; }
.zgw-leise { color: #fbeccb; background: transparent; border: 1.5px solid rgba(246,217,138,.6); }
.zgw-gold:focus-visible, .zgw-leise:focus-visible, .zgw-antwort:focus-visible, .zgw-tuer:focus-visible, .zgw-hg-knopf:focus-visible, .zgw-stufe:focus-visible, .zgw-rund:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.zgw-unten { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.zgw-abschluss { position: relative; overflow: hidden; margin-top: 22px; padding: 22px; border-radius: 22px; text-align: center; background: radial-gradient(circle at 50% 0%, #2d4a86, #14213d); border: 2px solid var(--zgw-gold); }
.zgw-abschluss h2 { font-family: Georgia, serif; font-size: 30px; margin: 0 0 6px; color: var(--zgw-gold2); }
.zgw-abschluss p { margin: 0 auto 14px; max-width: 46ch; color: #fbeccb; }
.zgw-abschluss .zgw-kopf-figuren { justify-content: center; }
.zgw-abschluss-sterne { position: absolute; inset: 0; pointer-events: none; }
.zgw-abschluss-sterne i { position: absolute; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 6px #ffd76a; animation: zgwFunkeln 3s ease-in-out infinite; }

/* ---------- Meldung ---------- */
.zgw-meldung { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9600; max-width: min(92vw, 520px);
  padding: 12px 18px; border-radius: 14px; background: #14213d; color: #fff; border: 1.5px solid var(--zgw-gold); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-weight: 700; text-align: center; transition: opacity .4s; }
.zgw-meldung.weg { opacity: 0; }

/* ---------- Pop-up ---------- */
.zgw-neu { position: fixed; inset: 0; z-index: 9500; display: flex; padding: 16px; opacity: 0; transition: opacity .35s ease; overflow-y: auto; }
.zgw-neu.da { opacity: 1; } .zgw-neu.weg { opacity: 0; }
.zgw-neu-himmel { position: fixed; inset: 0; background: rgba(8,14,32,.78); backdrop-filter: blur(3px); }
.zgw-neu .zgw-fall { position: fixed; }
.zgw-neu-karte { position: relative; z-index: 1; width: min(560px, 100%); margin: auto; border-radius: 26px; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(130% 100% at 50% 0%, #22396b 0%, #14213d 60%, #0d1630 100%); border: 2px solid var(--zgw-gold); box-shadow: 0 30px 70px rgba(0,0,0,.55);
  transform: translateY(14px) scale(.97); transition: transform .45s cubic-bezier(.2,.8,.2,1); padding-bottom: 18px; }
.zgw-neu.da .zgw-neu-karte { transform: none; }
.zgw-neu-zu { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(10,18,40,.7); color: #fff; font-size: 18px; cursor: pointer; }
.zgw-neu-bild { position: relative; aspect-ratio: 16 / 8; background-size: cover; background-position: center; }
@media (max-height: 640px) { .zgw-neu-bild { aspect-ratio: 16 / 5; } .zgw-neu-figuren { display: none; } .zgw-neu-titel { margin-top: 22px; } }
.zgw-neu-band { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; font-weight: 700; color: #14213d; background: linear-gradient(#f6d98a, #e3b448); border-radius: 999px; padding: 5px 16px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.zgw-neu-figuren { justify-content: center; margin: 26px 0 4px; }
.zgw-neu-figuren .zgw-fig { width: 54px; height: 54px; }
.zgw-neu-titel { font-family: Georgia, serif; font-size: clamp(24px, 4vw, 32px); margin: 6px 16px 4px; color: #fff; }
.zgw-neu-unter { margin: 0 20px 14px; color: #fbeccb; }
.zgw-neu-knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.zgw-nie { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #e9dcc0; cursor: pointer; }
.zgw-nie input { position: absolute; opacity: 0; }
.zgw-nie-kasten { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #e9dcc0; display: grid; place-items: center; }
.zgw-nie input:checked + .zgw-nie-kasten { background: var(--zgw-gold); border-color: var(--zgw-gold); }
.zgw-nie input:checked + .zgw-nie-kasten::after { content: '✓'; color: #14213d; font-weight: 700; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .zgw-knopf, .zgw-fig, .zgw-sterne i, .zgw-glanz, .zgw-tuer, .zgw-tuer-blatt, .zgw-gross .zgw-fluegel { animation: none !important; transition: none !important; }
}
/* große Bildschirme (wie in den Apps ab 2100 px) */
@media (min-width: 2100px) and (min-height: 1150px) { .zgw-ebene .zgw-raum, .zgw-neu-karte { zoom: 1.3; } }
