Leaving my husband?

After more than one year in Germany and countless job applications and few interviews (where, by the way, I was always asked about children plans and how long I’ve been married, shouldn’t this be illegal to ask?), it seems like it really doesn’t make sense for me to stay here.