The German identity card doesn't have gender information. It is neither in the human readable part of the card, and in the machine readable code, the gender character is "<" for "Unspecified". No gendered honorifics or pronouns are used on the card.
The UK doesn't have identity cards. The drivers licence acts as a de facto identity card (you can use it to establish your identity in interactions with the police, for example). The human readable part of the UK driver's licence is ungendered, however the driver's number encodes the sex of the drive (in the six digits which encode the date of birth, the second digit is 0 or 1 for male drivers and 5 or 6 for female drivers) However Northern Ireland driver's numbers don't use this scheme. Older licences use Mr or Mrs, but newer ones seem to be ungendered.