Germany wanted to ally with the US a
bwahahahaha. yeah a little problem there called ROOSEVELT. Adolph hated Roosevelt.
So no, germany never saw that as a real possibility, esp after America First died on Dec 7th.
But to be clear: they did it with intention, they mulled it for 3 fucking days. https://en.wikipedia.org/wiki/German_declaration_of_war_against_the_United_States
They 'knew' what they were doing and did it with zeal. Make no mistake, Germany didn't want to be allied with the US we know, they wanted a puppet state run by quislings and Lindbergh.