@charset "UTF-8";

/* ===== RESET / BASICS ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green: #2F7A2A;
  --green-dark: #2f7d29;
  --dark: #1e1e1e;
  --light: #f7f7f7;
  --white: #ffffff;
  --text: #222222;
  --border: #e5e5e5;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --max-width: 1000px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f4f6f4;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

.container {
  width: min(100% - 24px, var(--max-width));
  margin-inline: auto;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.site-title h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--green);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

.top-link {
  color: var(--white);
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.top-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: linear-gradient(180deg, #1e1e1e 0%, #050505 100%);
  border-top: 4px solid var(--green);
}

.nav-wrap {
  position: relative;
}

.menu-toggle {
  display: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.menu > li {
  position: relative;
}

.menu > li > a,
.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.menu > li > a:hover,
.submenu-toggle:hover,
.menu > li > a.active {
  background: var(--green);
  color: var(--white);
}

.has-submenu .submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1000;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background: #f5f5f5;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 24px 0 40px;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  color: var(--green-dark);
  line-height: 1.3;
}

.content-card p {
  margin-bottom: 16px;
}

.hero-image {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

/* ===== SLIDESHOW ===== */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 1000 / 562; /* Justér hvis dine billeder har anden form */
}

.slideshow-container .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: block;
}

.slideshow-container .slide.active {
  opacity: 1;
  position: absolute;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: #dddddd;
  padding: 20px 0;
  margin-top: 20px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffffff;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .menu > li > a,
  .submenu-toggle {
    padding: 12px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .header-top {
    align-items: flex-start;
  }

  .header-links {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .menu.open {
    display: flex;
  }

  .menu > li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu > li > a,
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    padding: 14px 6px;
  }

  .has-submenu .submenu {
    position: static;
    display: none;
    min-width: auto;
    width: 100%;
    border-radius: 10px;
    margin: 0 0 8px;
    box-shadow: none;
    border: 1px solid var(--border);
  }

  .has-submenu:hover .submenu {
    display: none;
  }

  .has-submenu.submenu-open .submenu {
    display: block;
  }

  .content-card {
    padding: 18px;
  }

/* =========================================================
   ARTIKEL – VERSION 2 (centreret layout)
   ========================================================= */

.article {
  max-width: 720px;      /* giver “bog-side” look */
  margin: 40px auto;     /* centrerer hele blokken */
  padding: 0 16px;
}

/* Tekst stadig venstrestillet */
.article p {
  text-align: left;
}

/* Intro */
.article .intro {
  font-size: 1.1rem;
  font-weight: bold;
}

/* Overskrifter */
.article h2 {
  font-size: 1.8rem;
}

.article h3 {
  margin-top: 30px;
}

/* =========================================================
   AUTOMATISK FIGUR NUMMERERING
   ========================================================= */

.article {
  counter-reset: figure;
}

.article figure {
  counter-increment: figure;
}

.article figcaption::before {
  content: "Figur " counter(figure) ": ";
  font-weight: bold;
}

/* =========================================================
   LIGHTBOX (klik på billede)
   ========================================================= */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

/* =========================================================
   BILLEDER (samme som før + små tweaks)
   ========================================================= */

.image-block,
.image-float {
  background-color: #f0f0f0;
  border-radius: 6px;
}

/* Hover effekt */
.image-block img,
.image-float img {
  cursor: pointer;
  transition: transform 0.2s;
}

.image-block img:hover,
.image-float img:hover {
  transform: scale(1.02);
}

/* FLOAT billeder */
.image-float {
  width: 45%;
  max-width: 320px;
  padding: 10px;
}

.image-float.left {
  float: left;
  margin-right: 16px;
}

.image-float.right {
  float: right;
  margin-left: 16px;
}

/* Clear floats */
.article::after {
  content: "";
  display: block;
  clear: both;
}

/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 768px) {
  .article {
    max-width: 100%;
    margin: 20px auto;
  }

  .image-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
  }
}
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.content-area {
  padding: 20px;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}
  .slideshow-container {
    aspect-ratio: 16 / 9;
  }
}

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

  .menu {
    display: none;
  }

  .menu.open {
    display: flex;
  }
}