Well-posedness and longtime behavior of the phase-field with memory in a history space setting