:root {
    --background: white;
    --animation-duration: 500ms;
}
body {
    font-family: "Inclusive Sans Variable", sans-serif;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes slide-up {
    to {
        translate: 0 calc(-50vh + 4rem);
    }
}

@keyframes slide-down {
    to {
        translate: 0 calc(50vh - 4rem);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.top,
.bottom {
    display: flex;
    justify-content: left;
    position: fixed;
    left: 0;
    height: 50vh;
    background-color: var(--background);
    overflow: clip;
    z-index: 1;
    animation-duration: var(--animation-duration);
    animation-timing-function: ease;
    animation-fill-mode: forwards;

    &.top {
        top: 0;
        align-items: end;
        animation-name: slide-up;

        a {
            /*color: black;*/
            translate: 0 2rem;
        }
    }

    &.bottom {
        top: 50vh;
        align-items: start;
        animation-name: slide-down;

        p {
            translate: 0 -2rem;
        }
    }

    p,
    a {
        margin: 0;
        font-weight: bolder;
        font-size: 4rem;
        line-height: 4rem;
    }
}

main {
    padding: 1rem;
    animation: fade-in var(--animation-duration) ease;
    flex-grow: 1;
}

.debug {
    --animation-duration: 1100ms;

    * {
        box-shadow: inset 0 0 0 0.0625rem;
    }
}
/* dat war lo alles just dofir fir den PW kack ze machen*/
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    justify-content: flex-end;

    /*background-color: white;*
    /*color: black;*/
    /*backdrop-filter: blur(0.5rem); */
}

/* hamburger menu*/
.hamburger {
    position: relative;
    z-index: 3;
    width: 2rem;
    height: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: black;
}
dialog[popover] {
    margin: 0;
    inset: 0;
    width: 100vw;
    height: 100vh;

    border: none;
    padding: 2rem;
    background-color: #111;
    color: white;

    display: none;

    animation: fade-in 300ms ease;
}

dialog:popover-open {
    display: grid;
    align-content: center;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}
.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}
@media screen and (width <= 40rem) {
    header nav {
        display: none;
    }
}

@media screen and (width > 40rem) {
    .hamburger,
    dialog {
        display: none;
    }
}

/* kein grid main {
    max-width: 40rem;
    margin-inline: auto;
    padding-block: 4rem;
}*/

a {
    text-decoration: none;
    color: orange;
}
ul {
    list-style: none;
}
.content {
    display: grid;
    grid-template-columns: repeat(
        12,
        1fr
    ); /* 12 columns sou wei den grid an figma war*/
    gap: 2rem;
    padding: 1rem;
    padding-top: 5rem;
}
h1 {
    display: grid;
    grid-column: 2 / span 6;
    font-size: 1.5rem;
    padding-top: 2rem;
}
.intro {
    display: grid;
    grid-column: 2 / span 6;
    font-size: 1.5rem;
    padding: 0rem;
}
.personal {
    display: grid;
    grid-column: 2 / span 5;
    font-size: 1.5rem;
    padding: 0rem;
}
/* mission: impressum ganz ennen ze hunn als footer aligned bessi mam pw*/
footer {
    display: flex;
    justify-content: right;
    padding-bottom: 1rem;
    padding-right: 1.7rem;
}
.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-list a {
    text-decoration: none;
}

@media (max-width: 770px) {
    body {
        overflow-x: hidden;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    h1,
    .intro,
    .personal {
        grid-column: 1 / -1;
        font-size: 1rem;
        max-width: 100%;
    }
}
