\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, margin=2cm]{geometry}

\usepackage{siunitx}
\sisetup{
     group-separator = {.},
     input-decimal-markers={.},
     output-decimal-marker = {.},
     group-minimum-digits=9}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{subfigure}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{multicol}
\usepackage{amsmath, amssymb}
\usepackage{hyperref}
\usepackage{pdfpages}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{fit} % <-- needed for dashed box (fit)
\usepackage[european, rotatelabels]{circuitikz}

\hyphenpenalty=10000	%to stop cutting words in a paragraph

\pagestyle{fancy}
\fancyhf{}

\rhead{\includegraphics*[scale=0.013]{./Pictures/FaSTTUBe_Logo_ohneAuto.png}}
\rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}
\lhead{Car 313, 23.04, Rev. 1}
\chead{\large TSAL Schematic}

\begin{document}

\section{AMS und IMD Error Latching} 
\begin{center}
	\begin{circuitikz}[]
		% LEGEND
		\draw[green!50!black] (0,2) -- ++(1,0);
		\draw (1,2) node[right]{$0.13mm^2$ unshielded - RS PRO 8724476, 2A};

		% IMD
		\node[draw, minimum width=1.5cm, minimum height=1cm, label=above:IR155-3204] (IMD) at (0,0) {\href{https://www.bender.de/fileadmin/content/Products/d/e/IR155-32xx-V004_D00115_D_XXEN.pdf}{IMD}};
		
		% AMS Master
		\node[draw, minimum width=1.5cm, minimum height=1cm] (AMS-IO) at (8,0) {\hyperlink{ams-io}{AMS Master - Input/Output}};
		\node[draw, minimum width=1.5cm, minimum height=1cm] (AMS-SDC) at (8,-2) {\hyperlink{ams-sdc}{AMS Master - SDC Latching Circuit}};
		\node[draw, minimum width=1.5cm, minimum height=1cm] (AMS-MCU) at (8,-4) {\hyperlink{ams-mcu}{AMS Master - Microcontroller}};
		\node[draw, dashed, fit=(AMS-IO) (AMS-SDC) (AMS-MCU), inner sep=0.5cm, label=above:AMS Master] {};

		% Arrows
		\draw[->, thick, color=green!50!black] (IMD.east) -- (AMS-IO.west) node[midway, above] {IMD\_OK};
		\draw[->] (AMS-IO.south) -- (AMS-SDC.north) node[midway, right] {IMD\_OK};
		\draw[->] (AMS-MCU.north) -- (AMS-SDC.south) node[midway, right] {$\overline{\text{AMS\_Error}}$};

		% Now overlay an invisible hyperlink box over AMS-IO
		%\node[opacity=0, fill opacity=0, text opacity=0, fit=(AMS-IO), inner sep=0pt](linkcover) {\hyperlink{ams-io}{\phantom{AMS Master - Input/Output}}};
	\end{circuitikz}
\end{center}

\section{SCS signal implementation}

\includepdf[pages={1}, landscape=true]{./Documents/TS-overview.pdf}
\hypertarget{ams-io}{}
\includepdf[pages={9}, landscape=true]{./Documents/Master_FT25.pdf}
\hypertarget{ams-sdc}{}
\includepdf[pages={8}, landscape=true]{./Documents/Master_FT25.pdf}
\hypertarget{ams-mcu}{}
\includepdf[pages={3}, landscape=true]{./Documents/Master_FT25.pdf}
\includepdf[pages={8,5,15,2,11,12,14}, landscape=true]{./Documents/Master_FT25.pdf}
\includepdf[landscape=true]{./Documents/dashboard-FT25.pdf}
\includepdf[pages={2}, landscape=true]{./Documents/TS-overview.pdf}
\includepdf[landscape=true]{./Documents/DC.pdf}

\end{document}
