/* ============================================
   Insights Article Styles
   ============================================

   Zentrale Styles für alle Insights-Artikel
   Vermeidet Code-Duplikation in einzelnen Artikeln

   Version: 1.0.0
   Created: 2025-10-09
   ============================================ */

/* Article Typography Defaults */
.article-content h2 {
    @apply text-3xl font-bold text-gray-900 mb-6;
}

.article-content h3 {
    @apply text-2xl font-semibold text-gray-900 mb-4;
}

.article-content h4 {
    @apply text-xl font-semibold text-gray-900 mb-3;
}

.article-content p {
    @apply text-gray-700 leading-relaxed mb-4;
}

.article-content ul,
.article-content ol {
    @apply mb-4 pl-6;
}

.article-content li {
    @apply mb-2 text-gray-700;
}

.article-content a {
    @apply text-primary hover:text-primary-dark underline;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #ff6b35;
    width: 0%;
    transition: width 0.3s ease;
    z-index: 50;
}

/* Content Boxes */
.quote-box {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-left: 4px solid #1e3c72;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.highlight-box {
    background-color: #fff7ed;
    border: 2px solid #ff6b35;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.stats-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.framework-box {
    background-color: #f9fafb;
    border-left: 3px solid #6b7280;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Visualization Placeholders */
.visualization-placeholder {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    text-align: center;
    font-weight: 500;
    padding: 3rem 2rem;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.visualization-placeholder h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.visualization-placeholder p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.visualization-note {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
}

/* CTA Boxes */
.cta-box {
    background: linear-gradient(135deg, #1e3c72, #2d4f8c);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Step Lists */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #ff6b35;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Key Takeaways Box */
.key-takeaways {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 2rem;
    margin: 3rem 0;
}

.key-takeaways h3 {
    color: #0284c7;
    margin-bottom: 1rem;
}

.key-takeaways ul {
    list-style: none;
    padding-left: 0;
}

.key-takeaways li::before {
    content: "✓";
    color: #0284c7;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Source/Reference Boxes */
.sources-box {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 3rem 0 2rem 0;
    font-size: 0.875rem;
}

.sources-box h3,
.sources-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.sources-box ul {
    list-style: none;
    padding-left: 0;
}

.sources-box li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.sources-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6b7280;
}

/* Article Grid Layouts */
.article-grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .article-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .article-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .article-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Images in Articles */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;
}
