:root {
    cursor: crosshair;
}

:root a {
    cursor: crosshair;
}

*::selection {
    color: white;
}

html,
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Courier New", Courier, monospace;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.02em;
    color: green;
}

body {
    padding: 0 0.5rem 0.5rem;

    /* font-size:14px; */
}

img {
    display: block;
    width: 100%;
    height: auto;
}

h1 {
    font-size: 3.125em;
    hyphens: auto;
}

h2 {
    hyphens: auto;
}

a {
    color: green;
    font-style: normal;
    text-decoration: none;
}

a:hover {
    color: #c1dec1;
}

/* Language switcher, top right on every page */
.language-switcher {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5em;
    font-size: 1.25rem;
}

#about-page header .language-switcher a {
    display: inline;
    font-size: inherit;
}

.language-switcher a[aria-current] {
    text-decoration: underline;
}

/* Landing page */
#landing-page header {
    padding-top: 0.5em;
    display: block;
    margin-bottom: 3em;
}

#landing-page header h1,
p {
    font-size: 1.25em;
}

#landing-page header nav {
    width: fit-content;
}

.projektliste {
    hyphens: none;
    font-size: 3.125em;
}

.listitem {
    border-bottom: 1px solid green;
    padding-bottom: 0.2rem;
    padding-top: 0.2rem;
    font-size: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.listitem:hover a {
    color: #c1dec1;
}

.listItemSubtitle {
    font-size: 1.25rem;
    display: none;
}

.hover-image {
    position: absolute;
    pointer-events: none;
    width: 350px;
}

.projektliste li:last-child {
    width: 100vw;
    padding-bottom: 1em;
    padding-top: 1em;
    bottom: 0;
    z-index: 3;
    font-size: 1.25rem;
}

/* about page */
#about-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100dvh;
}

#about-page header {
    padding-top: 0.5em;
}

#about-page header a {
    display: block;
    font-size: 1.25em;
}

#about-page header h1 {
    font-size: 2.5rem;
}

#about-page main a {
    text-decoration: underline;
}

/* project pages */
.textoben {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5em 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.project-page header {
    padding-bottom: 1em;
}

.project-page header h1 {
    font-size: 2.5rem;
}

.project-page header nav {
    font-size: 1.25em;
}

.project-page main {
    letter-spacing: 0.01em;
    hyphens: auto;
}

/* check where used */
.project-page .projekttext a {
    text-decoration: underline;
}

.project-page .image-portrait:not(:last-child) {
    height: 100%;
}

@media only screen and (min-width: 720px) {
    body {
        font-size: 16px;
        padding: 0 1rem 1rem;
    }

    .listItemSubtitle {
        display: flex;
    }

    .listitem {
        flex-direction: row;
    }

    #about-page header h1 {
        font-size: 2.9em;
    }

    .project-page header h1 {
        font-size: 2.9em;
    }

    .project-page .image-portrait {
        width: 75vw;
    }

    .textoben {
        padding: 1em 0;
    }

    #landing-page header {
        padding-top: 1em;
    }

    #about-page header {
        padding-top: 1em;
    }

    .language-switcher {
        top: 1rem;
    }
}

@media only screen and (min-width: 1200px) {
    .project-page main {
        width: 80vw;
        hyphens: none;
    }

    .project-page .image-portrait {
        width: 50vw;
    }

    .listitem {
        font-size: 1em;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}
