body {
  font-family: Arial, Helvetica, sans-serif;
}

header {
  background-color: #4c35cc;
  padding: 15px;
  text-align: center;
}

.imglogo {
  max-width: 180px;
}

.backimg {
  background-image: url(../images/backimg.png);
  background-position: center;
  background-size: cover;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.backimg h1 {
  color: #ffffff;
  font-size: 100px;
  text-align: center;
}

.main-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  background-color: #f9f9f9;
  margin: 0 auto;
  margin-top: -80px;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

form {
  max-width: 1000px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}

input[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

.error-text {
  color: rgb(255, 0, 0);
  grid-column-start: 2;
}

footer {
  background-color: #E8E7E7;
  padding: 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

.address {
  text-align: right;
}

.address p {
  margin: 5px;
  padding-right: 50px;
}


.form-row {
  display: flex;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  margin-right: 10px;
}

.form-group:last-child {
  margin-right: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 10px;
}

/* Hinzugefügt: Abstand zwischen den Feldern */
.form-group:not(:last-child) {
  margin-right: 10px;
}





.plz-group input[type="number"] {
  width: 50%;
}

.ort-group input[type="text"] {
  width: 100%;
}


.strasse-group input[type="text"] {
  width: 80%;
}

.name-group input[type="text"] {
  width: 90%;
}

.vorname-group input[type="text"] {
  width: 90%; 
  margin-left: 10%;
}

.vorname-label {
  margin-left: 10%;
}


.geburtstag-group input[type="date"] {
  width: 80%;
}


.email-group input[type="email"] {
  width: 90%;
}


.telefon-group input[type="tel"] {
  width: 90%; 
  margin-left: 10%;
}


.telefon-label {
  margin-left: 10%;
}


.back-button {
  background-color: gray;
  justify-content: left;
  padding: 5px;
}

.next-button {
  background-color: #45a049;
  float:  right;
}


input[type="number" i] {
  padding: 10px 25px;
}


.abstand {margin-bottom: 30px;}

.answer-radio {
  padding-left: 5px;
}

  
@media only screen and (max-width: 600px) {
  img.imglogo {
      max-width: 100px;
      height: auto;
  }

  img.footer-logo {
    max-width: auto;
    height: 70px;
  }

  div.address {
    text-align: right;
    font-size: 0.7em;
  }

  .form-row {
      display: block;
      margin-bottom: 10px;
  }

  .answer-radio {
      margin-left: 0;
  }

  .abstand {
      margin-top: 5px;
      margin-bottom: 10px;
  }

  div.backcontainer h1 {
      font-size: 50px;
  }

  .main-box {
      padding: 60px;
      padding-bottom: 60px;
  }

  .next-button,
  .back-button {
      width: 100%;
      padding: 25px 0px 25px 0px;
      margin-top: 10px;
  }


  input[type="file"] {
      display: block;
      width: 100%;
      padding: 8px;
  }



#confirmation {
  text-align: center;
  padding: 20px;
}


.vorname-group input[type="text"] { 
  margin-left: 0%;
}

.vorname-label {
  margin-left: 0%;
}



.geburtstag-group input[type="date"] {
  width: 90%;
}

}