Not sure why you consider them to be "green" given the facts you brought up. Germany has never been particularly green energy wise. It's a big population and lots of heavy industry with relatively little energy resources like hydro.
The are building solar and wind quickly now. Maybe that's why you got the impression that they are "green".