@font-face {
    font-display: swap;
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/kanit-v15-latin-regular.eot');
    src: url('../fonts/kanit-v15-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/kanit-v15-latin-regular.woff2') format('woff2'), url('../fonts/kanit-v15-latin-regular.woff') format('woff'), url('../fonts/kanit-v15-latin-regular.ttf') format('truetype'), url('../fonts/kanit-v15-latin-regular.svg#Kanit') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/kanit-v15-latin-700.eot');
    src: url('../fonts/kanit-v15-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/kanit-v15-latin-700.woff2') format('woff2'), url('../fonts/kanit-v15-latin-700.woff') format('woff'), url('../fonts/kanit-v15-latin-700.ttf') format('truetype'), url('../fonts/kanit-v15-latin-700.svg#Kanit') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/kanit-v15-latin-800.eot');
    src: url('../fonts/kanit-v15-latin-800.eot?#iefix') format('embedded-opentype'), url('../fonts/kanit-v15-latin-800.woff2') format('woff2'), url('../fonts/kanit-v15-latin-800.woff') format('woff'), url('../fonts/kanit-v15-latin-800.ttf') format('truetype'), url('../fonts/kanit-v15-latin-800.svg#Kanit') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-size: 16px;
    line-height: 1.3;
    font-family: 'Kanit', Arial, sans-serif;
    color: #fff;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 662px;
    margin: 1rem auto;
    border: 2px solid #3a383a;
    overflow: hidden;
    background: #fff url('../images/background.jpg') no-repeat;
    height: 448px;
    padding-top: 56px;
}

.flex {
    display: flex;
    align-items: center;
    column-gap: 20px;
    justify-content: end;
    margin-top: -78px;
}

.qrcode {
    display: flex;
    padding: 37px 8px 8px;
    flex-direction: column;
    align-items: center;
}

h1 span {
    font-size: 24px;
    /* margin: 0 0 0 9px; */
}

h1 small {
    display: block;
    font-size: 23px;
}

h1 {
    margin: 4px 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
}

h2 {
    font-size: 20px;
    font-weight: 700;
}

h3 span {
    font-weight: 400;
}

h3 {
    font-size: 13px;
    margin: 6px 0 0;
    font-weight: 700;
    color: #DA403C;
    text-align: center;
    line-height: 1;
}

h4 {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

h4 small {
    font-size: 24px;
    line-height: 1.2;
}

h4 span {
    display: block;
    padding: 0 0 0 10px;
}

p:not(:last-of-type) {
    margin-bottom: 16px;
}

header {
    padding: 1px 16px;
    display: flex;
    align-items: flex-end;
    column-gap: 33px;
}

article {
    padding: 0 16px 10px 256px;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #DA403C;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

.pfeil {
    margin-top: 125px;
}

@media (max-width: 660px) {
    #wrapper {
        margin: 0;
        border: none;
        background: #c4161c;
        height: auto;
        padding-top: 16px;
    }

    header {
        padding: 16px;
        background: #FFF;
    }

    article {
        padding: 8% 16px 17% 208px;
    }

    footer {
        opacity: 1;
    }

    .flex {
        margin-top: -120px;
    }

    h1 {
        margin: 16px 0;
    }

    h1 span {
        display: inline;
        margin: 0 !important;
    }

    h2 {
        font-size: 18px;
    }

    br:not(h3 br) {
        display: none;
    }

    :is(p, h1) {
        hyphens: auto;
        text-wrap: pretty;
    }

    .qrcode {
        background: #fff;
        box-shadow: 1px 1px 8px 0 #757575;
    }
}

@media (max-width: 630px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex {
        margin-top: -82px;
    }

    article {
        padding: 16px;
    }

    footer {
        position: static;
        display: flex;
        justify-content: center;
    }

    .flex {
        margin-top: -97px;
    }
}

@media (max-width: 450px) {
    .flex {
        margin: 10px 0;
        justify-content: center;
    }

    header {
        align-items: center;
    }

    :is(h1, h4, p) {
        text-align: center;
    }

    h1 span {
        display: block;
    }

    :is(h1 small, h4, h4 span) {
        margin: 0
    }
}