@font-face {
    font-family: 'Open Sans Condensed';
    src: url('../fonts/OpenSans-CondensedBold.eot');
    src: url('../fonts/OpenSans-CondensedBold.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-CondensedBold.woff2') format('woff2'), url('../fonts/OpenSans-CondensedBold.woff') format('woff'), url('../fonts/OpenSans-CondensedBold.ttf') format('truetype'), url('../fonts/OpenSans-CondensedBold.svg#OpenSans-CondensedBold') format('svg');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans Condensed';
    src: url('../fonts/OpenSans-CondensedLight.eot');
    src: url('../fonts/OpenSans-CondensedLight.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-CondensedLight.woff2') format('woff2'), url('../fonts/OpenSans-CondensedLight.woff') format('woff'), url('../fonts/OpenSans-CondensedLight.ttf') format('truetype'), url('../fonts/OpenSans-CondensedLight.svg#OpenSans-CondensedLight') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/ubuntu-v20-latin-regular.eot');
    src: local(''), url('../fonts/ubuntu-v20-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/ubuntu-v20-latin-regular.woff2') format('woff2'), url('../fonts/ubuntu-v20-latin-regular.woff') format('woff'), url('../fonts/ubuntu-v20-latin-regular.ttf') format('truetype'), url('../fonts/ubuntu-v20-latin-regular.svg#Ubuntu') format('svg');
}

@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/ubuntu-v20-latin-700.eot');
    src: local(''), url('../fonts/ubuntu-v20-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/ubuntu-v20-latin-700.woff2') format('woff2'), url('../fonts/ubuntu-v20-latin-700.woff') format('woff'), url('../fonts/ubuntu-v20-latin-700.ttf') format('truetype'), url('../fonts/ubuntu-v20-latin-700.svg#Ubuntu') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #000;
    font-weight: 300;
}

#wrapper {
    max-width: 840px;
    margin: 16px auto;
    border: 1px solid #777;
    background-color: #fff;
    overflow: hidden;
}

article {
    padding: 10px 72px;
}

.flex {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
    flex-wrap: wrap;
}

.flex div {
    width: 163px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex div p {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #3b738e;
}

footer {
    padding: 32px 103px 0;
    background: url('../images/background.jpg') no-repeat;
    height: 164px;
    position: relative;
}

footer :is(p, a) {
    color: #fff !important;
    font-size: 20px;
    line-height: 1.2;
}

footer p {
    margin: 0 0 16px;
}

.logo {
    position: absolute;
    top: 36px;
    right: 40px;
    z-index: 6;
}

p {
    margin: 0 0 8px;
}

:is(strong, h1, h2, h3) {
    font-weight: 700;
}

h1 {
    margin: 0 -42px 16px;
    font-size: 34px;
    line-height: 51px;
    color: #3b738e;
    text-align: center;
    font-family: 'Ubuntu', Arial, sans-serif;
    background: url(../images/background-title.jpg) no-repeat center top;
    padding: 3px 0 10px;
}

h1 small {
    font-size: 25px;
    line-height: 1.4;
    font-weight: 400;
    display: block;
    color: #000;
    font-family: 'Ubuntu', Arial, sans-serif;
    margin: 3px 0 0;
}

h2 {
    font-size: 17px;
    color: #3b738e;
}

h3 {
    margin: 0 0 3px;
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
    color: #5cb5bf;
}

h3+p {
    text-align: center;
    font-size: 20px;
}

h3+p strong {
    color: #3b738e;
    display: block;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #3b738e;
    text-decoration: none;
    white-space: nowrap;
}

a.link {
    text-decoration: underline !important;
}

ul {
    margin-bottom: 25px;
    list-style: none;
}

ul li {
    padding-left: 2rem;
    background: url('../images/lebenshilfe-small.jpg') no-repeat 0 6px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width:838px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    article {
        padding: 16px;
    }

    footer {
        padding: 54px 16px 1px;
    }

    .logo {
        right: 16px;
    }

    span {
        white-space: nowrap;
    }

    br:not(.flex br) {
        display: none;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }
}

@media all and (max-width:760px) {
    .flex {
        gap: 16px;
        justify-content: space-around;
        padding: 10px 0 16px;
    }

    .flex div {
        width: 45%;
    }

    .flex br {
        display: none;
    }

    footer {
        height: auto;
        padding: 16px 16px 3px;
        background: #306b89;
    }

    footer p {
        text-align: center;
    }

    .logo {
        position: static;
        display: flex;
        justify-content: center;
        margin: 0 0 16px;
    }

    h1 {
        margin: 0 0 16px;
        background: #e3ecf1;
        padding: 10px 16px;
        font-size: 28px;
        line-height: 1.25;
        border-radius: 12px;
    }

    h1 small {
        font-size: 18px;
        line-height: 24px;
    }
}

@media all and (max-width:424px) {
    .link {
        white-space: normal !important;
    }

    .flex div {
        width: 100%;
    }
}