* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: #082c4c;
  background: #ffffff;
}

/* Holder footeren i bunden, når siden er lavere end skærmen */
.page,
main {
  flex: 1 0 auto;
}

/* Hero vises i sine naturlige proportioner - ingen beskæring */
.hero {
  width: 100%;
  overflow: hidden;
  background: #0b3552;
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 30px;
}

.opening-hours {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 18px;
  color: #34536b;
}

.opening-hours strong {
  color: #082c4c;
}

.separator {
  color: #1594d0;
  font-weight: 700;
}

.departments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 4px solid #1594d0;
}

.department {
  padding: 24px 28px 20px;
  text-align: center;
  position: relative;
}

.department + .department::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 20px;
  width: 1px;
  background: #d9e2e8;
}

.department h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
  color: #082c4c;
}

.department p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.45;
  color: #34536b;
}

.department a {
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  color: #082c4c;
  text-decoration: none;
}

.department a:hover,
.department a:focus-visible {
  color: #1594d0;
  text-decoration: underline;
}

/* Footer bliver skubbet helt ned i bunden */
.site-footer {
  flex-shrink: 0;
  min-height: 72px;
  margin-top: auto;
  background: #082c4c;
  color: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
}

.footer-inner img {
  display: block;
  max-width: 120px;
  max-height: 38px;
  width: auto;
  height: auto;
}

@media (max-width: 900px) {
  .departments {
    grid-template-columns: repeat(2, 1fr);
  }

  .department:nth-child(3)::before {
    display: none;
  }

  .department:nth-child(n+3) {
    border-top: 1px solid #d9e2e8;
  }
}

@media (max-width: 560px) {
  .content,
  .footer-inner {
    width: min(100% - 30px, 1180px);
  }

  .content {
    padding: 22px 0 26px;
  }

  .opening-hours {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
    text-align: center;
    font-size: 16px;
  }

  .separator {
    display: none;
  }

  .departments {
    grid-template-columns: 1fr;
  }

  .department {
    padding: 20px 10px;
  }

  .department + .department::before {
    display: none;
  }

  .department:nth-child(n+2) {
    border-top: 1px solid #d9e2e8;
  }

  .department h2 {
    font-size: 22px;
  }

  .department p {
    font-size: 17px;
  }

  .department a {
    font-size: 20px;
  }

  .footer-inner {
    padding: 12px 0;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
