/* #region font & colors */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700&display=swap");
@import url("https://use.typekit.net/jyv2och.css");

:root {
  /* v midlertidige farver v */
  --color-1: #aeccf2;
  --color-2: #d5e2f2;
  --color-3: #a0bed9;
  --color-4: #f2f2f2;
  --color-5: #e9e9e6;
  /* ^ midlertidige farver ^ */

  /*  farver til tekst  */
  /*--h1_color: #aeccf2;
  --h2_color: #d5e2f2;
  --h3_color: #a0bed9;
  --h4_color: #f2f2f2;
  --p_color: #e9e9e6;*/
}

h1,
#nav_text {
  font-family: utopia-std, serif;
  font-weight: 400;
  font-style: normal;
  color: white;
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
}

h2 {
  font-family: utopia-std, serif;
  font-weight: 700;
  font-style: normal;
  /*color: #aeccf2;*/
  color: #b0c7d8;
  font-size: 2rem;
}

h3 {
  font-family: utopia-std, serif;
  font-weight: 700;
  font-style: normal;
  /*color: #aeccf2;*/
  color: #b0c7d8;
  font-size: 1.5rem;
}

h4,
label {
  font-family: utopia-std, serif;
  font-weight: 400;
  font-style: normal;
  color: dimgray;
  font-size: 1.2rem;
}

p {
  /* font-family: hero-new, sans-serif; */
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: dimgray;
}

a {
  font-family: "Montserrat";
  font-weight: 400;
  font-style: normal;
  color: white;
  font-size: 1.2rem;
}

/* #endregion font & colors */

/* #region global reset */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  object-fit: cover;
}

/*- maxwidth på siden samt luftrum på højre- og venstreside når vinduestørrelsen er større end 1200px
    6px luftrum på højre- og venstreside når man er på mobil -*/
main {
  display: grid;
  grid-template-columns: auto minmax(0, 1200px) auto;
  padding-inline: clamp(12px, 6px + 1.5vw, 24px);
}

main > * {
  grid-column: 2/3;
}

address,
address > * {
  font-size: 1rem;
}

/*-  -*/

/* #endregion global reset */

/* #region header */

header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  /*background-color: var(--color-1);*/
  background-color: #b0c7d8;
  padding-block: 1rem;
  grid-column: 1/4;
  display: grid;
  grid-template-columns: auto minmax(0, 1200px) auto;
}

#navbar {
  grid-column: 2/3;
  overflow: hidden;
  display: grid;
  grid-template-rows: 3fr 1fr;
}

#nav_menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav_item {
  list-style: none;
}

#nav_logo {
  margin: auto;
  display: flex;
  justify-content: center;
}

#nav_text {
  text-decoration: none;
}

#nav_icon {
  aspect-ratio: 1/1;
  width: clamp(48px, 2.5rem + 2vw, 64px);
  background-image: url("../ikon.svg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.nav_link {
  text-decoration: none;
  transition: 0.3s;
}

.nav_link:hover {
  color: #f0f0ff;
}

/* #endregion header */

/* #region footer */

footer {
  width: 100%;
  /*background-color: #b0c7d8;*/
  background-color: #59708f;

  grid-column: 1/4;
  display: grid;
  grid-template-columns: auto minmax(0, 1200px) auto;
}

#footer_flex {
  grid-column: 2/3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 6rem;
  margin: 0;
  padding: 1.5rem;
}

#footer_flex > * {
  flex-grow: 1;
  margin: 1.5rem 0;
}

#footer_column3 {
  min-width: 360px;
}

#time_table {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  row-gap: 0.5rem;
}

.time_row {
  display: flex;
  justify-content: space-between;
}

.footer_p {
  color: white;
  margin: 0;
  line-height: 1.75rem;
}

.footer_h3 {
  font-size: 1.75rem;
  margin: 0;
  color: white;
}

.footer_hr {
  border: 0;
  border-top: 1px solid white;
  margin-block: 0.25rem 1rem;
}

/* #endregion footer */

/* #region burgermenu */

#hamburger {
  display: none;
}

.bar_top,
.bar_middle,
.bar_bottom {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

@media (max-width: 768px) {
  #nav_menu {
    position: fixed;
    top: 100%;
    left: 0;
    transform: translateX(0);
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100%;
    padding-top: 200px;
    padding-bottom: 0;
    padding-right: 0;
    text-align: center;
    opacity: 0;
    transition: 0.4s;
  }

  #nav_menu.active {
    top: 0;
    opacity: 1;
  }

  .nav_item {
    width: 100%;
    padding: auto;
    transition: 0.3s;
  }

  a.nav_link {
    font-size: 2.5rem;
  }

  #hamburger {
    display: block;
    cursor: pointer;
  }

  #hamburger.active .bar_top {
    transform: translateY(8px) rotate(45deg);
  }

  #hamburger.active .bar_middle {
    width: 4px;
    transform: rotateY(90deg);
  }

  #hamburger.active .bar_bottom {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* #endregion burgermenu */
