Variational description of Gibbs-non-Gibbs dynamical transitions for spin-flip systems with a Kac-type interaction