body {
    font-family: univers-next-pro, sans-serif;
    margin: 0 1rem;
    line-height: 1.25;
    font-weight: 400;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0.5rem;
    width: 95%;
    z-index: 99;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-mobile {
    width: 15em;
    z-index: 99;
}

/* Logo-Wrapper: beide Logos übereinander stapeln */
.logo-wrapper {
    position: relative;
    width: 15em;
    height: auto;
}

.logo .logo-mit,
.logo .logo-ohne {
    display: block;
    transition: opacity 0.4s ease;
}

.logo .logo-mit {
    opacity: 1;
    position: relative; /* nimmt den Platz ein */
}

.logo .logo-ohne {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.header-scrolled .logo .logo-mit {
    opacity: 0;
}

.header-scrolled .logo .logo-ohne {
    opacity: 1;
}

h1 {
    display: none;
}

h2 {
    font-weight: 400;
    font-size: 2rem;
    margin-top: 1.5rem;
}

h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-block-start: 0;
    margin-block-end: 0;
}

h4 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    padding-bottom: 0.5rem;
}

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

video,
iframe {
    width: 100%;
}

li {
    list-style-type: none;
}

.logo-link {
    display: block;
}

.menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    width: 1rem;
    margin-top: 0.45rem;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: black;
    transform-origin: center;
}

.menu-toggle:checked+.logo .menu-button {
    gap: 0;
}

.menu-toggle:checked+.logo .menu-button span:nth-child(1) {
    margin-top: 0.45rem;
    transform: rotate(45deg);
}

.menu-toggle:checked+.logo .menu-button span:nth-child(2) {
    display: none;
}

.menu-toggle:checked+.logo .menu-button span:nth-child(3) {
    margin-top: -2px;
    transform: rotate(-45deg);
}

.menu {
    display: none;
    width: 100vw;
    margin-top: 1rem;
    margin-left: -1rem;
    padding: 1rem;
    box-sizing: border-box;
    background: white;
}

.menu-toggle:checked~.menu {
    display: block;
    margin-top: -3.5rem;
    padding-top: 4.5rem;
}

.menu a {
    font-weight: 400;
    margin: 0 0 0.5em;
    display: block;
}

.menu a:hover {
    font-style: italic;
    text-decoration: underline;
}

.description p {
    font-size: 1.5rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.container {
    width: 100%;
    padding-left: 0;
    gap: 0.5rem;
    overflow-x: scroll;
    padding-bottom: 1em;
}

.container .item {
    flex: 0 0 24%;
}

.kontakt {
    padding-bottom: 5em;
}

.kontakt p {
    font-size: 1.5rem;
}

.impressum {
    margin-bottom: 1rem;
}

.impressum a {
    padding-right: 1rem;
    display: block;
}

a,
a:visited {
    text-decoration: none;
    color: black;
}

.partner a {
    display: inline-block;
    padding-right: 2em;
}

.partner {
    padding-bottom: 15em;
}

.projekte .grid {
    margin: 0 -1rem;
}

.projekte .grid .item {
    position: relative;
    display: flex;
}

.projekte .grid .item .text a,
.projekte .grid .item .text .sub a {
    position: absolute;
    left: 1rem;
    top: 1rem;
    right: 1rem;
    font-weight: 400;
}

.projekte .grid .item .text a {
    color: white;
    font-weight: bold;
    pointer-events: none;
}

.projekte .grid .item .text a.sub {
    top: initial;
    bottom: 1.5rem;
    left: 1rem;
    font-size: 0.75rem;
}

.teambild {
    border: 1px solid black;
    width: 100%;
    height: 15rem;
    margin: 1rem 0;
}

@media screen and (min-width: 800px) {
    h2 {
        padding-top: 2.5rem;
    }

    .site-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .logo {
        order: 2;
        margin-left: auto;
    }

    .menu-toggle,
    .menu-button {
        display: none;
    }

    .logo-desktop,
    #logo {
        display: block;
    }

    #logo {
        width: 10em;
        z-index: 99;
    }

    .menu {
        display: block;
        width: auto;
        margin: 0;
        padding: 0.3em 0 0 0;
        background: transparent;
    }

    .projekte .grid {
        display: flex;
        flex-direction: row;
        gap: 1em;
        margin: 0;
        margin-bottom: 1em;
        align-items: flex-start;
    }

    .projekte .grid .col {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .projekte .grid .item {
        break-inside: avoid;
        display: block;
        position: relative;
        margin: 0;
    }

    .projekte .grid .item img,
    .projekte .grid .item video {
        display: block;
        width: 100%;
        height: auto;
    }


    .projekte .grid .item .text a {
        display: none;
        font-size: 0.75em;
    }

    .projekte .grid .item .text a.sub {
        font-size: 0.5em;
    }

    .projekte .grid .item:hover img,
    .projekte .grid .item:hover video {
        filter: brightness(55%);
    }

    .projekte .grid .item:hover .text a {
        display: block;
        font-weight: normal;
    }

    .description p {
        padding-right: 50%;
        padding-top: 15rem;
    }

    .menu a {
        display: inline-block;
        margin: 0 2em 0.5em 0;
    }

    .kontakt p {
        padding-right: 50%;
    }

    .container {
        display: flex;
    }

    .container .item {
        text-align: center;
    }
}

@media screen and (min-width: 1000px) {
    body {
        max-width: 1000px;
        margin: 0 auto;
    }

    .site-header {
        max-width: 1000px;
        margin: 0 auto;
    }
}