Die unendliche Geschichte
There is also a reference to the movie The Neverending Story in where Wendy lies to Henry on behalf of Pan claiming that because magic is dying so is she. She is connected to its fate so to speak. In the Neverending Story the Empress too is dying because of lack of faith and belief in the human world, and that it would take Bastion to save her. Pan convinces Henry it's up to him to save Wendy.