what did the germans do wrong in ww1?

They didn't win. The main reason is they underestimated the French army, they underestimated how quickly the British could come to the assistance of the French, and they greatly underestimated the Russian Army.