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