/* ===== LOCAL FONTS ===== */

@font-face {
    font-family: 'Jost';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Jost-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Jost';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Jost-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Jost';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Jost-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Jost';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Jost-Bold.ttf') format('truetype');
}


/* ===== RESET & BASE ===== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Futura', 'Futura PT', 'Jost', sans-serif;
    background: #fff;
    color: #000;
    overflow-x: hidden;
    opacity: 0;
    animation: pageIn 0.8s ease 0.1s forwards;
}

@keyframes pageIn {
    to { opacity: 1; }
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}


/* ===== SIDEBAR ===== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    border-right: 1px solid #000;
    background: #fff;
    z-index: 100;
}

.logo {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1.6;
    display: block;
    text-align: center;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.5;
}

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-footer a {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.nav-footer a:hover,
.nav-footer a.active {
    opacity: 1;
}


/* ===== MAIN CONTENT ===== */

main {
    margin-left: 220px;
    min-height: 100vh;
    position: relative;
}


/* ===== SECTIONS ===== */

.section {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ===== SLIDESHOW ===== */

.slideshow {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1rem;
}

.slide-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-height: 100%;
}

.slide-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.slide-image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    display: block;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.35s ease;
    user-select: none;
}

.slide-image.loaded {
    opacity: 1;
}

.slide-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 1.2rem;
    min-height: 40px;
}

.slide-title {
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.05em;
}

.slide-details {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    opacity: 0.5;
}

.slide-counter {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.35;
    margin-top: 0.3rem;
}


/* ===== ARROWS ===== */

.arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.arrow:hover {
    opacity: 1;
}

.arrow svg {
    width: 28px;
    height: 28px;
}


/* ===== INFO ===== */

#info,
#impressum,
#datenschutz {
    overflow-y: auto;
    align-items: flex-start;
}

.info-content {
    padding: 4rem 3rem 5rem;
    max-width: 620px;
}

.info-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.info-contact {
    margin-bottom: 3rem;
}

.info-contact p {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 2;
}

.info-contact a {
    border-bottom: 1px solid #000;
    transition: border-color 0.3s ease;
}

.info-contact a:hover {
    border-color: transparent;
}

.info-vita {
    margin-bottom: 2.5rem;
}

.info-vita h3 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.info-vita a {
    border-bottom: 1px solid #000;
    transition: border-color 0.3s ease;
}

.info-vita a:hover {
    border-color: transparent;
}

.info-vita p {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.9;
    margin-bottom: 0.8rem;
}

.info-exhibitions {
    margin-bottom: 2.5rem;
}

.info-exhibitions h3 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-exhibitions p {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.info-statement {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #000;
}

.info-statement h3 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.info-statement p {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.info-statement strong {
    font-weight: 500;
}


/* ===== HAMBURGER (hidden on desktop) ===== */

.hamburger {
    display: none;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid #000;
        z-index: 200;
    }

    .logo {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    /* Hamburger button */
    .hamburger {
        display: block;
        position: relative;
        width: 28px;
        height: 20px;
        flex-shrink: 0;
        cursor: pointer;
        z-index: 300;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 1px;
        background: #000;
        transform-origin: center;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 9px;
    }

    .hamburger span:nth-child(3) {
        top: 18px;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile menu overlay */
    .nav-links {
        position: fixed;
        left: 0;
        right: 0;
        top: 50px;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        flex: none;
        justify-content: flex-start;
        z-index: 190;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: row;
        padding: 1.5rem;
        gap: 1.5rem;
        z-index: 191;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-footer a {
        font-size: 0.7rem;
    }

    /* Menu open state */
    .sidebar.menu-open .nav-links,
    .sidebar.menu-open .nav-footer {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    main {
        margin-left: 0;
        margin-top: 50px;
    }

    .slideshow {
        padding: 1rem 0;
        height: calc(100vh - 50px);
        gap: 0;
    }

    .slide-container {
        padding: 0 0.5rem;
    }

    .slide-image {
        max-height: calc(100vh - 150px);
    }

    .slide-footer {
        margin-top: 0.8rem;
    }

    .slide-title {
        font-size: 0.7rem;
    }

    .slide-details {
        font-size: 0.6rem;
        text-align: center;
        padding: 0 1rem;
    }

    .slide-counter {
        font-size: 0.55rem;
    }

    .arrow {
        width: 32px;
        height: 32px;
    }

    .arrow svg {
        width: 18px;
        height: 18px;
    }

    /* Info sections on mobile */
    .info-content {
        padding: 2.5rem 1.5rem 3rem;
    }
}
