%%
%% This is file `nxtbrief.lco',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% nxtlatex.dtx  (with options: `nxtbrief')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2025 Volker Reichenberger.
%% 
%% This file is part of the nxtlatex package.
%% 
%% This file may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c of this
%% license or (at your option) any later version.
%% The latest version of this license is in
%%    https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008 or later.
%% 
\ProvidesFile{nxtbrief.lco}[2026/04/21 v1.2 NXT letter class option]

\KOMAoptions{
  fontsize=10pt,
  foldmarks=MPvb,
  backaddress=plain,
  pagenumber=footright,
  refline=nodate
}

\RequirePackage{fontspec}
\setmainfont{Segoe UI}[
  BoldFont={Segoe UI Semibold}]
\setsansfont{Segoe UI}[
  BoldFont={Segoe UI Semibold}]
\setmonofont{Source Code Pro}[
  BoldFont={Source Code Pro Semibold}]

\RequirePackage{nxtlatexcolors}
\RequirePackage{nxtlatexlogos}
\RequirePackage[stretch=10]{microtype}
\RequirePackage{lastpage}
\RequirePackage{fontawesome}
\RequirePackage[colorlinks=true,linkcolor=]{hyperref}
\RequirePackage[parfill]{parskip}
\RequirePackage{eso-pic}

\@addtoplength{firstheadvpos}{4mm}
\@setplength{firstheadwidth}{\dimexpr\paperwidth-\useplength{toaddrhpos}-8mm\relax}
\setkomavar{firsthead}{%
  \hfill\nxthsrtlogo[width=7.2cm]%
}

\setkomavar{backaddress}{%
  Karsten Bier, NXT, Hochschule Reutlingen, 72762 Reutlingen}

\setlength{\oddsidemargin}{\useplength{toaddrhpos}}%
\addtolength{\oddsidemargin}{-1in}%
\setlength{\textwidth}{12.7cm}
\@setplength{locvpos}{\useplength{firstheadvpos}}
\@setplength{locwidth}{46mm}
\@setplength{lochpos}{10mm}
\@setplength{locheight}{27.2cm}
\@setplength{backaddrheight}{1.4cm}

\addtokomafont{pagenumber}{\footnotesize\sffamily}

\setkomavar{location}{%
  \footnotesize
  \begin{tabular}[t]{l@{}}
    {}\\[4mm]
  \end{tabular}%
  \\[85mm]
  {\footnotesize\sffamily
  \begin{tabular}[t]{l@{}}
    \usekomavar{date}\\[22mm]
    \textbf{\usekomavar{fromname}}\\[5mm]
    NXT\\
    Nachhaltigkeit und Technologie\\
    Hochschule Reutlingen\\
    Alteburgstraße 150\\[0mm]
    72762 Reutlingen\\[5mm]
    \faPhoneSquare\\[0mm]
    \usekomavar{fromphone}\\[5mm]
    \Large\faMobile\\[0mm]
    \usekomavar{frommobilephone}\\[5mm]
    \faAt\\[0mm]
    \usekomavar{fromemail}\\[5mm]
    \faHome\\[0mm]
    nxt.reutlingen-university.de
  \end{tabular}%
  }
  \vfill
  {\usekomafont{pagenumber}{Seite~\thepage/\pageref{LastPage}}}\\[20mm]
}

\renewcommand{\pagemark}{%
  {\usekomafont{pagenumber}{Seite~\thepage/\pageref{LastPage}}}}
\setkomavar{firstfoot}{%
  \AddToShipoutPictureFG*{%
    \AtPageLowerLeft{%
      \raisebox{2mm}{\hsrtskyline[width=\paperwidth]}%
    }%
  }%
}

\@setplength{sigindent}{0pt}
\renewcommand{\raggedsignature}{\raggedright}
\endinput
%%
%% End of file `nxtbrief.lco'.
