/* === Basisoppsett === */
body {
  background-color: #f9f9f9;
  font-family: 'Inter', Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #339900;
  font-size: 36px;
  margin-bottom: 25px;
}

h2 {
  font-size: 20px;
  color: #339900;
  margin-top: 25px;
  margin-bottom: 12px;
}

h3 {
   font-size: 18px;
   color: #267700;
   margin-top: 20px;
   margin-bottom: 10px;
}

p, ul {
  font-size: 16px;
  margin-bottom: 18px;
  text-align: justify;
}

/* === Navigasjon === */
nav {
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

nav a,
.dropdown > a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover,
.dropdown > a:hover {
  background: #339900;
  color: #fff;
}

/* Aktiv side */
nav a.active {
  background: #339900;
  color: #fff;
}


/* === Dropdown === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 40px;
  background: #fff;
  min-width: 180px;
  box-shadow: 0px 6px 14px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #444;
  font-size: 15px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background: #f0f0f0;
  color: #339900; /* Grønn tekst ved hover */
}

.dropdown.open .dropdown-content {
  display: block;
}

/* === Tekstseksjoner === */
.tekst-wrapper {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}



/* === Bokomtaler === */

.author {font-weight: bold;}
.subtitle {font-style: italic;}
.references {color: #808080;}


/* === Bilder === */
img.illustrasjon {
  float: right;
  margin: 0 0 15px 20px;
  max-width: 40%;
  height: auto;
  border-radius: 0;
  transition: transform 0.3s ease;
}

img.illustrasjon:hover {
  transform: scale(1.02);
}

/* === Lenker til mobil og epost === */
a[href^="mailto:"],
a[href^="tel:"] {
  color: #339900;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  white-space: nowrap;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
  color: #267700;
  text-decoration: underline;
}

/* === Pristabell (kun brukt på timebestilling.html) === */
.pris-tabell {
  width: 100%;
  border-collapse: collapse;
  background: #eef4f7;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.pris-tabell th,
.pris-tabell td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #d6e0e5;
}

.pris-tabell th {
  background: #d9e7ed;
  color: #333;
  font-weight: 600;
}

.pris-tabell tr:nth-child(even) {
  background: #f5f9fb;
}

.pris-tabell tr:last-child td {
  border-bottom: none;
}

/* === Footer === */
.footer {
  font-size: 14px;
  margin-top: 40px;
  text-align: center;
  color: #666;
  background: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  clear: both;
}

/* === Responsiv tilpasning === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

.mobil-linje {
  display: inline;
}

@media (max-width: 768px) {
  .mobil-linje {
    display: block;
  }
}

  img.illustrasjon {
    float: none;
    display: block;
    margin: 20px auto;
    max-width: 100%;
  }

  .tekst-wrapper, .footer {
    max-width: 100%;
  }
}

/* === Ankerliste === */

.anker-liste a {
  color: #267700;
  text-decoration: none;
  font-weight: 600;
}

.anker-liste a:hover {
  text-decoration: underline;
}

.anker-liste {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.anker-liste li {
  margin-bottom: 6px;
}


/* === Lenker === */
.lenke {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

 .lenke:hover {
    color: #267700;
    text-decoration: underline;
  }


/* === Lenkeliste === */

  .link-liste p {
    margin-bottom: 12px;
  }

  .link-liste a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

  .link-liste a:hover {
    color: #267700;
    text-decoration: underline;
  }
  
   .link-liste ul {
      list-style: disc;
      padding-left: 20px;
      margin-top: 8px;
    }

    .link-liste li {
      margin-bottom: 6px;
    }
  
  .tilbake-lenke {
  display: inline-block;
  margin-top: 25px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.tilbake-lenke:hover {
  color: #267700;
  text-decoration: underline;
}

/* Inline-lenker i brødtekst */
.inline-link {
  color: #555;               /* Samme farge som brødtekst */
  font-weight: 600;          /* Litt fremhevet, men ikke for mye */
  text-decoration: underline;     
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.inline-link:hover {
  color: #339900;            /* Grønn hover som matcher overskrifter */
  text-decoration: underline;
}


/* Til toppen-lenke */
.til-toppen-lenke {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #267700;
  text-decoration: none;
  transition: color 0.3s ease;
}
.til-toppen-lenke:hover {
text-decoration: underline;
color: #339900;
}




html { scroll-behavior: smooth; }
