If you got married abroad, you can have your marriage registered retrospectively in a German registry office.