Freiburg and Leverkusen played out a six-goal thriller at the Europa-Park Stadion as both sides took and squandered the lead.