body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  color: white;
  padding: 1em;
  flex-wrap: wrap;
}

.title {
  font-size: 1.2em;
  font-weight: bold;
}

.nav-buttons {
  display: flex;
  gap: 1em;
  margin-top: 0.5em;
}

.nav-button {
  padding: 0.5em 1em;
  font-size: 1em;
  border: none;
  background-color: #34495e;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.nav-button.disabled {
  background-color: #7f8c8d;
  cursor: not-allowed;
}

main {
  padding: 2em;
}

select, input, button {
  margin-top: 1em;
  padding: 0.5em;
  font-size: 1em;
  display: block;
}

.result-area table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.result-area th, .result-area td {
  border: 1px solid #ddd;
  padding: 0.75em;
  text-align: left;
}

.result-area th {
  background-color: #ecf0f1;
}

.result-area tr:nth-child(even) {
  background-color: #f9f9f9;
}

.result-area h1 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.error {
  color: red;
  font-weight: bold;
}

.success {
  color: green;
  font-weight: bold;
}

/* Personenblöcke */
.person-block {
  border: 1px solid #ccc;
  background-color: #ffffff;
  padding: 1em;
  margin-top: 1em;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.person-block legend {
  font-weight: bold;
  margin-bottom: 0.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-person {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 0.3em 0.6em;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
}

.remove-person:hover {
  background-color: #c9302c;
}

/* Zeilenumbruch zwischen Erstgespräch und Wohnort */
.field-separator {
  height: 1em;
}

/* Checkbox-Themen kompakt nebeneinander */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1em;
}

.checkbox-grid label {
  white-space: nowrap;
}

/* Responsive: Personenblock auf Handy kleiner padden */
@media (max-width: 600px) {
  .person-block {
    padding: 0.5em;
  }
}

/* Neue Erfolg-/Fehlermeldung */
.alert {
  padding: 1em 1.5em;
  border-radius: 6px;
  margin-bottom: 1.5em;
  position: relative;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alert.success {
  background-color: #dff0d8;
  color: #3c763d;
  border-left: 5px solid #3c763d;
}

.alert.error {
  background-color: #f2dede;
  color: #a94442;
  border-left: 5px solid #a94442;
}

.alert .close {
  position: absolute;
  top: 0.5em;
  right: 1em;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}
