Nanoscale Superconductivity: Novel Functionalities through Optimized Confinement of Condensate and Fields