
.wahlbezirk-suche {
  position: relative;
  max-width: 300px;
  flex: 1 1 250px;
}

.wahlbezirk-suche input {
  width: 100%;
  padding: 0.1rem;
  border: 2px solid #e3000f;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.wahlbezirk-info-box {
  text-align: center;
  max-width: 250px;
}

.wahlbezirk-info-box h3 {
  font-size: 1rem;
  color: #ffffff;
}

.wahlbezirk-info-box p {
  font-size: 1rem;
  color: #444;
}

.wahlbezirk-suche input {
  width: 100%;
  max-width: 200px;
  padding: 5px 5px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#wahlbezirk-ergebnis {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e3000f;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
  color: #000;
}

.versteckt {
  display: none;
}

.slogan-block {
  flex: 1 1 400px;
  text-align: center;
}

.wahlbezirk-popup-button {
  cursor: pointer;
  background: #fff;
  padding: 8px 14px;
  border-radius: 30px;
  border: 2px solid #e3000f;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}
.wahlbezirk-popup-button:hover {
  background: #ffecec;
}

/* Vollbild-Overlay */
#popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* leichter Dunkel-Effekt */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Das eigentliche Popup */
.popup-fenster {
  background-color: white;
  border: 3px solid #e3000f;
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-fenster h3 {
  margin-top: 0;
}

.wahlbezirk-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 3px solid #e3000f;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 20px;
  max-width: 90%;
  width: 400px;
}

.popup-inhalt h3 {
  margin-top: 0;
}

.wahlbezirk-ergebnis {
  margin-top: 10px;
  max-width: 100%;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.popup-hidden {
  display: none !important;
}

.wahlbezirk-social-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

/* Mobile-Ansicht: Reihenfolge ändern */
@media (max-width: 768px) {
  .wahlbezirk-social-wrapper {
    flex-direction: column;
  }

  .wahlbezirk-social-wrapper .header-social {
    order: -1; /* Vor die Wahlbezirk-Suche setzen */
  }

  .wahlbezirk-info-box {
    order: 1;
  }
}


@media (max-width: 768px) {
  .header-row {
    flex-direction: column;
  }

  .wahlbezirk-suche {
    max-width: 100%;
  }

  .slogan-block {
    text-align: center;
  }
