From wrapped M-branes to Calabi-Yau black holes and strings