/* Global Styles */
body {
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: Arial, sans-serif;
}

/* Header Styles */
header {
  background-color: black;
  padding: 10px 0;
  /* jetzt gleiche Max-Breite wie das Grid */
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Header-Container für Logo und Home-Button */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* doppelte Absicherung, falls header gepuffert wird */
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}
.header-container .logo,
.header-container .home-button {
  /* pas­sende Höhe, damit beide Buttons gleich groß sind */
  max-height: 40px;
  height: auto;
  display: block;
}

/* Iframe Styles */
.content-iframe {
  width: 100%;
  height: calc(100vh - 80px);
  border: none;
  display: block;
}

/* Popup Styles */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup-content {
  text-align: center;
  padding: 20px;
}
.popup-content p {
  color: #aeb089;
  font-size: 1.2em;
  margin-bottom: 20px;
}
#popup-button {
  background: #aeb089;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
}

/* Grid Container Styles */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;

  max-width: 800px;
  margin: 0 auto;
}

/* Grid Item Styles */
.grid-item {
  position: relative;
  border: 2px solid #aeb089;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  /* Hochformat 3:4 */
  aspect-ratio: 3 / 4;
}

.grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s;
}

/* Overlay Styles */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 2;
}
.overlay h2 {
  margin: 0;
  color: #aeb089;
}

/* Responsive: Zwei Spalten auf kleinen Geräten */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
