HAMBURG, Germany — It was late Tuesday afternoon at the Pestalozzi Foundation kindergarten, and a few dozen children and their parents were hanging around past the normal pickup hour.

There was no rush to get home, really. They were enjoying the view from the kindergarten’s rear veranda: the inside of Millerntor-Stadion, the 29,546-seat stadium that is home to F.C. St. Pauli, as it hurriedly filled up for a midweek soccer game.

Staying after class has never been this fun.

Since 2010, the Pestalozzi Foundation has operated from inside the stadium — literally inside, not next door or across the street — offering families perks that are most likely unique in the world of early childhood education.

The kindergarten borrows the stadium’s field, tunnels and roof for group activities. Players from the team come by to read to the children. Teachers use the arena’s main stand as a sort of giant break room. And on match days, parents clamor to reserve a spot to watch from the prime vantage point of the kindergarten’s deck, within shouting distance of the rowdy southern stands.