\documentclass[a4paper]{article}
\usepackage{a4wide}
\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{float}
\usepackage{textcomp}
\usepackage{alltt}
\usepackage[latin1]{inputenc}
\usepackage{hyperref}
\usepackage{bookman}
\usepackage{helvet}
\usepackage{doxygen}
\makeindex
\setcounter{tocdepth}{3}
\renewcommand{\footrulewidth}{0.4pt}

\makeatletter

\renewcommand\section{\newpage\@startsection {section}{1}{\z@}%
                                             {-3.5ex \@plus -1ex \@minus -.2ex}%
                                             {2.3ex \@plus.2ex}%
                                             {\normalfont\Large\bfseries}}

\renewcommand*\l@section{\@dottedtocline{1}{0em}{2.0em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{2.5em}{3.5em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{5.0em}{4.0em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{7.5em}{3.5em}}
\renewcommand*\l@subparagraph{\@dottedtocline{5}{10.0em}{3.5em}}
\makeatother

\setlength{\headheight}{1.75cm}
\setlength{\topmargin}{0.0cm}
\setcounter{tocdepth}{3}

\lhead{\includegraphics*[height=1.5cm]{images/hilscher_logo}}
\chead{\fancyplain{}{$projectname}}
\rhead{\fancyplain{}{Page \bfseries\thepage}}
        
\lfoot{Hilscher Gesellschaft für Systemautomation mbH}
\cfoot{}
\rfoot{Internal project documentation}

\begin{document}

\begin{titlepage}

\begin{flushright}
\includegraphics[width=8cm]{images/Hilscher_logo} \\
\vspace*{7.5cm}
\large Project source code documentation  \\
$projectname  \\
\Large FOR INTERNAL USE ONLY \\
\normalsize
\vspace*{5.5cm}
Hilscher Gesellschaft für Systemautomation mbH \\
65795 Hattersheim \\
Rheinstra{\ss}e 15 \\
Tel. 06190/9907-0 \\
Fax. 06190/9907-50 \\
\end{flushright}

\end{titlepage}

\pagenumbering{roman}
\tableofcontents

\newpage
\setcounter{page}{1}
\pagenumbering{arabic}
