:root {
  --baggrund: #0b1e2d;
  --baggrund-2: #112e45;
  --kort: rgba(255,255,255,0.08);
  --kort-fast: #ffffff;
  --tekst: #e8f2f8;
  --mork-tekst: #163041;
  --accent: #ffb13b;
  --accent-2: #6cc7ff;
  --lys: #f7fbfe;
  --kant: rgba(255,255,255,0.12);
  --skygge: 0 24px 60px rgba(0,0,0,0.18);
  --radius: 24px;
  --radius-lille: 16px;
  --bredde: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1e2d 0%, #173c56 100%);
  color: var(--tekst);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(calc(100% - 2rem), var(--bredde));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(8, 20, 31, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.25));
}
.mainnav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.mainnav a {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: rgba(232,242,248,0.88);
  transition: 0.22s ease;
}
.mainnav a:hover,
.mainnav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.menu-knap {
  display: none;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
  cursor: pointer;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 4rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -12rem auto;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(108,199,255,0.3) 0%, rgba(108,199,255,0) 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -12rem auto auto -16rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(255,177,59,0.22) 0%, rgba(255,177,59,0) 72%);
}
.hero-grid,
.split-layout,
.contact-grid,
.footer-grid,
.three-col,
.two-col-text,
.gallery-toolbar,
.callout-box {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.16rem;
  line-height: 1.75;
  max-width: 62ch;
  color: rgba(232,242,248,0.9);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero-card,
.panel,
.info-card,
.stat-card,
.news-card,
.callout-box,
.timeline article,
.gallery-section,
.gallery-item,
.contact-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--kant);
  border-radius: var(--radius);
  box-shadow: var(--skygge);
}
.hero-card {
  padding: 1.5rem;
  min-height: 420px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}
.hero-card img {
  width: min(100%, 480px);
  transform: translateY(8px);
}
.section,
.page-hero {
  padding: 5rem 0;
}
.small-hero {
  padding: 4.5rem 0 2.5rem;
}
.section-light,
.intro-strip {
  background: var(--lys);
  color: var(--mork-tekst);
}
.section-light .eyebrow,
.intro-strip .eyebrow,
.section-light .lead,
.intro-strip .lead,
.section-light p,
.intro-strip p,
.section-light h2,
.section-light h3,
.intro-strip h2,
.intro-strip h3 {
  color: inherit;
}
.three-col,
.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.three-col article {
  padding: 1.5rem 0.5rem;
}
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  background: #fff;
  color: var(--mork-tekst);
  padding: 1.4rem;
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  color: #11486f;
}
.section-headline {
  margin-bottom: 1.6rem;
}
.card-grid {
  grid-template-columns: repeat(4, 1fr);
}
.info-card {
  padding: 1.4rem;
}
.info-card h3,
.news-card h3,
.news-card h2,
.timeline article h3,
.panel h3,
.footer h3,
.footer h4 {
  margin-top: 0;
}
.callout-section {
  padding-top: 1rem;
}
.callout-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a2f);
  color: #10202d;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255,177,59,0.35);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--kant);
  color: var(--tekst);
}
.section-light .btn-secondary {
  color: var(--mork-tekst);
  border-color: rgba(17,72,111,0.16);
}
.page-hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}
.panel {
  padding: 1.6rem;
}
.checklist {
  padding-left: 1.1rem;
  margin-bottom: 0;
}
.checklist li {
  margin-bottom: 0.65rem;
}
.two-col-text {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.timeline article {
  padding: 1.45rem;
}
.timeline article span {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}
.news-card {
  padding: 1.5rem;
}
.featured-news {
  grid-row: span 2;
}
.news-tag {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,177,59,0.16);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.news-date {
  opacity: 0.72;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
}
.contact-form {
  padding: 1.5rem;
  display: grid;
  gap: 0.65rem;
}
.contact-form label {
  font-weight: 700;
}
.contact-form input,
.contact-form textarea,
.gallery-toolbar input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: inherit;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
}
.section-light .gallery-toolbar input {
  background: #fff;
  color: var(--mork-tekst);
  border-color: rgba(17,72,111,0.18);
}
.contact-list p {
  margin: 0 0 1rem;
}
.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.gallery-toolbar input {
  max-width: 320px;
}
.gallery-groups {
  display: grid;
  gap: 1.4rem;
}
.gallery-section {
  background: #fff;
  color: var(--mork-tekst);
  padding: 1.25rem;
}
.gallery-section h2 {
  margin-top: 0;
}
.gallery-meta {
  margin: -0.35rem 0 1rem;
  color: rgba(22,48,65,0.72);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  background: #f1f7fb;
  color: var(--mork-tekst);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-item .caption {
  padding: 0.9rem 1rem 1rem;
}
.gallery-item .folder {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2c739d;
  margin-bottom: 0.4rem;
}
.gallery-empty {
  padding: 2.4rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  background: #fff;
  color: var(--mork-tekst);
  border: 1px solid rgba(17,72,111,0.1);
}
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(7, 15, 23, 0.88);
  z-index: 60;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: var(--skygge);
}
.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  width: min(90vw, 900px);
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
}
.footer {
  padding: 2.5rem 0 3rem;
  background: rgba(6, 16, 26, 0.72);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 1.2rem;
}
.footer ul {
  margin: 0;
  padding-left: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-layout,
  .contact-grid,
  .footer-grid,
  .three-col,
  .card-grid,
  .timeline,
  .news-grid,
  .two-col-text,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .featured-news {
    grid-row: auto;
  }
  .callout-box,
  .gallery-toolbar {
    flex-direction: column;
    align-items: start;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-knap { display: inline-grid; place-items: center; }
  .mainnav {
    position: absolute;
    top: 82px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: rgba(8, 20, 31, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
  }
  .mainnav.open { display: flex; }
  .mainnav a { border-radius: 14px; }
  .hero { padding-top: 4.5rem; }
  .hero-card { min-height: auto; }
  .stat-grid { grid-template-columns: 1fr; }
  .gallery-toolbar input { max-width: none; }
  .lightbox { padding: 1rem; }
}

.hero-card-clean {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-card-clean img {
  width: min(100%, 560px);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.22));
}
.text-link {
  color: #11486f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.section:not(.section-light):not(.intro-strip) .text-link,
.page-hero .text-link,
.footer .text-link {
  color: #8ad6ff;
}
.single-column-grid {
  grid-template-columns: 1fr;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.link-card {
  display: block;
  padding: 1.2rem;
  border-radius: var(--radius-lille);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--kant);
  transition: transform 0.2s ease, background 0.2s ease;
}
.link-card strong,
.link-card span {
  display: block;
}
.link-card strong {
  margin-bottom: 0.35rem;
}
.link-card span {
  color: rgba(232,242,248,0.85);
}
.link-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
}
@media (max-width: 900px) {
  .link-grid {
    grid-template-columns: 1fr;
  }
}
