Bayern's league rivals Werder Bremen crashed out of the German Cup when they were beaten 2-1 at Borussia Dortmund when Italian midfielder Giovanni Federico and Spanish striker Diego Klimowicz scored either side of half-time for the hosts.