/* === Grundlayout === */
body {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  background: radial-gradient(circle at bottom, #021021, #000);
  color: white;
  padding: 20px;
  overflow-x: hidden;
  min-height: 100vh;
}

h1 {
  margin-bottom: 30px;
  color: gold;
  text-shadow: 2px 2px 5px #000;
}

/* === Kalender-Raster === */
.calendar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  justify-items: center;
  z-index: 1;
  position: relative;
}

.door {
  width: 150px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid gold;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, background 0.3s;
  position: relative;
  cursor: pointer;
}

.door:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.15);
}

.closed {
  background: #8b0000;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.door-open {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  color: gold;
}

/* === Schneefall === */
/*.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 20px 20px;
  animation: snowMove 10s linear infinite;
  opacity: 0.4;
  z-index: 0;
}

@keyframes snowMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 100px 200px, 200px 400px; }
}*/
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.flake {
    position: absolute;
    top: -10px;
    color: white;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* === Fliegender Santa (1 PNG reicht) === */
.santa {
  position: fixed;
  bottom: 20%;
  left: -300px;
  width: 200px;
  height: 150px;
  background: url('santa/santa.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 10px gold);
  animation: santaFly 25s linear infinite;
}

@keyframes santaFly {
  0% {
    transform: translate(-300px, 60vh) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(20vw, 50vh) scale(1) rotate(5deg);
  }
  25% {
    transform: translate(60vw, 30vh) scale(1.2) rotate(-10deg);
  }
  40% {
    transform: translate(110vw, 40vh) scale(0.9) rotate(0deg) scaleX(-1);
  }
  55% {
    transform: translate(70vw, 10vh) scale(1.1) rotate(10deg) scaleX(-1);
  }
  70% {
    transform: translate(0vw, 20vh) scale(0.9) rotate(-10deg);
  }
  85% {
    transform: translate(40vw, 60vh) scale(1.3) rotate(8deg);
  }
  100% {
    transform: translate(-300px, 70vh) scale(0.8) rotate(0deg);
    opacity: 0;
  }
}

/* === Modal / Popup === */
#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

#modal.show { display: flex; }

.modal-content {
  background: #111;
  color: white;
  border: 2px solid gold;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px gold;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-content a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: gold;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
.modal-content a:hover {
  background: #ffda44;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: gold;
}

/* === Glanzeffekt über dem Modal === */
.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: none;
}
#modal.show .modal-content::before {
  animation: shine 1.5s ease forwards;
}
@keyframes shine {
  0% { left: -100%; }
  100% { left: 160%; }
}

/* === Responsivität === */
@media (max-width: 768px) {
  .calendar { grid-template-columns: repeat(3, 1fr); }
  .door { width: 120px; height: 150px; }
  .modal-content { width: 95%; }
}
