From my experience, countries usually require a minimum of 3-6 months validity on passports, so you should be good to go. Plus, you won't even leave the airports during your layovers in Canada and Germany, so I don't think they will ask for your daughter's passport. If you're really concerned about it, you can try to expedite the renewal process, but I understand if it's too much of a hassle. Just make sure you have all the necessary documents with you, including a copy of your daughter's birth certificate, just in case. By the way, I work in a bar that requires us to check every customer's ID before serving them any alcohol.