Wie zentriere ich das Logo in der Hauptkopfzeile?

Unfortunately, it didn’t work.

here’s a mockup of what I’m trying to do:

and I would like to preserve centering when the logo changes to the small logo + topic title.

Can somebody enlighten me how to do it please?