/*
 * blog.css — mein-barfrechner.de Blog
 * Passend zur Landing Page: Lime / Blau / Orange, Bricolage Grotesque, Inter
 * Version: 1.1.1
 */

/* ══════════════════════════════════
   CSS TOKENS (falls 00-global.html nicht auf Blog-Seiten geladen)
══════════════════════════════════ */
:root {
    --white:        #ffffff;
    --off:          #f7faf8;
    --off2:         #f0f9f2;
    --blue:         #2ea6e4;
    --blue-light:   #e6f4fb;
    --green-light:  #edfaf2;
    --lime:         #a3e635;
    --lime-dark:    #7ab21a;
    --lime-glow:    rgba(163,230,53,.3);
    --dark:         #0d1a0f;
    --muted:        rgba(13,26,15,.52);
    --muted-lt:     rgba(13,26,15,.38);
    --glass-w:      rgba(255,255,255,.62);
    --glass-b:      rgba(255,255,255,.88);
    --fh:           'Bricolage Grotesque', sans-serif;
    --fb:           'Inter', sans-serif;
    --ease:         cubic-bezier(.25,.46,.45,.94);
}

/* ══════════════════════════════════
   READING PROGRESS BAR
══════════════════════════════════ */
.blog-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--lime), var(--lime-dark));
    width: 0%;
    z-index: 9999;
    transition: width .1s linear;
    pointer-events: none;
}

/* ══════════════════════════════════
   BLOG PAGE WRAPPER
══════════════════════════════════ */
.blog-page {
    font-family: var(--fb);
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden; /* kein horizontales Scrolling */
}

/* ══════════════════════════════════
   ARTIKEL HERO
══════════════════════════════════ */
.blog-hero {
    padding: 80px 52px 64px;
    background:
        radial-gradient(ellipse at 100% 0%,   rgba(46,166,228,.18) 0%, transparent 52%),
        radial-gradient(ellipse at 0%   100%, rgba(46,166,228,.11) 0%, transparent 48%),
        #f7faf8;
    text-align: center;
}

.blog-hero-in {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 3%;
}

.blog-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-light);
    border: 1px solid rgba(122,178,26,.3);
    color: var(--lime-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: background .2s;
}
.blog-cat-badge:hover { background: rgba(163,230,53,.15); }

.blog-h1 {
    font-family: var(--fh);
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    color: var(--dark);
    margin-bottom: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--muted);
}

.blog-meta-sep {
    width: 4px; height: 4px;
    background: var(--muted-lt);
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-meta-cat {
    color: var(--lime-dark);
    font-weight: 600;
    text-decoration: none;
}

/* ══════════════════════════════════
   FEATURED IMAGE
══════════════════════════════════ */
.blog-featured-img {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 52px;
    position: relative;
    z-index: 1;
}

.blog-featured-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-top: -20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* ══════════════════════════════════
   BLOG LAYOUT — 2 Spalten
══════════════════════════════════ */
.blog-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 64px 52px 100px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* ══════════════════════════════════
   ARTIKEL TYPOGRAFIE
══════════════════════════════════ */
.blog-content {
    min-width: 0;
}

.blog-content h2 {
    font-family: var(--fh);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: var(--dark);
    margin: 2.6em 0 .8em;
    padding-bottom: .55em;
    border-bottom: 2px solid var(--off2);
    position: relative;
}
.blog-content h2:first-child { margin-top: 0; }

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 48px; height: 2px;
    background: var(--lime);
}

.blog-content h3 {
    font-family: var(--fh);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 2em 0 .6em;
}

.blog-content h4 {
    font-family: var(--fh);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5em 0 .5em;
}

.blog-content p {
    font-size: 1.05rem;
    line-height: 1.82;
    color: rgba(13,26,15,.78);
    margin-bottom: 1.2em;
}

.blog-content a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(46,166,228,.4);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s;
}
.blog-content a:hover { text-decoration-color: var(--blue); }

.blog-content ul,
.blog-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.blog-content li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(13,26,15,.78);
    margin-bottom: .45em;
}

.blog-content ul li::marker { color: var(--lime-dark); }

.blog-content strong { font-weight: 600; color: var(--dark); }

.blog-content blockquote {
    border-left: 4px solid var(--lime);
    margin: 1.6em 0;
    padding: 14px 20px;
    background: var(--green-light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--muted);
}

/* ── Tabellen ── */

/* Scroll-Wrapper (wird per blog.js automatisch erzeugt) */
.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.8em 0;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    position: relative;
}

/* Rechter Gradient-Hinweis wenn Tabelle scrollbar ist */
.table-scroll-wrap.is-scrollable::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.85));
    pointer-events: none;
    border-radius: 0 14px 14px 0;
    z-index: 1;
}

.blog-content table {
    width: 100%;
    min-width: 480px;      /* erzwingt Scroll statt Quetschen */
    border-collapse: collapse;
    margin: 0;             /* Margin liegt jetzt am Wrapper */
    font-size: .93rem;
    border-radius: 0;      /* Border-Radius liegt am Wrapper */
    overflow: visible;
    box-shadow: none;      /* Shadow liegt am Wrapper */
}

.blog-content th {
    background: var(--dark);
    color: var(--white);
    font-family: var(--fh);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 13px 18px;
    text-align: left;
    white-space: nowrap;   /* Spaltenköpfe nicht umbrechen */
}

.blog-content td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(13,26,15,.07);
    color: rgba(13,26,15,.78);
    line-height: 1.55;
    vertical-align: top;
    background: var(--white);
    min-width: 100px;      /* Zellen nicht zu schmal quetschen */
}

.blog-content tr:nth-child(even) td { background: var(--off); }
.blog-content tr:last-child td      { border-bottom: none; }
.blog-content tr:hover td           { background: var(--green-light); transition: background .15s; }

/* ══════════════════════════════════
   ARTIKEL-BILDER (figure + figcaption)
══════════════════════════════════ */
.blog-figure {
    margin: 2.2em 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
}

.blog-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
}

/* Kein abgerundetes Bottom wenn Caption folgt */
.blog-figure:has(figcaption) img {
    border-radius: 16px 16px 0 0;
}

/* Kein figcaption — Bild komplett rund */
.blog-figure:not(:has(figcaption)) img {
    border-radius: 16px;
}

.blog-figure figcaption {
    background: var(--off);
    border-top: 1px solid rgba(13,26,15,.07);
    padding: 11px 18px;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.58;
    font-style: italic;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

/* ══════════════════════════════════
   CUSTOM CONTENT BLÖCKE
   (werden als HTML-Blöcke in WordPress eingefügt)
══════════════════════════════════ */

/* ── Quick Answer Box ── */
.quick-answer {
    background: var(--green-light);
    border-left: 4px solid var(--lime-dark);
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin: 0 0 2.2em;
}

.quick-answer::before {
    content: 'Kurze Antwort';
    display: block;
    font-family: var(--fh);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lime-dark);
    margin-bottom: 8px;
}

.quick-answer p {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    color: var(--dark) !important;
    font-weight: 500;
    line-height: 1.7 !important;
}

/* ── Infobox (allgemeine Wissensbox) ── */
.info-box {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    border-radius: 0 14px 14px 0;
    padding: 18px 22px;
    margin: 1.6em 0;
}

.info-box p {
    margin-bottom: 0 !important;
    font-size: .95rem !important;
    color: var(--dark) !important;
}

/* ── Warnbox ── */
.warn-box {
    background: #fff8e6;
    border-left: 4px solid #f0a500;
    border-radius: 0 14px 14px 0;
    padding: 18px 22px;
    margin: 1.6em 0;
}

.warn-box::before {
    content: '⚠ Wichtig';
    display: block;
    font-family: var(--fh);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #b07800;
    margin-bottom: 6px;
}

.warn-box p { margin-bottom: 0 !important; font-size: .95rem !important; }

/* ── CTA Box (im Artikel) ── */
.cta-box {
    background: linear-gradient(135deg, #e6f4fb 0%, #edfaf2 100%);
    border: 1px solid rgba(46,166,228,.18);
    border-radius: 18px;
    padding: 28px 32px;
    margin: 2.2em 0;
    text-align: center;
}

.cta-box strong {
    display: block;
    font-family: var(--fh);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

.cta-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to top, #8ecf1f, #b3f040);
    border: 1px solid rgba(0,0,0,.14);
    border-bottom: 2px solid rgba(0,0,0,.22);
    box-shadow: 0 4px 18px var(--lime-glow);
    color: var(--dark) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 32px;
    border-radius: 100px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta-box a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(130,200,30,.45);
}

/* ── Autorinnen-Box ── */
.blog-author {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--glass-w);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-b);
    box-shadow: 0 8px 32px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.95);
    border-radius: 18px;
    overflow: hidden;      /* Bild respektiert border-radius */
    padding: 0;
    margin: 2.8em 0 1.8em;
}

.blog-author img {
    width: 140px;

    min-height: 160px;
    flex-shrink: 0;
    align-self: stretch;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 0;
    border: none;
}

.blog-author-body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.blog-author-name {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.blog-author-role {
    font-size: .75rem;
    color: var(--lime-dark);
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-top: 3%;
}

.blog-author-text {
    font-size: .88rem;
    line-height: 1.68;
    color: var(--muted);
    margin: 0;
}

/* ── Disclaimer ── */
.blog-disclaimer {
    border-top: 1px solid rgba(13,26,15,.09);
    padding-top: 1.2em;
    margin-top: 1.5em;
    font-size: .8rem;
    line-height: 1.65;
    color: var(--muted-lt);
}

.blog-disclaimer strong {
    color: var(--muted);
    font-size: .8rem;
}

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.blog-sidebar { position: relative; }

.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sidebar Card Basis */
.sidebar-card {
    background: var(--white);
    border: 1px solid rgba(13,26,15,.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* Sidebar Section Titles */
.sidebar-section-title {
    font-family: var(--fh);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section-title::before {
    content: '';
    width: 20px; height: 1.5px;
    flex-shrink: 0;
}

.sidebar-section-title--lime::before  { background: var(--lime); }
.sidebar-section-title--blue::before  { background: var(--blue); }

/* ── TOC ── */
.blog-toc-title {
    font-family: var(--fh);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-toc-title::before {
    content: '';
    width: 20px; height: 1.5px;
    background: var(--lime);
    flex-shrink: 0;
}

#toc-nav ol {
    list-style: none;
    padding: 0; margin: 0;
    counter-reset: toc-h2;
}

#toc-nav > ol > li {
    counter-increment: toc-h2;
}

#toc-nav a {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    margin-bottom: 2px;
}

#toc-nav > ol > li > a::before {
    content: counter(toc-h2) '.';
    font-family: var(--fh);
    font-weight: 700;
    font-size: .74rem;
    color: var(--lime-dark);
    flex-shrink: 0;
    min-width: 18px;
}

#toc-nav a:hover {
    color: var(--dark);
    background: var(--green-light);
}

#toc-nav a.toc-active {
    color: var(--dark);
    font-weight: 600;
    background: var(--green-light);
}

/* H3 Sub-Items */
#toc-nav .toc-sub ol {
    list-style: none;
    padding: 0; margin: 0;
}

#toc-nav .toc-sub a {
    font-size: .79rem;
    padding-left: 28px;
    color: var(--muted-lt);
}

#toc-nav .toc-sub a::before {
    content: '—';
    font-weight: 400;
    font-size: .74rem;
    color: rgba(13,26,15,.22);
    min-width: 14px;
}

/* ── Sidebar CTA (blau, passend zur Landingpage) ── */
.sidebar-cta {
    background: linear-gradient(160deg, #1a9dd4 0%, #2ea6e4 60%, #1fb8f0 100%);
    border-radius: 18px;
    padding: 24px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Lime-Glow oben */
.sidebar-cta::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 240px; height: 200px;
    background: radial-gradient(circle, rgba(163,230,53,.25) 0%, transparent 70%);
    pointer-events: none;
}

/* Heller Schimmer rechts */
.sidebar-cta::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle at top right, rgba(255,255,255,.15) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar-cta-eyebrow {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 8px;
    position: relative;
}

.sidebar-cta-title {
    font-family: var(--fh);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 8px;
    position: relative;
}

.sidebar-cta-sub {
    font-size: .77rem;
    color: rgba(255,255,255,.75);
    line-height: 1.55;
    margin-bottom: 18px;
    position: relative;
}

.sidebar-cta-btn {
    display: block;
    background: linear-gradient(to top, #8ecf1f, #b3f040);
    border: 1px solid rgba(0,0,0,.14);
    border-bottom: 2px solid rgba(0,0,0,.22);
    box-shadow: 0 4px 18px rgba(163,230,53,.45);
    color: var(--dark) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .88rem;
    padding: 13px 20px;
    border-radius: 100px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    text-align: center;
    position: relative;
}
.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(130,200,30,.55);
}

.sidebar-cta-note {
    font-size: .7rem;
    color: rgba(255,255,255,.55);
    margin-top: 10px;
    position: relative;
}

/* ── Kategorien ── */
.sidebar-cats-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-cats-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .86rem;
    color: var(--muted);
    padding: 7px 10px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    text-decoration: none;
}
.sidebar-cats-list a:hover {
    color: var(--dark);
    background: var(--green-light);
}

.sidebar-cats-count {
    font-size: .72rem;
    background: var(--off2);
    color: var(--muted-lt);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
}

/* ── Verwandte Artikel ── */
.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    transition: background .2s;
}
.sidebar-related-item:hover { background: var(--green-light); }

.sidebar-related-img {
    width: 60px; height: 46px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-related-img-placeholder {
    width: 60px; height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--off2), var(--green-light));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sidebar-related-cat {
    font-size: .68rem;
    color: var(--lime-dark);
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.sidebar-related-text {
    font-size: .82rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1080px) {
    .blog-layout {
        grid-template-columns: 1fr 290px;
        gap: 44px;
        padding: 52px 32px 80px;
    }
    .blog-hero  { padding: 64px 32px 52px; }
    .blog-featured-img { padding: 0 32px; }
    .blog-featured-img img { height: 340px; }
    .blog-figure { border-radius: 14px; }
    .blog-figure img { border-radius: 14px 14px 0 0; }
    .blog-figure:not(:has(figcaption)) img { border-radius: 14px; }
    .blog-figure figcaption { border-radius: 0 0 14px 14px; }

    .blog-content table  { font-size: .88rem; }
    .blog-content th     { padding: 11px 16px; }
    .blog-content td     { padding: 10px 16px; }
    .table-scroll-wrap   { border-radius: 12px; }
    .table-scroll-wrap.is-scrollable::after { border-radius: 0 12px 12px 0; }
}

@media (max-width: 800px) {
    .blog-layout {
        grid-template-columns: 1fr;
        padding: 36px 20px 64px;
        gap: 0;
    }

    /* Sidebar unter TOC auf Mobile — nach Artikel */
    .blog-sidebar {
        order: 2;
        margin-top: 40px;
    }

    .blog-sidebar-sticky {
        position: static;
        flex-direction: column;
        gap: 12px;
    }

    /* Auf Mobile: nur TOC + CTA sichtbar */
    .blog-sidebar .sidebar-card:nth-child(3),
    .blog-sidebar .sidebar-card:nth-child(4) {
        display: none;
    }

    .blog-hero { padding: 52px 20px 40px; }
    .blog-h1 {
        font-size: clamp(1.6rem, 5.5vw, 2.1rem);
        letter-spacing: -.025em;
        margin-bottom: 18px;
    }
    .blog-meta { gap: 10px; font-size: .8rem; }
    .blog-cat-badge { margin-bottom: 18px; }

    .blog-featured-img { padding: 0 20px; }
    .blog-featured-img img { height: 210px; border-radius: 16px; margin-top: -12px; }

    .blog-figure { margin: 1.8em 0; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
    .blog-figure img { border-radius: 12px 12px 0 0; }
    .blog-figure:not(:has(figcaption)) img { border-radius: 12px; }
    .blog-figure figcaption { border-radius: 0 0 12px 12px; padding: 10px 16px; }

    .blog-content table  { font-size: .84rem; min-width: 420px; }
    .blog-content th     { padding: 10px 14px; font-size: .74rem; }
    .blog-content td     { padding: 9px 14px; min-width: 90px; }
    .table-scroll-wrap   { border-radius: 10px; margin: 1.5em 0; }
    .table-scroll-wrap.is-scrollable::after { border-radius: 0 10px 10px 0; }
}

@media (max-width: 600px) {
    .blog-layout { padding: 28px 18px 56px; }

    .blog-hero { padding: 44px 18px 32px; }
    .blog-h1 {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
        letter-spacing: -.02em;
        line-height: 1.18;
        margin-bottom: 14px;
    }
    .blog-cat-badge { margin-bottom: 14px; font-size: .68rem; padding: 5px 14px; }
    .blog-meta { gap: 8px; font-size: .76rem; }
    .blog-meta-sep { width: 3px; height: 3px; }

    .blog-featured-img { padding: 0 18px; }
    .blog-featured-img img { height: 190px; border-radius: 14px; margin-top: -10px; }

    .blog-content h2 { font-size: 1.35rem; margin-top: 2.2em; }
    .blog-content h3 { font-size: 1.08rem; }
    .blog-content p,
    .blog-content li { font-size: .98rem; line-height: 1.75; }

    .blog-content table { font-size: .82rem; }
    .blog-content th,
    .blog-content td   { padding: 9px 12px; }

    .quick-answer { padding: 16px 18px; }
    .cta-box { padding: 20px 18px; }
    .cta-box strong { font-size: 1.05rem; margin-bottom: 12px; }
    .cta-box a { padding: 13px 22px; font-size: .88rem; }
    .warn-box { padding: 14px 18px; }

    .blog-author { flex-direction: column; }
    .blog-author img { width: 100%; height: 220px; object-position: top center; }
    .blog-author-body { padding: 20px 22px 22px; }

    .blog-figure { margin: 1.5em 0; border-radius: 10px; box-shadow: 0 3px 14px rgba(0,0,0,.07); }
    .blog-figure img { border-radius: 10px 10px 0 0; }
    .blog-figure:not(:has(figcaption)) img { border-radius: 10px; }
    .blog-figure figcaption { border-radius: 0 0 10px 10px; padding: 8px 14px; font-size: .76rem; }

    .blog-content table  { font-size: .79rem; min-width: 380px; }
    .blog-content th     { padding: 9px 12px; font-size: .7rem; letter-spacing: .04em; }
    .blog-content td     { padding: 8px 12px; min-width: 80px; line-height: 1.45; }
    .table-scroll-wrap   { border-radius: 9px; margin: 1.3em 0; }
    .table-scroll-wrap.is-scrollable::after { border-radius: 0 9px 9px 0; width: 36px; }
}

@media (max-width: 400px) {
    .blog-hero { padding: 40px 16px 28px; }
    .blog-h1 { font-size: clamp(1.35rem, 7vw, 1.6rem); }
    .blog-layout { padding: 24px 16px 48px; }
    .blog-featured-img { padding: 0 16px; }
    .blog-featured-img img { height: 170px; }

    .blog-content table  { font-size: .75rem; min-width: 340px; }
    .blog-content th     { padding: 8px 10px; }
    .blog-content td     { padding: 7px 10px; min-width: 70px; }
    .table-scroll-wrap   { border-radius: 8px; }
    .table-scroll-wrap.is-scrollable::after { width: 28px; border-radius: 0 8px 8px 0; }
}

/* ══════════════════════════════════
   BLOG INDEX — Kartenraster
   (home.php + archive.php)
══════════════════════════════════ */

/* Index Hero — Blau + Lime, passend zur Landingpage */
.blog-index-hero {
    padding: 130px 52px 72px; /* oben: Platz für Sticky-Nav */
    background: linear-gradient(160deg, #1a9dd4 0%, #2ea6e4 45%, #1fb8f0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Lime-Glow oben links — wie Landingpage */
.blog-index-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: -80px;
    width: 600px; height: 500px;
    background: radial-gradient(ellipse at top left, rgba(163,230,53,.20) 0%, transparent 60%);
    pointer-events: none;
}

/* Hellerer Glow oben rechts */
.blog-index-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 500px; height: 400px;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,.12) 0%, transparent 60%);
    pointer-events: none;
}

.blog-index-hero-in {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-index-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 20px;
}

.blog-index-eyebrow::before,
.blog-index-eyebrow::after {
    content: '';
    display: block;
    width: 28px; height: 1.5px;
    background: var(--lime);
    opacity: .7;
    flex-shrink: 0;
}

.blog-index-title {
    font-family: var(--fh);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #ffffff;
    margin-bottom: 20px;
}

/* "Hundegesundheit" in Lime — wie "BARF" auf der Landingpage */
.blog-index-title em {
    font-style: normal;
    color: var(--lime);
}

.blog-index-sub {
    font-size: 1.02rem;
    line-height: 1.72;
    color: rgba(255,255,255,.78);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* Kategorie-Pillen im Hero */
.blog-cat-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.30);
    color: rgba(255,255,255,.90);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: color .2s, background .2s, border-color .2s;
}

.blog-cat-pill:hover {
    color: var(--dark);
    background: var(--lime);
    border-color: var(--lime);
}

.blog-cat-pill--active {
    color: var(--dark);
    background: var(--lime);
    border-color: var(--lime);
    font-weight: 700;
}

/* Index Layout — 2 Spalten (Karten + Sidebar) */
.blog-index-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 60px 52px 100px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    align-items: start;
}

.blog-cards-area { min-width: 0; }

/* Sticky Sidebar (Index) */
.blog-index-sidebar-inner {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card Grid — 2 Spalten im Inhaltsbereich */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Einzelne Card */
.blog-card {
    background: var(--white);
    border: 1px solid rgba(13,26,15,.07);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
}

/* Card Bild */
.blog-card-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    background: var(--off2);
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s var(--ease);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--off2), var(--green-light));
    text-decoration: none;
}

/* Card Body */
.blog-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Kategorie-Badge */
.blog-card-badge {
    display: inline-block;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lime-dark);
    background: var(--green-light);
    border: 1px solid rgba(122,178,26,.25);
    padding: 4px 12px;
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background .2s;
    align-self: flex-start;
}
.blog-card-badge:hover { background: rgba(163,230,53,.18); }

/* Card Titel */
.blog-card-title {
    font-family: var(--fh);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: var(--dark);
    margin: 0 0 10px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.blog-card-title a:hover { color: var(--blue); }

/* Card Excerpt */
.blog-card-excerpt {
    font-size: .88rem;
    line-height: 1.68;
    color: var(--muted);
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(13,26,15,.07);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    color: var(--muted-lt);
    flex-wrap: wrap;
}

.blog-card-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
    flex-shrink: 0;
}
.blog-card-link:hover { color: var(--lime-dark); }

/* Kein-Beitrag-Meldung */
.blog-no-posts {
    padding: 60px 32px;
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--white);
    border: 1px solid rgba(13,26,15,.10);
    text-decoration: none;
    transition: color .2s, background .2s, border-color .2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    color: var(--dark);
    background: var(--lime);
    border-color: var(--lime-dark);
}

.blog-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

/* ── Responsive: Index ── */
@media (max-width: 1080px) {
    .blog-index-layout {
        grid-template-columns: 1fr 280px;
        gap: 40px;
        padding: 52px 32px 80px;
    }
    .blog-index-hero { padding: 110px 32px 60px; }
}

@media (max-width: 800px) {
    .blog-index-layout {
        grid-template-columns: 1fr;
        padding: 40px 24px 72px;
        gap: 32px;
    }

    /* Sidebar unter den Karten auf Mobile */
    .blog-index-sidebar-inner {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Auf Mobile: nur CTA + Kategorien */
    .blog-index-sidebar-inner .sidebar-card:last-child {
        display: none;
    }

    .blog-index-hero { padding: 100px 24px 52px; }
    .blog-cat-nav { gap: 6px; }
    .blog-cat-pill { font-size: .73rem; padding: 7px 16px; }
    .blog-cards-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
    .blog-index-layout { padding: 32px 20px 60px; }
    .blog-card-img-wrap { height: 180px; }
    .blog-index-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .blog-index-hero { padding: 90px 20px 44px; }
}
