﻿:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

@font-face {
    font-display: swap;
    font-family: 'Gloria Hallelujah';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/gloria-hallelujah-v21-latin-regular.eot');
    src: url('../fonts/gloria-hallelujah-v21-latin-regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/gloria-hallelujah-v21-latin-regular.woff2') format('woff2'),
        url('../fonts/gloria-hallelujah-v21-latin-regular.woff') format('woff'),
        url('../fonts/gloria-hallelujah-v21-latin-regular.ttf') format('truetype'),
        url('../fonts/gloria-hallelujah-v21-latin-regular.svg#GloriaHallelujah') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

body {
    color: #231f20;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.125rem;
    font-weight: 400;
}

#wrapper {
    margin: 1rem auto;
    padding: 0 2rem 22.875rem;
    max-width: 912px;
    background: #BAE4FD url(../images/background-diakonieffb.jpg) no-repeat left bottom;
    overflow: hidden;
    position: relative;
    border: solid thin #cbcbcb;
    height: 1481px;
}

header {
    margin: 0 -2rem;
    display: flex;
    justify-content: space-between;
}

.padding {
    padding-left: 15px;
}

.social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.social p {
    margin-bottom: 0 !important;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.margin-bottom-right{
    margin-bottom: 30px;
}

.content {
    width: 49%;
}

.content:nth-of-type(1) p {
    padding-left: 16px;
}

p:not(:last-child) {
    margin-bottom: 0.5rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #009FE3;
    text-decoration: underline;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: top;
}

.background:nth-of-type(1) {
    width: 65%;
    padding: 2.3125rem 2.375rem 1.8125rem;
    background: #5C2874;
}

.background:nth-of-type(2) {
    width: 35%;
    background: #49317f;
    padding: 2.0625rem 3.25rem 1.6875rem;
}

.mb0 li {
    margin-bottom: 3px;
}

.paragraph {
    padding-top: 10px;
}

h1 {
    font-size: 19px;
    line-height: 1;
    margin: 0.5rem 0 22px;
    color: #5b2873;
    font-weight: 700;
    padding-left: 20px;
}

h1 small {
    font-size: 19px;
    line-height: 1;
}

h1 span {
    font-size: 39px;
    display: block;
    margin: 8px 0 5px -20px;
}

h2 {
    font-size: 21px;
    line-height: 28px;
    margin: 0 0 0 1rem;
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 400;
    color: #5C2874;
}

h3 {
    font-size: 20px;
    line-height: 24px;
    margin: 0 0 12px;
    font-family: 'Gloria Hallelujah', cursive;
    color: #5b2873;
    font-weight: 400;
}

h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #00aeef;
}


ul {
    list-style: none;
    margin-bottom: 15px;
}

ul li {
    padding-left: 16px;
    margin-bottom: 0.5rem;
    position: relative;
}

ul li:before {
    content: "\2022";
    color: #5b2873;
    font-size: 28px;
    position: absolute;
    top: 0;
    left: 0;
    font-family: Arial, Helvetica, sans-serif;
}

article .flex>section:nth-of-type(2) ul li:before {
    top: -7px;
}

ul li.other:before {
    top: -4px;
}

ul li:nth-child(even):before {
    color: #009ee3;
}

article .flex>section:nth-of-type(2) h3 {
    margin-top: -0.5rem;
}

article .flex>section:nth-of-type(2) {
    width: 48.5%;
    line-height: 1.1;
}

article .flex>section:nth-of-type(2) ul li {
    margin-bottom: 2px;
}

strong {
    color: #702673;
    font-size: 115%;
    font-weight: 700;
}

strong.color {
    color: #009ee3;
}

.banner {
    margin: 0 -35px;
    display: none;
}

.banner img {
    display: block;
}

.link {
    margin-bottom: 20px !important;
}

.link a {
    color: #5b2873 !important;
    text-decoration: underline;
}

.link .block {
    display: block;
    margin-bottom: 8px;
}

.font-big{
    font-size: 148%;
}

figure {
    position: absolute;
    left: 57px;
    bottom: 39px;
    font-size: 0.8125rem;
}

figure p:nth-of-type(3) {
    margin-bottom: 1.5625rem;
}

figure p:nth-of-type(4) {
    margin-bottom: 1rem;
}

.logo {
    display: flex;
    justify-content: center;
    margin: 20px 0 20px;
}

.flexbox section {
    margin: 246px 0 0 584px;
    background: url(../images/background-contact.png) 0 0 no-repeat;
    width: 304px;
    height: 169px;
    padding: 33px 55px 0 41px;
    position: relative;
    z-index: 10;
}

.flexbox section h2 {
    margin: 0;
    font-size: 21px;
}

.flexbox section h2 a {
    color: #5C2874;
    text-decoration: none;
}

@media screen and (max-width: 911px) {
    #wrapper {
        border: none;
        margin: 0;
        height: auto;
        background: #feedb7;
        padding: 0 1rem;
    }

    .flexbox section{
        margin: 163px 0 0 440px;
    }

    :is(ul, p) {
        hyphens: auto;
    }

    header {
        margin: 0 -16px;
    }

    footer{
        margin-top: 112px;
    }

    article .flex>section:nth-of-type(2) h3 {
        margin-top: 0
    }

    .banner {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50%;
    }

    figure {
        position: static;
        width: 100%;
    }

    br:not(footer br) {
        display: none;
    }

    .background:nth-of-type(1) {
        width: 100%;
        padding: 1rem;
        flex: 1 1 0;
    }

    .background:nth-of-type(2) {
        width: 260px;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    h1 span {
        margin-left: 0;
    }
}

@media screen and (max-width:896px) {
    footer{
        margin-top: 82px;
    }
}

@media screen and (max-width:872px) {
    footer{
        margin-top: 50px;
    }
}

@media screen and (max-width:767px) {
    .flex {
        display: block;
    }

    .content {
        width: 100%;
    }

    .flexbox section {
        margin: 1rem auto;
    }

    footer{
        margin-top: 20px;
    }

    footer br {
        display: none !important;
    }

    .flex>section {
        width: 100% !important;
    }

    .banner {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: auto;
    }

    :is(.content:nth-of-type(1) p, h2) {
        padding-left: 0;
        margin-left: 0;
    }
}

@media screen and (max-width:509px) {
    .background:nth-of-type(2) {
        width: 50%;
    }
}