Hi Chris,
Thank you for your response, and I’m glad the explanation helped clarify the issue.
To address your concern, it’s important to understand how hidden sections or elements work. When a section is hidden for a specific device, it doesn’t actually disappear from the DOM—it remains present but is simply not visible. Because of this, when you assign the same ID to multiple sections, the browser always targets the first occurrence of that ID in the DOM, regardless of its visibility. In your case, on the desktop version, the first section with the ID Kontakt is visible, so the menu link works as intended. However, on the mobile version, the first section with the same ID is hidden, and the browser does not look for the next section with the same ID. This is why the link fails to work on mobile devices.
To resolve this issue, I recommend using a single section with one unique ID for both desktop and mobile designs. You can then hide or show individual elements within that section depending on the device, rather than creating entirely separate sections. This approach ensures that the ID remains unique while still allowing for customized designs for each device.
If you’d like assistance in implementing this, I’d be happy to help you further.
Best regards,
Shuvo