Germany's middle-tech trap limits economic growth, research shows