- Protein: 1.8 g / kg (0.8 g / lb) total body weight (4 Calories per g protien)
- Fat: 20-30% calories from fat (9 Calories per g fat)
- Carbs: all the rest of the calories to carbs if sports performance is important to you (4 Calories per g carbs)
I recommend focusing primarily on calories in vs. calories out, and just make sure you have the recommended amount of protein and staying out of ketosis. The rest will take care of itself.
The amount of extra fat you are carrying does impact how much lean mass you might loose:
- Obese people will primarily lose fat
- Overweight people will lose more of a mix but still skewed toward muscle
The closer you are to a "normal body weight" the more lean mass you will lose as you lose weight. Going from normal fat levels to bodybuilding competition fat levels is a specialty topic and one I'm not qualified to speak toward.
Just as a personal anecdote, I was able to increase strength while losing weight in 2014 culminating in new personal bests in a powerlifting competition that year while weighing over 20 lbs lighter than the previous one. Slow weight loss, normal training, and staying out of ketosis were key elements of that process.
I used to recommend ketogenic diets but don't anymore. I was able to get fairly quick dramatic results on one back in 2010, but lost a lot of muscle mass in the process. Much of that was due to bad diet advice and my own ignorance at the time. I didn't have enough protein to protect the muscle mass I had (I was consuming less than 0.5g per lb body mass) and I wasn't doing anything that required the muscle to remain. Had I had the correct amount of protein and did strength training the results would have been better. Performance will suffer in a ketogenic diet because there are so few resources to do work. It's also the only time that increasing protein above the recommended amount might be worthwhile.