body {
  background-color: #0f0f0f;
  color: #eaeaea;
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #0f0f0f;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
}

.logo {
  display: flex;
  align-items: center;
  color: #d4af37;
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  text-decoration: none;
}

nav a {
  color: #caa85e;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: bold;
}

.hero {
  padding: 3rem 2rem;
  text-align: center;
}

.intro h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.preview {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
}

.box {
  width: 40%;
  background-color: #1a1a1a;
  padding: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #777;
}

/* Container for blog-siden */
main.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  /* Hovedtitel på siden */
  main.container > h1 {
    font-family: 'EB Garamond', serif;
    font-size: 2.8rem;
    color: #d4af37;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Det enkelte blogindlæg */
  .blog-post {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transition: box-shadow 0.3s ease;
  }
  
  .blog-post:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
  
  /* Titel på blogindlægget */
  .blog-post h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: #d4af37;
  }
  
  /* Link på titlen */
  .blog-post h2 a {
    color: #d4af37;
    text-decoration: none;
  }
  
  .blog-post h2 a:hover {
    text-decoration: underline;
  }
  
  /* Dato og kategori */
  .blog-post small {
    font-family: 'Lato', sans-serif;
    color: #999;
    display: block;
    margin-bottom: 1rem;
    font-style: italic;
  }
  
  /* Uddraget */
  .blog-post p {
    font-family: 'Lato', sans-serif;
    color: #eaeaea;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  /* Læs mere-link */
  .blog-post a {
    font-weight: bold;
    color: #d4af37;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
  }
  
  .blog-post a:hover {
    text-decoration: underline;
  }

  .fb-groups {
    background: #111;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    color: #ddd;
    text-align: center;
  }
  .fb-groups h2 {
    color: #fff;
    margin-bottom: 1.5rem;
  }
  .group-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  @media (min-width: 600px) {
    .group-boxes {
      flex-direction: row;
      justify-content: space-around;
    }
  }
  .group {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1;
    border: 1px solid #2a2a2a;
  }
  .group h3 {
    color: #fff;
    margin-bottom: 0.5rem;
  }
  .group p {
    color: #ccc;
    margin-bottom: 1rem;
  }
  .group a {
    color: #9cc;
    text-decoration: none;
    font-weight: bold;
  }
  .group a:hover {
    text-decoration: underline;
    color: #cff;
  }

  footer a {
    color: #9cc;
    text-decoration: none;
  }
  
  footer a:hover {
    color: #cff;
    text-decoration: underline;
  }

/* Mobil-tilpasning */
@media (max-width: 600px) {
  .preview {
    flex-direction: column;
    align-items: center;
  }
  
  .box {
    width: 90% !important; /* Fylder næsten hele skærmen på mobil */
    margin-bottom: 1.5rem;
  }

  .fb-groups {
    padding: 1rem;
    margin: 1rem auto;
  }

  .group-boxes {
    flex-direction: column;
  }

  /* Tilpas overskrifter og tekst */
  .intro h1 {
    font-size: 1.5rem;
  }

  .intro p {
    font-size: 1rem;
  }

  /* Juster padding i hero */
  .hero {
    padding: 2rem 1rem;
  }
  
  /* Gør navigationen mobilvenlig (simplet version) */
  nav a {
    margin-left: 0.75rem;
    font-size: 0.9rem;
  }
}

.pagination {
  text-align: center;
  margin: 2rem 0;
}

.pagination a {
  color: #d4af37;
  margin: 0 0.5rem;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  border: 1px solid #d4af37;
  border-radius: 5px;
}

.pagination a.active {
  background-color: #d4af37;
  color: #0f0f0f;
  font-weight: bold;
}

.pagination a:hover {
  background-color: #caa85e;
  color: #0f0f0f;
}

.video-box {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #333;
  margin: 2rem auto;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  max-width: 700px; /* ny: smallere bredde */
}

.video-box h2 {
  color: #d4af37;
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.video-box iframe {
  width: 100%;
  height: 360px; /* lidt højere for smallere bredde */
  margin-bottom: 1rem;
  border: none;
  display: block;
}

.video-box p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.quote-box {
  background-color: #1a1a1a;
  border-left: 4px solid #d4af37;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.quote-box footer {
  margin-top: 1rem;
  font-style: italic;
  color: #aaa;
  text-align: right;
}

/* Billeder i blogindlæg */
.blog-post-single .content img,
.blog-post img {
  max-width: 100%;        /* sørger for at billedet aldrig bliver bredere end containeren */
  height: auto;           /* holder proportioner */
  display: block;         /* gør at der ikke er mystiske mellemrum */
  margin: 1.5rem auto;    /* centrering + luft over/under */
  border-radius: 8px;     /* afrundede hjørner for at matche bokse */
  box-shadow: 0 0 10px rgba(0,0,0,0.4); /* let skygge som matcher designet */
}

/* Tekst under billeder (figcaption) */
.blog-post-single .content figure {
  text-align: center;
  margin: 2rem auto;
}

.blog-post-single .content figcaption {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.5rem;
  font-style: italic;
}


/* Standard (center) */
figure {
  display: block;
  margin: 2rem auto;
  text-align: center;
  max-width: 100%;
}

/* Venstre-align med tekst til højre */
figure.align-left {
  float: left;
  margin: 1rem 1.5rem 1rem 0;
  max-width: 45%;
  text-align: center;
}

/* Højre-align med tekst til venstre */
figure.align-right {
  float: right;
  margin: 1rem 0 1rem 1.5rem;
  max-width: 45%;
  text-align: center;
}

/* Sørg for at figcaption også følger med */
figure.align-left figcaption,
figure.align-right figcaption {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Ryd floats under indholdet */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}




/* Mobil-optimering for billeder */
@media (max-width: 600px) {
  .blog-post-single .content img,
  .blog-post img {
    margin: 1rem 0;       /* lidt mindre luft på mobil */
    border-radius: 6px;   /* lidt mindre runding så det ser skarpere ud */
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
  }

  .blog-post-single .content figcaption {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0 0.5rem;   /* lidt indryk så teksten ikke rammer kanten */
  }
}

/* Mobil: vis altid billeder i fuld bredde og centreret */
@media (max-width: 600px) {
  figure.align-left,
  figure.align-right {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
    text-align: center;
  }

  figure.align-left img,
  figure.align-right img {
    width: 100%;
    height: auto;
  }
}

/* === Ordbog === */

.ordbog-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.ordbog-container h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  color: #d4af37;
  text-align: center;
  margin-bottom: 2rem;
}

.ordbog-container h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  color: #caa85e;
  text-align: center;
  margin: 2rem 0 1.5rem;
}

/* Søgefelt */
.search-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-form input[type="text"] {
  flex: 1;
  max-width: 400px;
  padding: 0.6rem 1rem;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1a1a1a;
  color: #eaeaea;
  font-family: 'Lato', sans-serif;
}

.search-form input[type="text"]::placeholder {
  color: #888;
}

.search-form button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background-color: #d4af37;
  color: #0f0f0f;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background-color: #caa85e;
}

/* Liste over ord */
.ordbog-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ordbog-list li {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
  margin: 0.5rem 0;
  width: 100%;
  max-width: 500px; /* giver en pæn bredde midt på siden */
  text-align: center; /* gør link-teksten centreret */
}

.ordbog-list li {
  border-radius: 10px;
}

.ordbog-list li:hover {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.ordbog-list a {
  color: #d4af37;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  text-decoration: none;
}

.ordbog-list a:hover {
  text-decoration: underline;
}

/* Enkelt opslag */
.ordbog-entry {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem 3rem;
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ordbog-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

/* Hovedtitel */
.ordbog-entry h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem;
  color: #d4af37;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 1px;
}

/* Sekundære overskrifter */
.ordbog-entry h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  color: #caa85e;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.3rem;
  text-align: left;
}

/* Tertiære overskrifter */
.ordbog-entry h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  color: #caa85e;
  margin: 1.5rem 0 0.8rem;
}

/* Afsnit */
.ordbog-entry p {
  line-height: 1.8;
  color: #eaeaea;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Citater */
.ordbog-entry blockquote {
  background-color: #111;
  border-left: 4px solid #d4af37;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  color: #ccc;
  font-style: italic;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Citater - kilde/forfatter */
.ordbog-entry blockquote footer {
  text-align: right;
  color: #aaa;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Links i opslag */
.ordbog-entry a {
  color: #d4af37;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ordbog-entry a:hover {
  color: #caa85e;
  text-decoration: underline;
}

/* Listeelementer */
.ordbog-entry ul,
.ordbog-entry ol {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.ordbog-entry li {
  margin-bottom: 0.5rem;
}

/* Billeder */
.ordbog-entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* === Highlight for nøgleord i ordbogsopslag === */
.ordbog-entry .highlight {
  background-color: rgba(212, 175, 55, 0.2); /* subtil guldfarvet baggrund */
  color: #d4af37; /* samme guld som titler */
  font-weight: bold;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.ordbog-entry .highlight:hover {
  background-color: rgba(212, 175, 55, 0.4); /* lidt stærkere ved hover */
}

/* Ekstra: små visuelle “akcenter” for citater */
.ordbog-entry blockquote .highlight {
  color: #fff; /* lysere for citater */
  background-color: rgba(212, 175, 55, 0.25);
}

/* Mobil-tilpasning */
@media (max-width: 600px) {
  .ordbog-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .search-form {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .ordbog-entry {
    padding: 1.5rem 1.5rem;
  }

  .ordbog-entry h1 {
    font-size: 2rem;
  }

  .ordbog-entry h2 {
    font-size: 1.6rem;
  }

  .ordbog-entry h3 {
    font-size: 1.3rem;
  }

  .ordbog-entry p,
  .ordbog-entry li {
    font-size: 1rem;
  }
}


