/* Bento Grid Layout */
.clb-bento-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.clb-row {
    display: grid;
    width: 100%;
}

/* Perfekt abgestimmte Proportionen aus dem Bild image_20c6de.jpg */
.clb-row-1 {
    grid-template-columns: 5.8fr 4.2fr;
}

.clb-row-2 {
    grid-template-columns: 3.8fr 6.2fr;
}

.clb-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Dynamische Aspect Ratios, damit alles auf allen Bildschirmen harmonisch skaliert */
.clb-row-1 .clb-tile-1 {
    aspect-ratio: 5.8 / 5.8; /* Großes quadratisches Bild oben links */
}

.clb-row-1 .clb-tile-2 {
    aspect-ratio: 4.2 / 5.8; /* Hochkante Logo-Kachel oben rechts */
}

.clb-row-2 .clb-tile-3 {
    aspect-ratio: 3.8 / 3.8; /* Perfekt quadratische Info-Zahl unten links */
}

.clb-row-2 .clb-tile-4 {
    aspect-ratio: 6.2 / 3.8; /* Querformatiges CAD-Bild unten rechts */
}

.clb-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spezielles Logo-Verhalten (Logo füllt die Kachel nicht unschön aus) */
.clb-tile-2 img {
    width: auto;
    max-width: 75%;
    height: auto;
    max-height: 75%;
    object-fit: contain;
}

/* Styling für die Text-Zahlen-Kachel (Kachel 3) */
.clb-tile-3 {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 30px;
 
}

.clb-tile-3 .clb-text-top {
    font-size: clamp(14px, 1.8vw, 24px);
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: none;
}

.clb-tile-3 .clb-number {
    font-size: clamp(38px, 6vw, 42px);
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
    letter-spacing: -1px;
}

.clb-tile-3 .clb-text-bottom {
    font-size: clamp(14px, 1.8vw, 24px);
    font-weight: 400;
    letter-spacing: 1.5px;
}

/* Platzhalter Boxen für den Editor */
.clb-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px dashed #d1d5db;
    box-sizing: border-box;
}

/* Responsives Verhalten für Mobilgeräte */
@media (max-width: 768px) {
    .clb-row-1, .clb-row-2 {
        grid-template-columns: 1fr;
    }
    
    .clb-row-1 .clb-tile-1,
    .clb-row-1 .clb-tile-2,
    .clb-row-2 .clb-tile-3,
    .clb-row-2 .clb-tile-4 {
        aspect-ratio: auto;
        height: 300px;
    }
}