* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.slideshow-page {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  color: #fff4e8; font-family: Georgia, 'Times New Roman', serif; background: #32121c;
  background-image: radial-gradient(ellipse at 12% 0%, #94404677, transparent 55%), radial-gradient(ellipse at 95% 100%, #7d293b66, transparent 55%), linear-gradient(155deg, #461b28, #241019);
  background-attachment: fixed;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .38;
  background-image: radial-gradient(circle, #fff6e8aa 1px, transparent 1.8px), radial-gradient(circle, #fff6e866 .7px, transparent 1.5px), radial-gradient(ellipse at 50% -10%, #ffebc52b, transparent 65%);
  background-size: 113px 137px, 71px 97px, 100% 100%; background-position: 16px 31px, 47px 12px, 0 0;
}
main { position: relative; width: 100%; max-width: 1120px; margin: auto; padding: 27px 28px 22px; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid #fff0d6; outline-offset: 4px; }
.page-heading { font: 400 clamp(32px, 4.2vw, 45px)/1.12 Georgia, serif; letter-spacing: -.035em; margin: 0 auto 24px; color: #fff4e8; text-align: center; text-shadow: 0 3px 22px #18070d33; }
.page-heading em { display: block; font: 400 12px/1.5 Arial, sans-serif; letter-spacing: .18em; color: #d9bfb7; margin-top: 12px; }
.player { position: relative; max-width: 1060px; margin: auto; overflow: hidden; border: 1px solid #f8e4d32b; border-radius: 20px; isolation: isolate; background: #27131b; box-shadow: 0 28px 75px #10050c66, 0 1px 0 #fff6ec12 inset; }
.slides { position: relative; height: clamp(320px, 69vh, 800px); height: clamp(320px, 69svh, 800px); overflow: hidden; background: radial-gradient(ellipse at 50% 20%, #59313a, #28131c); }
.slides::before { content: ''; position: absolute; inset: -35px; background-image: var(--backdrop); background-position: center; background-size: cover; filter: blur(28px) brightness(.42) saturate(.65); opacity: .85; transition: background-image 1s; pointer-events: none; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; object-fit: contain; opacity: 0; transition: opacity 1.1s; filter: drop-shadow(0 5px 16px #0f050c33); }
.slide.active { opacity: 1; }
.start-overlay { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; z-index: 3; padding: 25px; background: radial-gradient(ellipse at 50% 15%, #9a4f4440, transparent 70%), linear-gradient(180deg, #481d2bdd, #230e19e8); perspective: 1000px; }
.door-button { appearance: none; position: relative; display: block; width: clamp(220px, 42vw, 300px); height: clamp(330px, 58svh, 465px); max-height: 90%; padding: 0; border: 1px solid #ead8c7c0; outline: 1px solid #ffffff50; outline-offset: -8px; border-radius: 120px 120px 5px 5px; background: linear-gradient(90deg, #ac2637 0%, #9b2536 18%, #f2e7d8 18%, #fff5e7 50%, #f2e7d8 82%, #9b2536 82%, #ac2637 100%); color: #ab2535; box-shadow: 0 23px 42px #12060c66, 0 0 60px #efc38e13; transition: transform .35s, box-shadow .35s; }
.door-button::before { content: ''; position: absolute; inset: 7px; pointer-events: none; border: 1px solid #f8dfbe88; border-radius: 115px 115px 3px 3px; box-shadow: 0 0 0 7px #b58b6220, 0 0 18px #f6dbac10 inset; }
.door-button::after { content: ''; position: absolute; left: 50%; top: 24%; transform: translateX(-50%); width: 48px; height: 53px; background: url('/static/images/maple.svg') center/contain no-repeat; }
.door-button:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 28px 48px #12060c77; }
.door-leaf { display: none; }
.door-date { position: absolute; left: 50%; top: 53%; transform: translateX(-50%); font: 400 clamp(80px, 15vw, 112px)/1 Georgia, serif; letter-spacing: -.04em; text-shadow: 0 1px 0 #fff; }
.door-handle { position: absolute; right: 8%; top: 64%; width: 10px; height: 10px; border: 1px solid #fce6c1; border-radius: 50%; background: #c9a477; box-shadow: 0 2px 4px #3a081b55; }
.player-controls { position: relative; display: flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; margin: 16px auto 0; padding: 4px 10px; gap: 8px; min-height: 52px; border: 1px solid #f4dccc1f; border-radius: 28px; background: #1f0e1680; box-shadow: 0 5px 20px #18070d16; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff4e9; }
.player-controls::before { content: ''; position: absolute; left: 50%; top: -9px; transform: translateX(-50%); width: 32px; height: 1px; background: linear-gradient(90deg, transparent, #e0bfa14d, transparent); }
.player-controls button { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 18px Arial, sans-serif; }
.player-controls button:hover { background: #fff4e916; }
.control-spacer { flex: 0 0 6px; }
#counter { min-width: 43px; text-align: center; color: #eee0d5; font: 10px Arial, sans-serif; letter-spacing: .06em; }
#pause, #sound { font-size: 0; }
#pause::before { content: '\2161'; font: 19px/1 Arial, sans-serif; }
#pause[aria-label='Diashow fortsetzen']::before { content: '\25B6'; font-size: 15px; }
#sound::before { content: ''; display: block; width: 20px; height: 20px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M4 9v6h4l5 4V5L8 9H4m13-1a6 6 0 0 1 0 8m3-11a10 10 0 0 1 0 14'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M4 9v6h4l5 4V5L8 9H4m13-1a6 6 0 0 1 0 8m3-11a10 10 0 0 1 0 14'/%3E%3C/svg%3E") center/contain no-repeat; }
#sound[aria-label='Musik einschalten']::after { content: ''; position: absolute; width: 25px; height: 1.5px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 0 0 2px #1e101b; }
#audio-status:empty { display: none; }
#audio-status { font: 12px/1.6 Arial, sans-serif; text-align: center; margin: 12px auto 0; max-width: 600px; color: #f4dad2; }
.logout-form { position: absolute; top: 12px; right: 18px; }
.logout-form button { width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; border: 0; border-radius: 50%; background: transparent; color: #d9bfb7; }
.logout-form button:hover { background: #ffffff10; }
.logout-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-card { max-width: 370px; margin: 30px auto 0; padding: 30px 32px 32px; border: 1px solid #f8e4d32b; border-radius: 22px; background: linear-gradient(155deg, #71334455, #21101acc); box-shadow: 0 20px 60px #14070e44; backdrop-filter: blur(14px); }
.login-maple { display: block; width: 29px; height: 32px; margin: 0 auto 16px; background: #dfb9a2; mask: url('/static/images/maple.svg') center/contain no-repeat; -webkit-mask: url('/static/images/maple.svg') center/contain no-repeat; }
.login-number { text-align: center; font: 400 48px/1 Georgia, serif; margin: 0 0 28px; color: #fff1df; }
.login-number span { display: block; margin-top: 8px; font: 10px Arial, sans-serif; letter-spacing: .16em; color: #d9bfb7; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; font: 12px Arial, sans-serif; margin-bottom: 9px; color: #e6cec3; }
.login-field input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #f6ddd039; border-radius: 9px; background: #fff8f00b; color: #fff4e8; font: 16px Arial, sans-serif; }
.login-field input:focus { background: #fff8f013; border-color: #dfb9a2; }
.login-submit { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 49px; margin-top: 8px; padding: 12px 17px; border: 1px solid #e08b8c55; border-radius: 9px; background: linear-gradient(135deg, #bd3d4c, #9b293d); color: #fff4e8; font: 13px Arial, sans-serif; box-shadow: 0 5px 18px #17081033; }
.login-submit:hover { filter: brightness(1.09); }
.login-error, .field-error { font: 12px/1.6 Arial, sans-serif; color: #ffd1c9; margin: 0 0 18px; }
.field-error { margin: 8px 0 0; }
.empty-gallery { text-align: center; padding: 60px 20px; font: 14px Arial, sans-serif; color: #e6cec3; }
@media (max-width: 600px) {
  main { padding: 25px 10px 15px; }
  .page-heading { font-size: 34px; margin-bottom: 23px; padding: 0 35px; letter-spacing: -.04em; }
  .page-heading em { font-size: 11px; letter-spacing: .18em; margin-top: 10px; }
  .player { border-radius: 14px; }
  .slides { height: calc(100vh - 185px); height: calc(100svh - 185px); min-height: 320px; }
  .player-controls { margin-top: 15px; gap: 5px; }
  .control-spacer { flex-basis: 3px; }
  .start-overlay { padding: 20px; }
  .door-button { width: 230px; max-width: 85%; height: clamp(310px, 56svh, 440px); }
  .logout-form { right: 7px; top: 15px; }
  .login-card { margin-top: 25px; padding: 27px 25px; width: calc(100% - 20px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  main { padding: 12px; }
  .page-heading { font-size: 27px; margin-bottom: 15px; }
  .page-heading em { display: inline; font-size: 12px; margin-left: 10px; letter-spacing: .08em; }
  .slides { height: calc(100svh - 125px); min-height: 200px; }
  .player-controls { margin-top: 12px; }
  .door-button { height: 210px; width: 150px; border-radius: 80px 80px 4px 4px; }
  .door-button::before { border-radius: 75px 75px 2px 2px; }
  .door-date { font-size: 60px; }
  .door-button::after { width: 29px; height: 32px; top: 21%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
