/* Import Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;1,500&display=swap');

* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Jonas */
.main-view {
  display: flex;
  flex-direction: column;
}

.lagerzeitung-section {
  color: var(--text-color);
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
  flex-wrap: nowrap;
  justify-content: center;
}

/* Wrapper für jedes Jahr */
.zeitung-wrapper {
  position: relative;
  flex: 1 1 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-width: 580px;
}

/* Bild */
.gruppenfoto {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Passwort Overlay */
.passwort-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 25, 40, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  z-index: 10;
}

.passwort-box {
  background: rgba(255,255,255,0.1);
  padding: 2rem 2.5rem;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  max-width: 400px;
  width: 100%;
}

.passwort-box h2 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.passwort-box p {
  margin-bottom: 1rem;
}

.passwort-box input {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
}

.passwort-box button {
  background: #ff5252;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.passwort-box button:hover {
  background: #ff7979;
  transform: scale(1.03);
}

.error-msg {
  color: #ffaaaa;
  font-size: 0.9rem;
  height: 1.2rem;
}

/* Grid nach Freischaltung */
.zeitung-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(20, 30, 40, 0.65);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 9;
}

.zeitung-overlay.visible {
  opacity: 1;
}

.zeitung-overlay.hidden {
  display: none;
}

.zeitung-overlay h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.zeitung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: none;
  overflow: visible;
}

.zeitung-link {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.zeitung-link:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
  .lagerzeitung-section {
    flex-wrap: wrap;
    gap: 30px;
  }

  .zeitung-wrapper {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .zeitung-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .passwort-box {
    padding: 1.5rem;
  }

  .passwort-box h2 {
    font-size: 1.5rem;
  }

  .passwort-box input {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .zeitung-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.8rem;
    padding-bottom: 0.5rem;
    max-width: 100%;
  }

  .zeitung-link {
    flex: 0 0 auto;
    min-width: 110px;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
  }

  .passwort-box {
    padding: 1rem 1.2rem;
  }

  .passwort-box input {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .passwort-box button {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .passwort-overlay {
    padding: 1rem;
  }
}

.header {
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-bottom: 3px solid #222;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.logo {
  height: 120px; /* Größer! */
  width: auto;
  flex-shrink: 0;
}

.title-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title-date h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.2rem;
  margin: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.title-date .date {
  font-style: italic;
  font-size: 1rem;
  color: #777;
  margin-top: 0.3rem;
}

.subheadline {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 0.3rem;
}


  @media (max-width: 720px) {
  .header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .logo {
    height: 70px;
  }
    .title-date {
      flex: unset;
    }
  .title-date h1 {
    font-size: 2.3rem;
    flex-direction: column;
  }
}