body {
	background-color: #354938;
}

h3 {
    font-family: 'Roboto', serif; /* Spezielle Schriftart für h1 */
    font-size: 28px;
    color: #c54245; /* Textfarbe */
    margin-bottom: 25px;
	text-align: center;
}

a {
	text-decoration: none;
}

.Adventskalender {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Spalten mit gleicher Breite */
  gap: 10px; /* Abstand zwischen den Türchen */
  max-width: 500px; /* Maximale Breite des Kalenders */
  margin: 0 auto; /* Zentriert den Kalender */
}

.Adventskalender .tag {
  background-color: #FFD700; /* Goldene Hintergrundfarbe */
  border: 2px solid #DAA520; /* Goldener Rahmen */
  border-radius: 5px; /* Abgerundete Ecken */
  padding: 20px; /* Innenabstand */
  text-align: center; /* Zentrierter Text */
  font-size: 0.7em; /* Schriftgröße */
  color: #8B4513; /* Dunkelbrauner Text */
  font-weight: bold; /* Fettdruck */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
  transition: transform 0.2s; /* Übergangseffekt bei Hover */
  cursor: pointer; /* Zeigeränderung bei Hover */
}

.Adventskalender .tag:hover {
  transform: scale(1.05); /* Vergrößert das Türchen leicht bei Hover */
}

.Adventskalender .tag.open {
  animation: openDoor 0.5s forwards; /* Öffnungs-Animation */
}

.Adventskalender .tag.close {
    animation: closeDoor 0.5s forwards; /* Schließungs-Animation */
}

@keyframes openDoor {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
    background-color: #FFF8DC; /* Hintergrundfarbe nach dem Öffnen */
    color: #8B4513; /* Textfarbe nach dem Öffnen */
  }
}

@keyframes closeDoor {
    0% {
        transform: rotateY(180deg);
        background-color: #FFF8DC; /* Startzustand der Schließung */
        color: #8B4513; /* Startfarbe des Textes */
    }
    100% {
        transform: rotateY(0deg);
        background-color: #FFD700; /* Zurück zur Ausgangsfarbe */
        color: #8B4513; /* Zurück zur Ausgangsfarbe */
    }
}

.snowflake {
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px #000;
}
 
.snowflake,.snowflake .inner{animation-iteration-count:infinite;animation-play-state:running}@keyframes snowflakes-fall{0%{transform:translateY(0)}100%{transform:translateY(110vh)}}@keyframes snowflakes-shake{0%,100%{transform:translateX(0)}50%{transform:translateX(80px)}}
.snowflake{position:fixed;top:-5%;z-index:9999;-webkit-user-select:none;user-select:none;cursor:default;animation-name:snowflakes-shake;animation-duration:4s;animation-timing-function:ease-in-out}
.snowflake .inner{animation-duration:8s;animation-name:snowflakes-fall;animation-timing-function:linear}
.snowflake:nth-of-type(0){left:1%;animation-delay:0s}
.snowflake:nth-of-type(0) .inner{animation-delay:0s}
.snowflake:nth-of-type(1){left:8%;animation-delay:0.7s}
.snowflake:nth-of-type(1) .inner{animation-delay:0.7s}
.snowflake:first-of-type{left:10%;animation-delay:0.5s}
.snowflake:first-of-type .inner{animation-delay:0.5s}
.snowflake:nth-of-type(2){left:20%;animation-delay:.5s}
.snowflake:nth-of-type(2) .inner{animation-delay:5.5s}
.snowflake:nth-of-type(6) .inner{animation-delay:6s}
.snowflake:nth-of-type(3){left:30%;animation-delay:2s}
.snowflake:nth-of-type(11) .inner{animation-delay:6.8s}
.snowflake:nth-of-type(3) .inner{animation-delay:4s}
.snowflake:nth-of-type(4){left:40%;animation-delay:2s}
.snowflake:nth-of-type(10) .inner{animation-delay:7.3s}
.snowflake:nth-of-type(4) .inner{animation-delay:2s}
.snowflake:nth-of-type(5){left:50%;animation-delay:3s}
.snowflake:nth-of-type(5) .inner{animation-delay:4s}
.snowflake:nth-of-type(6){left:60%;animation-delay:2s}
.snowflake:nth-of-type(7){left:70%;animation-delay:1s}
.snowflake:nth-of-type(7) .inner{animation-delay:2.5s}
.snowflake:nth-of-type(8){left:80%;animation-delay:1.2s}
.snowflake:nth-of-type(8) .inner{animation-delay:1.2s}
.snowflake:nth-of-type(9){left:90%;animation-delay:1.5s}
.snowflake:nth-of-type(9) .inner{animation-delay:3s}
.snowflake:nth-of-type(10){left:25%;animation-delay:0s}
.snowflake:nth-of-type(11){left:65%;animation-delay:2.5s}

/* Schneeflocken 12 bis 20 mit spezifischen Delays */
.snowflake:nth-of-type(12) { left: 5%; animation-delay: 5.0s; }
.snowflake:nth-of-type(12) .inner { animation-delay: 5.0s; }
.snowflake:nth-of-type(13) { left: 15%; animation-delay: 4.5s; }
.snowflake:nth-of-type(13) .inner { animation-delay: 4.5s; }
.snowflake:nth-of-type(14) { left: 25%; animation-delay: 4.2s; }
.snowflake:nth-of-type(14) .inner { animation-delay: 4.2s; }
.snowflake:nth-of-type(15) { left: 35%; animation-delay: 1s; }
.snowflake:nth-of-type(15) .inner { animation-delay: 1s; }
.snowflake:nth-of-type(16) { left: 45%; animation-delay: 4s; }
.snowflake:nth-of-type(16) .inner { animation-delay: 3.5s; }
.snowflake:nth-of-type(17) { left: 55%; animation-delay: 7s; }
.snowflake:nth-of-type(17) .inner { animation-delay: 7s; }
.snowflake:nth-of-type(18) { left: 65%; animation-delay: 6.5s; }
.snowflake:nth-of-type(18) .inner { animation-delay: 6.5s; }
.snowflake:nth-of-type(19) { left: 75%; animation-delay: 1.5s; }
.snowflake:nth-of-type(19) .inner { animation-delay: 1.5s; }
.snowflake:nth-of-type(20) { left: 85%; animation-delay: 6.0s; }
.snowflake:nth-of-type(20) .inner { animation-delay: 6.0s; }