html {
    --bg: rgb(216, 212, 212);
    --color: rgb(20, 20, 20);
    --colorAccent: rgb(120, 120, 120);
    --bgOpacity: rgba(216, 212, 212, .4);
    --bgAccent: rgb(204, 204, 204);
    --accent: rgb(200, 0, 255);

    --textsize: 20px;
    --h2: 2.441rem;
    --h5: 1.25rem;

    --gap: 40px;
    --padding: 60px;

    background: var(--bg);
    color: var(--color);
    font-family: "Clash Display", sans-serif;
    font-size: var(--textsize);
    scroll-behavior: smooth;
}
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    display: flex;
    flex-direction: column;
}

p {
    font-size: var(--textsize);
    letter-spacing: default;
    line-height: 1.5;
    margin: 0;
}
h6 {
    margin: 1rem 0;
    font-weight: 600;
    margin: 0;
}
h5 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
}
h4 {
    font-size: 1.5625rem;
    font-weight: 400;
    letter-spacing: -0.5%;
    margin: 0;
}
h3 {
    font-size: 1.95rem;
    font-weight: 400;
    letter-spacing: -0.5%;
    line-height: 1.3;
    margin: 0;
}
h2 {
    font-size: 2.441rem;
    font-weight: 400;
    letter-spacing: -1.5%;
    line-height: 1.2;
    margin: 0;
}
h1 {
    font-size: 3.815rem;
    font-weight: 400;
    letter-spacing: -1.5%;
    line-height: 1.1;
    margin: 0;
}
mark {
    background: none;
    color: var(--accent);
}

#menu {
    z-index: 101;
    position: fixed;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
    padding-bottom: 100px;
    box-sizing: border-box;
    top: 0;
}
#menu a {
    color: var(--color);
    text-decoration: none;
    cursor: pointer;
}
#menu a:hover {
    text-decoration: underline;
}
.overlayActive {
    position: fixed;
    width: 100%;
    top: var(--scroll-top);
}
.menuShow {
    animation: menuFadeIn 0.3s ease forwards;
    display: flex !important;
}
.menuHide {
    animation: menuFadeOut 0.3s ease forwards;
}
@keyframes menuFadeIn {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: flex;
        opacity: 0;
    }
    100% {
        display: flex;
        opacity: 1;
    }
}
@keyframes menuFadeOut {
    0% {
        display: flex;
        opacity: 1;
    }
    99% {
        display: flex;
        opacity: 0;
    }
    100% {
        display: none;
        opacity: 0;
    }
}

#pages {
    width: 100%;
    min-height: 100vh;
    backdrop-filter: blur(30px);
    background: var(--bgOpacity);
    overflow: hidden;
}
#backgroundImg {
    position: fixed;
    height: 100vh;
    width: 100vw;
    z-index: -1;
    background-image: url(img/himmlisch.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.page {
    width: 100%;
}

#fixedHeader {
    position: absolute;
    top: 0;
    z-index: 2;
}
.headerShow {
    position: fixed !important;
    animation: headerFadeIn 1s ease forwards;
    z-index: 2;
}
.headerHide {
    animation: headerFadeOut 1s ease forwards;
    z-index: 2;
}
@keyframes headerFadeIn {
    0% {
        top: -100%;
    }
    100% {
        top: 0;
    }
}
@keyframes headerFadeOut {
    0% {
        position: fixed;
        top: 0;
    }
    99% {
        top: -100%;
    }
    100% {
        position: absolute;
    }
}

.header {
    width: 100%;
    padding: var(--padding);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
#headerLinks {
    display: flex;
    flex-direction: row;
    gap: var(--padding);
    align-items: center;
}
#headerLinks a {
    cursor: pointer;
    text-decoration: none;
    color: var(--color);
}
#headerLinks a:hover {
    text-decoration: underline;
}
#headerLinks h5 {
    margin: 0;
}
#headerLogo, #headerMenu {
    position: relative;
    flex-grow: 1;
}
#headerLogo {
    height: 72px;
}
#headerMenu {
    height: 56px;
}
#headerMenu img, #headerLogo img {
    position: absolute;
    height: 100%;
    top: 0;
    cursor: pointer;
    transition: .2s;
}
#headerMenu img:hover, #headerLogo img:hover {
    scale: 1.1;
    transition: .2s;
}
#headerMenu img {
    right: 0;
}
#headerLogo img {
    left: 0;
}

.button {
    height: 1.5rem;
    background: var(--accent);
    padding: .5rem var(--padding);
    cursor: pointer;
    border-radius: 2.5rem;
    box-shadow: 0 4px 8px var(--colorAccent);
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color);
    text-decoration: none;
    z-index: 2;
}
.button:hover {
    text-decoration: underline;
    scale: 1.1;
    transition: .2s;
}
.ghostbutton {
    height: 1.5rem;
    background: none;
    border: 2px solid var(--color);
    padding: .5rem var(--padding);
    cursor: pointer;
    border-radius: 2.5rem;
    transition: .2s;
    text-wrap: nowrap;
    display: flex;
    align-items: center;
    color: var(--color);
    text-decoration: none;
    z-index: 2;
}
.ghostbutton:hover {
    text-decoration: underline;
    scale: 1.1;
    transition: .2s;
}

#infos {
    display: flex;
    flex-direction: column;
    padding: 0 var(--padding);
    box-sizing: border-box;
    gap: var(--gap);
}
.cloud {
    background: var(--bgAccent);
    width: 1000px;
    max-width: 100%;
    border-radius: 152px;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
    padding: calc(var(--padding) + 1rem) var(--padding);
    box-sizing: border-box;
    text-align: justify;
    display: flex;
    flex-direction: column;
    position: relative;
}


.cloudRight {
    margin-left: auto;
    transform: translateX(50vw);
	transition: 1s;
}
.cloudRightShow {
    transform: translateX(0);
	transition: 1s;
}
.cloudLeft {
    transform: translateX(-50vw);
	transition: 1s;
}
.cloudLeftShow {
    transform: translateX(0);
	transition: 1s;
}


.cloud h4 {
    margin: 0 0 1rem 0;
}
.cloudBig {
    margin-left: auto;
    margin-right: auto;
    animation: cloudBigFadeIn 1s ease forwards;
}
@keyframes cloudBigFadeIn {
    0% {
        left: -100%;
    }
    100% {
        left: 0;
    }
}

.cloudBig:after {
    content: "";
    background: var(--bgAccent);
    position: absolute;
    width: 30%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: -150px;
    left: 15%;
    box-shadow: -4px -6px 0 #dddddd;
    z-index: -1;
}
.cloudBig:before {
    content: "";
    background: var(--bgAccent);
    position: absolute;
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: -260px;
    right: 15%;
    box-shadow: -4px -6px 0 #dddddd;
    z-index: -1;
}

@media screen and (max-width: 1400px) {
    #headerLinks {
        display: none;
    }
}
@media screen and (max-width: 1100px) {
    .cloudBig::after {
        top: -15vw;
    }
    .cloudBig:before {
        top: -25vw;
    }
}
@media screen and (max-width: 700px) {
    html {
        --padding: 28px;
    }
    .disappear {
        display: none;
    }
    .cloud {
        border-radius: 100px;
        padding: 100px var(--padding);
    }
}