/* Hero Grid Styling */
.clg-hero-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.clg-row {
    width: 100%;
}

.clg-row-top {
    display: block;
}

.clg-row-bottom {
    display: grid;
}

.clg-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #f8fafc;
}

/* Aspect Ratios exakt aus dem Referenzbild */
.clg-tile-top {
    aspect-ratio: 2.1 / 1; /* Panorama Teambild */
}

.clg-tile-left {
    aspect-ratio: 1.25 / 1; /* Leichtes Querformat links */
}

.clg-tile-right {
    aspect-ratio: 1.5 / 1; /* Breiteres Querformat rechts (CAD Zeichnung) */
}

.clg-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

/* Platzhalter für den Editor */
.clg-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px dashed #cbd5e1;
    box-sizing: border-box;
    min-height: 200px;
}

/* Automatisches Responsiv-Verhalten für Mobilgeräte */
@media (max-width: 768px) {
    .clg-row-bottom {
        grid-template-columns: 1fr !important;
    }

    .clg-tile-top,
    .clg-tile-left,
    .clg-tile-right {
        aspect-ratio: auto;
        height: 280px;
    }
}