Hidden Grassmann structure in the XXZ model III: introducing the Matsubara direction