* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --height--header: 100px;
    --height--footer: 62px;
    --height--main  : calc(100dvh - var(--height--header) - var(--height--footer));
}

html {
    font-family: 'Inter', sans-serif;
    color: #ffffff;

    scroll-behavior: smooth;

    height: 100%;
}

h1, h2, h3 {
    color: #FFED00;
    font-style: italic;
    padding-bottom: .5rem;
}

ul {
    padding: 1.5rem;
}

body {
    background: #000000;

    scroll-behavior: smooth;
    height: 100%;
}

header {
    height: var(--height--header);
    padding: 20px;

    z-index: 2;
    position: relative;
}

header img {
    height: auto;
    width: 70%;
    max-width: 260px;
    margin: 0 auto;
    display: flex;
}

.hide {
    opacity: 0;
}


main {
    height: var(--height--main);
    overflow-y: scroll; /* echte Scrollbar */
    scroll-snap-type: y mandatory;
    position: relative;
    scrollbar-width: none;
    z-index: 2;
}

.bg-wrapper {
    background-image: url('../img/6cb66d60-5114-45ff-83d7-86cdf61942b8.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 25%;
    background-position-y: bottom;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: absolute;
    display: block;
    opacity: .2;
}

section {
    position: relative;
    z-index: 2;
}

#animation {
    height: var(--height--main);
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#animation > img {
    display: none;
}


.animation-section {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    max-width: 300px;
}

.animation-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.base-section {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    max-width: 991px;
}

.base-section p {
    padding-bottom: .5rem;
}

section:not(.base-section) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: var(--height--main);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;

    scroll-snap-align: start;

    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

.animation-section {
    font-family: 'Travax', sans-serif;

    font-style: normal;
    font-weight: 500;
    color: #FFED00;
}

.section-mockup {
    height: 70%;
    width: auto;
}

.section-mockup img {
    height: 100%;
}

.section-text {
    height: 30%;
    width: 95%;
    padding: 1rem;
    line-height: 150%;
}

#install a {
    background: #FFED00;
    color: #1D1D1B;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    line-height: 140%;
    width: 70%;
    max-width: 260px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}
#install a:active {
    scale: 0.9;
}
footer {
    height: var(--height--footer);
    display: flex;
    flex-wrap: wrap ;
    justify-content: center;
    align-items: center;
    opacity: 50%;

    z-index: 2;
    position: relative;
}

footer span {
    flex-basis: 100%;
    text-align: center;
}

footer a {
    color: inherit;
    text-decoration: none;
    padding: 0 .5rem;
}

footer span {
    display: none;
}

@media (min-width: 991px) {

    footer span {
        display: block;
    }
    #animation img {
        display: inherit;
    }
    section:not(.base-section, #animation) {
        max-width: 70vw;
        margin: 0 auto;
        transform: translateX(-50%) !important;
        left: 50%;
    }

    section[id^="function-"] {
        flex-direction: row;
    }

    section.reverse {
        flex-direction: row-reverse;
    }

    .section-text {
        font-size: 24px;
        line-height: 200%;
        height: auto;
    }
}

#scroll-down {
    opacity: 0;
    position: absolute;
    bottom: 20px;

    height: 40px;
    width: 40px;

    background-repeat: no-repeat;
    background-image: url('../img/scroll-down.svg');

    left: 50%;
    transform: translateX(-50%);
}

section#intro.active ~ #scroll-down {
    opacity: 1;
}