\ProvidesFile{sfbrief.lco}
\LoadLetterOption{SNleft}
\usepackage{babel}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage[babel,german=swiss]{csquotes}
\setkomavar{fromname}{Starship Factory}
\setkomavar{fromlogo}{\includegraphics[width=.2\textwidth]{logo1farbig}}
\setkomavar{fromaddress}{Sankt-Alban-Rheinweg 62\\4052 Basel}
\setkomavar{location}{\raggedleft vorstand@starship-factory.ch\\www.starship-factory.ch}
\setkomavar{place}{Basel}
\setkomavar{frombank}{PostFinance \\
Konto: 60-738720-1\\
IBAN: CH15 0900 0000 6073 8720 1
}
\setkomavar{firstfoot}{%
  \parbox[t]{\textwidth}{\footnotesize
    \begin{tabular}[t]{l@{}}%
      \multicolumn{1}{@{}l@{}}{Vorstand:}\\
          Juliane Clausen\\
          Yvo Waldmeier\\
          Cedric Spindler
    \end{tabular}%
    \hfill
    \ifkomavarempty{frombank}{}{%
        \hfill
        \begin{tabular}[t]{l@{}}%
          \multicolumn{1}{@{}l@{}}{%
              \usekomavar*{frombank}:}\\
          \usekomavar{frombank}
        \end{tabular}%
    }%
  }%
}
\@setplength{locwidth}{.4\textwidth}
\@setplength{specialmailrightindent}{7.5em}
\@addtoplength{firstheadvpos}{4mm}
\@addtoplength{firstfootvpos}{-12mm}
    \setkomavar{firsthead}{%
      \parbox[b][5em][t]{\textwidth}{\raggedright
        {\usekomafont{fromname}\strut\ignorespaces
          \usekomavar{fromname}%
          {%
            \ifnum\@rulefrom=1\\[-.5\baselineskip]%
              \usekomafont{fromrule}{%
                \setlength{\@tempdima}{\useplength{fromrulewidth}}%
                \ifdim\@tempdima=\z@
                  \setlength{\@tempdima}{\textwidth}%
                  \if@logo
                    \settowidth{\@tempdimb}{\usekomavar{fromlogo}}%
                    \addtolength{\@tempdima}{-\@tempdimb}%
                  \fi
                \fi
                \expandafter\rule\expandafter{\the\@tempdima}{%
                  \useplength{fromrulethickness}}}%
            \fi
          }%
          \\
        }%
        {\usekomafont{fromaddress}\strut\ignorespaces
          \usekomavar{fromaddress}%
          \if@phone\\\usekomavar*{fromphone}\usekomavar{fromphone}\fi%
          \if@fax\\\usekomavar*{fromfax}\usekomavar{fromfax}\fi%
          \if@email\\\usekomavar*{fromemail}\usekomavar{fromemail}\fi%
          \if@www\\\usekomavar*{fromurl}\usekomavar{fromurl}\fi%
          \ifnum\@rulefrom=2\\[-.5\baselineskip]%
            \usekomafont{fromrule}{%
              \setlength{\@tempdima}{\useplength{fromrulewidth}}%
              \ifdim\@tempdima=\z@
                \setlength{\@tempdima}{\textwidth}%
              \fi
              \expandafter\rule\expandafter{\the\@tempdima}{%
                \useplength{fromrulethickness}}}%
          \fi
          \\
        }%
      }%
      \if@logo
        \llap{\usekomavar{fromlogo}}%
      \fi
    }%
\endinput