.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;
}

.ueberschrift {
  font-size: 14pt;
  margin: 0 auto;
}

form {
  margin-top: 50px;
}

/* Den Login-Bereich mittig ausrichten */
.login {
  height: 700px; /* Die Höhe auf "auto" setzen, um sich der Inhaltsgröße anzupassen */
  width: 500px;
  margin: auto;
  padding: 0;
  box-shadow: 0px 30px 60px -5px #000000;
  position: relative;
  overflow: hidden;
  z-index: 0;
  text-align: center; /* Text im Login-Bereich zentrieren */
}

.login img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 1;
}

form {
  padding-top: 0;
  position: relative;
  z-index: 2;
}

label {
  display: block; /* Als Blockelement anzeigen, um die Elemente untereinander anzuordnen */
  margin-bottom: 10px; /* Einen Abstand zwischen den Label-Elementen hinzufügen */
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.8;
  color: #000000;
  letter-spacing: 2px;
}

input {
  width: calc(
    100% - 200px
  ); /* Das Eingabefeld maximal so breit wie das Formular minus das Padding machen */
  margin: 0 auto; /* Zentrieren des Eingabefelds im Formular */
  border: none;
  padding: 10px 20px;
  display: block;
  height: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(98, 118, 80, 0.5);
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  background-color: rgba(255, 255, 255, 0.6);
}

#text_user {
  margin-bottom: 20px;
}
input:focus {
  outline: 0;
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0);
}

#text_user,
#text_pw {
  font-family: "Arial", sans-serif;
  color: #000000;
}

.password-wrapper {
  position: relative; /* Macht die Positionierung relativ zum Elternelement */
}

#togglePassword {
  position: absolute; /* Macht die Positionierung relativ zum nächsten positionierten Elternelement */
  cursor: pointer;
  right: 115px; /* Abstand zum rechten Rand des Elternelements */
  top: 50%; /* Zentrieren des Symbols vertikal */
  transform: translateY(-50%); /* Zentrieren des Symbols vertikal */
}

.fa-eye-slash:before {
  content: "\f070"; /* Unicode für das geschlossene Auge-Symbol */
}

button.signin {
  background-color: transparent;
  color: #000000;
  width: 150px;
  padding: 10px 20px;
  height: 39px;
  border-radius: 20px;
  transition: all 0.5s ease-in-out;
  border: none;
  text-transform: uppercase;
  margin-top: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 2px;
  border: 2px solid rgba(98, 118, 80, 0.5);
}

button.signin:hover {
  background: rgba(98, 118, 80, 0.8);
  box-shadow: 0px 4px 35px -5px #000000;
  cursor: pointer;
}

button.signin:focus {
  outline: none;
}

label {
  /*display: block;*/
  margin-bottom: 8px;
}

@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: 70%; /* 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;
    margin-left: auto;
    margin-right: auto;
  }

  .ueberschrift {
    font-size: 14pt;
    margin: 0 auto;
  }

  form {
    margin-top: 50px;
  }

  /* Den Login-Bereich mittig ausrichten */
  .login {
    height: 700px; /* Die Höhe auf "auto" setzen, um sich der Inhaltsgröße anzupassen */
    width: auto;
    margin: auto;
    padding: 0;
    box-shadow: 0px 30px 60px -5px #000000;
    position: relative;
    overflow: hidden;
    z-index: 0;
    text-align: center; /* Text im Login-Bereich zentrieren */
    margin-top: 30px;
  }

  .login img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
  }

  form {
    padding-top: 0;
    position: relative;
    z-index: 2;
  }

  label {
    display: block; /* Als Blockelement anzeigen, um die Elemente untereinander anzuordnen */
    margin-bottom: 10px; /* Einen Abstand zwischen den Label-Elementen hinzufügen */
    text-transform: uppercase;
    font-size: 10px;
    opacity: 0.8;
    color: #000000;
    letter-spacing: 2px;
  }

  input {
    width: calc(
      100% - 100px
    ); /* Das Eingabefeld maximal so breit wie das Formular minus das Padding machen */
    margin: 0 auto; /* Zentrieren des Eingabefelds im Formular */
    border: none;
    padding: 10px 20px;
    display: block;
    height: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(98, 118, 80, 0.5);
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    background-color: rgba(255, 255, 255, 0.6);
  }

  .password-wrapper {
    position: relative; /* Macht die Positionierung relativ zum Elternelement */
  }

  #togglePassword {
    position: absolute; /* Macht die Positionierung relativ zum nächsten positionierten Elternelement */
    cursor: pointer;
    right: 65px; /* Abstand zum rechten Rand des Elternelements */
    top: 50%; /* Zentrieren des Symbols vertikal */
    transform: translateY(-50%); /* Zentrieren des Symbols vertikal */
  }

  .fa-eye-slash:before {
    content: "\f070"; /* Unicode für das geschlossene Auge-Symbol */
  }

  #text_user {
    margin-bottom: 20px;
  }
  input:focus {
    outline: 0;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0);
  }

  #text_user,
  #text_pw {
    font-family: "Arial", sans-serif;
    color: #000000;
  }

  button.signin {
    background-color: transparent;
    color: #000000;
    width: 150px;
    padding: 10px 20px;
    height: 39px;
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
    border: none;
    text-transform: uppercase;
    margin-top: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2px;
    border: 2px solid rgba(98, 118, 80, 0.5);
  }

  button.signin:hover {
    background: rgba(98, 118, 80, 0.8);
    box-shadow: 0px 4px 35px -5px #000000;
    cursor: pointer;
  }

  button.signin:focus {
    outline: none;
  }

  label {
    /*display: block;*/
    margin-bottom: 8px;
  }
}

/* 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; /* Zentriert den Content horizontal */
    min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
    width: 100%;
  }

  .content {
    width: 70%; /* 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;
    margin-left: auto;
    margin-right: auto;
  }

  .ueberschrift {
    font-size: 14pt;
    margin: 0 auto;
  }

  form {
    margin-top: 50px;
  }

  /* Den Login-Bereich mittig ausrichten */
  .login {
    height: 700px; /* Die Höhe auf "auto" setzen, um sich der Inhaltsgröße anzupassen */
    width: auto;
    margin: auto;
    padding: 0;
    box-shadow: 0px 30px 60px -5px #000000;
    position: relative;
    overflow: hidden;
    z-index: 0;
    text-align: center; /* Text im Login-Bereich zentrieren */
    margin-top: 30px;
  }

  .login img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
  }

  form {
    padding-top: 0;
    position: relative;
    z-index: 2;
  }

  label {
    display: block; /* Als Blockelement anzeigen, um die Elemente untereinander anzuordnen */
    margin-bottom: 10px; /* Einen Abstand zwischen den Label-Elementen hinzufügen */
    text-transform: uppercase;
    font-size: 10px;
    opacity: 0.8;
    color: #000000;
    letter-spacing: 2px;
  }

  input {
    width: calc(
      100% - 200px
    ); /* Das Eingabefeld maximal so breit wie das Formular minus das Padding machen */
    margin: 0 auto; /* Zentrieren des Eingabefelds im Formular */
    border: none;
    padding: 10px 20px;
    display: block;
    height: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(98, 118, 80, 0.5);
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    background-color: rgba(255, 255, 255, 0.6);
  }

  #text_user {
    margin-bottom: 20px;
  }
  input:focus {
    outline: 0;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0);
  }

  #text_user,
  #text_pw {
    font-family: "Arial", sans-serif;
    color: #000000;
  }

  button.signin {
    background-color: transparent;
    color: #000000;
    width: 150px;
    padding: 10px 20px;
    height: 39px;
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
    border: none;
    text-transform: uppercase;
    margin-top: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2px;
    border: 2px solid rgba(98, 118, 80, 0.5);
  }

  button.signin:hover {
    background: rgba(98, 118, 80, 0.8);
    box-shadow: 0px 4px 35px -5px #000000;
    cursor: pointer;
  }

  button.signin:focus {
    outline: none;
  }

  label {
    /*display: block;*/
    margin-bottom: 8px;
  }
}

/* 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: 0; /* 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;
  }

  .login {
    margin-top: 50px;
  }

  .ueberschrift {
    font-size: 14pt;
    margin: 0 auto;
  }
}
