You need to contact German universities directly to find their transfer policies. But because their programs are very different from the US many German universities won’t transfer any of your credits. In that case, you’d be essentially starting your undergraduate education over again.
As for a master’s degree (or PhD) you wouldn’t be “transferring” back to the US. You’d be applying as an international student, taking the GREs and competing like everyone else.