/* ========================================
   PRODUKTVERGLEICH STYLES
   Ergänzung für /assets/css/style.css
   ======================================== */

/* === GRID LAYOUT: MAIN CONTENT + SIDEBAR === */
.article-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.article-content {
    min-width: 0; /* Verhindert Grid-Overflow */
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive: Sidebar unter Content auf Mobile */
@media (max-width: 968px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
}

/* Article Layout */
.article-page {
    padding: 40px 0;
    background: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.category-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.article-meta {
    color: #666;
    font-size: 14px;
}

/* Intro Box */
.article-intro {
    background: #f0f7ff;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 32px;
}

.article-intro p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.info-box h3 {
    margin-top: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.info-box ul {
    margin: 16px 0 0 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    position: relative;
}

.product-card.highlighted {
    border-color: #ffd700;
    background: linear-gradient(to bottom, #fffef7 0%, white 100%);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #007bff;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.product-badge.budget {
    background: #28a745;
}

.product-badge.winner {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
}

.product-badge.premium {
    background: #6f42c1;
}

.product-card h3 {
    margin-top: 16px;
    font-size: 28px;
    color: #1a1a1a;
}

.product-rating {
    font-size: 18px;
    margin: 16px 0;
    color: #ffa500;
}

.product-card h4 {
    margin-top: 24px;
    font-size: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Blockquote */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #333;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 8px;
}

.pros {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.cons {
    background: #ffebee;
    border: 2px solid #f44336;
}

.pros h5, .cons h5 {
    margin-top: 0;
    font-size: 18px;
}

.pros ul, .cons ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.pros li, .cons li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Product CTA */
.product-cta {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 8px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.price-info {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: bold;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.price-tag {
    display: block;
    font-size: 14px;
    font-weight: normal;
    margin-top: 4px;
    opacity: 0.9;
}

/* Decision Guide */
.decision-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.guide-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
}

.guide-card.highlighted {
    border-color: #ffd700;
    background: linear-gradient(to bottom, #fffef7 0%, white 100%);
}

.guide-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.guide-card ul {
    margin: 16px 0 0 0;
    padding-left: 20px;
}

.guide-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Checklist */
.checklist {
    counter-reset: checklist-counter;
    list-style: none;
    padding: 0;
}

.checklist li {
    counter-increment: checklist-counter;
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
    line-height: 1.6;
}

.checklist li::before {
    content: counter(checklist-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #007bff;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* FAQ */
.faq {
    margin: 32px 0;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.faq-item h3 {
    margin-top: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #333;
}

/* Conclusion */
.conclusion {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}

.recommendation-box {
    background: white;
    border: 3px solid #ffd700;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.recommendation-box h3 {
    margin-top: 0;
    font-size: 24px;
    color: #1a1a1a;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
    font-size: 28px;
}

.cta-buttons {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.disclaimer {
    margin-top: 24px;
    opacity: 0.9;
}

/* Article Footer */
.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #666;
}

.update-info, .author-info {
    font-size: 14px;
    margin: 8px 0;
}

/* Sidebar */
.sidebar {
    max-width: 300px;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget h3 {
    margin-top: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.widget li {
    margin-bottom: 12px;
}

.widget a {
    color: #007bff;
    text-decoration: none;
}

.widget a:hover {
    text-decoration: underline;
}

/* === PRODUCT QUICK-LINKS (unter Vergleichstabelle) === */
.product-quick-links {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.product-quick-links h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    text-align: center;
    color: #1a1a1a;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.quick-link-card.winner {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.quick-link-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.quick-link-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.quick-link-price {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
}

.quick-link-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-link-card.winner .quick-link-badge {
    background: #ffc107;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-content {
        padding: 24px 16px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .decision-guide {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin: 8px 0;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-link-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 24px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-card h3 {
        font-size: 22px;
    }
    
    .cta-box {
        padding: 24px 16px;
    }
}
