/* --- Google Font Hinweis (in head.php einfügen):
<link href="https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica&display=swap" rel="stylesheet">
*/

/* --- Hero-Bereich (Mitglied werden) volle Breite --- */
body.mitglied-werden .hero.banner {
  width: 100%;
  margin: 0;
  padding-top: 0px; /* Platz für feste Navigation */
  overflow: hidden;
  text-align: center; /* Zentriert das Bild */
}

body.mitglied-werden .hero.banner img {
  max-width: 90%; /* Etwas kleiner als 100%, damit es nicht über den Rand ragt */
  height: auto;
  display: inline-block; /* Für zentrierte Block-Elemente */
  object-fit: cover;
  margin-top: 85px; /* Bild wird weiter nach unten verschoben */
}

/* --- Hauptinhalt --- */
.huk-content {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Crimson Pro", serif;
  line-height: 1.7;
  color: #222;
}

/* --- Bilder mit weißen Rändern im Inhaltsbereich --- */
.huk-content img:not(.hero-img):not(.lightbox-img) {
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
  border: 3px solid white;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Vorstand: Rasteranzeige --- */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.vorstand-card {
  background-color: #ffffff;
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "IM Fell DW Pica", serif;
}

.vorstand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.vorstand-card h2 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  color: #2c3e50;
}

.vorstand-card p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.vorstand-bild {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #ccc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* --- Bildgestaltung allgemein --- */
.gallery-img {
  width: 300px;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}

.gallery-img.large {
  width: 400px;
  max-width: 100%;
  height: auto;
}

.gallery-img.xlarge {
  width: 1800px;
  max-width: 100%;
  height: auto;
}

/* --- Bild-Text-Layout --- */
.image-left,
.image-right {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  margin: 2em 0;
}

.image-left > p,
.image-right > p {
  margin-top: 0;
}

.image-right {
  flex-direction: row-reverse;
}

/* --- Lightbox Container --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

.lightbox .close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  z-index: 1001;
}

/* --- Zitat mit Bild --- */
blockquote.bild-im-zitat {
  max-width: 85%;
  margin: 2em auto;
  padding: 1.2em 1.5em;
  background: #e8e2d5;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.8;
  border-left: 2px solid #999;
  border-radius: 4px;
  box-shadow: inset 1px 0 4px rgba(0, 0, 0, 0.05);
}

blockquote.bild-im-zitat img.ersterwaehnung_wiebelskirchen {
  float: left;
  width: 400px;
  max-width: 100%;
  height: auto;
  margin: 0 1.5em 1em 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}

/* --- Kurzes Zitat --- */
blockquote.kurzzitat {
  max-width: 85%;
  margin: 2em auto;
  padding: 1.2em 1.5em;
  background: #e8e2d5;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.8;
  border-left: 2px solid #999;
  border-radius: 4px;
  box-shadow: inset 1px 0 4px rgba(0, 0, 0, 0.05);
}

/* --- Wappen-Zitat --- */
blockquote.wappen-zitat {
  display: flex;
  align-items: center;
  gap: 2em;
  max-width: 85%;
  margin: 2em auto;
  padding: 1.5em;
  background: #e8e2d5;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.6;
  border-left: 2px solid #999;
  border-radius: 4px;
  box-shadow: inset 1px 0 4px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

blockquote.wappen-zitat img.wappen {
  width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}

blockquote.wappen-zitat p {
  margin: 0;
  flex: 1;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 768px) {
  body.mitglied-werden .hero.banner img {
    max-height: 200px;
  }

  .image-left,
  .image-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-left img,
  .image-right img,
  .gallery-img,
  .gallery-img.large,
  .gallery-img.xlarge {
    margin: 0 0 1em 0;
    width: 90%;
    max-width: 480px;
  }

  blockquote.bild-im-zitat img.ersterwaehnung_wiebelskirchen,
  blockquote.wappen-zitat img.wappen {
    float: none;
    display: block;
    margin: 0 auto 1em auto;
    width: 90%;
    max-width: 480px;
  }

  blockquote.bild-im-zitat,
  blockquote.kurzzitat,
  blockquote.wappen-zitat {
    max-width: 100%;
    font-size: 1rem;
    flex-direction: column;
    text-align: center;
  }

  blockquote.wappen-zitat p {
    width: 100%;
  }

  .vorstand-grid {
    grid-template-columns: 1fr;
  }

  .vorstand-bild {
    width: 100px;
    height: 100px;
  }
}

/* --- Druck-Styles --- */
@media print {
  /* Alle Elemente ausblenden */
  body * {
    display: none !important;
  }

  /* Eltern-Container und Druckbereich sichtbar machen */
  main,
  main > div,
  main > div > div,
  #druckbereich,
  #druckbereich * {
    display: block !important;
    visibility: visible !important;
  }

  /* Hero-Bild und Eltern sichtbar machen */
  .hero.banner,
  .hero.banner img {
    display: block !important;
    visibility: visible !important;
    max-height: 120px !important; /* größer als vorher */
    width: auto !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
  }

  /* Vermeide Seitenumbrüche mitten im Bereich */
  main,
  #druckbereich {
    page-break-inside: avoid !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
  }

  /* Schriftgröße */
  #druckbereich {
    font-size: 10pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Navigation, Footer, Buttons ausblenden */
  nav,
  footer,
  .menu-toggle,
  button:not([onclick="window.print()"]) {
    display: none !important;
  }

  /* Seitenränder klein */
  @page {
    margin: 0.5cm;
  }
}
