No clue what you mean with
“ the headers and paragraphs are the same attributes, the headers are variable so I can not style them seperetly titles, because the headers and paragraphs are the same attributes, the headers are variable so I can not style them separately.”
All widgets can be styled in the widget properties individually. So different (dynamic) labels can have different styling.
So bit confused what you mean with headers, paragraphs and relation to same attributes.
The image doesn’t provide a lot of insight as well.
//Edit//
So you want to have dynamic styling on the same label widget. That’s pretty hard in the default Document template. My way to solve it would be to add a Boolean which identifies if its a header of a paragraph and using 2 label widgets, conditional visibility and different styling on the 2 widgets