@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #000;
    font: 1rem/1.5em 'Arial', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
}

header {
    background: url(../images/ansbach.jpg) top center no-repeat;
    background-size: 100%;
    padding: 3rem 2rem 1rem;
}

article {
    padding: 1rem 2rem 2rem;
    border-left: solid 3px #64b32d;
    border-right: solid 3px #64b32d;
}

article p {
    text-align: justify;
    margin: 0 0 1rem;
}

.mb {
    margin-bottom: .5rem;
}

.mb+p {
    margin-bottom: 2rem;
}

article :is(h1, h3) {
    text-align: center;
}

article h1 {
    color: #64b32d;
    font-size: 2.5rem;
    line-height: 120%;
    margin: 2rem 0 1rem;
}

article h3 {
    font-size: 1.2rem;
    line-height: 130%;
    margin: 1rem 0 2rem;
}

article h2 {
    font-size: 1rem;
    margin: 0 0 .6rem;
}

article ul {
    margin: 0 0 2rem 1rem;
}

article ul li {
    margin: 0 0 .5rem;
}

ul ul {
    list-style: none;
    margin-bottom: 0;
}

ul ul li {
    padding: 0 0 0 .7rem;
}

ul ul li:before {
    content: "\-";
    float: left;
    margin-left: -.7rem;
}

footer {
    padding: 2rem 2rem 1rem;
    background: #d8e7c4;
    border-left: solid 3px #64b32d;
    border-right: solid 3px #64b32d;
    border-bottom: solid 3px #64b32d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

:is(a:link, a:visited, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

footer div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 81%;
}

footer div p {
    font-weight: bold;
}

footer h4 {
    font-size: 1rem;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    color: #fff;
    background: #64b32d;
    position: absolute;
    top: -1rem;
    right: 2rem;
    text-align: center;
}

footer h4 span {
    font-weight: normal;
}

@media only screen and (max-width: 49.938rem) {

    #wrapper {
        margin: 0 auto;
    }

    article :is(p, ul) {
        text-align: left;
        hyphens: auto;
    }

    header {
        background: none;
        padding: 2rem 2rem 1rem;
        display: flex;
    }

    article h1 {
        font-size: 2rem;
    }

    :is(article, footer) {
        border: none;
    }
}

@media only screen and (max-width: 39rem) {
    br {
        display: none;
    }

    article h1 {
        font-size: 1.7rem;
    }

    article h3 {
        font-size: 1.1rem;
    }

    footer {
        flex-direction: column;
        padding: 1rem;
    }

    footer div {
        align-items: flex-start;
        width: 100%;
    }

    footer h4 {
        position: static;
        top: 0;
        right: 0;
        display: block;
        width: 100%;
    }
}

@media only screen and (max-width: 30rem) {

    article ul,
    .mb+p {
        margin-bottom: 1.25rem;
    }

    ul ul {
        margin-left: 0;
    }

    header {
        justify-content: center;
    }

    article {
        padding: 1rem 1rem 0;
    }
}