/* Product Category Grid Widget */
.product-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
    width: 100%;
    gap: 30px; /* Default gap */
}

.product-tile {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-tile-image {
    position: relative;
    width: 100%;
    height: 250px; /* Feste Höhe für konsistente Darstellung */
    overflow: hidden;
}

.product-tile-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-tile:hover .product-tile-image img {
    transform: scale(1.1);
}

.product-tile-content {
    padding: 20px;
    text-align: center;
}

.product-tile-title {
    margin: 0 0 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.product-tile-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.product-tile-link:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Responsive Styles */
@media (min-width: 1400px) {
    .product-tile-image {
        height: 300px; /* Größere Höhe für sehr breite Bildschirme */
    }
}

@media (max-width: 1024px) {
    .product-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-tile-content {
        padding: 15px;
    }
    
    .product-tile-title {
        font-size: 1.1rem;
    }
    
    /* Fix: Kleinere Höhe für mobile Ansicht */
    .product-tile-image {
        height: 200px; /* Kleinere Höhe für mobile Geräte */
    }
}

/* Sehr kleine Bildschirme: Noch kleinere Höhe */
@media (max-width: 480px) {
    .product-tile-image {
        height: 160px; /* Noch kleinere Höhe für sehr schmale Bildschirme */
    }
    
    .product-tile-content {
        padding: 12px;
    }
} 

/* Historie Grid Layout */
.historygrid {
    grid-template-columns: 40% 20% 40% !important;
    gap: 20px !important;
}

/* Responsive Historie Grid */
@media (max-width: 1024px) {
    .historygrid {
        grid-template-columns: 35% 30% 35% !important;
    }
}

@media (max-width: 768px) {
    .historygrid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
    }
}

/* Container Width Classes */
.width1000 {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.width1300 {
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.width1400 {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.width1500 {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}