there has been many definitions over time. currently germany, sweden, norway etc. is western europe because of socio-economic focus.
historically speaking germany was always more a central european country, opposing the "real" west france, uk etc.
socio-historically germany is a central european country together with the likes of austria, poland, hungary, czech, slovakia etc. because of all the influences they had/have on each other