/* ========================================
   Landingpage Kontaktformular
   Luftig, klar, Conversion-optimiert
   ======================================== */

/* Gesamter Abschnitt */


.lp-contact-section {
    background: #4183D7;
    width: 100%;
    padding: 100px 0;
    margin: 0;
    overflow-x: hidden; /* Sicherheitsnetz */
}



/* Formular-Wrapper */

.lp-contact-section .lp-form-inner {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* Headline */
.lp-form-headline {
    text-align: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Subline */
.lp-form-subline {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 56px; /* wichtiger Abstand zum Formular */
}

/* Formularfelder – immer weiß */
.lp-contact-section .wpcf7 input[type="text"],
.lp-contact-section .wpcf7 input[type="email"],
.lp-contact-section .wpcf7 input[type="tel"],
.lp-contact-section .wpcf7 textarea {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff !important;
    border: none;
    border-radius: 6px;
    color: #222222 !important;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 18px; /* LUFT zwischen Feldern */
    transition: box-shadow 0.2s ease;
}

/* Placeholder */
.lp-contact-section .wpcf7 input::placeholder,
.lp-contact-section .wpcf7 textarea::placeholder {
    color: #999999 !important;
}

/* Focus-Zustand */
.lp-contact-section .wpcf7 input[type="text"]:focus,
.lp-contact-section .wpcf7 input[type="email"]:focus,
.lp-contact-section .wpcf7 input[type="tel"]:focus,
.lp-contact-section .wpcf7 textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
    background: #ffffff !important;
}

/* Textarea bewusst größer */
.lp-contact-section .wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button */
.lp-contact-section .wpcf7 input[type="submit"] {
    display: inline-block;
    margin-top: 12px;
    padding: 16px 56px;
    background: #ffffff;
    color: #4183D7;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

/* Hover-Effekt */
.lp-contact-section .wpcf7 input[type="submit"]:hover {
    background: #e8f0fc;
    transform: translateY(-1px);
}

/* Trust-Text unter Button (optional, empfohlen) */
.lp-form-trust {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

/* ========================================
   CF7 Versandbestätigung – CI-konform
   ======================================== */

/* Erfolgs- & Hinweisbox allgemein */
.lp-contact-section .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 16px 20px;
    border: none; /* entfernt grünen Rahmen */
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 15px;
    text-align: center;
}

/* Erfolgreich gesendet */
.lp-contact-section .wpcf7-mail-sent-ok {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Fehler (z. B. Pflichtfeld fehlt) */
.lp-contact-section .wpcf7-validation-errors,
.lp-contact-section .wpcf7-mail-sent-ng {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Entfernt Standard-Grenzen sicherheitshalber */
.lp-contact-section .wpcf7-response-output {
    border: none !important;
}



/* ========================================
   Mobile Optimierung Kontaktformular
   ======================================== */

@media (max-width: 768px) {

  /* Abschnitt luftiger */
  .lp-contact-section {
      padding: 80px 16px;
  }

  /* Headline kleiner & besser lesbar */
  .lp-form-headline {
      font-size: 26px;
      line-height: 1.3;
  }

  .lp-form-subline {
      font-size: 15px;
      margin-bottom: 40px;
  }

  /* Formularfelder – fingerfreundlich */
  .lp-contact-section .wpcf7 input[type="text"],
  .lp-contact-section .wpcf7 input[type="email"],
  .lp-contact-section .wpcf7 input[type="tel"],
  .lp-contact-section .wpcf7 textarea {
      padding: 18px 18px;
      font-size: 16px; /* verhindert iOS-Zoom */
      margin-bottom: 20px;
      border-radius: 8px;
  }

  /* Textarea größer */
  .lp-contact-section .wpcf7 textarea {
      min-height: 160px;
  }

  /* Submit-Button – volle Breite */
  .lp-contact-section .wpcf7 input[type="submit"] {
      width: 100%;
      padding: 18px;
      font-size: 18px;
      border-radius: 8px;
      margin-top: 8px;
  }

  /* Versandbestätigung mobil sauber */
  .lp-contact-section .wpcf7-response-output {
      font-size: 14px;
      padding: 16px;
      margin-top: 24px;
  }

  /* Trust-Text gut lesbar */
  .lp-form-trust {
      font-size: 12px;
      line-height: 1.4;
  }
}


/* ========================================
   Sticky Call-to-Action – Mobile
   ======================================== */

.lp-sticky-cta {
    display: none;
}

@media (max-width: 768px) {

  .lp-sticky-cta {
      display: block;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9999;

      background: #ffffff;
      color: #4183D7;
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      padding: 16px 20px;

      text-decoration: none;
      box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
  }

  /* Platz schaffen, damit nichts verdeckt wird */
  body {
      padding-bottom: 72px;
  }
}

/* ===============================
   Boxed Content sauber zentrieren
   =============================== */

/* Row/Wrapper selbst */
.lp-boxed {
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* WPBakery Column-Inner zentrieren */
.lp-boxed .vc_column-inner {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Vertikaler Rhythmus */
.lp-boxed {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Mobile */
@media (max-width: 768px) {
    .lp-boxed {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ========================================
   Letzte Section: seitliche Ränder entfernen
   ======================================== */

/* WPBakery Padding in der Kontakt-Section killen */
.lp-contact-section .vc_row,
.lp-contact-section .vc_column,
.lp-contact-section .vc_column-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Falls wpb_wrapper zusätzlich Abstand macht */
.lp-contact-section .wpb_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Inhalt trotzdem schön zentriert halten */
.lp-contact-section .lp-form-inner {
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.lp-contact-section {
    margin-bottom: 0 !important;
}

.vc_row:last-child,
.vc_row:last-child > .wpb_wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Sicherheit */
body,
#content,
#page {
    margin-bottom: 0 !important;
}


/* ========================================
   Seite wirklich unten & rechts schließen
   ======================================== */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Theme-Wrapper neutralisieren */
#page,
#content,
#primary,
.site,
.site-content,
.content-area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* WPBakery letzte Row */
.vc_row:last-of-type,
.vc_row:last-of-type > .wpb_wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

