body {
  font-family: "Noto Sans", sans-serif;
  background-color: #29191c;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
  margin: 0;
  padding: 15px;
}

/* verhindert Breitenprobleme */
* {
  box-sizing: border-box;
}

/*Mithilfe von KI erstellt 1*/
.container {
  background-color: rgb(255, 255, 255);
  padding: 30px;

  width: 100%;
  max-width: 500px;

  border-radius: 10px;
}
/*Mithilfe von KI erstellt 1*/
h1 {
  text-align: center;
}

fieldset {
  margin-bottom: 20px;
  border: 3px solid #c5721d;
  padding: 15px;
}

/*Mithilfe von KI verbessert 3*/
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}
/*Mithilfe von KI verbessert 3*/
.inline-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

button {
  width: 100%;
  background-color: #c5721d;
  color: white;
  border: none;
  cursor: pointer;
}

/* Akzentfarbe für den Einsatzdauer Slider */
input[type="range"] {
  accent-color: #c5721d;
}

/* Checkboxen und Radios nicht auf 100% Breite */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

/* Bemerkungsfeld nicht mehr skalierbar */
textarea {
  resize: none;
}

/* Schriftart für Datumsfelder und Bemerkung */
input[type="date"],
textarea {
  font-family: "Noto Sans", sans-serif;
}

/* Confirmation mittig */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Confirmation Logo */
.logo {
  width: 120px;
  height: auto;
}

/* Fehlermeldung direkt unter dem Feld */
.error-msg {
  display: block;
  color: #b30000;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Label rot färben wenn Feld fehlerhaft ist */
.form-row.has-error > label:first-child {
  color: #b30000;
}

/* Rote Umrandung bei fehlerhaftem Eingabefeld */
.input-error {
  border: 2px solid #ff4d4d !important;
  background-color: #fff5f5;
  outline: none;
}

.input-error:focus {
  border-color: #b30000 !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

/* Rote Umrandung für Checkbox-/Radio-Gruppen */
.group-error {
  border: 2px solid #ff4d4d;
  background-color: #fff5f5;
  border-radius: 5px;
  padding: 8px;
}

/* Tablet und Desktop */
@media (min-width: 768px) {
  .inline-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .language-entry {
    flex-direction: row;
  }

  .language-entry input {
    flex: 2;
  }

  .language-entry select {
    flex: 1;
  }
}

footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #c5721d;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: #c5721d;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/*Muss ausgefüllt werden*/
.required {
  color: red;
  font-weight: bold;
}

/* Toggle-Switch für Datenschutz */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 13px;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
  background-color: #c5721d;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
  left: 27px;
}
