% ┌                                                ┐
% │          Configure your address here           │
% └                                                ┘
\newcommand{\name}{Janis Hutz}
\newcommand{\street}{Street}
\newcommand{\city}{City}
\newcommand{\countrycode}{CH}


% ────────────────────────────────────────────────────────────────────
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\setkomavar{date}{\city, \today}

\newkomavar{fromplace} % a few koma vars
\setkomavar{fromname}{\name}
\setkomavar{fromaddress}{\street}
\setkomavar{fromplace}{\countrycode -\city}

\KOMAoptions{foldmarks=off,fromrule=false}
\setkomavar{backaddress}{}

\makeatletter % indention of the address fields
\setplength{toaddrhpos}{27mm}
\setplength{toaddrwidth}{92mm}
\setplength{sigindent}{0mm}
\makeatother

\renewcommand*{\raggedsignature}{\raggedright}

% Define new letter header
\setkomavar{firsthead}{
    \null\hfill
    \parbox[t][\headheight][t]{4cm}{%
        \vspace*{2cm}

        \usekomavar{fromname} \newline
        \usekomavar{fromaddress}  \newline
        \usekomavar{fromplace}
    }
}%
