* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0b1020;
  touch-action: manipulation;
  user-select: none;
}

#kalender {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Hintergrundbild */
#hintergrund {
  position: absolute;
  inset: 0;
  background-image: url('hintergrund.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#tueren {
  position: absolute;
  inset: 0;
}

/* Türchen */
.tuer {
  position: absolute;
  width: 9vmin;
  height: 9vmin;
  min-width: 60px;
  min-height: 60px;
  border-radius: 12px;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6vmin;
  font-weight: bold;
  color: #b90a0a;
  text-shadow: 2px 2px 4px rgba(241, 235, 235, 0.8);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translate(-50%, -50%);
}

.tuer:active {
  transform: translate(-50%, -50%) scale(0.92);
}

/* Hervorheben für heute */
.tuer.heute {
  animation: pulse 1.6s ease-in-out infinite;
  border-color: #ffffff;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255,213,79,0.7); }
  50%      { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 20px 8px rgba(255,213,79,0.7); }
}

/* Player-Overlay */
#player {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

#player.hidden {
  display: none;
}

.player-inner {
  background: #fff8e1;
  padding: 30px;
  border-radius: 20px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 4px solid #c62828;
}

.player-inner h2 {
  color: #b71c1c;
  margin-bottom: 20px;
  font-size: 1.6em;
}

.player-inner audio {
  width: 100%;
  margin-bottom: 20px;
}

#close-player {
  background: #c62828;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

#close-player:active {
  background: #8e0000;
}
