Didn't want to get into this, but yeah, in addition to 5 cents' worth of coffee, 30 cents' worth of barista time (fixed), and probably around 50 cents' worth of lease (fixed) and a bit more for equipment (fixed).
We can wrap this up tidily by observing that the "coffee house experience" probably does cost some reasonable markdown from $6/cup. The coffee itself, though, is a good we have been trained to pay an exorbitant markup for.