* {
    font-family: Arial, Helvetica, sans-serif;
}

#header {
    position: running(header);
}

#footer {
    position: running(footer);
    border-top: 1px solid gray;
}

@page {
    margin-top: 3.9433cm; /* DIN NORM */
    margin-left: 2.5cm; /* DIN NORM */
    margin-right: 1cm; /* DIN NORM */
    margin-bottom: 3.79cm; /* DIN ist 1.79cm, wir schlagen noch 2cm für unseren Footer drauf*/
}

.adress-zeile {
    width: 60mm; /* DIN NORM */
    height: 40mm; /* DIN NORM */
    margin-top: 10mm;
}

.impressum {
    width: 100%;
}

    .impressum td {
        padding: 1em;
        vertical-align: baseline;
        font-size: .6em;
    }

.nowrap {
    white-space: nowrap;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

.karley-header {
    height: 20mm;
    display: table;
}

    .karley-header > * {
        height: 15mm;
        display: table-cell;
        vertical-align: middle;
        padding-left: 3mm;
    }

.h-logo {
    padding-left: 0 !important;
    margin-top: 7.5mm;
}

    .h-logo img {
        width: 50px;
        height: 50px;
    }

.h-chinese img {
    padding-left: 0 !important;
    height: 15mm;
    width: 7.5mm;
}

.h-fields {
    width: 68mm;
    font-size: 3mm;
    display: table-cell;
    vertical-align: middle;
    /*background-color: aqua;*/
}


.pages {
    display: block;
    font-size: .7em;
    text-align: right;
}

    .page-number:before {
        content: counter(page);
    }

.page-count:before {
    content: counter(pages);
}      
@page {
    @top-center {
        content: element(header);
    }

    @bottom-center {
        content: element(footer);
    }
}

.karley-header {
    min-height: 20mm;
    height: auto !important;
}

.rücksende-zeile {
    font-size: .75em;
    text-decoration: underline;
    margin-top: 1.5mm;
}