/* === Stil für Popup-Nachrichten === */
.msg-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: scale(0.9);
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  font-family: sans-serif;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  min-width: 250px;
  max-width: 90%;   /* passt sich der Bildschirmbreite an */
}

/* Sichtbar */
.msg-popup.show {
  opacity: 1;
  transform: scale(1);
}

/* Farbvarianten */
.msg-error {
  border: 2px solid #c00;
  color: #c00;
}

.msg-success {
  border: 2px solid #0a0;
  color: #0a0;
}

/* OK-Button */
.msg-popup button {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s ease;
}

/* Farbige Buttons für Erfolg und Fehler */
.msg-error button {
  background: #c00;
  color: #fff;
}

.msg-success button {
  background: #0a0;
  color: #fff;
}

/* Hover-Effekt */
.msg-popup button:hover {
  filter: brightness(0.9);
}

/* Responsive Anpassungen für Smartphones */
@media (max-width: 480px) {
  .msg-popup {
    top: 10px;
    right: 10px;
    padding: 12px 15px;
    font-size: 14px;
    min-width: 180px;
  }

  .msg-popup button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.customcheck {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.customcheck input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
}

.customcheck:hover input ~ .checkmark {
    background-color: #ccc;
}

.customcheck input:checked ~ .checkmark {
    background-color: #167500;
    border-radius: 5px;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.customcheck input:checked ~ .checkmark:after {
    display: block;
}

.customcheck .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}   