:root {
    --text-font: BaloiseCreateText, Arial, sans-serif;
    --header-font: BaloiseCreateHeadline, Arial, sans-serif;
    --text-color: #000d6e;
    --link-color: #000d6e;
    --text-color-invert: #ffffff;
    --text-color-light: #293485;
    --bal-color-red-1: #ffeef1;
    --bal-color-red-2: #ffd7d7;
    --bal-color-red-3: #ffaca6;
    --bal-color-red-4: #ff596f;
    --bal-color-red-5: #d9304c;
    --bal-color-red-6: #99172d;
    --bal-color-light-blue: #a7d1fa;
    --bal-color-mid-blue: #656ea8;
}



@font-face {
    font-family: BaloiseCreateHeadline;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local("BaloiseCreateHeadline"),local("BaloiseCreateHeadline-bold"),url(BaloiseCreateHeadline-bold.woff2) format("woff2"),url(BaloiseCreateHeadline-bold.woff) format("woff")
}

@font-face {
    font-family: BaloiseCreateHeadline;
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local("BaloiseCreateHeadline-light"),url(BaloiseCreateHeadline-light.woff2) format("woff2"),url(BaloiseCreateHeadline-light.woff) format("woff")
}

@font-face {
    font-family: BaloiseCreateText;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local("BaloiseCreateText-bold"),url(BaloiseCreateText-bold.woff2) format("woff2"),url(BaloiseCreateText-bold.woff) format("woff")
}

@font-face {
    font-family: BaloiseCreateText;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local("BaloiseCreateText"),local("BaloiseCreateText-regular"),url(BaloiseCreateText-regular.woff2) format("woff2"),url(BaloiseCreateText-regular.woff) format("woff")
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-indent: 0;
}
html {
    height: 100%;
    font-size: 100%;
}
body {
    font-family: var(--text-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    width: 100%;
    height: 100%;
}

h1, h2 {
    font-family: var(--header-font);
    font-weight: 700;
}
h1 {
    font-size: 1.5625rem;
    line-height: 2rem;
    padding-top: 5px;
    text-align: center;
}
h2 {
    font-size: 1.375rem;
    line-height: 1.75rem;
    padding-top: 5px;
    padding-bottom: 15px;
}
p {
    margin-bottom: 14px;
    hyphens: auto;
    word-wrap: break-word;
}
a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}
a:hover {
    color: var(--bal-color-mid-blue);
}
.strong {
    font-weight: bold;
}


header {
    display: flex;
    position: relative;
    padding: 0.7rem 3rem;
    color: var(--text-color-invert);
    background: var(--text-color);
    justify-content: space-between;
    align-content: center;
    align-items: center;
    user-select: none;
}
header a {
    display: inline-block;
    height: 60px;
    text-decoration: none;
    color: var(--text-color-invert);
}
header a:hover {
    color: var(--link-color);
}
.header-logo svg {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
}
.lang-wrap {
    margin-left: auto;
    margin-right: 1rem;
}
#lang-sel {
    display: flex;
}
.contact a, #lang-sel a {
    height: 36px;
    width: 36px;
    background-color: var(--text-color-light);
    border-radius: 4px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    margin: 3px;
}
.contact a:hover, #lang-sel a:hover {
    background-color: var(--bal-color-light-blue);
}
#lang-sel a.active {
    background-color: var(--bal-color-mid-blue);
}
.contact svg {
    fill: var(--text-color-invert);
    height: 14px;
}
.contact a:hover {
    background-color: var(--bal-color-light-blue);
}
.contact:hover svg {
    fill: var(--link-color);
}

main{
    display:grid;
    grid-template-columns: 30% 70%;
    grid-template-areas:
        "aside summary"
        "aside section";
    align-items:start;
    gap: 3rem 2rem;
    padding-top: 40px;
    width: calc(90% - 20px);
    margin-left: auto;
    margin-right: auto;
}
aside{
    grid-area: aside;
}
summary{
    grid-area: summary;
}
section{
    grid-area: section;
}
.icon-big {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    height: auto;
}
.http-err {
    text-align: center;
    color: var(--bal-color-red-4);
    font-weight: bold;
    font-family: monospace;
}

footer {
    display: block;
    position: relative;
    margin-top: auto;
    padding: 1rem 3rem;
    color: var(--text-color-invert);
    background: var(--text-color);
    justify-content: space-between;
    align-content: center;
    align-items: center;
    white-space: nowrap;
}
.footerlinks {
    display: grid;
    grid-template-columns: repeat(1,100%);
}
.footerlinks a {
    color: var(--text-color-invert);
    margin: 0.3rem 0;
    padding: 0.4rem 0;
}
.footerlinks a:hover {
    color: var(--bal-color-light-blue);
}


@media only screen and (max-width: 390px) {
    header, footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media only screen and (max-width: 539px) {
    main{
        grid-template-columns: 1fr;
        grid-template-areas:
            "summary"
            "aside"
            "section";
    }

    .lang-wrap {
        position: relative;
    }
    #lang-sel {
        flex-direction: column;
        position: absolute;
        left: calc(-21px - 1rem);
        top: -21px;
    }
    #lang-sel a.active {
        order: -1;
    }
    #lang-sel:hover {

    }
    #lang-sel.hover a:not(.active) {
        color: var(--text-color);
        background: white;
        border-radius: 0;
        margin: 0;
        border-style: solid;
        border-color: var(--text-color);
        border-width: 0 3px 3px;
        width: 42px;
        height: 42px;
    }
    #lang-sel:not(.hover) a:not(.active) {
        display: none;
    }
}

@media only screen and (min-width: 540px) {
    h1 {
        font-size: 1.875rem;
        line-height: 2.375rem;
        padding-top: 15px;
        text-align: left;
    }
    .icon-big {
        width: 100%;
        margin-left: auto;
    }
    .footerlinks {
        grid-template-columns: repeat(2,50%);
    }
}


@media only screen and (min-width: 960px) {
    header a img {
        width: 200px;
    }
    h1 {
        font-size: 2.75rem;
        line-height: 3.125rem;
        padding-top: 20px;
    }
    h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    .footerlinks {
        grid-template-columns: repeat(3,33%);
    }
}

@media only screen and (min-width: 1280px) {
    footer {
        display: flex;
        min-height: 130px;
    }
    .footerlinks {
        display: flex;
        justify-content: space-between;
    }
    .footerlinks a {
        margin-left: 1rem;
    }
}