/* mechaSYS GmbH
 * @desc      Frontend Styles
 * @type      Project
 * **************************************************
 * @author    Heiko Groeger <h.groeger@werboffice.de>
 * @link      http://www.werboffice.de
 * @copyright 2025
 */
/* spam protection mailto:encrypted */
a[href^="mailto:encrypted"] {
  display: none !important;
}

.inhalt a:not(.galerie-aussen a):not(.accordion-fenster a):not(.ea-card a),
footer a[href^="mailto"] {
  color: rgb(0, 105, 180) !important;
}

.inhalt a:not(.galerie-aussen a):not(.accordion-fenster a):not(.ea-card a):hover,
footer a[href^="mailto"]:hover {
  color: rgb(90, 90, 90) !important;
}

/* elementor result messages overwrites */
.elementor-message::before {
  content: "✔" !important;
}

.elementor-message.elementor-message-danger::before {
  content: "✘" !important;
}

/* ============================================================
   Kontaktformular
   ============================================================ */
form#wpforms-form-550 input:user-invalid,
form#wpforms-form-550 textarea:user-invalid {
  outline: 2px solid #ff8800 !important;
  outline-offset: -1px !important;
}

form#wpforms-form-550 .elementor-message {
  display: none !important;
}

@media (max-width: 660px) {
  form#wpforms-form-550 .wpforms-one-half {
    width: 100%;
    margin: 0;
  }
}

/*--------------------------------------------------*/
/*	Ajax Form Submit (with animation)
/*--------------------------------------------------*/
.failed,
.success-message {
  background-color: #64cb7b !important;
  color: #fff !important;
  font-weight: 400 !important;
  font-size: 1.3rem !important;
  line-height: 1.2 !important;
  text-align: center !important;
  padding: 20px !important;
  margin-bottom: 100px !important;
  position: relative !important;
  overflow: hidden !important;
}

.failed {
  background-color: #f11f5a !important;
}

.form-flex {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.slide-up {
  animation: slide-up 0.7s ease-in-out forwards;
}

.slide-down {
  animation: slide-down 0.7s ease-in-out forwards;
}

@keyframes slide-up {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/*--------------------------------------------------*/
/*	Mpdal Dialog
/*--------------------------------------------------*/
.modal {
  box-shadow: 0 0 0 100vw rgb(0 0 0 / .8) !important;
  background: #fff !important;
  color: #222 !important;
  border: 0 !important;
  border-radius: .25rem !important;
  width: 60ch !important;
  max-width: 90vw !important;
  position: fixed !important;
  left: 50vw !important;
  translate: -52% !important;
  top: 40vh !important;
  z-index: 9 !important;
}

.modal>div {
  margin: 0 !important;
}

.modal .success-message * {
  /* color: #fff !important; */
  filter: brightness(2) grayscale(1) invert(0.7);
  margin: 0;
}

.modal .success-message h3 {
  line-height: 1;
  margin-bottom: 10px;
}

.modal::-webkit-backdrop {
  background: rgb(0 0 0 / .5);
  opacity: 0 !important;
}

.modal::backdrop {
  background: rgb(0 0 0 / .5);
  opacity: 0;
}

.modal[open] {
  animation: fade-in 500ms forwards;
}

.modal[open].closing {
  animation: fade-out 1500ms forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(5rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateY(0%);
  }

  100% {
    opacity: 0;
    transform: translateY(5rem);
  }
}
