Hafning in Trofaiach is a district, town and cadastral municipality of Trofaiach in the district of Leoben in Styria. As of 1 January 2013, the former municipality was merged with Trofaiach. Trofaiach, Hafning and Gai were among those communities who carried out a merger two years before the general Styrian municipality of structural reform.