.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999999;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 20px; /* wichtig für kleine Screens */
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  padding: 24px 16px;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  box-sizing: border-box;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-content label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.modal-content .button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content .button:hover {
  background-color: #444;
}

.close {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close:hover {
  color: #000;
}

/* ✅ Mobile-Optimierung */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px 14px;
  }

  .modal-content label {
    font-size: 0.9rem;
  }

  .modal-content input[type="text"],
  .modal-content .button {
    font-size: 0.95rem;
    padding: 10px;
  }

  .close {
    font-size: 24px;
    top: 8px;
    right: 10px;
  }
}