The Sun above and below the local horizon