To go a bit more into your overall question (and not into the diagram): No simple "it was because of X" answer will be worth its salt.
One thing that does come close is "better usage of machine guns". Before WW1 there was still Napoleon style warfare. The French army went in with blue uniforms with red pants instead of anything approaching camouflage, and the Germans with the famous pickelhaube, a helmet with a spike meant to deflect cavalry sabers.
Those armies with those cannons with the wooden wheels, at some point started having smaller cannons that had mechanisms to fire faster, getting closer to what we call a machine gun. But they were still seen as artillery pieces, managed at a higher level, ordered to a more permanent position. Enemy storms your position, if the make it you take the MG back to your second line, pick of those enemies who aren't dug in yet, and then go back to your first line. You do this with one MG and like, hundreds of guys with bolt action rifles.
In WW2 Germany started out with having an MG per infantry squad of 10 people - and that is still roundabout the ratio of modern armies. Because an MG, set up well somewhere, with just a couple of guys preventing easy flanking, is already a huge problem for any enemy who wants to traverse that area, even if they're a group of a hundred.
These were incredible strengths; quickly deploying it to make anybody in that direction be in cover or easy pickings, while also quickly REdeploying to make a situation uncomfortable. But it didn't just take a realization "oh, MG stronk!", it also took a development of production levels and tactics over years.
But, to segue back into the bigger point of there being no easy answer: All of that is very much connected to your industry. If the Germans would have wanted that ratio at the battle of the Somme, they would have needed roundabout 30000 MGs just for their soldiers who died there!
Then you look at other WW2 developments like the 1-person-carriable mortar. Which can hit people who are in cover, great synergy with an MG - but same thing here, it needs to be produced.
Submachine guns sure make storming a covered position like a trench a lot easier, but 1 of those among your 100 guys won't make a huge difference against 100 guys defending a trench.
There was a war going on, and A LOT of developments during that war were very much attempts to break that stalemate. Because that would basically be winning.
But there wasn't that one single trick that did it. It was more that everyone gradually got better and better at fighting it, building up a potential that they kinda couldn't fully realize because they were exhausted from years of fighting. So when they went into WW2 with that knowledge, but then powered by refreshed industrial capacity, the playing field was just noticably different.
Another perspective that might help understand is to not see trench warfare as a single thing. It got called "trench warfare" because the trenches were a striking feature, but it also consisted of a bunch of other little technologies and tactics. And most things that were developed for this trench warfare war, were still used in WW2. So, this perspective would be more to see it as a gradual change, where that one detail of having trenches at some point dropped out, just like a couple other things did at certain points. The shift from WW1 to WW2 was like shaking a tree so that a bunch of ripe fruit fell out earlier than they would have, had the war gone on.
\