/**
 * Rückmeldungen des Kontaktformulars (Erfolg / Fehler)
 */

.tecoil-form-notice {
  position: relative;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid transparent;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--surface, #f6f8fb);
  color: var(--text, #102132);
}

.tecoil-form-notice--success {
  border-left-color: #1e8e3e;
  background: #e9f6ed;
  color: #14532d;
}

.tecoil-form-notice--error {
  border-left-color: var(--brand-red, #e30613);
  background: #fdecec;
  color: #7f1010;
}

/* Fallback-Variante für Seiten, die das Formular über Elementor ausgeben */
.tecoil-form-notice--floating {
  position: fixed;
  z-index: 9999;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  margin: 0;
  padding-right: 48px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, .15));
}

.tecoil-form-notice__close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
}

.tecoil-form-notice__close:hover,
.tecoil-form-notice__close:focus-visible {
  opacity: 1;
}

/* Honeypot – für Besucher unsichtbar, für Screenreader ausgeblendet */
.tecoil-hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .tecoil-form-notice--floating {
    top: 90px;
  }
}
