* {
    box-sizing: border-box;
}

body {
    background-color: #fffdbe;
    margin: 0;
    min-height: 100vh; /* volle höhe des viewports*/
    display: flex;
    flex-direction: column; /*alles untereinander*/
}

body {
    font-family: "Figtree Variable", sans-serif;
    font-weight: 400;
}

main {
    flex: 1;
    padding-top: 68.8px; /*abstand damit inhalt nicht unter header liegt*/
}

.menu {
    display: flex; /* elemente nebeneinander*/
    align-items: center;
    justify-content: space-between; /* logo links , menu links rechts */
    padding: 0.5rem; /*abstand zu rändern*/
    border-bottom: 0.1rem solid black;
    background-color: #fffdbe;
}

/*logo gesicht*/
.face-looking-down {
    position: absolute;
    left: 0.5rem;
    top: 1rem;
}
.face-looking-up {
    opacity: 1;
}

.face-looking-down {
    opacity: 0;
}
/*logo gesicht schaut runter sobald man scrollt*/
.face-looking-up,
.face-looking-down {
    transition: opacity 0.25s ease;
}
body.is-scrolled .face-looking-up {
    opacity: 0;
}

body.is-scrolled .face-looking-down {
    opacity: 1;
}

/*hamburger menü*/
.menu button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
}

.menu button::before,
.menu button::after {
    content: "";
    position: absolute;
    background: black;
}

.menu button::before {
    top: 50%;
    left: 8px;
    right: 8px;
    height: 3px;
    transform: translateY(-50%);
}

.menu button::after {
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 3px;
    transform: translateX(-50%);
}

@media screen and (width <= 40rem) {
    header {
        nav {
            display: none;
        }
    }
}

@media screen and (width > 40rem) {
    header {
        button {
            display: none;
        }
    }

    dialog {
        display: none;
    }
}

dialog {
    margin: 0;
    border: none;
    width: 100%;
    max-width: none;
    padding: 2rem 1rem;
    background: #fffdbe;
    position: fixed;
    top: 68.8px; /* Höhe vom header */
}

dialog nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

dialog nav a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
}

/*beim hovern über links werden lila*/
.hamburger-links a:hover {
    color: #8a20d6;
}

.menu-links {
    margin-right: 1rem;
}

.menu-links ul {
    display: flex; /* elemente nebeneiander*/
    gap: 4rem; /*abstand zwischen elemente*/
    list-style: none; /* strichpunkte der liste weg*/
}

.menu-links a {
    text-decoration: none; /*elemente nicht mehr unterstrichen wie bei links normalerweise*/
    color: black;
}

/*beim hovern über links werden lila*/
.menu-links a:hover {
    color: #8a20d6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68.8px;
}

html {
    scroll-padding-top: 68.8px; /* Höhe meines Headers -> bei neu laden der seite sieht man ganzes bild, weil ohne das war das bild leicht unter dem header versteckt */
}

p {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 65ch;
    margin-left: 2rem;
    margin-right: 0;
}

h1 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 65ch;
    margin-left: 2rem;
    margin-right: 0;
}

ul {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 65ch;
    margin-left: 2rem;
    margin-right: 0;
}

.hero-image {
    width: 100vw;
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    display: block;
    margin-bottom: 3rem;
}

.hero-image {
    margin-bottom: 6rem;
}

p {
    margin-bottom: 3rem;
}

.container-projects img {
    width: 100%;
    height: auto;
    display: block;
}

.container-projects {
    display: grid;
    grid-template-columns: 1fr;
    /*gap: 2rem;*/
    row-gap: 1rem;
    column-gap: 3rem;
    padding: 3rem;
}

/*zwei spalten ab 600px width*/
@media (min-width: 600px) {
    .container-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*drei  spalten ab 900px width */
@media (min-width: 900px) {
    .container-projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*zoom link bild bei hovern*/
a img {
    transition: transform 0.3s ease;
}

a:hover img {
    transform: scale(1.1);
    cursor: pointer;
}

/*damit zoom innerhalb des bildes bleibt und nicht über layout hinaus*/
a.zoom-hover {
    display: inline-block;
    overflow: hidden;
}

footer {
    display: flex; /* elemente nebeneinander */
    justify-content: space-between; /* pfeil links , menu links rechts */
    align-items: center; /* elemete zentrieren */
    padding: 1rem 2rem; /*abstand ränder*/
    border-top: 0.1rem solid black; /*schwarzer strich*/
    background-color: #fffdbe;
}

.footer-links ul {
    display: flex; /* elemente nebeneiander*/
    gap: 4rem; /*abstand zwischen elemente*/
    list-style: none; /* strichpunkte der liste weg*/
}

.footer-links a {
    text-decoration: none; /*elemente nicht mehr unterstrichen wie bei links normalerweise*/
    color: black;
}

/*beim hovern über links werden lila*/
.footer-links a:hover {
    color: #8a20d6;
}

ul {
    list-style: none;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.project-layout img {
    width: 100%;
    height: auto;
    display: block;
}

/*bild in erste spalte*/
.project-cover {
    grid-column: 1;
}

/*text in zweite spalte*/
.project-text {
    grid-column: 2;
    padding-top: 10rem;
}

/*wird alles untereinander, also eine spalte, ab 900px da sonst komisch aussieht*/
@media (max-width: 900px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-cover,
    .project-text {
        grid-column: auto;
    }
}
