This can be a number of issues. Cam position sensor, cam actuators, slack in chain, etc. Needs to be properly diagnosed as these engines have issues with defective intermediate shafts.
RepairPal Certified shops can diagnose and repair your 2007 Mercedes-Benz C230. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.