﻿@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-regular.eot');
    src: local(''), url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-regular.woff') format('woff'), url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'), url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v34-latin-700.eot');
    src: local(''), url('../fonts/open-sans-v34-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-700.woff') format('woff'), url('../fonts/open-sans-v34-latin-700.ttf') format('truetype'), url('../fonts/open-sans-v34-latin-700.svg#OpenSans') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 18px;
    line-height: 1.5rem;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #262626;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 790px;
    margin: 1rem auto;
    border: 2px solid #cbcbcb;
    overflow: hidden;
    background: #fff;
}

header {
    display: flex;
    justify-content: end;
}

article {
    padding: 1.5rem 1rem 0;
}

article p:nth-of-type(1) {
    text-align: justify;
    hyphens: auto;
}

article p:last-of-type a {
    position: relative;
    z-index: 10;
}

.banner-bmo-vechta {
    margin: -2rem -1rem 10px;
}

footer {
    padding: 16px 32px 0 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-direction: row-reverse;
}

footer p {
    text-align: right;
    padding-top: 12px;
}

.flexbox {
    display: flex;
    align-items: flex-end;
    gap: 13px;
    position: relative;
    top: -3rem;
}

:is(strong, h1) {
    font-weight: 700;
}

h1 {
    margin: 0 -1rem 0 3rem;
    font-size: 40px;
    line-height: 1.1;
    color: #fff;
    padding: 27px 1rem 43px;
    background: #FFC20F;
    position: relative;
}

h1 span {
    font-weight: 400;
}

p span {
    white-space: nowrap;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #262626;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

.center {
    text-align: center;
    padding: 28px 28px 0 0;
}

@media all and (max-width:790px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    article {
        padding: 0.75rem 1rem 0;
    }

    article p:nth-of-type(1) {
        text-align: left;
    }

    .banner-bmo-vechta {
        margin: 0 -1rem 1rem;
    }

    .banner-bmo-vechta img {
        width: 100%;
    }

    h1 {
        margin: 2rem -1rem 0;
        padding: 1rem;
        text-align: center;
    }

    .flexbox {
        position: static;
        gap: 30px;
    }

    footer {
        padding: 1.25rem 1rem;
    }

    footer>a img {
        max-width: 180px;
    }

    p {
        hyphens: auto;
        text-wrap: pretty;
    }
}

@media all and (max-width:678px) {
    .flexbox {
        flex-direction: column-reverse;
        align-items: center;
        gap: 5px;
    }

    .flexbox p {
        text-align: center;
    }
}

@media all and (max-width:540px) {
    header {
        padding-left: 1rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    footer p {
        text-align: center;
    }

    h1 {
        font-size: 30px
    }
}

@media all and (max-width:440px) {
    body {
        font-size: 16px;
        line-height: 21px;
    }

    h1 {
        font-size: 1.875rem;
    }
}