/* ══════════════════════════════════════════
   ElektroGH.wien – Blog / Ratgeber Styles
   ══════════════════════════════════════════ */

/* ──────────── BLOG HERO ──────────── */
.blog-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 0;
  text-align: center;
}
.blog-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.blog-hero-badge .lucide {
  width: 14px;
  height: 14px;
}
.blog-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.blog-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ──────────── FEATURED ARTICLE ──────────── */
.featured-article {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transition: all 0.2s;
}
.featured-article:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.featured-article-img {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.featured-article-img .lucide {
  width: 80px;
  height: 80px;
  color: var(--muted-light);
}
.featured-article-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.featured-article-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.featured-article-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}
.featured-article-btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ──────────── ARTICLE CATEGORY TAGS ──────────── */
.article-category {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}
.cat-led {
  background: var(--blue-light);
  color: var(--blue);
}
.cat-elektro {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}
.cat-pv {
  background: var(--green-light);
  color: var(--green);
}
.cat-smart {
  background: #f0f0ff;
  color: #5b5bd6;
}
.cat-werkzeug {
  background: var(--red-light);
  color: var(--red);
}

/* ──────────── BLOG META ──────────── */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-meta-author,
.blog-meta-date,
.blog-meta-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-meta .lucide {
  width: 13px;
  height: 13px;
}
.blog-meta-sep {
  opacity: 0.4;
  font-size: 0.7rem;
}

/* ──────────── CATEGORY FILTER BAR ──────────── */
.category-filter {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 68px;
  z-index: 100;
}
.category-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filter-inner::-webkit-scrollbar {
  display: none;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid transparent;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.category-pill:hover {
  color: var(--black);
  background: var(--border-light);
}
.category-pill.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ──────────── BLOG GRID ──────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ──────────── BLOG CARD ──────────── */
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.blog-card-img {
  background: var(--surface);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img .lucide {
  width: 52px;
  height: 52px;
  color: var(--muted-light);
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.blog-card-body .blog-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ──────────── NEWSLETTER ──────────── */
/* Newsletter styles moved to styles.css */

/* ──────────── RESPONSIVE: 1100px ──────────── */
@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-article {
    grid-template-columns: 1fr 1fr;
  }
}

/* ──────────── RESPONSIVE: 1024px ──────────── */
@media (max-width: 1024px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article-img {
    min-height: 220px;
  }
  .featured-article-content {
    padding: 28px;
  }
}

/* ──────────── RESPONSIVE: 768px ──────────── */
@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 0;
  }
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  .blog-hero p {
    font-size: 0.9rem;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article-img {
    min-height: 200px;
  }
  .featured-article-content {
    padding: 24px;
  }
  .featured-article-title {
    font-size: 1.3rem;
  }

  .category-filter {
    top: 0;
  }
  .category-filter-inner {
    padding: 12px 16px;
    gap: 6px;
  }
  .category-pill {
    height: 32px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-img {
    height: 160px;
  }
}

/* ──────────── RESPONSIVE: 480px ──────────── */
@media (max-width: 480px) {
  .blog-hero {
    padding: 32px 0;
  }
  .blog-hero-inner {
    padding: 0 16px;
  }
  .blog-hero h1 {
    font-size: 1.5rem;
  }

  .featured-article-img {
    min-height: 160px;
  }
  .featured-article-img .lucide {
    width: 56px;
    height: 56px;
  }
  .featured-article-content {
    padding: 20px 16px;
  }
  .featured-article-title {
    font-size: 1.15rem;
  }

  .blog-card-body {
    padding: 16px;
  }
  .blog-card-img {
    height: 140px;
  }
  .blog-card-img .lucide {
    width: 40px;
    height: 40px;
  }
}
