Author lecture text, based on a Hamburg 2003 course. Sections 11 and 13 give the Ricci form and Kähler–Einstein equation; sections 7 and 17 discuss projective and Ricci-flat examples.