/* Grundlayout */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #1e3c72, #2a5298);
  color: #fff;
  text-align: center;
  padding: 20px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Schneeanimation */
.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 1em;
  z-index: 9999;
  user-select: none;
  pointer-events: none;
  animation: fall linear infinite;
}

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

/* Überschriften */
h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px #000;
}

h2 { color: #b22222; }

/* Kalender-Grid */
.calendar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Türchen-Style */
.door {
  background: linear-gradient(to top, #b22222, #ff6347);
  color: white;
  border-radius: 15px;
  padding: 30px;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

/* Glühen bei Hover */
.door.openable:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 15px rgba(255, 99, 71, 0.8);
  filter: brightness(1.2);
}

/* Gesperrte Türchen */
.door.locked {
  background: #555;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Türchen-Zahl */
.door span {
  font-weight: bold;
  font-size: 2em;
  text-shadow: 1px 1px 4px #000;
}

/* Modal */
.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;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  animation: popup 0.3s ease;
}

/* Modal schließen */
#close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
  color: #b22222;
}

/* Modal Animation */
@keyframes popup {
  0% { transform: scale(0.5); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}

/* Bilder im Modal */
.modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* Adminbereich */
table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
  color: #333;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

button {
  padding: 8px 16px;
  background: #b22222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover { background: #ff6347; }

input, textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.add-form {
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  width: 90%;
  border-radius: 10px;
}

img.thumb {
  width: 80px;
  border-radius: 6px;
}

/* Logout */
.logout { position: absolute; top: 20px; right: 20px; }

/* Testmodus-Hinweis */
p { font-weight: bold; color: #ffd700; }
