.main-container {
  display: flex;
  justify-content: center; /* Zentriert den Content horizontal */
  min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
}

.content {
  width: 80%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
  max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
  text-align: center;
  margin-top: 30px;
}

#line-nav {
  display: block;
  height: 2px;
  width: 100%;
  background-color: rgba(255, 215, 0, 0.8);
  margin-bottom: 30px;
  margin-top: 30px;
  border-radius: 2px;
}

.ueberschrift {
  font-size: 14pt;
  margin: 0 auto;
}

.formular {
  width: 300px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  border-radius: 10px;
}

.person1 {
  padding: 20px;
  margin-bottom: 20px;
}

.person_name label {
  display: block;
  margin-bottom: 10px;
  margin-top: 20px;
}

.person_name input[type="text"] {
  width: calc(100% - 20px);
  padding: 5px;
  margin-top: 5px;
  border: none;
  border-radius: 5px;
  border: ridge 1mm rgba(0, 0, 0, 0.8);
}

.response-buttons {
  margin-top: 20px;
}

.response-buttons label {
  display: inline-block; /* Ändern Sie von "block" zu "inline-block" */
  margin-right: 10px; /* Abstand zwischen den Radio-Buttons */
}

.response-buttons input[type="radio"] {
  margin-right: 5px;
}

/*RADIO BUTTONS*/

/* Stil für das benutzerdefinierte Etikett */
.response-buttons label {
  position: relative;
  padding-left: 20px; /* Platz für den benutzerdefinierten Punkt */
  cursor: pointer;
}

/* Füge die benutzerdefinierte Farbe als Hintergrundfarbe hinzu */
.response-buttons input[type="radio"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; /* Größe des Punkts */
  height: 12px; /* Größe des Punkts */
  background-color: rgba(98, 118, 80, 0.8); /* Farbe des Standardpunkts */
  border-radius: 50%; /* Runden Sie den Punkt ab */
}

/* Stil für ausgewählten Radio-Button */
.response-buttons input[type="radio"]:checked + label::before {
  background-color: rgba(255, 215, 0, 0.8); /* Farbe des ausgewählten Punkts */
}

/* SUBMIT BUTTON */

input[type="submit"] {
  background-color: rgba(98, 118, 80, 0.8);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: rgba(98, 118, 80, 1);
}

.custom-checkbox-label input[type="checkbox"] {
  display: flex;
  position: relative;
  top: 15px;
  left: 25px;
}

input[type="submit"] {
  background-color: rgba(98, 118, 80);
  color: rgba(255, 215, 0, 0.8);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background-color: rgba(98, 118, 80);
  color: rgba(255, 215, 0, 0.9);
}

.line {
  height: 2px;
  width: 100%;
  background-color: rgba(98, 118, 80);
  margin: 30px 0 30px 0;
}

@media only screen and (max-width: 600px) {
  .main-container {
    display: flex;
    justify-content: center; /* Zentriert den Content horizontal */
    min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
    width: 100%;
  }

  .content {
    width: 100%; /* Volle Breite */
    max-width: none; /* Entfernt die maximale Breite Begrenzung */
    text-align: center;
    margin-top: 30px;
  }

  #ueberschrift {
    font-size: 12pt;
    margin-bottom: 30px;
  }

  #line-nav {
    display: block;
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  #ueberschrift {
    display: flex;
    width: 100%;
  }

  #ueberschrift h2 {
    margin: auto;
  }

  .formular {
    width: 300px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
  }

  .person1 {
    padding: 20px;
    margin-bottom: 20px;
  }

  .person_name label {
    display: block;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .person_name input[type="text"] {
    width: calc(100% - 20px);
    padding: 5px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    border: ridge 1mm rgba(0, 0, 0, 0.8);
  }

  .response-buttons {
    margin-top: 20px;
  }

  .response-buttons label {
    display: inline-block; /* Ändern Sie von "block" zu "inline-block" */
    margin-right: 10px; /* Abstand zwischen den Radio-Buttons */
  }

  .response-buttons input[type="radio"] {
    margin-right: 5px;
  }

  /*RADIO BUTTONS*/

  /* Stil für das benutzerdefinierte Etikett */
  .response-buttons label {
    position: relative;
    padding-left: 20px; /* Platz für den benutzerdefinierten Punkt */
    cursor: pointer;
  }

  /* Füge die benutzerdefinierte Farbe als Hintergrundfarbe hinzu */
  .response-buttons input[type="radio"] + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; /* Größe des Punkts */
    height: 12px; /* Größe des Punkts */
    background-color: rgba(98, 118, 80, 0.8); /* Farbe des Standardpunkts */
    border-radius: 50%; /* Runden Sie den Punkt ab */
  }

  /* Stil für ausgewählten Radio-Button */
  .response-buttons input[type="radio"]:checked + label::before {
    background-color: rgba(
      255,
      215,
      0,
      0.8
    ); /* Farbe des ausgewählten Punkts */
  }

  /* SUBMIT BUTTON */

  input[type="submit"] {
    background-color: rgba(98, 118, 80, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  input[type="submit"]:hover {
    background-color: rgba(98, 118, 80, 1);
  }

  .custom-checkbox-label input[type="checkbox"] {
    display: flex;
    position: relative;
    top: 15px;
    left: 25px;
  }

  input[type="submit"] {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0, 0.8);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }

  input[type="submit"]:hover {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0, 0.9);
  }

  .line {
    height: 2px;
    width: 100%;
    background-color: rgba(98, 118, 80);
    margin: 30px 0 30px 0;
  }
}

/* Anpassungen für Tablets, mittelgroße Bildschirme */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  .main-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
  }

  .content {
    width: 80%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
    max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
    text-align: center;
    margin-top: 30px;
  }

  #line-nav {
    display: block;
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .ueberschrift {
    font-size: 14pt;
    margin: 0 auto;
  }

  .formular {
    width: 300px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
  }

  .person_1 {
    padding: 20px;
    margin-bottom: 20px;
  }

  .person_1_name label {
    display: block;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .person_1_name input[type="text"] {
    width: calc(100% - 20px);
    padding: 5px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    border: ridge 1mm rgba(0, 0, 0, 0.8);
  }

  .response-buttons {
    margin-top: 20px;
  }

  .response-buttons label {
    display: block;
    margin-bottom: 10px;
  }

  .response-buttons input[type="radio"] {
    margin-right: 5px;
  }

  input[type="submit"] {
    background-color: rgba(98, 118, 80, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  input[type="submit"]:hover {
    background-color: rgba(98, 118, 80, 1);
  }

  .custom-checkbox-label input[type="checkbox"] {
    display: flex;
    position: relative;
    top: 15px;
    left: 25px;
  }

  input[type="submit"] {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0, 0.8);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }

  input[type="submit"]:hover {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0, 0.8);
  }

  .line {
    height: 2px;
    width: 100%;
    background-color: rgba(98, 118, 80);
    margin: 30px 0 30px 0;
  }
}

/* Anpassungen für Tablets, mittelgroße Bildschirme */
@media only screen and (min-width: 1024px) and (max-width: 1489px) {
  .main-container {
    display: flex;
    justify-content: center; /* Zentriert den Content horizontal */
    min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
  }

  .content {
    width: 80%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
    max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
    text-align: center;
    margin-top: 30px;
  }

  #line-nav {
    display: block;
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .ueberschrift {
    font-size: 14pt;
    margin: 0 auto;
  }

  .formular {
    width: 300px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
  }

  .person_1 {
    padding: 20px;
    margin-bottom: 20px;
  }

  .person_1_name label {
    display: block;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .person_1_name input[type="text"] {
    width: calc(100% - 20px);
    padding: 5px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    border: ridge 1mm rgba(0, 0, 0, 0.8);
  }

  .response-buttons {
    margin-top: 20px;
  }

  .response-buttons label {
    display: block;
    margin-bottom: 10px;
  }

  .response-buttons input[type="radio"] {
    margin-right: 5px;
  }

  input[type="submit"] {
    background-color: rgba(98, 118, 80, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  input[type="submit"]:hover {
    background-color: rgba(98, 118, 80, 1);
  }

  .custom-checkbox-label input[type="checkbox"] {
    display: flex;
    position: relative;
    top: 15px;
    left: 25px;
  }

  input[type="submit"] {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0, 0.8);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }

  input[type="submit"]:hover {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0, 0.8);
  }

  .line {
    height: 2px;
    width: 100%;
    background-color: rgba(98, 118, 80);
    margin: 30px 0 30px 0;
  }
}
