/* Adventskalender: zwei Designs (Dunkelkammer, Klassisch).
   Bewusst plain CSS ausserhalb des Webpack-Bundles: wird direkt vom Template geladen. */

/* Ohne sichtbare Fenster-Scrollleiste: auf dem farbigen Kalender stand sie als Streifen neben der Navigation,
   die dadurch nicht bis zum Rand reichte. Scrollen per Rad, Touch und Tastatur bleibt. */
html:has(body.module-xms.xmsListDoorsPage) { scrollbar-width: none; }
html:has(body.module-xms.xmsListDoorsPage)::-webkit-scrollbar { display: none; }

/* ============ Seitenhintergrund je Design ============ */
body.module-xms.xmsListDoorsPage[data-xms-skin] {
  background-attachment: fixed !important;
  background-size: cover !important;
}
body.module-xms.xmsListDoorsPage[data-xms-skin="klassik"] {
  background-color: #6e0a16 !important;
  background-image: radial-gradient(ellipse at 50% 30%, #d41f30 0%, #a3121f 38%, #6e0a16 75%, #4a0610 100%) !important;
}
body.module-xms.xmsListDoorsPage[data-xms-skin="kammer"] {
  background-color: #0c0a0b !important;
  background-image: radial-gradient(ellipse at 50% 0%, #2a0e0c 0%, #140c0b 40%, #0c0a0b 100%) !important;
}

/* ============ Grundgerüst ============ */
.xmsx { position: relative; overflow: hidden; margin: 0 -12px; padding: 0 12px 40px; min-height: 80vh; }
.xmsx *, .xmsx *::before, .xmsx *::after { box-sizing: border-box; }
.xmsx-skin { display: none; position: relative; }
.xmsx[data-skin="kammer"] .sk-kammer,
.xmsx[data-skin="klassik"] .sk-klassik { display: block; }
.xmsx button { font: inherit; }

.xmsx-bar { position: relative; z-index: 20; pointer-events: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 0 0; max-width: 1240px; margin: 0 auto; }
.xmsx-switch { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.xmsx-switch-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #f2ece6; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.xmsx-switch-btn:hover { background: rgba(255, 255, 255, .12); }
.xmsx-switch-btn.is-active { background: #f5d98a; color: #3a0a10; }
.xmsx-snowbtn { pointer-events: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .32); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); cursor: pointer; text-decoration: none; font-size: 18px; }
.xmsx-snowbtn.is-off > i { opacity: .55; }
.xmsx-note { position: relative; z-index: 5; text-align: center; margin: 24px auto 0; color: #fff; font-size: 15px; }

.xmsx-snow { position: fixed; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.xmsx-flake { position: absolute; top: -40px; border-radius: 50%; background: #fff; animation-name: xmsxFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.xmsx-crystal { background: none; border-radius: 0; }
.xmsx-crystal svg { display: block; animation: xmsxTwirl 6s linear infinite; }
@keyframes xmsxTwirl { to { transform: rotate(360deg); } }
@keyframes xmsxFall {
  0% { transform: translate(0, -40px); }
  25% { transform: translate(20px, 26vh); }
  50% { transform: translate(-14px, 52vh); }
  75% { transform: translate(16px, 78vh); }
  100% { transform: translate(0, 108vh); }
}

.xmsx-tip { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); z-index: 12; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #fff8e6; color: #3a0a10; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: xmsxFade .3s both; pointer-events: none; }
@keyframes xmsxFade { from { opacity: 0; } to { opacity: 1; } }
.xms-door.is-shake { animation: xmsxShake .55s both !important; }
@keyframes xmsxShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px) rotate(-1.5deg); } 40% { transform: translateX(7px) rotate(1.5deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.xms-door:focus-visible { outline: 3px solid #f5d98a; outline-offset: 5px; }

/* =====================================================================
   KLASSISCH
   ===================================================================== */
.sk-klassik { color: #fff; font-family: 'Roboto', system-ui, sans-serif; padding-bottom: 120px; }
.kl-pattern { position: absolute; inset: -40px; opacity: .09; pointer-events: none; background-image: radial-gradient(circle, #f5d98a 1.5px, transparent 2px); background-size: 46px 46px; animation: klPan 60s linear infinite; }
@keyframes klPan { from { background-position: 0 0; } to { background-position: 460px 460px; } }
.kl-tree { position: absolute; right: -80px; top: 220px; width: 560px; height: 820px; pointer-events: none; opacity: .5; }
.kl-tree-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: klDraw 5s .4s ease-out forwards; }
@keyframes klDraw { to { stroke-dashoffset: 0; } }
.kl-tl { animation: klTw 2.2s ease-in-out infinite; }
@keyframes klTw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.kl-orns { position: absolute; inset: 0 0 auto; height: 0; z-index: 3; pointer-events: none; }
.kl-hang { position: absolute; top: 22px; display: flex; flex-direction: column-reverse; align-items: center; transform: translateX(-50%); animation: klFloat 7s ease-in-out infinite; }
@keyframes klFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.kl-hang.is-flip .kl-cloud { transform: scaleX(-1); }
/* Kleine Wolke links: schmal am Rand, breit mittig zwischen grosser Wolke (5,5 % + halbe Breite) und Radio (50 % - 620px) */
.kl-hang-mid { left: 1.2%; }
@media (min-width: 1560px) { .kl-hang-mid { left: calc(27.75% - 280px); } }
.kl-cloud { position: relative; z-index: 1; display: block; filter: drop-shadow(0 4px 8px rgba(60, 0, 8, .35)); }
.kl-pend { position: absolute; top: calc(100% + 1px); left: 50%; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; z-index: -1; }
.kl-pend .kl-orn { margin-top: 0; }
.kl-radio { position: relative; }
.kl-radio > .kl-pend { left: 50px; }
.xmsx-snowbtn { position: relative; }
.xmsx:not([data-skin="klassik"]) .xmsx-snowbtn > .kl-pend { display: none; }
.kl-orn { position: relative; margin-top: -12%; transform-origin: 50% 0; animation: klPend 4s ease-in-out infinite; }
.kl-orn i { display: block; width: 1px; margin: 0 auto; background: linear-gradient(#f5d98a, #b8862a); }
@keyframes klPend { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.kl-ball { position: relative; border-radius: 50%; box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .35), 0 8px 20px rgba(0, 0, 0, .35); }
.kl-ball::before { content: ''; position: absolute; left: 50%; top: -8px; width: 14px; height: 10px; margin-left: -7px; border-radius: 2px; background: linear-gradient(90deg, #9c7522, #f5d98a, #9c7522); }
.kl-ball::after { content: ''; position: absolute; left: 22%; top: 18%; width: 28%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(1px); transform: rotate(-30deg); }
.kl-wave { position: absolute; left: -12px; right: -12px; bottom: 0; width: calc(100% + 24px); height: 200px; pointer-events: none; }
.kl-wave path { stroke-dasharray: 40 18; animation: klFlow 12s linear infinite; }
@keyframes klFlow { to { stroke-dashoffset: -580; } }

.kl-inner { position: relative; z-index: 5; max-width: 1240px; margin: 0 auto; padding: 10px 0 40px; display: flex; flex-direction: column; gap: 34px; }
.kl-head { display: flex; justify-content: flex-end; }
.kl-radio { display: flex; align-items: center; gap: 4px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(40, 0, 6, .45); box-shadow: inset 0 0 0 1px rgba(245, 217, 138, .45); backdrop-filter: blur(8px); }
.kl-rbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: linear-gradient(135deg, #f5d98a, #b8862a); color: #4a0a10; transition: transform .2s; }
.kl-rbtn:hover { transform: scale(1.08); }
.kl-ghost { background: transparent; color: #f5d98a; box-shadow: inset 0 0 0 1px rgba(245, 217, 138, .6); }
.kl-radio-txt { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 110px; min-height: 44px; justify-content: center; padding: 2px 8px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.kl-radio-txt:hover { background: rgba(245, 217, 138, .12); }
.kl-radio-txt:focus-visible { outline: 2px solid #f5d98a; outline-offset: 2px; }
.kl-radio-label { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #f5d98a; }
.kl-radio-name { font-size: 15px; font-weight: 700; color: #fff; }
.kl-notes { position: absolute; left: 6px; top: 2px; z-index: 2; width: 22px; height: 24px; pointer-events: none; }
.kl-notes span { position: absolute; bottom: 0; font-size: 16px; color: #f5d98a; opacity: 0; }
.kl-notes.on span { animation: klNote 2.4s ease-out infinite; }
.kl-notes.on span:nth-child(2) { left: 9px; animation-delay: .8s; }
.kl-notes.on span:nth-child(3) { left: 4px; animation-delay: 1.6s; }
@keyframes klNote { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(8px, -30px) rotate(20deg); opacity: 0; } }

.kl-brand { margin-bottom: -14px; font-family: 'Rubik Bubbles', system-ui, sans-serif; font-weight: 400; font-size: clamp(24px, 3.6vw, 52px); line-height: 1; color: #fff; text-shadow: 0 0 18px rgba(245, 217, 138, .4), 0 3px 0 rgba(90, 10, 18, .6); }
.kl-titlebox { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.kl-title { margin: 0; font-family: 'Rubik Bubbles', system-ui, sans-serif; font-weight: 400; font-size: clamp(48px, 8vw, 118px); line-height: 1.05; color: #fff; text-shadow: 0 0 18px rgba(245, 217, 138, .4), 0 4px 0 rgba(90, 10, 18, .6); animation: klBreathe 5s ease-in-out infinite; }
@keyframes klBreathe { 0%, 100% { text-shadow: 0 0 18px rgba(245, 217, 138, .4), 0 4px 0 rgba(90, 10, 18, .6); } 50% { text-shadow: 0 0 40px rgba(245, 217, 138, .8), 0 4px 0 rgba(90, 10, 18, .6); } }
.kl-sub { margin: 0; font-size: 17px; line-height: 1.5; color: #ffe8e8; }
.kl-sub strong { color: #f5d98a; }

.kl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 20px; }
.kl-door { position: relative; container-type: inline-size; aspect-ratio: 1 / 1; border: 0; padding: 0; margin: 0; background: transparent; color: inherit; cursor: pointer; perspective: 1000px; animation: klIn .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes klIn { from { opacity: 0; transform: translateY(30px) rotateX(30deg); } to { opacity: 1; transform: none; } }
.kl-content { position: absolute; inset: 0; border-radius: 24px; background-color: #2a0610; background-size: cover; background-position: center; box-shadow: inset 0 0 0 2px #f5d98a; transition: transform .5s; }
.kl-wing { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(160deg, #c41e2e, #8a0f1c 70%, #6e0a16); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1.1), filter .3s; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(245, 217, 138, .7), inset 0 0 0 6px rgba(110, 10, 22, .6), inset 0 0 0 7px rgba(245, 217, 138, .35); overflow: hidden; }
.kl-wing-l { left: 0; border-radius: 24px 0 0 24px; transform-origin: left center; }
.kl-wing-r { right: 0; border-radius: 0 24px 24px 0; transform-origin: right center; }
.kl-wing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(-120%); }
/* Schimmer nur auf einem Türchen zur Zeit, zufällig gewählt (xmsSkins.js setzt is-sheen). */
.kl-door.is-sheen .kl-wing::after { animation: klSheen 1.5s ease-in-out; }
.kl-door.is-sheen .kl-wing-r::after { animation-delay: .35s; animation-fill-mode: backwards; }
@keyframes klSheen { 0% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.kl-cap { position: absolute; left: 3px; width: calc(100% - 6px); z-index: 3; pointer-events: none; overflow: visible; filter: drop-shadow(0 2px 1.5px rgba(60, 0, 8, .4)) drop-shadow(0 0 5px rgba(255, 255, 255, .35)); transition: opacity .4s; }
.kl-cap.flip { transform: scaleX(-1); }
.kl-face { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9cqw; }
.kl-num { display: block; text-align: center; font-family: 'Rubik Bubbles', sans-serif; font-weight: 400; font-size: 32cqw; line-height: 1; color: #fff; text-shadow: 0 3px 0 rgba(70, 0, 10, .45), 0 0 22px rgba(255, 255, 255, .3); transition: opacity .35s .2s, transform .6s .2s; }
.kl-lock { position: relative; flex: none; width: 24cqw; aspect-ratio: 1 / 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #5a0a12; background: radial-gradient(circle at 35% 30%, #fff6d8, #e8bd55 45%, #a57a22 100%); box-shadow: 0 0 0 3px rgba(110, 10, 22, .55), 0 0 0 5px rgba(245, 217, 138, .55), 0 6px 14px rgba(0, 0, 0, .4), inset 0 -3px 6px rgba(0, 0, 0, .25); transition: transform .45s cubic-bezier(.5, 0, .3, 1.4), opacity .35s .35s; }
.kl-lock svg { width: 46%; height: 46%; }
.kl-door:hover .kl-lock { animation: klWig .6s ease-in-out; }
@keyframes klWig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
.kl-door:hover .kl-wing-l { transform: rotateY(-14deg); }
.kl-door:hover .kl-wing-r { transform: rotateY(14deg); }
.kl-door.is-open .kl-wing { transition-delay: .3s; }
.kl-door.is-open .kl-wing-l { transform: rotateY(-122deg); }
.kl-door.is-open .kl-wing-r { transform: rotateY(122deg); }
.kl-door.is-open .kl-lock { transform: rotate(100deg) scale(.7); opacity: 0; animation: none; }
.kl-door.is-open .kl-num { opacity: 0; transform: scale(1.5); }
.kl-door.is-open .kl-cap { opacity: 0; }
.kl-door.is-open:hover .kl-content { transform: scale(1.04); }
.kl-door.is-locked .kl-wing, .kl-door.is-missed .kl-wing { filter: brightness(.72) saturate(.8); }
.kl-door.is-locked .kl-lock { background: radial-gradient(circle at 35% 30%, #e8e4dc, #b9b2a4 45%, #6e675c 100%); color: #3a3530; }
.kl-door.is-today { animation: klIn .8s cubic-bezier(.2, .8, .2, 1) both, klGlow 2s ease-in-out infinite; }
@keyframes klGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 217, 138, 0)); } 50% { filter: drop-shadow(0 0 18px rgba(245, 217, 138, .85)); } }
.kl-door.is-today .kl-lock { animation: klLockGlow 1.8s ease-in-out infinite; }
@keyframes klLockGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(110, 10, 22, .55), 0 0 0 5px rgba(245, 217, 138, .55); } 50% { box-shadow: 0 0 0 3px rgba(110, 10, 22, .55), 0 0 0 5px rgba(245, 217, 138, .9), 0 0 22px 8px rgba(245, 217, 138, .55); } }
.kl-today { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; padding: 3px 10px; border-radius: 999px; background: #f5d98a; color: #4a0a10; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* ---------------------------------------------------------------------------
   Türchen als Geschenk in Seidenpapier (Klassisch, Einstellung xmsKlassikDoors = gift)
   Einheitlich zerknittertes Seidenpapier, nur die Bandfarbe wechselt (vier Bänder).
   Öffnen: Schleife fliegt ab, Anhänger fällt, Band löst sich, das Papier sinkt zu einem Nest
   zusammen und fällt seitlich auf; danach liegt der Inhalt (kl-content) frei und fliegt von
   dort in die Vollansicht.
   --------------------------------------------------------------------------- */
.kl-gift { display: none; }
.kl-gifts .kl-gift { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.kl-gifts .kl-wing, .kl-gifts .kl-cap, .kl-gifts .kl-face { display: none; }
.kl-gifts .kl-content { inset: 22% 10% 2%; border-radius: 3cqw; box-shadow: 0 0 0 1px rgba(255, 245, 225, .6); }
.kl-gifts .kl-door.is-today { animation: klIn .8s cubic-bezier(.2, .8, .2, 1) both, klGiftGlow 2.2s ease-in-out infinite; }
@keyframes klGiftGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 217, 138, 0)); } 50% { filter: drop-shadow(0 0 16px rgba(245, 217, 138, .8)); } }
.kl-gifts .kl-today { top: auto; bottom: -9px; }

/* Seidenpapier und Band je Variante */
.kl-gift {
    --tissue: radial-gradient(ellipse 30% 20% at 20% 30%, rgba(255, 255, 255, .6), transparent 70%),
        radial-gradient(ellipse 25% 35% at 75% 25%, rgba(150, 120, 90, .18), transparent 70%),
        radial-gradient(ellipse 35% 20% at 60% 75%, rgba(255, 255, 255, .5), transparent 70%),
        radial-gradient(ellipse 25% 30% at 25% 80%, rgba(150, 120, 90, .2), transparent 70%),
        radial-gradient(ellipse 18% 26% at 45% 50%, rgba(150, 120, 90, .12), transparent 70%),
        linear-gradient(160deg, #f6efe2, #e3d6bf);
    --band: linear-gradient(90deg, #5c0d16, #a8222f 50%, #5c0d16);
    --band-v: linear-gradient(180deg, #5c0d16, #a8222f 50%, #5c0d16);
    --band-solid: #93202b;
    --band-shade: rgba(40, 0, 6, .35);
}
.kl-gift--p1 { --band: linear-gradient(90deg, #142a1e, #3a6249 50%, #142a1e); --band-v: linear-gradient(180deg, #142a1e, #3a6249 50%, #142a1e); --band-solid: #2c4d39; --band-shade: rgba(0, 20, 10, .35); }
.kl-gift--p2 { --band: linear-gradient(90deg, #8a6a1e, #e3c272 50%, #8a6a1e); --band-v: linear-gradient(180deg, #8a6a1e, #e3c272 50%, #8a6a1e); --band-solid: #b8943e; --band-shade: rgba(60, 40, 5, .35); }
.kl-gift--p3 { --band: linear-gradient(90deg, #5e2c14, #b0663a 50%, #5e2c14); --band-v: linear-gradient(180deg, #5e2c14, #b0663a 50%, #5e2c14); --band-solid: #8a4a2a; --band-shade: rgba(50, 20, 5, .35); }

/* Päckchen: Seidenpapier mit weichen, unregelmäßigen Kanten, Band kreuzweise */
.kl-gift-lid { display: none; }
.kl-gift-body { position: absolute; left: 6%; right: 6%; top: 20%; bottom: 0; border-radius: 14% 18% 12% 16% / 16% 12% 18% 14%; background: var(--tissue); transform-origin: 50% 100%; box-shadow: 0 2cqw 4cqw rgba(30, 0, 6, .4), inset 0 -4cqw 6cqw rgba(120, 90, 50, .2); transition: transform .55s cubic-bezier(.5, 0, .3, 1) .3s, border-radius .55s ease .3s, filter .3s; }
.kl-gift-body::before, .kl-gift-body::after { content: ''; position: absolute; transition: opacity .3s ease .15s; }
.kl-gift-body::before { left: 0; right: 0; top: 40%; height: 12%; background: var(--band-v); box-shadow: 0 .6cqw 1cqw var(--band-shade); }
.kl-gift-body::after { top: 0; bottom: 0; left: 43%; width: 14%; background: var(--band); box-shadow: .6cqw 0 1cqw var(--band-shade); }

/* Große Schleife oben */
.kl-gift-bow { position: absolute; left: 50%; top: 2%; width: 56%; height: 26%; margin-left: -28%; z-index: 2; transition: transform .6s cubic-bezier(.3, 0, .2, 1), opacity .4s ease .2s; }
.kl-gift-loop { position: absolute; top: 4%; width: 50%; height: 80%; border-radius: 50% 50% 40% 40%; background: radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, .25), transparent 60%), var(--band-solid); box-shadow: inset 0 -1.6cqw 2cqw var(--band-shade), 0 1cqw 1.4cqw rgba(30, 0, 6, .3); }
.kl-gift-loop-l { left: 0; transform: rotate(-20deg); transform-origin: 100% 80%; }
.kl-gift-loop-r { right: 0; transform: rotate(20deg); transform-origin: 0 80%; }
.kl-gift-tail { position: absolute; top: 56%; width: 16%; height: 80%; background: var(--band-solid); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.kl-gift-tail-l { left: 32%; transform: rotate(20deg); transform-origin: 50% 0; }
.kl-gift-tail-r { right: 32%; transform: rotate(-20deg); transform-origin: 50% 0; }
.kl-gift-knot { position: absolute; left: 50%; top: 28%; width: 22%; height: 52%; margin-left: -11%; border-radius: 40%; background: var(--band-solid); box-shadow: inset 0 -1cqw 1.2cqw var(--band-shade), 0 .6cqw 1cqw rgba(30, 0, 6, .35); }

/* Anhänger aus Packpapier mit Nummer */
.kl-gift-tag { position: absolute; right: 5%; top: 58%; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 1.5cqw; width: 36%; height: 21%; padding-left: 6%; background: radial-gradient(circle at 11% 50%, transparent 1.8cqw, rgba(70, 40, 15, .5) 1.9cqw, transparent 2.5cqw), linear-gradient(160deg, #c9a173, #a57a4e); color: #3a1a08; clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 50%); filter: drop-shadow(0 1cqw 1.2cqw rgba(30, 0, 6, .4)); transform: rotate(12deg); transform-origin: 8% 50%; transition: transform .55s cubic-bezier(.5, 0, .3, 1), opacity .4s ease .15s; }
.kl-gift-num { position: relative; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 14cqw; line-height: 1; letter-spacing: -.02em; }
.kl-gift-padlock { position: relative; width: 7cqw; height: 7cqw; color: #5a3a1a; }

/* Aufgefallenes Seidenpapier (nur geöffnet sichtbar) */
.kl-gift-flap { position: absolute; top: 58%; width: 36%; height: 38%; border-radius: 50% 50% 30% 30%; background: var(--tissue); box-shadow: 0 1cqw 2cqw rgba(30, 0, 6, .3); opacity: 0; transition: transform .5s cubic-bezier(.3, 0, .2, 1) .45s, opacity .25s ease .45s; }
.kl-gift-flap-l { left: 2%; transform: rotate(-6deg) scale(.7); transform-origin: 80% 100%; }
.kl-gift-flap-r { right: 2%; transform: rotate(6deg) scale(.7); transform-origin: 20% 100%; }

/* Zustände */
.kl-gifts .kl-door:hover:not(.is-open) .kl-gift-bow { transform: translateY(-8%) rotate(-3deg); }
.kl-gifts .kl-door:hover:not(.is-open) .kl-gift-tag { transform: rotate(6deg); }
.kl-gifts .kl-door.is-locked .kl-gift-body, .kl-gifts .kl-door.is-missed .kl-gift-body { filter: brightness(.88) saturate(.85); }
.kl-gifts .kl-door.is-open .kl-gift-bow { transform: translate(-30%, -150%) rotate(-28deg); opacity: 0; }
.kl-gifts .kl-door.is-open .kl-gift-tag { transform: translateY(60%) rotate(34deg); opacity: 0; }
.kl-gifts .kl-door.is-open .kl-gift-body { transform: scaleY(.3); border-radius: 40% 40% 14% 14% / 30% 30% 14% 14%; }
.kl-gifts .kl-door.is-open .kl-gift-body::before, .kl-gifts .kl-door.is-open .kl-gift-body::after { opacity: 0; }
.kl-gifts .kl-door.is-open .kl-gift-flap { opacity: 1; }
.kl-gifts .kl-door.is-open .kl-gift-flap-l { transform: translateX(-12%) rotate(-28deg); }
.kl-gifts .kl-door.is-open .kl-gift-flap-r { transform: translateX(12%) rotate(28deg); }
.kl-gifts .kl-door.is-sheen .kl-gift-bow { animation: klGiftHop .9s ease-in-out; }
@keyframes klGiftHop { 0%, 100% { translate: 0 0; } 30% { translate: 0 -10%; } 55% { translate: 0 0; } 70% { translate: 0 -4%; } }
@media (prefers-reduced-motion: reduce) {
    .kl-gift-body, .kl-gift-bow, .kl-gift-tag, .kl-gift-flap { transition-duration: .01s !important; transition-delay: 0s !important; }
}

.kl-candles { position: fixed; left: 0; right: 0; bottom: 0; height: 0; pointer-events: none; z-index: 4; }
.kl-cdl { position: absolute; bottom: 0; width: 130px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, #d9d4cc, #fffdf8 40%, #e8e2d8 70%, #bdb6aa); }
.kl-cdl-l { left: 3%; height: 120px; }
.kl-cdl-r { right: 3%; height: 150px; }
.kl-cdl::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 22px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fff, #e7e1d6); }
.kl-drip { position: absolute; top: 4px; left: 18px; width: 14px; border-radius: 0 0 8px 8px; background: #fffdf8; animation: klDrip 6s ease-in-out infinite; }
.kl-drip2 { left: 86px; animation-delay: -3s; }
@keyframes klDrip { 0%, 100% { height: 20px; } 50% { height: 34px; } }
.kl-cwick { position: absolute; left: 50%; top: -30px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: #2a1a10; }
.kl-cflame { position: absolute; left: 50%; top: -100px; width: 38px; height: 80px; margin-left: -19px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 78%, #fff 0 16%, #ffe9a0 30%, #ffb43b 55%, rgba(255, 110, 20, 0) 72%); transform-origin: 50% 92%; animation: klFlick 1.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255, 190, 80, .95)); }
.kl-cdl-r .kl-cflame { animation-delay: -.6s; }
@keyframes klFlick { 0%, 100% { transform: rotate(-2deg) scale(1, 1); } 20% { transform: rotate(3deg) scale(.96, 1.08); } 45% { transform: rotate(-3deg) scale(1.03, .92); } 70% { transform: rotate(2deg) scale(.98, 1.05); } }
.kl-chalo { position: absolute; left: 50%; top: -170px; width: 340px; height: 340px; margin-left: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 110, .35), transparent 62%); animation: klHalo 2.6s ease-in-out infinite; }
@keyframes klHalo { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* Radio oben links auf Höhe der Designauswahl (Leiste: 14px Abstand + 44px Zeile) */
@media (min-width: 768px) {
  .kl-head { position: absolute; top: -44px; left: 0; }
}

@media (max-width: 991px) {
  .kl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
  .kl-tree { display: none; }
}
@media (max-width: 575px) {
  .kl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kl-head { justify-content: center; }
  .kl-cdl { transform: scale(.55); transform-origin: bottom center; }
}

/* =====================================================================
   DUNKELKAMMER
   ===================================================================== */
.sk-kammer { color: #f2ece6; font-family: 'Space Grotesk', system-ui, sans-serif; }
.dk-safelight { position: absolute; left: 50%; top: -260px; width: 1100px; height: 620px; margin-left: -550px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 50, 40, .42), rgba(255, 50, 40, .08) 55%, transparent 70%); animation: dkSafe 5s ease-in-out infinite; pointer-events: none; }
@keyframes dkSafe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.dk-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.dk-lampwrap { display: flex; justify-content: center; }
.dk-lamp { width: 74px; height: 30px; border-radius: 0 0 40px 40px; background: radial-gradient(ellipse at 50% 0, #ff7a6a, #e8261c 60%, #8a0f0a); box-shadow: 0 0 50px 14px rgba(255, 60, 40, .55); animation: dkSafe 5s ease-in-out infinite; }
.dk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.dk-head-txt { display: flex; flex-direction: column; gap: 14px; }
.dk-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .24em; color: #ff9a3c; }
.dk-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(46px, 8vw, 120px); line-height: .92; letter-spacing: -.045em; color: #f2ece6; animation: dkDev 2.6s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes dkDev { 0% { opacity: 0; filter: blur(14px) brightness(.2); color: #ff4d3d; } 60% { opacity: 1; color: #ff9a3c; } 100% { filter: none; color: #f2ece6; } }
.dk-lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: #c9bfb7; }
.dk-cassette { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #1d1917; box-shadow: inset 0 0 0 1px #4a3f38, 0 16px 40px rgba(0, 0, 0, .5); }
.dk-tape { position: relative; width: 190px; height: 74px; border-radius: 8px; background: linear-gradient(180deg, #f2ece6 0 38%, #ff4d3d 38% 46%, #f2ece6 46%); display: flex; align-items: flex-end; justify-content: space-around; padding: 0 18px 8px; }
.dk-tape-label { position: absolute; left: 10px; top: 6px; right: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; color: #2a201b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.dk-reelwin { width: 34px; height: 34px; border-radius: 50%; background: #2a201b; display: flex; align-items: center; justify-content: center; }
.dk-reel { width: 26px; height: 26px; border-radius: 50%; background: repeating-conic-gradient(#f2ece6 0 20deg, #2a201b 20deg 60deg); box-shadow: 0 0 0 2px #f2ece6; }
.dk-reel.on { animation: dkSpin 1.6s linear infinite; }
@keyframes dkSpin { to { transform: rotate(360deg); } }
.dk-cbtns { display: flex; flex-direction: column; gap: 8px; }
.dk-cbtn { width: 44px; height: 44px; border-radius: 10px; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #ff4d3d; color: #1a0806; transition: transform .2s; }
.dk-cbtn:hover { transform: translateY(-2px); }
.dk-ghost { background: #2a2420; color: #f2ece6; box-shadow: inset 0 0 0 1px #6b5d54; }
.dk-marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid #3a2f2a; border-bottom: 1px solid #3a2f2a; padding: 9px 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .2em; color: #b9aea6; }
.dk-marquee > div { display: inline-block; animation: dkMq 40s linear infinite; }
@keyframes dkMq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; font-family: 'IBM Plex Mono', monospace; }
.dk-stat { display: flex; flex-direction: column; gap: 6px; }
.dk-stat-l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9aea6; }
.dk-stat-v { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; }
.dk-stat-prog { justify-content: flex-end; gap: 10px; }
.dk-stat-row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #b9aea6; }
.dk-orange { color: #ff9a3c; }
.dk-prog { height: 6px; background: #2a2420; overflow: hidden; }
.dk-prog i { display: block; height: 100%; background: #ff4d3d; box-shadow: 0 0 12px #ff4d3d; transition: width .8s; }
.dk-strips { display: flex; flex-direction: column; gap: 40px; padding-bottom: 30px; }
.dk-strip { position: relative; padding: 30px 22px; border-radius: 4px; background: linear-gradient(180deg, #2b1a0d, #3a230f 50%, #2b1a0d); box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.dk-strip.from-left { animation: dkSlideL 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.dk-strip.from-right { animation: dkSlideR 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dkSlideL { from { opacity: 0; translate: -80px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes dkSlideR { from { opacity: 0; translate: 80px 0; } to { opacity: 1; translate: 0 0; } }
.dk-strip::before, .dk-strip::after { content: ''; position: absolute; left: 10px; right: 10px; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 10px, #0c0a0b 10px 22px); border-radius: 2px; }
.dk-strip::before { top: 9px; } .dk-strip::after { bottom: 9px; }
.dk-edge { position: absolute; left: 30px; right: 30px; bottom: -1px; display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; color: #ff9a3c; transform: translateY(100%); padding-top: 4px; }
.dk-frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dk-fr { position: relative; aspect-ratio: 3 / 2; border: 0; padding: 0; margin: 0; color: inherit; cursor: pointer; border-radius: 3px; background: #0c0a0b; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.dk-fr:hover { transform: scale(1.07); z-index: 4; }
.dk-img { position: absolute; inset: 0; border-radius: 3px; background-size: cover; background-position: center; filter: brightness(.05) blur(8px) sepia(1); transition: filter 2.4s cubic-bezier(.3, .7, .2, 1); }
.dk-fr.is-open .dk-img { filter: none; }
.dk-latent { position: absolute; inset: 0; border-radius: 3px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #d9822b, #b0571a); box-shadow: inset 0 0 30px rgba(60, 20, 0, .45); transition: opacity 1s .3s; }
.dk-fr.is-open .dk-latent { opacity: 0; }
.dk-lnum { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.04em; color: #2a1206; opacity: .85; }
.dk-fr.is-locked .dk-latent, .dk-fr.is-missed .dk-latent { background: linear-gradient(135deg, #5a3418, #3d2310); }
.dk-fr.is-locked .dk-lnum { color: #c9a07a; opacity: .7; }
.dk-fnum { position: absolute; right: 6px; top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #ffd2a6; z-index: 2; }
.dk-flash { position: absolute; inset: -6px; border-radius: 6px; background: #fff; opacity: 0; pointer-events: none; }
.dk-fr.is-open .dk-flash { animation: dkFlash 1s ease-out both; }
@keyframes dkFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
.dk-mark { position: absolute; left: -14%; top: -22%; width: 128%; height: 144%; pointer-events: none; z-index: 3; }
.dk-mark ellipse { stroke-dasharray: 420; stroke-dashoffset: 420; animation: dkDraw 3.2s ease-in-out infinite; }
@keyframes dkDraw { 0% { stroke-dashoffset: 420; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
@media (max-width: 900px) { .dk-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dk-strip { padding: 30px 14px; } }

/* =====================================================================
   POPUP (Türinhalt) je Design
   ===================================================================== */
.xmsx-pop { position: relative; overflow: hidden; border-radius: 24px; }
.xmsx-pop-head { position: relative; height: 220px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 18px 24px; }
.xmsx-pop-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.xmsx-pop-num { position: relative; z-index: 1; font-size: 84px; line-height: 1; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .5); animation: xmsxPopNum 1s cubic-bezier(.2, 1.5, .3, 1) both; }
@keyframes xmsxPopNum { from { opacity: 0; transform: translateY(20px) scale(.6); } to { opacity: 1; transform: none; } }
.xmsx-pop-body { padding: 26px 30px 28px; display: flex; flex-direction: column; gap: 16px; animation: xmsxFade .5s .2s both; }
.xmsx-pop-title { margin: 0; font-size: 30px; line-height: 1.1; }
.xmsx-pop-text { font-size: 16px; line-height: 1.6; }
.xmsx-pop-text iframe, .xmsx-pop-text video, .xmsx-pop-text img { max-width: 100%; border-radius: 14px; }
.xmsx-pop-text iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.xmsx-pop-points { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; animation: xmsxPopIn .7s .6s cubic-bezier(.2, 1.6, .3, 1) both; }
@keyframes xmsxPopIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.xmsx-pop-coin { flex: none; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; animation: xmsxCoin 2.4s ease-in-out infinite; }
@keyframes xmsxCoin { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.08); filter: brightness(1.15); } }
.xmsx-pop-text h1, .xmsx-pop-text h2, .xmsx-pop-text h3, .xmsx-pop-text h4 { color: inherit !important; font-weight: 700; }

/* Modal-Rahmen um den Türinhalt ausblenden, Schließen-Knopf gut sichtbar */
body[data-xms-skin] .modal-content:has(.xmsx-pop) { position: relative; }
body[data-xms-skin] .modal-content:has(.xmsx-pop) .modal-header { position: absolute; right: 26px; top: 26px; z-index: 10; background: transparent !important; border: 0; padding: 0; min-height: 0; }
body[data-xms-skin="kammer"] .modal-content:has(.xmsx-pop) .modal-header { right: 26px; top: 26px; }
.xmsx-pop-msg { padding-right: 84px; padding-left: 84px; }
body[data-xms-skin] .modal-content:has(.xmsx-pop) .modal-title { display: none; }
body[data-xms-skin] .modal-content:has(.xmsx-pop) .modal-body { background: transparent !important; padding: 0 !important; margin: 0 !important; }
body[data-xms-skin] .modal-content:has(.xmsx-pop) .modal-footer { display: none; }
body[data-xms-skin] .modal-content:has(.xmsx-pop) .btn-close {
  width: 48px; height: 48px; padding: 0; margin: 0; border-radius: 50%; opacity: 1; filter: none !important;
  background: rgba(18, 18, 18, .62) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3e%3cpath d='M6 6l12 12M18 6L6 18'/%3e%3c/svg%3e") center / 22px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 6px 18px rgba(0, 0, 0, .35); backdrop-filter: blur(4px); opacity: .5; transition: transform .2s, background-color .2s, opacity .2s;
}
body[data-xms-skin] .modal-content:has(.xmsx-pop) .btn-close:hover, body[data-xms-skin] .modal-content:has(.xmsx-pop) .btn-close:focus-visible { opacity: 1; transform: scale(1.08) rotate(90deg); }
body[data-xms-skin] .modal-content:has(.xmsx-pop) .btn-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.xmsx-pop-msg { padding: 40px 30px; text-align: center; font-size: 20px; line-height: 1.5; }
.xmsx-pop-admin { padding: 8px 12px; border-radius: 10px; font-size: 14px; }
/* Bearbeiten (nur Admins): kleines Symbol links neben dem Schließen-Knopf, ohne eigene Zeile */
.xmsx-pop-edit { position: absolute; top: 30px; right: 86px; z-index: 11; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(18, 18, 18, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .5; transition: opacity .2s, transform .2s; }
.xmsx-pop-edit:hover, .xmsx-pop-edit:focus-visible { color: #fff; opacity: 1; transform: scale(1.06); }

/* Klassisch */
body[data-xms-skin="klassik"] .modal-content:has(.xmsx-pop) { background: transparent; border: 0; box-shadow: none; }
body[data-xms-skin="klassik"] .xmsx-pop { background: rgba(20, 4, 8, .74); color: #f2e6e6; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 120px rgba(0, 0, 0, .6); }
body[data-xms-skin="klassik"] .xmsx-pop-head { margin: 14px 14px 0; border-radius: 18px; overflow: hidden; }
body[data-xms-skin="klassik"] .xmsx-pop-num, body[data-xms-skin="klassik"] .xmsx-pop-title { font-family: 'Rubik Bubbles', sans-serif; font-weight: 400; }
body[data-xms-skin="klassik"] .xmsx-pop-title { color: #fff; text-shadow: 0 0 14px rgba(245, 217, 138, .35); }
body[data-xms-skin="klassik"] .xmsx-pop-text { color: #e9dcdc; }
body[data-xms-skin="klassik"] .xmsx-pop-points { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(245, 217, 138, .35); color: #f2e6e6; }
body[data-xms-skin="klassik"] .xmsx-pop-coin { background: radial-gradient(circle at 35% 30%, #fff1cc, #e0b44a 50%, #9c7522); color: #4a0a10; box-shadow: 0 0 0 3px rgba(20, 4, 8, .9), 0 0 0 4px #d8b45a, 0 0 22px rgba(224, 180, 74, .5); }
body[data-xms-skin="klassik"] .xmsx-pop-admin { background: #ffe1e1; color: #6e0a16; }


/* Dunkelkammer */
body[data-xms-skin="kammer"] .modal-content:has(.xmsx-pop) { background: transparent; border: 0; box-shadow: none; }
/* Hintergrund wie im Design Klassisch: dunkel und teiltransparent */
body[data-xms-skin="kammer"] .xmsx-pop { background: rgba(20, 4, 8, .74); color: #f2e6e6; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-radius: 3px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 120px rgba(0, 0, 0, .6); transform-origin: 50% 0; animation: dkHang 1.4s cubic-bezier(.3, 1.4, .4, 1) both; }
@keyframes dkHang { from { transform: translateY(-60px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
body[data-xms-skin="kammer"] .xmsx-pop-head { border-radius: 2px; overflow: hidden; animation: dkPdev 3s .4s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes dkPdev { from { filter: brightness(.05) sepia(1) blur(6px); } to { filter: none; } }
body[data-xms-skin="kammer"] .xmsx-pop-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.05em; }
body[data-xms-skin="kammer"] .xmsx-pop-title { font-family: 'Caveat', cursive; font-weight: 700; font-size: 42px; color: #fff; }
body[data-xms-skin="kammer"] .xmsx-pop-body { padding: 22px 10px 8px; }
body[data-xms-skin="kammer"] .xmsx-pop-text { color: #e9dcdc; }
body[data-xms-skin="kammer"] .xmsx-pop-points { align-self: flex-start; padding: 8px 14px; border: 2px solid #ff5a4a; border-radius: 6px; color: #ff7a6c; font-family: 'IBM Plex Mono', monospace; font-weight: 600; transform: rotate(-2deg); }
body[data-xms-skin="kammer"] .xmsx-pop-coin { min-width: 0; height: auto; padding: 0; animation: none; color: #ff7a6c; font-size: 18px; }
body[data-xms-skin="kammer"] .xmsx-pop-admin { background: #ffe1e1; color: #6e0a16; }

@media (prefers-reduced-motion: reduce) {
  .xmsx *, .xmsx *::before, .xmsx *::after, .xmsx-pop * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .xmsx-snow { display: none; }
}

/* =====================================================================
   SENDERAUSWAHL mit Status-LED
   ===================================================================== */
.xmsx-led { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #8a8580; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .35); }
.xmsx-led.is-on { background: #37d67a; box-shadow: 0 0 8px 1px rgba(55, 214, 122, .75), inset 0 -1px 2px rgba(0, 0, 0, .25); }
.xmsx-led.is-off { background: #e5484d; box-shadow: 0 0 6px rgba(229, 72, 77, .6), inset 0 -1px 2px rgba(0, 0, 0, .25); }
.xmsx-led.is-check { background: #f5c451; animation: xmsxLed 1s ease-in-out infinite; }
@keyframes xmsxLed { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

[data-xms-radio] { position: relative; }
.kl-head, .dk-cassette { z-index: 25; }
.dk-cassette { position: relative; }
.kl-radio-namerow { display: inline-flex; align-items: center; gap: 8px; }
.kl-caret { color: #f5d98a; transition: transform .2s; }
.kl-radio-txt[aria-expanded="true"] .kl-caret { transform: rotate(180deg); }

.xmsx-stmenu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 340px; max-width: calc(100vw - 32px); max-height: 340px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #2a0710; box-shadow: inset 0 0 0 1px rgba(245, 217, 138, .45), 0 18px 40px rgba(0, 0, 0, .5); animation: xmsxMenu .2s ease-out both; }
@keyframes xmsxMenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.xmsx-st { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.xmsx-st:hover, .xmsx-st:focus-visible { background: rgba(245, 217, 138, .14); outline: none; }
.xmsx-st.is-current { background: rgba(245, 217, 138, .22); color: #f5d98a; font-weight: 700; }
.xmsx-st-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dunkelkammer-Variante */
.sk-kammer .xmsx-stmenu { left: auto; right: 0; background: #1d1917; box-shadow: inset 0 0 0 1px #6b5d54, 0 18px 40px rgba(0, 0, 0, .6); font-family: 'IBM Plex Mono', monospace; }
.sk-kammer .xmsx-st { color: #f2ece6; font-size: 13px; }
.sk-kammer .xmsx-st:hover, .sk-kammer .xmsx-st:focus-visible { background: rgba(255, 77, 61, .14); }
.sk-kammer .xmsx-st.is-current { background: rgba(255, 77, 61, .22); color: #ff9a3c; }
@media (max-width: 767px) { .kl-head { position: relative; } }

/* =====================================================================
   Glücksrad im Türchen: Farben und Schrift folgen dem Kalender-Design.
   Die Radfläche kommt aus dem lucky-Modul (dunkle Grundfassung); hier
   werden nur Farben überschrieben. CSS-fill schlägt die SVG-Attribute.
   ===================================================================== */
.xmsx-pop-wheel .lucky-surface { border-radius: 18px; }
.xmsx-pop-wheel .lucky-surface-wheel { width: min(100%, 320px); }
@keyframes xmsxBulbs { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes xmsxStar { 0%, 100% { transform: translateX(-50%) scale(1) rotate(0); } 50% { transform: translateX(-50%) scale(1.12) rotate(8deg); } }

/* ---------- Klassisch: Rot, Creme und Gold wie Karte und Kugeln ---------- */
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface {
  --lucky-gold: #a8121f; --lucky-gold-light: #c4202f; --lucky-gold-ink: #a8121f; --lucky-gold-line: #d8b45a;
  --lucky-ink: #4a1a20; --lucky-ink-muted: #6e3a3f;
  background: #fff1cc; border: 0; box-shadow: inset 0 0 0 1px #d8b45a; color: #4a1a20; font-family: 'Roboto', system-ui, sans-serif;
}
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face circle[fill="#15130f"] { fill: #6e0a16; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face circle[stroke="#c9a45c"] { stroke: #f5d98a; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face circle[stroke-dasharray="1.1 12.16"] { stroke: #b8862a; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face circle[stroke-dasharray="2 117.38"] { stroke: #fff6c8; stroke-width: 12; animation: xmsxBulbs 1.6s ease-in-out infinite; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face path[fill="#2f2a20"] { fill: #c4202f; stroke: #f5d98a; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face path[fill="#1b1915"] { fill: #fff8e6; stroke: #f5d98a; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face circle[r="22"] { fill: #a8121f; stroke: #f5d98a; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face circle[r="31"] { stroke: #b8862a; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face path[fill="#1e1a13"] { fill: #6e0a16; stroke: #fff1cc; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-face path[fill="none"] { stroke: #fff1cc; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-wheel { margin-top: 2.6rem; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-disc { box-shadow: 0 0 0 4px #fff8e6, 0 0 0 6px #d8b45a, 0 16px 40px rgba(110, 10, 22, .45); }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-segment:nth-of-type(odd) .lucky-surface-symbol,
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-segment:nth-of-type(odd) .lucky-surface-symbol > span { color: #fff8e6; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-segment:nth-of-type(even) .lucky-surface-symbol,
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-segment:nth-of-type(even) .lucky-surface-symbol > span { color: #a8121f; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-segment::before { background: radial-gradient(circle at 50% 50%, transparent 24%, rgba(255, 230, 140, .6) 70%, transparent 86%); }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-sheen { background: radial-gradient(120% 80% at 30% 12%, rgba(255, 255, 255, .28), transparent 46%); }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-pointer path { fill: #f5d98a; stroke: #6e0a16; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-pointer circle { fill: #a8121f; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-wheel::after { content: '\2605'; position: absolute; z-index: 4; left: 50%; top: -17%; font-size: 30px; line-height: 1; color: #f5d98a; text-shadow: 0 0 14px rgba(245, 217, 138, .9), 0 2px 0 #9c7522; transform: translateX(-50%); animation: xmsxStar 3s ease-in-out infinite; pointer-events: none; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-title { font-family: 'Rubik Bubbles', sans-serif; font-weight: 400; color: #a8121f; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-status p { color: #e9dcdc; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-spin { border-radius: 999px; background: linear-gradient(180deg, #c4202f, #8e0f1a); color: #fff; box-shadow: 0 0 0 1px #d8b45a, 0 8px 20px rgba(0, 0, 0, .35); }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-spin:hover,
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-spin:focus-visible { background: linear-gradient(180deg, #d52a3a, #a8121f); color: #fff; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-spin:focus-visible { outline-color: #a8121f; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-spin:disabled { background: rgba(255, 255, 255, .12); color: #e9dcdc; box-shadow: none; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-sound { border: 0; color: #fff; background: rgba(18, 18, 18, .55); }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-sound.is-off { color: #fff; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-legend-title { border-top-color: #d8b45a; color: #a8121f; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-legend li { background: #fff8e6; border-color: #d8b45a; color: #4a1a20; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .btn-outline-subtle { border-color: #b8862a; color: #f5d98a; }

/* ---------- Dunkelkammer: Entwicklerschale unter Rotlicht ---------- */
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface {
  --lucky-gold: #e8261c; --lucky-gold-light: #ff4d3d; --lucky-gold-ink: #ff9a3c; --lucky-gold-line: #6b5d54;
  --lucky-ink: #f2ece6; --lucky-ink-muted: #c9bfb7;
  border: 0; border-radius: 4px; color: #f2ece6; font-family: 'Space Grotesk', system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 50, 40, .32), transparent 62%), #14100e;
  box-shadow: inset 0 0 0 1px #4a3f38, 0 16px 40px rgba(0, 0, 0, .45);
}
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face circle[fill="#15130f"] { fill: #0c0a0b; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face circle[stroke="#c9a45c"] { stroke: #ff4d3d; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face circle[stroke-dasharray="1.1 12.16"] { stroke: #6b5d54; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face circle[stroke-dasharray="2 117.38"] { stroke: #ff9a3c; animation: xmsxBulbs 2.6s ease-in-out infinite; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face path[fill="#2f2a20"] { fill: #2a201b; stroke: #5a2a22; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face path[fill="#1b1915"] { fill: #1a1412; stroke: #5a2a22; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face circle[r="22"] { fill: #0c0a0b; stroke: #ff4d3d; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face circle[r="31"] { stroke: #5a2a22; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face path[fill="#1e1a13"] { fill: #2a201b; stroke: #ff9a3c; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-face path[fill="none"] { stroke: #ff9a3c; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-disc { box-shadow: 0 0 0 2px #2a201b, 0 0 46px rgba(255, 50, 40, .35), 0 14px 40px rgba(0, 0, 0, .7); }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-symbol { color: #ff9a3c; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-symbol > span { color: #f2ece6; font-family: 'IBM Plex Mono', monospace; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-segment::before { background: radial-gradient(circle at 50% 50%, transparent 24%, rgba(255, 77, 61, .45) 70%, transparent 86%); }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-sheen { background: radial-gradient(120% 80% at 30% 12%, rgba(255, 90, 70, .16), transparent 46%), radial-gradient(100% 100% at 50% 50%, transparent 62%, rgba(0, 0, 0, .35) 100%); }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-pointer path { fill: #e8261c; stroke: #0c0a0b; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-pointer circle { fill: #ff9a3c; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: #f2ece6; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-status p { color: #d9cfc7; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-spin { border-radius: 4px; background: #e8261c; color: #fff; font-family: 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 30px rgba(255, 50, 40, .35); }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-spin:hover,
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-spin:focus-visible { background: #ff4d3d; color: #fff; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-spin:focus-visible { outline-color: #ff9a3c; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-spin:disabled { background: #4a2a24; color: #e6d6cc; box-shadow: none; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-sound { border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-sound.is-off { border-color: #6b5d54; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-legend-title { border-top-color: #4a3f38; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #ff9a3c; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-surface-legend li { border-radius: 3px; background: #1d1917; border-color: #4a3f38; }
body[data-xms-skin="kammer"] .xmsx-pop-wheel .lucky-door-photo { border-radius: 2px; }

/* Kleinere Bildschirme: Radio mittig unter der Leiste, nur die kleine Wolke oben links;
   die übrigen Wolken und die Kugeln an Radio und Info-Knopf würden Titel und Bedienelemente überdecken. */
@media (max-width: 767px) { .kl-head { justify-content: center; } }
@media (min-width: 768px) and (max-width: 991px) { .kl-hang-mid { display: none; } }
@media (max-width: 991px) {
  .kl-hang:not(.kl-hang-mid), .kl-pend { display: none; }
  .kl-hang-mid { left: 56px; }
}
@media (max-width: 575px) {
  .kl-hang-mid { display: none; }
  .xmsx-bar { justify-content: center; gap: 6px; }
  .xmsx-switch-btn { padding: 0 10px; font-size: 13px; }
  .kl-title { font-size: 9.6vw; }
}

/* Türchen ohne Kopfbild: Zahl und Titel in einer Zeile, Platz für Schließen- und Bearbeiten-Knopf */
.xmsx-pop-titlerow { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.xmsx-pop.is-plain .xmsx-pop-titlerow { padding-right: 120px; }
.xmsx-pop.is-plain .xmsx-pop-body { padding-top: 30px; }
.xmsx-pop-titlerow .xmsx-pop-num { font-size: 64px; }
.xmsx-pop-text:empty { display: none; }
body[data-xms-skin="kammer"] .xmsx-pop.is-plain .xmsx-pop-num { color: #fff; text-shadow: none; }
.xmsx-pop:not(.is-plain) .xmsx-pop-titlerow { padding-right: 0; }

/* Spiel im Türchen: Züge und Zeit über dem Spielbrett */
.xmsx-pop-wheel .games-slide { display: flex; flex-direction: column; }
.xmsx-pop-wheel .games-slide__status { order: -1; margin: 0 auto 6px !important; justify-content: center; flex-wrap: nowrap !important; gap: .9em !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xmsx-pop-wheel .games-slide__reward { margin: 6px auto 0 !important; white-space: nowrap; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .games-slide__status, body[data-xms-skin="klassik"] .xmsx-pop-wheel .games-slide__reward { color: #e9dcdc; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .games-slide__status .text-subtle { color: #c9b6b6 !important; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .games-slide__reward { text-align: center; }

/* Datum in der Kopfgrafik: große Zahl mit Punkt, Monat kleiner auf derselben Grundlinie */
.xmsx-pop-date { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: .12em; line-height: 1; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .45); }
.xmsx-pop-date .xmsx-pop-num { font-size: 84px; }
.xmsx-pop-month { font-size: 34px; }
body[data-xms-skin="klassik"] .xmsx-pop-month { font-family: 'Rubik Bubbles', sans-serif; font-weight: 400; }
body[data-xms-skin="kammer"] .xmsx-pop-month { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.02em; }
.xmsx-pop-head { height: 200px; }
.xmsx-pop-titlerow .xmsx-pop-date .xmsx-pop-num { font-size: 64px; }
.xmsx-pop-titlerow .xmsx-pop-month { font-size: 28px; }
.xmsx-pop:not(.is-plain) .xmsx-pop-body { padding-top: 20px; }
body[data-xms-skin="kammer"] .xmsx-pop.is-plain .xmsx-pop-date { color: #fff; text-shadow: none; }

/* Bearbeiten-Symbol unten rechts in der Kopfgrafik (Kopf: 200px hoch, Klassisch 14px, Dunkelkammer 16px Abstand) */
.xmsx-pop:not(.is-plain) .xmsx-pop-edit { right: 26px; top: calc(14px + clamp(120px, 24dvh, 220px) - 52px); }
body[data-xms-skin="kammer"] .xmsx-pop:not(.is-plain) .xmsx-pop-edit { right: 28px; top: calc(16px + clamp(120px, 24dvh, 220px) - 52px); }

/* Datum passt sich der Kopfbreite an und lässt rechts Platz für das Bearbeiten-Symbol */
.xmsx-pop-head { padding-right: 72px; }
.xmsx-pop-head .xmsx-pop-date { white-space: nowrap; }
.xmsx-pop-head .xmsx-pop-date .xmsx-pop-num { font-size: calc(84px * var(--xms-date-scale, 1)); }
.xmsx-pop-head .xmsx-pop-month { font-size: calc(34px * var(--xms-date-scale, 1)); }

/* Datum etwas tiefer und weiter links in die Ecke der Kopfgrafik */
.xmsx-pop-head .xmsx-pop-date { bottom: -20px; left: -17px; }

/* Glücksrad im Türchen (Klassisch): keine eigene Fläche, der Popup-Hintergrund reicht.
   Ton nur als kleines Lautsprechersymbol oben rechts. */
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface { position: relative; background: transparent; box-shadow: none; padding: 0; color: #f2e6e6; --lucky-ink: #f2e6e6; --lucky-ink-muted: #c9b6b6; }
body[data-xms-skin="klassik"] .xmsx-pop-wheel .lucky-surface-title { color: #fff; }
.xmsx-pop-wheel .lucky-surface-sound { position: absolute; top: 0; right: 0; z-index: 5; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(18, 18, 18, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); opacity: .5; transition: opacity .2s; }
.xmsx-pop-wheel .lucky-surface-sound:hover, .xmsx-pop-wheel .lucky-surface-sound:focus-visible { opacity: 1; }
.xmsx-pop-wheel .lucky-surface-sound [data-lucky-preview-sound-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xmsx-pop-wheel .lucky-surface-details > div:has(> .lucky-surface-sound:only-child) { margin: 0 !important; }

/* Im Türchen das Rad nie verblassen lassen (lucky dimmt es bei data-state disabled, z. B. Admin-Vorschau); der gesperrte Knopf zeigt den Zustand. */
.xmsx-pop-wheel .lucky-surface[data-state] .lucky-surface-visual { opacity: 1; filter: none; }

/* Punkte-Feier: fliegende Münzen und goldene Bubble (liegen über dem Popup) */
.xmsx-burst { position: fixed; inset: 0; z-index: 2000; pointer-events: none; overflow: hidden; }
.xmsx-coin { position: fixed; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d0, #f0c85a 45%, #b8862a 80%); box-shadow: 0 0 10px rgba(245, 217, 138, .9), inset 0 -2px 3px rgba(120, 80, 10, .5); transform: translate(-50%, -50%); }
.xmsx-bubble { position: fixed; width: 132px; height: 132px; margin: -66px 0 0 -66px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 18px rgba(245, 217, 138, .8)) drop-shadow(0 0 2px rgba(255, 240, 200, .9)); transform: scale(0); transition: transform .45s cubic-bezier(.2, 1.6, .4, 1); }
/* Weicher Stern mit acht runden Zacken (Kontur für 132px berechnet) */
.xmsx-bubble::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 38% 30%, #fffae1, #f5d26e 38%, #c48c28 75%, #966414); clip-path: path('M66.0 0.0 L68.6 0.6 L71.0 2.2 L73.2 4.8 L75.2 8.0 L76.8 11.6 L78.2 15.3 L79.4 18.6 L80.5 21.4 L81.7 23.4 L83.2 24.5 L85.0 24.8 L87.3 24.2 L90.1 23.0 L93.3 21.5 L96.8 19.9 L100.5 18.5 L104.2 17.6 L107.6 17.3 L110.5 17.9 L112.7 19.3 L114.1 21.5 L114.7 24.4 L114.4 27.8 L113.5 31.5 L112.1 35.2 L110.5 38.7 L109.0 41.9 L107.8 44.7 L107.2 47.0 L107.5 48.8 L108.6 50.3 L110.6 51.5 L113.4 52.6 L116.7 53.8 L120.4 55.2 L124.0 56.8 L127.2 58.8 L129.8 61.0 L131.4 63.4 L132.0 66.0 L131.4 68.6 L129.8 71.0 L127.2 73.2 L124.0 75.2 L120.4 76.8 L116.7 78.2 L113.4 79.4 L110.6 80.5 L108.6 81.7 L107.5 83.2 L107.2 85.0 L107.8 87.3 L109.0 90.1 L110.5 93.3 L112.1 96.8 L113.5 100.5 L114.4 104.2 L114.7 107.6 L114.1 110.5 L112.7 112.7 L110.5 114.1 L107.6 114.7 L104.2 114.4 L100.5 113.5 L96.8 112.1 L93.3 110.5 L90.1 109.0 L87.3 107.8 L85.0 107.2 L83.2 107.5 L81.7 108.6 L80.5 110.6 L79.4 113.4 L78.2 116.7 L76.8 120.4 L75.2 124.0 L73.2 127.2 L71.0 129.8 L68.6 131.4 L66.0 132.0 L63.4 131.4 L61.0 129.8 L58.8 127.2 L56.8 124.0 L55.2 120.4 L53.8 116.7 L52.6 113.4 L51.5 110.6 L50.3 108.6 L48.8 107.5 L47.0 107.2 L44.7 107.8 L41.9 109.0 L38.7 110.5 L35.2 112.1 L31.5 113.5 L27.8 114.4 L24.4 114.7 L21.5 114.1 L19.3 112.7 L17.9 110.5 L17.3 107.6 L17.6 104.2 L18.5 100.5 L19.9 96.8 L21.5 93.3 L23.0 90.1 L24.2 87.3 L24.8 85.0 L24.5 83.2 L23.4 81.7 L21.4 80.5 L18.6 79.4 L15.3 78.2 L11.6 76.8 L8.0 75.2 L4.8 73.2 L2.2 71.0 L0.6 68.6 L0.0 66.0 L0.6 63.4 L2.2 61.0 L4.8 58.8 L8.0 56.8 L11.6 55.2 L15.3 53.8 L18.6 52.6 L21.4 51.5 L23.4 50.3 L24.5 48.8 L24.8 47.0 L24.2 44.7 L23.0 41.9 L21.5 38.7 L19.9 35.2 L18.5 31.5 L17.6 27.8 L17.3 24.4 L17.9 21.5 L19.3 19.3 L21.5 17.9 L24.4 17.3 L27.8 17.6 L31.5 18.5 L35.2 19.9 L38.7 21.5 L41.9 23.0 L44.7 24.2 L47.0 24.8 L48.8 24.5 L50.3 23.4 L51.5 21.4 L52.6 18.6 L53.8 15.3 L55.2 11.6 L56.8 8.0 L58.8 4.8 L61.0 2.2 L63.4 0.6 Z'); }
.xmsx-bubble span { position: relative; }
.xmsx-bubble.is-in { transform: scale(1); }
.xmsx-bubble span { font-family: 'Rubik Bubbles', system-ui, sans-serif; font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 2px 0 #9c7522, 0 0 14px rgba(120, 70, 0, .6); font-variant-numeric: tabular-nums; }
.xmsx-bubble.is-hit { animation: xmsxHit .18s ease-out; }
@keyframes xmsxHit { 0% { transform: scale(1); } 40% { transform: scale(1.09); } 100% { transform: scale(1); } }
.xmsx-bubble.is-tense { animation: xmsxTense .9s ease-in both; }
@keyframes xmsxTense {
  0% { transform: scale(1) rotate(0); }
  20% { transform: scale(1.06, .96) rotate(-3deg); }
  40% { transform: scale(.95, 1.08) rotate(3deg); }
  60% { transform: scale(1.14, .92) rotate(-5deg); }
  75% { transform: scale(.92, 1.16) rotate(6deg); }
  88% { transform: scale(1.22) rotate(-4deg); }
  100% { transform: scale(1.3) rotate(0); }
}
.xmsx-bubble.is-pop { animation: xmsxPop .35s ease-out forwards; }
@keyframes xmsxPop { 0% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.xmsx-count-back { animation: xmsxFade .6s both; }

/* Türchen passt sich dem Bildschirm an: Modal wächst mit der Breite, Kopfbild und Spiel richten sich nach der
   Fensterhöhe, damit das ganze Türchen ohne Scrollen sichtbar ist. */
.modal-dialog:has(.xmsx-pop) { width: min(94vw, 640px); max-width: none; }
/* Spiele im Querformat (Suchbild, Foto-Trumpf) bekommen ein breites Türchen; das Spiel bleibt so hoch, dass alles ohne Scrollen passt. */
.modal-dialog:has(.xmsx-pop.is-wide) { width: min(96vw, 1100px); }
.xmsx-pop.is-wide .xmsx-pop-head { height: clamp(90px, 16dvh, 170px); }
.xmsx-pop.is-wide .games-hunt { max-width: min(100%, max(480px, calc((100dvh - 330px) * 16 / 9))); margin-left: auto; margin-right: auto; }
.xmsx-pop-head { height: clamp(120px, 24dvh, 220px); }
.xmsx-pop-wheel .games-slide { width: 100%; max-width: min(100%, max(240px, calc(76dvh - 245px))); margin-left: auto; margin-right: auto; }
.xmsx-pop-wheel .lucky-surface-wheel { width: min(100%, 340px, max(220px, calc(66dvh - 230px))); }
@media (max-width: 575px) {
  .modal-dialog:has(.xmsx-pop) { margin: .5rem auto; width: calc(100vw - 1rem); }
  .xmsx-pop-body { padding: 18px 16px 20px; }
}

/* Inhaltsbild statt Türbild (vorerst nur für Admins): Spielbild auf festlichem Grund */
/* Dunkelbrauner Grund, oben und links tiefer Schatten: das offene Türchen wirkt wie eine Nische nach innen */
.xms-content-pic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: inherit; background: linear-gradient(160deg, #3a2618, #4a3220 55%, #34221a); box-shadow: inset 0 10px 18px -4px rgba(0, 0, 0, .75), inset 8px 0 14px -6px rgba(0, 0, 0, .6), inset -3px -3px 6px rgba(255, 220, 180, .14), inset 0 0 0 1px rgba(0, 0, 0, .25); container-type: size; }
.xmsx-pop-head .xms-content-pic { z-index: 0; }
.xmsx-pop-head .xms-content-pic > * { height: 86%; width: auto; aspect-ratio: 1; }
.xms-content-pic--image { background-size: cover; background-position: center; }
/* Geschlossene Tuerchen verraten nichts: das Inhaltsbild bekommt eine eigene Ebene unter den Fluegeln
   (Spielkarten mit eigenem z-index/transform lagen sonst darueber) und bleibt bis zum Oeffnen unsichtbar. */
.kl-content { isolation: isolate; z-index: 0; }
.kl-door:not(.is-open) .kl-content > *, .dk-fr:not(.is-open) .dk-img > * { visibility: hidden; }

/* Dunkelkammer: Inhaltsbilder auf dem Filmstreifen als klassisches Farbnegativ, Farben umgekehrt
   und mit der orangebraunen Maske des Farbfilms. Die Maske liegt als eigene Ebene darüber,
   damit sie nicht mit invertiert wird. In anderen Designs bleibt sie aus. */
.xms-neg-mask { display: none; }
.dk-img .xms-content-pic { filter: invert(1) contrast(.92) brightness(1.04); }
.dk-img .xms-neg-mask { display: block; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #e8893a, #c8641f); mix-blend-mode: multiply; opacity: .62; pointer-events: none; }

/* Spiele im Tuerchen-Popup so gross, wie das Popup es zulaesst; quadratische Bretter hoechstens so hoch wie das Fenster */
.xmsx-pop .games-path, .xmsx-pop .games-slide { width: 100%; max-width: min(100%, calc(100vh - 120px)); margin-inline: auto; }
.xmsx-pop .games-quiz, .xmsx-pop .games-trump-solo { width: 100%; max-width: none; }

/* Foto-Trumpf spielt auf einer eigenen Vollbild-Buehne (games: gamesStage.js), keine Popup-Sonderregeln noetig. */

/* Anordnen (nur Admins): Raster der Türchen-Inhalte zum Verschieben; die Nummer zeigt die Position */
.xmsx-arrange { position: relative; z-index: 15; max-width: 1240px; margin: 14px auto 24px; padding: 18px 20px 22px; border-radius: 18px; background: rgba(20, 4, 8, .82); color: #f2e6e6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 60px rgba(0, 0, 0, .5); }
.xmsx-arrange-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.xmsx-arrange-title { font-size: 1.25rem; margin: 0 0 4px; }
.xmsx-arrange-help { margin: 0; font-size: .875rem; color: #c9b9b9; max-width: 760px; }
.xmsx-arrange-actions { display: flex; gap: 8px; }
.xmsx-arrange-status { margin: 0 0 10px; font-size: .875rem; color: #f5d98a; }
.xmsx-arrange-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: xmsxpos; }
.xmsx-arrange-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); cursor: grab; counter-increment: xmsxpos; user-select: none; }
.xmsx-arrange-tile::before { content: counter(xmsxpos); position: absolute; top: 10px; left: 10px; z-index: 2; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #b8262c; color: #fff; font-weight: 700; font-size: 14px; line-height: 26px; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.xmsx-arrange-tile.is-locked { cursor: not-allowed; opacity: .55; }
.xmsx-arrange-tile.sortable-ghost { opacity: .35; }
.xmsx-arrange-tile.sortable-chosen { box-shadow: 0 0 0 2px #f5d98a; }
.xmsx-arrange-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background-color: #2a0610; background-size: cover; background-position: center; }
.xmsx-arrange-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .8rem; }
.xmsx-arrange-title-line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xmsx-arrange-points { color: #f5d98a; font-weight: 700; }
.xmsx-arrange-lock { color: #c9b9b9; }
@media (max-width: 900px) { .xmsx-arrange-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .xmsx-arrange-grid { grid-template-columns: repeat(3, 1fr); } }

/* Kopieren und Einfügen im Anordnen-Bereich */
.xmsx-arrange-tools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.xmsx-arrange-tool { width: 30px; height: 30px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.xmsx-arrange-tool:hover, .xmsx-arrange-tool:focus-visible { background: #b8262c; outline: none; }
.xmsx-arrange-tool.is-paste { background: #f5d98a; color: #3b2615; }
.xmsx-arrange-tool.is-paste:hover { background: #ffe8a8; }
.xmsx-arrange-tile.is-copied { box-shadow: 0 0 0 3px #f5d98a; }
.xmsx-arrange-tile:not(:hover):not(.is-copied):not(:focus-within) .xmsx-arrange-tool:not(.is-paste) { opacity: 0; }
@media (hover: none) { .xmsx-arrange-tile .xmsx-arrange-tool { opacity: 1 !important; } }

/* ---------------- Türchen-Ansicht über den ganzen Bildschirm (xmsDoorView) ----------------
   Das Vorschaubild zoomt aus dem Türchen auf Bildschirmgröße (wie das Foto-Overlay), der Inhalt
   liegt als Karte darüber. Die Karte (.xmsx-pop) behält das Aussehen des gewählten Designs. */
html.xmsx-view-open { overflow: hidden; }
.xmsx-view { position: fixed; inset: 0; z-index: 1070; color: #f2e6e6; }
.xmsx-view-shade { position: absolute; inset: 0; background: #0c0406; opacity: 0; transition: opacity .45s ease; }
.xmsx-view.is-in .xmsx-view-shade { opacity: 1; }
.xmsx-view-hero { position: fixed; inset: 0; overflow: hidden; background-color: #1a0a0d; background-size: cover; background-position: center; container-type: size; }
.xmsx-view-hero > * { pointer-events: none; }
.xmsx-view.is-zooming .xmsx-view-hero { inset: auto; transition: left .56s cubic-bezier(.2, .8, .2, 1), top .56s cubic-bezier(.2, .8, .2, 1), width .56s cubic-bezier(.2, .8, .2, 1), height .56s cubic-bezier(.2, .8, .2, 1), border-radius .56s ease; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
/* Abdunkeln, sobald der Inhalt kommt: oben bleibt das Bild hell, unten trägt es die Karte */
.xmsx-view-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 4, 6, .05) 0%, rgba(12, 4, 6, .35) 30%, rgba(12, 4, 6, .82) 70%); opacity: 0; transition: opacity .6s ease; }
.xmsx-view.is-ready .xmsx-view-hero::after { opacity: 1; }
.xmsx-view.is-out .xmsx-view-hero::after { opacity: 0; transition-duration: .25s; }
.xmsx-view.is-out .xmsx-view-shade { opacity: 0; transition-delay: .2s; }

.xmsx-view-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; padding: clamp(16px, 4vh, 40px) 16px 40px; }
.xmsx-view-date { align-self: stretch; display: flex; align-items: baseline; gap: 14px; min-height: clamp(110px, 24vh, 260px); padding: 0 clamp(4px, 3vw, 40px); color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(-12px); transition: opacity .5s ease, transform .5s ease; cursor: zoom-out; }
.xmsx-view-num { font-family: 'Rubik Bubbles', system-ui, sans-serif; font-size: clamp(64px, 11vw, 140px); line-height: 1; }
.xmsx-view-month { font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: .02em; }
body[data-xms-skin="kammer"] .xmsx-view-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.05em; }
body[data-xms-skin="kammer"] .xmsx-view-month { font-family: 'IBM Plex Mono', monospace; font-weight: 600; text-transform: uppercase; }

.xmsx-view-date, .xmsx-view-panel { flex-shrink: 0; }
.xmsx-view-panel { width: min(100%, 1000px); opacity: 0; transform: translateY(40px); transition: opacity .5s ease .05s, transform .6s cubic-bezier(.2, .8, .2, 1) .05s; }
.xmsx-view-panel:has(.is-wide) { width: min(100%, 1240px); }
.xmsx-view.is-ready .xmsx-view-panel, .xmsx-view.is-ready .xmsx-view-date { opacity: 1; transform: none; }
.xmsx-view.is-out .xmsx-view-panel, .xmsx-view.is-out .xmsx-view-date { opacity: 0; transform: translateY(24px); transition-duration: .25s; transition-delay: 0s; }
/* Das Datum steht groß über dem Bild; die Kopfgrafik in der Karte wäre doppelt. */
.xmsx-view .xmsx-pop-head, .xmsx-view .xmsx-pop-titlerow { display: none; }
.xmsx-view .xmsx-pop { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 90px rgba(0, 0, 0, .55); }
.xmsx-view > .xmsx-pop-edit { position: absolute; top: calc(clamp(10px, 2vh, 22px) + 6px); right: calc(clamp(10px, 2vw, 26px) + 64px); z-index: 3; }
/* Spiel-Illustrationen (Spiel-Türchen) nach dem Zoom zurücknehmen, sonst wirken sie wie ein zweites Spielbrett */
.xmsx-view-hero > * { transition: opacity .6s ease, filter .6s ease; }
.xmsx-view-hero.has-picture { background: radial-gradient(ellipse at 50% 35%, #4a1a20, #14060a 75%); }
.xmsx-view.is-ready .xmsx-view-hero > * { opacity: .14; filter: blur(5px); }
/* Spiel-Türchen: kleineres Datum, quadratische Bretter passen unter Datum und Text */
.xmsx-view.has-game .xmsx-view-date { min-height: 0; padding-bottom: 14px; }
.xmsx-view.has-game .xmsx-view-num { font-size: clamp(48px, 7vw, 84px); }
.xmsx-view .games-path, .xmsx-view .games-slide { max-width: min(100%, calc(100dvh - 260px)); }
/* Spiel-Türchen: breite Karte; die genaue Spielgröße passt xmsSkins.js an die Fensterhöhe an */
.xmsx-view.has-game .xmsx-view-panel { width: min(100%, 1240px); }
/* Im Türchen füllt das Spiel seinen Behälter; dessen Breite setzt xmsSkins.js passend zur Fensterhöhe.
   Gilt nur, solange das Spiel im Behälter steckt (auf der Vollbild-Bühne greifen die Regeln der Bühne). */
.xmsx-view.has-game [data-xms-game-load] > :is(.games-snow, .games-snow-duel, .games-pong, .games-slide, .games-path, .games-maze, .games-hunt, .games-spot, .games-detective, .games-rotate, .games-horizon, .games-golden, .games-color) { width: 100%; max-width: none !important; margin-inline: 0; }
/* Fotopirsch im Türchen: Motiv-Liste links neben der Szene statt darunter, damit Treffer ohne Scrollen sichtbar sind */
@media (min-width: 768px) {
  .xmsx-view .games-hunt { display: grid; grid-template-columns: minmax(8.5rem, max-content) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .xmsx-view .games-hunt > * { grid-column: 2; }
  .xmsx-view .games-hunt > .games-hunt__motifs { grid-column: 1; grid-row: 1 / span 4; flex-direction: column; flex-wrap: nowrap !important; align-items: stretch; margin-top: 0 !important; }
  .xmsx-view .games-hunt > .games-hunt__motifs > li { white-space: nowrap; }
}

/* Spiel-Türchen öffnen ohne Bild und ohne Karte: dunkler Grund, darauf direkt das Spiel in voller Größe */
.xmsx-view.is-game .xmsx-view-hero { display: none; }
.xmsx-view.is-game .xmsx-view-panel { width: 100%; transform: none; transition: opacity .3s ease; }
.xmsx-view.is-game .xmsx-view-scroll { padding: 12px clamp(12px, 2vw, 32px) 20px; }
.xmsx-view.is-game .xmsx-view-date { min-height: 0; padding: 4px 140px 8px 0; }
.xmsx-view.is-game .xmsx-view-num { font-size: clamp(30px, 3.2vw, 48px); }
.xmsx-view.is-game .xmsx-view-month { font-size: clamp(16px, 1.6vw, 22px); }
.xmsx-view.is-game .xmsx-view-shade { background: radial-gradient(ellipse at 50% 30%, #3a1218, #0c0406 75%); }
body[data-xms-skin] .xmsx-view.is-game .xmsx-pop { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; overflow: visible; animation: none; }
body[data-xms-skin] .xmsx-view.is-game .xmsx-pop-body { padding: 0; animation: none; }
/* Flug aus dem und ins Türchen (xmsSkins.js): die Karte bleibt sichtbar, Bewegung und Deckkraft steuert das Skript */
.xmsx-view.is-flying .xmsx-view-panel { opacity: 1; transform: none; transition: none; }
.xmsx-view .xmsx-view-panel > .xmsx-pop { will-change: transform, opacity; }
/* Skin-Einblendungen (Dunkelkammer: Karte schwingt ein) würden die Flugbewegung überschreiben */
body[data-xms-skin] .xmsx-view .xmsx-view-panel > .xmsx-pop { animation: none; }
.xmsx-view.is-out :is(.xmsx-view-shade, .xmsx-view-hero) { opacity: 0; transition: opacity .42s ease; transition-delay: 0s; }
/* Warten aufs Spiel: Kalender bleibt sichtbar; Grund, Datum und Kreuz blenden erst mit dem Flug ein */
.xmsx-view.is-waiting :is(.xmsx-view-shade, .xmsx-view-hero, .xmsx-view-date, .xmsx-view-close, .xmsx-view-loading) { opacity: 0 !important; transition: none !important; }
.xmsx-view:not(.is-out) :is(.xmsx-view-shade, .xmsx-view-hero) { transition: opacity var(--xmsx-fly-ms, .45s) ease; }
.xmsx-view:not(.is-out) .xmsx-view-date, .xmsx-view:not(.is-out) .xmsx-view-close { transition-duration: var(--xmsx-fly-ms, .45s); transition-delay: 0s; }
.xmsx-view-loading { display: flex; justify-content: center; padding: 60px 0; color: #f2e6e6; }

.xmsx-view-close { position: absolute; top: clamp(10px, 2vh, 22px); right: clamp(10px, 2vw, 26px); z-index: 3; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(12, 4, 6, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s ease .2s, transform .2s ease, background-color .2s ease; }
.xmsx-view.is-in .xmsx-view-close { opacity: 1; }
.xmsx-view.is-out .xmsx-view-close { opacity: 0; transition-delay: 0s; }
.xmsx-view-close:hover, .xmsx-view-close:focus-visible { outline: none; background: rgba(255, 255, 255, .18); transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
    .xmsx-view-panel, .xmsx-view-date, .xmsx-view-shade, .xmsx-view-hero::after { transition-duration: .01s !important; transform: none !important; }
}
