/* ============================================================
   HERO ABSCHLEPPDIENST — Blog / Ratgeber
   Erbt Design-Tokens aus style.css (Navy #001B5E · Yellow #F5C800)
   ============================================================ */

/* ── Blog-Hero ─────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  /* Navbar ist sticky (im Fluss) — kein nav-h-Offset nötig. */
  padding: 2.75rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  right: -8%;
  top: -30%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245,200,0,.16), transparent 70%);
  pointer-events: none;
}
.blog-hero .wrap { position: relative; z-index: 1; }
.blog-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: .4rem 0 .9rem;
  max-width: 20ch;
}
.blog-hero p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 60ch;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.crumb a { color: var(--yellow); }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: rgba(255,255,255,.35); }
.crumb .cur { color: rgba(255,255,255,.6); }

/* ── Beitragsraster ────────────────────────────────────────── */
.blog-list { padding: 4rem 0 5rem; background: var(--off); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -20px rgba(0,27,94,.32);
  border-color: transparent;
}
.post-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  overflow: hidden;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-media .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.6rem;
}
.post-card-tag {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: var(--yellow);
  color: var(--navy);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .28em .7em;
  border-radius: 5px;
}
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .74rem;
  color: var(--subtle);
  font-weight: 600;
  margin-bottom: .6rem;
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }
.post-card h2 {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: .55rem;
}
.post-card:hover h2 { color: var(--navy); }
.post-card p { font-size: .9rem; line-height: 1.7; color: var(--body); flex: 1; }
.post-card .read {
  margin-top: 1.1rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.post-card .read span { transition: transform .2s; }
.post-card:hover .read span { transform: translateX(4px); }

/* ── Leerer Zustand ────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  max-width: 560px;
  margin: 0 auto;
}
.blog-empty .ico { font-size: 2.6rem; }
.blog-empty h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: .8rem 0 .5rem; }
.blog-empty p { color: var(--body); font-size: .95rem; }

/* ── Einzelartikel ─────────────────────────────────────────── */
.article-wrap { padding: 3rem 0 4rem; background: var(--white); }
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 2.2rem;
  background: var(--off);
}
.article-header { margin-bottom: 2rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  font-size: .8rem;
  color: var(--subtle);
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }
.article-tag {
  background: var(--navy);
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .28em .7em;
  border-radius: 5px;
}
.article h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.025em;
  color: var(--ink);
}
.article-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--body);
  margin-top: 1.1rem;
  font-weight: 500;
}

/* ── Artikel-Inhalt (Typo) ─────────────────────────────────── */
.article-body { font-size: 1.04rem; line-height: 1.85; color: #2b3444; }
.article-body > * + * { margin-top: 1.3rem; }
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-top: 2.6rem;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2rem;
}
.article-body a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: .5rem; }
.article-body img { border-radius: var(--r); margin: 1.6rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--off);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--navy);
}
.article-body figure figcaption { font-size: .8rem; color: var(--subtle); text-align: center; margin-top: .5rem; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.article-body code { background: var(--off); padding: .12em .4em; border-radius: 4px; font-size: .9em; }

/* ── Artikel-CTA + Zurück ──────────────────────────────────── */
.article-cta {
  margin: 3rem auto 0;
  max-width: 760px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
  text-align: center;
}
.article-cta h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.article-cta p { color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: 1.3rem; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 2.6rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--navy);
}
.article-back:hover { text-decoration: underline; }

/* ── Verwandte Beiträge ────────────────────────────────────── */
.related { background: var(--off); padding: 3.5rem 0 4.5rem; }
.related h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 1.5rem; text-align: center; }

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-cover { aspect-ratio: 16 / 11; }
  /* Weniger Leerraum oben auf Mobil */
  .blog-hero { padding: 1.6rem 0 2.25rem; }
  /* CTA im Einzelartikel: seitliche Abstände auf Mobil */
  .article-cta { margin-left: 1.25rem; margin-right: 1.25rem; padding: 1.9rem 1.4rem; }
}
