/*
Theme Name:  Krankenzusatz
Theme URI:   https://krankenzusatz-vergleich.de
Description: Minimales Blog-Theme passend zum Landingpage-Design
Author:      Klaus Pilsner
Version:     1.0.0
License:     GNU General Public License v2
Text Domain: krankenzusatz
*/

/* ── DESIGN TOKENS (identisch mit Landingpages) ── */
:root {
  --ink:       #0e1b2a;
  --ink-soft:  #3a4a5c;
  --ink-mute:  #6b7f94;
  --bg:        #f7f9fc;
  --surface:   #ffffff;
  --accent:    #0057ff;
  --accent-h:  #003fc2;
  --green:     #00b87a;
  --border:    #dde4ed;
  --radius:    12px;
  --shadow:    0 2px 16px rgba(14,27,42,.07);
  --max-w:     760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-title {
  font-size: 1.05rem; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -.02em;
}
.site-title span { color: var(--accent); }

.nav-menu { display: flex; gap: 24px; list-style: none; }
.nav-menu a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .88rem; font-weight: 500; transition: color .2s;
}
.nav-menu a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent); color: #fff; border-radius: 8px;
  padding: 9px 18px; font-size: .88rem; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--accent-h); }

@media (max-width: 680px) { .nav-menu { display: none; } }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, #0e1b2a 0%, #1a3a6b 100%);
  color: #fff; padding: 60px 0 50px;
}
.page-header .eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #5da8ff; margin-bottom: 12px;
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: #fff; }
.page-header .subtitle { color: #b8d0ee; margin-top: 10px; font-size: 1rem; }

/* ── BLOG INDEX ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }

/* ── ARTIKEL-LISTE ── */
.post-list { display: flex; flex-direction: column; gap: 24px; }

.post-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.post-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e8f0fd, #c5e2fa);
}
.post-thumb.cat-zahn        { background: linear-gradient(135deg, #e8f4fd, #c5e2fa); }
.post-thumb.cat-krankenhaus { background: linear-gradient(135deg, #fef3e8, #fddbb4); }
.post-thumb.cat-ausland     { background: linear-gradient(135deg, #e8fdf5, #b4f0d6); }
.post-thumb.cat-heilpraktiker { background: linear-gradient(135deg, #f0ffe8, #c8f0a8); }
.post-thumb.cat-sehhilfen   { background: linear-gradient(135deg, #f8e8ff, #e0b4ff); }
.post-thumb.cat-expat       { background: linear-gradient(135deg, #e8f0fd, #b4d4ff); }

.post-body { padding: 24px; }
.post-tag {
  display: inline-block; background: #eef3ff; color: var(--accent);
  font-size: .72rem; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; margin-bottom: 10px; text-decoration: none;
}
.post-tag:hover { background: var(--accent); color: #fff; }

.post-card h2 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.post-card h2 a { color: var(--ink); text-decoration: none; transition: color .2s; }
.post-card h2 a:hover { color: var(--accent); }

.post-excerpt { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

.post-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; font-size: .78rem; color: var(--ink-mute);
}
.read-more { color: var(--accent); font-weight: 600; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ── SINGLE POST ── */
.single-layout { padding: 48px 0; }

.post-header { margin-bottom: 40px; }
.post-header .post-tag { margin-bottom: 14px; }
.post-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 16px;
}
.post-header .post-intro {
  font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7;
}
.post-header .post-meta { margin-top: 20px; }

/* Artikel-Inhalt */
.entry-content { font-size: 1rem; line-height: 1.8; color: var(--ink-soft); }
.entry-content h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  margin: 36px 0 14px;
}
.entry-content h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
  margin: 28px 0 10px;
}
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol {
  margin: 0 0 18px 24px;
}
.entry-content li { margin-bottom: 6px; }
.entry-content strong { color: var(--ink); }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: #f0f5ff;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink-soft);
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.entry-content thead { background: var(--ink); color: #fff; }
.entry-content th { padding: 12px 16px; text-align: left; font-size: .85rem; }
.entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:hover td { background: #f0f5ff; }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, #0057ff, #0e1b2a);
  border-radius: var(--radius); color: #fff;
  padding: 36px 32px; margin: 40px 0; text-align: center;
}
.cta-block h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.cta-block p  { color: #c8d8ee; margin-bottom: 24px; font-size: .95rem; }
.cta-block a {
  display: inline-block; background: #fff; color: var(--accent);
  border-radius: 8px; padding: 13px 28px; font-size: 1rem;
  font-weight: 700; text-decoration: none; transition: background .2s;
}
.cta-block a:hover { background: #e8f0ff; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; }

.widget {
  background: var(--surface); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 24px; margin-bottom: 24px;
}
.widget h3 { font-size: .95rem; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.widget a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; transition: color .2s; }
.widget a:hover { color: var(--accent); }
.widget-cta {
  background: linear-gradient(135deg, #0057ff, #003fc2);
  color: #fff; text-align: center;
}
.widget-cta h3 { color: #fff; }
.widget-cta p { font-size: .85rem; color: #c8d8ee; margin-bottom: 16px; }
.widget-cta a {
  display: block; background: #fff; color: var(--accent);
  border-radius: 8px; padding: 11px; font-size: .9rem;
  font-weight: 700; text-decoration: none;
}

/* ── PAGINATION ── */
.pagination {
  display: flex; gap: 8px; justify-content: center; margin: 40px 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--ink-soft);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); color: #8aaecf; padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: #5da8ff; }
.footer-desc { font-size: .83rem; line-height: 1.7; max-width: 240px; }
.site-footer h4 { color: #fff; font-size: .88rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #8aaecf; text-decoration: none; font-size: .83rem; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; font-size: .78rem;
}
.footer-legal { display: flex; gap: 20px; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
