/* Schimpelsberger: overlay asking to switch to the Klaviertransport form,
   plus the scroll offset for the form anchor on /klaviertransport/. */

/* Arriving via /klaviertransport/#klaviertransport-formular: the script
   scrolls to the section holding the form — keep it clear of the header */
.formsLayout,
#wpforms-2690 {
  scroll-margin-top: 140px;
}

.sb-transport-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sb-transport-dialog--open {
  display: flex;
}

.sb-transport-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 32, 40, 0.5);
}

.sb-transport-dialog__card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(31, 32, 40, 0.25);
  padding: 28px;
  box-sizing: border-box;
}

.sb-transport-dialog__title {
  margin: 0 0 12px;
  font-size: 1.6em;
  line-height: 1.25;
}

.sb-transport-dialog__text {
  margin: 0 0 22px;
  line-height: 1.5;
}

.sb-transport-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sb-transport-dialog__button {
  font: inherit;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #5b554e;
}

.sb-transport-dialog__button--primary {
  background: #5b554e;
  color: #fff;
}

.sb-transport-dialog__button--primary:hover {
  background: #47423c;
  border-color: #47423c;
}

.sb-transport-dialog__button--secondary {
  background: #fff;
  color: #5b554e;
}

.sb-transport-dialog__button--secondary:hover {
  background: #f3f1ef;
}

.sb-transport-dialog__button:focus-visible {
  outline: 2px solid #5b554e;
  outline-offset: 2px;
}
