Paderborn survived a late scare to secure a crucial home win thanks to goals from Sebastian Klaas and Laurin Curda.