/* ==========================================================================
   FLUX Crew — Person
   ========================================================================== */

:root {
    --person-width: 1290px;
    --person-gap: 5rem;
    --person-section-space: 1rem;
    --person-radius: 10px;
    --person-content-indent: 50px;
    --person-text-width: 68ch;
}


/* ==========================================================================
   Base
   ========================================================================== */

.person-single {
    width: min(100% - 10vw, var(--person-width));
    margin: 0 auto;
    padding: 0 0 8rem;
    position: relative;
}

.person-single section {
    margin-bottom: var(--person-section-space);
}

.person-single img {
    display: block;
    width: 100%;
}


/* ==========================================================================
   Hintergrund
   ========================================================================== */

.person-single::before {
    content: "";

    position: absolute;
    top: -18rem;
    left: 50%;

    transform: translateX(-50%);

    width: 100vw;
    height: 130vh;

    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at -10% -10%,
            rgba(45,167,255,.70) 0%,
            rgba(193,212,250,.55) 30%,
            transparent 65%
        ),

        radial-gradient(
            circle at 110% -10%,
            rgba(246,18,182,.55) 0%,
            rgba(255,229,246,.55) 30%,
            transparent 65%
        ),

        linear-gradient(
            180deg,
            #eef6ff 0%,
            #fdf7fb 35%,
            #ffffff 100%
        );
}


/* ==========================================================================
   Hero
   ========================================================================== */

.person-hero {
    display: grid;

    /*
     * Foto bekommt eine feste Spalte,
     * damit der Abstand zum Text kontrollierbar bleibt.
     */
    grid-template-columns: 460px minmax(0, 1fr);

    gap: 3.5rem;

    align-items: start;

    min-height: 72vh;

    padding: 6rem 0 0;

    margin-bottom: 0 !important;
}


/* --------------------------------------------------------------------------
   Foto
   -------------------------------------------------------------------------- */

.person-hero__image {
    width: 100%;
    max-width: 460px;

    margin-top: 0;
}

.person-hero__image img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: var(--person-radius);
}


/* --------------------------------------------------------------------------
   Inhalt
   -------------------------------------------------------------------------- */

.person-hero__content {
    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    max-width: 42rem;

    /*
     * Gleicher vertikaler Einstieg wie ungefähr
     * Titel + Untertitel auf der Projektseite.
     */
    padding-top: 2.5rem;
}


/* --------------------------------------------------------------------------
   Name + Funktion
   -------------------------------------------------------------------------- */

.person-header {
    margin-top: 0;
}

.person-title {
    margin: 0;

    line-height: .9;

    max-width: 15ch;
}

.person-function {
    margin-top: 1rem;

    line-height: 1.3;
}


/* --------------------------------------------------------------------------
   Bio
   -------------------------------------------------------------------------- */

.person-biography {
    margin-top: 2rem;

    max-width: 68ch;

    line-height: 1.5;
}


/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

.person-links {
    display: flex;

    flex-wrap: wrap;

    gap: .7rem;

    margin-top: 0rem;
}

.person-links a {
    color: #f612b6;
    font-weight: 400;
    text-decoration: none;
}

.person-links a:hover {
    color: #000;
    background: none;
}


/* ==========================================================================
   Projekte
   ========================================================================== */

.person-projects {
    width: 100%;

    margin-top: 3rem;
}


/* --------------------------------------------------------------------------
   Überschrift
   -------------------------------------------------------------------------- */

.person-projects__heading {
    margin: 0 0 2rem;

    max-width: none;
}


/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.person-projects__grid {
    display: grid;

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

    gap: 1.5rem 2rem;
}


/* ==========================================================================
   PROJEKT CARD
   ========================================================================== */

.person-project {
    display: grid;

    grid-template-columns: 45% 55%;

    align-items: stretch;

    min-height: 190px;

    overflow: hidden;

    border: none;

    border-radius: 14px;

    color: #000;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.person-project:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.10);
	
}

.person-project:hover .person-project__title,
.person-project:hover .person-project__subtitle {
    color: #f612b6;
}

/* ==========================================================================
   FLUX FARBVERLÄUFE
   ========================================================================== */

.person-project:nth-child(6n + 1) {
    background:
        linear-gradient(
            110deg,
            #f3b5df 0%,
            #ead0ef 48%,
            #c9d9ff 100%
        );
}

.person-project:nth-child(6n + 2) {
    background:
        linear-gradient(
            110deg,
            #f3b5df 0%,
            #f9e5f4 28%,
            #ffffff 50%,
            #e9efff 72%,
            #c9d9ff 100%
        );
}

.person-project:nth-child(6n + 3) {
    background:
        linear-gradient(
            110deg,
            #c5d7ff 0%,
            #ddd4f4 45%,
            #f3b7df 100%
        );
}

.person-project:nth-child(6n + 4) {
    background:
        linear-gradient(
            100deg,
            #ee8fce 0%,
            #f6c5e6 20%,
            #ffffff 52%,
            #e1e9ff 78%,
            #b9ccff 100%
        );
}

.person-project:nth-child(6n + 5) {
    background:
        linear-gradient(
            115deg,
            #bfd2ff 0%,
            #dce5ff 24%,
            #ffffff 50%,
            #f8d8ee 76%,
            #eea9d6 100%
        );
}

.person-project:nth-child(6n + 6) {
    background:
        linear-gradient(
            125deg,
            #e99bd0 0%,
            #ead2ef 48%,
            #c5d8ff 100%
        );
}


/* --------------------------------------------------------------------------
   Projektbild
   -------------------------------------------------------------------------- */

.person-project__image {
    height: 100%;

    overflow: hidden;
}

.person-project__image img {
    width: 100%;
    height: 100%;

    min-height: 190px;

    object-fit: cover;

    transition: transform .35s ease;
}

.person-project:hover .person-project__image img {
    transform: scale(1.04);
}


/* --------------------------------------------------------------------------
   Projekt Inhalt
   -------------------------------------------------------------------------- */

.person-project__content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 1.6rem 1.75rem;
}

.person-project__title {
    margin: 0;

    line-height: 1.05;
}

.person-project__subtitle {
    margin: .65rem 0 0;

    line-height: 1.2;
}


/* ==========================================================================
   Zwischenbreite
   ========================================================================== */

@media (max-width: 1200px) {

    .person-hero {
        grid-template-columns: 40% 60%;
    }

    .person-project {
        grid-template-columns: 42% 58%;
    }

}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1000px) {

    .person-hero {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 3rem;
    }

    .person-hero__image {
        max-width: 500px;

        margin-top: 0;
    }

    .person-hero__content {
        max-width: none;
    }

    .person-header {
        margin-top: 0;
    }

    .person-biography {
        max-width: 68ch;
    }

}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {

    .person-single {
        width: calc(100% - 2rem);

        padding-bottom: 4rem;
    }


    /* ----------------------------------------------------------------------
       Hero
       ---------------------------------------------------------------------- */

    .person-hero {
        grid-template-columns: 1fr;

        gap: 2rem;

        min-height: auto;

        padding-top: 5rem;
    }

    .person-hero__image {
        width: 100%;
        max-width: none;

        margin-top: 0;
    }

    .person-hero__image img {
        aspect-ratio: 4 / 5;
    }

    .person-hero__content {
        max-width: none;

        padding-top: 0;
    }


    /* ----------------------------------------------------------------------
       Name
       ---------------------------------------------------------------------- */

    .person-header {
        margin-top: 0;
    }

    .person-title {
        max-width: none;

        font-size: clamp(
            2.8rem,
            11vw,
            4.5rem
        );

        line-height: .9;
    }

    .person-function {
        font-size: 1.5rem;

        line-height: 1.1;

        margin-top: 1rem;
    }


    /* ----------------------------------------------------------------------
       Bio
       ---------------------------------------------------------------------- */

    .person-biography {
        max-width: none;

        margin-top: 2rem;
    }


    /* ----------------------------------------------------------------------
       Links
       ---------------------------------------------------------------------- */

    .person-links {
        gap: .6rem;

        margin-top: 1.5rem;
    }

    .person-links a {
        padding: .6rem .9rem;
    }


    /* ----------------------------------------------------------------------
       Projekte
       ---------------------------------------------------------------------- */

    .person-projects {
        margin-top: 2rem;
    }

    .person-projects__heading {
        font-size: 1.5rem !important;
        line-height: 1.1;

        margin-bottom: 1.5rem;
    }

    .person-projects__grid {
        grid-template-columns: 1fr;

        gap: 1rem;
    }


    /* ----------------------------------------------------------------------
       Projektkarte Mobile
       ---------------------------------------------------------------------- */

    .person-project {
        grid-template-columns: 38% 62%;

        min-height: 140px;

        border-radius: 12px;
    }

    .person-project__image img {
        min-height: 140px;
    }

    .person-project__content {
        padding: 1.1rem;
    }

    .person-project__title {
        font-size: 1.15rem;
    }

}