/* ADOBE FONTS */
@import url("https://use.typekit.net/mle1vmo.css");
@import url("https://use.typekit.net/mle1vmo.css");


/* ======================================== */
/* GRUNDEINSTELLUNGEN */
/* ======================================== */



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


html {
    scroll-behavior: smooth;
}


body {
    background-color: black;
    color: white;

    font-family: "fiona", sans-serif;

    overflow-x: hidden;
}



/* ======================================== */
/* NAVIGATION */
/* ======================================== */

.main-nav {
    position: fixed;

    top: 0;
    right: 20px;

    display: flex;

    gap: 4px;

    z-index: 9999;
}


.main-nav a {
    display: block;
}


.main-nav img {
    display: block;

    width: 100px;
    height: auto;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.main-nav img:hover {
    transform: scale(1.08);
}

/* ======================================== */
/* GIF UNTER NAVIGATION */
/* ======================================== */

.gallery-gif {
    position: fixed;

    right: 20px;
    rotate: 5deg;

    /* wird per JS automatisch unter die Nav gesetzt */
    bottom: 20px;

    width: 380px;
    height: auto;

    z-index: 9000;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* GIF sichtbar */

.gallery-gif.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ======================================== */
/* HERO */
/* ======================================== */

.hero {
    width: 100%;
    height: 800px;

    position: relative;

    overflow: visible;
}



/* Hintergrundbild */

.hero-background {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}



/* ======================================== */
/* LOGO */
/* ======================================== */

.logo {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 70%;
    max-width: 900px;

    height: auto;

    transform: translate(-50%, -50%);

    z-index: 2;

    cursor: pointer;

    transition: transform 0.3s ease;
}


.logo:hover {
    transform:
        translate(-50%, -50%)
        scale(1.05);
}



/* ======================================== */
/* PORTFOLIO BUCHSTABEN */
/* ======================================== */

.png-row {
    position: absolute;

    left: 50%;
    bottom: -100px;

    transform: translateX(-50%);

    width: 90%;

    display: grid;

    grid-template-columns: repeat(9, 1fr);

    gap: 0;

    z-index: 10;
}


.changing-png {
    width: 100%;
    height: auto;

    object-fit: contain;

    transition:
        opacity 0.08s linear,
        transform 0.25s ease;
}


.changing-png:hover {
    transform: scale(1.08);
}



/* ======================================== */
/* VIDEO */
/* ======================================== */

.video-section {
    width: 100%;

    background-color: black;

    overflow: hidden;
}


.portfolio-video {
    display: block;

    width: 100%;
    height: auto;
}



/* ======================================== */
/* KAMERA SECTION */
/* ======================================== */

.camera-transition {
    width: 100%;
    height: 100vh;

    background-color: black;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    opacity: 1;

    transition:
        height 0.6s ease,
        opacity 0.4s ease;
}



/* Kamera und Blitz Container */

.camera-stage {
    position: relative;

    width: min(55vw, 750px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 1;

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}



/* ======================================== */
/* KAMERA */
/* ======================================== */

.camera-image {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    z-index: 1;
}



/* ======================================== */
/* BLITZ */
/* ======================================== */

.camera-flash {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 190%;
    max-width: none;

    height: auto;

    z-index: 2;

    pointer-events: none;

    opacity: 0;

    transform:
        translate(-50%, -50%)
        scale(0.05);

    transform-origin: center;
}



/* Blitz Animation starten */

.camera-transition.is-flashing .camera-flash {
    animation:
        cameraFlash 0.85s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        forwards;
}



/* Kamera beim Blitz heller machen */

.camera-transition.is-flashing .camera-image {
    animation:
        cameraExposure 0.85s
        ease-out
        forwards;
}



/* ======================================== */
/* BLITZ ANIMATION */
/* ======================================== */

@keyframes cameraFlash {

    0% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.05);
    }


    10% {
        opacity: 0.3;

        transform:
            translate(-50%, -50%)
            scale(0.2);
    }


    30% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(0.75);
    }


    55% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.2);
    }


    75% {
        opacity: 0.8;

        transform:
            translate(-50%, -50%)
            scale(1.55);
    }


    100% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(2);
    }

}



/* ======================================== */
/* KAMERA ÜBERBELICHTUNG */
/* ======================================== */

@keyframes cameraExposure {

    0% {
        filter: brightness(1);
    }


    25% {
        filter: brightness(1.4);
    }


    45% {
        filter: brightness(2.4);
    }


    65% {
        filter: brightness(3);
    }


    100% {
        filter: brightness(1);
    }

}



/* ======================================== */
/* KAMERA NACH BLITZ VERSCHWINDEN */
/* ======================================== */

.camera-transition.is-finished .camera-stage {
    opacity: 0;

    transform: scale(1.08);
}



/* Gesamte Kamera Section einklappen */

.camera-transition.is-finished {
    height: 0;

    opacity: 0;
}



/* ======================================== */
/* PROJEKT GALERIE */
/* ======================================== */

.projects {
    width: 77%;

    /*
        Dein bisheriger Wert war:
        margin: 400 auto;

        Ich lasse ihn bewusst unverändert,
        damit sich dein bestehendes Layout
        nicht verschiebt.
    */
    margin: 400 auto;

    background-color: black;

    padding: 80px 5% 150px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));


    /*
        Vorher:
        gap: 8%;

        Jetzt nur horizontal 8%.
        Dadurch erzeugt der neue Titel
        keine riesige vertikale Lücke.
    */

    column-gap: 8%;
    row-gap: 0;


    overflow: hidden;

    max-height: 5000px;

    opacity: 1;

    transform: translateY(0);

    transition:
        max-height 0.8s ease,
        padding-top 0.8s ease,
        padding-bottom 0.8s ease,
        opacity 0.6s ease,
        transform 0.8s ease;
}



/* ======================================== */
/* PROJEKTE VOR DEM BLITZ */
/* KOMPLETT EINGEKLAPPT */
/* ======================================== */

.projects.project-waiting {
    max-height: 0;

    padding-top: 0;
    padding-bottom: 0;

    opacity: 0;

    transform: translateY(40px);

    pointer-events: none;
}



/* ======================================== */
/* PROJEKTE NACH DEM BLITZ */
/* ======================================== */

.projects.project-visible {
    max-height: 5000px;

    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}



/* ======================================== */
/* WORK TITEL */
/* ======================================== */

.work-title-image {

    /*
        Titel geht über alle drei Spalten.
    */

    grid-column: 1 / -1;

    display: block;

    width: 114%;
    height: auto;

    margin-left: 0;
    margin-right: auto;

    margin-bottom: 35px;
}



/* ======================================== */
/* PROJEKTSPALTEN */
/* ======================================== */

.project-column,
.project-column1 {
    display: flex;

    flex-direction: column;

    min-width: 0;
}



/* Mittlere + rechte Spalte */

.project-column {
    gap: 100px;
}



/* Linke Spalte */

.project-column1 {
    gap: 80px;
}



/* ======================================== */
/* EINZELNES PROJEKT */
/* ======================================== */

.project {
    display: block;

    text-decoration: none;

    color: white;
}



/* ======================================== */
/* PROJEKTBILDER */
/* ======================================== */

.project-image {
    width: 100%;

    overflow: hidden;
}


.project-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    transition: transform 0.35s ease;
}



/* Bild beim Hover leicht vergrößern */

.project:hover .project-image img {
    transform: scale(1.03);
}



/* ======================================== */
/* PROJEKT TEXT */
/* ======================================== */

.project-info {
    margin-top: 15px;

    text-align: center;

    color: #bcbcbc;
}



/* PROJEKTTITEL – LIEBEDONI */
.project-info p {
    margin: 0;
    font-size: 27px;
    line-height: 1.15;

    font-family: "liebedoni-solid", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* PROJEKTUNTERTITEL – FIONA */
.project-info span {
    display: block;
    margin-top: 4px;
    font-size: 25px;

    font-family: "fiona", sans-serif;
    font-weight: 400;
    font-style: normal;
}


/* ======================================== */
/* INDIVIDUELLE PROJEKTGRÖSSEN */
/* ======================================== */


/* Projekt 1 */

.project-1 {
    width: 80%;

    margin-left: 80px;
}



/* Projekt 2 */

.project-2 {
    width: 90%;

    margin-left: auto;
    margin-right: auto;

    margin-top: 20px;
}



/* Projekt 3 */

.project-3 {
    width: 100%;

    margin-left: auto;
}



/* Projekt 4 */

.project-4 {
    width: 72%;

    margin-left: 15%;
}



/* Projekt 5 */

.project-5 {
    width: 100%;
}



/* Projekt 6 */

.project-6 {
    width: 95%;

    margin-left: auto;
}



/* ======================================== */
/* TABLET */
/* ======================================== */

@media (max-width: 1000px) {


    .hero {
        height: 650px;
    }


    .png-row {
        width: 95%;

        bottom: -70px;
    }


    .camera-stage {
        width: min(70vw, 650px);
    }


    .projects {
        width: 100%;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 40px;
        row-gap: 70px;

        padding: 70px 20px 120px;
    }


    .projects.project-waiting {
        padding-top: 0;
        padding-bottom: 0;
    }


    /*
        Titel weiterhin über die gesamte
        Projektbreite.
    */

    .work-title-image {
        grid-column: 1 / -1;

        width: 100%;

        margin-bottom: -35px;
    }


    .project-column,
    .project-column1 {
        gap: 70px;
    }


    .project-1,
    .project-2,
    .project-3,
    .project-4,
    .project-5,
    .project-6 {
        margin-top: 0;
    }

}



/* ======================================== */
/* HANDY */
/* ======================================== */

@media (max-width: 650px) {


    .hero {
        height: 400px;
    }


    .logo {
        width: 90%;
    }


    .png-row {
        width: 98%;

        bottom: -40px;
    }



    /* Kamera */

    .camera-transition {
        height: 80vh;
    }


    .camera-transition.is-finished {
        height: 0;
    }


    .camera-stage {
        width: 85%;
    }


    .camera-flash {
        width: 220%;
    }



    /* Projekte */

    .projects {
        width: 100%;

        grid-template-columns: 1fr;

        column-gap: 0;
        row-gap: 70px;

        padding: 60px 25px 100px;
    }


    .projects.project-waiting {
        padding-top: 0;
        padding-bottom: 0;
    }



    /* Work Titel */

    .work-title-image {
        grid-column: 1;

        width: 100%;

        margin-bottom: -35px;
    }


    .project-column,
    .project-column1 {
        gap: 70px;
    }


    .project-1,
    .project-2,
    .project-3,
    .project-4,
    .project-5,
    .project-6 {
        width: 100%;

        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
    }


    .project-info p {
        font-size: 22px;
    }


    .project-info span {
        font-size: 20px;
    }

}
/* ======================================== */
/* GIF AUF TABLET / HANDY AUSBLENDEN */
/* ======================================== */

@media (max-width: 1000px) {

    .gallery-gif {
        display: none;
    }

}