﻿@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');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #454C52;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
    border: 2px solid #cbcbcb;
    overflow: hidden;
    background: #fff;
}

header {
    display: flex;
    justify-content: end;
}

article {
    padding: 2.5rem 1rem 0;
}

article p:nth-of-type(1) {
    margin-bottom: 20px;
}

article p:last-of-type a {
    position: relative;
    z-index: 10;
}

.banner-bmo-vechta {
    margin: -4rem -1rem 10px;
}

.tel {
    position: relative;
    z-index: 88;
}

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;
}

.flexbox {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    position: relative;
    top: -2rem;
}

:is(strong, h1) {
    font-weight: 700;
}

h1 {
    margin: 0 -1rem 0 3rem;
    font-size: 2.25rem;
    line-height: 1.25;
    color: #fff;
    padding: 2.75rem 1rem;
    background: #FFC20F;
    position: relative;
}

h1 span {
    font-weight: 400;
}

p span {
    white-space: nowrap;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #454C52;
    text-decoration: none;
    white-space: nowrap;
}

.center {
    margin: 20px 0 -3px;
    text-align: center;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

@media all and (max-width:798px) {
    #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;
    }

    .center {
        margin: 16px 0;
        text-align: center;
    }
}

@media all and (max-width:640px) {
    .flexbox {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media all and (max-width:540px) {
    header {
        padding-left: 1rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
}

@media all and (max-width:440px) {
    h1 {
        font-size: 1.875rem;
    }



    .flexbox {
        flex-direction: column;
        align-items: center;
    }

    .flexbox p {
        text-align: center;
    }
}