*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    cursor: pointer;
}

nav {
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
}

ul {
    list-style: none;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 3rem;
    margin-right: 5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 2.5rem;
    margin-left: 5rem;
    cursor: pointer;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-right: 5rem;
}

.burger span {
    width: 30px;
    height: 2px;
    background-color: #001C2E;
    transition: all 0.3s ease;
}

.verlinkungen {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.verlinkungen:hover {
    cursor: pointer;
    color: #2c62834e;
}

/* ── Language Switcher ──────────────────────────────── */

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.lang-btn.active {
    color: #2C6183;
}

.lang-btn:hover {
    color: #2C6183;
}

.lang-divider {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }
}





/* ── Categories Split Screen ─────────────────────────────────────── */

.portfolio-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: calc(100vh - 6rem);
    width: 100%;
}

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* no zoom — image stays static */
}



.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    transition: background 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.category-card h2 {
    color: white;
    font-family: "Roboto Flex", sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.category-card:hover h2 {
    transform: scale(1.05);
}

/* ── Refined Portfolio Controls ─────────────────────────────── */

.portfolio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem 1rem 4rem;
    /* Reduced top/bottom padding to make the bar smaller */
    margin-bottom: 1rem;
    position: relative;
}

.back-btn {
    background: none;
    border: none;
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.back-btn:hover {
    color: #001C2E;
    transform: translateX(-4px);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

.category-title-display {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
}

.category-title-display h2 {
    font-family: "Noto Serif Display", serif;
    font-weight: 500;
    font-size: 1.5rem;
    /* Smaller font size */
    color: #001C2E;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.filters {
    display: flex;
    gap: 1.5rem;
}

#eventFilter,
#dateFilter {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.4rem 2rem 0.4rem 1rem;
    border: 1px solid #e5e5e5;
    background: white;
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.7rem;
    height: 2.4rem;
    border-radius: 6px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 4 6 8 10 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

#eventFilter:hover,
#dateFilter:hover {
    border-color: #bbb;
}

#eventFilter:focus,
#dateFilter:focus {
    outline: none;
    border-color: black;
}





/* ── Premium Slider Layout ─────────────────────────────── */

.portfolio-slider-container {
    height: calc(100vh - 13rem);
    /* increased available height since header shrunk */
    min-height: 450px;
    max-height: 850px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.portfolio-track {
    display: flex;
    gap: 8px;
    /* Slightly more gap for elegant separation */
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    position: relative;
    overscroll-behavior-x: contain;
    /* ensure offsetLeft works strictly within track */
}

.portfolio-track::-webkit-scrollbar {
    display: none;
}

.portfolio-slide-image {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    scroll-snap-align: center;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001C2E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    left: 2.5rem;
}

.next-btn {
    right: 2.5rem;
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    font-family: "Roboto Flex", sans-serif;
    color: #001C2E;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 300;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.8;
}

.empty-state .contact-btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    border: 1px solid #001C2E;
    border-radius: 6px;
    color: #001C2E;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.empty-state .contact-btn:hover {
    background: #001C2E;
    color: white;
}








.footer {
    padding: 2rem 5rem;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.79rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.79rem;
    color: #001C2E;
}

.instagram-link {
    font-weight: 400;
}

.instagram-link:hover {
    color: #2C6183;
}

/* ── Responsive Design ─────────────────────────────────────── */

@media (max-width: 1024px) {
    ul {
        gap: 2rem;
        margin-right: 2rem;
    }

    .logo {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        height: 5rem;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        margin-right: 0;
        transition: 0.5s ease;
        z-index: 1000;
    }

    #nav-links.active {
        right: 0;
    }

    .logo {
        margin-left: 1.5rem;
        height: 1.8rem;
    }

    .burger {
        margin-right: 1.5rem;
    }

    .portfolio-controls {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .filters {
        width: 100%;
        justify-content: space-between;
    }

    #eventFilter,
    #dateFilter {
        width: 48%;
    }

    .portfolio-controls {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem 1rem 1.5rem;
    }

    .category-title-display {
        position: relative;
        left: 0;
        transform: none;
    }

    .portfolio-slider-container {
        height: 70vh;
    }

    .portfolio-track {
        padding: 0;
    }

    .portfolio-slide-image {
        height: 70vh;
        border-radius: 0;
        /* full bleed on mobile */
    }

    .slider-btn {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.2rem;
    }

    .prev-btn {
        left: 1rem;
    }

    .next-btn {
        right: 1rem;
    }


    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .portfolio-categories {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: calc(100vh - 5rem);
    }

    .category-card h2 {
        font-size: 2rem;
    }
}

/* -- GLOBALS -- */
html, body {
    overflow-x: hidden;
}
img {
    max-width: 100%;
}
