Part 2: The numbering
By structuring your template, you determine the level on which the individual headings and paragraphs are located and whether they should be displayed numbered or unnumbered. When exporting to Word, they adopt the formatting you have specified for these levels.
About the logic in numbering: as soon as a heading is indented one level further, the paragraphs on the same level in the previous heading can no longer be numbered. This is because paragraphs and headings cannot be numbered in the same context at the same level since the numbering is already assigned for the heading.