/* ==========================================================================
   FLUX Crew — Project
   ========================================================================== */

:root {

    /* Layout */

    --project-width: 1290px;
    --project-gap: 5rem;
    --project-section-space: 1rem;
    --project-radius: 10px;
	
	--project-content-indent: 50px;

    /* Typography */

    --project-text-width: 68ch;

}


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

.project-single {

    width: min(100% - 10vw, var(--project-width));

    margin: 0 auto;

    padding: 0 0 8rem;

    position: relative;

}

.project-single section {

    margin-bottom: var(--project-section-space);

}

.project-single img {

    display: block;

    width: 100%;

}


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

.project-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
   ========================================================================== */

.project-hero {

    display: grid;

    grid-template-columns: 54% 46%;

    gap: var(--project-gap);

    align-items: center;

    min-height: 72vh;

    padding: 6rem 0 0rem;
	
    margin-bottom: 0 !important;

}

.project-hero__image img {

    aspect-ratio: 16 / 9;

    object-fit: cover;

    border-radius: var(--project-radius);

}

.project-hero__image {

    padding-left: 0rem;
	
	margin-top: -2rem;

}

.project-hero__content {

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    padding-top: 0rem;

    max-width: 34rem;
	
	margin-left: -2rem;

}

.project-header {

    margin-top: -11rem;

}

.project-title {

    margin: 0;

    line-height: .9;

    max-width: 15ch;

}

.project-subtitle {

    margin: 1rem 0 2.5rem;

    line-height: 1.3;

}

.project-meta {

    margin-top: auto;

}


/* ==========================================================================
   Overview
   ========================================================================== */

.project-overview {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: var(--project-gap);

    align-items: start;

}

.project-performances {

    margin-left: -6rem;

}

.project-description {

    max-width: var(--project-text-width);

}

/* ==========================================================================
   Content Indent
   ========================================================================== */

.project-description > *:not(h2),
.project-performances > *:not(h2),
.project-trailer > *:not(h2),
.project-accessibility > *:not(h2),
.project-credits > *:not(h2),
.project-support > *:not(h2),
.project-connections > *:not(h2) {

    margin-left: 50px;
    margin-right: 50px;

}

/* ==========================================================================
   Media
   ========================================================================== */

.project-media {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 3rem;

    align-items: start;

}

.project-trailer iframe {

    width: 100%;

    aspect-ratio: 16 / 9;

    height: auto;

    border: 0;

    border-radius: var(--project-radius);

}

.project-gallery {

    width: 100%;

}


/* ==========================================================================
   Details
   ========================================================================== */

.project-details {

    display: grid;

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

    gap: var(--project-gap);

}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width:1000px){

    .project-hero{

        grid-template-columns:1fr;

    }

    .project-overview{

        grid-template-columns:1fr;

    }

    .project-details{

        grid-template-columns:1fr;

    }

}

/* ==========================================================================
   Blocksy Header Glow
   ========================================================================== */

.ct-header {

    position: relative;

    z-index: 100;

}

.ct-header::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -60px;

    height: 120px;

    pointer-events: none;

    background:

        radial-gradient(
            ellipse at 25% 0%,
            rgba(193,212,250,.60) 0%,
            transparent 70%
        ),

        radial-gradient(
            ellipse at 75% 0%,
            rgba(255,229,246,.60) 0%,
            transparent 70%
        );

}

/* ==========================================================
   FINAL FIX – GALERIE NUR RECHTE SPALTE
   ========================================================== */

.project-media {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 3rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}


/* Trailer links */

.project-media .project-trailer {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
}


/* Galerie rechts */

.project-media .project-gallery {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}


/* Galerie-Container darf NICHT die Grid-Spalte vergrößern */

.project-media .flux-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* Sichtbares Fenster */

.project-media .flux-gallery__viewport {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}


/* Bilder bleiben nebeneinander */

.project-media .flux-gallery__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    width: max-content !important;

    gap: 1.5rem !important;
}


/* Bildgröße NICHT verändern */

.project-media .flux-gallery__slide {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}


/* Die 300px aus deinem funktionierenden JS bleiben */

.project-media .flux-gallery__slide img {
    height: 300px !important;
    width: auto !important;

    max-width: none !important;

    object-fit: contain !important;

    display: block !important;

    border-radius: 10px !important;
}



/* ==========================================================================
   FLUX — ZUGÄNGLICHKEIT ACCORDION
   ========================================================================== */

/* H5 als klickbare Accordion-Titel */

.project-accessibility__accordion-title {
    position: relative;
    cursor: pointer;
    margin: 0 !important;
    padding: 1rem 2.5rem 1rem 0 !important;

    border-bottom: 1px solid rgba(0, 0, 0, 0.15);

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


/* Plus-Zeichen */

.project-accessibility__accordion-title::after {
    content: "+";

    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;

    transition:
        transform 0.25s ease,
        color 0.2s ease;
}


/* Hover */

.project-accessibility__accordion-title:hover {
    color: #ff2fa8;
    border-color: #ff2fa8;
}


/* Geöffneter Titel */

.project-accessibility__accordion-title.is-open {
    color: #ff2fa8;
}


/* Plus wird zu Minus */

.project-accessibility__accordion-title.is-open::after {
    content: "−";
    color: #ff2fa8;
}


/* ==========================================================================
   INHALT — STANDARDMÄSSIG GESCHLOSSEN
   ========================================================================== */

.project-accessibility__accordion-content {
    max-height: 0;
    overflow: hidden;

    opacity: 0;

    padding: 0 !important;
    margin: 0 !important;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}


/* ==========================================================================
   INHALT — GEÖFFNET
   ========================================================================== */

.project-accessibility__accordion-content.is-open {

    max-height: 2000px;

    opacity: 1;

    padding: 1rem 0 1.5rem 0 !important;
}


/* ==========================================================================
   ABSÄTZE IM ACCORDION
   ========================================================================== */

.project-accessibility__accordion-content p {
    margin-bottom: 1rem;
}


/* ==========================================================================
   H6 INNERHALB VON SENSORISCHEN INFORMATIONEN
   ========================================================================== */

.project-accessibility__accordion-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .project-accessibility__accordion-title {
        padding-right: 2rem !important;
    }

    .project-accessibility__accordion-title::after {
        font-size: 1.5rem;
    }

}/* ==========================================================================
   FLUX — Accessibility Accordion
   ========================================================================== */

.project-accessibility__content {
    margin-top: 0;
}


/* H5 = Accordion-Titel */

.project-accessibility__content h5 {
    position: relative;

    margin: 0 !important;
    padding: 1.2rem 3rem 1.2rem 50px;

    cursor: pointer;

    border-top: 1px solid rgba(0,0,0,.15);

    font-size: 1.15rem;
    line-height: 1.2;

    transition:
        color .25s ease,
        background-color .25s ease;
}


/* Letzte Linie */

.project-accessibility__content h5:last-of-type {
    border-bottom: 1px solid rgba(0,0,0,.15);
}


/* Pfeil */

.project-accessibility__content h5::after {
    content: "+";

    position: absolute;

    right: 50px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.4rem;
    font-weight: 400;

    transition:
        transform .25s ease,
        color .25s ease;
}


/* Hover */

.project-accessibility__content h5:hover {
    color: #f612b6;
}


/* Geöffneter Bereich */

.project-accessibility__content h5.is-open {
    color: #f612b6;
}


/* Minus */

.project-accessibility__content h5.is-open::after {
    content: "−";
}


/* Inhalt eines H5-Bereichs */

.project-accessibility__accordion-content {
    display: none;

    padding:
        0.5rem 50px 2rem 100px;
}


/* Geöffnet */

.project-accessibility__accordion-content.is-open {
    display: block;
}


/* H6 innerhalb Sensorische Informationen */

.project-accessibility__accordion-content h6 {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}


/* Mobile */

@media (max-width: 600px) {

    .project-accessibility__content h5 {
        padding-left: 20px;
        padding-right: 50px;
    }

    .project-accessibility__content h5::after {
        right: 20px;
    }

    .project-accessibility__accordion-content {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* ==========================================================================
   FLUX — ZUGÄNGLICHKEIT ACCORDION
   ========================================================================== */

/* H5 als klickbare Accordion-Titel */

.project-accessibility__accordion-title {
    position: relative;
    cursor: pointer;
    margin: 0 !important;
    padding: 1rem 2.5rem 1rem 0 !important;

    border-bottom: 1px solid rgba(0, 0, 0, 0.15);

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


/* Plus-Zeichen */

.project-accessibility__accordion-title::after {
    content: "+";

    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;

    transition:
        transform 0.25s ease,
        color 0.2s ease;
}


/* Hover */

.project-accessibility__accordion-title:hover {
    color: #ff2fa8;
    border-color: #ff2fa8;
}


/* Geöffneter Titel */

.project-accessibility__accordion-title.is-open {
    color: #ff2fa8;
}


/* Plus wird zu Minus */

.project-accessibility__accordion-title.is-open::after {
    content: "−";
    color: #ff2fa8;
}


/* ==========================================================================
   INHALT — STANDARDMÄSSIG GESCHLOSSEN
   ========================================================================== */

.project-accessibility__accordion-content {
    max-height: 0;
    overflow: hidden;

    opacity: 0;

    padding: 0 !important;
    margin: 0 !important;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}


/* ==========================================================================
   INHALT — GEÖFFNET
   ========================================================================== */

.project-accessibility__accordion-content.is-open {

    max-height: 2000px;

    opacity: 1;

    padding: 1rem 0 1.5rem 0 !important;
}


/* ==========================================================================
   ABSÄTZE IM ACCORDION
   ========================================================================== */

.project-accessibility__accordion-content p {
    margin-bottom: 1rem;
}


/* ==========================================================================
   H6 INNERHALB VON SENSORISCHEN INFORMATIONEN
   ========================================================================== */

.project-accessibility__accordion-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .project-accessibility__accordion-title {
        padding-right: 2rem !important;
    }

    .project-accessibility__accordion-title::after {
        font-size: 1.5rem;
    }

}