/* ========== MODAL STYLES - IM ECHTEN WEBSITE-STYLE ========== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: #16213e;
  border-radius: 12px 12px 0 0;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 2rem;
  color: #333;
  line-height: 1.6;
  background: #ffffff;
}

.modal-body iframe {
  width: 100%;
  height: 60vh;
  border: none;
}

.modal-body h3 {
  color: #16213e;
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 12px;
  color: #555;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: right;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.modal-btn-close {
  background: #ffffff;
  color: #0f0f1a;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.modal-btn-close:hover {
  background: #e5e7eb;
  transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-container {
    margin: 20px 0;
    max-width: 100%;
  }
  
  .modal-header {
    padding: 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-container {
    margin: 20px 0;
    max-width: 100%;
  }
  
  .modal-header {
    padding: 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
  }
}
