.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #dcd2f5;
  color: #4b3b75;
  box-shadow: inset 0 0 0 1px #c9bce8;
}

.btn-senden {
  background-color: #87CEFA;
  color: #4b3b75;
  box-shadow: inset 0 0 0 1px #c9bce8;
}

.btn-add {
  background-color: #98FB98;
  color: #4b3b75;
  box-shadow: inset 0 0 0 1px #c9bce8;
}

.btn-menu {
  background-color: #ffffff;
  color: #000000;
  box-shadow: inset 0 0 0 1px #000000;
}

.btn-primary:hover {
  background-color: #cbc0eb;
}

.btn-secondary {
  background-color: #e7f2e7;
  color: #305c30;
  box-shadow: inset 0 0 0 1px #c0e0c0;
}
.btn-secondary:hover {
  background-color: #d5e9d5;
}

.btn-neutral {
  background-color: #f0f0f0;
  color: #555;
  box-shadow: inset 0 0 0 1px #ccc;
}
.btn-neutral:hover {
  background-color: #e2e2e2;
}

.btn-alert {
  background-color: #fbe9e9;
  color: #a02828;
  box-shadow: inset 0 0 0 1px #e4bebe;
}
.btn-alert:hover {
  background-color: #f5dada;
}

.btn-zurueck {
  background-color: transparent;
  color: #4b3b75;
  border: 1px solid #dcd2f5;
  padding: 0.3rem 0.8rem;
}
.btn-zurueck:hover {
  background-color: #f4f0fa;
}

.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.button-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0.2rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-icon-blue {
  color: #3498db; /* Blau */
}
.btn-icon-blue:hover {
  color: #2c80b4;
}

.btn-icon-purple {
  color: #4b3b75; /* Lila */
}
.btn-icon-purple:hover {
  color: #2c2c5f;
}

.btn-icon-red {
  color: #c0392b; /* Rot */
}
.btn-icon-red:hover {
  color: #a5281d;
}

.btn-icon:hover {
  color: #2c2c5f;
  box-shadow: inset 0 0 0 1px #000099;
}

.btn-separator {
  margin-right: 2rem; /* oder 1.5rem, wenn du’s noch luftiger magst */
}

.system-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
    color: #4b3b75; /* oder ein sanftes Violett */
}

/* Dropdown-Menü modernisieren */
ul.menu.vertical {
  background-color: #fdfbff;
  border: 1px solid #000000;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

ul.menu.vertical li a {
  display: block;
  padding: 0.4rem 1rem;
  color: #4b3b75;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

ul.menu.vertical li a:hover {
  background-color: #BBFFFF;
}

@media screen and (max-width: 640px) {
  .btn,
  .btn-primary,
  .btn-menu,
  .btn-senden {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.toggle-switch input:checked + .slider {
  background-color: #4b3b75;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(30px);
}


.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.toggle-label {
  font-weight: 500;
  color: #555;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.toggle-switch {
  position: relative;
  width: 100px;
  height: 40px;
  background-color: #e74c3c; /* Rot für Nein */
  border-radius: 25px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  height: 100%;
  width: 100%;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.switch-handle {
  position: absolute;
  width: 38px;
  height: 38px;
  top: 1px;
  left: 1px;
  background: white;
  border-radius: 50%;
  transition: left 0.3s;
}

.toggle-switch input:checked ~ .slider {
  background-color: #27ae60; /* Grün für Ja */
}

.toggle-switch input:checked ~ .switch-handle {
  left: 61px;
}

.toggle-switch input:not(:checked) ~ .slider::before {
  content: "NO";
}

.toggle-switch input:checked ~ .slider::before {
  content: "YES";
}

.radio-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* vorher war 0.4rem */
    line-height: 1;
    font-size: 1rem;
    vertical-align: middle;
}

.radio-inline-label input[type="radio"] {
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
}

.radio-options {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
}

.radio-paar {
    display: flex;
    align-items: center;
    gap: 2rem; /* Abstand zwischen Ja und Nein */
    justify-content: flex-end;
}

.radio-paar label {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Abstand zwischen Radio-Knopf und Text */
    margin: 0;