/* ============================================================================
 * Website Frontend – Popup Styles
 * Speicherort: /website-backend/assets/css/popup.css
 * Stand: 06.02.2026, 10:10 (MEZ)
 * ============================================================================
 */

/* Overlay (etwas stärker abdämpfen) */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
}

/* Card (nicht knallweiß, eher warm/neutral) */
.popup-box {
  position: relative;
  width: min(500px, 100%);
  background: #F6F4F0;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
  padding: 1.6rem 1.7rem 1.35rem;
}

/* Titel/Text: linksbündig, damit es ruhiger wirkt */
.popup-title {
  margin: 0 3.2rem .75rem 0; /* Platz für X */
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 750;
  text-align: left;
  color: #111827;
}

.popup-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
  color: #1f2937;
}

/* Buttons */
.popup-actions {
  display: flex;
  justify-content: flex-start;
  gap: .6rem;
  margin-top: 1rem;
}

/* Button-Grundstil (kleiner, neutral) */
.popup-button {
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: .55rem .85rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* Primärbutton (neutral, nicht schwarz) */
.popup-button-primary {
  background: #eeeeee
  color: #ffffff;
  border-color: rgba(0,0,0,.10);
}

/* Hover/Focus */
.popup-button-primary:hover {
  background: #999999;
}

.popup-button-primary:focus {
  outline: 3px solid rgba(0,0,0,.18);
  outline-offset: 2px;
}

/* Close X */
.popup-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(17,24,39,.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #111827;
}

.popup-close:hover {
  background: rgba(17,24,39,.14);
}

.popup-close:focus {
  outline: 3px solid rgba(168,134,70,.35);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .popup-box {
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: 16px;
  }
  .popup-title { font-size: 1.25rem; }
  .popup-text { font-size: 1rem; }
}
