﻿/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-border: #e0e0e0;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-accent: #4a90d9;
  --color-accent-dark: #357abd;
  --color-nav-bg: #2d4a35;
  --color-nav-text: #e8f0ea;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
  --max-width: 1100px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

/* =============================================
   Layout
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

/* =============================================
   Header & Navigation
   ============================================= */
header {
  background: var(--color-nav-bg);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-nav-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  color: #ffffff;
}

.nav-logo {
  height: 42px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(232, 240, 234, 0.8);
  transition: color var(--transition);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-nav-text);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* =============================================
   Content Sections
   ============================================= */
.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-body {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-body p + p {
  margin-top: 1rem;
}

/* Cards row */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =============================================
   Gallery Page
   ============================================= */
.gallery-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.gallery-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.gallery-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay-label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* =============================================
   Lightbox Modal
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

/* Gallery index (frontpage) */
.gallery-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.gallery-index-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--color-bg);
}

.gallery-index-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color: var(--color-text);
}

.gallery-index-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-index-card:hover .gallery-index-thumb img {
  transform: scale(1.04);
}

.gallery-index-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-index-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.gallery-index-count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Back link */
.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.back-link:hover { color: var(--color-accent); }

/* Person cards (Om os) */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.person-card {
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.person-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface);
}

.person-photo-placeholder {
  background: #e8f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.person-photo-placeholder svg {
  width: 60%;
  height: auto;
}


  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.person-info {
  padding: 1rem;
}

.person-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.person-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Useful links list (Om os) */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.link-list a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition);
}

.link-list a:hover { color: var(--color-accent-dark); }

.link-list .link-tbd {
  color: var(--color-text-muted);
  border-bottom-color: var(--color-text-muted);
  cursor: not-allowed;
}


.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.media-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.media-body p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--color-accent-dark);
}

@media (max-width: 640px) {
  .media-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* =============================================
   Article page
   ============================================= */
.article-page {
  padding: 3rem 0 5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.article-image-wrap {
  position: sticky;
  top: 80px;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.article-header {
  margin-bottom: 2rem;
}.article-date {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}

.article-body p + p {
  margin-top: 1.25rem;
}

.article-notice {
  margin-top: 1.5rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* =============================================
   News list (Nyheder page)
   ============================================= */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 740px;
}

.news-card {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--color-text);
}

.news-card-image {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.25rem;
}

@media (max-width: 480px) {
  .news-card { flex-direction: column; }
  .news-card-image { width: 100%; height: 160px; }
}

.news-card-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* =============================================
   Footer
   ============================================= */
footer {
  background: var(--color-nav-bg);
  border-top: 1px solid rgba(0,0,0,0.2);
  padding: 2rem 0;
  text-align: center;
  color: rgba(232, 240, 234, 0.75);
  font-size: 0.9rem;
}

footer a {
  color: rgba(232, 240, 234, 0.75);
  text-decoration: underline;
}

footer a:hover { color: #ffffff; }

/* Reference list */
.reference-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.reference-list li + li { margin-top: 0.4rem; }

/* History body section headings */
.history-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
}