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

html {
    font-size: 16px;
}

:root {
    /*farben
    ein sylesheet für basisstile und eines für spezifische seiten*/
    --text: #30261e;
    --background: white;
    --accent: #0062ff;
    --mutedbackground: lightgrey;
    --darkaccent: #929191;
}

body {
    font-family: geist, Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: var(--text);
}

main {
    margin-top: 5.75rem;

    @media (max-width: 680px) {
        margin-top: 3.75rem;
    }
}

h1 {
    font-size: 5rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
    font-weight: inherit;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem;
    color: var(--darkaccent);
    font-weight: inherit;
    line-height: 1.25;
    margin-top: -0.8rem;
}

h4 {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: inherit;
}

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

@media (max-width: 680px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }
    h3 {
        font-size: 1.25rem;
        margin-bottom: -0.8rem;
    }
    h4 {
        font-size: 1rem;
    }
    p {
        font-size: 1rem;
    }
}

.ds-grain {
    background-image: url("../../assets/grain.svg");
    background-color: var(--mutedbackground);
    background-position: center;
    background-repeat: repeat;
    padding: 5rem 6rem;
    margin: 0rem 5.6rem;
    border-left: 2px solid var(--text);
    border-right: 2px solid var(--text);

    @media (max-width: 680px) {
        padding: 1rem 1.5rem;
        margin: 0rem 2rem;
    }
}

.ds-line-block {
    border-top: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    z-index: 999;
}

.ds-intro {
    display: block;
    padding: 6rem;

    @media (max-width: 680px) {
        padding: 3rem;
    }
}

.datenschutz {
    h1 {
        margin-bottom: 5rem;
        line-height: 1;
    }
    h2 {
        margin-top: 20px;
        margin-bottom: 0px;
        color: var(--accent);
    }
    h3 {
        color: var(--text);
        margin-top: 0px;
        margin-bottom: 0px;
    }
    h4 {
        margin-bottom: -1rem;
    }
    p {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    li {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-top: 0rem;
        margin-bottom: 0%;
        margin-left: 2rem;

        @media (max-width: 680px) {
            font-size: 1rem;
            line-height: 1.5;
            margin-top: 0rem;
            margin-bottom: 0%;
            margin-left: 1rem;
        }
    }

    ul {
        list-style: outside "+  ";
        padding-left: -2rem;
    }

    h2,
    h3,
    [id] {
        scroll-margin-top: 6rem;
    }
}

.cta_button {
    border: 2px solid var(--text);
    line-height: inherit;
    padding: 0 10px;
    margin-top: 20px;
    font-size: 20px;
    border-radius: 25px;
    border-color: var(--text);
    background-color: transparent;
    color: var(--text);
    transition: 0.4s ease-out;

    @media (max-width: 680px) {
        font-size: 16px;
    }
}

.cta_button:hover {
    background-color: var(--accent);
    color: var(--background);
}

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

.dotted {
    color: var(--text);
    line-height: inherit;
    font-size: 24px;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.3rem;
    font-style: normal;
    text-decoration-color: var(--darkaccent);
    transition: 0.4s ease-out;
}

@media (max-width: 680px) {
    .dotted {
        font-size: 1rem;
    }
}

.dotted:hover {
    text-decoration-color: var(--accent);
    color: var(--accent);
    text-underline-offset: 0.15rem;
}

.home-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 1.25rem;
    padding-left: 4.75rem;
    border-bottom: 2px solid var(--text);
    background-color: var(--background);
    z-index: 900;

    img {
        height: 2rem;
    }

    @media (max-width: 680px) {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
        padding-left: 2rem;

        img {
            height: 1.5rem;
        }
    }
}

.nav-bar {
    position: fixed;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    top: 0;
    width: 100%;
    border-bottom: 2px solid var(--text);
    padding-top: 2rem;
    padding-bottom: 1.25rem;
    padding-left: 6rem;
    padding-right: 6rem;
    background-color: var(--background);
    z-index: 900;

    img {
        height: 2rem;
    }

    @media (max-width: 680px) {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
        padding-left: 3.5rem;
        padding-right: 3.5rem;

        img {
            height: 1.5rem;
        }
    }
}

#side-nav {
    margin: 0px;
    padding-right: 50px;
    position: fixed;
    top: 15rem;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    mix-blend-mode: multiply;
    list-style-type: none;
    color: var(--text);
    font-size: 5em;
    z-index: 999;

    @media (max-width: 680px) {
        top: 10rem;
        font-size: 2.5em;
        gap: 6rem;
    }
}

#side-nav-element {
    transform: rotate(-90deg);
    transform-origin: right top;
    margin-right: 2.4rem;

    @media (max-width: 680px) {
        margin-right: -0.4rem;
    }
}

#side-nav-element:hover {
    color: var(--accent);
    transition: 0.3s ease-out;
}

#side-nav-element:hover::after,
.side-nav-element-active::after {
    content: "";
    position: absolute;
    display: block;
    top: -1.15rem;
    left: 37%;
    width: 2rem;
    height: 2rem;
    background-image: url("../../assets/logo/logo_element.svg");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 901;

    @media (max-width: 680px) {
        top: -1.3rem;
    }
}

@media (max-width: 680px) {
    #side-nav-element:hover::after,
    .side-nav-element-active::after {
        transform: scale(0.6);
        transform-origin: center;
    }
}

.header-desktop {
    display: block;
}
.header-mobile {
    display: none;
}

@media (max-width: 680px) {
    .header-desktop {
        display: none;
    }
    .header-mobile {
        display: block;
    }
}

.bottom-line-block {
    border-bottom: 2px solid var(--text);
    z-index: 1;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.teaser-project {
    margin: 30px 0px 70px;
}

.hover-project h2 {
    color: var(--text);
}

.hover-project:hover h2 {
    color: var(--accent);
    transition: 0.4s ease-out;
}

.hover-project h3 {
    color: var(--darkaccent);
}

.hover-project:hover h3 {
    color: var(--accent);
    transition: 0.4s ease-out;
}

.textblock {
    display: flex;
    gap: 20px;
    background-image: url("../../assets/grain.svg");
    background-color: var(--mutedbackground);
    background-position: center;
    background-repeat: repeat;
    padding: 4% 5%;
    margin: 0px 90px;
    border: 2px solid var(--text);
    border-bottom: none;
    border-top: none;
    z-index: -1;

    @media (max-width: 680px) {
        padding: 1rem 1rem;
        margin: 0px 3rem;
    }
}

.textblock.wrap {
    flex-wrap: wrap;
}

.box {
    flex: 1 1 300px;
    background-image: none;
}

.textblock-white {
    display: flex;
    gap: 20px;
    padding: 5%;
    margin: 10px 10px 10px 10px;
    z-index: 1;
}

.textblock-white.wrap {
    flex-wrap: wrap;
}

.project-block {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    background-image: url("../../assets/grain.svg");
    background-color: var(--mutedbackground);
    background-position: center;
    background-repeat: repeat;
    margin: 0px 90px;
    border-left: 2px solid var(--text);
    border-right: 2px solid var(--text);
    z-index: -1;
    overflow: hidden;
    img {
        margin: 0;
        padding: 0;
        width: 100%;
        height: auto;
        border-left: 2px solid var(--text);
        @media (max-width: 1100px) {
            border-left: none;
            border-bottom: 2px solid var(--text);
        }
    }
    @media (max-width: 680px) {
        margin: 0px 3rem;
    }
}

.project-block:hover {
    img {
        transform: scale(1.1);
        transition: 0.5s ease-out;
    }
}

.project-image {
    overflow: hidden;
    border-left: 2px solid var(--text);
    display: flex;
    flex: 0 0 50%;
    justify-content: flex-end;

    img {
        width: 100%;
        height: auto;
        transform: scale(1.05);
        transition: 0.3s ease;
    }
    @media (max-width: 1100px) {
        border-left: none;
        border-bottom: 2px solid var(--text);
    }
}

.project-title {
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: left;
}

@media (max-width: 1100px) {
    .project-block {
        flex-direction: column;
    }

    .teaser-project {
        text-align: left;
        width: 100%;
    }

    .project-title {
        padding-left: 1rem;
    }

    .project-block img {
        width: 100%;
    }
}

.box.spaced {
    flex: 1 0 auto;
}

.box2.spaced {
    flex: 1 0 content;
    flex-grow: 2;
}

.line-block {
    border-top: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    z-index: 0;
}

details {
    justify-items: center;
    padding-top: 10px;
}

summary {
    list-style: none;
    position: relative;
    cursor: pointer;

    & span {
        opacity: 0%;
        margin-left: -50%;
        z-index: -1;
    }
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "";
    display: inline-block;
    width: 2em;
    height: 2em;
    background-image: url("../../assets/icons/plus.svg");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: 0.05s ease-out;

    @media (max-width: 680px) {
        width: 1.5em;
        height: 1.5em;
    }
}

details:not([open]) summary:hover::before {
    background-image: url("../../assets/icons/plus_hover.svg");
}

details[open] summary::before {
    background-image: url("../../assets/icons/minus.svg");
}

details[open] summary:hover::before {
    background-image: url("../../assets/icons/minus_hover.svg");
}

.image-slider {
    margin: 0rem 0rem;
    position: relative;
    display: flex;
    align-items: end;
    background-color: var(--text);

    @media (max-width: 680px) {
        margin: 0rem 0rem;
    }

    .image-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 2px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;

        &::before,
        &::after {
            content: "";
            width: calc(5.6rem + 1px);
            background-color: var(--background);
            flex-shrink: 0;

            @media (max-width: 680px) {
                width: 3rem;
                flex-shrink: none;
            }
        }

        img {
            object-fit: cover;
            max-width: calc(100% - 12rem);
            scroll-snap-align: center;
            scroll-snap-stop: always;

            @media (max-width: 680px) {
                height: 300px;
                max-width: calc(100% - 2rem);
            }
        }
    }

    button {
        position: absolute;
        cursor: pointer;
        border: 2px solid var(--text);
        line-height: inherit;
        padding: 0 0.75rem;
        margin-bottom: 350px;
        font-size: 1.5rem;
        border-radius: 25px;
        border-color: var(--text);
        background-color: var(--background);
        color: var(--text);
        transition: 0.3s ease-in;

        @media (max-width: 680px) {
            margin-bottom: 1rem;
        }

        &:hover {
            background-color: var(--accent);
            color: var(--background);
        }

        &.previous-image {
            left: 4.3rem;

            @media (max-width: 680px) {
                left: 1rem;
            }
        }

        &.next-image {
            right: 4.3rem;

            @media (max-width: 680px) {
                right: 1rem;
            }
        }
    }
}

.teaser {
    margin: 15rem 5rem 5rem;
    display: flex;
    justify-content: space-evenly;
    justify-items: center;
    gap: 1rem;
    flex-wrap: wrap;

    @media (max-width: 680px) {
        margin: 8rem 3rem 3rem;
    }
}

.teaser-gallery {
    display: flex;
    flex-direction: column;
    width: 40vh;
    border: 2px solid var(--text);
    padding-bottom: 2rem;
    background-image: url("../../assets/grain.svg");
    background-color: var(--mutedbackground);
    background-position: center;
    background-repeat: repeat;

    h2,
    h3 {
        margin-left: 1rem;
    }

    img {
        max-width: 100%;
    }
}

.teaser-gallery:hover img {
    transform: scale(1.1);
    transition: 0.3s ease-out;
}

.teaser-gallery h3 {
    color: #929191;
}

.teaser-gallery:hover h2,
.teaser-gallery:hover h3 {
    color: #0062ff;
    transition: 0.4s ease-out;
}

.teaser-image {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--text);
    overflow: hidden;

    img {
        transform: scale(1.05);
        transition: 0.5s ease-out;
    }
}

.cta-teaser {
    text-align: center;

    button {
        margin: 6rem auto 10rem;

        @media (max-width: 680px) {
            margin-top: 3rem;
            margin-bottom: 5rem;
        }
    }
}
