/* =========================================
   WEIHNACHTS- UND NEUJAHRSGRÜSSE 2026/2027
   Responsive Overlay
	/
	├── index.html
	├── css/
	│   └── Weihnachts-Neujahrgruesse_2026-27.css
	├── js/
	│   └── Weihnachts-Neujahrgruesse_2026-27.js
	└── files/
		└── Weihnachts-Neujahrgruesse_2026-27.webp (768x768px)
   ========================================= */

#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 1:1 */

#xmas-content {
    position: relative;
    width: min(85vw, 768px, 85vh);
    width: min(85vw, 768px, 85dvh);
    aspect-ratio: 1 / 1;
    margin: auto;
    flex-shrink: 0; }

/* Weihnachtsbild */

#xmas-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    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, 768px, 85vh);
        width: min(88vw, 768px, 85dvh); }

    #xmas-close {
        top: -12px;
        right: -12px; }
}

/* Barrierefreiheit */

@media (prefers-reduced-motion: reduce) {
    #xmas-overlay[open],
    #xmas-overlay::backdrop {
        animation: none; }

    #xmas-close {
        transition: none; }
}