<!DOCTYPE html>
<html lang="en">
<head>
    <base href="{{ url('/') }}">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>STERN TOURS</title>
    <style>
        html {
            width: 100%;
            height: 100%;
        }
        body {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0 auto;
            padding: 0;
            color: #000;
            background: #fff;
            font-size: 9.5pt;
            line-height: 1.15em;
            font-family: Helvetica;
        }
        table {
            border: none;
        }

        strong {
            font-weight: bold;
        }

        @page {
            margin: 20mm 15mm 22mm 15mm;
            color:#000;
        }


        header {
            position: fixed;
            top:-20mm;
            right: 0mm;
            width: 100mm;
            height: 20mm;
            text-align: right;
        }
        header img {
            padding-top: 6mm;
            height: 10mm;
        }

        footer {
            position: fixed;
            bottom: -16mm;
            left: 0;
            right: 0;
            height: 10mm;
            padding-top: 2mm;
            border-top: 0.25pt solid #000;
            font-size: 8.5pt;

            /** Extra personal styles **/
        }

        footer table {
            width: 100%;
        }

        footer table td {
            vertical-align: top;
            width: 33.33%;
        }
       /* footer .page {
            position: absolute;
            top:0mm;
            font-size: 8pt;
            text-align: right;
            right: 0;
        }
        footer .page:after { content: counter(page); }
        */


        main {
            width: 100%;
            height: 100%;

        }

        .page_break { page-break-before: always; }

        #pdf-page {
            position: relative;
        }

        a {
            color: #648859 !important;
        }
    </style>
</head>
<body>
<script type="text/php">
    if (isset($pdf)) {
        $font = null;
        $size = 8;
        $color = array(0,0,0);
        $word_space = 0.0;  //  default
        $char_space = 0.0;  //  default
        $angle = 0.0;   //  default
        $text = "{PAGE_NUM} / {PAGE_COUNT}";
        $y = $pdf->get_height() - 64;
        $x = $pdf->get_width() - 66;
        $pdf->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle);
    }
</script>
<header>
    <img src="{{\App\Services\Util::getURLasContent(asset('/images/stern-tours-logo.png'), true)}}" alt="STERNTOURS">
</header>
<footer>
    <table>
        <tr>
            <td>
                <strong>STERN TOURS GmbH</strong><br>
                Emser Str. 3<br>
                10719 Berlin<br>
            </td>
            <td style="text-align: center">
                <strong>Beratung und Buchung</strong>
            </td>
            <td style="text-align: right">
                <strong>Web:</strong> <a href="https://www.sterntours.de/ferienwohnungen">www.sterntours.de/ferienwohnungen</a><br>
                <strong>E-Mail:</strong> <a href="mailto:stern@sterntours.de">stern@sterntours.de</a><br>
                <strong>Tel.:</strong> <a href="tel:03070094100">030 - 700 94 100</a>
            </td>
        </tr>
    </table>
</footer>
<main>
    <div id="pdf-page">
        @yield('content')
    </div>
</main>
</body>
</html>