/* ==================================================
   RESET & BASE
================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.65;
}

/* ==================================================
   HEADER & FOOTER BOXES
================================================== */
.header-box,
.footer-box {
  background-color: #e0f2fe;            /* Lyseblå som SuperBilligLejebil */
  color: #0f172a;
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #000000;            /* Sort kant */
  text-align: center;
}

/* ==================================================
   HEADER CONTENT
================================================== */
header .header-box h1 {
  margin: 0;
  font-size: 1.8rem;                     /* Header første linje størrelse */
  color: #0f172a;
  text-align: center;
  font-weight: bold;                     /* Fed */
}

/* Tagline */
header .header-box .tagline {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #0f172a;
  text-align: center;
}

/* Navigation */
header .header-box .main-nav {
  margin-top: 5px;
  text-align: center;                    /* Centreret navigation links */
}

header .header-box .main-nav a {
  color: #1e40af;
  text-decoration: none;
  font-weight: normal;
  margin: 0 10px;
}

header .header-box .main-nav a:hover {
  text-decoration: underline;
}

/* ==================================================
   MAIN CONTENT
================================================== */
.main-content {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

/* Headings */
h1, h2, h3 {
  color: #0f172a;
  line-height: 1.25;
}

/* H1 i MAIN - samme som header første linje, fed */
.main-content h1 {
  text-align: center;
  font-size: 1.8rem;          /* Header H1 størrelse */
  font-weight: bold;
}

/* H2 i MAIN - brødtekst størrelse + fed */
.main-content h2 {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.25;
}

/* H3 */
h3 {
  font-size: 1.15rem;
}

/* Brødtekst */
p {
  margin: 0.9rem 0 1.2rem;
  text-align: justify;
  hyphens: auto;
  font-size: 1rem;
}

/* Links i main */
.main-content a {
  color: #1e40af;
  text-decoration: none;
}

.main-content a:hover {
  text-decoration: underline;
}

/* ==================================================
   FOOTER
================================================== */
.footer-box {
  font-size: 0.95rem;
  line-height: 1.25;                     /* Match linjeafstand header */
  display: flex;
  flex-direction: column;
  align-items: center;                    /* Centrerer horisontalt */
  justify-content: center;                /* Centrerer lodret */
  text-align: center;                     /* Centrerer inline-elementer */
  gap: 6px;                               /* Lille afstand mellem linjer som header */
  margin-top: 20px;
}

/* Footer links – centreret */
.footer-box a {
  color: #1e40af;
  text-decoration: none;
  margin: 0;                              /* Ingen ekstra skævhed */
  display: inline-block;                  /* Holder dem centreret */
}

.footer-box a:hover {
  text-decoration: underline;
}

/* Footer tekst */
.footer-box .copyright {
  color: #0f172a;
  text-align: center;
  margin-top: 0;                          /* Styling styres af gap */
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 768px) {
  header .header-box .main-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
  }

  .main-content {
    width: 95%;
  }

  .main-content h1 {
    font-size: 1.8rem; /* H1 header størrelse på mobil */
  }

  .main-content h2 {
    font-size: 1rem;   /* H2 brødtekst-størrelse */
  }

  /* Footer mobile: behold small line spacing */
  .footer-box {
    gap: 6px;          /* Samme lille spacing som desktop */
  }
}
