/* Adventkalender – heller Wintertag. Keine externen Schriften oder Dateien. */
:root {
  --sky-1: #cfe8f7;
  --sky-2: #f4f9fd;
  --text: #1f3342;
  --muted: #546b7c;
  --line: #c6dbe9;
  --card: #ffffff;
  --green: #2f6b57;
  --green-dark: #23564a;
  --berry: #c8443f;
  --gold: #e8b84a;
  --gold-deep: #b98a3c;
  --paper: #fffdf8;
  --ink: #2b2118;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text); font-family: var(--sans); line-height: 1.5;
  background: var(--sky-2);
}
html.night { --text: #e8eefc; --muted: #aebde3; --card: #18224d; --line: #3a4a8c; --paper: #fffdf8; --bar: #121b45d9; }
html { --bar: #ffffffd9; }
html.night .head .sub { color: #a8e6cb; }
html.night .head h1, html.night .login h1 { color: #f1f5ff; }
#app { position: relative; z-index: 1; }

/* Himmel (fest, folgt der Tageszeit) */
#sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, var(--sky-top, #58ace6), var(--sky-bot, #bfe2f6)); }
#sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars, 0); }
#sky .star { fill: #fff; animation: twinkle 3.2s ease-in-out infinite alternate; }
#sky .star.b { animation-delay: -1.1s; } #sky .star.c { animation-delay: -2.1s; }
#sky .sun, #sky .moon { position: absolute; border-radius: 50%; }
#sky .sun { width: 190px; height: 190px; margin: -95px 0 0 -95px; left: calc(var(--sun-x, 50) * 1%); top: calc(var(--sun-y, 30) * 1%); opacity: var(--sun-o, 1);
  background: radial-gradient(circle, var(--sun-col, #fff3b8) 0 17%, transparent 18%), radial-gradient(circle, color-mix(in srgb, var(--sun-col, #fff3b8) 45%, transparent) 0, transparent 68%); }
#sky .moon { width: 150px; height: 150px; margin: -75px 0 0 -75px; left: calc(var(--moon-x, 50) * 1%); top: calc(var(--moon-y, 30) * 1%); opacity: var(--moon-o, 0);
  background: radial-gradient(circle, #fffbe8 0 20%, transparent 21%), radial-gradient(circle, #fff3c4aa 0, transparent 68%); }
@keyframes twinkle { to { opacity: .35; } }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.loading { text-align: center; color: var(--muted); margin-top: 30vh; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }

/* Leiste oben */
.bar {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--bar); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-title { font-family: var(--serif); font-weight: 600; font-size: 19px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 10px 6px; min-height: 40px; }

@media (max-width: 479px) {
  .bar-title { display: none; }
}

/* Szene */
.world { position: relative; width: 100%; max-width: 640px; margin: 0 auto; overflow: hidden; }
.world svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cloud { animation: drift 40s ease-in-out infinite alternate; }
.cloud-b { animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translateX(26px); } }
.puff { animation: puff 9s ease-in-out infinite alternate; }
.puff-b { animation-duration: 12s; animation-direction: alternate-reverse; }
@keyframes puff { to { transform: translateX(22px); } }
.smoke { animation: smoke 4s ease-in-out infinite alternate; }
@keyframes smoke { to { transform: translate(5px, -6px); opacity: .6; } }
.steam { animation: steam 3s ease-in-out infinite alternate; }
@keyframes steam { to { transform: translateY(-3px); opacity: .5; } }

.mk-body, .char, .woman, .w-bob, .boot, .spark { transform-box: fill-box; }
.mk-body { transform-origin: 50% 100%; }
.mk .spark { opacity: 0; }
.mk.status-opened .spark { opacity: 1; animation: twinkle 2.4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }
.pool { opacity: calc(var(--glow, 0) * .85); }
.halo { opacity: calc(var(--glow, 0) * .9); }
.halo.small { opacity: calc(var(--glow, 0) * .75); }
.halo.big { opacity: calc(.28 + var(--glow, 0) * .62); }
.lights { animation: blink 2.2s ease-in-out infinite alternate; }
@keyframes blink { 40% { opacity: .55; } }
@keyframes pop { 40% { transform: scale(1.18) translateY(-6px); } }

.w-bob { transform-origin: 50% 100%; }
.partner, .rays, .paddle { transform-box: fill-box; }
.char.walking .w-bob { animation: bob .42s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-2.5deg); } to { transform: translateY(-3px) rotate(2.5deg); } }
.char.walking .boot-l { animation: stepl .42s ease-in-out infinite alternate; }
.char.walking .boot-r { animation: stepr .42s ease-in-out infinite alternate; }
@keyframes stepl { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes stepr { from { transform: translateY(-3px); } to { transform: translateY(0); } }

/* Szenen der Türchen */
.bach-hip { transform-box: fill-box; transform-origin: 50% 0%; animation: bach-hip 1.2s ease-in-out infinite alternate; }
@keyframes bach-hip { from { transform: skewX(-8deg) translateX(-2.5px); } to { transform: skewX(8deg) translateX(2.5px); } }
.bach-up { transform-box: fill-box; transform-origin: 50% 100%; animation: bach-up 1.2s ease-in-out infinite alternate; }
@keyframes bach-up { from { transform: rotate(2.5deg) translateX(1.5px); } to { transform: rotate(-2.5deg) translateX(-1.5px); } }
.foot-l, .foot-r { transform-box: fill-box; animation: foot .6s ease-in-out infinite alternate; }
.foot-r { animation-direction: alternate-reverse; }
@keyframes foot { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.brush { transform-box: fill-box; transform-origin: center; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vac { animation: vac 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 70%; }
@keyframes vac { 0% { transform: translateX(-10px) rotate(-5deg); } 50% { transform: translateX(2px) rotate(3deg); } 100% { transform: translateX(12px) rotate(-2deg); } }
.wave { animation: wave 3.2s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(6px); opacity: .5; } }
.heart { transform-box: fill-box; transform-origin: 50% 80%; animation: heart 1.6s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.burst { transform-box: fill-box; transform-origin: center; opacity: 0; animation: burst 3.6s ease-out infinite; }
.burst.b2 { animation-delay: .9s; } .burst.b3 { animation-delay: 1.8s; } .burst.b4 { animation-delay: 2.6s; }
@keyframes burst { 0% { transform: scale(.1); opacity: 0; } 12% { opacity: 1; } 65% { opacity: .9; } 100% { transform: scale(1.2); opacity: 0; } }
.shoot { animation: shoot 3.4s ease-in infinite; opacity: 0; }
.shoot.s2 { animation-delay: 1.1s; } .shoot.s3 { animation-delay: 2.2s; }
@keyframes shoot { 0% { transform: translate(40px, -22px); opacity: 0; } 15% { opacity: 1; } 65% { opacity: 1; } 100% { transform: translate(-46px, 26px); opacity: 0; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame .5s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1, 1); } to { transform: scale(.88, 1.12); } }

.run { transform-box: fill-box; animation: run .34s ease-in-out infinite alternate; }
@keyframes run { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
.leg-a, .leg-b { transform-box: fill-box; animation: leg .34s ease-in-out infinite alternate; }
.leg-a { transform-origin: 100% 0%; } .leg-b { transform-origin: 0% 0%; animation-direction: alternate-reverse; }
@keyframes leg { from { transform: rotate(-16deg); } to { transform: rotate(18deg); } }
.huff { transform-box: fill-box; animation: huff 1.4s ease-out infinite; }
@keyframes huff { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(8px, -6px) scale(1.5); } }
.breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 4s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.03, 1.045); } }

/* Soundbox und Noten */
.speaker { transform-box: fill-box; transform-origin: 50% 100%; }
.speaker.appear { animation: spk-in .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes spk-in { from { transform: scale(0) translateY(-34px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.phone-glow { transform-box: fill-box; transform-origin: center; animation: phone-glow 2.2s ease-in-out infinite alternate; }
@keyframes phone-glow { from { transform: scale(.94); opacity: .85; } to { transform: scale(1.08); opacity: 1; } }
.watch { transform-box: fill-box; transform-origin: 50% 100%; animation: watch 3.6s ease-in-out infinite alternate; }
@keyframes watch { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg); } }
.phone-rays { animation: rays 1.4s ease-in-out infinite alternate; }
@keyframes rays { from { opacity: .35; } to { opacity: 1; } }
.phone-badge { transform-box: fill-box; transform-origin: center; animation: badge 1.6s ease-in-out infinite; }
@keyframes badge { 0%, 70%, 100% { transform: scale(1); } 85% { transform: scale(1.3); } }
.mnote { opacity: 0; transform-box: fill-box; animation: mnote 3.4s ease-out infinite; }
.mnote.m2 { animation-delay: 1.1s; } .mnote.m3 { animation-delay: 2.2s; }
@keyframes mnote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(6px, -30px) rotate(10deg); opacity: 0; } }
.speaker.playing { animation: pulse-spk .38s ease-in-out infinite alternate; }
@keyframes pulse-spk { from { transform: scale(1); } to { transform: scale(1.1, .94); } }
.note { animation: note 2.6s ease-out forwards; }
.note.n1 { animation-name: note1; } .note.n2 { animation-name: note2; }
@keyframes note { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(10px, -78px) rotate(14deg); opacity: 0; } }
@keyframes note1 { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(-14px, -84px) rotate(-12deg); opacity: 0; } }
@keyframes note2 { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(8px, -42px); } 100% { transform: translate(-4px, -92px) rotate(8deg); opacity: 0; } }
.sb-btn { position: absolute; width: 44px; height: 48px; transform: translate(-50%, -78%); padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.sb-btn:hover { background: #ffffff33; }

/* Winken und Sprechblase */
.arm-r { transform-box: fill-box; transform-origin: 0% 0%; }
.char.waving .arm-r { animation: wave-arm 1.6s ease-in-out 1; }
@keyframes wave-arm { 0% { transform: rotate(0); } 18% { transform: rotate(-135deg); } 32% { transform: rotate(-116deg); } 46% { transform: rotate(-148deg); } 60% { transform: rotate(-116deg); } 74% { transform: rotate(-148deg); } 100% { transform: rotate(0); } }
.bubble { transform-box: fill-box; transform-origin: 50% 100%; animation: bubble 2.2s ease-out forwards; }
@keyframes bubble { 0% { transform: scale(.3); opacity: 0; } 12% { transform: scale(1.12); opacity: 1; } 22% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.me-btn { position: absolute; width: 46px; height: 68px; transform: translate(-50%, -92%); padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; border-radius: 14px; -webkit-tap-highlight-color: transparent; }

/* Schaltflächen über den Motiven */
.mk-btn {
  position: absolute; width: 86px; height: 104px; transform: translate(-50%, -92%); padding: 0; border: 0; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 2; border-radius: 16px;
}
.mk-btn.big { width: 170px; height: 270px; transform: translate(-50%, -94%); }
.mk-btn .badge {
  position: absolute; left: calc(50% + var(--bx, 0px)); bottom: calc(-11px - var(--by, 0px)); transform: translateX(-50%); min-width: 30px; height: 30px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 15px; font: 700 15px/1 var(--serif); color: #fff;
  background: var(--berry); border: 2px solid #fff; box-shadow: 0 2px 6px #1f33424d;
}
.mk-btn.status-opened .badge { background: var(--green); }
.mk-btn.status-locked .badge { background: #6d8597; }
.mk-btn.today .badge { box-shadow: 0 0 0 4px #e8b84acc, 0 2px 8px #1f334266; animation: ring 2s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 8px #e8b84a55, 0 2px 8px #1f334266; } }
.mk-btn:hover:not(.status-locked) .badge { transform: translateX(-50%) scale(1.1); }
.mk-btn.big .badge { bottom: -7px; min-width: 38px; height: 38px; font-size: 19px; border-radius: 19px; }

/* Test-Panel: Tageszeit und Tagessimulator (nur Testmodus) */
.devclock { position: fixed; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 9; display: grid; gap: 6px;
  background: #0b1530ea; color: #fff; padding: 8px 12px; border-radius: 14px; font-size: 13px; max-width: calc(100vw - 16px); }
.devclock .row { display: flex; align-items: center; gap: 8px; }
.devclock .row > span:first-child { width: 62px; opacity: .8; }
.devclock .admin-note > span:first-child { width: auto; font-size: 12px; line-height: 1.4; opacity: .85; max-width: 330px; }
.devclock input { width: 130px; }
.devclock select, .devclock button { font: inherit; font-size: 13px; color: #fff; background: #1d2b57; border: 1px solid #4a5d9a; border-radius: 8px; padding: 5px 8px; min-height: 32px; }
.devclock button { cursor: pointer; } .devclock button:hover { background: #2b3d78; }

/* Infokarte über der Landschaft: Countdown vor dem Start, danach einmalig die Begrüßung */
.info-card {
  position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 7; width: min(420px, calc(100vw - 24px));
  box-sizing: border-box; padding: 18px 20px 16px; text-align: center; color: #3b2d1f; border-radius: 16px;
  background: #f4e8d0; border: 1px solid #d8c49a; box-shadow: 0 12px 34px #1f33424d, inset 0 0 0 4px #fffaf0aa;
  animation: card-in .6s cubic-bezier(.2, .8, .2, 1);
}
.info-card h2 { margin: 0 0 6px; font-size: 22px; color: #2f4a3a; }
.info-card .intro { margin: 6px 0 12px; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.info-card .intro p { margin: .4em 0; }
.cd { display: flex; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.cd div { min-width: 58px; padding: 8px 4px 6px; border-radius: 10px; background: #fffaf0; border: 1px solid #e2d3b0; }
.cd b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.cd span { font-size: 12px; color: #6b5a44; }
.info-card .cd-text { margin: 8px 0 0; font-size: 15px; color: #5a4a36; }
.info-close { position: absolute; top: 4px; right: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: #6b5a44; cursor: pointer; }
.info-card.fade { opacity: 0; transition: opacity .8s; }
@keyframes card-in { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .info-card { animation: none; } }

/* Anmeldung und Ende */
.login {
  max-width: 380px; margin: 14vh auto 0; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 24px 26px; box-shadow: 0 16px 40px #1f33421f; position: relative; z-index: 4;
}
.login .star { color: var(--berry); font-size: 30px; }
.login h1 { margin: 6px 0 6px; font-size: 32px; }
.login p { color: var(--muted); margin: 0 0 18px; }
.login form { display: grid; gap: 12px; }
.login input {
  font: inherit; font-size: 18px; padding: 13px 14px; border-radius: 10px; border: 1px solid #9db8cb; background: #fff; color: var(--text); text-align: center;
}
.btn { font: inherit; font-weight: 600; font-size: 17px; padding: 13px 16px; border-radius: 10px; border: 0; cursor: pointer; background: var(--green); color: #fff; min-height: 48px; }
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.error { min-height: 1.4em; margin: 2px 0 0; color: #b02a22; font-size: 15px; }
.closed { text-align: center; margin: 22vh 16px 0; }
.closed h1 { font-size: 34px; }
.closed p { color: var(--muted); }
.foot { margin-top: 30px; text-align: center; }

/* Türchen-Fenster: beiges Papier mit Girlande, Schneekante und Stechpalmen */
dialog { border: 0; padding: 0; background: transparent; color: #3b2d1f; width: min(560px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: visible; }
dialog::backdrop { background: #16283399; backdrop-filter: blur(3px); }
dialog[open] { animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
dialog article {
  position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 16px); overflow: hidden; border-radius: 18px;
  background-color: #f4e8d0; box-shadow: inset 0 0 0 8px #f4e8d0, inset 0 0 0 9.5px #cfae6a99, 0 20px 60px #0007;
}
dialog article:focus { outline: none; }
dialog article::before, dialog article::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
dialog article::before { top: 0; height: 66px; background: url(/static/garland.svg) repeat-x center top / 96px 48px, linear-gradient(#f4e8d0 55%, #f4e8d000); }
dialog article::after { bottom: 0; height: 52px;
  background: url(/static/holly.svg) no-repeat 16px 6px / 40px 34px, url(/static/holly-r.svg) no-repeat right 16px top 6px / 40px 34px,
    url(/static/snowdrift.svg) repeat-x center bottom / 120px 30px, linear-gradient(#f4e8d000, #f4e8d0 40%); }
.dlg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 58px 30px 50px; }
.dlg-num { margin: 0 0 2px; text-align: center; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #9a6b2a; font-weight: 700; }
dialog h2 { margin: 0 0 6px; text-align: center; font-size: clamp(24px, 6vw, 30px); line-height: 1.2; color: #2f4a3a; padding: 0 22px; }
.dlg-orn { position: relative; width: 150px; height: 18px; margin: 0 auto 14px; background: linear-gradient(90deg, #cfae6a00, #cfae6a 30%, #cfae6a 70%, #cfae6a00) center / 100% 1px no-repeat; }
.dlg-orn::after { content: "✦"; position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 0 8px; background: #f4e8d0; color: #c9a35a; font-size: 13px; line-height: 18px; }
/* nur das X, ohne Kreis und ohne Umrandung */
.close { position: absolute; top: 50px; right: 10px; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 0; font-size: 34px; line-height: 1; cursor: pointer; color: #7a5a30; text-shadow: 0 0 4px #f4e8d0, 0 0 8px #f4e8d0, 0 0 3px #f4e8d0; }
.close:hover { color: #3b2d1f; background: none; }
.close:focus-visible { outline: 2px solid #b79a64; outline-offset: -8px; border-radius: 10px; }
.dlg-images { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 16px; }
.dlg-images img { max-width: 100%; max-height: min(26dvh, 210px); width: auto; height: auto; object-fit: contain; display: block; border: 6px solid #fffdf8; border-radius: 3px; background: #fffdf8; box-shadow: 0 4px 14px #5b45284d; }
.dlg-images img:nth-child(odd) { transform: rotate(-.7deg); } .dlg-images img:nth-child(even) { transform: rotate(.7deg); }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: #3b2d1f; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: .8em 0; }
.prose a { color: var(--berry); }
.prose blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid #cfae6a; font-style: italic; }
.prose img { max-width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  background: #1f3342; color: #fff; padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 8px 24px #0006;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .burst { opacity: .9; transform: scale(.85); }
  .char.waving .arm-r { transform: rotate(-135deg); }
  .mnote { opacity: .85; }
  .phone-rays { opacity: .9; }
  .shoot { opacity: 1; }
}

.love { animation: love-up 2.6s ease-out infinite; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes love-up { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--lx, 4px), -22px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .love { animation: none; opacity: 1; transform: translateY(-8px); } }
.love.d1 { animation-delay: .9s; }
.love.d2 { animation-delay: 1.7s; }
.tw { animation: twinkle 1.8s ease-in-out infinite alternate; } .tw2 { animation-delay: .7s; }
.rays { transform-origin: center; animation: spin 60s linear infinite; }
.paddle { transform-origin: 0% 100%; animation: swing .55s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.ball-x { animation: pp-x 1.1s linear infinite alternate; }
.ball-y { animation: pp-y 1.1s ease-in-out infinite; }
@keyframes pp-x { from { transform: translateX(-17px); } to { transform: translateX(17px); } }
@keyframes pp-y { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3.2s ease-in-out infinite alternate; } .ripple.r2 { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.08); opacity: .4; } }
.dnote { animation: dnote 3s ease-in-out infinite; opacity: 0; } .dnote.d1 { animation-delay: 1s; } .dnote.d2 { animation-delay: 2s; }
@keyframes dnote { 0% { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dnote { animation: none; opacity: 1; } }
.boat { animation: boat 4s ease-in-out infinite alternate; }
@keyframes boat { from { transform: translateY(-1px) rotate(-1.5deg); } to { transform: translateY(1px) rotate(1.5deg); } }
.boat { transform-box: fill-box; transform-origin: center bottom; }
.mk.reveal .mk-body { animation: reveal .8s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes reveal { 0% { transform: scale(.4); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mk.reveal .mk-body { animation: none; } }

/* Vor dem Start: nur Nebel und Schnee, die Landschaft bleibt verborgen */
section.mist { height: calc(100dvh - 58px); overflow: hidden; }

/* Türchen-Animation: Türchen erscheint am Symbol und geht auf, dann kommt der Inhalt */
.door-anim { position: fixed; z-index: 9; width: 80px; height: 102px; margin: -51px 0 0 -40px; perspective: 520px; pointer-events: none; animation: da-in .52s cubic-bezier(.2, .9, .3, 1.3) both; }
.da-inside { position: absolute; inset: 0; border-radius: 11px; background: radial-gradient(circle at 50% 55%, #fff6cf, #f0c455 72%); box-shadow: inset 0 0 18px #0004; }
.da-face { position: absolute; inset: 0; border-radius: 11px; display: grid; place-items: center; transform-origin: 0% 50%;
  background: linear-gradient(155deg, #3f8a72, #1f5a47); border: 1.5px solid #fff8; box-shadow: 0 6px 16px #1f334266; transition: transform .95s cubic-bezier(.3, .7, .2, 1); }
.da-face::before { content: ""; position: absolute; inset: 7px; border-radius: 8px; border: 1px solid #ffffff55; }
.da-num { font-family: var(--serif); font-size: 38px; color: #fff; text-shadow: 0 2px 0 #0003; }
.door-anim.open .da-face { transform: rotateY(-118deg); }
.door-anim.open .da-inside { box-shadow: 0 0 34px 8px #ffd75ecc, inset 0 0 20px #fff8; }
.door-anim.gone { opacity: 0; transition: opacity .35s; }
@keyframes da-in { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tv-screen { animation: tv 2.6s ease-in-out infinite alternate; }
@keyframes tv { from { opacity: .82; } to { opacity: 1; } }
