Upvote:2
Timatic is the database which the airline (Lufthansa?) uses to decide whether to let you board the flight, and it says the following:
National India (IN) /Transit Germany (DE)
Destination USA (US)
[Visa Information - Transit] Germany (DE)
[Information For Normal Passports]
TWOV (Transit Without Visa):
Visa required, except for Nationals of India transiting
through Frankfurt (FRA) or Munich (MUC), arriving from a
non-Schengen Member State with a confirmed onward ticket for a
flight within 24 hours to a third country which is not a
Schengen Member State. They must:
- have a visa issued by Bulgaria, Canada, Croatia, Cyprus,
Ireland (Rep.), Japan, Romania, USA or United Kingdom, and
- stay in the international transit area of the airport, and
- have documents required for their next destination.
So you're fine if you have a valid visa issued by the United States, which your F-1 visa is.
It would surprise me if the airline agent knew anything about your U.S. immigration status, but let's still distinguish two cases: