Phase structure and thermodynamics of QCD