Sign changes as a universal concept in first-passage-time calculations