/* Global CSS */

* {
  margin: 0px 0px;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
} /* Universelle CSS regler der hjælper med styling og layout */

body.lock-scroll {
  overflow: hidden; /* Bruges til at udelukke scrolling når burgermenu er aktiv */
}

/* Media query der styler alt til desktop */

@media (min-width: 500px) {
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
  }

  .nav-container {
    position: fixed;
    top: 0;
    z-index: 2;
    width: calc(100vw - 128px); /* Bredde 100% plus 64 px margin */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  .right-links a {
    color: white;
    font-family: "Inter";
    font-size: 1.2em;
    font-weight: 500;
    text-decoration: none;
  }

  .right-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 50px;
  }

  .firma-navn img {
    width: 8vw;
    height: auto;
  }

  .stagger-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
  }

  .stagger-link-text {
    text-shadow: 0px 1.5em 0px;
    line-height: 1;
  }

  .kontakt-knap {
    position: relative;
    display: inline-block;
    padding: 14px 28px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #2722a4;
    margin-left: 34px;
    z-index: 2;
    overflow: hidden;
  }

  .kontakt-knap span {
    position: relative; /* Sørger for at teksten er ovenpå fylde figuren */
    z-index: 2; /* Putter z-index ordreren højere end fylde figuren */
  }

  .kontakt-knap:after /* Fylde figur til kontakt knap hover effekt */ {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150%;
    height: 150%;
    border-radius: 40%;
    background-color: #fc0e47; /* farve fyld */
    transform: translate(-50%, 50%); /* Put fylde figuren under knappen */
    transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  .kontakt-knap:hover:after {
    transform: translate(-50%, -50%); /* Flyt fyld figuren ind i viewport */
  }

  .kontakt-knap:hover span {
    color: #000000; /* Skift tekst på kontakt til sort */
    transition: color 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .herobillede {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .herobillede img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(1.2);
    transform: translateY(0); /* Initial position */
    will-change: transform;
  }

  .footer {
    position: relative;
    padding: 20px 64px;
    background: #f8f8f8;
  }

  .headline-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .headline-button a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 14px 28px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #2722a4;
    z-index: 2;
    color: white;
    font-family: "Inter";
    font-size: 1.3em;
    font-weight: 500;
    text-decoration: none;
  }

  .headline-button h1 {
    color: #000;
    font-family: "Poppins";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .footer-tekst h3 {
    color: #000;
    font-family: "Poppins";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .footer-tekst h3 span {
    color: #000;
    font-family: "Poppins";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .footer-tekst {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .container-footer-bottom {
    padding-top: 50px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .socials-footer-beholder {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .socials-footer-beholder h3 {
    margin: 0 0 80px 0;
    color: #000;
    font-family: "Poppins";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .socials-footer img {
    width: 60px;
  }

  .socials-footer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    bottom: 0;
  }

  .copyright-footer h5 {
    color: #000;
    font-family: Poppins;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .copyright-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .firma-navn-mobile img {
    display: none;
  }

  .hambruger-menu-knap {
    display: none;
  }
}

/* Media query der styler alt til mobil */

@media (max-width: 500px) {

  .footer-tekst h3 span {
    color: #000;
    font-family: "Poppins";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .socials-footer-beholder {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .socials-footer-beholder h3 {
    color: #000;
    font-family: "Poppins";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }
  .copyright-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }


  .firma-navn img {
    width: 100px;
    height: auto;
    margin-left: 15px;
  }

  .hambruger-menu-knap {
    position: absolute;
    top: 50%; /* Center vertically */
    right: 15px; /* Center horizontally */
    transform: translate(-50%, -50%);
    z-index: 4;
    background: none;
    border: none;
    cursor: pointer;
  }

  nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
  }

  .nav-container {
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    left: 0;
  }

  .right-links a {
    color: white;
    font-family: "Inter";
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
  }

  .herobillede img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(1.2);
    transform: translateY(0);
    will-change: transform;
  }

  .right-links {
    display: flex;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #2722a4;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transition: left 400ms ease-out;
    z-index: 3;
    padding-top: 80px;
  }

  .right-links.active {
    left: 0;
    overflow: hidden;
  }

  .firma-navn-mobile {
    padding-bottom: 25px;
  }

  .footer {
    position: relative;
    padding: 20px 24px;
    background: #f8f8f8;
  }

  .headline-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .headline-button a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 14px 28px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #2722a4;
    z-index: 1;
    color: white;
    font-family: "Inter";
    font-size: 1.3em;
    font-weight: 500;
    text-decoration: none;
  }

  .headline-button h1 {
    color: #000;
    font-family: "Poppins";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
  }

  .footer-tekst h3 {
    color: #000;
    font-family: "Poppins";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
  }

  .footer-tekst {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .container-footer-bottom {
    padding-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .socials-footer img {
    width: 10vw;
  }

  .socials-footer {
    display: flex;
    gap: 20px;
  }

  .copyright-footer h5 {
    color: #000;
    font-family: Poppins;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 15px;
  }
}
