/* ====================================
   DESATIV Popups - Frontend Styles
   ==================================== */

/* Overlay */
.desativ-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desativ-popup-overlay.desativ-show {
  opacity: 1;
  visibility: visible;
}

/* Container */
.desativ-popup-container {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desativ-popup-overlay.desativ-show .desativ-popup-container {
  transform: scale(1) translateY(0);
}

/* Schließen-Button */
.desativ-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  padding: 0;
}

.desativ-popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.desativ-popup-close svg {
  color: #ffffff;
  display: block;
}

.desativ-popup-close:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

/* Content */
.desativ-popup-content {
  padding: 30px;
  line-height: 1.6;
  color: #333;
}

.desativ-popup-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.desativ-popup-content h1,
.desativ-popup-content h2,
.desativ-popup-content h3,
.desativ-popup-content h4,
.desativ-popup-content h5,
.desativ-popup-content h6 {
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.desativ-popup-content p {
  margin: 0 0 15px 0;
}

.desativ-popup-content a {
  color: #2271b1;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.desativ-popup-content a:hover {
  color: #135e96;
}

/* Scrollbar Styling */
.desativ-popup-container::-webkit-scrollbar {
  width: 8px;
}

.desativ-popup-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 12px 12px 0;
}

.desativ-popup-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.desativ-popup-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Animation für Closing */
.desativ-popup-overlay.desativ-closing {
  opacity: 0;
}

.desativ-popup-overlay.desativ-closing .desativ-popup-container {
  transform: scale(0.9) translateY(20px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .desativ-popup-overlay {
    padding: 15px;
  }

  .desativ-popup-container {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
  }

  .desativ-popup-content {
    padding: 20px;
  }

  .desativ-popup-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 480px) {
  .desativ-popup-overlay {
    padding: 10px;
  }

  .desativ-popup-content {
    padding: 15px;
    font-size: 14px;
  }

  .desativ-popup-container {
    border-radius: 6px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .desativ-popup-overlay,
  .desativ-popup-container,
  .desativ-popup-close {
    transition: none;
  }
}

/* Body No-Scroll wenn Popup offen */
body.desativ-popup-open {
  overflow: hidden;
}
