The battery cover of the "Sommer 4050" (Model No. T397-40) door remote can be removed quite easily (without meaning to) by pulling it out or sliding it into pants pockets etc. and by doing so, it is quite easily lost.
As there seems to be no replacement part available anywhere and the contacts and battery under the cover can be damaged easily without it, I reverse-engineered the lid (mostly its function, not 1:1 identical design).
It might be a little snug, but with a little grease I could slide it on quite easily and thanks to the higher snugness, it is less likely to get lost.
Due to the needed precision and the small tabs on the sides being quite thin, I recommend printing it on a resin printer (I printed mine on an Anycubic Mono X, sliced with Lychee Slicer).
The author marked this model as their own original creation.