/* ============================================================
   Blog CSS – flohmarkt-karte.de
   Scope: nur .blog-*, .article-*, .blog-widget, .btn-blog-all
   Kein Einfluss auf Header, Footer, Nav oder globale Elemente
   ============================================================ */

/* ── Blog Hero (blog.php) ────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
    color: #fff;
    padding: 100px 0 50px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}

.blog-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Blog Übersichts-Sektion ─────────────────────────────── */
.blog-section {
    padding: 60px 0 80px;
    background: var(--bg-light, #f8f9fa);
}

/* ── Blog-Grid ───────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ── Blog-Karte ──────────────────────────────────────────── */
.blog-card {
    background: var(--bg-white, #fff);
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
    border: 1px solid var(--border-light, #ecf0f1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 8px 16px rgba(0,0,0,0.15));
}

.blog-card__image-placeholder {
    width: 100%;
    height: 160px;
    background: var(--bg-light, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light, #ecf0f1);
}

.blog-card__image-placeholder i {
    font-size: 2.8rem;
    color: var(--primary-color, #e74c3c);
    opacity: 0.65;
}

.blog-card__body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badge als kleines Pill */
.blog-card__badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.blog-card__badge--organisation { background: var(--primary-color, #e74c3c); }
.blog-card__badge--standplan    { background: var(--accent-color, #3498db); }
.blog-card__badge--marketing    { background: var(--success-color, #27ae60); }
.blog-card__badge--planung      { background: #9b59b6; }

.blog-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin: 0 0 10px;
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary, #7f8c8d);
    line-height: 1.6;
    flex: 1;
    margin: 0 0 14px;
}

.blog-card__meta {
    font-size: 0.8rem;
    color: var(--text-light, #95a5a6);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color, #e74c3c);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-card__link:hover {
    gap: 10px;
    text-decoration: none;
}

/* ── Leer-Zustand ────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #7f8c8d);
}

.blog-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--text-light, #95a5a6);
}

/* ── Artikel Hero ────────────────────────────────────────── */
.article-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
    color: #fff;
    padding: 90px 0 40px;
    text-align: center;
}

.article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.article-hero__back:hover { color: #fff; }

.article-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.article-hero__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto 14px;
    max-width: 800px;
    color: #fff;
}

.article-hero__meta {
    font-size: 0.88rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-hero__meta i { margin-right: 4px; }

/* ── Artikel Sektion – zentriert wie index ───────────────── */
.article-section {
    padding: 60px 0 80px;
    background: var(--bg-light, #f8f9fa);
}

/* Kein Grid mehr – einfach zentrierter Block */
.article-layout {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Artikel-Content ─────────────────────────────────────── */
.article-content {
    background: var(--bg-white, #fff);
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
    border: 1px solid var(--border-light, #ecf0f1);
    padding: 40px 48px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary, #2c3e50);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light, #ecf0f1);
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #e74c3c);
    margin: 24px 0 10px;
}

.article-content p { margin: 0 0 16px; }

.article-content ul,
.article-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.article-content li { margin-bottom: 6px; }

.article-content strong {
    color: var(--text-primary, #2c3e50);
    font-weight: 600;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 24px;
    font-size: 0.93rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
}

.article-content th {
    background: var(--secondary-color, #2c3e50);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-content td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light, #ecf0f1);
    color: var(--text-secondary, #7f8c8d);
}

.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--bg-light, #f8f9fa); }

/* ── CTA-Box unter Artikel ───────────────────────────────── */
.article-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius: var(--border-radius-lg, 12px);
    padding: 36px 40px;
    margin-top: 32px;
    text-align: center;
    box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.12));
}

.article-cta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.article-cta p {
    opacity: 0.92;
    margin: 0 0 22px;
    font-size: 1rem;
}

.article-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary-color, #e74c3c);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: var(--border-radius, 8px);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-cta .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.12));
    text-decoration: none;
}

/* Sidebar komplett ausblenden (HTML bleibt, CSS versteckt) */
.article-sidebar { display: none !important; }

/* ── Startseiten-Blog-Widget ─────────────────────────────── */
.blog-widget {
    padding: 80px 0;
    background: var(--bg-white, #fff);
}

.blog-widget .blog-grid {
    margin-top: 40px;
}

.blog-widget-footer {
    text-align: center;
    margin-top: 36px;
}

.btn-blog-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-color, #e74c3c);
    border: 2px solid var(--primary-color, #e74c3c);
    padding: 12px 30px;
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-blog-all:hover {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .article-layout { max-width: 100%; }
    .article-content { padding: 32px 28px; }
}

@media (max-width: 768px) {
    .blog-hero       { padding: 90px 0 40px; }
    .blog-hero h1    { font-size: 1.9rem; }

    .article-hero    { padding: 80px 0 30px; }
    .article-hero__title { font-size: 1.5rem; }
    .article-hero__meta  { gap: 12px; font-size: 0.82rem; }

    .article-content { padding: 22px 18px; }
    .article-content h2 { font-size: 1.25rem; }
    .article-cta     { padding: 26px 20px; }

    .blog-widget     { padding: 60px 0; }
}

@media (max-width: 480px) {
    .blog-hero h1        { font-size: 1.6rem; }
    .article-hero__title { font-size: 1.3rem; }
    .blog-grid           { gap: 16px; }
    .article-cta h3      { font-size: 1.2rem; }
}