
:root {
  --blau: #0033cc;
  --gelb: #ffcc00;
  --weiÃƒÅ¸: #ffffff;
  --schwarz: #000000;
  --hellblau: hsl(216, 71%, 81%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('../img/hintergrund.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding-top: 140px;
  padding-bottom: 100px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--weiÃƒÅ¸);
  border-bottom: 2px solid var(--blau);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 2em;
}

#logo {
  height: 60px;
  width: auto;
}

nav {
  flex-grow: 1;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5em;
}

nav ul li {
  position: relative;
}

nav ul li:not(:last-child)::after {
  content: "|";
  color: var(--schwarz);
  margin-left: 1em;
}

nav ul li a {
  color: var(--schwarz);
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: var(--gelb);
}

main {
  text-align: center;
}

.white-title-box {
  background-color: var(--weiÃƒÅ¸);
  text-align: center;
  border-radius: 12px;
  padding: 1em;
  margin: 2em auto 1em;
  max-width: 800px;
  font-weight: bold;
  font-size: 1.5em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.content-box {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2em;
  max-width: 1100px;
  margin: 2em auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}


footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--weiÃƒÅ¸);
  color: var(--schwarz);
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  border-top: 2px solid var(--blau);
  z-index: 998;
}

footer a {
  color: var(--schwarz);
  text-decoration: none;
  margin: 0 0.5em;
}

footer a:hover {
  color: var(--gelb);
  text-decoration: none;
}

button {
  background-color: var(--blau);
  color: var(--weiÃƒÅ¸);
  padding: 0.5em 1em;
  font-size: 1em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 1em;
}

button:hover {
  background-color: var(--gelb);
  color: var(--schwarz);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 600px;
  margin: 2em auto;
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
}

form input, form textarea {
  padding: 0.75em;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid var(--blau);
}

.mitglied-box {
  position: relative;
  text-align: center;
  margin-top: 2em;
}

.mitglied-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--blau);
  object-fit: cover;
  position: relative;
  z-index: 2;
  margin-bottom: 0px;
}

.info-box {
  background-color: var(--hellblau);
  border-radius: 12px;
  padding: 2.5em 1em 1em;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.news-article {
  background-color: var(--hellblau);
  border-radius: 15px;
  padding: 1.5em;
  margin: 2em auto;
  width: 80%;
  text-align: left;
}

.news-article:nth-child(even) {
  text-align: right;
}

#popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: var(--weiÃƒÅ¸);
  padding: 2em;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.popup-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5em;
  cursor: pointer;
}


/* Entfernt Punkte in allen Listen im Inhaltsbereich */
main ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.grid-2x {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  max-width: 900px;
  margin: auto;
}

.grid-2x .center-last:nth-child(odd):last-child {
  grid-column: 1 / span 2;
  width: 50%;
  justify-self: center;
}


.grid-4x4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: auto;
  justify-content: center;
}


/* Standardzustand: Menü sichtbar, Button unsichtbar */
.menu-toggle {
  display: none;
}

/* Nur auf kleinen Bildschirmen (max-width: 768px) */
@media (max-width: 768px) {
  header {
    position: relative;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--weiß);
    z-index: 999;
    padding: 1em 0;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    font-size: 1.8em;
    background: none;
    border: none;
    color: var(--blau);
    cursor: pointer;
    z-index: 1001;
  }

  nav ul li:not(:last-child)::after {
    content: "";
  }
}
