Insights into the emission of the blazar 1ES 1011+496 through unprecedented broadband observations during 2011 and 2012