.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #222;
  padding: 2em;
  border-radius: 0.8em;
  max-width: 40em;
  color: white;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.5em;
  right: 0.8em;
  background: none;
  border: none;
  font-size: 1.5em;
  color: white;
  cursor: pointer;
}

.donation-type-buttons {
  display: flex;
  gap: 1em;
  margin-top: 1em;
}

.donation-type-buttons button {
  flex: 1;
  padding: 0.5em;
  background: #444;
  color: white;
  border: none;
  border-radius: 0.4em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.donation-type-buttons button:hover {
  background: #666;
}

select#donation-currency {
  border-radius: 0.4em;
  border: none;
  background-color: #444;
  color: white;
}

#popup-manager-modal .modal-content {
  width: 90vw;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-top: 1em;
}

.contact-buttons button {
  font-size: 1.1em;
  padding: 0.6em 1em;
  border-radius: 0.5em;
  border: none;
  background-color: #444;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-buttons button:hover {
  background-color: #666;
}

.email-display {
  margin: 0.5em 0;
  font-size: 1em;
  background-color: #f0f0f0;
  padding: 0.6em 1em;
  border-radius: 0.5em;
  border: 1px dashed #ccc;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.email-display:hover {
  background-color: #e8e8e8;
}

#email-text {
  font-weight: bold;
  color: #222;
  user-select: text;
}

.email-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #444; /* gleiche Farbe wie andere Buttons */
  color: #fff;
  padding: 0.6em 1em;
  margin: 0.5em 0;
  border-radius: 0.5em;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
}

.email-box:hover {
  background-color: #666;
}


.copy-icon {
  margin-left: 1em;
  font-size: 1.1em;
}

.copy-confirmation {
  position: absolute;
  right: 1em;
  top: -1.4em;
  font-size: 0.75em;
  color: #66ff66;
  display: none;
}

.token-vesting {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.token-vesting li {
  margin: 0.3em 0;
}


/* Stil für das "Über uns"-Modal */

#modal-about .modal-content {
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.45;
  font-size: 0.95em;
  color: #f3f3f3;
  background: #1e1e1e;
  border: 2px solid #333;
  padding: 2vh 3vw;
  border-radius: 1.5em;
  box-shadow: 0 0 2em rgba(0, 0, 0, 0.6);
  max-width: 56vw;
  max-height: 70vh;
  overflow: hidden; /* keine Scrollleiste */
  position: relative;
}

#modal-about h2 {
  font-size: 1.4em;
  color: #facc15;
  text-align: center;
  margin-bottom: 1vh;
}

#modal-about p {
  margin: 0.7em 0;
}

#modal-about strong {
  color: #fff;
}

#modal-about em {
  color: #bbb;
  font-style: italic;
}

#modal-about .close-btn {
  position: absolute;
  top: 1vh;
  right: 2vw;
  font-size: 1.8em;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

#modal-about .close-btn:hover {
  color: #fff;
}

#modal-contact-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 28vw;
  margin: 0 auto;
  font-size: 1em;
}

.contact-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2e2e2e;
  color: #fff;
  padding: 0.7em 1em;
  border-radius: 0.6em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.contact-btn:hover {
  background: #3a3a3a;
}

.copy-email {
  position: relative;
}

.copy-icon {
  margin-left: 1em;
  color: #bbb;
  font-size: 1em;
}

.copy-confirmation {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  color: #76ff76;
  display: none;
}

.how-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  font-size: 0.95em;
}

.how-note {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 1em;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90vw !important;
    max-width: 90vw !important;
    max-height: 85vh;
    font-size: 0.9em;
    padding: 1.5em 1em;
    overflow-y: auto;
  }

  #modal-about .modal-content {
    max-width: 90vw;
    max-height: 85vh;
    font-size: 0.9em;
    padding: 1.5em 1em;
    overflow-y: auto;
  }

  #modal-contact-content {
    max-width: 90vw;
    font-size: 0.9em;
    gap: 0.8em;
  }

  .contact-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4em;
    padding: 0.8em;
    font-size: 1em;
  }

  .copy-confirmation {
    right: 0.5em;
    font-size: 0.75em;
    top: auto;
    bottom: -1.4em;
  }

  .close-btn,
  #modal-about .close-btn {
    top: 0.5em;
    right: 0.8em;
    font-size: 1.4em;
  }
}
