/* =========================================
   WEIHNACHTSGRUSS & SCHLIESSTAGE 2026/2027
   Responsive Overlay
	/
	├── index.html
	├── css/
	│   └── Schliesstage_2026-27.css
	├── js/
	│   └── Schliesstage_2026-27.js
	└── files/
		└── Schliesstage_2026-27.webp (960x675px)
   ========================================= */

#xmas-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: auto;
    box-sizing: border-box;
    z-index: 999999;
}

#xmas-overlay:not([open]) {
    display: none;
}

#xmas-overlay[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: xmas-fade-in 1s ease-out both;
}

#xmas-overlay::backdrop {
    background: rgba(0, 0, 0, 0.65);
    animation: xmas-fade-in 1s ease-out both;
}

/* Responsiver Bildcontainer – Format 64:45 */

#xmas-content {
    position: relative;
    width: min(85vw, 960px, 116.62vh);
    width: min(85vw, 960px, 116.62dvh);
    aspect-ratio: 960 / 675;
    margin: auto;
    flex-shrink: 0;
}

/* Weihnachtsbild */

#xmas-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 675;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Schließen-Schaltfläche */

#xmas-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease;
}

#xmas-close:hover {
    background: #555;
}

#xmas-close:focus-visible {
    outline: 3px solid #ffcc33;
    outline-offset: 3px;
}

/* Einblendeffekt */

@keyframes xmas-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Smartphone */

@media (max-width: 600px) {
    #xmas-content {
        width: min(88vw, 960px, 116.62vh);
        width: min(88vw, 960px, 116.62dvh);
    }

    #xmas-close {
        top: -12px;
        right: -12px;
    }
}

/* Barrierefreiheit */

@media (prefers-reduced-motion: reduce) {
    #xmas-overlay[open],
    #xmas-overlay::backdrop {
        animation: none;
    }
}