* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f0f0f0;
}

header {
  position: relative;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
  margin-left: 20%;
  margin-right: 20%;
  padding: 15px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  transition: border-radius 0.4s ease;
}

header.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.logo {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 160px;
  left: 30px;
}

.main-nav {
  margin-left: 150px;
  display: flex;
  justify-content: center;
  flex: 1;
  overflow: hidden;
}

.haupt-navi {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center; 
}

.haupt-navi li:hover{
  color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 3px solid #2f9e22; /* grüner Unterstrich */
}

#li-ausnahme:hover{
  color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 0px solid #ffffff; /* grüner Unterstrich */
}

.haupt-navi li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  flex-wrap: nowrap;
}

.cta-button {
  background-color: #3dbb2d;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.cta-button:hover{
  background-color: #218838;
}

.container-phone{
  margin-left: 1%;
}
.container {
display: inline-block;
cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
width: 35px;
height: 5px;
background-color: #3dbb2d;
margin: 6px 0;
transition: 0.4s;
}

.change .bar1 {
transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
opacity: 0;
}

.change .bar3 {
transform: translate(0, -11px) rotate(45deg);
}

nav.neben-navi {
  background-color: #fff;
  margin: 0 20%;
  padding: 20px 30px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  text-align: center;
}

header.open + #navMenu {
  opacity: 1;
  max-height: 600px;
  pointer-events: auto;
}

nav.neben-navi ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

nav.neben-navi li a:hover {
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  padding: 0;
  border-bottom: 3px solid #2f9e22;
}

nav.neben-navi li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  display: inline-block;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
}

footer {
  background-color: #262D33;
  color: #f0f0f0;
  padding: 40px 20%;
  font-family: Arial, sans-serif;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  margin-top: 50px;
}

footer a {
  color: #f0f0f0;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

hr {
  color: white;
}

footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

footer .footer-top div {
  flex: 1;
  min-width: 180px;
}

footer h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #e4e4e4;
  border-bottom: 2px solid #28a745;
  padding-bottom: 5px;
  display: inline-block;
}

footer .kontakt {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 20px;
  color: #e4e4e4;
}

footer hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}

footer .rechtlich {
  text-align: center;
  margin-bottom: 10px;
}

footer .rechtlich a {
  margin: 0 10px;
  text-decoration: none;
  color: #e4e4e4;
  font-size: 0.9em;
}

footer .rechtlich a:hover {
  color: #28a745;
}

footer .social-media {
  text-align: center;
  margin-top: 10px;
}

footer .social-media img {
  width: 30px;
  height: 30px;
  filter: grayscale(1);
  transition: 0.3s;
}

footer .social-media img:hover {
  filter: none;
  transform: scale(1.1);
}

.spenden {
  background-color: #28a745;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.spenden:hover {
  background-color: #218838;
  text-decoration: none;
}

main {
  margin: 40px 20%;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Überschriften-Styling */
h1, h2, h3 {
  color: #333;
  margin-bottom: 20px;
}

/* Textabsätze */
p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Buttons allgemeiner Stil */
.button {
  background-color: #3dbb2d;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #319a23;
}

/* Listen */
ul {
  list-style: none;
  padding: 0;
}

.home-hero {
  text-align: center;
  padding: 50px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.home-hero h1 {
  font-size: 2.5em;
  color: #3dbb2d;
  margin-bottom: 15px;
}

.home-hero p {
  font-size: 1.2em;
  color: #444;
}

.home-aktuelles {
  margin-bottom: 40px;
}

.home-aktuelles ul li {
  margin-bottom: 20px;
  border-left: 4px solid #3dbb2d;
  padding-left: 15px;
}

.home-werte {
  text-align: center;
  margin-bottom: 40px;
}

.werte-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.wert {
  flex: 1 1 250px;
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.wert:hover {
  background-color: #eafbea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.wert h3 {
  color: #3dbb2d;
  margin-bottom: 10px;
}

.home-mitglied {
  text-align: center;
}

.home-mitglied a {
  margin-top: 15px;
}

.event-liste {
  list-style: none;
  padding: 0;
}

.event-liste li {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  color: #444;
  line-height: 1.5;
}

.event-liste strong {
  color: #3dbb2d;
  font-size: 1.1em;
}

.event-liste em {
  color: #666;
  font-style: normal;
  display: block;
  margin-top: 5px;
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.foto-box {
  background-color: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.foto-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.foto-box p {
  font-weight: bold;
  color: #444;
}

.galerie-block {
  margin-bottom: 50px;
}

.galerie-block h3 {
  margin-bottom: 15px;
  color: #3dbb2d;
  font-size: 1.3em;
  text-align: center;
}

.slide img {
  width: 100%;
  max-width: 800px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
  margin: auto;
  display: block;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.slide {
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  font-size: 22px;
  background-color: rgba(0,0,0,0.4);
  color: white;
  border-radius: 50%;
  user-select: none;
  transform: translateY(-50%);
  transition: 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }


.kontakt-formular {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.kontakt-formular label {
  font-weight: bold;
  color: #333;
}

.kontakt-formular input,
.kontakt-formular textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  font-family: inherit;
  width: 100%;
  resize: vertical;
  background-color: #fafafa;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
  border-color: #3dbb2d;
  outline: none;
}

.kontakt p {
  color: white;
}

.erfolg {
  color: #28a745;
  background: #e6f9ea;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.fehler {
  color: #c0392b;
  background: #fcebea;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}


.gedanken-box h3 {
  color: #3dbb2d;
  margin-bottom: 20px;
}

.gedanken-bild {
  width: 100%;
  max-width: 800px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.partei-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.partei-box {
  flex: 1 1 280px;
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.partei-box:hover{
    background-color: #eafbea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
  }

.partei-box h3 {
  color: #3dbb2d;
  margin-bottom: 10px;
}

.partei-box ul {
  padding-left: 20px;
  list-style: none;
}

.partei-box ul li {
  margin-bottom: 8px;
  color: #444;
}
.sektion-header-bild {
  justify-content: center;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 30px;
  display: block; margin: auto; width: 50%
}

.sektion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.mitglied-box {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 240px;
}

.mitglied-box img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.mitglied-box img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.mitglied-box:hover img {
  transform: scale(1.05);
}


.sektion-positionen ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.sektion-positionen ul li {
  margin-bottom: 8px;
  color: #444;
}

.sektion-statuten {
  background-color: #f1f1f1;
  padding: 20px;
  margin-top: 40px;
  border-radius: 15px;
}

.sektion-themen {
  margin-top: 40px;
}

.themen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}


.thema-box.gross {
  grid-column: 1 / -1;
  margin-bottom: 15px;
}

.thema-box em {
  color: #555;
  font-style: normal;
}

.thema-box {
  background-color: #f8f8f8;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1em;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  transition: all 0.3s ease;
  cursor: default;
}

.thema-box:hover {
  background-color: #eafbea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}


.statuten-inhalt {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  line-height: 1.7;
  color: #333;
}

.statuten-inhalt h3 {
  color: #3dbb2d;
  margin-top: 30px;
  font-size: 1.4em;
}

.statuten-inhalt h4 {
  margin-top: 20px;
  color: #267a1c;
}

.statuten-inhalt ul {
  margin: 10px 0 20px 20px;
  list-style: disc;
}

.statuten-inhalt p {
  margin-bottom: 15px;
}

.wahl-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #444;
  text-align: center;
  line-height: 1.6;
  margin-top: 20px;
  font-size: 1.1em;
}

@media (max-width: 1395px){
  .main-nav {
  margin-left: 150px;
  display: flex;
  justify-content: start;
  flex: 1;
  overflow: hidden;
  }
  header {
    margin-left: 10%;
    margin-right: 10%;
  }
  nav.neben-navi {
    margin: 0 10%;
  }

  main{
    margin-left: 0%;
    margin-right: 0%;
  }
}

@media (max-width: 1024px) {

  .main-nav {
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .haupt-navi {
    flex-wrap: wrap;
    gap: 15px;
  }

  .logo {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {

  .footer .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .partei-info-grid,
  .sektion-grid {
    flex-direction: column;
    align-items: center;
  }

  .mitglied-box {
    width: 100%;
    max-width: 320px;
  }

  .partei-box {
    width: 100%;
  }

  .slideshow-container .prev,
  .slideshow-container .next {
    font-size: 18px;
    padding: 8px;
  }

  .slide img {
    max-width: 100%;
    max-height: 300px;
  }

  .themen-grid {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: 2em;
  }

  .home-hero p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .haupt-navi {
    flex-direction: column;
    align-items: flex-start;
  }

  .container-phone {
    display: block;
  }

  .logo {
    width: 90px;
  }

  .cta-button,
  .button {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .kontakt-formular input,
  .kontakt-formular textarea {
    font-size: 1em;
  }

  footer {
    padding: 30px 5%;
  }

  .slide img {
    max-height: 200px;
  }

  .mitglied-box img {
    max-width: 140px;
    height: 140px;
  }
}

.bild-gross {
  width: 100%;
  max-width: 800px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin: 0 auto 30px auto;
  display: block;
}

.datenschutz-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: #444;
  line-height: 1.7;
}

.datenschutz-box h3 {
  color: #3dbb2d;
  margin-top: 30px;
}

.datenschutz-box a {
  color: #3dbb2d;
  text-decoration: underline;
}

.datenschutz-box a:hover {
  text-decoration: none;
}

.impressum-box {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  line-height: 1.7;
  color: #444;
}

.impressum-box a {
  color: #3dbb2d;
  text-decoration: underline;
}

.impressum-box a:hover {
  text-decoration: none;
}
