@import url('https://fonts.googleapis.com/css2?family=Cinzel&family=Open+Sans:wght@300;400&display=swap');

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

body {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: #0e3c53;
  background: #fff;
}

a {
  color: #0e3c53;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* HEADER */
header {
  min-height: 97px;
  display: flex;
  align-items: stretch;
  padding: 0 30px;
}

.header-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
}

.logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #0e3c53;
  line-height: 1.4;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

/* NAV */
nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: nowrap;
}

nav a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #0e3c53;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: 600;
}

/* MAIN */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 30px 80px;
}

.hero-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  margin-bottom: 30px;
}

.content-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 14px;
  text-align: justify;
}

h1.velkommen {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #0e3c53;
  text-align: center;
  margin: 20px 0 18px;
}

p:empty {
  display: none;
}

.section-label {
  font-weight: 600;
  display: block;
  margin-top: 24px;
  margin-bottom: 6px;
}

/* DOKUMENTER SIDE */
.pw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.pw-box {
  background: #fff;
  padding: 40px 50px;
  text-align: center;
  min-width: 300px;
}

.pw-box p {
  font-size: 16px;
  margin-bottom: 16px;
}

.pw-box input[type=password] {
  border: 1px solid #ccc;
  padding: 8px 12px;
  font-size: 16px;
  width: 200px;
  font-family: inherit;
  color: #0e3c53;
  outline: none;
}

.pw-box button {
  background: #0e3c53;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
  font-family: inherit;
}

.pw-box button:hover {
  background: #1a5070;
}

.pw-error {
  color: #c00;
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

.pw-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}

#dokumenter-innhold {
  display: none;
}

.dok-gruppe {
  margin-bottom: 20px;
}

.dok-heading {
  font-size: 18px;
  font-weight: 400;
  text-decoration: underline;
  margin-bottom: 6px;
  display: block;
}

.dok-par {
  margin-bottom: 14px;
}

.dok-rad {
  font-size: 18px;
  margin-bottom: 2px;
}

.dok-rad a {
  font-size: 18px;
  color: #0e3c53;
  text-decoration: underline;
}

/* BILDEGALLERI */
.galleri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.galleri a {
  display: block;
  overflow: hidden;
}

.galleri img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.galleri a:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* FOOTER */
footer {
  padding: 20px 30px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

footer .footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

footer a {
  color: #666;
}
