/* Artikel-Bereich Hausgurus – Magazin-Layout (ergänzt wissen.css) */

.hg-artikel-showcase,
.hg-artikel-card,
.hg-artikel-card__title,
.hg-artikel-card__desc,
.hg-artikel-hub-intro,
.hg-article-related__link,
.hg-article-related__link small {
  hyphens: none;
  -webkit-hyphens: none;
}

.hg-article-breadcrumb {
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1rem) var(--hg-wissen-gutter) 0;
}

.hg-article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hg-wissen-muted);
}

.hg-article-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hg-article-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 4px;
  color: var(--hg-cosmic-400);
  font-weight: 400;
}

.hg-article-breadcrumb a {
  color: var(--hg-wissen-text-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.hg-article-breadcrumb a:hover {
  color: var(--hg-wissen-orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hg-article-breadcrumb [aria-current="page"] {
  color: var(--hg-cosmic-800);
  font-weight: 600;
}

.hg-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--hg-wissen-muted);
}

.hg-article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 145, 29, 0.1);
  border: 1px solid rgba(255, 145, 29, 0.2);
  font-weight: 700;
  color: var(--hg-wissen-orange-dark);
}

/* —— Einzelartikel (Parität Pflegeorienta, Farben Verkaufsguide) —— */
body.hg-article-page {
  scroll-padding-top: 88px;
}

.hg-wissen-hero .hg-article-breadcrumb {
  width: auto;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 0;
}

body.hg-article-page .hg-wissen-hero .hg-article-breadcrumb ol {
  justify-content: center;
}

body.hg-article-page .hg-wissen-lead,
.hg-article-lead {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.62;
}

.hg-article-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.hg-article-checklist li {
  position: relative;
  padding: 10px 12px 10px 36px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hg-wissen-border);
  color: var(--hg-wissen-text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.hg-article-checklist li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  font-weight: 800;
  color: var(--hg-wissen-orange-dark);
}

.hg-article-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 145, 29, 0.18);
}

.hg-article-related h2 {
  text-align: center;
  margin: 0 0 0.5rem;
}

.hg-wissen-main .hg-wissen-cta-band {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.hg-wissen-main .hg-wissen-cta-band--light h2 {
  color: var(--hg-cosmic-900);
}

.hg-wissen-main .hg-wissen-cta-band--light p {
  color: var(--hg-wissen-text-soft);
}

body.hg-article-hub-page .hg-wissen-hero .hg-article-breadcrumb ol,
body.hg-article-hub-page .hg-wissen-lead,
body.hg-article-hub-page .hg-article-lead {
  text-align: center;
}

body.hg-article-hub-page .hg-wissen-hero .hg-article-breadcrumb {
  width: auto;
  margin: 0 auto 12px;
  padding: 0;
}

.hg-article-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .hg-article-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hg-article-related__grid {
    grid-template-columns: 1fr;
  }
}

.hg-article-related__link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hg-cosmic-800);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--hg-wissen-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.15s;
}

.hg-article-related__link:hover {
  border-color: rgba(255, 145, 29, 0.38);
  box-shadow: 0 12px 28px rgba(255, 145, 29, 0.12);
  transform: translateY(-2px);
  color: var(--hg-wissen-orange-dark);
}

.hg-article-related__link small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hg-wissen-muted);
}

/* —— Startseiten-Showcase (Rahmen wie Vorteile / Verkaufsprozess) —— */
.hg-artikel-showcase:not(.hg-artikel-showcase--hub) {
  --hg-frame-border: rgba(170, 184, 205, 0.34);
  --hg-frame-bg-top: rgba(255, 255, 255, 0.7);
  --hg-frame-bg-bottom: rgba(255, 255, 255, 0.5);
  --hg-artikel-accent: #ff911d;
  --hg-artikel-accent-dark: #e67e17;
  --hg-artikel-text: #101318;
  --hg-artikel-muted: #5e6675;
  position: relative;
  z-index: 4;
  isolation: isolate;
  overflow: hidden;
  margin: clamp(12px, 3vw, 26px) auto;
  width: min(1220px, calc(100% - clamp(36px, 8vw, 88px)));
  max-width: none;
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 48px) clamp(16px, 3vw, 28px);
  border-radius: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--hg-frame-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  background: linear-gradient(145deg, var(--hg-frame-bg-top), var(--hg-frame-bg-bottom));
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hg-artikel-showcase--hub {
  --hg-artikel-accent: #ff911d;
  --hg-artikel-accent-dark: #e67e17;
  --hg-artikel-text: #101318;
  --hg-artikel-muted: #5e6675;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, #faf9f7 0%, #fffdfb 55%, #ffffff 100%);
  border-top: 1px solid rgba(210, 218, 230, 0.45);
}

.hg-artikel-showcase__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hg-artikel-showcase__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 40rem;
  margin: 0 auto clamp(1.25rem, 2.8vw, 1.75rem);
}

.hg-artikel-showcase__rule {
  width: 52px;
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hg-artikel-accent), var(--hg-artikel-accent-dark));
  box-shadow: 0 0 18px rgba(255, 145, 29, 0.28);
}

.hg-artikel-showcase__kicker {
  margin: 0 0 8px;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--hg-artikel-accent);
}

.hg-artikel-showcase__head h2 {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--hg-artikel-text);
  hyphens: none;
  -webkit-hyphens: none;
}

.hg-artikel-showcase__lead {
  margin: 12px 0 0;
  max-width: 38rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--hg-artikel-muted);
  hyphens: none;
  -webkit-hyphens: none;
}

.hg-artikel-magazine {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

/* Startseite: kompaktes 3er-Raster */
.hg-artikel-showcase--home {
  padding: clamp(20px, 3.5vw, 34px) clamp(14px, 2.5vw, 22px);
  --hg-orange: #ff911d;
  --hg-orange-dark: #e67e17;
}

.hg-artikel-showcase--home .hg-artikel-showcase__head {
  margin-bottom: clamp(0.75rem, 1.8vw, 1.1rem);
}

.hg-artikel-showcase--home .hg-artikel-showcase__head h2 {
  font-size: clamp(22px, 2.5vw, 30px);
}

.hg-artikel-showcase--home .hg-artikel-showcase__lead {
  margin-top: 8px;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.48;
}

.hg-artikel-magazine.hg-artikel-magazine--home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home,
.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--compact {
  grid-column: auto;
  grid-row: auto;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead {
  grid-column: 1 / -1;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home {
  gap: 6px;
  min-height: 0;
  padding: 12px 11px 10px;
  border-radius: 14px;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__glow,
.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__visual {
  display: none;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__tag {
  padding: 2px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__title {
  font-size: 0.86rem;
  line-height: 1.28;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__desc {
  font-size: 0.76rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__foot {
  margin-top: 2px;
  padding-top: 7px;
  font-size: 0.66rem;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__arrow {
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead {
  padding: 14px 14px 12px;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead .hg-artikel-card__title {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead .hg-artikel-card__desc {
  -webkit-line-clamp: 2;
}

.hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home:hover {
  transform: translateY(-2px);
}

.hg-artikel-showcase--home .hg-artikel-showcase__foot {
  margin-top: clamp(14px, 2.2vw, 20px);
}

/* Startseite: gleicher Orange-Pill-Button wie Hero (.hg-v2-cta) */
.hg-artikel-showcase__foot .hg-v2-cta {
  min-height: 48px;
  padding: 14px 30px;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  text-decoration: none !important;
  color: #fff !important;
}

.hg-artikel-showcase__foot .hg-v2-cta:hover,
.hg-artikel-showcase__foot .hg-v2-cta:focus-visible {
  color: #fff !important;
}

.hg-artikel-showcase__all--corp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 170, 0.45);
  background-color: var(--hg-orange-dark);
  background-image: linear-gradient(
    110deg,
    var(--hg-orange-dark) 0%,
    var(--hg-orange) 28%,
    #ffc978 50%,
    var(--hg-orange) 72%,
    var(--hg-orange-dark) 100%
  );
  background-size: 240% 100%;
  color: #fff;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  animation: hg-artikel-all-bar-move 5s ease-in-out infinite;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.18);
}

.hg-artikel-showcase__all--corp::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  opacity: 0.5;
  animation: hg-artikel-all-glint 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hg-artikel-showcase__all--corp:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(255, 210, 170, 0.55);
  color: #fff;
}

.hg-artikel-showcase__all-arrow {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
}

@keyframes hg-artikel-all-bar-move {
  0%, 100% { background-position: 8% 50%; }
  50% { background-position: 92% 50%; }
}

@keyframes hg-artikel-all-glint {
  0%, 100% { transform: translate(-12%, 0) rotate(12deg); opacity: 0.28; }
  50% { transform: translate(18%, 0) rotate(12deg); opacity: 0.48; }
}

.hg-artikel-showcase--home .hg-artikel-showcase__all:not(.hg-artikel-showcase__all--corp) {
  padding: 9px 20px;
  font-size: 0.86rem;
}

.hg-artikel-showcase__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3vw, 28px);
}

.hg-artikel-showcase__all {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 29, 0.35);
  background: linear-gradient(180deg, rgba(255, 145, 29, 0.12), rgba(255, 145, 29, 0.04));
  color: var(--hg-artikel-text, #101318);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.hg-artikel-showcase__all:hover {
  border-color: rgba(255, 145, 29, 0.55);
  background: linear-gradient(180deg, rgba(255, 145, 29, 0.18), rgba(255, 145, 29, 0.08));
  transform: translateY(-1px);
}

.hg-artikel-showcase__all-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--hg-artikel-muted, #5e6675);
}

.hg-artikel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 20px 18px 16px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  --hg-card-accent: #ff911d;
  --hg-card-accent-soft: rgba(255, 145, 29, 0.12);
  --hg-card-accent-border: rgba(255, 145, 29, 0.28);
  --hg-card-accent-glow: rgba(255, 145, 29, 0.42);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 248, 0.94) 100%);
  border: 1px solid var(--hg-card-accent-border);
  border-left: 4px solid var(--hg-card-accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px color-mix(in srgb, var(--hg-card-accent) 10%, transparent);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.hg-artikel-card--ablauf { --hg-card-accent: #f97316; --hg-card-accent-soft: rgba(249, 115, 22, 0.12); --hg-card-accent-border: rgba(249, 115, 22, 0.28); --hg-card-accent-glow: rgba(249, 115, 22, 0.4); }
.hg-artikel-card--wert { --hg-card-accent: #ea580c; --hg-card-accent-soft: rgba(234, 88, 12, 0.12); --hg-card-accent-border: rgba(234, 88, 12, 0.3); --hg-card-accent-glow: rgba(234, 88, 12, 0.42); }
.hg-artikel-card--strategie { --hg-card-accent: #2563eb; --hg-card-accent-soft: rgba(37, 99, 235, 0.11); --hg-card-accent-border: rgba(37, 99, 235, 0.26); --hg-card-accent-glow: rgba(37, 99, 235, 0.34); }
.hg-artikel-card--erbe { --hg-card-accent: #7c3aed; --hg-card-accent-soft: rgba(124, 58, 237, 0.11); --hg-card-accent-border: rgba(124, 58, 237, 0.26); --hg-card-accent-glow: rgba(124, 58, 237, 0.34); }
.hg-artikel-card--check { --hg-card-accent: #0891b2; --hg-card-accent-soft: rgba(8, 145, 178, 0.11); --hg-card-accent-border: rgba(8, 145, 178, 0.26); --hg-card-accent-glow: rgba(8, 145, 178, 0.34); }
.hg-artikel-card--sanierung { --hg-card-accent: #ca8a04; --hg-card-accent-soft: rgba(202, 138, 4, 0.12); --hg-card-accent-border: rgba(202, 138, 4, 0.28); --hg-card-accent-glow: rgba(202, 138, 4, 0.36); }
.hg-artikel-card--solar { --hg-card-accent: #eab308; --hg-card-accent-soft: rgba(234, 179, 8, 0.14); --hg-card-accent-border: rgba(234, 179, 8, 0.3); --hg-card-accent-glow: rgba(234, 179, 8, 0.38); }
.hg-artikel-card--kosten { --hg-card-accent: #dc2626; --hg-card-accent-soft: rgba(220, 38, 38, 0.1); --hg-card-accent-border: rgba(220, 38, 38, 0.24); --hg-card-accent-glow: rgba(220, 38, 38, 0.32); }
.hg-artikel-card--energie { --hg-card-accent: #16a34a; --hg-card-accent-soft: rgba(22, 163, 74, 0.11); --hg-card-accent-border: rgba(22, 163, 74, 0.26); --hg-card-accent-glow: rgba(22, 163, 74, 0.34); }
.hg-artikel-card--miete { --hg-card-accent: #0284c7; --hg-card-accent-soft: rgba(2, 132, 199, 0.11); --hg-card-accent-border: rgba(2, 132, 199, 0.26); --hg-card-accent-glow: rgba(2, 132, 199, 0.34); }
.hg-artikel-card--steuer { --hg-card-accent: #9333ea; --hg-card-accent-soft: rgba(147, 51, 234, 0.11); --hg-card-accent-border: rgba(147, 51, 234, 0.26); --hg-card-accent-glow: rgba(147, 51, 234, 0.34); }
.hg-artikel-card--expose { --hg-card-accent: #db2777; --hg-card-accent-soft: rgba(219, 39, 119, 0.11); --hg-card-accent-border: rgba(219, 39, 119, 0.26); --hg-card-accent-glow: rgba(219, 39, 119, 0.34); }
.hg-artikel-card--privat { --hg-card-accent: #0d9488; --hg-card-accent-soft: rgba(13, 148, 136, 0.11); --hg-card-accent-border: rgba(13, 148, 136, 0.26); --hg-card-accent-glow: rgba(13, 148, 136, 0.34); }

.hg-artikel-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--hg-card-accent) 42%, white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 18px 38px color-mix(in srgb, var(--hg-card-accent) 16%, transparent);
}

.hg-artikel-card__glow {
  position: absolute;
  inset: -35% auto auto -15%;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(30px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hg-artikel-card:hover .hg-artikel-card__glow {
  opacity: 0.82;
}

.hg-artikel-card--ablauf .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--wert .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--strategie .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--erbe .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--check .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--sanierung .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--solar .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--kosten .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--energie .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--miete .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--steuer .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--expose .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }
.hg-artikel-card--privat .hg-artikel-card__glow { background: var(--hg-card-accent-glow); }

.hg-artikel-card__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hg-card-accent), color-mix(in srgb, var(--hg-card-accent) 72%, #1e293b));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--hg-card-accent) 28%, transparent);
}

.hg-artikel-card__tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-card-accent);
  background: var(--hg-card-accent-soft);
  border: 1px solid var(--hg-card-accent-border);
}

.hg-artikel-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--hg-cosmic-900);
}

.hg-artikel-card__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--hg-wissen-muted);
}

.hg-artikel-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hg-card-accent-border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--hg-card-accent);
}

.hg-artikel-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--hg-card-accent-soft);
  transition: transform 0.22s ease, background 0.22s ease;
}

.hg-artikel-card:hover .hg-artikel-card__arrow {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--hg-card-accent-soft) 70%, var(--hg-card-accent));
}

.hg-artikel-card--featured {
  grid-column: span 6;
  grid-row: span 2;
  padding: 24px 22px 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.94) 100%);
}

.hg-artikel-card--featured .hg-artikel-card__title {
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
}

.hg-artikel-card--featured .hg-artikel-card__desc {
  font-size: 0.92rem;
  max-width: 38ch;
}

.hg-artikel-card:not(.hg-artikel-card--featured):not(.hg-artikel-card--compact) {
  grid-column: span 3;
}

.hg-artikel-card--compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 12px 11px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--hg-card-accent-border);
  border-left: 3px solid var(--hg-card-accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hg-artikel-card--compact:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--hg-card-accent) 38%, white);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--hg-card-accent) 12%, transparent);
}

.hg-artikel-card--compact .hg-artikel-card__tag {
  padding: 2px 7px;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: var(--hg-card-accent);
  background: var(--hg-card-accent-soft);
  border: 1px solid var(--hg-card-accent-border);
}

.hg-artikel-card--compact .hg-artikel-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--hg-cosmic-900);
}

/* Hub-Seite (/ratgeber/artikel/): direkt unter Hero, ohne Doppellinie */
.hg-wissen-hero + .hg-artikel-showcase--hub,
.hg-artikel-showcase--hub {
  border-top: 0;
  padding-top: clamp(1.75rem, 4.5vw, 2.75rem);
}

.hg-artikel-magazine--hub {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.hg-artikel-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px 4px;
}

.hg-artikel-hub-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hg-cosmic-800);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hg-artikel-hub-nav__link:hover {
  border-color: rgba(255, 145, 29, 0.35);
  background: #fffaf6;
  transform: translateY(-1px);
}

.hg-artikel-hub-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hg-wissen-orange-dark);
  background: rgba(255, 145, 29, 0.14);
}

.hg-artikel-hub-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hg-artikel-card--spotlight {
  flex-direction: row;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
  min-height: 0;
  padding: clamp(18px, 2.8vw, 24px) clamp(18px, 3vw, 28px);
}

.hg-artikel-card--spotlight .hg-artikel-card__spotlight-kicker {
  flex: 0 0 auto;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-card-accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.9;
}

.hg-artikel-card--spotlight .hg-artikel-card__spotlight-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hg-artikel-card--spotlight .hg-artikel-card__title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hg-artikel-card--spotlight .hg-artikel-card__spotlight-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hg-artikel-card--hub-row {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px;
}

.hg-artikel-card--hub-row .hg-artikel-card__row-tag {
  flex: 0 0 4.5rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hg-card-accent);
  text-align: center;
  line-height: 1.2;
}

.hg-artikel-card--hub-row .hg-artikel-card__row-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hg-artikel-card--hub-row .hg-artikel-card__title {
  font-size: 0.94rem;
  line-height: 1.32;
}

.hg-artikel-card--hub-row .hg-artikel-card__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hg-artikel-card--hub-row .hg-artikel-card__row-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hg-artikel-card--hub-row .hg-artikel-card__read,
.hg-artikel-card--spotlight .hg-artikel-card__read {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hg-artikel-muted);
  white-space: nowrap;
}

.hg-artikel-hub-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hg-artikel-hub-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.hg-artikel-hub-group__count {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hg-artikel-muted);
  white-space: nowrap;
}

.hg-artikel-hub-group__title {
  margin: 0;
  padding: 0 2px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hg-cosmic-800);
}

.hg-artikel-hub-group__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--hg-wissen-orange);
  vertical-align: middle;
}

.hg-artikel-hub-group:nth-of-type(1) .hg-artikel-hub-group__title::before { background: var(--hg-wissen-orange); }
.hg-artikel-hub-group:nth-of-type(2) .hg-artikel-hub-group__title::before { background: #2563eb; }
.hg-artikel-hub-group:nth-of-type(3) .hg-artikel-hub-group__title::before { background: #ca8a04; }
.hg-artikel-hub-group:nth-of-type(4) .hg-artikel-hub-group__title::before { background: #7c3aed; }
.hg-artikel-hub-group:nth-of-type(5) .hg-artikel-hub-group__title::before { background: #dc2626; }

.hg-artikel-hub-group__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 16px);
}

.hg-artikel-hub-group__grid--rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hg-artikel-magazine--hub > .hg-artikel-card--featured {
  grid-column: auto;
  grid-row: auto;
}

.hg-artikel-magazine--hub .hg-artikel-card:not(.hg-artikel-card--featured) {
  grid-column: auto;
}

.hg-artikel-hub-intro {
  max-width: 46rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.25rem);
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--hg-wissen-text-soft);
}

.hg-artikel-hub-intro a {
  color: var(--hg-wissen-orange-dark);
  font-weight: 600;
}

@media (min-width: 900px) {
  .hg-artikel-hub-group__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hg-artikel-hub-group__grid--rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hg-artikel-magazine:not(.hg-artikel-magazine--hub) .hg-artikel-card--featured,
  .hg-artikel-magazine:not(.hg-artikel-magazine--hub) .hg-artikel-card:not(.hg-artikel-card--featured):not(.hg-artikel-card--compact) {
    grid-column: span 6;
    grid-row: auto;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead {
    grid-column: 1 / -1;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home {
    min-height: 0;
    padding: 10px 9px 8px;
    border-radius: 12px;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__title {
    font-size: 0.8rem;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__desc {
    -webkit-line-clamp: 2;
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead .hg-artikel-card__title {
    font-size: 0.88rem;
  }
}

@media (max-width: 767px) {
  .hg-artikel-showcase:not(.hg-artikel-showcase--hub) {
    margin: clamp(10px, 2.5vw, 18px) auto;
    width: min(1220px, calc(100% - clamp(20px, 5vw, 32px)));
    padding: clamp(22px, 5vw, 32px) clamp(14px, 4vw, 20px);
    border-radius: clamp(16px, 3vw, 22px);
  }

  .hg-artikel-showcase:not(.hg-artikel-showcase--hub) .hg-artikel-showcase__head {
    margin-bottom: 1rem;
    gap: 0.4rem;
  }

  .hg-artikel-showcase:not(.hg-artikel-showcase--hub) .hg-artikel-showcase__head h2 {
    font-size: clamp(22px, 5.2vw, 28px);
  }

  .hg-artikel-showcase:not(.hg-artikel-showcase--hub) .hg-artikel-showcase__lead {
    font-size: clamp(14px, 3.8vw, 16px);
    max-width: none;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead {
    grid-column: 1 / -1;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-height: 0;
    padding: 8px 9px 7px;
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: 0.68rem;
    line-height: 1.36;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__title {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead {
    padding: 10px 10px 8px;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home-lead .hg-artikel-card__title {
  font-size: 0.84rem;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__foot {
    margin-top: 2px;
    padding-top: 5px;
    font-size: 0.6rem;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__arrow {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--home .hg-artikel-card__tag {
    padding: 2px 6px;
    font-size: 0.52rem;
  }

  .hg-artikel-showcase--home .hg-artikel-showcase__foot .hg-v2-cta {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hg-artikel-showcase--home .hg-artikel-showcase__all--corp {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    padding: 0.58rem 1.15rem;
    font-size: 0.86rem;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    min-height: 0;
    padding: 11px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--compact .hg-artikel-card__tag {
    flex: 0 0 auto;
    margin: 0;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--compact .hg-artikel-card__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.32;
    text-align: left;
  }

  .hg-artikel-magazine.hg-artikel-magazine--home .hg-artikel-card--compact::after {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-artikel-showcase__all--corp,
  .hg-artikel-showcase__all--corp::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hg-artikel-hub-group__grid,
  .hg-artikel-hub-group__grid--rows {
    grid-template-columns: 1fr;
  }

  .hg-artikel-card--spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .hg-artikel-card--spotlight .hg-artikel-card__spotlight-kicker {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .hg-artikel-card--spotlight .hg-artikel-card__spotlight-side {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }

  .hg-artikel-card--hub-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hg-artikel-card--hub-row .hg-artikel-card__row-tag {
    flex-basis: auto;
    text-align: left;
  }

  .hg-artikel-card--hub-row .hg-artikel-card__row-body {
    flex: 1 1 calc(100% - 5.5rem);
  }

  .hg-artikel-card--hub-row .hg-artikel-card__row-meta {
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--hg-card-accent-border);
  }

  .hg-artikel-magazine--hub .hg-artikel-card--featured,
  .hg-artikel-magazine--hub .hg-artikel-card:not(.hg-artikel-card--featured) {
    grid-column: 1 / -1;
  }
}

/* Artikel-Hub (/ratgeber/artikel/): hell, luftig, ohne starke Schatten */
body.hg-article-hub-page .hg-wissen-hero {
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 72%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.hg-article-hub-page .hg-wissen-hero h1 {
  background: none;
  -webkit-text-fill-color: var(--hg-cosmic-900);
  color: var(--hg-cosmic-900);
}

body.hg-article-hub-page .hg-wissen-badge {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

body.hg-article-hub-page .hg-artikel-showcase--hub {
  background: #ffffff;
  border-top: 0;
  padding-bottom: clamp(2rem, 4.5vw, 3rem);
}

body.hg-article-hub-page .hg-artikel-showcase--hub .hg-artikel-showcase__inner {
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
}

body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card {
  background: linear-gradient(155deg, #ffffff 0%, color-mix(in srgb, var(--hg-card-accent-soft) 55%, white) 100%);
  border: 1px solid var(--hg-card-accent-border);
  border-left-width: 4px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--hg-card-accent) 8%, transparent);
}

body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--hg-card-accent) 40%, white);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--hg-card-accent) 14%, transparent);
}

body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card__glow,
body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card__visual,
body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card__foot {
  display: none;
}

body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card--spotlight,
body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card--hub-row {
  background: linear-gradient(155deg, #ffffff 0%, color-mix(in srgb, var(--hg-card-accent-soft) 42%, white) 100%);
}

body.hg-article-hub-page .hg-artikel-magazine--hub .hg-artikel-card__arrow {
  background: var(--hg-card-accent-soft);
}
