/* Einheitliche Größenberechnung für alle Elemente */
* {
  box-sizing: border-box;
}

/* Grundlegendes Seitenlayout */
body {
  margin: 0;
  background-color: hsl(48, 38%, 95%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: #454545;
}

/* Sectionen*/
.section-lila {
  background-color: #d0c5e6;
}

/* Division Einstellungen */
div {
  padding: 1rem;
}

/* Zentraler Inhaltsbereich */
.content {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 1rem;
}

/* Abstand zwischen den Inhaltsabschnitten */
.content > div {
  margin-bottom: 3rem;
}

/* Responsive Bilder */
img {
  display: block;
  max-width: 100%; /* Bild wird nie breiter als sein Container */
  height: auto;
  border-radius: 8px;
}

/* Fixierte Navigation am oberen Bildschirmrand */
.navigation_bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #50797d;
  padding: 1rem;
}

/* Navigationsliste */
.navigation_bar ul {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

/* Links in der Navigation */
.navigation_bar a {
  color: #f7f5ed;
  text-decoration: none;
}

/* Hover Einstellung vom Navigationsliste */
.navigation_bar a:hover {
  background-color: #454545;
}

/* Einheitliches Design für Schaltflächen */
button {
  background-color: #24585d;
  color: #f7f5ed;
  border: 1px solid #454545;
  border-radius: 5px;
  padding: 15px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 1rem;
}

button a {
  text-decoration: none;
  list-style: none;
  color: #f7f5ed;
}

/* Rechtliches Menü */
.rechtliches {
  background-color: #50797d;
  padding: 1rem;
  padding-left: 3rem;
  color: #f7f5ed;
  ;
}

/* Rechtlicheleiste */
.rechtliches ul {
  list-style: none;
  padding: 0;
}

/* Links in den Rechtliches Bereich */
.rechtliches a {
text-decoration: none;
color: #f7f5ed;
}

/* Fußzeile */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #50797d;
  color: #f7f5ed;
}

/* Formularfelder gleichmäßig untereinander */
.formularfeld {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 0;
}

/* Alle Eingabefelder haben dieselbe Breite */
.formularfeld input,
.formularfeld textarea {
  width: 100%;
  padding: 0.75rem;
  font: inherit;
  color: #454545;
  background-color: #ffffff;
  border: 1px solid #50797d;
  border-radius: 5px;
}

/* Nachrichtenfeld: feste Breite, nur Höhe ist veränderbar */
.formularfeld textarea {
  height: 160px;
  resize: none;
}

/* Seite mit dem Login-Bereich */
.login-seite {
  display: grid;
  min-height: 75vh;
  padding: 3rem 1rem;
  place-items: center;
}

/* Weiße Login-Karte */
.login-box {
  width: min(100%, 460px);
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(69 69 69 / 20%);
}

/* Formularfelder untereinander */
.login-feld {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
}

/* Beschriftungen */
.login-feld label {
  font-weight: bold;
}

/* E-Mail- und Passwortfeld */
.login-feld input {
  width: 100%;
  padding: 0.75rem;
  font: inherit;
  color: #454545;
  border: 1px solid #50797d;
  border-radius: 5px;
}

/* Hervorhebung beim Auswählen eines Feldes */
.login-feld input:focus {
  outline: 3px solid #d0c5e6;
  border-color: #24585d;
}

/* Checkbox und Link */
.login-optionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  margin-top: 1.25rem;
}

.login-optionen a {
  color: #24585d;
}

/* Login-Schaltfläche über die ganze Breite */
.login-formular button {
  width: 100%;
  margin-top: 1.5rem;
}

/* Bereich der Fehlerseite */
.fehler-seite {
  display: grid;
  min-height: 75vh;
  padding: 3rem 1rem;
  place-items: center;
}

/* Karte mit der Fehlermeldung */
.fehler-box {
  width: min(100%, 600px);
  padding: 3rem 2rem;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(69 69 69 / 20%);
}

/* Große Fehlernummer */
.fehler-code {
  margin: 0;
  color: #50797d;
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: bold;
  line-height: 1;
}

/* Link, der wie ein Button aussieht */
.zurueck-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  color: #f7f5ed;
  text-decoration: none;
  background-color: #24585d;
  border-radius: 5px;
}

/* Hover-Effekt für den Zurück-Link */
.zurueck-button:hover,
.zurueck-button:focus-visible {
  background-color: #454545;
}