In Germany, the Transsexuellengesetz (Transsexual Law) allows for name and gender marker change after psychological evaluation and court approval. As of my knowledge cutoff in September 2021, Gender Confirmation Surgery is not a requirement for a legal gender change. However, specific laws may have been updated since then.