/* Style the header */
.header {
  background-image: url("../images/Sola_2014_84.JPG");
  padding: 80px 40px;
  color: white;
  text-align: center;
  background-position: center;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 992px) {
  .header {
    background-image: url("../images/Sola_2014_84_1200.JPG");
  }
}

@media screen and (max-width: 768px) {
  .header {
    background-image: url("../images/Sola_2014_84_768.JPG");
  }
}

.form-field {
  position: relative;
  margin: 0 0 10px 0;
  width: 100%;
  height: 3.5rem;
}

.form-control {
  height: 2.5rem;
}

input,
textarea {
  z-index: 2;
  background-repeat: no-repeat;
  background-position: 97% 50%;
  background-size: 1rem;
  background-image: unset;
  transition: all 300ms;
}

label {
  font-size: 11px;
  color: red;
  position: absolute;
  top: -0.7rem;
  left: 20px;
  opacity: 1;
  z-index: 1;
  transition: all 300ms;
}

#label {
  top: -1.1rem;
}

#textarea {
  height: unset;
}

#anleitung {
  margin-top: 1rem;
}

input:valid + label,
textarea:valid + label {
  color: green;
}

input:invalid + label,
textarea:valid + label {
  color: red;
}

input:invalid:focus + label,
input:valid:focus + label,
textarea:valid:focus + label {
  color: #6c757d;
}

input:placeholder-shown + label,
textarea:placeholder-shown + label {
  opacity: 0;
  font-size: 16px;
  color: white;
}

input:placeholder-shown:valid,
textarea:placeholder-shown:valid {
  background-image: unset;
  background-size: 18px;
}

input:placeholder-shown:invalid,
textarea:placeholder-shown:invalid {
  background-image: unset;
  background-size: 18px;
}

input:valid,
textarea:valid {
  background-image: url(https://rezepte-rechner.calapallo.de/images/right.png);
  background-size: 18px;
}

input:invalid,
textarea:invalid {
  background-image: url(https://rezepte-rechner.calapallo.de/images/false.png);
  background-size: 18px;
}

input:valid:focus,
textarea:valid:focus {
  background-image: url(https://rezepte-rechner.calapallo.de/images/loading_200.gif);
  background-size: 18px;
}

input:invalid:focus,
textarea:invalid:focus {
  background-image: url(https://rezepte-rechner.calapallo.de/images/loading_200.gif);
  background-size: 18px;
}

.hint-text {
  position: absolute;
  bottom: -0.7rem;
  left: 2rem;
  width: 100%;
}

.hint-text::before {
  opacity: 0;
  display: block;
  font-size: 11px;
  width: 100%;
  position: absolute;
  top: -1.51em;
  right: 2rem;
  text-align: right;
}

input:invalid + label + .hint-text::before,
textarea:invalid + label + .hint-text::before {
  opacity: 1;
  color: red;
  z-index: 3;
}

input:invalid + label + .email::before {
  content: "Bitte gebe eine E-Mail Adresse für evtl. Rückfragen an.";
}

input:invalid + label + .rezeptname::before {
  content: "Bitte gebe ein Rezeptname an.";
}

textarea:invalid + label + .anleitung::before {
  content: "Bitte gebe hier eine kurze Beschreibung der Zubereitung des Rezeptes an. Mindestens 15 Zeichen.";
}

.hint-text.anleitung {
  bottom: -1.3rem;
}

.alert {
  margin-bottom: 1rem;
  display: grid;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 0.25rem;
  letter-spacing: var(--spacing);
  width: 30%;
  padding: 0.3rem 1.25rem !important;
}
.alert-danger {
  color: #ffffffde !important;
  background-color: #ff001775 !important;
  border-color: #ff001ba1 !important;
}
.alert-success {
  color: #ffffffde !important;
  background-color: #1ea413ba !important;
  border-color: #68ff0070 !important;
}
