"then, afterwards" — sequence of actions. In narration it starts the next clause with inversion: "Ich frühstücke, dann gehe ich zur Arbeit".
Konjunktionaladverb temporal — danach; Position 1, Inversion.
Порядок слов
Hauptsatz 1 (erstes Ereignis)
Subj.
V = 2.
,
Ich
frühstücke
,
Hauptsatz 2 mit dann (nächstes Ereignis)
Konj.-Adv.
V = 2.
Subj.
…
dann
gehe
ich
zur Arbeit.
A Konjunktionaladverb takes POSITION 1 of the second clause, so the verb lands in 2nd and the subject is pushed after the verb (inversion). This is the key difference from coordinating conjunctions (und, aber, denn), which stand outside position 1.