/* Forbrugshjaelpen – redaktionelt design til /guides/ */

:root {
  --fg-navy-950: #10263d;
  --fg-navy-900: #17324d;
  --fg-blue-700: #275f91;
  --fg-blue-100: #e7f0f7;
  --fg-blue-50: #f3f7fa;
  --fg-ink: #172536;
  --fg-copy: #46596c;
  --fg-muted: #6e7f90;
  --fg-line: #dce5ec;
  --fg-paper: #ffffff;
  --fg-page: #f4f7f9;
  --fg-shadow: 0 18px 48px rgba(20, 48, 74, 0.09);
}

html body {
  background: var(--fg-page) !important;
  color: var(--fg-copy) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
}

/* Hero: kort, fotografisk og redaktionel */
html body .guide-hero {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-height: 540px !important;
  height: auto !important;
  padding: 8rem 1.5rem 4.5rem !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  isolation: isolate;
  background: var(--fg-navy-950) !important;
}

html body .guide-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center var(--guide-focus-y, 38%) !important;
  opacity: 0.5 !important;
  filter: saturate(0.82) contrast(1.05);
}

html body .guide-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: linear-gradient(90deg, rgba(10, 29, 48, 0.96) 0%, rgba(15, 40, 64, 0.86) 48%, rgba(15, 40, 64, 0.6) 100%) !important;
}

html body .guide-hero-inner {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "top bottom"
    "top bottom" !important;
  width: 100% !important;
  max-width: 1120px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  align-items: end !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  color: #fff !important;
  text-align: left !important;
}

html body .guide-hero .hero-top {
  grid-area: top;
  display: flex;
  max-width: 700px;
  flex-direction: column;
  align-items: flex-start;
}

html body .guide-hero .hero-bottom {
  grid-area: bottom;
  display: flex;
  width: min(100%, 285px);
  flex-direction: column;
  align-items: stretch;
}

html body .guide-hero-badge {
  display: inline-flex !important;
  margin: 0 0 1.15rem !important;
  padding: 0.45rem 0.8rem !important;
  align-items: center !important;
  gap: 0.45rem !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

html body .guide-hero h1 {
  max-width: 760px !important;
  margin: 0 0 1rem !important;
  color: #fff !important;
  font-family: "Sora", sans-serif !important;
  font-size: clamp(2.55rem, 5vw, 4.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.052em !important;
  text-align: left !important;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.22) !important;
}

html body .guide-hero h1 .highlight {
  color: #b7daf5 !important;
}

html body .guide-hero-sub {
  max-width: 650px !important;
  margin: 0 0 1.1rem !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 1.04rem !important;
  line-height: 1.65 !important;
  text-align: left !important;
  text-shadow: none !important;
}

html body .guide-hero-meta {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.78rem !important;
  backdrop-filter: none !important;
}

html body .guide-hero .cta-button,
html body .guide-hero .cta-button.cta-button-pulse,
html body .guide-hero .hero-cta-soft {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.9rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 10px !important;
  background: #17324d !important;
  background-color: #17324d !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(3, 16, 29, 0.24) !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
}

html body .guide-hero .cta-button > span:first-child,
html body .guide-hero .cta-button > span:first-child span {
  color: #fff !important;
}

html body .guide-hero .cta-button:hover {
  transform: translateY(-2px) !important;
  background: #f4f8fb !important;
}

/* V46 – behold kun de vigtigste signaler omkring guide-CTA'en */
html body .guide-hero .hero-powered {
  display: none !important;
}

html body .guide-hero .guide-hero-trust > span:first-child {
  display: none !important;
}

html body .guide-hero .cta-button-sub {
  color: #d7e2ec !important;
  font-size: 0.7rem !important;
}

html body .guide-hero .cta-button svg {
  color: #fff !important;
  stroke: currentColor !important;
}

html body .guide-hero-trust {
  display: flex !important;
  margin-top: 0.75rem !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.67rem !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

html body .guide-hero .hero-powered {
  min-height: 1.2rem !important;
  margin-top: 0.6rem !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.67rem !important;
  text-align: center !important;
}

html body .hero-scroll-hint {
  display: none !important;
}

/* Mobil genvejslinje */
html body .jump-bar {
  position: sticky !important;
  top: 86px !important;
  z-index: 700 !important;
  display: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fg-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 5px 18px rgba(24, 50, 74, 0.07) !important;
  backdrop-filter: blur(12px);
}

html body .jump-bar-inner {
  max-width: 1120px !important;
  padding: 0.62rem 1rem !important;
  gap: 0.42rem !important;
}

html body .jump-link {
  flex: 0 0 auto !important;
  padding: 0.48rem 0.72rem !important;
  border: 1px solid var(--fg-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--fg-copy) !important;
  font-size: 0.73rem !important;
  font-weight: 700 !important;
}

html body .jump-link.active,
html body .jump-link:hover {
  border-color: var(--fg-blue-700) !important;
  background: var(--fg-blue-700) !important;
  color: #fff !important;
}

/* Artikel */
html body .breadcrumb {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 1.25rem 1.5rem 1rem !important;
  color: var(--fg-muted) !important;
  font-size: 0.76rem !important;
}

html body .breadcrumb a {
  color: var(--fg-blue-700) !important;
  text-underline-offset: 3px;
}

html body .guide-layout {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto 4rem !important;
  padding: 0 1.5rem !important;
  align-items: start !important;
  gap: 2.5rem !important;
}

html body .guide-sidebar {
  position: sticky !important;
  top: 120px !important;
  display: block !important;
}

html body .sidebar-box {
  padding: 1rem !important;
  border: 1px solid var(--fg-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 8px 24px rgba(20, 48, 74, 0.05) !important;
}

html body .sidebar-title {
  margin: 0 0 0.65rem !important;
  padding: 0 0 0.65rem !important;
  border-bottom: 1px solid var(--fg-line) !important;
  color: var(--fg-ink) !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

html body .sidebar-link {
  display: flex !important;
  margin: 0.12rem 0 !important;
  padding: 0.52rem 0.6rem !important;
  align-items: center !important;
  gap: 0.5rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--fg-copy) !important;
  font-size: 0.79rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

html body .sidebar-link:hover,
html body .sidebar-link.active {
  background: var(--fg-blue-100) !important;
  color: var(--fg-navy-900) !important;
}

html body .guide-wrap {
  width: 100% !important;
  max-width: 790px !important;
  overflow: hidden !important;
  border: 1px solid var(--fg-line) !important;
  border-radius: 20px !important;
  background: var(--fg-paper) !important;
  box-shadow: var(--fg-shadow) !important;
}

html body .guide-section {
  margin: 0 2.7rem !important;
  padding: 2.65rem 0 !important;
  scroll-margin-top: 125px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fg-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .guide-section:first-of-type {
  border-top: 0 !important;
}

html body .guide-section:last-child {
  border-bottom: 0 !important;
}

html body .guide-section .section-label {
  display: inline-flex !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  align-items: center !important;
  gap: 0.4rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fg-blue-700) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
}

html body .guide-section h2 {
  margin: 0 0 1rem !important;
  color: var(--fg-ink) !important;
  font-family: "Sora", sans-serif !important;
  font-size: clamp(1.6rem, 3vw, 2.05rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em !important;
}

html body .guide-section h3 {
  margin: 2rem 0 0.7rem !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--fg-navy-900) !important;
  font-family: "Sora", sans-serif !important;
  font-size: 1.08rem !important;
  line-height: 1.35 !important;
}

html body .guide-section p,
html body .guide-section li {
  color: var(--fg-copy) !important;
  font-size: 1rem !important;
  line-height: 1.82 !important;
}

html body .guide-section p {
  margin-bottom: 1.05rem !important;
}

html body .guide-section ul,
html body .guide-section ol {
  margin: 0.8rem 0 1.25rem 1.25rem !important;
}

html body .guide-section li {
  margin-bottom: 0.5rem !important;
  padding-left: 0.18rem;
}

html body .guide-section strong {
  color: var(--fg-ink) !important;
}

html body .guide-section a,
html body .fact-box a,
html body .warn-box a {
  color: var(--fg-blue-700) !important;
  text-decoration-color: rgba(39, 95, 145, 0.45) !important;
  text-underline-offset: 3px;
}

html body .fact-box,
html body .warn-box {
  margin: 1.55rem 0 !important;
  padding: 1.15rem 1.25rem !important;
  border: 0 !important;
  border-left: 4px solid var(--fg-blue-700) !important;
  border-radius: 0 10px 10px 0 !important;
  background: var(--fg-blue-50) !important;
  box-shadow: none !important;
}

html body .warn-box {
  border-left-color: #c98219 !important;
  background: #fff8eb !important;
}

html body .fact-box-title,
html body .warn-box-title {
  margin-bottom: 0.45rem !important;
  color: var(--fg-navy-900) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.035em;
}

html body .fact-box p,
html body .warn-box p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}

html body .guide-table {
  display: table !important;
  width: 100% !important;
  margin: 1.35rem 0 1.7rem !important;
  overflow: hidden !important;
  border: 1px solid var(--fg-line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 0.88rem !important;
}

html body .guide-table th {
  padding: 0.8rem 0.9rem !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: var(--fg-navy-900) !important;
  color: #fff !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.025em;
  text-align: left !important;
}

html body .guide-table td {
  padding: 0.82rem 0.9rem !important;
  border-color: var(--fg-line) !important;
  color: var(--fg-copy) !important;
  line-height: 1.5 !important;
}

html body .guide-table tbody tr:nth-child(even) {
  background: var(--fg-blue-50) !important;
}

html body .checklist {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  margin: 1.25rem 0 !important;
}

html body .checklist-item {
  display: flex !important;
  min-height: 54px !important;
  padding: 0.75rem 0.85rem !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  border: 1px solid var(--fg-line) !important;
  border-radius: 9px !important;
  background: #fbfcfd !important;
  color: var(--fg-copy) !important;
  font-size: 0.83rem !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
}

html body .section-cta {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  margin: 1.8rem 0 0 !important;
  padding: 1.2rem !important;
  align-items: center !important;
  gap: 1rem !important;
  border: 1px solid #cddde9 !important;
  border-radius: 11px !important;
  background: var(--fg-blue-50) !important;
  box-shadow: none !important;
}

html body .section-cta-text {
  color: var(--fg-ink) !important;
  font-size: 0.91rem !important;
}

html body .section-cta .cta-button {
  min-width: 190px !important;
  width: auto !important;
  padding: 0.72rem 0.9rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--fg-navy-900) !important;
  background: var(--fg-navy-900) !important;
  background-color: var(--fg-navy-900) !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 0.78rem !important;
}

html body .section-cta .cta-button > span,
html body .section-cta .cta-button > span span,
html body .section-cta .cta-button svg {
  color: #fff !important;
  stroke: currentColor !important;
}

html body .section-cta .cta-button-sub {
  color: rgba(255, 255, 255, 0.82) !important;
}

html body .final-cta {
  margin: 0 !important;
  padding: 3rem 2.7rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--fg-navy-900) !important;
  box-shadow: none !important;
}

html body .final-cta h2 {
  color: #fff !important;
  font-family: "Sora", sans-serif !important;
  font-size: 1.8rem !important;
  letter-spacing: -0.035em !important;
}

html body .final-cta p {
  max-width: 560px !important;
  margin: 0.65rem auto 1.25rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.65 !important;
}

html body .final-cta .cta-button,
html body .final-cta .cta-button.cta-button-pulse {
  border: 1px solid #fff !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: var(--fg-navy-900) !important;
  box-shadow: 0 10px 24px rgba(4, 18, 31, 0.2) !important;
}

html body .final-cta .cta-button > span:first-child,
html body .final-cta .cta-button > span:first-child span,
html body .final-cta .cta-button svg {
  color: var(--fg-navy-900) !important;
  stroke: currentColor !important;
}

html body .final-cta .cta-button-sub {
  color: #66798b !important;
}

html body .floating-cta-tab {
  background: var(--fg-navy-900) !important;
  color: #fff !important;
}

html body .floating-cta-tab span,
html body .floating-cta-tab svg {
  color: #fff !important;
  stroke: currentColor !important;
}

html body .faq-list {
  display: grid !important;
  gap: 0.55rem !important;
}

html body .faq-item {
  overflow: hidden !important;
  border: 1px solid var(--fg-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body .faq-question {
  min-height: 56px !important;
  padding: 0.9rem 1rem !important;
  color: var(--fg-ink) !important;
  font-size: 0.91rem !important;
  line-height: 1.4 !important;
}

html body .faq-answer {
  padding: 0 1rem 1rem !important;
  color: var(--fg-copy) !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
}

@media (max-width: 900px) {
  html body .guide-hero {
    min-height: 560px !important;
    height: auto !important;
    padding: 7.5rem 1rem 3rem !important;
    align-items: flex-end !important;
  }

  html body .guide-hero-bg {
    opacity: 0.58 !important;
    background-position: center var(--guide-focus-mobile-y, 50%) !important;
  }

  html body .guide-hero::after {
    background: linear-gradient(180deg, rgba(9, 27, 45, 0.34) 0%, rgba(10, 29, 48, 0.82) 52%, rgba(9, 26, 43, 0.98) 100%) !important;
  }

  html body .guide-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.35rem !important;
  }

  html body .guide-hero .hero-top {
    align-items: flex-start !important;
  }

  html body .guide-hero .hero-bottom {
    width: 100% !important;
  }

  html body .guide-hero h1 {
    margin-bottom: 0.75rem !important;
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
    line-height: 1.08 !important;
  }

  html body .guide-hero-sub {
    margin-bottom: 0.8rem !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  html body .guide-hero-meta {
    gap: 0.65rem 0.9rem !important;
    font-size: 0.71rem !important;
  }

  html body .guide-hero-trust {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  html body .jump-bar {
    display: block !important;
  }

  html body .breadcrumb {
    padding: 1rem !important;
  }

  html body .guide-layout {
    display: block !important;
    margin-bottom: 2.5rem !important;
    padding: 0 1rem !important;
  }

  html body .guide-sidebar {
    display: none !important;
  }

  html body .guide-wrap {
    max-width: none !important;
    border-radius: 14px !important;
  }

  html body .guide-section {
    margin: 0 1.25rem !important;
    padding: 2rem 0 !important;
    scroll-margin-top: 145px !important;
  }

  html body .guide-section h2 {
    font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
  }

  html body .guide-section p,
  html body .guide-section li {
    font-size: 0.95rem !important;
    line-height: 1.72 !important;
  }

  html body .guide-table {
    display: block !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  html body .checklist {
    grid-template-columns: 1fr !important;
  }

  html body .section-cta {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
  }

  html body .section-cta .cta-button {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .final-cta {
    padding: 2.5rem 1.25rem !important;
  }

  html body .final-cta h2 {
    font-size: 1.55rem !important;
  }
}

@media (max-width: 390px) {
  html body .guide-hero {
    min-height: 530px !important;
    padding-top: 7rem !important;
  }

  html body .guide-hero-badge {
    font-size: 0.63rem !important;
  }

  html body .guide-hero h1 {
    font-size: 1.9rem !important;
  }

  html body .guide-hero-meta span:last-child {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .fade-in,
  html body .cta-button,
  html body .faq-answer {
    animation: none !important;
    transition: none !important;
  }
}
