
/* ==========================================================================
   SECTION HERO (WITH VIDEO BACKGROUND UPGRADE)
   ========================================================================== */

.section-hero {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: blur(16px); /* Greift jetzt wieder perfekt! */
    transform: scale(1.03);
}

.section-hero .main-wrapper,
.section-hero .hero-content-block,
.section-hero .main-header,
.section-hero .hero-content-wrapper,
.section-hero .lila-content-box {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SECTION CONTENT (WITH FULLSCREEN SHOWCASE BACKGROUND)
   ========================================================================== */

.section-content {
    background-image: url('../graphics/meinmaturaball-ballprojekte-showcase-hintergrund.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.flexbox-2col-showcase-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

/* LINKER SHOWCASE PART: DAS REINE PLAKAT */
.flexbox-2col-showcase-links {
    flex: 0 0 30%;
    max-width: 700px;
    box-sizing: border-box;
}

.hof-showcase-image {
    width: 100%;
    height: auto;
    display: block;
    /* Box shadow: 0 versatz, 20 weichzeichnung, schwarz 65% Deckkraft */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
    transform: translateZ(0); /* GPU Layer Lock */
}

/* RECHTER SHOWCASE PART: INFO TERMINAL */
.flexbox-2col-showcase-rechts {
    flex: 0 0 65%;
    box-sizing: border-box;
}

.flexbox-2col-showcase-rechts-schule {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Light */
    font-size: 20px;
    line-height: 110%;
    color: #ffffff;
    margin-top: 116px;
    text-transform: uppercase;
}

.flexbox-2col-showcase-rechts-ballthema {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semibold */
    font-size: 72px;
    line-height: 100%;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.flexbox-2col-showcase-rechts-text {
    margin-bottom: 30px;
    font-weight: 300; 
    /* Keine zusätzliche Textformatierung, greift global */
}

/* LEISTUNGS BUTTONS */
.flexbox-2col-showcase-rechts-leistungen-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.flexbox-2col-showcase-rechts-leistungen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    
    border: 2px solid #ffffff;
    border-radius: 3px;
    background-color: transparent;
    
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 18px;
    line-height: 100%;
    color: #ffffff;
    
    /* Box allseitig 12px größer als der Text (Padding) */
    padding: 12px 24px; 
    
    transform: translateZ(0);
    will-change: background-color, color;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.flexbox-2col-showcase-rechts-leistungen:hover {
    background-color: #ffffff;
    color: var(--meinmaturaball-lila, #7A3B82);
}

/* ALLSEITIGE PFEIL-NAVIGATION IM ROOT-RADIUS (20px ABSTAND ZUM CONTENT) */
.flexbox-2col-showcase-pfeil-links,
.flexbox-2col-showcase-pfeil-rechts {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    font-size: 44px;
    color: #ffffff;
    text-decoration: none;
    z-index: 10;
    font-weight: 300;
    user-select: none;
    will-change: transform, text-shadow;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.3s ease;
}

.flexbox-2col-showcase-pfeil-links {
    left: 20px;
}

.flexbox-2col-showcase-pfeil-rechts {
    right: 20px;
}

/* Pfeil Hover-Effekt: Glow & 10% größer */
.flexbox-2col-showcase-pfeil-links:hover,
.flexbox-2col-showcase-pfeil-rechts:hover {
    transform: translateY(-50%) scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Pfeil Klick-Effekt: 10% kleiner als Ursprungsgröße */
.flexbox-2col-showcase-pfeil-links:active,
.flexbox-2col-showcase-pfeil-rechts:active {
    transform: translateY(-50%) scale(0.9);
}


/* ==========================================================================
   SECTION PROJEKTE (5-COL GRID WITH KINO-FOCUS ENGINE)
   ========================================================================== */

.section-projekte {
    padding: 100px 0;
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: var(--meinmaturaball-mittelgrau, #333333);
}

/* Der verdunkelnde Layer, der sich beim Hover über die Sektion legt */
.section-projekte::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Schwarzer Layer mit 50% Deckkraft */
    backdrop-filter: blur(5px); /* Leichtes Blur auf Sektionsebene */
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* TRIGGER: Sobald ein Element gehovert wird, blendet der abgedunkelte Hintergrund ein */
.section-projekte:has(.flexbox-5col-showcase-col:hover)::before {
    opacity: 1;
}

.flexbox-5col-showcase-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    position: relative;
    z-index: 4; /* Liegt über dem Sektions-Layer */
}

.flexbox-5col-showcase-col {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    line-height: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1) translateZ(0);
    will-change: transform, box-shadow, filter, opacity;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease, opacity 0.4s ease;
}

.flexbox-5col-showcase-col img {
    width: 100%;
    height: auto;
    display: block;
}

/* HOVER: Element wird 10% größer, bleibt glasklar und schiebt sich ganz nach vorne */
.flexbox-5col-showcase-col:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    filter: blur(0px); /* Garantiert absolute Schärfe für das aktive Bild */
    opacity: 1; /* Volle Leuchtkraft */
    z-index: 10; /* Steht weit vor dem dämpfenden Schleier */
}

/* KINO-EFFEKT: Alle ANDEREN Kacheln weichen zurück und verschwimmen im Unschärfe-Filter */
.flexbox-5col-showcase-grid:has(.flexbox-5col-showcase-col:hover) .flexbox-5col-showcase-col:not(:hover) {
    opacity: 0.4; /* Etwas weiter gedimmt für maximalen Fokus auf das aktive Bild */
    transform: scale(0.98);
    filter: blur(3px); /* Die inaktiven Projekte werden jetzt wunderschön unscharf geblurred */
}

/* Text-Overlay komplett deaktiviert – kein Text, keine ungewollte Abdunklung mehr */
.grid-hover-overlay {
    display: none !important;
}

/* ==========================================================================
   SECTION TEXT REFERENZEN (SEO POWER ARCHIVE)
   ========================================================================== */

.section-text-referenzen {
    padding: 100px 0;
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: var(--meinmaturaball-dunkelgrau, #1a1a1a);
}

.flexbox-text-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.flexbox-text-archive-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    padding: 25px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.flexbox-text-archive-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.flexbox-text-archive-card-year {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Light */
    font-size: 18px;
    color: #079D92;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.flexbox-text-archive-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.flexbox-text-archive-card-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Light */
    font-size: 16px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE SHOWCASE-GRID & DETAIL-LAYOUT (HALL OF FAME)
   ========================================================================== */

.showcase-nav-mobile { 
    display: none; 
}

.showcase-nav-mobile a {
    color: #ffffff !important; /* Erzwingt Weiß */
    font-size: 32px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* Optional: Ein leichter Hover-Effekt, damit man sieht, dass sie klickbar sind */
.showcase-nav-mobile a:hover {
    opacity: 0.7;
}

/* 1. Breakpoint: < 1668px */
@media (max-width: 1668px) {
    /* Grid */
    .flexbox-5col-showcase-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .spacing-60 { height: 46px; }

    /* Detailseite: Bild auf ca. 1/3, Text daneben */
    .flexbox-2col-showcase-links {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
    .flexbox-2col-showcase-rechts {
        flex: 0 0 60%;
        max-width: 60%;
    }
    .flexbox-2col-showcase-rechts-ballthema {
        font-size: 52px; 
        margin: 20px 0;
    }
}

/* 2. Breakpoint: < 1268px (Hier bleibt das Bild bei 33.33%, Grid auf 3) */
@media (max-width: 1268px) {
    /* Grid */
    .flexbox-5col-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .spacing-60 { height: 32px; }
    
    .flexbox-2col-showcase-container {
        gap: 30px;
    }
    .flexbox-2col-showcase-rechts-ballthema { 
        font-size: 48px; 
    }
}

/* 3. Breakpoint: < 1024px (Pfeile wandern unter das Bild) */
@media (max-width: 1024px) {
    /* Desktop Pfeile ausblenden */
    .flexbox-2col-showcase-pfeil-links,
    .flexbox-2col-showcase-pfeil-rechts {
        display: none !important;
    }
    
    /* Mobile Pfeile unter dem Bild einblenden (vorausgesetzt du nutzt die Klasse .showcase-nav-mobile) */
    .showcase-nav-mobile { 
        display: flex; justify-content: center; gap: 40px; margin-top: 10px; 
    }
}

/* 4. Breakpoint: Smartphone < 600px (Hier springt das Bild auf 100%) */
@media (max-width: 600px) {
    /* Grid */
    .flexbox-5col-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .spacing-60 { height: 20px; }
    
    /* Detailseite: Bild springt auf 100% Breite */
    .flexbox-2col-showcase-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    .flexbox-2col-showcase-links,
    .flexbox-2col-showcase-rechts {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
	.flexbox-2col-showcase-rechts-schule { font-size: 18px; margin-top: 26px; }
    .flexbox-2col-showcase-rechts-ballthema { font-size: 30px; margin: 15px 0; }
	.flexbox-2col-showcase-rechts-text { font-size: 16px; }
    .flexbox-2col-showcase-rechts-leistungen { font-size: 16px; padding: 10px 18px; }
}