.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.grid-item h2 {
    font-size: 6em;
    text-transform: lowercase;
    z-index: 2;
    text-align: center;
    padding: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Grid Spanning */


.kiproduction {
    grid-column: span 6;
    grid-row: span 2;
    background: linear-gradient(135deg, #2d5f3f 0%, #4a8c5e 100%);
    color: #ffed00;
}

/* Reihe 2: Breites Cases (flach) + kleines Science */
.casesText {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: span 6;
    grid-row: span 2;
    background: #d4ff00;
    color: #ffed00;
}

.casesDiv{
    grid-column: span 7;
    grid-row: span 1;
    background-color: #d0ff00;
}

.science-red {
    grid-column: span 3;
    grid-row: span 1;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #ffed00;
}

/* Reihe 3: 3 gleich breite Kästen */
.industrial {
    grid-column: span 4;
    grid-row: span 1;
    background: linear-gradient(135deg, #4a1942 0%, #6b2963 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

.ecology {
    grid-column: span 4;
    grid-row: span 1;
    background: linear-gradient(135deg, #8e44ad 0%, #a569bd 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

.health {
    grid-column: span 4;
    grid-row: span 1;
    background: linear-gradient(135deg, #5f7c8a 0%, #78909c 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

.science {
    grid-column: span 4;
    grid-row: span 1;
    background: linear-gradient(135deg, #5f7c8a 0%, #78909c 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}
/* Reihe 4: Social Media hochkant + Industrial Films GROSS */
.social-media {
    grid-column: span 3;
    grid-row: span 3;
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    color: #ffed00;
    aspect-ratio: 9/15.3;
}

.recruiting {
    grid-column: span 9;
    grid-row: span 4;
    background: linear-gradient(135deg, #6d4c3d 0%, #8d6e63 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

/* Reihe 5: 3 gleich breite Kästen */
.podcast {
    grid-column: span 4;
    grid-row: span 1;
    background: linear-gradient(135deg, #795548 0%, #a1887f 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

.motion {
    grid-column: span 4;
    grid-row: span 1;
    background: linear-gradient(135deg, #90a4ae 0%, #b0bec5 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

.kit {
    grid-column: span 3;
    grid-row: span 1;
    background: linear-gradient(135deg, #546e7a 0%, #607d8b 100%);
    color: #ffed00;
    aspect-ratio: 16/9;
}

/* Grid Overlay Effect */
.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .science, .communications {
        grid-column: span 3;
    }
    
    .cases {
        grid-column: span 4;
    }
    
    .science-red {
        grid-column: span 2;
    }
    
    .recruiting, .ecology, .health,
    .podcast, .motion, .kit {
        grid-column: span 2;
    }
    
    .social-media {
        grid-column: span 2;
    }
    
    .industrial {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .science, .communications, .cases, .industrial {
        grid-column: span 2;
    }
    
    .science-red, .recruiting, .ecology, .health, 
    .social-media, .podcast, .motion, .kit {
        grid-column: span 1;
        grid-row: span 1;
    }
}

