/* Kontakt-Overlay RAW: helles Glas im RAW-Design */
.contact-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 36px;
  box-sizing: border-box;
  overflow: auto;
  color: #191919;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.contact-dialog::backdrop {
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.contact-dialog[open] {
  animation: contact-dialog-in 0.25s ease;
}

@keyframes contact-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.contact-dialog__title {
  margin: 0 0 20px;
  font: 300 30px/1.1 Lato, sans-serif;
  color: #191919;
}

.contact-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  font-size: 0 !important;
  color: #191919 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 50%;
  cursor: pointer;
  transition: none !important;
}

.contact-dialog__close:hover {
  border-color: rgba(25, 25, 25, 0.2) !important;
}

.contact-dialog__close::before,
.contact-dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: currentColor;
  transform: rotate(45deg);
}

.contact-dialog__close::after {
  transform: rotate(-45deg);
}

/* Formular (contact-form.php), im Overlay und auf der Kontaktseite.
   !important nur gegen die Button-/Feld-Stile des Mellow-Themes */
.contact-form .contact-form__required {
  margin: 0 0 16px;
  padding: 0;
}

.contact-form__row {
  margin-bottom: 16px;
}

.contact-form label,
.contact-form__required span {
  display: block;
  padding-bottom: 6px;
  font: 600 12px/1.4 "Open Sans", sans-serif !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555 !important;
}

.contact-form label span {
  display: inline;
  font: inherit !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  box-sizing: border-box;
  font: 15px/1.4 Lato, sans-serif !important;
  color: #191919 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(25, 25, 25, 0.2) !important;
  border-radius: 6px;
}

.contact-form textarea {
  min-height: 160px;
}

.contact-form__row--error input,
.contact-form__row--error textarea {
  border-color: #c0392b !important;
}

.contact-form .contact-form__error {
  margin: 6px 0 0;
  padding: 0;
  font: 13px/1.4 Lato, sans-serif;
  color: #c0392b;
}

.contact-form .contact-form__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  font: 14px/1.4 Lato, sans-serif;
  border-radius: 6px;
}

.contact-form__notice--ok {
  color: #191919;
  border: 1px solid rgba(25, 25, 25, 0.25);
}

.contact-form__notice--error {
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.4);
}

/* Honeypot: für Menschen unsichtbar */
.contact-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  padding-top: 4px;
}

.contact-form input[type="submit"] {
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 12px 26px !important;
  font: 600 12px/1 "Open Sans", sans-serif !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: #191919 !important;
  border: 0 !important;
  border-radius: 999px;
  cursor: pointer;
}
