
/* ============ SINGLE POST (Referenz-Stil, Theme-Farben) ============ */
.post-hero{background:linear-gradient(135deg,#e9f4ec 0%,#dcefe2 60%,#d4e9db 100%);border-bottom:1px solid #cde3d4;padding:52px 0 46px;text-align:center;position:relative;overflow:hidden}
.post-hero::before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(27,122,67,.14),transparent 70%);top:-180px;left:-120px}
.post-hero::after{content:"";position:absolute;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,rgba(245,158,11,.16),transparent 70%);bottom:-200px;right:-100px}
.post-hero .container{position:relative;z-index:1}
.hero-crumb{font-size:13px;font-weight:600;color:var(--sp-muted);margin-bottom:18px}
.hero-crumb a{color:var(--sp-primary)}
.hero-pill{display:inline-block;background:#fff;color:var(--sp-primary);font-size:11.5px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;padding:8px 20px;border-radius:999px;border:1px solid #cde3d4;margin-bottom:20px}
.hero-pill:hover{text-decoration:none;background:var(--sp-primary);color:#fff}
.post-hero h1{font-size:clamp(30px,4.4vw,46px);font-weight:800;letter-spacing:-.8px;color:#10231a;max-width:860px;margin:0 auto .5em}
.hero-sub{font-size:17px;color:#3c4a41;max-width:720px;margin:0 auto 26px}
.hero-meta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.meta-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.85);border:1px solid #d8e8dc;color:#2c3a31;font-size:13px;font-weight:700;padding:9px 18px;border-radius:999px;backdrop-filter:blur(4px)}
.meta-pill svg{color:var(--sp-primary)}

.single-shell{padding:40px 20px 70px}
.single-grid{display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start;max-width:1200px;margin:0 auto}
.single-sidebar{position:sticky;top:100px;display:flex;flex-direction:column;gap:22px}

/* author card */
.sp-author-card{background:linear-gradient(135deg,var(--sp-primary),var(--sp-primary-dark));color:#fff;border-radius:16px;padding:26px 24px;box-shadow:0 10px 28px rgba(20,83,45,.25)}
.sp-author-top{font-size:12px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;opacity:.75;margin-bottom:14px}
.sp-author-avatar{width:56px;height:56px;border-radius:50%;overflow:hidden;border:3px solid rgba(255,255,255,.85);margin-bottom:12px;background:#fff}
.sp-author-avatar img{width:100%;height:100%;object-fit:cover}
.sp-author-avatar span{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:24px;font-weight:800;color:var(--sp-primary)}
.sp-author-name{font-weight:800;font-size:17px}
.sp-author-role{font-size:13px;opacity:.8;margin-bottom:10px}
.sp-author-bio{font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.88);margin:0}

/* dark TOC */
.sp-toc{background:#0e3b20;color:#fff;border-radius:16px;padding:24px 22px;max-height:480px;overflow-y:auto}
.sp-toc-title{font-size:15px;font-weight:800;letter-spacing:.4px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.14)}
.sp-toc ol{list-style:none;margin:0;padding:6px 0 0}
.sp-toc li{margin:0}
.sp-toc li a{display:flex;gap:10px;align-items:baseline;color:#b9cdc0;font-size:14px;padding:7px 10px;border-radius:8px;line-height:1.45}
.sp-toc li a::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--sp-accent);flex-shrink:0;transform:translateY(-1px)}
.sp-toc li.lvl3 a{padding-left:30px;font-size:13px}
.sp-toc li a:hover{color:#fff;background:rgba(255,255,255,.08);text-decoration:none}

/* article card */
.post-card-single{background:#fff;border-radius:22px;box-shadow:0 14px 44px rgba(20,83,45,.10);overflow:hidden;border:1px solid #e6efe8}
.post-featured img{width:100%;height:auto;display:block}
.post-card-single .post-card-body{padding:40px 46px}
.post-card-single .entry-content{font-size:17.5px}
.post-card-single .entry-content h2{font-size:clamp(23px,3vw,28px);font-weight:800;letter-spacing:-.4px;color:#10231a;border:0;padding:0;margin-top:2em}
.post-card-single .entry-content h3{font-size:21px;font-weight:800;color:#10231a;margin-top:1.6em}
.post-card-single .entry-content a{color:var(--sp-primary);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.post-card-single .entry-content a:hover{color:var(--sp-primary-dark)}
.post-card-single .entry-content blockquote{background:#f0f7f1;border-left:4px solid var(--sp-primary);border-radius:0 12px 12px 0;padding:18px 24px;font-size:17px}
.post-card-single .entry-content blockquote p{margin:0}

/* tables: gradient header */
.post-card-single .table-scroll{margin:0 0 2em}
.post-card-single .entry-content table{width:100%;border-collapse:separate;border-spacing:0;margin:0;font-size:15.5px;border:1px solid #e2eae4;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(20,83,45,.07)}
.post-card-single .entry-content thead th{background:linear-gradient(135deg,#14532D,#1B7A43);color:#fff;text-align:left;padding:14px 18px;font-size:14px;font-weight:800;border:0}
.post-card-single .entry-content thead th:last-child{text-align:right}
.post-card-single .entry-content tbody td{padding:13px 18px;border-bottom:1px solid #eef3ef}
.post-card-single .entry-content tbody tr:last-child td{border-bottom:0}
.post-card-single .entry-content tbody tr:nth-child(even){background:rgba(27,122,67,.045)}
.post-card-single .entry-content tbody td:first-child{font-weight:600;color:#1c2b21}
.post-card-single .entry-content tbody td:last-child{text-align:right;font-weight:800;color:var(--sp-primary-dark);white-space:nowrap}

/* FAQ cards */
.post-card-single .faq-cards{margin:0 0 2em}
.post-card-single .faq-card{background:#f2f7f3;border:1px solid #dfe9e1;border-radius:14px;padding:20px 24px;margin-bottom:12px}
.post-card-single .faq-card-q{font-size:16.5px;font-weight:800;color:#10231a;margin:0 0 .45em}
.post-card-single .faq-card-a{font-size:15px;color:#3c4a41}
.post-card-single .faq-card-a p{margin:0}

/* CTA */
.sp-cta{background:linear-gradient(135deg,#0E3B20,#1B7A43);border-radius:18px;padding:38px 40px;color:#fff;margin:2.5em 0 0;text-align:center;box-shadow:0 12px 32px rgba(14,59,32,.28)}
.sp-cta h3{color:#fff;font-size:24px;margin-bottom:.4em}
.sp-cta p{color:rgba(255,255,255,.9);margin-bottom:1.4em}
.sp-cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.sp-btn-light{display:inline-block;background:#fff;color:var(--sp-primary-dark);font-weight:800;padding:13px 30px;border-radius:999px}
.sp-btn-light:hover{background:#f0f7f1;color:var(--sp-primary-dark);text-decoration:none}
.sp-btn-ghost{display:inline-block;border:2px solid rgba(255,255,255,.7);color:#fff;font-weight:700;padding:11px 28px;border-radius:999px}
.sp-btn-ghost:hover{background:rgba(255,255,255,.14);color:#fff;text-decoration:none}

@media(max-width:960px){
  .single-grid{display:flex;flex-direction:column}
  .single-sidebar{position:static;order:2;width:100%}
  .post-card-single{order:1;width:100%}
  .post-card-single .post-card-body{padding:28px 22px}
  .post-hero{padding:40px 0 36px}
  .post-card-single .entry-content{font-size:16.5px}
}
@media(max-width:640px){
  .post-card-single .entry-content{font-size:16px}
  .post-card-single .entry-content table{font-size:14px}
  .post-card-single .entry-content thead th,.post-card-single .entry-content tbody td{padding:10px 12px}
  .hero-sub{font-size:15.5px}
  .meta-pill{font-size:12px;padding:8px 14px}
  .sp-cta{padding:30px 22px}
  .sp-toc{max-height:none}
}

/* ============ DARK MODE (single post) ============ */
body.dark-mode .post-hero{background:linear-gradient(135deg,#0d2115 0%,#10291a 60%,#0e2417 100%);border-bottom-color:#1d2b22}
body.dark-mode .post-hero h1{color:#f2f6f3}
body.dark-mode .hero-sub{color:#b9c8be}
body.dark-mode .hero-crumb{color:#93a798}
body.dark-mode .hero-crumb a{color:#7fd6a2}
body.dark-mode .hero-pill{background:#182620;color:#a9e5c3;border-color:#2a3d31}
body.dark-mode .meta-pill{background:rgba(20,32,25,.85);border-color:#2a3d31;color:#d9e2dc}
body.dark-mode .meta-pill svg{color:#7fd6a2}
body.dark-mode .post-card-single{background:#141f18;border-color:#243329;box-shadow:0 14px 44px rgba(0,0,0,.35)}
body.dark-mode .post-card-single .entry-content h2,body.dark-mode .post-card-single .entry-content h3{color:#f2f6f3}
body.dark-mode .post-card-single .entry-content a{color:#7fd6a2}
body.dark-mode .post-card-single .entry-content blockquote{background:#182620}
body.dark-mode .post-card-single .entry-content table{border-color:#243329;box-shadow:none}
body.dark-mode .post-card-single .entry-content tbody td{border-bottom-color:#1d2b22}
body.dark-mode .post-card-single .entry-content tbody tr:nth-child(even){background:rgba(255,255,255,.03)}
body.dark-mode .post-card-single .entry-content tbody td:first-child{color:#e6eee8}
body.dark-mode .post-card-single .entry-content tbody td:last-child{color:#7fd6a2}
body.dark-mode .post-card-single .faq-card{background:#182620;border-color:#2a3d31}
body.dark-mode .post-card-single .faq-card-q{color:#f2f6f3}
body.dark-mode .post-card-single .faq-card-a{color:#b9c8be}
body.dark-mode .sp-toc{background:#0a2415}
