/* Go Biber Maskottchen - Benny der Biber */
.biber-mascot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8B4513, #D2B48C);
  border-radius: 50% 50% 45% 45%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: bennyFloat 3s ease-in-out infinite;
}

.biber-mascot:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.biber-mascot.talking {
  animation: bennyTalk 0.5s ease-in-out;
}

.biber-mascot.excited {
  animation: bennyExcited 1s ease-in-out;
}

/* Biber Gesicht */
.biber-face {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: #333;
}

/* Biber Augen */
.biber-eyes {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.biber-eye {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  animation: bennyBlink 4s infinite;
}

.biber-eye.wink {
  animation: bennyWink 0.3s ease-in-out;
}

/* Biber Zähne */
.biber-teeth {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}

.biber-tooth {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
}

/* Sprechblase */
.biber-speech {
  position: absolute;
  bottom: 90px;
  right: 0;
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 20px 20px 5px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 320px;
  font-size: 12px;
  line-height: 1.4;
  transform: scale(0);
  transform-origin: bottom right;
  transition: all 0.3s ease;
  z-index: 1001;
}

.biber-speech.show {
  transform: scale(1);
  animation: speechPop 0.4s ease-out;
}

.biber-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 5px solid transparent;
  border-top: 15px solid white;
}

/* Benachrichtigungs-Badge */
.biber-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: bold;
  animation: bennyPulse 2s infinite;
  transform: scale(0);
}

.biber-notification.show {
  transform: scale(1);
}

/* Animationen */
@keyframes bennyFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes bennyTalk {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05) rotate(3deg); }
}

@keyframes bennyExcited {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes bennyBlink {
  0%, 90%, 100% { height: 8px; }
  95% { height: 2px; }
}

@keyframes bennyWink {
  0%, 100% { height: 8px; }
  50% { height: 2px; }
}

@keyframes speechPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bennyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Saisonale Themes */
.biber-mascot.christmas {
  background: linear-gradient(135deg, #228B22, #32CD32);
}

.biber-mascot.christmas::before {
  content: '🎄';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.biber-mascot.easter {
  background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
}

.biber-mascot.easter::before {
  content: '🐰';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.biber-mascot.summer {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.biber-mascot.summer::before {
  content: '☀️';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.biber-mascot.winter {
  background: linear-gradient(135deg, #4682B4, #87CEEB);
}

.biber-mascot.winter::before {
  content: '❄️';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

/* Mini-Game Container */
.biber-game {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 400px;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2000;
  padding: 20px;
  transition: all 0.4s ease;
  color: white;
  text-align: center;
}

.biber-game.show {
  transform: translate(-50%, -50%) scale(1);
}

.biber-game-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biber-game-content {
  margin-top: 40px;
}

.biber-game-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #FFD700;
}

.dam-building-game {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.wood-pieces {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.wood-piece {
  width: 40px;
  height: 15px;
  background: #8B4513;
  border-radius: 3px;
  cursor: grab;
  transition: transform 0.2s ease;
}

.wood-piece:hover {
  transform: scale(1.1);
}

.wood-piece.dragging {
  cursor: grabbing;
  transform: rotate(5deg);
}

.dam-area {
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, #87CEEB, #4682B4);
  border-radius: 10px;
  position: relative;
  margin: 20px 0;
  border: 2px dashed rgba(255,255,255,0.5);
}

.dam-score {
  font-size: 18px;
  margin: 15px 0;
  color: #FFD700;
}

/* Overlay */
.biber-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.biber-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .biber-mascot {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }
  
  .biber-face {
    font-size: 25px;
  }
  
  .biber-speech {
    max-width: 280px;
    font-size: 12px;
    bottom: 70px;
  }
  
  .biber-game {
    width: 90%;
    height: 400px;
    padding: 15px;
  }
  
  .biber-game-title {
    font-size: 20px;
  }
}
