* {
    margin: 0;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    vertical-align: baseline;
    list-style: none;
}

@font-face {
    font-family: 'Writer';
    src: url(../webfonts/PPWriter-Variable.woff2) format('woff2');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'Montreal';
    src: url(../webfonts/PPNeueMontreal-Variable.woff2) format('woff2');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'Fraktion';
    src: url(../webfonts/PPFraktionSans-Variable.ttf) format('truetype');
    font-weight: 200 800;
    font-display: swap;
    font-style: italic;
}
html, body {
    font-family:"Montreal","Google Sans", "Noto Sans SC", sans-serif;
    font-size:var(--textSzie);
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    color: var( --color);
    background:var(--bg);
    width:100%;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
    font-weight: 400;
}
html{
    min-height: 100%;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
input,button{
    font-family:"Montreal","Google Sans", "Noto Sans SC", sans-serif;
}
input[type="checkbox"]{
    appearance: none;
    -webkit-appearance: none;
    width: .8rem;
    height: .8rem;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
}
input[type="checkbox"]:checked{
    background: #000;
}
:root{
    --color: #000;
    --bg:#fff;
    --textSzie: clamp(14px, 0.9vw, 19px);
    --space:1rem;
    --spaceS:calc(var(--space)/2);
    --spaceB:calc(var(--space)*2);
}

#header{
    position: fixed;
    width: 100%;
    top:0;
    left: 0;
    z-index: 99;
}
.header-wrap{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:var(--space);
}
#header h1{
    font-size: 1rem;
    font-weight: 400;

}
.header-right,
.header-menu ul,
.header-left{
    display: flex;
    align-items: center;
}
.header-right>*,
.header-menu ul li,
.header-left>*{
    padding: var(--space);
}
.header-left,
.header-right{
    width: 20%;
}
.header-right{
    justify-content: flex-end;
}
.logo img{
    height: 1.5rem;
    width: auto;
}
a{
    color: var(--color);
    text-decoration: unset;
}

.lng .active{
    display: none;
}
.lng form{
    display: inline;
}
.lng button{
    appearance: none;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
}
#login-page{
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-page-box{
    width:  clamp(300px,30vw, 100vw);
    padding: var(--spaceB);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    border-radius: .5rem;
    backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}
.login-page-box h2{
    font-weight: 400;
    font-size: 2rem;

    padding-bottom: 1rem;
}
.login-page-box-footer,
.login-page-box-header,
.login-post>div{
    padding: var(--space) 0;
}
.login-post label{
    display: flex;
    align-items: center;
    padding-bottom: .5rem;
    font-size: 1rem;
}
.login-input{
    border: black solid 1px;
    font-size: 1rem;
    padding: .5rem;
    width: 100%;
    background-color: transparent;
}
input[type="checkbox"]{
    background-color: transparent;
    border: black solid 1px;
    margin-right: .25rem;
}
.flex{
    display: flex;
    justify-content: space-between;
}
.login-submit{
    background-color: black;
    color: #fff;
    width: 100%;
    padding: .5rem;
    font-family: 'Writer';
    cursor: pointer;
}
.login-page-box-footer{
    line-height: 1.5;
}
.login-page-box-footer a{
    border-bottom: solid 1px currentColor;
}

.form-error{
    color: var(--red);
    font-size: .85rem;
    line-height: 1.35;
    margin-top: .45rem;
}

#footer{
    margin-top: auto;
    width: 100%;
    padding: var(--spaceB);
    font-size: .75rem;
}
#footer,
#footer ul{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
}
#footer ul{
    flex-wrap: wrap;
}
#wireframe{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    #header {
        position: relative;
    }
    .header-wrap {
        flex-wrap: wrap;
        gap: var(--space);
    }
    .header-left,
    .header-right {
        width: auto;
        flex-shrink: 0;
    }
    .header-left > *,
    .header-right > *,
    .header-menu ul li {
        padding: var(--spaceS);
        white-space: nowrap;
    }
    .header-menu {
        order: 3;
        width: 100%;
    }
    .header-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    #login-page {
        min-height: 0;
        padding: var(--spaceB) var(--space);
    }
    .login-page-box {
        width: min(100%, 400px);
    }
    .flex {
        flex-wrap: wrap;
        gap: var(--spaceS);
    }
    #footer {
        flex-wrap: wrap;
        line-height: 1.5;
    }
}
