/* Grundstil for den statiske HaveGutterne-side */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #f6f3ea; color: #1b2a1f; font-family: 'Source Sans 3', system-ui, sans-serif; line-height: 1.4; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
[id] { scroll-margin-top: 16px; }

/* "Til toppen"-knap */
.hg-totop { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1E3B28; color: #F6F3EA; cursor: pointer; box-shadow: 0 6px 18px rgba(14,31,20,.28), 0 0 0 2px rgba(246,243,234,.6); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, background-color .2s ease, color .2s ease; }
.hg-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s, background-color .2s ease, color .2s ease; }
.hg-totop:hover, .hg-totop:focus-visible { background: #A9CC86; color: #1E3B28; }
.hg-totop:focus-visible { outline: 3px solid #1E3B28; outline-offset: 3px; }
.hg-totop svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .hg-totop { right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .hg-totop, .hg-totop.is-visible { transform: none; } }
@media print { .hg-totop { display: none; } }
