@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-RegularItalic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-BoldItalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('../f/TWKEverett-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: 'Founders Grotesk';
    src: url('../f/FoundersGrotesk-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Founders Grotesk Text';
    src: url('../f/FoundersGroteskText-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


:root {
    /* Colors */
    --grey: #b0b0b0;
    --lightgrey: #cccccc;
    --blue: #3b70ff;

    /* Font Sizes */
    --font-small: 25px;
    --font-headline: 113px;
    --font-medium: 50px;

    /* Corner Radius */
    --corner-radius: 14px;
    --corner-radius-inner: 6px;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'TWK Everett', sans-serif;
    font-family: 'Founders Grotesk', sans-serif;
}
body {
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}
html {
}
.window-overlay {
    display: block;
    width: 77vw;
    margin: 0 auto;
}
iframe {
    border: none;
    border-radius: 0 0 7px 7px;
    translate: 0 -107%;
    /* position: absolute; */
    height: 44.35vw;
    width: 72.35vw;
    /* top: 3.7vw; */
    /* margin-left: 7.30vw; */
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
iframe.visible {
    opacity: 1;
}
.website-showcase {
    width: 75vw;
    margin: 0 auto;
    position: absolute;
}
.website-label {
    display: block;
}
.iframe-wrapper {
    display: inline-block;
    overflow: visible;
    width: 100%;
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.projekttitel {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6vw;
    position: absolute;
    top: 2.4vw;
    color: grey;
    left: calc(50% + 1vw);
    translate: -50%;
}
.cta-link {
    display: block;
    text-decoration: none;
    color: var(--grey);
    transition: 0.3s ease;
}
.cta-btn {
    background-color: black;
    width: fit-content;
    padding: 1rem 1.2rem;
    padding-bottom: 0.4rem;
    border-radius: var(--corner-radius);
    font-size: var(--font-small);
    position: fixed;
    bottom: 25px;
    left: 50%;
    translate: -50%;
    z-index: 1000;
    transition: 0.3s ease;
}
.cta-btn:hover {
    color: black;
    background-color: var(--lightgrey);
    transition: 0.3s ease;
}
.language-selector {
    padding: 1rem 1.2rem;
    padding-bottom: 0.4rem;
    border-radius: var(--corner-radius);
    background-color: var(--lightgrey);

    color: var(--grey);
    font-size: var(--font-small);
    line-height: 1;
}
.language-selector a {
    text-decoration: none;
    color: var(--grey);
    font-size: var(--font-small);
    line-height: 1;
    transition: all 0.3s ease-in-out;
}
.language-selector a:active,
.language-selector a:hover {
    color: black;
    transition: all 0.3s ease-in-out;
}
.active {
    color: black !important;
}
.video-sound-btn {
    padding: 1rem 1.2rem;
    padding-bottom: 0.4rem;
    border-radius: var(--corner-radius);
    background-color: var(--lightgrey);
    font-size: var(--font-small);
    line-height: 1;
    color: var(--grey);
    transition: all 0.3s ease-in-out;
}
.video-sound-btn:hover {
    cursor: pointer;
    color: black;
    transition: all 0.3s ease-in-out;
}
.mobile-video {
    display: none;
}
.desktop-video {
    display: block;
}
.settings-btns-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
}
.header {
    margin-bottom: 2rem;
}
.header h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}
.linkbutton {
    background-color: rgb(171, 171, 171);
    width: 45px;
    height: 45px;
    align-content: center;
    border-radius: 7px;
    justify-items: center;
    padding-left: 8px;
    padding-top: 3px;
    position: absolute;
    top: 1.45vw;
}
.btn-icon {
    width: 25px;
    filter: invert();
    margin: 0 auto;
    align-self: center;
    justify-self: center;
}
.linkbutton:hover {
    border: 1px solid blue;
    transition: 250ms ease-in-out;
    cursor: pointer;
    background-color: lightgray;
}
.iframe-link-btn {
    text-decoration: none;
}
.iframe-placefolder-container {
    /* position: absolute; */
    background-color: rgb(255, 255, 255);
    border: none;
    border-radius: 0 0 7px 7px;
    height: 44.35vw;
    width: 72.35vw;
    /* top: 3.7vw; */
    /* margin-left: 7.30vw; */
    margin: 0 auto;
    translate: 0 -208%;
    object-fit: cover;
    overflow: hidden;
}
.iframe-placeholder {
    object-fit: cover;
    width: 103%;
    height: 103%;
    filter: blur(15px);
    translate: -1.5% -1.5%;
}
.activate-iframe-btn {
    background-color: none;
    position: absolute;
    width: 72.35vw;
    height: 100%;
    align-content: center;
    border-radius: 7px;
    justify-items: center;
    padding-top: 3px;
    top: 50%;
    translate: 0 -50%;
    margin-left: 7.30vw;
}
.iframe-btn-icon {
    display: block;
    width: 60px;
    filter: invert();
    margin: 0 auto;
    align-self: center;
    justify-self: center;
}
.activate-iframe-btn:hover {
    cursor: pointer;
}
.menubar {
    position: fixed;
    top: 0;
    left: 0;
    width: fit-content;
    padding: 25px;
    z-index: 1000;
}
.menu-buttons {
    display: flex;
    align-items: center;
    position: relative;
}
.menu-buttons li {
    list-style: none;
}
.menubuttons-wrapper {
    display: flex;
    gap: 0;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: var(--corner-radius);
    backdrop-filter: blur(15px);
    position: absolute;
    left: 100%;
    top: 0;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition: all 0.3s ease-in-out;
    padding: 0;
    width: fit-content;
}
.menu-buttons:hover .menubuttons-wrapper {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.sliding-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--lightgrey);
    border-radius: var(--corner-radius);
    transition: none;
    pointer-events: none;
    z-index: 1;
}
.sliding-bg.transitioning {
    transition: left 0.3s ease-out, width 0.3s ease-out;
}
.menubutton {
    background-color: transparent;
    border: none;
    border-radius: var(--corner-radius-inner);
    padding: 1rem 1.2rem;
    padding-bottom: 0.4rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    width: fit-content;
}
.menubutton.active {
    color: white;
    mix-blend-mode: difference;
}
.menubutton.active a {
    color: white;
}
.menubutton a {
    text-decoration: none;
    color: black;
    font-size: var(--font-small);
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.menubutton:hover ~ .sliding-bg {
    background-color: var(--grey);
}
.menubutton[data-text="Work"]:hover ~ .sliding-bg {
    left: 0;
    width: 100px;
}
.menubutton[data-text="Experience"]:hover ~ .sliding-bg {
    left: 100px;
    width: 120px;
}
.menubutton[data-text="Studio"]:hover ~ .sliding-bg {
    left: 220px;
    width: 100px;
}
ul {
    padding: 0;
}
.logo {
    display: block;
    width: 35px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(62%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(95%);
}
.homebutton {
    background-color: var(--lightgrey);
    border: none;
    border-radius: var(--corner-radius);
    padding: 1rem 1.2rem;
    cursor: pointer;
    margin-right: 25px;
    transition: 250ms ease-in-out;
}
.homebutton:hover {
    background-color: var(--grey);
    transition: 250ms ease-in-out;
}
.homebutton:hover .logo {
    filter: brightness(30%) saturate(100%) invert(100%) sepia(0%) saturate(7495%) hue-rotate(180deg) brightness(103%) contrast(103%);
    transition: 250ms ease-in-out;
}

/* Banner Styles */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-bottom: 4rem;
    background-color: var(--lightgrey);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* scroll-snap-align: start; */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: 1fr auto;
    gap: 25px;
    padding: 25px;
    z-index: 2;
}

.banner-headline {
    margin-top: 45px;
    display: flex;
    justify-content: space-between;
    grid-column: 1 / span 9;
    grid-row: 1;
    color: white;
    text-transform: uppercase;
    font-size: var(--font-headline);
    line-height: 1;
    font-weight: unset;
    align-self: center;
}

.banner-year {
    font-size: var(--font-medium);
    line-height: 1;
    font-weight: unset;
    color: rgba(255, 255, 255, 0.5);
    /* backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); */
    margin-left: 5px;
}

.banner-tags {
    grid-column: 1 / span 8;
    grid-row: 2;
    display: flex;
    gap: 25px;
}

.banner-tags .solutions,
.banner-tags .sectors {
    display: flex;
    gap: 25px;
}

.banner-tags .tag {
    color: white;
    text-decoration: none;
    font-size: var(--font-small);
    padding: 1rem 1.2rem;
    padding-bottom: 0.4rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--corner-radius-inner);
    transition: all 0.3s ease-in-out;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.sectors .tag {
    border-radius: var(--corner-radius);
}
.solutions .tag {
    border-radius: var(--corner-radius);
}
.key-info-block {
    height: 80vh;
    align-content: center;
    /* scroll-snap-align: start; */
}

.banner-tags .tag:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Project Template Styles */
.content {
    padding: 0 125px;
    margin: 0 auto;
}

.content .headline {
    font-size: var(--font-headline);
    text-transform: uppercase;
    margin-bottom: 2rem;
    grid-column: 3 / -1;
}

.content .intro {
    font-size: var(--font-medium);
    line-height: 1.4;
    margin-bottom: 4rem;
    grid-column: 3 / -1;
}

/* Ensure blocks have proper spacing */
.content > * + * {
    margin-top: 0;
}

/* Gallery Block */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 4rem 0;
}

.gallery-item {
    margin: 0;
    position: relative;
    max-height: 650px;
    overflow: hidden;
    border-radius: var(--corner-radius);
}

/* Gallery item sizes */
.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--full {
    grid-column: 1 / -1;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    color: black;
    font-size: var(--font-small);
    border-radius: var(--corner-radius);
    width: fit-content;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 2;
    white-space: nowrap;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}
.honeypot {
    position: absolute;
    left: -9999px;
}
.vimeo-vid {
    width: 100%;
    object-fit: cover;
    display: block;
}
.vimeo-container {
    border-radius: var(--corner-radius);
    overflow: hidden;
    height: fit-content;
}
.videocontrols-container {
    padding: 1rem;
    translate: 0 -100%;
}
.vimeo-controls {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    border-radius: var(--corner-radius-inner);
}
.contact-btns-container .headline-text .line {
    line-height: 1.15 !important;
}

@media (max-width: 768px) {
    .videocontrols-container {
        display: none;
    }
    .settings-btns-wrapper {
        right: 25px;
        top: 68px;
        width: fit-content;
        flex-direction: column;
        gap: 8px;
        text-align: right;
        align-items: flex-end;
    }
    .language-selector {
        padding: 10px 15px;
        padding-bottom: 0.25rem;
        line-height: unset !important;
        width: fit-content;
    }
    .video-sound-btn {
        padding: 10px 15px;
        padding-bottom: 0.25rem;
    }
    .cta-btn {
        padding: 10px 15px;
        padding-bottom: 0.25rem;
        width: calc(100% - 50px);
        text-align: center;
    }
    .work-projects-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
    }
    .work-projects-flex::after {
        display: none !important;
    }
    .cardlink {
        padding: 10px 15px !important;
        padding-bottom: 0.25rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    /* .language-selector a {
        padding: 0.5rem 1rem;
        padding-bottom: 0.25rem;
    } */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item--wide,
    .gallery-item--full {
        grid-column: 1 / -1;
    }
    .menubar {
        width: fit-content;
    }
    
    .menu-buttons {
        width: fit-content;
    }
    
    .menubuttons-wrapper {
        opacity: 1;
        transform: unset;
        pointer-events: auto;
        position: relative;
        left: unset;
        top: unset;
        -webkit-backdrop-filter: blur(15px);
    }
    
    .homebutton {
        padding: 10px 15px;
    }
    
    .menubutton {
        padding: 10px 15px;
    }
    
    .logo {
        height: 20px;
    }
    .banner-tags .tag {
        padding: 10px 15px;
    }
    .banner-tags {
        flex-wrap: wrap;
        gap: 10px;
    }
    .banner-tags .solutions {
        gap: 10px;
        flex-wrap: wrap;
    }
    .banner-tags .sectors {
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--corner-radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: var(--grey);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
    font-size: var(--font-small);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
strong {
    font-weight: normal;
    color: var(--grey);
}
.headline-text {
    font-size: var(--font-headline);
}
.mobileoverlay {
    display: none;
}
.desktopoverlay {
    display: block;
}

/* Imprint Styles */
/* .imprint-content {
    grid-column: 3 / -1;
    font-size: var(--font-small);
    line-height: 1.6;
    max-width: 600px;
} */

/* .imprint-content .address {
    margin-bottom: 2rem;
}

.imprint-content .text {
    white-space: pre-wrap;
} */

@media (max-width: 768px) {
    /* .content {
        padding: 0 1rem;
    } */
    :root {
        /* Colors */
        --grey: #b0b0b0;
        --lightgrey: #cccccc;
        --blue: #3b70ff;
    
        /* Font Sizes */
        --font-small: 15px;
        --font-headline: 113px;
        --font-medium: 25px;
    
        /* Corner Radius */
        --corner-radius: 8px;
        --corner-radius-inner: 6px;
    }
    .content {
        padding: 0 25px;
        margin: 0 auto;
    }
    .menubar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px;
        z-index: 1000;
    }
    .menu-buttons {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .menubuttons-wrapper {
        position: relative;
        left: auto;
        top: auto;
        opacity: 1;
        transform: none;
        pointer-events: all;
        background-color: rgba(255, 255, 255, 0.35);
        border-radius: var(--corner-radius);
        backdrop-filter: blur(15px);
        display: flex;
        gap: 0;
        padding: 0;
        width: fit-content;
        overflow: hidden;
    }
    .menubutton {
        /* padding: 0.5rem 1rem; */
        padding-bottom: 0.25rem;
    }
    .menubutton.active {
        /* color: var(--blue); */
        color: black;
        mix-blend-mode: unset;
    }
    .menubutton.active a {
        /* color: var(--blue); */
        color: black;
    }
    .sliding-bg {
        background-color: rgba(255, 255, 255, 0.8);
    }
    .homebutton {
        /* padding: 0.5rem 1rem; */
        margin-right: 0;
    }
    .logo {
        height: 15px;
    }
    .banner-tags .tag {
        /* padding: 0.5rem 1rem; */
        padding-bottom: 0.25rem;
    }
    .banner-tags {
        flex-wrap: wrap;
        gap: 10px;
    }
    .banner-tags .solutions {
        gap: 10px;
        flex-wrap: wrap;
    }
    .banner-tags .sectors {
        gap: 10px;
        flex-wrap: wrap;
    }
    .mobileoverlay {
        display: block;
        width: 100%;
        pointer-events: none;
    }
    .desktopoverlay {
        display: none;
    }
    .iframe-wrapper {
        /* display: none; */
        z-index: 1;
        position: relative;
        margin-top: 2rem;
    }
    .iframe-placefolder-container {
        height: 84%;
        width: 100%;
        z-index: -1;
        position: relative;
        top: 96px;
        transform-origin: top;
        border-radius: 50px;
    }
    .iframe-placeholder {

    }
    .activate-iframe-btn {
        height: 50%;
        padding-top: 0;
        translate: 0 -61%;
        margin-left: 0;
        width: 100%;
    }
    iframe {
        height: 170.1vw;
        width: 100%;
        z-index: -1;
        position: relative;
        pointer-events: all;
        top: 0;
        translate: 0 -101%;
        transform-origin: top;
        border-radius: 0 0 50px 50px;
    }
    .projekttitel {
        display: none;
    }
    .banner-headline {
        /* width: 85%; */
        font-size: 40px;
        hyphens: auto;
    }
    .headline-text {
        width: 100%;
        font-size: 40px;
        line-height: 1;
    }
    .website-label {
        /* display: none; */
    }
    .work-projects-flex {
        width: 100% !important;
        translate: unset !important;
    }
    .key-info-block {
        height: 45vh;
    }
    .mobile-video {
        display: block;
    }
    .desktop-video {
        display: none;
    }
    .gallery-item {
        max-height: 270px;
    }
}
@media (min-width: 2000px) {
    .gallery-item {
        max-height: 900px;
    }
}
/* @media (min-width: 1500px) {
    .gallery-item {
        max-height: 650px;
    }
} */