body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #0b233f, #1c3b5a);
  font-family: "Comic Sans MS", cursive;
  color: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------------- Countdown Karte ---------------- */
.card {
  background: rgba(200, 30, 45, 0.85);
  padding: 50px 70px;
  border-radius: 25px;
  border: 2px solid gold;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: glowCard 3s ease-in-out infinite alternate;
}

@keyframes glowCard {
  0% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,255,255,0.4); }
  100% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
}

/* ---------------- Countdown Text ---------------- */
#countdown {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  position: relative;
}

#countdown span {
  background: rgba(255,255,255,0.1);
  padding: 20px 25px;
  border-radius: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 5px #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* kleine Pop-Animation bei Update */
#countdown span.updated {
  animation: pop 0.4s ease forwards;
}

@keyframes pop {
  0%   { transform: scale(1); box-shadow: 0 0 5px #fff; }
  50%  { transform: scale(1.3); box-shadow: 0 0 20px #ffeb3b; }
  100% { transform: scale(1); box-shadow: 0 0 5px #fff; }
}




/* ---------------- Schneefall ---------------- */

.snowflakes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.snowflake {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0.9;
  animation: fall linear infinite, wind ease-in-out infinite;
}

@keyframes fall {
  to { transform: translateY(110vh); }
}

@keyframes wind {
  0%,100% { margin-left: 0; }
  50% { margin-left: 40px; }
}

/* ---------------- Schnee am Boden ---------------- */

/* ---------------- Schnee am Boden ---------------- */
/* Schnee am Boden */
.snow-ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 190px;
  z-index: 5;
  background: #fff;
  transition: height 0.1s linear;

  /* Textur mit deutlich sichtbaren Hügeln und Tälern */
  clip-path: polygon(
    0% 0%, 5% 3%, 10% 0%, 15% 5%, 20% 1%,
    25% 6%, 30% 2%, 35% 7%, 40% 1%, 45% 5%,
    50% 0%, 55% 6%, 60% 2%, 65% 7%, 70% 1%,
    75% 5%, 80% 2%, 85% 6%, 90% 3%, 95% 7%, 100% 0%,
    100% 100%, 0% 100%
  );
}



/* Schneemann */
.snowman {
  position: absolute;
  bottom: 180px;       /* gleiche Höhe wie vorher */
  left: 75%;           /* weiter rechts, statt 50% */
  transform: translateX(-50%); /* optional, zentriert ihn auf diese 75%-Position */
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Optional: Schneemann dynamisch auf Schnee setzen */



/* Kugeln */
.ball {
  background: white;
  border-radius: 50%;
  position: relative;
}

.head {
  width: 50px;
  height: 50px;
  margin-bottom: -10px;
  z-index: 3;
}

.body {
  width: 70px;
  height: 70px;
  margin-bottom: -15px;
  z-index: 2;
  position: relative;
}

.base {
  width: 90px;
  height: 90px;
  z-index: 1;
}

/* Gesicht */
.eye {
  width: 6px;
  height: 6px;
  background: black;
  border-radius: 50%;
  position: absolute;
  top: 16px;
}

.eye.left { left: 14px; }
.eye.right { right: 14px; }

.nose {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 14px solid orange;
}

.mouth {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 20px;
  height: 10px;
  border-bottom: 3px solid black;
  border-radius: 0 0 20px 20px;
  transform: translateX(-50%);
}

/* Hut */
.hat {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.hat-top {
  width: 40px;
  height: 35px;
  background: black;
  border-radius: 5px 5px 0 0;
}

.hat-brim {
  width: 55px;
  height: 6px;
  background: black;
  margin-top: -2px;
}

/* Arme */
.arm {
  position: absolute;
  top: 42px;
  width: 55px;
  height: 6px;
  background: #6b3e26;
  border-radius: 5px;
}

.arm.left {
  left: -50px;
  transform: rotate(-20deg);
}

.arm.right {
  right: -50px;
  transform: rotate(20deg);
}

/* Knöpfe */
.button {
  width: 6px;
  height: 6px;
  background: black;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.b1 { top: 20px; }
.b2 { top: 40px; }

