Remarkable Denmark completed their fairytale success story at the EHF European Men's Handball Championship by securing a place in the semi-finals.