/* HOFBUD: globale regler og fælles klasser.
   Værdierne følger hofbud-redesign/design/project og tokens.css.
   Ingen runde hjørner, ingen skygger, ingen kursiv. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Som i prototypen: 16 px og normal linjehøjde som udgangspunkt.
   Hver komponent sætter selv størrelse og linjehøjde efter designet. */
body {
  margin: 0;
  font-family: var(--hb-font);
  font-size: 16px;
  line-height: normal;
  color: var(--hb-blaek);
  background: var(--hb-hvid);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

em,
i,
cite,
address {
  font-style: normal;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--hb-blaa);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--hb-blaa-moerk);
}

:focus-visible {
  outline: var(--hb-fokus);
  outline-offset: var(--hb-fokus-afstand);
}

/* På blå flader skal fokus stadig kunne ses */
.hb-bg-blaa :focus-visible,
.hb-header :focus-visible,
.hb-footer :focus-visible {
  outline-color: var(--hb-hvid);
}

.hb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hb-skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--hb-hvid);
  color: var(--hb-blaa);
  font-weight: 700;
}

.hb-skip-link:focus {
  top: 16px;
}

/* HubSpots drag-and-drop-indpakning må ikke lægge luft eller bredde på.
   Modulerne styrer selv baggrund, luft og indholdsbredde. */
.dnd-section,
.dnd-column,
.dnd-row {
  padding: 0;
}

.dnd-section > .row-fluid {
  max-width: none;
}

.hb-main {
  display: block;
}

.hb-main:focus {
  outline: none;
}

/* ---------- Layout ---------- */

.hb-container {
  max-width: var(--hb-indhold-max);
  margin: 0 auto;
  padding: 0 var(--hb-margen);
}

.hb-container--portal {
  max-width: var(--hb-portal-max);
}

.hb-section {
  padding: var(--hb-sektion) 0;
}

.hb-section--uden-top {
  padding-top: 0;
}

.hb-section--uden-bund {
  padding-bottom: 0;
}

.hb-bg-hvid {
  background: var(--hb-hvid);
}

.hb-bg-lys {
  background: var(--hb-lys);
}

.hb-bg-blaa {
  background: var(--hb-blaa);
  color: var(--hb-hvid);
}

/* ---------- Typografi ---------- */

.hb-h1 {
  font-size: clamp(46px, 5.3vw, 78px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hb-h2 {
  font-size: var(--hb-fs-h2);
  line-height: var(--hb-lh-overskrift);
  font-weight: 800;
  letter-spacing: var(--hb-ls-overskrift);
}

/* Balanceret ombrydning, hvor designet bruger det */
.hb-balance {
  text-wrap: balance;
}

.hb-h2-kort {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hb-h2-cta {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hb-h3 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hb-intro {
  max-width: 30em;
  font-size: var(--hb-fs-intro);
  line-height: 1.5;
  color: var(--hb-tekst);
  text-wrap: pretty;
}

.hb-tekst {
  font-size: 18px;
  line-height: 1.6;
  color: var(--hb-tekst);
  text-wrap: pretty;
}

.hb-tekst-lille {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hb-tekst);
  text-wrap: pretty;
}

.hb-bg-blaa .hb-intro,
.hb-bg-blaa .hb-tekst,
.hb-bg-blaa .hb-tekst-lille {
  color: var(--hb-lys);
}

/* Rich text fra editoren */
.hb-rich > * + * {
  margin-top: 20px;
}

.hb-rich p {
  text-wrap: pretty;
}

.hb-rich ul,
.hb-rich ol {
  padding-left: 1.2em;
}

.hb-rich strong,
.hb-rich b {
  font-weight: 700;
}

/* ---------- Knapper ---------- */

.hb-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--hb-overgang),
    color var(--hb-overgang);
}

.hb-btn svg {
  flex: 0 0 auto;
}

.hb-btn--stor {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.hb-btn--blaa {
  background: var(--hb-blaa);
  color: var(--hb-hvid);
}

.hb-btn--blaa:hover {
  background: var(--hb-blaa-moerk);
  color: var(--hb-hvid);
}

.hb-btn--hvid {
  background: var(--hb-hvid);
  color: var(--hb-blaa);
}

.hb-btn--hvid:hover {
  background: var(--hb-lys);
  color: var(--hb-blaa-moerk);
}

.hb-btn--linje,
.hb-btn--spoegelse {
  padding: 0 22px;
  border: 1.5px solid currentColor;
  font-weight: 600;
}

.hb-btn--linje.hb-btn--stor,
.hb-btn--spoegelse.hb-btn--stor {
  padding: 0 24px;
}

.hb-btn--linje {
  color: var(--hb-blaa);
  border-color: var(--hb-blaa);
}

.hb-btn--linje:hover {
  background: var(--hb-blaa);
  color: var(--hb-hvid);
}

.hb-btn--spoegelse {
  color: var(--hb-hvid);
  border-color: var(--hb-hvid);
}

.hb-btn--spoegelse:hover {
  background: var(--hb-hvid);
  color: var(--hb-blaa);
}

.hb-knapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tekstlink med pil */
.hb-pil-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  color: var(--hb-blaa);
}

@media (max-width: 600px) {
  /* På mobil fylder knapperne bredden, som i Mobil-forside */
  .hb-knapper--mobil-fuld {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hb-knapper--mobil-fuld .hb-btn {
    justify-content: space-between;
    padding: 0 20px;
  }

  .hb-knapper--mobil-fuld .hb-btn--spoegelse,
  .hb-knapper--mobil-fuld .hb-btn--linje {
    justify-content: flex-start;
  }
}

/* ---------- Brødkrumme ---------- */

.hb-krumme {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  line-height: normal;
  color: var(--hb-daempet);
}

.hb-krumme__punkt {
  display: inline-flex;
  gap: 10px;
}

.hb-krumme a {
  color: var(--hb-daempet);
}

.hb-krumme__aktuel {
  color: var(--hb-blaek);
  font-weight: 600;
}

.hb-krumme--blaa,
.hb-krumme--blaa a {
  color: var(--hb-daempet-paa-blaa);
}

.hb-krumme--blaa .hb-krumme__aktuel {
  color: var(--hb-hvid);
}
