/* =====================================================================
   Installateur Hilfe Wien — blog.css (ih-blog__)
   Uses tokens and .ih-wrap / .ih-btn from main.css
   ===================================================================== */

/* Hero */
.ih-blog__hero {
  position: relative;
  padding: 56px 0 64px;
  background: linear-gradient(160deg, var(--ih-navy) 0%, var(--ih-navy-2) 100%);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}
.ih-blog__hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  width: 36px;
  height: 252px;
  background: url("/assets/icons/plus-dot.svg") 0 0 / 36px 36px repeat;
  opacity: 0.5;
  pointer-events: none;
}
.ih-blog__hero > .ih-wrap { position: relative; z-index: 1; }
.ih-blog__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.ih-blog__crumbs a { color: var(--ih-sky); font-weight: 500; }
.ih-blog__crumbs a:hover { color: #ffffff; }
.ih-blog__crumbs-sep { opacity: 0.5; }
.ih-blog__eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: var(--ih-head-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ih-sky);
}
.ih-blog__title {
  max-width: 1000px;
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.08;
  color: #ffffff;
}
.ih-blog__title span { color: var(--ih-sky); }
.ih-blog__lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* Main */
.ih-blog__main { background: var(--ih-paper); padding: 72px 0 0; }

/* Grid + cards */
.ih-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.ih-blog__grid > * { min-width: 0; }
.ih-blog__card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow-4);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ih-blog__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.ih-blog__card-link { display: flex; flex-direction: column; height: 100%; }
.ih-blog__card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ih-sand); }
.ih-blog__card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ih-blog__card:hover .ih-blog__card-media > img { transform: scale(1.05); }
.ih-blog__card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 26px 28px 28px;
  border-top: 4px solid var(--ih-blue);
}
.ih-blog__card-date {
  margin-bottom: 12px;
  font-family: var(--ih-head-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ih-blue);
}
.ih-blog__card-title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ih-ink);
}
.ih-blog__card-excerpt {
  flex-grow: 1;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ih-grey);
}
.ih-blog__card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--ih-body-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ih-blue);
}
.ih-blog__card-more img { width: 14px; height: 14px; transition: transform 0.2s ease; }
.ih-blog__card:hover .ih-blog__card-more img { transform: translateX(4px); }

/* Empty state */
.ih-blog__empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow-4);
  text-align: center;
}
.ih-blog__empty > img { margin: 0 auto 20px; width: 40px; height: 40px; }
.ih-blog__empty-title { margin-bottom: 14px; font-size: 26px; color: var(--ih-ink); }
.ih-blog__empty-text { margin-bottom: 28px; color: var(--ih-grey); }
.ih-blog__empty-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Pagination */
.ih-blog__pag {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
}
.ih-blog__pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--ih-ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ih-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ih-blog__pag-btn img { width: 16px; height: 16px; }
.ih-blog__pag-btn--prev img { transform: rotate(180deg); }
.ih-blog__pag-btn:hover { background: var(--ih-ink); color: #ffffff; }
.ih-blog__pag-btn:hover img { filter: brightness(0) invert(1); }
.ih-blog__pag-nums { display: flex; align-items: center; gap: 6px; }
.ih-blog__pag-num {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--ih-rule);
  border-radius: 4px;
  background: #ffffff;
  font-family: var(--ih-head-font);
  font-weight: 700;
  color: var(--ih-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
a.ih-blog__pag-num:hover { border-color: var(--ih-blue); color: var(--ih-blue); }
.ih-blog__pag-num--active { background: var(--ih-blue); border-color: var(--ih-blue); color: #ffffff; }
.ih-blog__pag-dots { padding: 0 4px; color: var(--ih-grey); }

/* CTA band: light, so it does not sit dark-on-dark above the footer */
.ih-blog__cta { padding: 80px 0 96px; }
.ih-blog__cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 44px 48px;
  background: #ffffff;
  border-left: 6px solid var(--ih-blue);
  border-radius: 4px;
  box-shadow: var(--shadow-4);
}
.ih-blog__cta-box > * { min-width: 0; }
.ih-blog__cta-copy { max-width: 680px; }
.ih-blog__cta-title { margin-bottom: 14px; font-size: 30px; color: var(--ih-ink); }
.ih-blog__cta-text { color: var(--ih-grey); font-size: 16px; line-height: 1.7; }
.ih-blog__cta-actions { display: flex; flex-direction: column; gap: 14px; flex: 0 0 auto; }
.ih-blog__cta-actions .ih-btn--white { border-color: var(--ih-blue); color: var(--ih-blue); }

/* Responsive */
@media (max-width: 1200px) {
  .ih-blog__title { font-size: 48px; }
  .ih-blog__grid { gap: 24px; }
  .ih-blog__cta-box { padding: 40px; gap: 32px; }
}
@media (max-width: 1024px) {
  .ih-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ih-blog__main { padding-top: 56px; }
  .ih-blog__title { font-size: 42px; }
}
@media (max-width: 768px) {
  .ih-blog__hero::before { display: none; }
  .ih-blog__hero { padding: 40px 0 48px; }
  .ih-blog__title { font-size: 36px; }
  .ih-blog__lead { font-size: 16.5px; }
  .ih-blog__cta { padding: 56px 0 64px; }
  .ih-blog__cta-box { flex-direction: column; align-items: stretch; padding: 32px 28px; }
  .ih-blog__cta-title { font-size: 26px; }
  .ih-blog__cta-actions { flex-direction: row; flex-wrap: wrap; }
  .ih-blog__cta-actions .ih-btn { flex: 1 1 220px; }
}
@media (max-width: 640px) {
  .ih-blog__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ih-blog__title { font-size: 31px; }
  .ih-blog__main { padding-top: 40px; }
  .ih-blog__card-body { padding: 22px 22px 24px; }
  .ih-blog__pag-btn span { display: none; }
  .ih-blog__empty { padding: 36px 22px; }
  .ih-blog__cta-box { padding: 28px 20px; }
  .ih-blog__cta-actions { flex-direction: column; }
  .ih-blog__cta-actions .ih-btn { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 375px) {
  .ih-blog__title { font-size: 28px; }
  .ih-blog__cta-title { font-size: 23px; }
}
