@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 16px;
}

body {
    color: #000;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
    border: solid 3px #003399;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    text-align: justify;
    padding-bottom: 1rem;
}

h1 {
    font-size: 1.7rem;
    color: #3333cc;
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.3;
}

h1 span {
    display: block;
    font-size: 1.2rem;
}

h2 {
    font-size: 1.2rem;
    color: #3333cc;
    margin: 0 0 .5rem;
}

h3 {
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
}

ul {
    margin: 0 0 1rem 1.3rem;
}

article {
    padding: 1rem;
}

.center :is(h2, p) {
    text-align: center;
}

.kontakt {
    padding-bottom: 1rem;
}

.kontakt p {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0;
}

.kontakt p span:nth-of-type(1) {
    flex: 0 0 13rem;
}

.kontakt p span:nth-of-type(2) {
    flex: 0 0 7rem;
}

.kontakt p span:nth-of-type(3) {
    flex: 0 0 17rem;
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

p.small {
    font-size: 0.9rem;
    padding-bottom: 0;
}

footer {
    padding: 1rem;
    background: #003399;
}

@media only screen and (max-width: 49.938rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        text-align: left;
    }
}

@media only screen and (max-width: 44rem) {
    ul {
        margin: 0 0 1rem 1rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .center br {
        display: none;
    }

    .kontakt {
        padding-bottom: 0;
    }

    .kontakt p {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 1rem;
    }

    .kontakt p span:nth-of-type(1),
    .kontakt p span:nth-of-type(2),
    .kontakt p span:nth-of-type(3) {
        flex: auto;
    }

    .flex {
        flex-direction: column;
        align-items: center;
    }
}