Hi @Nwa d
It is the duration of marriage while resident in Germany that is counted. If you were married and living together in Germany for at least three years, then you are entitled to a residence permit according to paragraph 31. I recommend you now apply for this as the Ausländerbehörde has been informed of your separation.
In case you’re not already aware, for paragraph 31 it is not necessary to be fully financially self-sufficient. If you are receiving support from Jobcenter or other benefits, you are still entitled to a residence permit.
Best,
Éanna