body {
  background-image: url(https://klixa-xmas.ch/img/desktop_bg.png);
  /*background-color: #7a1515;*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}


.calendar {
  position: relative;
  top: 50px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 50px;
  max-width: 800px;
  margin: 10rem auto 4rem auto; 
  padding: 0 1rem;
  justify-content: center; 
  align-items: center;  
}
.door {
  width: 150px;
  height: 210px; 
  background-color: transparent !important;
  border: none;
  margin: 5px;
  cursor: pointer;
  transition: all 0.6s ease;
}

.door.locked {
  cursor: not-allowed;
  box-shadow: none;
  background-color: transparent;
}

.door.opened {
  cursor: default;
}

.door.opened::after {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 1.5rem;
}

/* Modal Styles */
#modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}
#modal.show {
  visibility: visible;
  opacity: 1;
}
#modal-content {
  background: #222;
  border-radius: 15px;
  padding: 2rem;
  max-width: 400px;
  color: #fff;
  box-shadow: 0 0 15px #b22222;
  text-align: center;
}
#modal-content h2 {
  margin-top: 0;
  color: #b22222;
}
#modal-content button {
  margin-top: 1.5rem;
  background: #b22222;
  border: none;
  color: white;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}
#modal-content button:hover {
  background: #7a1515;
}


/*Responsive Anpassung für Handy*/
@media (max-width: 768px) {
  body {
    /*Hier dein mobiles Hintergrundbild einsetzen*/
    background-image: url(https://klixa-xmas.ch/img/mobile_bg_optimized.jpg);
  }

  .calendar {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
    margin: 20rem auto 2rem auto;
  }

  .door {
    width: 90px;
    height: 120px;
  }
}



/*Schneeflocken-*/
.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Klicks nicht blockieren */
  z-index: 200; /* über Hintergrund, unter Modal */
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1em;
  opacity: 0.9;
  user-select: none;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}
