 Fodnussen – fælles design. Relative enheder følger browserens tekstindstillinger. */
:root {
  --blue: #315e84;
  --light: #eaf2f7;
  --cream: #fbf8f2;
  --ink: #253541;
  --accent: #dfaa6c;
  --content-width: 68.75rem;
  --page-gutter: clamp(1rem, 3vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.25rem/1.6 system-ui, Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #bd661f;
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sr:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75rem;
  clip-path: none;
  background: white;
}
.wrap {

  
    width: 80%;
    max-width: 68.75rem;
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}
  
.top {
  background: white;
  border-bottom: 1px solid #e0e6eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  min-height: 5.125rem;
}
.brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  min-width: 0;
  text-decoration: none;
}
.brand-logo { width: clamp(2.75rem, 5vw, 4.25rem); aspect-ratio: 1; object-fit: contain; }
.brand-text { display: grid; gap: 0.1rem; min-width: 0; }
.brand-name { font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.brand small { font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
.links {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
}
.links a { text-decoration: none; font-size: 1rem; white-space: nowrap; }
.call, .btn {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--blue);
  color: white;
  border: 2px solid var(--blue);
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.welcome-owner {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #244b6d;
} 
.btn-primary {
    background-color: #244b6d;
    color: #ffffff;
}
.btn-outline, .secondary { background: white; color: var(--blue); border-color: #b9cfdf; }
.call:hover, .btn:not(.btn-outline):hover { background: #244b6d; }
.btn-outline:hover { background: var(--light); }
h1 { font: 700 clamp(2rem, 2.2vw + 1rem, 2.375rem)/1.25 Georgia, serif; }
h2 { font: 700 clamp(1.625rem, 1.5vw + 1rem, 1.875rem)/1.3 Georgia, serif; }
h3 { margin-bottom: 0.35rem; }
.section { padding-block: clamp(2rem, 4vw, 3rem); }
.pale { background: #edf4f8; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.card { min-width: 0; background: white; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #e1e8ed; border-radius: 1.125rem; }
.muted { color: #50636f; }
.footer { background: #315e84; padding-block: 2rem; color: #ffffff}
.footergrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
footer a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr;   
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #afc9dc;

    text-align: center;
    justify-items: center;
}
.footer-webansvarlig {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.footer-copyright {
    display: block;
}
.footergrid p {
    margin-block: 0.5rem;
}

.footergrid address {
    margin-top: 0.5rem;
    font-style: normal;
}
.mobilebar { display: none; }


/* Mobilmenu - skjult som standard */
.mobile-menu {
    display: none;
}

.mobile-menu[hidden] {
    display: none;
}



.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; border-bottom: 1px solid #cbd9e2; padding-block: 0.75rem; }
.notice { border-left: 4px solid var(--blue); padding: 0.75rem 1.25rem; background: white; }

/* Breakpoints in rem; ændres med brugerens standardtekststørrelse. */
@media (max-width: 65.625rem) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; }
  .links { grid-column: 1 / -1; grid-row: 2; justify-content: start; padding-bottom: 0.8rem; }
}
@media (max-width: 50rem) {
  .mobile-menu:not([hidden]) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);

        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));

        max-height: calc(100dvh - 5rem);
        overflow-y: auto;

        background: white;
        border-top: 1px solid #cbd9e2;
        z-index: 19;
    }

    .mobile-menu a {
        display: block;
        padding: 0.9rem 1.5rem;
        color: var(--blue);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid #e0e6eb;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus-visible {
        background: var(--light);
    }
  .links, .nav > .call { display: none; }
  .nav { grid-template-columns: minmax(0, 1fr); min-height: 4.25rem; }
  .footergrid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.footer-bottom {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
} 
  .mobilebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: fixed;
    inset: auto 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: white;
    z-index: 20;
    border-top: 1px solid #cbd9e2;
  }
  .mobilebar a, .mobilebar button {
    /* display: grid;*/
    place-items: center;
    min-width: 0;
    min-height: 3.5rem;
    padding: 0.6rem 0.3rem;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.3;
  }
  .mobilebar a:first-child 
  { background: #244b6d; color: white; }
  
}
@media (max-width: 37.5rem) {
  .brand-logo { width: clamp(2.5rem, 10vw, 2.75rem); }
  .wrap { padding-inline: 1rem; }
  .price { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
