/* Modern Kacheln Styling - Sehr kompakt */
.leistungen-kacheln-wrapper {
    padding: 0;
    width: 100%!important;
}

.leistungen-kacheln-section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #264065;
}

.leistungen-kacheln-section-description {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-decoration: none !important;
}
.leistungen-kachel .kachel-description {
    text-decoration: none !important;
    padding: 5;
}

.leistungen-kachel .kachel-description a {
    text-decoration: none !important;
}
.leistungen-kacheln-container {
    display: grid;
    gap: 15px;
    width: 100%!important;
    margin: 0 auto;
    padding: 10px;
}

.leistungen-kacheln-container.columns-1 { grid-template-columns: repeat(1, 1fr); }
.leistungen-kacheln-container.columns-2 { grid-template-columns: repeat(2, 1fr); }
.leistungen-kacheln-container.columns-3 { grid-template-columns: repeat(3, 1fr); }
.leistungen-kacheln-container.columns-4 { grid-template-columns: repeat(4, 1fr); }

.leistungen-kachel {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    height: auto;
    padding: 5px !important;
}

.leistungen-kachel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Bild Container Styling - Extrem kompakt */
.kachel-image-container {
    aspect-ratio: 3/2;
    overflow: hidden;
    width: 100%;
}

.kachel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.leistungen-kachel:hover .kachel-img {
    transform: scale(1.02);
}

/* Inhalt Styling - Minimal */
.kachel-content {
    padding: 15px 15px 15px 15px;
}

.kachel-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    padding-top: 10px;
    color: #264065;
    font-weight: 600;
    line-height: 1.2;
}

.kachel-description {
    color: #666;
    line-height: 1.4;
    margin: 8px 8px 8px 8px;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .leistungen-kacheln-container.columns-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .leistungen-kacheln-container.columns-3,
    .leistungen-kacheln-container.columns-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .leistungen-kacheln-section-title {
        font-size: 1.6rem;
    }
    
    .kachel-image-container {
        max-height: 130px !important;
    }
}

@media (max-width: 480px) {
    .leistungen-kacheln-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .kachel-content {
        padding: 10px 12px 12px 12px;
    }
    
    .kachel-title {
        font-size: 1rem;
    }
    
    .kachel-description {
        font-size: 0.8rem;
    }
    
    .kachel-image-container {
        max-height: 120px !important;
    }
}

/* Alignment Klassen */
.align-center {
    justify-content: center !important;
}

.align-left {
    justify-content: flex-start !important;
}

.align-right {
    justify-content: flex-end !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Sehr kompakte Kacheln */
.leistungen-kachel {
    min-height: auto !important;
    height: auto !important;
}

/* Entfernt alle unnötigen Abstände */
.leistungen-kachel > * {
    margin: 0;
    padding: 0;
}