/* =====================================================================
   SPURKLAR BLOG – Bausteine für aktuelles.html und alle Beiträge
   Farben, Schriften, Header und Footer kommen aus /css/styles.css.
   Hier stehen nur die Blog-spezifischen Teile.
   Einbinden NACH styles.css:
     <link rel="stylesheet" href="/css/styles.css">
     <link rel="stylesheet" href="/beitraege/blog.css">
   ===================================================================== */

.section{padding:24px 0 88px;}

/* ---------- BEITRAGSKARTEN (Übersicht + "Weitere Beiträge") ---------- */
.post-grid{display:grid;grid-template-columns:1fr;gap:24px;}
@media(min-width:700px){.post-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1000px){.post-grid{grid-template-columns:repeat(3,1fr);}}
.post-card{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease;}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--c-brand-soft);}
.post-body{padding:24px 26px 26px;display:flex;flex-direction:column;flex:1;}
.post-meta{font-size:.8rem;color:var(--c-text-muted);margin-bottom:10px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;}
.post-tag{display:inline-block;background:var(--c-signal-soft);color:var(--c-heading);font-family:var(--font-head);font-weight:700;font-size:.74rem;text-transform:uppercase;letter-spacing:.5px;padding:3px 11px;border-radius:999px;}
.post-meta > span:not(.post-tag){flex-basis:100%;}
.post-card h2,.post-card h3{font-size:1.2rem;color:var(--c-title-from);margin-bottom:10px;}
.post-card p{color:var(--c-text-muted);font-size:.95rem;flex:1;}
.post-more{margin-top:16px;font-weight:600;color:var(--c-title-from);font-size:.92rem;}
.post-card:hover .post-more{color:var(--c-title-to);}
/* Neuester Beitrag auf der Übersicht groß */

.empty-state{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--radius);padding:48px 32px;text-align:center;max-width:620px;margin:0 auto;}
.empty-state h2{font-size:1.5rem;margin-bottom:10px;}
.empty-state p{color:var(--c-text-muted);margin-bottom:24px;}

/* ---------- EINZELNER BEITRAG ---------- */
.article-hero{padding:56px 0 8px;}
.article-hero .container{max-width:768px;}
.back-link{display:block;width:max-content;color:var(--c-text-muted);font-size:.9rem;font-weight:600;margin-bottom:22px;}
.back-link:hover{color:var(--c-heading);}
.article-hero .tag{margin-bottom:16px;}
.article-hero h1{font-size:2.2rem;line-height:1.15;margin-bottom:16px;}
@media(min-width:600px){.article-hero h1{font-size:2.8rem;}}
.article-hero .lead{color:var(--c-text);font-size:1.15rem;max-width:720px;margin-bottom:22px;}
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:.9rem;color:var(--c-text-muted);padding-bottom:28px;border-bottom:1px solid var(--c-border);}
.article-meta .author{display:flex;align-items:center;gap:10px;color:var(--c-heading);font-weight:600;}
.author-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid var(--c-signal);background:var(--c-brand-soft);display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:700;color:var(--c-title-from);font-size:1rem;flex-shrink:0;}

.article{max-width:768px;margin:0 auto;padding:36px 24px 24px;}
.article p{font-size:1.06rem;line-height:1.8;margin-bottom:22px;}
.article h2{font-size:1.7rem;margin:52px 0 16px;}
.article h3{font-size:1.22rem;color:var(--c-heading);margin:32px 0 10px;}
.article ul,.article ol{margin:0 0 24px 22px;}
.article li{font-size:1.04rem;line-height:1.75;margin-bottom:10px;}
.article strong{color:var(--c-heading);}
.article a{color:var(--c-title-from);text-decoration:underline;text-decoration-color:var(--c-signal);text-underline-offset:3px;}
.article a.btn{text-decoration:none;color:#fff;}
.article sup a{text-decoration:none;font-weight:600;}
.article blockquote{border-left:3px solid var(--c-signal);padding:4px 0 4px 22px;margin:34px 0;font-family:var(--font-head);font-size:1.4rem;font-weight:700;color:var(--c-title-from);line-height:1.35;}

/* Kennzahlen-Kacheln */
.stat-row{display:grid;grid-template-columns:1fr;gap:14px;margin:28px 0 32px;}
@media(min-width:560px){.stat-row{grid-template-columns:repeat(3,1fr);}}
.stat{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--radius);padding:20px 18px;}
.stat .num{display:block;font-family:var(--font-head);font-weight:700;font-size:2rem;color:var(--c-title-from);line-height:1.1;margin-bottom:6px;font-variant-numeric:tabular-nums;}
.stat .label{font-size:.88rem;color:var(--c-text-muted);line-height:1.45;}

/* Tabelle */
.table-wrap{overflow-x:auto;margin:24px 0 10px;border-radius:var(--radius);border:1px solid var(--c-border);background:var(--c-surface);}
.cost-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:460px;}
.cost-table th,.cost-table td{padding:13px 18px;text-align:left;border-bottom:1px solid var(--c-border);vertical-align:top;}
.cost-table th{background:var(--c-brand-soft);color:var(--c-heading);font-family:var(--font-head);font-weight:700;font-size:.92rem;}
.cost-table td:last-child,.cost-table th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
.cost-table tr:last-child td{border-bottom:none;}
.cost-table tr.total td{background:var(--c-signal-soft);font-weight:700;color:var(--c-heading);}
.table-note{font-size:.84rem !important;color:var(--c-text-muted);margin-bottom:28px !important;}

/* Hinweis-Box */
.callout{background:var(--c-brand-soft);border-radius:var(--radius);padding:20px 22px;margin:28px 0;}
.callout strong{display:block;color:var(--c-title-from);margin-bottom:4px;font-family:var(--font-head);font-size:1.08rem;}
.callout p{font-size:.98rem !important;margin-bottom:0 !important;}

/* Abschluss-Box im Beitrag */
.article-cta{background:var(--c-brand-soft);border:1px solid var(--c-brand-mid);border-radius:22px;padding:36px 30px;text-align:center;margin:48px 0 16px;}
.article-cta h3{font-size:1.55rem !important;margin:0 0 10px !important;color:var(--c-title-from) !important;}
.article-cta p{color:var(--c-text-muted);font-size:1rem !important;margin:0 auto 22px !important;max-width:460px;}

/* Quellen */
.sources{border-top:1px solid var(--c-border);margin-top:40px;padding-top:22px;}
.sources h2{font-size:.9rem !important;margin:0 0 10px !important;color:var(--c-text-muted) !important;text-transform:uppercase;letter-spacing:1px;}
.sources ol{margin-left:18px;}
.sources li{font-size:.86rem !important;color:var(--c-text-muted);margin-bottom:6px;line-height:1.5;}
.sources a{color:var(--c-text-muted) !important;word-break:break-word;}

/* Weitere Beiträge */
.more-posts{padding:56px 0 80px;}
.more-posts h2{font-size:1.7rem;margin-bottom:24px;}
.more-posts .all-link{display:inline-block;margin-top:24px;font-weight:600;color:var(--c-title-from);}

/* ---------- SMARTPHONE ---------- */
@media(max-width:600px){
  .article-hero{padding:36px 0 4px;}
  .article-hero .lead{font-size:1.04rem;}
  .article{padding:28px 24px 16px;}
  .article p{font-size:1.02rem;}
  .article h2{font-size:1.45rem;margin-top:40px;}
  .article blockquote{font-size:1.18rem;}
  .article-cta{padding:30px 20px;}
  .cost-table{min-width:0;font-size:.9rem;}
  .cost-table thead{display:none;}
  .cost-table tr{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid var(--c-border);}
  .cost-table tr:last-child{border-bottom:none;}
  .cost-table td{border-bottom:none;padding:12px 14px;}
  .cost-table td:first-child{flex:1;min-width:0;padding-right:0;}
}

/* Aufzählung in der Hinweis-Box */
.callout ul{margin:8px 0 0 20px !important;}
.callout li{font-size:.98rem !important;margin-bottom:6px !important;}
.callout li strong{display:inline;font-family:inherit;font-size:inherit;margin:0;color:var(--c-heading);}

/* ---------- Formel, Checkliste, Zahlentabelle ---------- */
.article p.formula{background:var(--c-signal-soft);border-radius:var(--radius);padding:14px 20px;font-family:var(--font-head);font-weight:700;font-size:1.12rem;color:var(--c-heading);line-height:1.4;}
.callout ul{margin:8px 0 0 20px;}
.callout li{font-size:.98rem;margin-bottom:6px;}
.callout li strong{display:inline;font-family:inherit;font-size:inherit;margin:0;color:var(--c-heading);}
.article ul.checklist{list-style:none;margin-left:0;}
.article ul.checklist li{position:relative;padding-left:34px;}
.article ul.checklist li::before{content:"";position:absolute;left:0;top:.3em;width:20px;height:20px;border:2px solid var(--c-title-from);border-radius:6px;}
.cost-table--num{min-width:560px;}
.cost-table--num td,.cost-table--num th{white-space:nowrap;padding-left:14px;padding-right:14px;}
.cost-table--num th,.cost-table--num th:last-child{white-space:normal;vertical-align:bottom;line-height:1.3;}
.cost-table--num td:not(:first-child),.cost-table--num th:not(:first-child){text-align:right;}
@media(max-width:600px){
  .cost-table--num{min-width:0;font-size:.78rem;}
  .cost-table--num thead{display:table-header-group;}
  .cost-table--num tr{display:table-row;}
  .cost-table--num td{border-bottom:1px solid var(--c-border);}
  .cost-table--num tr:last-child td{border-bottom:none;}
  .cost-table--num td:first-child,.cost-table--num th:first-child{padding-left:12px;padding-right:4px;}
  .cost-table--num td,.cost-table--num th{padding:10px 5px;}
  .cost-table--num th{font-size:.72rem;hyphens:auto;}
}

/* ---------- Texttabelle (z. B. Stufen in der Probezeit) ---------- */
.cost-table--text td,.cost-table--text th,.cost-table--text td:last-child,.cost-table--text th:last-child{text-align:left;white-space:normal;}
.cost-table--text td:first-child{width:42%;font-weight:600;color:var(--c-heading);}
@media(max-width:600px){
  .cost-table--text thead{display:table-header-group;}
  .cost-table--text tr{display:table-row;}
  .cost-table--text td{border-bottom:1px solid var(--c-border);padding:12px 10px;font-size:.88rem;}
  .cost-table--text th{padding:12px 10px;}
  .cost-table--text tr:last-child td{border-bottom:none;}
}
