/* 🌍 Allgemeines Styling */
body {
  font-family: "Nunito", "Roboto", sans-serif;
  font-weight: 400;
  background-color: #e6f4f1;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 📦 Container */
.container {
  max-width: 700px;
  margin: 30px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🏆 Überschrift */
h1 {
  text-align: center;
  color: #008bd2;
  font-size: 36.54px;
  font-weight: 400;
  margin-bottom: 20px;
}

/* 📂 Sektionen */
.section {
  margin-bottom: 20px;
}

/* 🔵 Header mit blauer Farbe und Pfeilen */
.section-header {
  background-color: #008bd2;
  color: white;
  padding: 12px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

.section-header:hover {
  background-color: #0174ad;
}

/* 🔽 Pfeil-Icon */
.chevron {
  transition: transform 0.3s ease;
  font-size: 18px;
}

/* 📄 Inhalt der Sektionen (Ein-/Ausklappen mit Animation) */
.section-content {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 0 0 5px 5px;
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* 📋 Listen */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ✅ Checkboxen & Radio-Buttons */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 10px;
}

/* ℹ Info-Icon */
.info-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #008bd2;
  color: #008bd2;
  font-size: 13px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

/* 📝 FORMULAR-STYLING */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;

  /* Formular nicht zu breit machen */
  margin: auto;

  /* Zentrieren */
}

/* 📌 Labels */
form label {
  font-weight: 400;
  margin-bottom: 5px;
}

/* ✏ Eingabefelder */
input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.3);
}

/* 📜 Textarea */
textarea {
  height: 100px;
  resize: none;
  background: #f9f9f9;
}

/* 📩 Senden-Button */
button {
  background-color: #008bd2;
  color: white;
  font-size: 16px;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 300;
  border-radius: 5px;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0174ad;
}

/* 🔍 PRODUKT-ANZEIGE */
#produkt-anzeige {
  display: none;
  background: #ffffff;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

#produkt-anzeige img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

/* 📦 Gehäuse-Übersicht – jetzt sauberer ausgerichtet */
#gehaeuse-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 📦 Gehäuse-Elemente sauber ausrichten */
.gehaeuse-item {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}

.gehaeuse-left {
  display: block;
  margin-bottom: 10px;
}

/* 🎯 Gehäuse-Rechte-Seite immer schön ausrichten */
.gehaeuse-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

/* 🎯 Radio-Button exakt vertikal mittig ausrichten */
.gehaeuse-left input[type="radio"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-top: 1px; /* ⬅️ optional für Feintuning */
}

.gehaeuse-left label {
  font-size: 16px;
  line-height: 1.4; /* ⬅️ macht’s optisch mittiger */
  vertical-align: middle;
  white-space: nowrap;
}

/* ✨ Gehäuse-Layout optimieren für große Screens */
.gehaeuse-left label,
.leistungsauswahl label {
  white-space: normal;
  word-break: break-word;
}

/* Nur Gehäuse-Label sauber zentrieren */
.gehaeuse-left > label {
  font-size: 16px;
  line-height: 2;
  vertical-align: middle;
  white-space: nowrap;
  margin-top: 2px; /* Optional: bringt’s oft genau auf Linie */
}

/* 🎨 Gehäuse-Bild auf Höhe der Auswahl setzen */
#gehaeuse-auswahl {
  display: flex;
  align-items: center;
  margin-left: 20px;

  /* Abstand zur Auswahl */
}

/* 📸 Gehäuse-Bild */
.gehaeuse-bild {
  width: 80px;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

/* 🛠 Zubehör-Element */
.zubehoer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  gap: 10px;
}

/* 🎯 Linke Seite: Checkbox & Name */
.zubehoer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

/* 📌 Checkbox exakt ausrichten */
.zubehoer-left input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

/* 📋 Name direkt neben der Checkbox */
.zubehoer-left label {
  white-space: nowrap;
  font-size: 16px;
  line-height: 1;
}

/* 📸 Rechte Seite: Bild & Info-Icon */
.zubehoer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 🎨 Zubehör-Bild */
.zubehoer-bild {
  width: 45px;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

/* 🔍 MODAL-FENSTER */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;

  /* Ermöglicht Scrollen, falls Inhalt zu groß ist */
}

/* 📦 MODAL-INHALT */
.modal-content {
  background: white;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;

  /* Maximale Breite begrenzen */
  text-align: center;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;

  /* Falls der Inhalt zu groß ist, wird gescrollt */
  max-height: 90vh;

  /* Damit das Modal nicht zu groß wird */
}

/* 🖼 MODAL-BILD SKALIEREN */
#modal-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;

  /* Begrenzung, damit es nicht zu groß wird */
  display: block;
  margin: 0 auto 10px auto;

  /* Zentriert mit Abstand zum Text */
}

/* ❌ SCHLIEẞEN-BUTTON IM MODAL (Innerhalb des Fensters) */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  font-weight: 300;
  color: #333;
  background: white;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

/* ❗ Setze `position: relative` für das Modal, damit der Close-Button sich darauf bezieht */
.modal-content {
  position: relative;

  /* Damit der Close-Button sich relativ zum Fenster positioniert */
  background: white;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.leistungsauswahl {
  margin-left: 25px;
  margin-top: -5px;
  margin-bottom: 5px;
}
.leistungsauswahl div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
}

.leistungsauswahl input[type="radio"] {
  flex-shrink: 0;
  margin-top: 3px; /* optional für vertikale Zentrierung */
}

.leistungsauswahl label {
  white-space: normal;
  word-break: break-word;
  flex: 1;
}

form {
  max-width: 100%;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

input,
textarea,
button {
  width: 100%;
  box-sizing: border-box;
}

.h-captcha {
  width: 100% !important;
  display: flex;
  justify-content: center;
}

#config-summary {
  font-size: 14px;
}

/* Gemeinsame Basis für beide */
input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #008bd2;
  width: 18px;
  height: 18px;
  border: 2px solid #008bd2;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Radio-Button spezifisch */
input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #008bd2;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
}

/* Checkbox spezifisch */
input[type="checkbox"] {
  border-radius: 4px;
}

input[type="checkbox"]::before {
  content: "✔";
  font-size: 12px;
  color: #008bd2;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
}

/* Aktivierte Anzeige */
input[type="radio"]:checked::before,
input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* 🔁 Responsive Anpassung */
@media (max-width: 600px) {
  .gehaeuse-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gehaeuse-left,
  .gehaeuse-right {
    width: 100%;
  }

  .gehaeuse-left {
    margin-bottom: 10px;
  }

  .gehaeuse-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .gehaeuse-right img {
    width: 40px;
    height: auto;
  }

  .info-icon {
    font-size: 16px;
  }

  /* ⬅ Kein Text-Überlauf! */
  .leistungsauswahl label,
  .gehaeuse-left label {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  form {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  input,
  textarea,
  button {
    width: 100%;
    box-sizing: border-box;
  }

  .h-captcha {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  #config-summary {
    font-size: 14px;
  }
}
