/* -------------------- Basis-Layout -------------------- */
body { 
  margin:0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #111;
}

/* Toggle Button */
.toggle-btn {
  position: fixed;
  top:20px;
  right:20px;
  padding:10px 20px;
  background:#111;
  color:#fff;
  border:none;
  cursor:pointer;
  z-index:1000;
  letter-spacing:1px;
}
.toggle-btn:hover { 
  background:#000; 
}

/* Header */
.header {
  padding:40px 0 20px 0;
  text-align:center;
  font-size:28px;
  letter-spacing:6px;
  font-weight:300;
}

/* Hero */
.hero {
  height:60vh;
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero h1 {
  font-size:42px;
  font-weight:200;
  letter-spacing:8px;
}

/* Banner Section */
.banner-section {
  display:flex;
  justify-content:center;
  gap:40px;
  padding:60px 0;
}

/* Banner als Link */
.banner-link {
  text-decoration: none;
}

.banner {
  width:300px;
  height:180px;
  border:2px solid #111;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:18px;
  letter-spacing:3px;
  cursor:pointer;
  transition: all 0.3s ease;
  color:#111;
}

.banner:hover {
  background:#111;
  color:#fff;
}

/* -------------------- Retro Pixel / MC Space -------------------- */
body.retro {
  background: #000000;
  font-family: "Press Start 2P", monospace;
  color: #00ff00;
  letter-spacing: 1px;
  background-image: repeating-linear-gradient(0deg, #111 0 1px, transparent 1px 4px),
                    repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 4px);
}

/* Header */
body.retro .header {
  text-shadow: 2px 2px #00ff00;
  color: #00ff00;
}

/* Hero */
body.retro .hero h1 {
  color: #00ff00;
  text-shadow: 2px 2px #00ff00;
}

/* Banner */
body.retro .banner {
  background: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
}

body.retro .banner:hover {
  background: #00ff00;
  color: #000;
}

/* Buttons */
body.retro .toggle-btn {
  background: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
}

body.retro .toggle-btn:hover {
  background: #00ff00;
  color: #000;
}

/* -------------------- Retro Flugzeuge -------------------- */
#retroPlanesContainer {
  position: fixed;
  inset: 0;
  z-index: 10;            /* niedriger als Buttons */
  pointer-events: none;   /* 🔥 Container blockiert nichts */
}

.retro-plane {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #00ff00;
  cursor: pointer;

  pointer-events: auto;   /* 🔥 Flugzeuge bleiben klickbar */
  z-index: 20;            /* über Layout */
  
  image-rendering: pixelated;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.pixel-explosion {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #f00;
  animation: explode 0.4s forwards;
  image-rendering: pixelated;
}

@keyframes explode {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* -------------------- Mobile-Styles -------------------- */
@media screen and (max-width: 768px) {

  .header {
    font-size: 28px;
    text-align: center;
    padding: 10px;
  }

  .hero {
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: 22px;
    text-align: center;
  }

  .banner-section {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .banner-link .banner {
    font-size: 18px;
    padding: 12px;
    text-align: center;
  }

  #retroPlanesContainer {
    height: 300px;
    overflow: hidden;
  }

  .retro-plane {
    width: 16px;
    height: 16px;
  }

  .pixel-explosion {
    width: 24px;
    height: 24px;
  }

  .toggle-btn {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* -------------------- Score + Popup -------------------- */
#retroScore {
  position: fixed;
  top: 20px;
  left: 20px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: #00ff00;
  z-index: 1000;
  text-shadow: 1px 1px #004400;
  display: none;
  pointer-events: none;
}

.score-popup {
  position: fixed;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: #00ff00;
  pointer-events: none;
  animation: scoreFloat 0.8s ease forwards;
  z-index: 999;
  white-space: nowrap;
}

@keyframes scoreFloat {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-28px); }
}

/* Für sehr kleine Smartphones (<480px) */
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 18px;
  }
  .banner-link .banner {
    font-size: 16px;
    padding: 10px;
  }
}