/* Produkt-Kachelraster. Im Altsystem stand dieser Block wortgleich in
   Views/Eisele/Index.cshtml UND Views/Produkte/Index.cshtml. Die
   Startseiten-Fassung hatte dabei einen Fehler: nach dem linear-gradient
   fehlte das Semikolon, wodurch das folgende border-radius verschluckt
   wurde. Uebernommen ist die korrekte Produkte-Fassung. */
/* Fließendes Grid-Layout mit CSS Columns (Masonry-Stil) */
    .products-grid {
        column-count: 4;
        column-gap: 20px;
        margin-bottom: 40px;
    }

    /* Produktitem - verhindert Umbruch innerhalb der Karte */
    .product-item {
        display: inline-block;
        width: 100%;
        margin-bottom: 20px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Produktkarten */
    .product-card {
        transition: all 0.3s ease;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background: #fff;
        display: block;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    /* Produktbild */
    .product-image {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-image {
        transform: scale(1.05);
    }

    /* Thumbnail-Bereich */
    .thumbnail-img {
        position: relative;
    }

    .overflow-hidden {
        overflow: hidden;
        position: relative;
    }

    /* NEU Badge */
    .product-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 5px 15px;
        border-radius: 20px;
        font-weight: bold;
        font-size: 12px;
        z-index: 10;
        text-transform: uppercase;
    }

    .product-badge-new {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }

    /* Button Styling */
    .btn-more {
        display: inline-block;
        padding: 10px 20px;
        margin-top: 10px;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff !important;
        text-decoration: none;
        font-weight: 500;
        text-align: center;
    }

    .btn-more:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .btn-more i {
        margin-right: 5px;
    }

    /* Caption Styling */
    .caption {
        padding: 20px;
    }

    .caption h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .caption h3 a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .caption h3 a:hover {
        color: #667eea;
    }

    .product-description {
        color: #666;
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Unterkategorien */
    .product-subcategories {
        margin-top: 15px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .subcategory-item {
        margin-bottom: 8px;
        display: flex;
        align-items: flex-start;
    }

    .subcategory-item i {
        color: #667eea;
        margin-right: 8px;
        font-size: 14px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .subcategory-item a {
        color: #555;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.3s ease;
        line-height: 1.4;
    }

    .subcategory-item a:hover {
        color: #667eea;
    }

    /* Headline Verbesserung */
    .headline h2 {
        position: relative;
        padding-bottom: 15px;
        margin-bottom: 40px;
        text-align: center;
    }

    .headline h2:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

    /* Responsive Anpassungen */
    @media (max-width: 1200px) {
        .products-grid {
            column-count: 3;
        }
    }

    @media (max-width: 768px) {
        .products-grid {
            column-count: 2;
        }
    }

    @media (max-width: 480px) {
        .products-grid {
            column-count: 1;
        }

        .caption h3 {
            font-size: 16px;
        }
    }
