/* =====================================================================
   Holstentor Schlüsseldienst — blog.css (hl-blog__)
   Uses tokens and shared classes (hl-wrap, hl-btn, hl-link) from main.css
   ===================================================================== */

/* Hero */
.hl-blog__hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 64px;
  background: linear-gradient(160deg, var(--hl-night) 0%, var(--hl-night-2) 100%);
  color: #ffffff;
}
.hl-blog__hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border: 60px solid rgba(21, 67, 160, .28);
  border-radius: 50%;
  pointer-events: none;
}
.hl-blog__hero > .hl-wrap { position: relative; z-index: 1; }
.hl-blog__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--hl-mist-2);
}
.hl-blog__crumbs a { color: #ffffff; font-weight: 500; }
.hl-blog__crumbs a:hover, .hl-blog__crumbs a:focus-visible { color: var(--hl-lime); text-decoration: underline; }
.hl-blog__crumbs-sep { opacity: .5; }
.hl-blog__title {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  color: #ffffff;
}
.hl-blog__title em { font-style: normal; color: var(--hl-lime); }
.hl-blog__lead {
  max-width: 740px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--hl-mist);
}

/* Main */
.hl-blog__main { padding: 80px 0 100px; background: #ffffff; }
.hl-blog__main > .hl-wrap { min-width: 0; }

/* Grid and cards */
.hl-blog__posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.hl-blog__posts > * { min-width: 0; }
.hl-blog__post {
  background: #ffffff;
  box-shadow: var(--shadow-7);
  transition: box-shadow var(--duration-base) linear, transform var(--duration-base) linear;
}
.hl-blog__post:hover, .hl-blog__post:focus-within { box-shadow: var(--shadow-8); transform: translateY(-4px); }
.hl-blog__post-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.hl-blog__post-link:hover { color: inherit; }
.hl-blog__post-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hl-soft); }
.hl-blog__post-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hl-blog__post:hover .hl-blog__post-media > img { transform: scale(1.05); }
.hl-blog__post-body { display: flex; flex-direction: column; flex-grow: 1; padding: 26px 28px 30px; border-top: 4px solid var(--hl-lime); }
.hl-blog__post-date {
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hl-blue);
}
.hl-blog__post-title { margin-bottom: 12px; font-size: 20px; line-height: 1.35; color: var(--hl-ink); }
.hl-blog__post-excerpt { flex-grow: 1; margin-bottom: 20px; font-size: 15px; line-height: 1.65; color: var(--hl-body); }
.hl-blog__post-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  font-weight: 700;
  color: var(--hl-blue);
  transition: color var(--duration-base) linear;
}
.hl-blog__post-more img { width: 14px; height: 14px; transition: transform var(--duration-base) linear; }
.hl-blog__post:hover .hl-blog__post-more, .hl-blog__post-link:focus-visible .hl-blog__post-more { color: var(--hl-steel); }
.hl-blog__post:hover .hl-blog__post-more img { transform: translateX(4px); }

/* Empty state */
.hl-blog__empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 40px;
  text-align: center;
  background: var(--hl-soft);
  border-top: 4px solid var(--hl-lime);
}
.hl-blog__empty-title { margin-bottom: 14px; font-size: clamp(22px, 2.6vw, 30px); color: var(--hl-ink); }
.hl-blog__empty-text { margin-bottom: 28px; font-size: 16px; line-height: 1.7; color: var(--hl-body); }
.hl-blog__empty-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.hl-blog__empty-links > * { min-width: 0; }
.hl-blog__empty-links .hl-btn { color: #ffffff; }
.hl-blog__empty-links .hl-btn:hover, .hl-blog__empty-links .hl-btn:focus-visible { color: var(--hl-night); }

/* Pagination */
.hl-blog__pag { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 56px; }
.hl-blog__pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hl-ink);
  background: #ffffff;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: background-color var(--duration-base) linear, color var(--duration-base) linear, box-shadow var(--duration-base) linear;
}
.hl-blog__pag-btn:hover, .hl-blog__pag-btn:focus-visible { background: var(--hl-lime); color: var(--hl-night); box-shadow: var(--shadow-3); }
.hl-blog__pag-btn img { width: 16px; height: 16px; }
.hl-blog__pag-btn--prev img { transform: rotate(180deg); }
.hl-blog__pag-nums { display: flex; align-items: center; gap: 6px; }
.hl-blog__pag-num {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  font-weight: 700;
  color: var(--hl-ink);
  background: #ffffff;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: background-color var(--duration-base) linear, color var(--duration-base) linear, box-shadow var(--duration-base) linear;
}
.hl-blog__pag-num:hover, .hl-blog__pag-num:focus-visible { background: var(--hl-lime); color: var(--hl-night); box-shadow: var(--shadow-3); }
.hl-blog__pag-num--active, .hl-blog__pag-num--active:hover { background: var(--hl-blue); color: #ffffff; box-shadow: var(--shadow-5); cursor: default; }
.hl-blog__pag-dots { padding: 0 4px; color: var(--hl-mute); }

/* Call to action — light band */
.hl-blog__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  padding: 48px 52px;
  background: var(--hl-soft);
  border-left: 6px solid var(--hl-lime);
}
.hl-blog__cta > * { min-width: 0; }
.hl-blog__cta-title { margin-bottom: 12px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--hl-ink); }
.hl-blog__cta-copy { max-width: 640px; font-size: 16px; line-height: 1.7; color: var(--hl-body); }
.hl-blog__cta-actions { display: flex; flex-direction: column; gap: 14px; }
.hl-blog__cta-phone { white-space: nowrap; }
.hl-blog__cta-actions .hl-btn { min-height: 60px; padding: 0 34px; }
.hl-blog__cta-actions .hl-btn--blue { color: #ffffff; }
.hl-blog__cta-actions .hl-btn--blue:hover, .hl-blog__cta-actions .hl-btn--blue:focus-visible { color: var(--hl-night); }
.hl-blog__cta-phone:hover, .hl-blog__cta-phone:focus-visible { background: var(--hl-blue); color: #ffffff; box-shadow: var(--shadow-5); }
.hl-blog__cta-phone:hover img, .hl-blog__cta-phone:focus-visible img { filter: brightness(0) invert(1); }

/* Responsive */
@media (max-width: 1200px) {
  .hl-blog__posts { gap: 24px; }
  .hl-blog__post-body { padding: 24px 22px 26px; }
}
@media (max-width: 1024px) {
  .hl-blog__posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-blog__main { padding: 64px 0 80px; }
  .hl-blog__cta { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .hl-blog__cta-actions { flex-direction: row; flex-wrap: wrap; }
  .hl-blog__cta-actions .hl-btn { flex: 1 1 240px; }
}
@media (max-width: 768px) {
  .hl-blog__hero { padding: 40px 0 48px; }
  .hl-blog__crumbs { margin-bottom: 22px; }
  .hl-blog__lead { font-size: 16px; }
  .hl-blog__main { padding: 52px 0 64px; }
  .hl-blog__cta { margin-top: 56px; padding: 32px 24px; }
  .hl-blog__empty { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .hl-blog__posts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hl-blog__hero::after { display: none; }
  .hl-blog__post-title { font-size: 18px; }
  .hl-blog__post-excerpt { font-size: 14px; }
  .hl-blog__pag-btn span { display: none; }
  .hl-blog__pag-btn { padding: 0 16px; }
  .hl-blog__cta { padding: 28px 20px; }
  .hl-blog__cta-actions { flex-direction: column; }
  .hl-blog__cta-actions .hl-btn { flex: 0 0 auto; width: 100%; padding: 0 20px; }
  .hl-blog__empty-links { flex-direction: column; }
  .hl-blog__empty-links .hl-btn { width: 100%; }
}
@media (max-width: 375px) {
  .hl-blog__title { font-size: 27px; }
  .hl-blog__pag-num { min-width: 40px; height: 40px; }
  .hl-blog__pag-btn { min-height: 40px; }
}
