@font-face {
    font-family: "Mango";
    src: url("/assets/mango/Mango-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mango";
    src: url("/assets/mango/Mango-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: floralwhite;
    margin: 2%;
    font-family: Helvetica, sans-serif;
}
html {
    scroll-behavior: smooth;
}

/* Herooooooo mit Grafik und Text */
#hero {
    position: relative;
    width: 100%;
    height: 75vh;
    height: 75svh;
    overflow: visible;
    padding-bottom: 12rem;
    margin-bottom: 20rem;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0.7rem;
}
.hero-text {
    position: absolute;
    top: 13%;
    font-family: "Mango", Helvetica, sans-serif;
    font-weight: 900;
    font-size: clamp(10rem, 27rem, 35rem);
    line-height: 1;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

/* Dropdown Menüüüüüüüüüü */
.dropbtn {
    position: fixed;
    top: 2rem;
    left: 1.5rem;
    padding-left: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 15;
}
.dropdown-content a {
    display: block;
    padding: 0.2rem;
    text-decoration: none;
    color: black;
}
.dropdown-content a:hover {
    color: dimgray;
}
[popover] {
    position: fixed;
    top: 4rem;
    left: 2rem;
    padding: 0.3rem;
    margin: 0;
    border: none;
    background-color: transparent;
    z-index: 15;
}

.quer {
    writing-mode: vertical-rl;
    position: fixed;
    top: 30%;
    right: 1.5rem;
    z-index: 15;
}

h2 {
    font-family: "Mango", Helvetica, sans-serif;
    font-weight: 800;
    font-size: 9rem;
    line-height: 8rem;
}
p {
    font-size: 1.4rem;
    line-height: 2rem;
}
br {
    font-size: 1.4rem;
    line-height: 2rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.nolist {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Proooooojekt Fotos Landingpage */
.projekt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    grid-auto-rows: 32rem;
    margin-top: 14rem;
    margin-bottom: 14rem;
}
.projekt {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.7rem;
    display: block;
}
.projekt-1 {
    grid-column: 1;
    grid-row: 1;
}
.projekt-2 {
    grid-column: 2;
    grid-row: 1;
}
.projekt-3 {
    grid-column: 1 / 3;
}

/* Say Hiiiiii Formatierung */
.hi-block {
    width: 70%;
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 2rem;
    box-sizing: border-box;
    div {
        display: flex;
        text-align: center;
        justify-content: center;
        width: 100%;
        gap: 4rem;
        margin: 0;
        padding: 0;
    }
    p {
        font-size: 1.4rem;
        line-height: 2rem;
        margin: 0;
    }
    a {
        display: flex;
        margin: 0;
        font-size: 1.4rem;
        line-height: 2rem;
    }
}

/* Ich biiiiin Svenja Formatierung */
.ichbin {
    width: 70%;
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

.gans {
    max-width: 70rem;
    margin: 0;
    padding-bottom: 2rem;
    h2 {
        padding: 0;
        margin: 3rem 0 0 0;
    }
}

footer {
    margin: 15rem auto 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    p {
        font-size: 1rem;
        line-height: inherit;
        margin: 0;
    }
    ul {
        display: flex;
        gap: 1rem;
        margin: 0;
    }
}

/* Projekt Bilder iiiiim Slider */
img {
    display: block;
    max-width: 100%;
    border-radius: 0.7rem;
}
.image-slider {
    position: relative;
    display: flex;
    align-items: center;
    .image-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: none;
        /* Damit erstes+letztes Bild auch mittig und nicht am Rand anfangen o. aufhören */
        &::before,
        &::after {
            content: "";
            width: 50%;
            flex-shrink: 0;
        }
        img {
            object-fit: cover;
            max-width: calc(100% - 10rem);
            scroll-snap-align: center;
            height: 40rem;
        }
    }
}

.rechtliches {
    width: 70%;
    max-width: 50rem;
    margin: auto;
    text-align: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    p {
        font-size: 1rem;
        line-height: inherit;
    }
    h2 {
        font-family: Helvetica, sans-serif;
        font-size: 1.8rem;
        line-height: 5rem;
    }
}

/*Mooooobile Version*/
@media (max-width: 1366px) {
    #hero {
        margin-bottom: 15rem;
    }
    .hero-text {
        top: 35%;
        font-size: 20rem;
        line-height: 0.75;
    }
}

@media (max-width: 768px) {
    #hero {
        position: relative;
        width: 100%;
        height: 70vh;
        height: 70svh;
        overflow: visible;
        padding-bottom: 15rem;
        margin-bottom: 20rem;
    }
    .hero-text {
        top: 37%;
        font-size: 13rem;
        line-height: 11rem;
    }
    .dropbtn {
        top: 1rem;
        left: 0.75rem;
        padding-left: 0.5rem;
    }
    [popover] {
        top: 2rem;
        left: 1rem;
    }
    .quer {
        right: 0rem;
    }
    footer {
        ul {
            font-size: 0.75rem;
        }
        p {
            font-size: 0.75rem;
        }
    }
    .projekt-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        margin-top: 6rem;
        margin-bottom: 17rem;
    }
    .projekt-1,
    .projekt-2,
    .projekt-3 {
        grid-column: auto;
        grid-row: auto;
    }

    h2 {
        font-size: 7rem;
        line-height: 6rem;
    }
    p {
        line-height: 1.5rem;
    }

    .hi-block div {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .image-slider .image-wrapper img {
        height: 22rem;
        width: auto;
        max-width: none;
        object-fit: cover;
    }
}
