/* ============================================================
   blog.css – Praxiswissen / Blog (RechtFlix-Design)
   Verwendet von praxiswissen.php und beitrag.php
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #0d2d6e;
  --teal:  #0ea5c8;
  --bg:    #f4f7fb;
  --white: #ffffff;
  --text:  #1a1a2e;
  --muted: #5a6a80;
  --radius: 16px;
  --max:   1200px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid #e2eaf3;
  padding: 0 60px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); font-weight: 700; }
.btn-nav {
  background: var(--navy); color: var(--white);
  padding: 11px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-nav:hover { background: #0a2255; }

/* ── HERO (dunkel) ── */
.blog-hero {
  background: linear-gradient(135deg, #0d2d6e 0%, #11357f 60%, #0a2255 100%);
  color: #fff;
  padding: 92px 60px 84px;
}
.blog-hero-inner { max-width: var(--max); margin: 0 auto; }
.blog-hero .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: #7fd3e6; margin-bottom: 18px;
}
.blog-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.12; margin-bottom: 18px; }
.blog-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 620px; }

/* ── SUCHE ── */
.blog-search { display: flex; gap: 10px; margin-top: 30px; max-width: 520px; }
.blog-search input {
  flex: 1; border: none; border-radius: 10px;
  padding: 14px 18px; font-size: 15px; font-family: inherit;
  color: var(--text); outline: none;
}
.blog-search input::placeholder { color: #8a97ab; }
.blog-search button {
  border: none; border-radius: 10px; cursor: pointer;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 26px; font-family: inherit; transition: background .15s;
}
.blog-search button:hover { background: #0b8aa8; }
.search-info {
  max-width: var(--max); margin: 0 auto; padding: 28px 60px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 15px; color: var(--muted);
}
.search-info a { color: var(--teal); text-decoration: none; font-weight: 600; }
.search-info a:hover { text-decoration: underline; }

/* ── FILTER ── */
.filter-bar {
  max-width: var(--max); margin: 0 auto; padding: 40px 60px 8px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.chip {
  border: 1.5px solid #d4deeb; background: #fff;
  color: var(--navy); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 24px; cursor: pointer;
  transition: all .15s; line-height: 1;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── KARTEN-GRID ── */
.blog-grid-section { max-width: var(--max); margin: 0 auto; padding: 32px 60px 88px; }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e9eef5;
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text);
  box-shadow: 0 4px 20px rgba(13,45,110,.06);
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(13,45,110,.13); }
.post-card-img { aspect-ratio: 16/10; background: var(--bg); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.post-card h2 { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.post-date { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.post-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--navy); }
.post-card:hover .post-more { color: var(--teal); }

.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ── EINZELBEITRAG ── */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.back-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; margin-bottom: 24px; }
.back-link:hover { text-decoration: underline; }
.article-cat { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.article-wrap h1 { font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1.18; margin-bottom: 14px; }
.article-meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.article-hero-img { width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: 0 12px 40px rgba(13,45,110,.12); }
.article-hero-img img { width: 100%; height: auto; display: block; }
.article-body { font-size: 17px; color: #2a3344; line-height: 1.8; }
.article-body p { margin-bottom: 20px; }

/* ── CTA ── */
.cta-section { padding: 0 60px 88px; }
.cta-box {
  max-width: var(--max); margin: 0 auto;
  background: var(--bg); border-radius: var(--radius);
  padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-box .cta-text h3 { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.cta-box .cta-text p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.btn-cta {
  white-space: nowrap; background: var(--navy); color: #fff;
  padding: 16px 32px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn-cta:hover { background: #0a2255; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 60px; font-size: 13px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner a { color: rgba(255,255,255,.6); text-decoration: none; margin-left: 20px; }
.footer-inner a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .blog-hero { padding: 60px 24px 56px; }
  .blog-hero h1 { font-size: 32px; }
  .search-info { padding: 24px 24px 0; }
  .filter-bar { padding: 28px 24px 4px; }
  .blog-grid-section { padding: 24px 24px 64px; }
  .cta-section { padding: 0 24px 64px; }
  .cta-box { flex-direction: column; text-align: center; padding: 36px 28px; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
