The World Cup winners were in control for the majority of the first half, and were ahead in the 18th minute thanks to a header from Thomas Muller.
Hopes of an unlikely draw for Scotland were raised just after the hour mark when Ikechi Anya levelled with a calm finish past Manuel Neuer, but Germany were back in front with 20 minutes remaining as Muller helped himself to a second goal.
Charlie Mulgrew was sent off in stoppage time for a second yellow card as a promising display from Scotland ended in disappointment.
Read below to find out how the drama unfolded.
SCOTLAND: Marshall; Hutton, Whittaker, Hanley, Martin; Morrison, Fletcher, Mulgrew, Bannan, Anya; Naismith
Germany: Großkreutz, Ginter, Podolski, Sam, Zieler, Rudiger, Weidenfeller, Gomez
SCOTLAND:A.McGregor, Greer, Maloney, S.Fletcher, Bryson, McDonald, Burke, Reynolds, McArthur, Gordon, Forsyth, C.Martin