Scroll on Snap with different Section hights

Hi Communitiy,
i did some custom code to snap the sections top when i am scrolling. My problem ist, that the code works only perfectly when i have two equal section hights. (100VH).

In my case my second section is over 100VH. The code works, but when i scroll to hard, it doesn´t catches the snap on the second section.

In addition the scrolling on the second section interrupts and behaves.

Would anyone of you have a solution for this? Really appreciate an answer! Read only is atteched.

Best Tomas!


Here is my site Read-Only:

(Webflow - ms-chemie.org)