/* ======================================
   ========== GENERELT ==========
====================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --radius: 10px;
  --gap: 10px;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 21px;
  background-color: #5F8CB4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ======================================
   ========== HERO SEKTION ==========
====================================== */

/* Container */
.hero-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Intro */
.hero-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  background-color: #003255;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dark-mode .hero-intro {
  background-color: #5F8CB4;
}

.hero-banner {
  flex: 1 1 300px;
  max-width: 100%;
  border-radius: 8px;
}

.hero-intro-tekst,
.hero-intro-tekst h1,
.hero-intro-tekst h2,
.hero-intro-tekst h3,
.hero-intro-tekst p {
  flex: 2 1 400px;
  text-align: center;
  color: #fff;
}

/* CTA-knap */
.cta-knap {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  color: #fff;
  background-color: #FF733C;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.cta-knap:hover {
  background-color: #4678C8;
}

/* Grid */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-kort {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
}

.hero-billede {
  width: 100%;
  height: auto;
  display: block;
}

.hero-kort h3 {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}

/* Tekstblokke */
.hero-tekst h1,
.hero-tekst h2,
.hero-tekst h3,
.hero-tekst p,
.tekst h1,
.tekst h2,
.tekst h3,
.tekst p {
  color: #fff;
}

.hero-tekst { text-align: center; }
.tekst { text-align: left; }

/* ======================================
   ========== JMV SEKTION ==========
====================================== */
#jmv {
  max-width: 1200px;
  margin: 1.6rem auto;
  line-height: 1.5;
  padding: 1rem;
  background-color: #003255;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

#jmv h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

#jmv p {
  color: #fff;
  margin: 0.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #eef2f6;
  color: #003255;
  margin-right: 0.45rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  padding: 0.9rem;
  border-radius: 12px;
  background-color: #5f8cb4;
  margin-bottom: 2rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

button.tgl {
  margin: 0.5rem 0 2rem;
  padding: 0.46rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #5f8cb4;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

#pack-list {
  background-color: #5f8cb4;
  border-radius: 12px;
}

#pack-list ul {
  margin-left: 1rem;
  margin-bottom: 2rem;
}

/* ======================================
   ========== SMÅ HJÆLPERE ==========
====================================== */
.kvadrat {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.small {
  font-size: 0.92rem;
}

/* ======================================
   ========== PRINT ==========
====================================== */
@media print {
  #jmv {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ======================================
   ========== DARK MODE ==========
====================================== */
body.dark-mode #jmv,
body.dark-mode .card,
body.dark-mode button.tgl,
body.dark-mode #pack-list {
  background-color: #5f8cb4;
}

/* ======================================
   ========== "READ MORE" KNAP ==========
====================================== */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  padding: 0.5rem 0.9rem;
  background-color: #FF733C;
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-more:hover,
.read-more:active {
  background-color: #FF5A00;
  transform: translateY(-2px);
}

.read-more:focus {
  outline: none;
}

.read-more::after {
  content: "→";
  font-size: 0.95rem;
  margin-left: 6px;
  transition: transform 0.12s ease;
}

.read-more:hover::after,
.read-more:focus::after {
  transform: translateX(4px);
}

/* ======================================
   ========== WELCOME SEKTION ==========
====================================== */
.welcome-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--section-gap, 40px);
  padding: 30px;
  color: #1a1a1a;
}

.image-container {
  flex: 1;
}

.theme-image {
  max-width: 40%;
  height: auto;
}

.dark-mode .theme-image {
  content: url('/assets/png/JMV_Efteraarshike_logo_fdfblaa.png');
}

.content {
  flex: 1;
  max-width: 500px;
  text-align: center;
}

.content h1,
.content h2 {
  margin: 10px 0;
}

.cta-button {
  display: inline-block;
  background-color: #FF733C;
  color: #fff;
  padding: 10px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 34px;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #4678C8;
  outline: none;
}

/* ======================================
   ========== OM JMV SEKTION ==========
====================================== */
.container_1 {
  display: flex;
  max-width: 1200px;
  margin: auto;
}

.image-container_1 {
  flex: 1 1 400px;
  padding-top: 40px;
}

.image-container_1 img {
  max-width: 80%;
  height: auto;
  padding-bottom: 40px;
}

.text {
  flex: 1 1 400px;
  max-width: 100%;
  text-align: left;
  color: white;
  padding-top: 80px;
}

.text h2 {
  font-size: 34px;
  line-height: 1.5;
}

.text p {
  font-size: 21px;
  line-height: 1.5;
}

/* ======================================
   ========== RESPONSIVITET ==========
====================================== */
@media (max-width: 768px) {
  .hero-tekst { text-align: center; }
  .hero-tekst h2 { font-size: 1.5rem; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  #jmv { padding: 0.8rem; }
}

@media (max-width: 420px) {
  .read-more {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Welcome sektion */
@media (min-width: 1060px) {
  .welcome-section { flex-direction: row; text-align: left; }
  .content { align-items: flex-start; }
}

@media (min-width: 768px) and (max-width: 1059px) {
  .theme-image { max-width: 400px; }
  .content { max-width: 400px; }
}

@media (min-width: 390px) and (max-width: 767px) {
  .welcome-section {
    flex-direction: column;
    padding: 20px;
  }
  .theme-image { max-width: 300px; }
  .content { max-width: 100%; }
  .cta-button {
    font-size: 18px;
    padding: 8px 20px;
  }
}

@media (max-width: 389px) {
  .theme-image { max-width: 90vw; }
  .cta-button {
    font-size: 16px;
    padding: 8px 16px;
  }
  .container_1 {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .image-container_1 {
    padding-top: 20px;
    padding-left: 3rem;
  }
  .text {
    padding-top: 20px;
  }
  .text h2 { font-size: 21px; }
  .text p { font-size: 13px; }
}
