form
{
  transition: all 2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  padding: 0 1em;
}

.form-control
{
  width: 80%;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 1px solid var(--green);
  color: black;
  font-size: 120%;
  height: 2em;
}
/*Margin zur Eingabe der Datenschutzbestimmungen*/
.message {
  margin-bottom: 1em;
  height: 8em;
}
input.form-control {
  display: block;
}

input.datenschutz-checkbox[type="checkbox"] {
    display:none;
}
/* selektiert das Label Tag nach jeder Checkbox */
input.datenschutz-checkbox[type="checkbox"]+label::before {
  width: 1em;
  height: 1em;
  border-radius: 1em;
  border: 2px solid #3977c0;
  background-color: var(--white);
  display: block;
  content: "";
  float: left;
  margin-right: 5px;
}
input.datenschutz-checkbox[type="checkbox"]:checked+label::before {
  box-shadow: inset 0px 0px 0px 3px #3977c0;
  background-color: var(--lightblue);
  border-color: var(--blue);
}
.submit {
  display: none;
  height: 0;
  transition: 2s all;
  z-index: 2;
}

input.submit:hover {
  opacity: 98%;
  cursor: pointer;
}

input.datenschutz-checkbox[type="checkbox"]:checked ~ input.submit {
  display: block;
  transition: 2s all;
  height: auto;
}

.absenden2 {
  display: block;
  transition: 2s all;
  opacity: 50%;
  height: auto;
  z-index: 1;
}

input.datenschutz-checkbox[type="checkbox"]:checked ~ div.absenden2 {
  display: none;
  transition: 1.5s all;
  height: 0;
}


.submit
{
  margin-top: 1em;
  cursor: pointer;
}

.textlink
{
  color: var(--blue);
}

textarea {
  font-family: Source Sans Pro;
  background-image:linear-gradient(
   hsl(190,10%,98%), hsl(190,10%,94%)
);
}

.fail-form {
  border: 2px solid red;
  border-radius: 40px;
}

.datenschutz-fail-form {
  border-color: red;
  border: 2px solid var(--blue);
  padding: 1em;
  border-radius: 40px;
}

@media (max-width: 479px) {
  form
  {
    font-size: 80%;
  }
}
