/* --- Grundlayout --- */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #505050;
  background-color: #f8f8f8;
}

#container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Header --- */
#header {
  text-align: center;
  padding: 1rem 0;
}

.logobox {
	background-image:url(neu/_pics/logo_neu.gif);
	width: 100%;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
} 

#header img {
  max-width: 100%;
  height: auto;
}

/* --- Navigation --- */
#menu {
  background: #e8c371;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#menu li {
  margin: 0;
}

#menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #505050;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

#menu a:hover {
  text-decoration: underline;
}

/* Aktive Seite im Menü hervorheben */
#menu a.active {
  background-color: #FCF1CA; /* passt zum Karten-Hintergrund */
  text-decoration: underline;
}

/* --- Hauptbereich --- */
main {
  padding: 2rem 1rem;
  text-align: center;
}

.welcome h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #505050;
}

.welcome p {
  margin-bottom: 2rem;
}

.welcome img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Info-Karten für Über uns */
.info-card {
  background: #FCF1CA;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  text-align: left;
}

.info-card h2 {
  margin-top: 0;
  color: #505050;
  font-size: 1.5rem;
}

.info-card p {
  line-height: 1.6;
  margin: 0.5rem 0;
}

.info-card a {
  color: #505050;
  text-decoration: bold;
}

.info-card a:hover {
  text-decoration: underline;
}

.mitgliedsantrag-button {
  display: inline-block;
  width: 150px;
  padding: 10px 0;
  margin-top: 15px; /* Abstand zum Text */
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  background-color: #e8c371; /* Farbe wie Navigation */
  color: #505050; /* Weißer Text */
  border: none;
  transition: background-color 0.3s ease;
}

.mitgliedsantrag-button:hover {
  text-decoration: underline;
}	

/* Veranstaltungen Cards */
.event-card {
  background: #FCF1CA;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s; /* Hover-Effekt */	
}

.event-card:hover {
  transform: translateY(-5px);      /* leichte Anhebung bei Hover */
  box-shadow: 0 8px 12px rgba(0,0,0,0.15); 
}

.event-card h2 {
  margin-top: 0;
  color: #505050;
  font-size: 1.5rem;
}

.event-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #505050;
}
.event-card .event-date {
  font-weight: bold;
  color: #505050;
  margin-bottom: 1rem;
}

.event-card address {
  font-style: normal;
  background: #FCF1CA;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 1rem 0;
  line-height: 1.4;
}

.event-card p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.event-card a {
  color: #505050;
  text-decoration: underline;
}

.event-card a:hover {
  text-decoration: bold;
}

.event-card .media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.event-card .media img,
.event-card .media video {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Grid für mehrere Bilder */
.event-card .media div {
  flex: 1 1 300px;
  text-align: center;
}
/* --- Rückblick: Bildergrid --- */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.image-grid div,
.image-grid a {
  flex: 1 1 300px;
  text-align: center;
}
.image-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- Videos --- */
video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- Text / Überschriften --- */
#text h1 {
  margin-top: 0;
}
#text h4 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
#text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --- Tabellen --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
table td {
  text-align: center;
  padding: 10px;
}

/* --- Mobile Anpassungen --- */
@media (max-width: 768px) {
  .image-grid {
    flex-direction: column;
    gap: 15px;
  }
  #text h1 {
    font-size: 1.8rem;
  }
  #text h4 {
    font-size: 1.1rem;
  }
  .event-card .media {
    grid-template-columns: 1fr; /* Eine Spalte auf kleinen Bildschirmen */
  }	
  .event-media-grid {
    flex-direction: column;
    gap: 0.75rem;
  }
  .event-media-grid img,
  .event-media-grid video {
    flex: 1 1 100%;
  }
  .event-card {
    padding: 15px;
  }
  .event-card h4 {
    font-size: 1.1rem;
  }	
}

/* --- Footer --- */
#footer {
  background: #e8c371;
  color: #505050;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

#footer a {
  color: #505050;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* --- Responsives Design --- */
@media (max-width: 768px) {
  #menu ul {
    flex-direction: column;
    align-items: center;
    display: none; /* Menü standardmäßig ausgeblendet */
  }

  #menu ul.active {
    display: flex; /* nur per JS sichtbar */
  }
}
