It's worth noting that those companies have trillion dollar stock valuation, but by far less actual revenue. Average revenue per year of these companies is "just" 159 billions. Amazon has had a revenue of 88 billion.
German companies with more revenue than Amazon: Volkswagen, Daimler, BMW, Allianz, Siemens, Deutsche Telekom, Uniper, Bosch.
On the smaller end, Germany also has a comparable number of employer firms per capita as the U.S.
Empirically it largely is a myth that worker protection and consumer protection stiffles enterprises or innovation.