/* TerraTransfer · Weihnachts-Diorama „Stille Nacht an der Messstelle“: Unterseite, Banner der Startseite.
 * Bewusst immer dunkel: Das Bild ist eine Nachtszene. Alle Klassen beginnen mit weihnachten-, die Deko der übrigen
 * Seite (Jens) bleibt davon unberührt.
 */
.weihnachten {
  --wn-bg: #04141f; --wn-card: #0a2433; --wn-line: #1a4256; --wn-fg: #e8f3f6; --wn-dim: #a9c3cd;
  --wn-teal: #5fe3d4; --wn-gold: #ffd27a; --wn-aurora: #6dffb0;
  background: var(--wn-bg); color: var(--wn-fg);
  padding-block: clamp(20px, 4vw, 44px) clamp(36px, 6vw, 72px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.weihnachten-in { max-width: 1120px; margin: 0 auto; display: grid; gap: clamp(20px, 3vw, 36px); }
.weihnachten-head { display: grid; gap: 10px; max-width: 62ch; }
.weihnachten-kick { color: var(--wn-gold); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.weihnachten h1 { color: var(--wn-fg); margin: 0; font-size: clamp(1.75rem, 4.6vw, 3rem); line-height: 1.08; text-wrap: balance; }
.weihnachten h2 { color: var(--wn-fg); margin: 0; font-size: 1.2rem; line-height: 1.2; }
.weihnachten-lead { color: var(--wn-dim); margin: 0; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; }
.weihnachten-view {
  position: relative; display: block; margin: 0 auto; width: 100%; max-width: 980px; aspect-ratio: 12 / 7; border-radius: 14px; overflow: hidden; text-decoration: none;
  background:
    radial-gradient(70% 55% at 62% 4%, rgba(109, 255, 176, .42), transparent 70%),
    radial-gradient(46% 42% at 86% 12%, rgba(170, 120, 255, .26), transparent 72%),
    linear-gradient(180deg, #031019 0%, #06212e 58%, #0b3340 100%);
}
.weihnachten-view svg, .weihnachten-view img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.weihnachten-view:focus-visible { outline: 2px solid var(--wn-teal); outline-offset: 3px; }
.weihnachten-open { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 11px 22px; border-radius: 10px; background: var(--wn-teal); color: #03211f; font-weight: 700; white-space: nowrap; }
.weihnachten-view:hover .weihnachten-open { background: var(--wn-fg); }
.weihnachten-note { color: var(--wn-dim); font-size: .85rem; margin: 0; text-align: center; }
.weihnachten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.weihnachten-card { background: var(--wn-card); border: 1px solid var(--wn-line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.weihnachten-card p { margin: 0; color: var(--wn-dim); font-size: .97rem; line-height: 1.5; }
.weihnachten-wichtel { background: #1b2a22; border: 1px solid #35523f; border-radius: 12px; padding: 20px 22px; display: grid; gap: 10px; max-width: 70ch; }
.weihnachten-wichtel p { margin: 0; color: #cfe0d4; line-height: 1.55; }
.weihnachten-tag { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1b2a22; background: var(--wn-gold); border-radius: 999px; padding: 3px 10px; }
.weihnachten-platzhalter { border: 1px dashed #6f8f7a; border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.weihnachten-wichtel a { color: var(--wn-gold); font-weight: 700; }
.weihnachten-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.weihnachten-cta a.weihnachten-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--wn-teal); color: #03211f; font-weight: 700; text-decoration: none; }
.weihnachten-cta a.weihnachten-btn:focus-visible { outline: 2px solid var(--wn-fg); outline-offset: 2px; }
.weihnachten-cta a.weihnachten-link { color: var(--wn-teal); }

/* Startseite: Banner ganz oben im ersten Bereich (Einbau durch weihnachten-home.js) */
.weihnachten-banner {
  --wn-fg: #e8f3f6; --wn-dim: #c2d6de; --wn-teal: #5fe3d4; --wn-gold: #ffd27a;
  position: relative; display: block; margin-bottom: 40px; border-radius: 16px; overflow: hidden; aspect-ratio: 24 / 7; text-decoration: none;
  box-shadow: 0 0 0 1px #1a4256, 0 18px 50px rgba(0, 0, 0, .35);
  background:
    radial-gradient(60% 70% at 70% 0%, rgba(109, 255, 176, .44), transparent 70%),
    radial-gradient(36% 50% at 92% 8%, rgba(170, 120, 255, .28), transparent 72%),
    linear-gradient(180deg, #031019 0%, #06212e 58%, #0b3340 100%);
}
.weihnachten-banner[hidden] { display: none; }
.weihnachten-banner-art { position: absolute; right: 0; bottom: 0; width: 62%; height: 100%; display: block; object-fit: cover; object-position: 50% 42%; -webkit-mask-image: linear-gradient(to right, transparent, #000 34%); mask-image: linear-gradient(to right, transparent, #000 34%); }
.weihnachten-banner:focus-visible { outline: 3px solid var(--wn-teal); outline-offset: 3px; }
.weihnachten-banner-text { position: absolute; inset: 0 auto 0 0; width: min(54%, 620px); padding: clamp(18px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(6px, .9vw, 12px); }
.weihnachten-banner-kick { color: var(--wn-gold); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.weihnachten-banner strong { color: var(--wn-fg); font-size: clamp(1.5rem, 3.1vw, 2.75rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.weihnachten-banner-lead { color: var(--wn-dim); font-size: clamp(.9rem, 1.25vw, 1.08rem); line-height: 1.45; max-width: 46ch; }
.weihnachten-banner-btn { margin-top: 6px; padding: 11px 22px; border-radius: 10px; background: var(--wn-teal); color: #03211f; font-weight: 700; white-space: nowrap; }
.weihnachten-banner:hover .weihnachten-banner-btn { background: var(--wn-fg); }
.weihnachten-banner-test { position: absolute; right: 12px; top: 10px; padding: 3px 10px; border-radius: 999px; background: #ffd27a; color: #2a1d00; font-size: .75rem; font-weight: 700; }
@media (max-width: 760px) {
  .weihnachten-banner { aspect-ratio: auto; margin-bottom: 22px; order: -1; width: 100%; padding-top: 58.33%; }
  .weihnachten-banner-art { width: 100%; height: auto; aspect-ratio: 12 / 7; top: 0; bottom: auto; -webkit-mask-image: none; mask-image: none; }
  .weihnachten-banner-text { position: relative; width: auto; padding: 16px 18px 18px; background: #06212e; }
  .weihnachten-banner-btn { align-self: stretch; text-align: center; min-height: 46px; }
}

/* 3D-Explorer: Leiste „1 bis 24“ und Karte des Adventskalenders (Einbau durch scenes/weihnachten-advent.js) */
.weihnachten-advent { --wn-gold: #ffd27a; position: absolute; inset: 0; pointer-events: none; z-index: 4; font-family: inherit; }
.weihnachten-advent > * { pointer-events: auto; }
.weihnachten-advent-bar { position: absolute; top: 74px; left: calc(412px + (100% - 412px) / 2); translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 470px); padding: 7px 10px; border: 1px solid #8fd6e233; border-radius: 14px; background: #0a1d2fc4; backdrop-filter: blur(10px); }
.weihnachten-advent-title { color: var(--wn-gold); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.weihnachten-advent-nums { display: grid; grid-template-columns: repeat(12, 26px); gap: 4px; }
.weihnachten-advent-num { width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid #8fd6e244; background: #ffffff0d; color: #eaf6fb; font-weight: 600; font-size: .72rem; line-height: 1; font-family: inherit; cursor: pointer; }
.weihnachten-advent-num:disabled { color: #7f9bab; border-color: #8fd6e21f; background: none; cursor: default; }
.weihnachten-advent-num.is-open { background: #ffd27a; border-color: #ffd27a; color: #2a1d00; }
.weihnachten-advent-num.is-due { border-color: #ffd27a; color: #ffd27a; animation: weihnachten-puls 2.4s ease-in-out infinite; }
.weihnachten-advent-num:focus-visible { outline: 2px solid #6de2cf; outline-offset: 2px; }
.weihnachten-advent-test { padding: 3px 9px; border-radius: 999px; background: #ffd27a; color: #2a1d00; font-size: .68rem; font-weight: 700; white-space: nowrap; }
@keyframes weihnachten-puls { 50% { box-shadow: 0 0 0 4px #ffd27a33; } }
.weihnachten-karte { position: absolute; right: 16px; top: 150px; width: min(340px, calc(100% - 32px)); padding: 18px 20px 20px; border: 1px solid #ffd27a66; border-radius: 16px; background: #0a1d2ff2; color: #eaf6fb; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); display: grid; gap: 8px; }
.weihnachten-karte[hidden] { display: none; }
.weihnachten-karte-tag { margin: 0; color: var(--wn-gold); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.weihnachten-karte h3 { margin: 0; font-size: 1.15rem; line-height: 1.2; color: #fff; outline: none; }
.weihnachten-karte-text { margin: 0; color: #c5dae4; font-size: .95rem; line-height: 1.5; }
.weihnachten-karte-bild { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.weihnachten-karte-bild[hidden] { display: none; }
.weihnachten-karte-links { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.weihnachten-karte-links:empty { display: none; }
.weihnachten-karte-links a { color: var(--wn-gold); font-weight: 700; font-size: .92rem; }
.weihnachten-karte-x { justify-self: start; order: 9; margin-top: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid #ffd27a; background: #ffd27a; color: #2a1d00; font: inherit; font-size: .92rem; font-weight: 700; line-height: 1.1; cursor: pointer; }
.weihnachten-karte-x:focus-visible, .weihnachten-karte-links a:focus-visible { outline: 2px solid #6de2cf; outline-offset: 2px; }
@media (max-width: 1180px) { .weihnachten-advent-title { display: none; } }
@media (max-width: 900px) {
  .weihnachten-advent-bar { left: 10px; right: 10px; top: 58px; translate: none; max-width: none; padding: 5px 8px; overflow-x: auto; }
  .weihnachten-advent-nums { grid-template-columns: repeat(24, 30px); }
  .weihnachten-advent-num { width: 30px; height: 30px; }
  .weihnachten-karte { left: 10px; right: 10px; top: auto; bottom: 128px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .weihnachten-advent-num.is-due { animation: none; box-shadow: 0 0 0 3px #ffd27a33; } }
.weihnachten-advent-num.is-locked { color: #7f9bab; border-color: #8fd6e21f; background: none; cursor: help; }
.weihnachten-karte-again { justify-self: start; margin-top: 4px; padding: 7px 12px; border-radius: 9px; border: 1px solid #ffd27a88; background: none; color: #ffd27a; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.weihnachten-karte-again[hidden] { display: none; }
.weihnachten-karte-again:focus-visible { outline: 2px solid #6de2cf; outline-offset: 2px; }
/* Hinweis bei verschlossenen Türen */
.weihnachten-hinweis { position: absolute; left: calc(412px + (100% - 412px) / 2); top: 150px; translate: -50% 0; max-width: min(420px, calc(100% - 32px)); margin: 0; padding: 10px 16px; border: 1px solid #ffd27a66; border-radius: 12px; background: #0a1d2ff2; color: #fbe9b8; font-size: .92rem; font-weight: 600; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.weihnachten-hinweis[hidden] { display: none; }
@media (max-width: 900px) { .weihnachten-hinweis { left: 50%; top: 104px; } }

/* Zustand „Moment“ (Türmoment als kurzer Film): Bühne frei. Infofenster, Beschriftungen, Leiste, Zeitstrahl und Ortswahl
 * blenden aus, es bleiben Ton, Überspringen, Schließen und der Hinweis „Illustration“. Rand abgedunkelt, Mitte hell. */
.ttx-panel, .ttx-callouts, .ttx-pins, .ttx-nav, .ttx-story, .ttx-hint, .ttx-toasts, .weihnachten-advent-bar, .ttx-live, .ttx-reset, .ttx-pause { transition: opacity .6s ease, translate .6s ease; }
.ttx.is-moment .ttx-panel { opacity: 0; translate: -110% 0; pointer-events: none; transition-duration: .4s; }
.ttx.is-moment :is(.ttx-callouts, .ttx-pins, .ttx-nav, .ttx-story, .ttx-hint, .ttx-toasts, .weihnachten-advent-bar, .ttx-live, .ttx-reset, .ttx-pause, .weihnachten-hinweis) { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.weihnachten-buehne { position: absolute; inset: 0; pointer-events: none !important; opacity: 0; transition: opacity .6s ease; background: radial-gradient(ellipse 46% 50% at 50% 48%, transparent 35%, rgba(1, 5, 14, .42) 72%, rgba(1, 5, 14, .72) 100%); }
.ttx.is-moment .weihnachten-buehne { opacity: 1; transition-duration: .4s; }
.weihnachten-blende { position: absolute; inset: 0; pointer-events: none !important; background: #01040b; opacity: 0; transition: opacity .2s ease; }
.weihnachten-blende.is-on { opacity: 1; }
.weihnachten-untertitel { position: absolute; left: 50%; bottom: max(26px, 5vh); translate: -50% 0; width: max-content; max-width: min(860px, calc(100% - 32px)); margin: 0; padding: 10px 20px; border-radius: 12px; background: rgba(2, 8, 18, .72); color: #fff6dc; font-size: clamp(1.02rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.35; text-align: center; text-wrap: balance; text-shadow: 0 1px 2px #000; pointer-events: none !important; }
.weihnachten-untertitel[hidden] { display: none; }
.weihnachten-skip { position: absolute; right: 22px; bottom: max(26px, 5vh); padding: 9px 14px; border-radius: 10px; border: 1px solid #ffd27a88; background: rgba(2, 8, 18, .72); color: #ffd27a; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.weihnachten-skip[hidden] { display: none; }
.weihnachten-skip:focus-visible { outline: 2px solid #6de2cf; outline-offset: 2px; }
.ttx.is-moment .weihnachten-karte { animation: weihnachten-karte-ein .45s ease both; }
@keyframes weihnachten-karte-ein { from { opacity: 0; translate: 24px 0; } }
@media (max-width: 900px) {
  .weihnachten-untertitel { bottom: 76px; font-size: 1rem; padding: 8px 14px; }
  .weihnachten-skip { right: 12px; bottom: 18px; }
  .ttx.is-moment .weihnachten-karte { bottom: 18px; max-height: 46%; overflow: auto; }
  @keyframes weihnachten-karte-ein { from { opacity: 0; translate: 0 24px; } }
}
@media (prefers-reduced-motion: reduce) { .ttx.is-moment .weihnachten-karte { animation: none; } .weihnachten-buehne, .weihnachten-blende { transition: none; } }
.weihnachten-buehne.is-fernrohr { background: radial-gradient(circle at 50% 48%, transparent 0, transparent min(34vmin, 44vw), rgba(1, 4, 11, .96) calc(min(34vmin, 44vw) + 6px)); }
.weihnachten-blende.is-blitz { background: #fff; opacity: .85; transition: none; }
/* Ein Schließen-Knopf im Türfilm (Nachtrag 11.11.): X des Explorers aus, „Zurück zum Tal“ oben rechts bzw. in der Karte */
.ttx.is-tuer .ttx-close { display: none; }
.weihnachten-zurueck { position: absolute; right: 22px; top: 70px; padding: 9px 14px; border-radius: 10px; border: 1px solid #ffd27a; background: rgba(2, 8, 18, .78); color: #ffd27a; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; z-index: 3; }
.weihnachten-zurueck[hidden] { display: none; }
.weihnachten-zurueck:focus-visible, .weihnachten-karte-x:focus-visible { outline: 2px solid #6de2cf; outline-offset: 2px; }
@media (max-width: 900px) { .weihnachten-zurueck { right: 12px; top: 58px; padding: 8px 12px; font-size: .85rem; } }
