<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ document.title }}</title>
    <style>
        @page {
            size: A4;
            margin: 2cm;
            /* Adds content to the bottom-right of each page */
            @bottom-right {
                content: "Page " counter(page) " of " counter(pages);
                font-size: 10pt;
            }
        }
        body {
            font-family: "Helvetica", sans-serif;
            font-size: 12pt;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: "Times New Roman", serif;
            color: #005595; /* Siemens-like blue */
        }
        h1 {
            font-size: 28pt;
            text-align: center;
            margin-bottom: 2cm;
        }
        h2 {
            font-size: 18pt;
            border-bottom: 2px solid #009999; /* Siemens-like teal */
            padding-bottom: 5px;
            margin-top: 1.5cm;
        }
        p {
            text-align: justify;
        }
    </style>
</head>
<body>
    <h1>{{ document.title }}</h1>

    <h2>Introduction</h2>
    <p>{{ document.introduction|safe }}</p>

    <h2>Main Body</h2>
    <p>{{ document.main_body|safe }}</p>

    <h2>Conclusion</h2>
    <p>{{ document.conclusion|safe }}</p>
</body>
</html>