@Olaf, there seems to be a pattern here. Are you going to use headings for that purpose?
Perhaps you could inspire yourself with How to add an invisible Heading to an outline?, which has 2 good solutions for that, using either:
- a heading…
- do you want to use one?
- perhaps you could use a hidden one?
or
- a state variable.
In any case, although you have provided a bit more insight, it is still unclear what means you would like to use, which would help suggesting a more complete solution… and avoid duplication.