/* ================================
   Grundfarbe / Page Layout
================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

main {
  color: #fff;
}

nav {
  background-color: #626262;
  color: white;
  padding: 20px; 
  margin-bottom: 40px; /* Abstand zum Container */
}

.container {
  max-width: 1100px;         /* maximale Breite */
  width: 100%;               /* passt sich immer an Viewport an */
  margin: 0 auto;            /* zentriert */
  padding: 80px 25px 20px 25px; /* oben Abstand + Innenabstand */
  background: #3a3a3a;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* ================================
   Überschriften & Introtext
================================ */
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.introtext {
  max-width: 900px;
  margin: 0 auto 25px auto;
  font-size: 1.1em;
  line-height: 1.6;
  text-align: left;
  color: #fff;
}

/* ================================
   Plakate Grid
================================ */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Normale Plakat-Boxen */
figure {
  background: #4f4f4f;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ================================
   Bildunterschriften
================================ */
figcaption {
  margin-top: 8px;
  font-size: 0.95em;
  font-style: italic;
  color: #ffffff;
}

/* ================================
   Langer Infotext über den Plakaten
================================ */
.plakat-text {
  grid-column: 1 / -1; /* volle Breite */
  background: none;
  padding: 0;
  border-radius: 0;
  text-align: center;
}

.plakat-text figcaption {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: left;
  font-size: 1.05em;
  line-height: 1.6;
  font-style: italic;
  color: #ffffff !important;
}

.box-rahmen {
  background: #4f4f4f;
  padding: 20px 25px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 900px;
}

.poster-grid figure {
  overflow: hidden;          /* verhindert, dass das Bild überläuft */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;           /* zeigt an, dass es interaktiv ist */
}

.poster-grid figure:hover {
  transform: scale(1.05);    /* leichtes Vergrößern */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Schatteneffekt */
}

.poster-grid figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.poster-grid figure:hover img {
  transform: scale(1.05);    /* Bild selbst leicht vergrößern */
}
