/**
 * Modal für externe Links
 * WDSB-Webdesign | Version: 1.0.0
 */

.wdsb-elm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  box-sizing: border-box;
}

.wdsb-elm-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.wdsb-elm-modal__title {
  margin: 0;
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.wdsb-elm-modal__body {
  padding: 0.75rem 1.5rem 1rem;
  color: #444;
  line-height: 1.5;
}

.wdsb-elm-modal__body p:first-child {
  margin-top: 0;
}

.wdsb-elm-modal__body p:last-child {
  margin-bottom: 0;
}

.wdsb-elm-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.wdsb-elm-modal__btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #333;
}

.wdsb-elm-modal__btn:hover {
  background: #eee;
  border-color: #999;
}

.wdsb-elm-modal__btn--continue {
  background: #1a5cad;
  border-color: #1a5cad;
  color: #fff;
}

.wdsb-elm-modal__btn--continue:hover {
  background: #0d47a1;
  border-color: #0d47a1;
  color: #fff;
}
