/* RESET / BASIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
    background: #f8f8f8;
    color: #333;
    /* For at innholdet ikke havner under navbaren */
    padding-top: 100px;
  }
  
  /* NAVBAR */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    padding: 10px 20px;
  }
  
  .navbar .logo {
    margin-right: 215px; /* Juster avstanden mellom logo og tekst */
  }

  .logo img {
    height: 80px;
    width: 260px; /* Dobbelt så bred som høy */
    object-fit: contain;
  }
  
  .navbar ul {
    list-style: none;
    display: flex;
  }
  
  .navbar li {
    margin: 0 1rem;
  }
  
  .navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
  }
  
  .navbar a.active {
    text-decoration: underline;
  }
  
  /* HERO-SEKSJON */
  .hero {
    position: relative;
    height: 40vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 1s ease; /* For fade */
  }

  .hero-content {
    padding: 160px;

  }
  
  .hero .overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 0;
  }
  
  .hero h1,
  .hero p {
    position: relative;
    z-index: 1;
  }
  
  /* SEKSJONER */
  .section {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  /* GRID-CONTAINER FOR TJENESTER */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  #services {
  position: relative;
  background: url('images/bakgrunn.jpg') no-repeat center center/cover;
  padding: 60px 0;
  color: rgb(0, 0, 0);
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Mørkt overlegg for bedre lesbarhet */
  z-index: 1;
}

#services .grid-container {
  position: relative;
  z-index: 2;
}
  .card {
    background: #b9b6b6;
    padding: 1rem;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s;
  }
  
  .card:hover {
    transform: scale(1.05);
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .card h3 {
    margin: 1rem 0 0.5rem 0;
  }
  
  .card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* ALMINNELIG SIDEINNHOLD PÅ UNDER-SIDE9R */
  .page-contentinnhold {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    background-color: #111111ef;
  }
  
  /* KONTAKTSKJEMA2 */
  .kontakt-skjema {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-top: 1rem;
  }
  
  .kontakt-skjema label {
    margin: 0.5rem 0 0.2rem;
  }
  
  .kontakt-skjema input,
  .kontakt-skjema textarea {
    padding: 0.5rem;
    margin-bottom: 1rem;
    font: inherit;
  }
  
  .kontakt-skjema button {
    padding: 0.75rem;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
  }
  
  .kontakt-skjema button:hover {
    background: #444;
  }
  
  /* FOOTER */
  footer {
    background: #111;
    color: #fff;
    padding: 2rem 2rem;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Enkelt styling av hver kolonne */
  .footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #c71a1a; /* Gul strek */
    padding-bottom: 0.3rem;
  }
  
  .footer-col p {
    line-height: 1.4;
    font-size: 0.95rem;
  }
  
  .footer-col ul {
    list-style: none;
    margin-top: 0.5rem;
  }
  
  .footer-col ul li {
    margin-bottom: 0.3rem;
  }
  
  .footer-col a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer-col a:hover {
    text-decoration: underline;
  }
  
  /* KONTAKTSEKSJON */
.kontakt-container {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  padding: 40px 0;
  gap: 20px;
}

.kontakt-info, .kontakt-social {
  flex: 1;
  padding: 20px;
  background: #222;
  color: white;
  border-radius: 5px;
}

.kontakt-info ul {
  list-style: none;
  padding: 0;
}

.kontakt-info ul li {
  margin: 10px 0;
  font-size: 18px;
}

.kontakt-info a {
  color: #c71a1a;
  text-decoration: none;
}

.map iframe {
  width: 100%;
  height: 200px;
  margin-top: 15px;
  border-radius: 5px;
}

.facebook-box iframe {
  width: 100%;
  height: 400px;
}

/* CTA-DEL (CALL TO ACTION) */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('images/bg.jpg') no-repeat center center/cover;
  color: white;
  padding: 40px;

}

.cta-text {
  max-width: 60%;
}

.cta h2 {
  font-size: 24px;
}

.cta-button {
  background: white;
  color: black;
  padding: 15px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.cta-button:hover {
  background: #c71a1a;
  color: #fff;
}



.kontakt-skjema-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.kontakt-skjema-container h1 {
  color: #333;
}

.kontakt-skjema-container p {
  margin-bottom: 20px;
}

.kontakt-skjema {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kontakt-skjema label {
  font-weight: bold;
}

.kontakt-skjema input,
.kontakt-skjema textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.kontakt-skjema button {
  background: #222;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.kontakt-skjema button:hover {
  background: #c71a1a;
  color: black;
}

.btn-contact {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #c71a1a;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 18px;
  transition: 0.3s ease-in-out;
}

.btn-contact:hover {
  background: #c71a1a;
  color: black;
}


.page-content {
  position: relative;
  background: url('images/bakgrunn.jpg') no-repeat center center/cover;
  padding: 60px;
  color: rgb(255, 255, 255);
  backdrop-filter: brightness(90%);
}

.page-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 24, 0.514); /* Juster gjennomsiktigheten her */
  z-index: -1;
  border-radius: 10px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
}

.service-title {
  font-size: 25px;
  color: #d32f2f;
  margin-bottom: 10px;
  margin-top: 20px;
}

.service-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.form-container {
  margin-top: 30px;
  text-align: left;
}
.form-container input, .form-container textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form-container button {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
}