/* Verkaufsguide / Wissensbereich – Hausgurus Corporate Identity */

:root {
  --hg-cosmic-950: #0f172a;
  --hg-cosmic-900: #1e293b;
  --hg-cosmic-800: #334155;
  --hg-cosmic-700: #475569;
  --hg-cosmic-600: #64748b;
  --hg-cosmic-500: #94a3b8;
  --hg-cosmic-400: #cbd5e1;
  --hg-cosmic-glow: rgba(255, 145, 29, 0.28);
  --hg-wissen-text: #0f172a;
  --hg-wissen-text-soft: #475569;
  --hg-wissen-muted: #64748b;
  --hg-wissen-surface: #f8fafc;
  --hg-wissen-surface-warm: #fffbf5;
  --hg-wissen-border: rgba(15, 23, 42, 0.1);
  --hg-wissen-radius: 18px;
  --hg-wissen-radius-sm: 14px;
  --hg-wissen-max: 1180px;
  --hg-wissen-gutter: clamp(18px, 4vw, 28px);
  --hg-wissen-nav-w: 220px;
  --hg-wissen-shadow-card: 0 8px 28px rgba(15, 23, 42, 0.07);
  --hg-wissen-orange: #ff911d;
  --hg-wissen-orange-dark: #e67e17;
  --hg-phase-1: #ff911d;
  --hg-phase-2: #f59e0b;
  --hg-phase-3: #ea580c;
  --hg-phase-4: #0f172a;
}

@keyframes hg-cta-move {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes hg-cta-glint {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.75;
    transform: translateX(8%);
  }
}

@keyframes hg-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

body.hg-wissen-page {
  scroll-padding-top: 88px;
  overflow-x: clip;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--hg-wissen-text);
  background: var(--hg-wissen-surface);
  hyphens: none;
  -webkit-hyphens: none;
}

body.hg-wissen-page .hg-page-content,
body.hg-wissen-page .hg-wissen-hero,
body.hg-wissen-page .hg-wissen-hero h1,
body.hg-wissen-page .hg-wissen-lead,
body.hg-wissen-page .hg-wissen-body,
body.hg-wissen-page .hg-wissen-section,
body.hg-wissen-page .hg-wissen-table th,
body.hg-wissen-page .hg-wissen-table td,
body.hg-wissen-page section.hg-wissen-cta h2,
body.hg-wissen-page .hg-artikel-showcase,
body.hg-wissen-page .hg-artikel-card,
body.hg-wissen-page .hg-artikel-card__title,
body.hg-wissen-page .hg-artikel-card__desc,
body.hg-wissen-page .hg-artikel-hub-intro,
body.hg-wissen-page .hg-article-related__link,
body.hg-wissen-page .hg-article-related__link small {
  hyphens: none;
  -webkit-hyphens: none;
}

body.hg-wissen-page .hg-page-content {
  overflow-x: clip;
  max-width: 100%;
  background: var(--hg-wissen-surface);
}

body.hg-article-page .hg-page-content,
body.hg-article-hub-page .hg-page-content {
  padding-bottom: max(80px, calc(env(safe-area-inset-bottom, 0px) + 64px));
}

/* —— Hero —— */
.hg-wissen-hero {
  padding: clamp(2.25rem, 6vw, 3.5rem) var(--hg-wissen-gutter) clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(255, 145, 29, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(15, 23, 42, 0.04), transparent 50%),
    linear-gradient(180deg, #fff8f0 0%, var(--hg-wissen-surface-warm) 45%, var(--hg-wissen-surface) 100%);
  border-bottom: 1px solid rgba(255, 145, 29, 0.14);
  overflow-x: clip;
}

.hg-wissen-hero__inner {
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.hg-wissen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.1rem;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--hg-cosmic-700);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hg-wissen-border);
  box-shadow: 0 4px 14px rgba(36, 86, 200, 0.08);
}

.hg-wissen-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-wissen-orange);
  box-shadow: 0 0 12px var(--hg-cosmic-glow);
  animation: hg-pulse 2.4s ease-in-out infinite;
}

.hg-wissen-hero h1 {
  margin: 0 0 1rem;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
  background: linear-gradient(135deg, var(--hg-cosmic-900) 0%, var(--hg-cosmic-700) 55%, var(--hg-wissen-orange-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hg-wissen-lead {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--hg-wissen-text-soft);
  line-height: 1.65;
  font-size: 1rem;
  overflow-wrap: break-word;
}

.hg-wissen-lead a {
  color: var(--hg-wissen-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hg-wissen-lead a:hover {
  color: #c2410c;
}

/* —— Vier Phasen (Desktop) —— */
.hg-wissen-phases {
  padding: clamp(0.75rem, 2vw, 1rem) var(--hg-wissen-gutter);
  background: linear-gradient(165deg, #fff4e8 0%, #fffaf5 42%, #f8fafc 100%);
  border-bottom: 1px solid rgba(255, 145, 29, 0.18);
}

.hg-wissen-phases__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
  max-width: 100%;
  margin: 0 auto;
}

.hg-wissen-phases__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 145, 29, 0.22);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.hg-wissen-phases__item:hover {
  border-color: rgba(255, 145, 29, 0.4);
  box-shadow: 0 8px 22px rgba(255, 145, 29, 0.12);
  transform: translateY(-1px);
}

.hg-wissen-phases__item.is-active {
  background: linear-gradient(135deg, var(--hg-wissen-orange-dark), var(--hg-wissen-orange));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 145, 29, 0.28);
}

.hg-wissen-phases__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hg-wissen-orange-dark), var(--hg-wissen-orange));
}

.hg-wissen-phases__item--1 .hg-wissen-phases__num {
  background: linear-gradient(135deg, #c2410c, var(--hg-wissen-orange));
}
.hg-wissen-phases__item--2 .hg-wissen-phases__num {
  background: linear-gradient(135deg, var(--hg-wissen-orange-dark), #fbbf24);
}
.hg-wissen-phases__item--3 .hg-wissen-phases__num {
  background: linear-gradient(135deg, #0a7a4a, #0d9b62);
}
.hg-wissen-phases__item--4 .hg-wissen-phases__num {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.hg-wissen-phases__item.is-active .hg-wissen-phases__num {
  color: var(--hg-cosmic-800);
  background: #fff;
}

.hg-wissen-phases__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hg-cosmic-900);
}

.hg-wissen-phases__sub {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--hg-wissen-muted);
}

.hg-wissen-phases__item.is-active .hg-wissen-phases__title {
  color: #fff;
}

.hg-wissen-phases__item.is-active .hg-wissen-phases__sub {
  color: rgba(255, 255, 255, 0.85);
}

/* —— Layout + Sidebar —— */
.hg-wissen-layout {
  display: grid;
  grid-template-columns: var(--hg-wissen-nav-w) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem) 0 clamp(3rem, 8vw, 5rem);
  min-width: 0;
  box-sizing: border-box;
}

.hg-wissen-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.hg-wissen-nav {
  position: sticky;
  top: 76px;
  z-index: 10;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

@media (min-width: 961px) {
  .hg-wissen-nav {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hg-wissen-nav__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .hg-wissen-nav__sticky-slot {
    flex: 0 0 auto;
    padding-top: 12px;
  }
}

.hg-wissen-nav__title {
  margin: 0 0 12px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-wissen-muted);
}

.hg-wissen-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-wissen-nav__list a {
  display: block;
  padding: 8px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--hg-wissen-text-soft);
  text-decoration: none;
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hg-wissen-nav__list a:hover {
  background: #eef4ff;
  color: var(--hg-cosmic-800);
}

.hg-wissen-nav__list a.is-active {
  background: #e8f1ff;
  color: var(--hg-cosmic-800);
  border-left-color: var(--hg-cosmic-600);
}

/* —— Mobile Kapitel-Nav (statisch, kein Sticky über Kapiteltext) —— */
.hg-wissen-mobile-nav {
  display: none;
  position: relative;
  z-index: 1;
  margin: 0 auto 1.25rem;
  padding: 0;
  background: transparent;
  overflow: visible;
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
  max-width: 100%;
  box-sizing: border-box;
}

.hg-wissen-mobile-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.hg-wissen-mobile-nav a {
  flex: 0 1 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hg-wissen-text-soft);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--hg-wissen-border);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}

.hg-wissen-mobile-nav a.is-active {
  background: linear-gradient(135deg, var(--hg-cosmic-700), var(--hg-cosmic-500));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(36, 86, 200, 0.28);
}

/* —— Sections —— */
.hg-wissen-main section {
  scroll-margin-top: 88px;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--hg-wissen-radius-sm);
  border: 1px solid rgba(170, 192, 230, 0.55);
  background: #fff;
  box-shadow: 0 4px 20px rgba(16, 40, 100, 0.04);
}

.hg-wissen-main section:nth-child(odd) {
  background: linear-gradient(165deg, #ffffff 0%, #fffbf7 100%);
}

.hg-wissen-main section:nth-child(even) {
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 100%);
  border-color: rgba(15, 23, 42, 0.08);
}

.hg-wissen-main section:last-of-type {
  margin-bottom: 0;
}

.hg-wissen-main h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hg-cosmic-900);
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
  border-bottom: 2px solid rgba(255, 145, 29, 0.16);
}

.hg-wissen-main h2::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 1.15em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--hg-wissen-orange-dark), var(--hg-wissen-orange));
  box-shadow: 0 2px 8px rgba(255, 145, 29, 0.25);
}

.hg-wissen-phase-section {
  position: relative;
}

.hg-wissen-phase {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hg-cosmic-800);
  background: rgba(58, 123, 247, 0.08);
  border-left: 3px solid var(--hg-cosmic-500);
}

.hg-wissen-phase-section[data-phase="2"] .hg-wissen-phase {
  color: #0d7a6e;
  background: rgba(20, 184, 166, 0.1);
  border-left-color: #14b8a6;
}

.hg-wissen-phase-section[data-phase="3"] .hg-wissen-phase {
  color: #0a7a4a;
  background: rgba(13, 155, 98, 0.1);
  border-left-color: #0d9b62;
}

.hg-wissen-phase-section[data-phase="4"] .hg-wissen-phase {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
  border-left-color: #6366f1;
}

.hg-wissen-intro {
  margin: 0 0 1.25rem;
  color: var(--hg-wissen-text-soft);
  line-height: 1.65;
  font-size: 1rem;
  max-width: 68ch;
}

.hg-wissen-sub {
  margin: 1.5rem 0 0.75rem;
  padding: 8px 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hg-cosmic-800);
  background: rgba(58, 123, 247, 0.08);
  border-left: 3px solid var(--hg-cosmic-500);
  border-radius: 0 8px 8px 0;
}

/* —— Cards —— */
.hg-wissen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 1rem;
}

.hg-wissen-card {
  padding: 20px 18px 18px;
  border-radius: var(--hg-wissen-radius-sm);
  background: #fff;
  border: 1px solid rgba(170, 192, 230, 0.65);
  border-top: 3px solid var(--hg-cosmic-500);
  box-shadow: 0 6px 18px rgba(16, 40, 100, 0.06);
  min-width: 0;
  overflow-wrap: break-word;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hg-wissen-card:hover {
  border-color: rgba(58, 123, 247, 0.35);
  box-shadow: 0 10px 24px rgba(36, 86, 200, 0.1);
}

.hg-wissen-grid .hg-wissen-card:nth-child(4n + 1) {
  border-top-color: var(--hg-cosmic-600);
}

.hg-wissen-grid .hg-wissen-card:nth-child(4n + 2) {
  border-top-color: #14b8a6;
}

.hg-wissen-grid .hg-wissen-card:nth-child(4n + 3) {
  border-top-color: #6366f1;
}

.hg-wissen-grid .hg-wissen-card:nth-child(4n + 4) {
  border-top-color: #0d9b62;
}

.hg-wissen-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hg-cosmic-900);
}

.hg-wissen-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hg-wissen-muted);
  line-height: 1.5;
}

.hg-wissen-card ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--hg-wissen-text-soft);
  line-height: 1.45;
}

.hg-wissen-card li {
  margin-bottom: 4px;
}

.hg-wissen-grid--overview .hg-wissen-card--phase-1 {
  border-top-color: var(--hg-cosmic-600);
}
.hg-wissen-grid--overview .hg-wissen-card--phase-2 {
  border-top-color: #14b8a6;
}
.hg-wissen-grid--overview .hg-wissen-card--phase-3 {
  border-top-color: #0d9b62;
}
.hg-wissen-grid--overview .hg-wissen-card--phase-4 {
  border-top-color: #6366f1;
}

.hg-wissen-card--phase {
  position: relative;
}

.hg-wissen-card__phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hg-cosmic-700), var(--hg-cosmic-500));
  box-shadow: 0 4px 10px rgba(36, 86, 207, 0.25);
}

.hg-wissen-card--phase-2 .hg-wissen-card__phase-num {
  background: linear-gradient(135deg, #0d7a6e, #14b8a6);
}
.hg-wissen-card--phase-3 .hg-wissen-card__phase-num {
  background: linear-gradient(135deg, #0a7a4a, #0d9b62);
}
.hg-wissen-card--phase-4 .hg-wissen-card__phase-num {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

/* —— Fold cards —— */
.hg-wissen-fold {
  padding: 0;
}

.hg-wissen-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 18px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hg-cosmic-900);
  line-height: 1.35;
  position: relative;
  user-select: none;
}

.hg-wissen-fold > summary::-webkit-details-marker {
  display: none;
}

.hg-wissen-fold > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hg-cosmic-700);
  background: #eef4ff;
  transition: background 0.2s, color 0.2s;
}

.hg-wissen-fold[open] > summary::after {
  content: "−";
  background: var(--hg-cosmic-700);
  color: #fff;
}

.hg-wissen-fold[open] {
  border-color: rgba(58, 123, 247, 0.35);
  box-shadow: 0 8px 24px rgba(36, 86, 200, 0.1);
}

.hg-wissen-fold__body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(170, 192, 230, 0.45);
}

.hg-wissen-fold__body p {
  margin: 12px 0 4px;
  font-size: 0.92rem;
  color: var(--hg-wissen-muted);
  line-height: 1.5;
}

.hg-wissen-fold__body ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--hg-wissen-text-soft);
  line-height: 1.45;
}

/* Desktop/Web: Fold-Karten dauerhaft aufgeklappt (wie normale Karten) */
@media (min-width: 961px) {
  .hg-wissen-fold.hg-wissen-fold--desktop-open {
    padding: 20px 18px 18px;
  }

  .hg-wissen-fold.hg-wissen-fold--desktop-open > summary {
    padding: 0;
    margin: 0 0 8px;
    pointer-events: none;
    cursor: default;
  }

  .hg-wissen-fold.hg-wissen-fold--desktop-open > summary::after {
    display: none;
  }

  .hg-wissen-fold.hg-wissen-fold--desktop-open .hg-wissen-fold__body {
    padding: 0;
    border-top: none;
  }

  .hg-wissen-fold.hg-wissen-fold--desktop-open .hg-wissen-fold__body p {
    margin: 0;
  }

  .hg-wissen-fold.hg-wissen-fold--desktop-open .hg-wissen-fold__body ul {
    margin: 10px 0 0;
  }
}

/* —— Steps —— */
.hg-wissen-steps {
  counter-reset: hgwstep;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: 68ch;
}

.hg-wissen-steps li {
  position: relative;
  padding: 0 0 18px 44px;
  margin-bottom: 4px;
  color: var(--hg-wissen-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.hg-wissen-steps li::before {
  counter-increment: hgwstep;
  content: counter(hgwstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hg-cosmic-700), var(--hg-cosmic-500));
  box-shadow: 0 4px 10px rgba(36, 86, 207, 0.25);
}

.hg-wissen-steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--hg-wissen-text);
  font-weight: 700;
}

/* —— Callout —— */
.hg-wissen-callout {
  margin: 1.25rem 0;
  padding: 16px 18px 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid rgba(58, 123, 247, 0.28);
  border-left: 4px solid var(--hg-cosmic-500);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--hg-wissen-text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 68ch;
}

.hg-wissen-callout strong {
  color: var(--hg-cosmic-900);
  font-weight: 700;
}

/* —— Table —— */
.hg-wissen-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--hg-wissen-radius-sm);
  border: 1px solid var(--hg-wissen-border);
  background: #fff;
  box-shadow: var(--hg-wissen-shadow-card);
  position: relative;
}

.hg-wissen-table-wrap::after {
  content: "← Tabelle wischen →";
  display: block;
  padding: 8px 12px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--hg-wissen-muted);
  background: #f8fbff;
  border-top: 1px solid var(--hg-wissen-border);
}

.hg-wissen-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(0.68rem, 2.2vw, 0.84rem);
}

.hg-wissen-table th,
.hg-wissen-table td {
  padding: clamp(6px, 1.4vw, 10px) clamp(5px, 1.2vw, 9px);
  text-align: left;
  border-bottom: 1px solid #e8f0ff;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  vertical-align: top;
  line-height: 1.35;
}

.hg-wissen-table th {
  background: #f0f5fc;
  font-weight: 700;
  color: var(--hg-cosmic-900);
  white-space: normal;
  font-size: 0.95em;
}

.hg-wissen-table th:first-child,
.hg-wissen-table td:first-child {
  width: 36%;
}

.hg-wissen-table tr:last-child td {
  border-bottom: none;
}

/* Manuelle Tabellen-Umbrüche: nur mobil, Bindestrich steht in der Zeile darüber */
@media (min-width: 961px) {
  .hg-wissen-table .hg-table-mob-br {
    display: none;
  }
}

/* —— Glossar —— */
.hg-wissen-glossar {
  display: block;
  max-width: 100%;
}

.hg-wissen-glossar dt {
  font-weight: 700;
  color: var(--hg-cosmic-900);
  margin-top: 14px;
  font-size: 0.95rem;
}

.hg-wissen-glossar dt:first-child {
  margin-top: 0;
}

.hg-wissen-glossar dd {
  margin: 4px 0 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--hg-wissen-border);
  font-size: 0.92rem;
  color: var(--hg-wissen-muted);
  line-height: 1.5;
}

.hg-wissen-glossar dd:last-child {
  border-bottom: none;
}

/* —— FAQ —— */
.hg-wissen-faq {
  max-width: 100%;
  margin-top: 1.25rem;
  display: grid;
  gap: 14px;
}

.hg-wissen-faq details {
  margin-bottom: 0;
  border: 1px solid var(--hg-wissen-border);
  border-radius: var(--hg-wissen-radius-sm);
  background: #fff;
  box-shadow: 0 4px 16px rgba(16, 40, 100, 0.04);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hg-wissen-faq details[open] {
  border-color: rgba(255, 145, 29, 0.35);
  box-shadow: 0 8px 24px rgba(255, 145, 29, 0.1);
}

.hg-wissen-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  color: var(--hg-wissen-text);
  min-width: 0;
}

.hg-wissen-faq summary::-webkit-details-marker {
  display: none;
}

.hg-wissen-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff4e8;
  color: var(--hg-wissen-orange-dark);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.hg-wissen-faq details[open] summary::after {
  content: "−";
  background: var(--hg-wissen-orange-dark);
  color: #fff;
}

.hg-wissen-faq details[open] summary {
  padding-bottom: 16px;
}

.hg-wissen-faq__q {
  flex: 1;
  text-align: left;
  line-height: 1.4;
  padding-right: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hg-wissen-faq__answer,
.hg-wissen-faq details p {
  margin: 0;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(170, 192, 230, 0.5);
  font-size: 0.94rem;
  color: var(--hg-wissen-text-soft);
  line-height: 1.65;
}

.hg-wissen-faq details[open] .hg-wissen-faq__answer,
.hg-wissen-faq details[open] p {
  padding-top: 20px;
  padding-bottom: 24px;
}

.hg-wissen-main #faq {
  text-align: left;
}

.hg-wissen-main #faq h2 {
  margin-bottom: 0.35rem;
  justify-content: flex-start;
}

.hg-wissen-faq {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.hg-wissen-faq summary {
  justify-content: space-between;
  text-align: left;
}

.hg-wissen-faq__q {
  text-align: left;
}

.hg-wissen-faq__answer,
.hg-wissen-faq details p {
  text-align: left;
}

/* —— CTA Band —— */
.hg-wissen-cta-band {
  margin-top: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.hg-wissen-cta-band--light {
  background: linear-gradient(145deg, #fff8f0 0%, #fff4e6 48%, #f8fafc 100%);
  border: 1px solid rgba(255, 145, 29, 0.22);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.hg-wissen-cta-band--light::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.65), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.hg-wissen-cta-band h2 {
  position: relative;
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  line-height: 1.3;
  color: var(--hg-cosmic-900);
  border-bottom: none;
  padding-bottom: 0;
  display: block;
}

.hg-wissen-cta-band h2::before {
  display: none;
}

.hg-wissen-cta-band p {
  position: relative;
  margin: 0 0 1.5rem;
  color: var(--hg-wissen-text-soft);
  font-size: 0.95rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

a.hg-wissen-cta,
a.hg-wissen-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 170, 0.45);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    110deg,
    var(--hg-wissen-orange-dark) 0%,
    var(--hg-wissen-orange) 28%,
    #ffc978 50%,
    var(--hg-wissen-orange) 72%,
    var(--hg-wissen-orange-dark) 100%
  );
  background-size: 240% 100%;
  animation: hg-cta-move 5s ease-in-out infinite;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 12px 36px rgba(255, 145, 29, 0.28);
  transition: transform 0.2s ease;
}

a.hg-wissen-cta::after,
a.hg-wissen-cta__btn::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-cta-glint 4s ease-in-out infinite;
  pointer-events: none;
}

a.hg-wissen-cta:hover,
a.hg-wissen-cta__btn:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Artikel-Hub: Abschnitt-CTA (nicht mit Button-Klasse verwechseln) */
section.hg-wissen-cta {
  display: block;
  position: relative;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--hg-wissen-gutter);
  background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
  border-top: 1px solid rgba(255, 145, 29, 0.12);
  overflow: visible;
  isolation: auto;
  animation: none;
  box-shadow: none;
  border-radius: 0;
  min-height: 0;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

section.hg-wissen-cta::after {
  display: none;
}

.hg-wissen-cta__inner {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 1.85rem) clamp(1rem, 3vw, 1.35rem);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff8f0 0%, #fff4e6 48%, #f8fafc 100%);
  border: 1px solid rgba(255, 145, 29, 0.2);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

body.hg-article-hub-page section.hg-wissen-cta {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.hg-article-hub-page section.hg-wissen-cta .hg-wissen-cta__inner {
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter)));
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border: 1px solid rgba(255, 145, 29, 0.16);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

body.hg-article-hub-page section.hg-wissen-cta p {
  max-width: none;
}

@media (min-width: 768px) {
  body.hg-article-hub-page section.hg-wissen-cta .hg-wissen-cta__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.45rem 2rem;
    text-align: left;
    align-items: center;
  }

  body.hg-article-hub-page section.hg-wissen-cta h2 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  body.hg-article-hub-page section.hg-wissen-cta p {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }

  body.hg-article-hub-page section.hg-wissen-cta .hg-wissen-cta__btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    white-space: nowrap;
  }
}

section.hg-wissen-cta h2 {
  margin: 0 0 0.5rem;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  line-height: 1.28;
  color: var(--hg-cosmic-900);
  border-bottom: none;
  padding-bottom: 0;
  display: block;
}

section.hg-wissen-cta h2::before {
  display: none;
}

section.hg-wissen-cta p {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--hg-wissen-text-soft);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* —— Homepage Ratgeber-Teaser —— */
.hg-ratgeber-section {
  padding: clamp(2.5rem, 7vw, 4rem) var(--hg-wissen-gutter);
  background: var(--hg-wissen-surface);
  border-top: 1px solid var(--hg-wissen-border);
}

.hg-ratgeber-section__inner {
  width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
  margin: 0 auto;
}

.hg-ratgeber-section__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.hg-ratgeber-section__head h2 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--hg-cosmic-900);
}

.hg-ratgeber-section__head p {
  margin: 0;
  color: var(--hg-wissen-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.hg-ratgeber-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
}

.hg-ratgeber-card {
  padding: 20px 18px;
  background: #fff;
  border: 1px solid rgba(170, 192, 230, 0.65);
  border-top: 3px solid var(--hg-cosmic-500);
  border-radius: var(--hg-wissen-radius-sm);
  box-shadow: 0 6px 18px rgba(16, 40, 100, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hg-ratgeber-grid .hg-ratgeber-card:nth-child(4n + 1) {
  border-top-color: var(--hg-cosmic-600);
}
.hg-ratgeber-grid .hg-ratgeber-card:nth-child(4n + 2) {
  border-top-color: #14b8a6;
}
.hg-ratgeber-grid .hg-ratgeber-card:nth-child(4n + 3) {
  border-top-color: #6366f1;
}
.hg-ratgeber-grid .hg-ratgeber-card:nth-child(4n + 4) {
  border-top-color: #0d9b62;
}

.hg-ratgeber-card:hover {
  border-color: rgba(58, 123, 247, 0.35);
  box-shadow: 0 10px 24px rgba(36, 86, 200, 0.1);
}

.hg-ratgeber-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--hg-cosmic-900);
}

.hg-ratgeber-card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--hg-wissen-muted);
  line-height: 1.48;
}

.hg-ratgeber-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hg-cosmic-700);
  text-decoration: none;
}

.hg-ratgeber-card a:hover {
  text-decoration: underline;
}

.hg-ratgeber-section__link {
  margin-top: 1.5rem;
  text-align: center;
}

.hg-ratgeber-section__link a {
  font-weight: 600;
  color: var(--hg-cosmic-700);
  text-decoration: none;
}

.hg-ratgeber-section__link a:hover {
  text-decoration: underline;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  body.hg-wissen-page {
    scroll-padding-top: 72px;
  }

  .hg-wissen-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: none;
  }

  .hg-wissen-hero h1 {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
    line-height: 1.22;
  }

  .hg-wissen-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: none;
  }

  .hg-wissen-badge {
    margin-bottom: 0.75rem;
  }

  .hg-wissen-phases {
    display: none;
  }

  .hg-wissen-layout {
    grid-template-columns: 1fr;
    width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
    gap: 0;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .hg-wissen-main {
    overflow-x: visible;
  }

  .hg-wissen-nav {
    display: none;
  }

  .hg-wissen-mobile-nav {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 auto 1.25rem;
    padding: 12px 12px 14px;
    width: min(var(--hg-wissen-max), calc(100% - var(--hg-wissen-gutter) * 2));
    max-width: 100%;
    box-sizing: border-box;
    clear: both;
    text-align: center;
    background: linear-gradient(165deg, #fff4e8 0%, #fffaf5 42%, #f8fafc 100%);
    border: 1px solid rgba(255, 145, 29, 0.22);
    border-radius: var(--hg-wissen-radius-sm);
    box-shadow:
      0 4px 14px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .hg-wissen-mobile-nav::before {
    content: "Kapitel wählen";
    display: block;
    margin: 0 0 12px;
    padding: 0 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--hg-cosmic-900);
  }

  .hg-wissen-mobile-nav__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }

  .hg-wissen-mobile-nav a {
    padding: 9px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--hg-cosmic-900);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 145, 29, 0.22);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  }

  .hg-wissen-grid {
    grid-template-columns: 1fr;
  }

  .hg-ratgeber-grid {
    grid-template-columns: 1fr;
  }

  .hg-wissen-main section {
    scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
    padding: 1.25rem 1rem 1.35rem;
    border-radius: 12px;
  }

  .hg-wissen-main h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    line-height: 1.28;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .hg-wissen-intro,
  .hg-wissen-callout,
  .hg-wissen-steps {
    max-width: none;
  }

  .hg-wissen-card {
    padding: 16px 14px;
  }

  .hg-wissen-fold:not([open]) {
    border-top-width: 2px;
    box-shadow: 0 2px 8px rgba(16, 40, 100, 0.04);
  }

  .hg-wissen-fold:not([open]) > summary {
    padding: 11px 38px 11px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .hg-wissen-fold:not([open]) > summary::after {
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .hg-wissen-table-wrap::after {
    display: none;
  }

  .hg-wissen-table {
    font-size: clamp(0.62rem, 2.8vw, 0.74rem);
  }

  .hg-wissen-table th,
  .hg-wissen-table td {
    padding: 6px 4px;
  }

  .hg-wissen-faq {
    gap: 12px;
    margin-top: 1rem;
  }

  .hg-wissen-faq summary {
    padding: 16px;
    gap: 10px;
  }

  .hg-wissen-faq summary::after {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .hg-wissen-cta-band {
    padding: 1.5rem 1.15rem;
    border-radius: var(--hg-wissen-radius-sm);
  }

  section.hg-wissen-cta {
    padding: 1.25rem clamp(0.75rem, 3vw, 1rem);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .hg-wissen-cta__inner {
    padding: 1.25rem 1rem;
    border-radius: var(--hg-wissen-radius-sm);
  }

  section.hg-wissen-cta h2 {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    hyphens: none;
    -webkit-hyphens: none;
  }

  section.hg-wissen-cta p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  a.hg-wissen-cta,
  a.hg-wissen-cta__btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  body.hg-wissen-page .hg-vzk-mobile-nav {
    display: none !important;
  }
}

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

  .hg-ratgeber-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-wissen-mobile-nav a {
    flex: 0 1 calc(33.333% - 6px);
    max-width: calc(50% - 4px);
  }
}

@media (min-width: 961px) {
  .hg-wissen-table-wrap::after {
    display: none;
  }

  .hg-wissen-table {
    font-size: 0.8rem;
  }

  .hg-wissen-table th,
  .hg-wissen-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .hg-wissen-mobile-nav {
    padding: 12px 10px 14px;
    border-radius: 12px;
    margin-bottom: 1.35rem;
  }

  .hg-wissen-mobile-nav a {
    font-size: 0.74rem;
    padding: 8px 12px;
    flex: 0 1 auto;
    max-width: 100%;
  }
}
