/* Top bar, site navigation, policy tables, affiliate notice */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#kontakt {
  scroll-margin-top: 1.25rem;
}

.iw-topbar {
  background: #0d0d14;
  color: #f2f2f7;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(200, 16, 46, 0.35);
}

.iw-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.45rem 10px;
  min-height: 2.25rem;
}

.iw-topbar__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: #c8102e;
  border-radius: 4px;
}

.iw-topbar__age--sm {
  min-width: 2rem;
  font-size: 0.6875rem;
}

.iw-topbar__text {
  margin: 0;
  flex: 1 1 12rem;
}

.iw-topbar__lead {
  margin-right: 0.35rem;
  opacity: 0.92;
}

.iw-topbar__link,
.iw-topbar__tel {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iw-topbar__link:hover,
.iw-topbar__link:focus,
.iw-topbar__tel:hover,
.iw-topbar__tel:focus {
  color: #ffb4b4;
}

.iw-topbar__dash {
  margin: 0 0.2rem;
  opacity: 0.7;
}

.iw-topbar__phone-label {
  margin-right: 0.25rem;
  opacity: 0.75;
  font-weight: 400;
}

/* ——— Site header bar (logo + desktop links + burger) ——— */

.iw-site-nav-wrap {
  position: relative;
  z-index: 20;
  background: #08080f;
  border-bottom: 1px solid rgba(200, 16, 46, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.iw-site-nav--bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 3.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 0.5rem 0.75rem;
  color: #f4f4f8;
}

.iw-site-nav__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 1;
}

.iw-site-nav__logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(200px, 52vw);
}

.iw-site-nav__spacer {
  flex: 1 1 auto;
  min-width: 0;
}

/* Kun desktop: horisontale menupunkter (skjult på mobil — navigation via global aside) */
.iw-site-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex: 0 0 auto;
}

.iw-site-nav__list > li {
  margin: 0;
  padding: 0;
}

.iw-site-nav__link {
  display: block;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  opacity: 0.9;
}

.iw-site-nav__link:hover,
.iw-site-nav__link:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(200, 16, 46, 0.65);
}

.iw-site-nav__link--current {
  opacity: 1;
  color: #fff;
  border-bottom-color: #c8102e;
}

.iw-site-nav__toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: inherit;
}

.iw-site-nav__toggle:hover,
.iw-site-nav__toggle:focus-visible {
  background: rgba(200, 16, 46, 0.28);
  border-color: rgba(200, 16, 46, 0.55);
}

.iw-site-nav__burger {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow:
    0 -6px 0 currentColor,
    0 6px 0 currentColor;
}

@media (min-width: 960px) {
  .iw-site-nav__list {
    display: flex;
    margin-left: auto;
  }

  .iw-site-nav__toggle {
    display: none;
  }

  .iw-site-nav__spacer {
    flex: 1 1 auto;
    min-width: 0.5rem;
  }
}

/* ——— Global mobil menu (uden for header — direkte under body) ——— */

.iw-global-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.iw-global-nav__overlay--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.iw-global-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99991;
  width: min(20.5rem, 90vw);
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #0e0e18;
  color: #f2f2f7;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  overscroll-behavior: contain;
}

.iw-global-nav__panel--open {
  transform: translateX(0);
}

.iw-global-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.iw-global-nav__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.iw-global-nav__close {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.iw-global-nav__close:hover,
.iw-global-nav__close:focus-visible {
  background: rgba(200, 16, 46, 0.38);
}

.iw-global-nav__close-icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.iw-global-nav__close-icon::before,
.iw-global-nav__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.iw-global-nav__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.iw-global-nav__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.iw-global-nav__nav {
  flex: 1 1 auto;
  min-height: 0;
}

.iw-global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 1.25rem;
}

.iw-global-nav__link {
  display: block;
  padding: 0.9rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-left: 3px solid transparent;
}

.iw-global-nav__link:hover,
.iw-global-nav__link:focus-visible {
  background: rgba(200, 16, 46, 0.14);
  border-left-color: #c8102e;
}

.iw-global-nav__link--current {
  background: rgba(200, 16, 46, 0.1);
  border-left-color: #c8102e;
}

.iw-global-nav__foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.iw-global-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.45rem;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: #c8102e;
  border-radius: 4px;
}

.iw-global-nav__foot-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iw-global-nav__tel {
  color: #ffb4b4;
  font-weight: 700;
  text-decoration: none;
}

body.iw-global-nav-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  body.iw-global-nav-open {
    overflow: auto;
  }
}

/* Policy tables */

.policy-table-u7k4q {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9375rem;
}

.policy-table-u7k4q th,
.policy-table-u7k4q td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.policy-table-u7k4q th {
  background: rgba(200, 16, 46, 0.2);
  font-weight: 700;
}

/* Affiliate disclaimer (forside) */

.affiliate-disclaimer-u7k4q {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.affiliate-disclaimer-u7k4q__box {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.affiliate-disclaimer-u7k4q__box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.affiliate-disclaimer-u7k4q__box p {
  margin: 0 0 0.65rem;
}

.affiliate-disclaimer-u7k4q__box p:last-child {
  margin-bottom: 0;
}

/* Footer: ansvarligt spil ved siden af kontakt */

.footer-u7k4q__contact .footer-u7k4q__responsible {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-u7k4q__responsible h2 {
  margin: 0 0 0.5rem;
}

.footer-u7k4q__responsible p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.footer-u7k4q__responsible p:last-child {
  margin-bottom: 0;
}

.footer-u7k4q__responsible a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}
