@font-face {
    font-family: 'Lauer Regular';
    src: url(LOBLauer-Regular.woff2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --stroke: 4px;
    --grey: #CBCBCB;
    --yello: #FFF400;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Lauer Regular', Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 7vw, 8rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--grey);
    background: #CCC;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: normal;
    font-size: inherit;
}

a,
.outline {
    color: var(--grey);
    text-decoration: none;
    -webkit-text-stroke: var(--stroke) black;
    paint-order: stroke fill;
}

a:hover {
    color: var(--yello);
}

a.active {
    color: black;
}

a.inline,
span.inline {
    display: inline-block !important;
}

.home-link {
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 4rem;
}

.text {
    color: black;
}

.text a {
    display: inline-block;
}

.stroke {
    -webkit-text-stroke: var(--stroke) black;
    paint-order: stroke fill;
}

img {
    max-width: 100%;
}

img.project-image {
    display: block;
    margin: 0 auto;
}

img.project-image.max {
    max-height: 90vh;
}

ul {
    list-style: none;
}

.list ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.list ul li {
    margin-bottom: 2rem;
}

.list ul li::before {
    content: '•';
    margin-right: 0.2em;
    display: inline-block;
    vertical-align: middle;
}

.global-teaser {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-teaser.teaser-objects {
    z-index: 100;
}

.global-teaser img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.global-teaser.teaser-objects img {
    width: 90vw;
    height: 95vh;
    object-fit: contain;
    display: block;
}



.hero img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 95vh;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    z-index: 100;
}

nav a:first-of-type {
    text-align: left;
}

nav a:last-of-type {
    text-align: right;
}

main.content {
    margin-top: 6rem;
    padding: 1.5rem;
}

.right {
    text-align: right;
}

.mitte {
    text-align: center;
}

.project-text {
    margin: 1rem 0;
}

.project-text p+p {
    margin-top: 2rem;
}

.specs-text {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

figcaption {
    margin-top: 1rem;
}

.small,
figcaption {
    font-size: 3.5vw;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 3rem 0;
}

p.sub {
    margin-bottom: 3rem;
}

#slider {
    display: flex;
    width: 100vw;
    height: 100vh;
    flex-direction: row;
}

.slider-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

@media (max-width: 768px) {
    #slider {
        flex-direction: column;
        height: 100dvh;
    }

    .slider-half {
        width: 100%;
        height: 50%;
    }
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    position: absolute;
    bottom: 0.75rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    font-size: 3.5vw;
}

.fill-link {
    display: inline-block;
    white-space: normal;
}

.count {
    text-align: right;
    white-space: nowrap;
    font-family: inherit;
    color: var(--grey);
    -webkit-text-stroke: var(--stroke) black;
    paint-order: stroke fill;
}

.fill-wrapper {
    position: relative;
    display: inline-block;
    white-space: normal;
}

.fill-base {
    color: var(--grey);
    -webkit-text-stroke: var(--stroke) black;
    paint-order: stroke fill;
    position: relative;
    z-index: 1;
}

.fill-anim::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    white-space: normal;
    color: transparent;
    background: linear-gradient(to right, var(--yello) 100%, transparent 0%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    pointer-events: none;
    z-index: 2;
    animation-play-state: paused;
}

.fill-anim.animating::after {
    animation: fillText var(--fill-duration) linear forwards;
    animation-play-state: running;
}

.fill-anim.paused::after {
    animation-play-state: paused !important;
}

@keyframes fillText {
    from {
        background-size: 0% 100%;
    }

    to {
        background-size: 100% 100%;
    }
}

figure {
    margin-top: 1rem;
}


.gallery-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-row figure {
    flex: 0 0 auto;
    margin: 0;
}

.gallery-row img.project-image {
    width: auto;
    max-width: none;
    height: 90vh;
    max-height: 90vh;
    display: block;
    margin: 0;
}




.mobile-nav {
    display: none;
}

.desktop {
    display: block !important;
}

.mobile {
    display: none !important;
}

@media only screen and (max-width: 800px) {

    .desktop {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }

    span.mobile {
        display: inline-block;
    }

    :root {
        --stroke: 2px;
    }

    html,
    body {
        height: 100dvh;
    }

    nav {
        display: none;
    }

    body {
        font-size: 34px;
        line-height: normal;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 100;
        animation: spin 0.8s ease-out 1;
    }

    @keyframes spin {
        from {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        to {
            transform: translate(-50%, -50%) rotate(720deg);
        }
    }


    main.content {
        margin-top: 0;
        padding: 1rem;
    }

    .title {
        font-size: 34px;
    }

    .small,
    figcaption {
        font-size: 26px;
    }

    .title.mobile-top {
        top: 1rem;
        bottom: auto;
        align-items: flex-start;
    }

    .stroke {
        -webkit-text-stroke: 0px;
    }

    figure {
        margin-top: 1rem;
    }

    .project-text p+p {
        margin-top: 1rem;
    }

    .home-link {
        margin: 1rem 0;
    }

    .two-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem 0;
    }

    .gallery-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .gallery-row figure {
        max-width: 100%;
    }

    .gallery-row img.project-image {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

@media only screen and (min-width: 2200px) {
    main.content {
        margin-top: 12rem;
    }
}