/* Produktkachel Widget Styles */

/* Hauptcontainer - Wird durch spezifischere Regeln unten überschrieben */

.elementor-widget-product_tile .product-tile {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px !important;
    margin: 0;
    margin-bottom: 20px;
}

.elementor-widget-product_tile .product-tile.expanded {
    background-color: #E0E9FF;
}

.product-tile-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.product-tile-image {
    flex-shrink: 0;
    width: 200px;
}

.product-tile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.product-tile-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.product-tile-title {
    font-family: var(--font-heading, 'Citrus Gothic'), Arial, sans-serif;
    font-size: 1.5625rem;
    font-weight: 700;
    color: #312783;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.product-tile-description {
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
    text-align: left;
}

.product-tile-description p {
    text-align: left;
}

/* Toggle-Bereich für Nährwerte */
.product-tile-nutrition {
    opacity: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.product-tile-nutrition.visible {
    opacity: 1;
    height: auto;
    max-height: 650px;
    margin-top: 20px;
}

.product-tile-nutrition .nutritional-values {
    display: block;
}

/* Produktinformationen */
.product-information {
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.product-information p {
    margin: 0 0 12px 0;
    text-align: left;
}

.product-information blockquote,
.product-information > * {
    margin: 8px 0;
}

.product-information strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Nährwerte im normalen Zustand (versteckt) */
.nutritional-values {
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 1rem;
    color: #333333;
    margin-top: 16px;
    display: none;
}

.nutritional-values strong {
    color: #312783;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.nutritional-values ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nutritional-values li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.nutritional-values li:last-child {
    border-bottom: none;
}

.product-tile-toggle {
    background-color: transparent;
    border: none;
    color: #312783;
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-top: auto;
    transition: color 0.3s ease;
    transform: none;
    box-shadow: none;
}

.product-tile-toggle:hover {
    color: #e74c3c;
    transform: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.product-tile-toggle::after {
    content: '▼';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.product-tile-toggle.active::after {
    transform: rotate(180deg);
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 1rem;
}

.nutrition-table th,
.nutrition-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.nutrition-table th {
    background-color: rgba(49, 39, 131, 0.1);
    font-weight: 600;
    color: #312783;
}

.product-tile-ingredients {
    margin-top: 16px;
}

.product-tile-ingredients h4 {
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #312783;
    margin-bottom: 8px;
}

.product-tile-ingredients p {
    font-family: var(--font-body, 'Helvetica Neue'), Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
}

/* Neue Elementor Container-Struktur (e-con) */
.e-con .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 20px !important;
    max-width: 1920px !important;
    margin: 0 auto !important;
    padding: 0 20px 30px !important;
}
.historie .e-con .e-con-inner {
    padding: 0 20px !important;
}
@media (max-width: 480px) {
    .e-con .e-con-inner {
        padding: 0 !important;
    }
    .historie .e-con .e-con-inner {
        padding: 0 !important;
    }
}
/* Product Tile Widgets in neuer Container-Struktur */
.e-con-inner .elementor-widget-product_tile {
    flex: 0 1 auto !important;
    max-width: 800px !important;
    min-width: 500px !important;
    width: calc(50% - 10px) !important;
    box-sizing: border-box !important;
}

/* Wenn nur eine Kachel oder zu wenig Platz für zwei: eine pro Zeile */
@media (max-width: 1100px) {
    .e-con-inner .elementor-widget-product_tile {
        flex: 0 0 100% !important;
        max-width: 800px !important;
        min-width: auto !important;
        width: auto !important;
        margin: 0 auto 20px auto !important;
    }
}

.elementor-widget-product_tile .elementor-widget-container {
    width: 100%;
}

/* Fallback für einzelne Kachel */
.e-con-inner .elementor-widget-product_tile:only-child {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Mobile Responsive - Stack Layout für schmale Bildschirme */
@media (max-width: 768px) {
    .e-con-inner {
        gap: 0 !important;
        justify-content: center !important;
    }
    
    .product-tile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .product-tile-image {
        width: 150px;
        margin-bottom: 16px;
    }
    
    .product-tile-title {
        font-size: 1.375rem;
        text-align: center;
    }
    
    .product-tile-description {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .product-tile-toggle {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .elementor-widget-product_tile .product-tile {
        padding: 16px;
        margin: 0 5px 20px 5px;
    }
    
    .product-tile-image {
        width: 120px;
    }
    
    .product-tile-title {
        font-size: 1.25rem;
    }
    
    .product-tile-description {
        font-size: 1rem;
    }
    
    .product-tile-toggle {
        font-size: 1.125rem;
    }
} 

@media (max-width: 320px) {
    .elementor-widget-product_tile .product-tile {
        margin: 0 0 20px 0 !important; 
        padding: 12px !important; 
    }
    
    
    .e-con .e-con-inner {
        padding: 0 10px !important; 
    }
}


@media (max-width: 480px) {
    .elementor-widget-product_tile .product-tile {
        padding: 16px;
        margin: 0 0 20px 0; 
    }
}