Thank you very much Alexey, that wkt-definition works great !
Here is the code for those who have the same problem:
proj = Metashape.OrthoProjection()
Metashape.CoordinateSystem.addGeoid("de_bkg_GCG2016v2023.tif")
wkt = 'COMPD_CS["ETRS89 / UTM zone 32N + DHHN2016 height", PROJCS["ETRS89 / UTM zone 32N",GEOGCS["ETRS89",DATUM["European Terrestrial Reference System 1989 ensemble",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9102"]], AUTHORITY["EPSG","4258"]],PROJECTION["Transverse_Mercator",AUTHORITY["EPSG","9807"]],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",9],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","25832"]],VERT_CS["DHHN2016 height",VERT_DATUM["Deutsches Haupthoehennetz 2016",2005,AUTHORITY["EPSG","1170"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","7837"]]]'
proj.crs = Metashape.CoordinateSystem(wkt)
chunk.buildDem(source_data=Metashape.PointCloudData, interpolation = Metashape.Interpolation.DisabledInterpolation, projection = proj)
doc.save()
chunk.crs = Metashape.CoordinateSystem(wkt)
print(chunk.crs)
if chunk.elevation:
chunk.exportRaster('output/dem.tif', source_data= Metashape.ElevationData, projection = proj, nodata_value=999)