/* Path: assets/css/article.css */

/* =========================================
   1. ARTIKEL LAYOUT
   ========================================= */

/* Schmalerer Container für bessere Lesbarkeit (Standard-Praxis für Blogs/Artikel) */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. BANNER & HEADER (Fallback-Design)
   ========================================= */

.article-header {
    /* Fallback: Seriöser Farbverlauf (Blau zu Dunkelgrau), falls kein Bild da ist */
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden; /* Damit ein Bild nicht übersteht */
}

/* Falls wir später ein echtes <img> in den Header legen */
.article-header-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Bild abdunkeln, damit Text lesbar bleibt */
    z-index: 0;
}

/* Der Container für Titel & Meta-Daten (liegt über dem Bild/Verlauf) */
.article-title-wrapper {
    position: relative;
    z-index: 1; 
}

.article-title {
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Schatten für Lesbarkeit */
}

.article-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
    display: inline-block;
    background: rgba(0,0,0,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

/* =========================================
   3. TYPOGRAFIE & INHALT
   ========================================= */

.article-content {
    font-size: 1.125rem; /* Ca. 18px - ideal für längeres Lesen */
    line-height: 1.8;
    color: var(--text-main);
}

/* Zwischenüberschriften */
.article-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color); /* Deine Hauptfarbe */
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Listen etwas einrücken */
.article-content ul, 
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Highlight-Box (für Fazit oder wichtige Infos) */
.article-highlight {
    background-color: #f8fafc; /* Helles Grau/Blau */
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    font-style: italic;
    margin: 2.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-sm);
}