/* Grundlayout der Onboarding-Anwendung */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #222;
  background: #f5f5f5;
}

/* Kopfleiste */
.kopf {
  background: #222;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kopf a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Inhaltsbereich, mittig und begrenzt breit */
.inhalt {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Formulare */
label {
  display: block;
  margin-bottom: 1rem;
}
input,
textarea {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0.5rem;
}
button {
  padding: 0.5rem 1rem;
}
.fehler {
  color: #b00020;
}

/* Name und Abmelden rechts in der Kopfleiste */
.kopf-rechts {
  color: #fff;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.kopf-rechts form {
  margin: 0;
}

/* Erfolgsmeldung und Tabellen */
.erfolg {
  color: #1b6e20;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}
th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}
select {
  display: block;
  padding: 0.5rem;
}

/* Löschen-Knopf in Tabellenzeilen ohne Abstand */
td form {
  margin: 0;
}

/* Checkbox neben dem Text statt darüber */
.checkbox input {
  display: inline;
  width: auto;
}

/* Bearbeiten-Link und Löschen-Knopf nebeneinander */
.aktionen {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Status als farbige Kennzeichnung (Entwurf: Status farbig) */
.status {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #e0e0e0;
  white-space: nowrap;
}
.status-erledigt {
  background: #c8e6c9;
}
.status-fällig,
.status-wartet-auf-Freigabe {
  background: #fff3c4;
}
.status-überfällig {
  background: #ffcdd2;
}
.status-gesperrt {
  background: #d7d7d7;
  color: #555;
}

/* Anmeldefeld mittig auf der Seite */
.anmeldung {
  max-width: 320px;
  margin: 4rem auto;
}
