From Gast (“guest”) + Hof (“yard, court”).
Gasthof m (strong, genitive Gasthofes or Gasthofs, plural Gasthöfe)
1Now rare, see notes.