Nach oben scrollen
// Warten bis Seite vollständig geladen ist document.addEventListener('DOMContentLoaded', function () { // Sobald Elementor ein Formular initialisiert jQuery(document).on('elementor-pro/forms/new', function (event, form) { console.log("🟢 FORM erkannt"); // Wenn das Formular erfolgreich abgesendet wurde form.$el.on('form:success', function () { console.log("🎯 GLOBAL: form:success wurde ausgelöst!"); const step2 = document.getElementById('step-2'); const step3 = document.getElementById('step-3'); if (step2 && step3) { step2.style.display = 'none'; step3.setAttribute( 'style', 'display: flex !important; visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: visible !important; position: relative !important; z-index: 1 !important;' ); } else { console.log("❌ step-2 oder step-3 wurde nicht gefunden"); } }); }); });