All grammarB1
Plusquamperfekt and nachdem
The rule
For what happened before another past event, German uses hatte or war with the Partizip II, and in a nachdem clause hatte or war goes to the end.
The Plusquamperfekt is the past before the past: a Präteritum form of haben or sein and the Partizip II. The choice is the same as in the Perfekt: ich hatte gelernt, er war gegangen.
nachdem (after) starts a clause with the verb at the end, so hatte or war comes last: nachdem ich die Prüfung bestanden hatte. The nachdem clause tells what happened first; the main clause tells what came next, in the Präteritum or the Perfekt.
When the nachdem clause comes first, the main clause starts with its verb: Nachdem Elena den Lebenslauf geschrieben hatte, schickte sie die Bewerbung.
Examples
Er war schon nach Hause gegangen.
He had already gone home.
Nachdem ich die Prüfung bestanden hatte, fuhr ich nach Hause.
After I had passed the exam, I went home.
Nachdem Elena den Lebenslauf geschrieben hatte, schickte sie die Bewerbung.
After Elena had written her CV, she sent the application.