I want it to look like this in the end:
At the moment the rectangles in the back still got the text and idk how to make them the right size without having the text in them.
\documentclass[
%draft, % Mit % kommentieren, um Bilder sichtbar zu machen und Links zu aktivieren
pdftex,
a4paper,
oneside,
parskip,
numbers=noenddot,
listof=totoc,
bibliography=totoc,
hyperfootnotes=false
]{scrreprt}
\setuptoc{toc}{totoc}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\begin{document}
\begin{figure}[h]
\centering
\begin{tikzpicture}
\tikzset{rectangle node/.style={draw, minimum size=1cm}}
\node[rectangle node] (scl) at (0,0) {SCL Contract};
\node[rectangle node, right of=scl, node distance = 5cm] (ptg){PlainTextGen};
\node[rectangle node,right of=ptg, node distance = 5cm, align=right] (sol) {Solidity Code \\.sol};
\node[rectangle node,below of=sol, node distance = 2cm, align=right, on top of=solLib1] (solLib) {Solidity Libraries \\.sol};
\node[rectangle,draw, align=right,on top of=solLib2] (solLib1) at (10.1,-1.9) {Solidity Libraries \\.sol};
\node[rectangle,draw, align=right] (solLib2) at (10.2,-1.8) {Solidity Libraries \\.sol};
\draw [->] (scl) -- (ptg);
\draw [->] (ptg) -- (sol);
\draw [->] (sol) -- (solLib);
\end{tikzpicture}
\caption{Code Generation Prozess}
\label{fig:CodeGenProzess}
\end{figure}
\end{document}
\documentclass
, includes all relevant\usepackage
commands, ends with\end{document}
and compiles without errors, even if it does not produce your desired output.