/* ======= GLOBAL STYLES ======= */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: Arial, sans-serif;
  color: #fff;

  /* Hintergrund */
  background: url("Background.jpg") no-repeat center center fixed;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;

  /* Platz für Navbar */
  padding-top: 70px;
}

/* ======= NAVIGATION ======= */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #555; /* mittleres Grau */
  color: white;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.nav-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #777; /* Hover Effekt */
}

.nav-links .active {
  background: #666; /* Aktive Seite */
}

/* ======= PLAYER ======= */
.player-wrapper {
  width: 90%;
  max-width: 700px;
  background: linear-gradient(#ddd, #aaa);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  border: 2px solid #666;
  overflow: hidden;
  margin-top: 40px;
}

.player-screen {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Seitenverhältnis */
  background: black;
  border-bottom: 4px solid #777;
}

.player-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-controls {
  background: linear-gradient(to bottom, #ccc, #999);
  padding: 15px;
  text-align: center;
}

.display {
  font-family: "Courier New", monospace;
  background: #222;
  color: #0f0;
  padding: 6px;
  margin-bottom: 10px;
  border: inset 2px #555;
}

.buttons button {
  background: linear-gradient(to bottom, #eee, #bbb);
  border: 1px solid #666;
  border-radius: 4px;
  margin: 3px;
  padding: 5px 12px;
  cursor: pointer;
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.buttons button:hover {
  background: linear-gradient(to bottom, #fff, #ccc);
  transform: scale(1.05);
}

/* ======= GALLERY ======= */
.gallery {
  width: 90%;
  max-width: 1000px;
  margin: 100px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #666;
  transition: transform 0.3s, filter 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ======= HOME BUTTONS ======= */
.home-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 60px;
}

.nav-button {
  display: inline-block;
  padding: 12px 25px;
  background: #555;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.nav-button:hover {
  background: #777;
  transform: scale(1.05);
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 600px) {
  body {
    padding-top: 80px;
    background-attachment: scroll; /* verhindert Ruckeln auf Mobilgeräten */
  }

  .nav-links a {
    padding: 10px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .gallery img {
    height: 140px;
  }

  .display {
    font-size: 0.9rem;
  }

  .home-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
