A young girl travels through time from the attic of her relatives' house and helps her ancestors in many ways; giving glasses for bad eyesight, pills etc.
She also meets a boy who happens to be known in future as a witch hunter.
He saves her when she's accused of witchcraft but as the girl finds out later, he dies instead of her.Then comes the devil who offers her to travel back since she could do it only trice thank to some magic tool that she had.
The girl accepts the deal And is transported to the past, caught and taken to the judge who is none other than the devil himself.
The movie was, I think, European. The main heroine blonde in her teens.
The heroine finds about his death in a local museum.He supposed to be decapitated.