I was told that as well 40-45 years ago, and yet, here we are 40+ years later and lo-and-behold it is still paying benefits.
The fear-mongers have been alive and well for 40+ years, have no doubt they will continue to push the fear - its good for news clips and web clicks, if nothing else.
You can go to https://service.destatis.de/bevoelkerungspyramide/index.html... to see the data and projections on this.
An many are just about to have the same.