/* LOKALER FONT IMPORT */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: local(''),
         url('../fonts/open-sans-v44-latin_latin-ext-600.woff2') format('woff2');
    font-display: swap;
}

:root {
    --dark: #323647;    
    --light: #f2eee4;   
    --aqua: #216477;    
    --taupe: #b6ad9e;   
}

* { 
    box-sizing: border-box; 
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600; 
    -webkit-font-smoothing: antialiased;
    width: 100%;
    position: relative;
    font-size: 1.1rem; 
    line-height: 1.6;
}

body { 
    overflow-x: clip; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease; 
}

/* TYPOGRAFIE SYSTEM */
h1, .h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--taupe);
    margin: 0 0 30px 0;
    font-weight: 600;
}

h2, .h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--taupe);
    margin: 0 0 30px 0;
    font-weight: 600;
}

p { 
    margin: 0 0 20px 0; 
}

.highlight-taupe { 
    color: var(--taupe); 
}

/* Text Links */
.text-link {
    color: var(--light);
    border: none;
    transition: color 0.3s ease;
}

.text-link:hover { 
    color: var(--taupe); 
}

.taupe-link {
    color: var(--taupe);
    border: none;
    transition: color 0.3s ease;
}

.taupe-link:hover { 
    color: var(--light); 
}

/* HEADER & NAVI */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    z-index: 1000;
}

.logo {
    font-size: 2rem; 
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
}

.logo-short {
    display: none;
}

.menu-toggle {
    display: none;
}

nav { 
    display: flex; 
    align-items: baseline; 
}

nav a {
    margin-left: 35px;
    font-size: 1.2rem; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light);
}

nav a:hover, nav a.active { 
    color: var(--taupe); 
}

/* LANGUAGE SWITCHER */
.lang-switch {
    margin-left: 35px;
    display: inline-flex;
    align-items: center; 
    white-space: nowrap;
}

.lang-switch a, .lang-switch span { 
    margin-left: 0; 
    font-size: 1.2rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1.5px; 
    line-height: 1; 
}

.lang-switch span {
    margin-right: -1.5px; 
}

.lang-active { 
    color: var(--taupe); 
}

.lang-inactive { 
    color: var(--light); 
    transition: color 0.3s ease; 
}

.lang-inactive:hover { 
    color: var(--taupe); 
}

/* MAIN LAYOUT (Mit Seiten-Padding Fix) */
main {
    padding-top: 140px; 
    padding-left: 60px;
    padding-right: 60px;
    min-height: calc(100vh - 100px);
}

/* WORK GRID & FILTER */
.filter-nav { 
    display: flex; 
    column-gap: 30px; 
    row-gap: 15px; 
    margin-bottom: 60px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.filter-btn { 
    appearance: none; 
    background: transparent; 
    border: none; 
    font-family: 'Open Sans', sans-serif; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--light); 
    cursor: pointer; 
    font-weight: 600; 
    padding: 0; 
}

.filter-btn:hover, .filter-btn.active { 
    color: var(--taupe); 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px; 
    width: 100%; 
}

.project-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%; 
}

.card-media { 
    display: block; 
    width: 100%; 
    aspect-ratio: 16/9; 
    border: none; 
    overflow: hidden; 
    background: #000; 
    transition: transform 0.4s ease; 
}

.card-media:hover { 
    transform: scale(1.02); 
}

.card-media img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.project-title-link { 
    margin-top: 25px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-size: 1.1rem; 
    color: var(--light); 
    text-align: center; 
    display: inline-block; 
}

.project-title-link:hover { 
    color: var(--taupe); 
}

/* SUBPAGES & VIDEO OVERLAY */
.case-study-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.case-study-title-block { 
    text-align: center; 
    margin-bottom: 60px; 
    width: 100%; 
    max-width: 100%; 
    padding: 0 20px; 
}

.case-study-tags { 
    color: var(--taupe); 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.media-wrapper { 
    width: 100%; 
    max-width: 100%; 
    aspect-ratio: 16/9; 
    background: #000; 
    margin-bottom: 60px; 
    border: none; 
    position: relative; 
    overflow: hidden; 
}

.video-placeholder-container { 
    width: 100%; 
    height: 100%; 
    position: relative; 
    cursor: pointer; 
    display: block; 
}

.video-thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 1; 
    transition: none; 
    display: block; 
}

.video-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 10; 
}

.play-icon { 
    width: 80px; 
    height: 80px; 
    max-width: 20vw; 
    max-height: 20vw; 
    fill: var(--light); 
    margin-bottom: 15px; 
    transition: fill 0.3s ease, transform 0.3s ease; 
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
}

.privacy-text { 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 1.1rem; 
    color: var(--light); 
    background: rgba(0,0,0,0.4); 
    padding: 10px 20px; 
    border-radius: 4px; 
    text-align: center; 
    max-width: 90%; 
    transition: color 0.3s ease, background 0.3s ease; 
}

.video-placeholder-container:hover .play-icon { 
    fill: var(--taupe); 
    transform: scale(1.05); 
}

.video-placeholder-container:hover .privacy-text { 
    color: var(--taupe); 
    background: rgba(0,0,0,0.7); 
}

.case-study-content { 
    width: 100%; 
}

.case-study-text { 
    max-width: 800px; 
    margin: 0 auto 60px auto; 
    color: var(--light); 
    text-align: left; 
}

.project-credits { 
    max-width: 800px; 
    margin: 0 auto; 
    border: none; 
    padding-top: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    text-align: left; 
}

.credit-row { 
    display: block; 
}

.credit-label { 
    color: var(--taupe); 
    margin-right: 20px; 
    display: inline-block; 
}

/* CTAs & FOOTER */
.back-nav { 
    margin-top: 100px; 
    text-align: center; 
}

.back-link { 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-size: 1.2rem; 
    color: var(--taupe); 
    padding: 20px; 
}

.back-link:hover { 
    color: var(--light); 
}

.home-cta { 
    margin-top: 60px; 
    display: flex; 
    gap: 40px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.home-cta a { 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-size: 1.2rem; 
    color: var(--taupe); 
    padding: 10px; 
}

.home-cta a:hover { 
    color: var(--light); 
}

footer { 
    padding: 60px; 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    gap: 30px; 
    margin-top: auto; 
}

.socials { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

.socials svg { 
    width: 20px; 
    height: 20px; 
    fill: var(--taupe); 
    transition: fill 0.3s ease; 
}

.socials a:hover svg { 
    fill: var(--light); 
}

.footer-link { 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--taupe); 
    margin-left: 15px; 
}

.footer-link:hover { 
    color: var(--light); 
}

.media-wrapper iframe, .media-wrapper > div { 
    width: 100% !important; 
    height: 100% !important; 
    display: block; 
}

/* MOBILE RESPONSIVE & MENU */
@media (max-width: 900px) {
    header { 
        padding: 10px 20px; 
        height: 60px; 
        flex-direction: row; 
    }
    
    .logo-full { display: none; }
    .logo-short { display: inline; }
    
    .logo {
        font-size: 1.4rem; 
        letter-spacing: 2px;
        line-height: 1;
        margin-top: 2px; 
    }
    
    .menu-toggle { 
        display: flex; 
        align-items: center;
        justify-content: center;
        font-size: 2.2rem; 
        height: 100%;
        padding: 0;
        background: none;
        border: none;
        color: var(--light);
        cursor: pointer;
        position: relative;
        z-index: 1100;
        transform: translateY(-3px); 
    }
    
    nav { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        gap: 30px;
        padding: 0;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a { 
        margin: 0; 
        font-size: 2rem; 
    }
    
    .lang-switch { 
        margin: 20px 0 0 0; 
        font-size: 1.5rem;
    }
    
    main { 
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px; 
    }
    
    /* Mobile Filter Anpassung */
    .filter-nav {
        column-gap: 20px;
        row-gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .grid { 
        gap: 60px; 
        grid-template-columns: 1fr; 
    }
    
    footer { 
        flex-direction: column; 
        justify-content: center; 
        gap: 20px; 
        text-align: center; 
    }
    
    .footer-link { 
        margin-left: 0; 
    }

    .home-cta {
        flex-direction: column;
        gap: 40px;
    }
}

/* Globale Medien-Klassen & Spacing-Fixes */
.case-study-title-block h1 {
    margin-bottom: 5px; 
}

.case-study-title-block {
    margin-bottom: 30px; 
}

.media-hero {
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto 40px auto; 
}

.media-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-inline {
    width: 100%;
    max-width: 800px; 
    margin: 30px auto; 
    border: none;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    aspect-ratio: auto; /* NEU: Erlaubt dem Container, sich an die Höhe des Inhalts anzupassen */
}

/* Flexibles Video-Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    max-width: 800px;
    margin: 30px auto;
}

.case-study-text {
    max-width: 800px;
    margin: 0 auto 40px auto; 
}

.back-nav {
    margin-top: 60px !important; 
}

/* Mobile Anpassung für das Grid */
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr; 
    }
}