

/* ==============================
   BASIS
============================== */
body {
  font-family: "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ==============================
   DARK MODE 🌙
============================== */
body.dark {
  background: #111;
  color: #fff;
}

/* Buttons */
body.dark button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: #333333;
  color: white;
  transition: all 0.2s ease;
}

body.dark button:hover {
  background-color: #666666;
}

/* Video */
body.dark video {
  max-width: 80%;
  max-height: 60vh;
  margin-bottom: 30px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

body.dark video:hover {
  filter: brightness(1.2);
}

/* Animierter Rahmen (Dark) */
body.dark video.playing {
  animation: borderPulseDark 1s infinite alternate ease-in-out;
}

@keyframes borderPulseDark {
  0% {
    border-color: rgba(0,0,255,0.2);
    box-shadow: 0 0 10px rgba(0,0,255,0.2);
  }
  50% {
    border-color: rgba(0,0,255,0.8);
    box-shadow: 0 0 25px rgba(0,0,255,0.8);
  }
  100% {
    border-color: rgba(0,0,255,0.2);
    box-shadow: 0 0 10px rgba(0,0,255,0.2);
  }
}

/* Footer */
body.dark footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 15px;
  padding: 4px 0;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* Schnee */
body.dark .snowflake {
  color: white;
  opacity: 0.8;
}

/* ==============================
   LIGHT MODE ☀️
============================== */
body.light {
  background: #f5f5f5;
  color: #111;
}

/* Buttons */
body.light button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: #e0e0e0;
  color: #111;
  transition: all 0.2s ease;
}

body.light button:hover {
  background-color: #cfcfcf;
}

/* Video */
body.light video {
  max-width: 80%;
  max-height: 60vh;
  margin-bottom: 30px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

body.light video:hover {
  filter: brightness(1.05);
}

/* Animierter Rahmen (Light) */
body.light video.playing {
  animation: borderPulseLight 1s infinite alternate ease-in-out;
}

@keyframes borderPulseLight {
  0% {
    border-color: rgba(0,120,255,0.2);
    box-shadow: 0 0 10px rgba(0,120,255,0.2);
  }
  50% {
    border-color: rgba(0,120,255,0.6);
    box-shadow: 0 0 20px rgba(0,120,255,0.6);
  }
  100% {
    border-color: rgba(0,120,255,0.2);
    box-shadow: 0 0 10px rgba(0,120,255,0.2);
  }
}

/* Footer */
body.light footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 15px;
  padding: 4px 0;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 1);
  color: #111;
}

/* Schnee */
body.light .snowflake {
  color: #999;
  opacity: 0.7;
}

/* ==============================
   GEMEINSAME ELEMENTE
============================== */
.logo {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 80px;
  height: auto;
  z-index: 1000;
  animation: pulse 2s infinite;
}

#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/*
.snowflake {
  position: absolute;
  top: -50px;
  user-select: none;
  pointer-events: none;
  font-size: 15px;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  100% {
    transform: translateY(100vh) rotate(360deg) translateX(50px);
  }
}
*/

.heart {
  color: red;
  display: inline-block;
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Theme Toggle Button unten rechts */
.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 60px;   /* Abstand über dem Footer */
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease, background 0.3s ease, color 0.3s ease;
}

/* Optional: leichter Hover-Effekt */
.theme-toggle:hover {
  transform: scale(1.1);
}

/* ==============================
   MOBILE / SMARTPHONE STYLES
============================== */
@media (max-width: 600px) {
  /* Theme-Button kleiner & etwas höher über Footer */
  .theme-toggle {
    bottom: 80px;     /* mehr Abstand über Footer */
    right: 15px;
    padding: 8px 12px;
    font-size: 16px;
  }

  /* Buttons auf der Seite kleiner */
  body.dark button,
  body.light button {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Videos responsive */
  body video {
    max-width: 95%;
    max-height: 40vh;
  }

  /* Footer Schriftgröße anpassen */
  footer {
    font-size: 13px;
    padding: 6px 0;
  }
}