﻿@font-face {
    font-family: 'Just Me Again Down Here';
    src: url('../fonts/JustMeAgainDownHere.eot');
    src: url('../fonts/JustMeAgainDownHere.eot?#iefix') format('embedded-opentype'), url('../fonts/JustMeAgainDownHere.woff2') format('woff2'), url('../fonts/JustMeAgainDownHere.woff') format('woff'), url('../fonts/JustMeAgainDownHere.ttf') format('truetype'), url('../fonts/JustMeAgainDownHere.svg#JustMeAgainDownHere') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #231f20;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    line-height: 20px;
}

#wrapper {
    margin: 1rem auto;
    padding: 0 2.1875rem 45.875rem;
    max-width: 910px;
    background: #b3e1e9 url(../images/background-diakonieffb.png) no-repeat left bottom;
    overflow: hidden;
    position: relative;
    border: solid thin #cbcbcb;
}

header {
    margin: 0 -2.1875rem;
    display: flex;
    justify-content: space-between;
}

header>div:nth-of-type(1) {
    width: 65%;
    padding: 2.3125rem 2.375rem 1.8125rem;
    background: #5e2f7e;
}

header>div:nth-of-type(2) {
    width: 35%;
    background: #49317f;
    padding: 2.0625rem 3.25rem 1.6875rem;
}

article .flex>section:nth-of-type(2) h3 {
    margin-top: -0.5rem;
}

article .flex>section:nth-of-type(1) p strong {
    color: #5e2f7e;
    font-size: 115%;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.flex section {
    width: 49%;
}

footer {
    margin: 0.625rem 0 0;
    position: relative;
}

footer .flex>section:nth-of-type(2) {
    width: 211px;
    position: absolute;
    right: 6rem;
    bottom: -8.25rem;
}

footer .flex>section:nth-of-type(2) p {
    line-height: 1.125rem;
    font-size: 93%;
    color: #400161;
    text-align: center;
}

footer .flex>section:nth-of-type(2) h2 {
    font-size: 1.8125rem;
    text-align: center;
}

figure {
    display: none;
}

.position {
    position: absolute;
    right: 0;
    bottom: -41.125rem;
    width: 290px;
    font-size: 0.8125rem;
}

.position p:nth-of-type(3) {
    margin-bottom: 1.5625rem;
}

.position p:nth-of-type(4) {
    margin-bottom: 1rem;
}

.position p:nth-of-type(4) a {
    color: #00a7fa;
}

.position p:last-child {
    display: flex;
    justify-content: right;
    gap: 10px;
    align-items: center;
    margin: 1rem 10px;
}

p {
    margin-bottom: 0.3125rem;
}

:is(h1, h2, h3, h4) {
    font-family: 'Just Me Again Down Here', Arial, cursive;
    font-weight: normal;
}

h1 {
    margin: 0.8125rem 0 46px;
    font-size: 80px;
    line-height: 1;
    color: #5e2f7e;
}

h1 small {
    font-size: 76%;
}

h1 span {
    font-size: 85%;
    display: block;
    margin-left: 7.5rem;
}

h2 {
    font-size: 2.4375rem;
    line-height: 2rem;
    margin: 0 0 0.5rem;
    color: #5e2f7e;
}

h3 {
    font-size: 2rem;
    line-height: 1.875rem;
    margin: 0.5rem 0 0.375rem;
    color: #00aeef;
}

h4 {
    font-size: 1.9375rem;
    line-height: 2.625rem;
    text-align: center;
    color: #5e2f7e;
}

h5 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0.5rem 0;
    color: #5e2f7e;
}

h5 small {
    font-size: 14px;
}

h5 span {
    font-size: 14px;
    display: block;
    margin: 5px 0 0;
}

ul {
    margin: 0 0 12px;
    list-style: none;
}

.nowrap {
  white-space: nowrap;
}

ul span:not(.nowrap) {
    color: #5C2874;
    font-size: 130%;
    font-weight: 700;
    line-height: 1.3;
}

ul span strong {
    color: #00aeef;
}

ul li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 4px;
}

ul li:before {
    content: "\2022";
    color: #5e2f7e;
    font-size: 27px;
    position: absolute;
    top: 0;
    left: 0;
}

ul li:nth-child(even):before {
    color: #009ee3;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #5e2f7e;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media screen and (max-width:908px) {
    #wrapper {
        border: none;
        margin: 0;
        height: auto;
        background: #b3e1e9;
        padding: 0 1rem;
    }

    article .flex>section:nth-of-type(2) h3 {
        margin-top: 0
    }

    :is(header, figure) {
        margin: 0 -16px;
    }

    figure {
        display: block;
    }

    .position {
        position: static;
        width: 100%;
        margin-top: -190px;
    }

    .position p:last-child {
        justify-content: flex-start;
        margin: 1rem 0;
    }

    br {
        display: none;
    }

    footer br {
        display: inline;
    }

    header>div:nth-of-type(1) {
        width: 76%;
        padding: 1rem;
    }

    header>div:nth-of-type(2) {
        width: auto;
    }

    footer>section:nth-of-type(1) {
        width: 100%;
        float: none;
    }

    footer .flex>section:nth-of-type(2) {
        position: static;
        background: #B3E1E9 url(../images/background-contact.png) no-repeat;
        padding: 3.6875rem 4.625rem 1.25rem;
        width: 350px !important;
        height: 350px !important;
        margin: 20px auto 10px;
        font-size: 0.6875rem;
    }

    footer .flex>section:nth-of-type(2) h2 {
        font-size: 21px;
        line-height: 1;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 span {
        display: inline;
        margin-left: 0;
    }

    h1 {
        margin-bottom: 30px;
        font-size: 59px;
        line-height: 48px;
    }
}

@media screen and (max-width:767px) {
    .flex {
        display: block;
    }

    .flex section {
        width: 100%;
    }

    .position {
        margin-top: 0;
    }

    .position p:last-child {
        justify-content: center;
    }

    :is(h5, .position p) {
        text-align: center !important;
    }
}

@media screen and (max-width:420px) {
    header {
        display: block;
    }

    header div {
        display: flex;
        justify-content: center;
        width: 100% !important;
        padding: 1rem !important;
    }

    footer .flex>section:nth-of-type(2) {
        width: 285px !important;
        height: 285px !important;
        background-size: 100% 100%;
        padding: 3.5rem 4rem 1.25rem;
    }

    footer .flex>section:nth-of-type(2) p {
        line-height: 12px;
    }

    footer .flex>section:nth-of-type(2) br {
        display: none;
    }

    footer .flex>section:nth-of-type(2) h2 {
        font-size: 18px;
    }

    h1 {
        text-align: center;
    }
}