Yes, hugo has both .IsMenuCurrent and .HasMenuCurrent to check if the parent page or children page is current active menu.
Read more on Hugo Menu Entry
You can learn more from Hugo Documentation sidebar here. nav-link-docs.html
Thanks for your suggestion. In this case it doesn’t work (I tried). Because this site has a lot of pages, only the pages of “level one” are displayed in the menu. The subpages are not rendered in the menu.
So, when I’m at level two I’d like level one (= parent) to be active.